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

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


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

3 comments

0

Looks like that p.Y+2 that might be the problem

0

Haha, the size of the part was the problem

0

Sorry for taking your time

1 answer

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