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

[Solved] Correct Position But Wrong Place Weird Problem?

Hey! I have a little script it should work but not work correctly. I'm finding 2 vector3 variable from my rectangle.

local topLeft = Vector3.new((script.Parent.Position.X + (script.Parent.Size.X/2)),0,(script.Parent.Position.Z + (script.Parent.Size.Z/2)))
local bottomRight = Vector3.new((script.Parent.Position.X - (script.Parent.Size.X/2)),0,(script.Parent.Position.Z - (script.Parent.Size.Z/2)))

print(topLeft)
print(bottomRight)

When i type printed positions to my parts they are going to correct place. There is no problem. But here is the rest of my code

workspace.point.Position = topLeft
workspace.pointTwo.Position = bottomRight

my debug objects called "point" and "pointTwo" is going weird places. When i copy printed value and paste it to position of point and pointTwo it's fine. Why it's not working ? Am i doing something wrong ?

1 answer

I don't know why but it's working now.. I'm so sorry for this false post.Thanks!

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