Hey guys, so I asked a similar question a few days ago but never got a response. So I do a Team Create with some friends for our game, and my scripts work perfectly for me, but when they test it, it just doesn't work. They say there's nothing extra in output and nothing at all happens. Is there a reason for this? Here's an example of a script.
local isAnimating = false
script.Parent.Equipped:Connect(function(Mouse)
Mouse.Button1Down:Connect(function()
local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
if isAnimating == false then
animation:Play()
script.Parent.StickDamage.Disabled = false
isAnimating = true
wait(1)
script.Parent.StickDamage.Disabled = true
isAnimating = false
end
end)
end)

3 comments
https://developer.roblox.com/en-us/api-reference/event/Player/CharacterAdded this should work
Where is the local script located?
It's located directly in my tool in StarterPack, and it replicates to the player just fine