Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

So I was thinking how could I convert Vector3 to UDim2?

Asked by 6 years ago

This is the script I use now... tho it doesn't work.

plr = game.Players.LocalPlayer
chr = plr.Character
while true do 
    wait()
    script.Parent.Position = chr.HumanoidRootPart.Position
end

So I want a frame to move as character moves, tho I can't do it cause gui uses UDim2, not Vector3. So I was thinking is there a way to covert Vector3 to UDim2.

0
No indepth answer but forget UDim2; UDim2 sans scaling is simply Vector2. To convert Vector3 to Vector2 you remove Z of course. Then scale to your map. cabbler 1942 — 6y
0
Thanks bro. BANSA168 15 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

You cannot convert Vector3 to UDim2, but please explain what you want the frame to do in more depth.

0
So I want to make a map gui, and that frame should be character position. So however I move that frame should move the same way as me. BANSA168 15 — 6y
0
Okay. Sorry, but I don't believe I'm able to help you there. I've never even attempted to create one. Conquesias 85 — 6y
0
It's okay, anyways thanks. BANSA168 15 — 6y
Ad

Answer this question