Made a sword with an animation. It is supposed to make an animation when you are activating the tool. In studio mode it works, but in playmode it doesn't

Sword = script.Parent
Sword.Activated:connect(function()
	for i = 1, 10 do
		RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -0.15)
		game:GetService("RunService").Stepped:wait()
	end
	for i = 1, 10 do
		RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0.15)
		game:GetService("RunService").Stepped:wait()
	end
end)

2 comments

0

This is in a local script, correct?

0

Yes, it is.