I have this portion of my script:
player.CharacterAdded:connect(function(character) print("I like bananas") character:WaitForChild("UpdateHealth"):FireClient(player) end)
It's in a LocalScript
It won't work for some reason.
And It won't even fire the print line.
What's wrong with it?
It probably won't help but why are you using a RemoteEvent instead of a BindableEvent? Change the UpdateHealth RemoteEvent to a BindableEvent and then change the recieving end of the event to:
script.Parent:WaitForChild("UpdateHealth").Event:connect(function() -- Run your code here end)
And change the firing script to:
player.CharacterAdded:connect(function(character) print("I like bananas") character:WaitForChild("UpdateHealth"):Fire() end)