I created a simple respawn button, that checks if the player is dead.
If so, it will apear and allow the player to click it.
It shows up but doesn’t detect any clicks.
local button = script.Parent
while task.wait() do
if game.Players.LocalPlayer.Character.Humanoid.Health == 0 then
button.Parent.Visible = true
else
button.Parent.Visible = false
end
end
button.Activated:Connect(function()
print("click")
game.ReplicatedStorage.LoadCharacter:FireServer(false)
end)
anyone knows why this happens?