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

finding the right side of a gui element?

Asked by 8 years ago

so i have an 'if' thingy in my really simple collision detection script i need to find the right side of an object: 6>math.abs(script.Parent.p.Position.X.Offset+110-v.Position.X.Offset)

but the thing is, it says it has collided on the LEFT side even though i am trying to detect the RIGHT side

and when i test it out the one moving left goes all the way through the stationary one until it hits the right side

0
nvm i fixed it LittleLumpOfButter 5 — 8y

Answer this question