for i,v in pairs(workspace:GetChildren()) do
if v.Name == "Intersection" or v.Name == "Road" then
print("one")
local y = v.Size.X
local z = v.Size.Z
local t = v.Position.X
local o = v.Position.Z
local gui = Instance.new("ImageLabel", script.Parent)
gui.Parent = script.Parent.Frame
gui.Size = UDim2.new(0,y,0,z)
gui.Position = UDim2.new(0,t + 350,0,o + 350)
gui.BackgroundColor3 = Color3.new(1,1,1)
gui.ZIndex = 4
end
end
this is my attempt for turning a map (road map) into an in-game GUI of that map, but it really falls short on rotations and stuff like that.
Visual representation: https://gyazo.com/72290dea976f64d1686377c851786ef8 turns into... https://gyazo.com/1773b5ee8e81e104989156602f69ecef
