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

[Solved] Correct Position But Wrong Place Weird Problem?

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by 5 years ago

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

Ad

Answer this question