Why won't the sword swing animation play in a regular Roblox game?
Hi, so I'm trying to script a sword with animations, and it works perfectly fine in studio, even when doing the multiplayer test, but when I enter the actual Roblox client, it won't play the animations, the sword still detects me clicking on the server script (which deals damage), so I know thats working. The local script could't be doing anything for all I know. Heres the code:
In the serverScript:
02 | if script.Parent.Attacking.Value = = false then |
03 | script.Parent.Attacking.Value = true |
05 | script.Parent.Attacking.Value = false |
09 | if script.Parent.Hitting.Value = = false then |
10 | if script.Parent.Attacking.Value = = true then |
12 | hit.Parent.EnemyHumanoid.Health = hit.Parent.EnemyHumanoid.Health - 10 |
13 | script.Parent.Hitting.Value = true |
15 | script.Parent.Hitting.Value = false |
21 | script.Parent.Handle.Touched:Connect(touch) |
22 | script.Parent.Activated:Connect(OnClick) |
And in the localScript:
04 | Anim = script.Parent.Parent.Humanoid:LoadAnimation(script.Parent.Animation) |
11 | if script.Parent.Attacking.Value = = false then |
24 | script.Parent.Equipped:Connect(Equip) |
25 | script.Parent.Activated:Connect(onClick) |
Any help wpuld be usefull, thanks.