
77 Views
540 Executions
3D voxel image loader
Universal Script 📌
6 days ago · Updated
Reviewed by QueueSherlockPaid revieweron How review works
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
its where u can load images as voxels and if u wanna know how to convert images to into hexrows u need to find a site or me to convert the image to f3x you could ask me i dms for the site to convert the image into hex grids
-- LocalScript inside a ScreenGui (StarterGui)
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- Locate F3X SyncAPI ServerEndpoint (adjust path if your game renames BuildingTools)
local function getSyncEndpoint()
local tool = player.Backpack:FindFirstChild("Building Tools")
or (player.Character and player.Character:FindFirstChild("Building Tools"))
or ReplicatedStorage:FindFirstChild("BuildingTools")
if tool then
local syncApi = tool:FindFirstChild("SyncAPI")
if syncApi and syncApi:FindFirstChild("ServerEndpoint") then
return syncApi.ServerEndpoint
end
end
-- Fallback search across workspace/ReplicatedStorage if nested
for _, container in ipairs({ workspace, ReplicatedStorage, playerGui }) do
local found = container:FindFirstChild("ServerEndpoint", true)
if found and found:IsA("RemoteFunction") then
return found
end
end
return nil
end
-- Sample 12x12 voxel color map (nil/space = transparent/skip)
local SAMPLE_VOXELS = {
{ nil, nil, "FF595E", "FF595E", nil, nil, nil, nil, "FF595E", "FF595E", nil, nil },
{ nil, "FF595E", "FFCA3A", "FF595E", "FF595E", nil, nil, "FF595E", "FF595E", "FF595E", "FF595E", nil },
{ "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E" },
{ "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E" },
{ "FF595E", "FF595E", "1982C4", "1982C4", "FF595E", "FF595E", "FF595E", "FF595E", "1982C4", "1982C4", "FF595E", "FF595E" },
{ "FF595E", "FF595E", "1982C4", "FFFFFF", "FF595E", "FF595E", "FF595E", "FF595E", "1982C4", "FFFFFF", "FF595E", "FF595E" },
{ "FF595E", "FF595E", "FF595E", "FF595E", "FF595E", "8AC926", "8AC926", "FF595E", "FF595E", "FF595E", "FF595E", "FF595E" },
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







