hello, im am Tomekcz and i need your help with those scripts it works in roblox studio but not in game
script in StarterCharacterScripts
module = require(script.attacks)
RemoteEvent = game.ReplicatedStorage.Attack
RemoteEvent.OnServerEvent:Connect(function(player)
module.NormalFirstAttack(player)
end)
module script in script
local module = {}
function module.NormalFirstAttack(player)
animation = player.Character.Humanoid
animationPlay = animation:LoadAnimation(script.NormalAttack)
animationPlay.Priority = Enum.AnimationPriority.Action
animationPlay:Play()
end
return module
local script in starterCharacterScripts
local module = {}
function module.NormalFirstAttack(player)
animation = player.Character.Humanoid
animationPlay = animation:LoadAnimation(script.NormalAttack)
animationPlay.Priority = Enum.AnimationPriority.Action
animationPlay:Play()
end
return module

1 comment
Thanks, i realized animation won't work becouse my script is broke and i used it at friends place (cannot use animations at friends place idk why)