Why is my animation loading in ROBLOX Studio but not ROBLOX itself?
This script works in ROBLOX Studio, but not in ROBLOX itself.
03 | player = game.Players.LocalPlayer |
04 | mouse = player:GetMouse() |
06 | h = player.Character:WaitForChild( "Humanoid" ) |
08 | Sweep = h:LoadAnimation(script.Parent.Sweep) |
10 | script.Parent.Equipped:connect( function () |
14 | script.Parent.Unequipped:connect( function () |
18 | mouse.Button 1 Down:connect( function () |
19 | if eq = = true and using = = false then |
22 | script.Parent.Dust.ParticleEmitter.Enabled = true |
24 | script.Parent.Dust.ParticleEmitter.Enabled = false |
Any help on why this error is occurring?