Making a moving dummy stop abruptly using ClickDetector

In the game I am making you use an item similar to the Golden Steampunk Glove gear to smack a dummy attached to a rope constraint on a floating part. For every smack you get more points. However I am experiencing a problem with my “Reset Dummy” button. I am unsure how to stop the movement of the dummy as well as return it to its original position. Any help would be greatly appreciated.

local gWD = game.Workspace.Dummy

script.Parent.ClickDetector.MouseClick:Connect(function(plr)
	gWD.HumanoidRootPart.Orientation = Vector3.new(0, 180, 0)
	gWD.HumanoidRootPart.Position = Vector3.new(32.6, 3.2, 28)
	gWD.Torso.Orientation = Vector3.new(0,180,0)
	gWD.Head.Orientation = Vector3.new(0,180,0)
	gWD["Left Arm"].Orientation = Vector3.new(0,180,0)
	gWD["Right Arm"].Orientation = Vector3.new(0,180,0)
	gWD["Left Leg"].Orientation = Vector3.new(0,180,0)
	gWD["Right Leg"].Orientation = Vector3.new(0,180,0)
	gWD.Torso.Position = Vector3.new(34, 5.05, 40.5)
	gWD.Head.Position = Vector3.new(34, 6.55, 40.5)
	gWD["Left Arm"].Position = Vector3.new(35.5, 5.05, 40.5)
	gWD["Right Arm"].Position = Vector3.new(32.5, 5.05, 40.5)
	gWD["Left Leg"].Position = Vector3.new(34.5, 3.05, 40.5)
	gWD["Right Leg"].Position = Vector3.new(33.5, 3.05, 40.5)
end)
1 Like

Try welding or anchoring it. (charr)

1 Like