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

Help me with my code, how do i move it without messing up? i don't understand it

Asked by 6 years ago

So whenever i move my mouse it goes with it but it doesn't go stud by stud it goes randomly like (2 studs and then 3 studs sometimes 4 studs) can someone help me?

if mouse.Target.Name == "Baseplate" then
part.CFrame = CFrame.new(Vector3.new(math.floor(mouse.Hit.p.X), math.floor(mouse.Hit.p.Y + 2), math.floor(mouse.Hit.p.Z)))  
end
0
Looks like that p.Y+2 that might be the problem Carforlife1 59 — 6y
0
Haha, the size of the part was the problem InfernosRbx 0 — 6y
0
Sorry for taking your time InfernosRbx 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

The size of the part was the problem,Sorry

Ad

Answer this question