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

Why is my animation loading in ROBLOX Studio but not ROBLOX itself?

Asked by 6 years ago

This script works in ROBLOX Studio, but not in ROBLOX itself.

01wait()
02using=false
03player=game.Players.LocalPlayer
04mouse = player:GetMouse()
05eq = false
06h = player.Character:WaitForChild("Humanoid")
07 
08Sweep = h:LoadAnimation(script.Parent.Sweep)
09 
10script.Parent.Equipped:connect(function()
11eq=true
12end)
13 
14script.Parent.Unequipped:connect(function()
15eq=false
View all 28 lines...

Any help on why this error is occurring?

Answer this question