Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

2 comments

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.

0

Thanks bro.

1 answer

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

3 comments

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.

0

Okay. Sorry, but I don't believe I'm able to help you there. I've never even attempted to create one.

0

It's okay, anyways thanks.

This discussion is preserved as it was. New answers, comments, and votes are closed.