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

This works in studio mode, but not in play mode?

Asked by 8 years ago

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)

0
This is in a local script, correct? BlackJPI 2658 — 8y
0
Yes, it is. LightModed 81 — 8y

Answer this question