this is my first time working with filtering enabled, ive made a few small games in the past but nothing good
i made a text button gui that when clicked should kill the player. This is what im having trouble with. (feel free to call me a noob) but i cant seem to figure out how to make it function as it should, here's the script.
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function()
local LocalPlayer = game.Players.LocalPlayer
LocalPlayer.Health = 0
end)
i know its sad i cant get the simplest function to work but eh i guess we all start somewhere
thanks for the help in advance!

2 comments
Wait. If your a noob then how do you know how to use events lol?
if you are trying to effect a "humanoid" you must mention it in your code.