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

What math things should fix it?

Asked by 8 years ago

So uhm.. I have a script, where you can take items from your inventory and place them onto your base. For some reason, what I can't figure out, objects with bigger than 4x4 size hitboxes, they go over my base border. Can someone help me? Thanks!

if mouse.Hit.p.X > planet.Position.X - 48  and mouse.Hit.p.X < planet.Position.X + 49 and mouse.Hit.p.Z > planet.Position.Z - 48 and mouse.Hit.p.Z < planet.Position.Z + 49 then

Answer this question