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

This part dragging script stays in one position only?

So this part moving script works completely, but if I try to move then it still stays in the same position.

Mouse = game.Players.LocalPlayer:GetMouse()
Mouse.TargetFilter = workspace.Part
workspace.Part.BodyPosition.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
Mouse.Move:connect(function()
	char = game.Players.LocalPlayer.Character
	local object = workspace.Part
	local Ray = Ray.new(char["Left Arm"].Position, Mouse.Hit.p.unit * 10)
	print(Ray)	
	object.BodyPosition.Position = Ray.Direction
end)

1 answer

✓ Accepted answer

Check to see if the Part is welded to anything (ex the Baseplate) - this would happen automatically if the baseplate has studs on top and the Part has inlets on the bottom (which is the default if you just place a part into the workspace). If it's a lone part, try calling :BreakJoints() on it at the beginning of the script.

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