I think its an Animation Priority error. But in roblox studio everything works correctly. ~~~~~~~~~~~~~~~~~
mouse.Button1Up:Connect(function() i dont showing full script. this script is inside tool
1 | if GunStatus then |
2 | game.ReplicatedStorage.Shoot:FireServer(mouse.Hit.p, script.Parent.Parent) |
3 | else |
4 |
5 | end |
end)
1 |
NormalAnim = script.Normal --in script witch is inside serverScriptService game.ReplicatedStorage.Eqquiped.OnServerEvent:Connect(function(player) local load = player.Character.Humanoid:LoadAnimation(NormalAnim) load.Priority = Enum.AnimationPriority.Action load.Looped = true load:Play()
end)
~~~~~~~~~~~~~~~~~
Hello, tomekcz;
The problem is your last script.
So, this is your script...
1 | NormalAnim = script.Normal --in script witch is inside serverScriptService game.ReplicatedStorage.Eqquiped.OnServerEvent:Connect(function(player) local load = player.Character.Humanoid:LoadAnimation(NormalAnim) load.Priority = Enum.AnimationPriority.Action load.Looped = true load:Play() |
2 |
3 | end ) |
I have managed to fix some problems...
1 | NormalAnim = script.Normal |
2 |
3 | game.ReplicatedStorage.SomeGear.Equipped.OnServerEvent:Connect( function (player) -- Hey, you cannot equip the ReplicatedStorage, change the "SomeGear" your weapon's name. |
4 |
5 | local load = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(NormalAnim) |
6 |
7 | load :Play() |
8 |
9 | end ) |
That is the best i could do in 2 mins, tell me more about your problems in the comments.