local Jumpscare = script.Parent.Frame
local ClickPart = game.Workspace.SCP000Keyboard.ProximityPrompt
local JumpscareSound = script.Parent.SCP000JUMPSCARE
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:FindFirstChildOfClass("Humanoid")
Jumpscare.Visible = false
ClickPart.Triggered:Connect(function()
Jumpscare.Visible = true
JumpscareSound:Play()
wait(1.3)
Jumpscare.Visible = false
if humanoid then
humanoid.Health = 0
end
end)
COMMUNITY QUESTION
Proximity Button wont kill after jumpscare, how to resolve?
2 answers
Try removing the if statement and are there any errors?? also on line 8 you can try filling in the () with (plr) It may help.
Hope this helps!!
I believe its due to the fact that your character isn't updating after death. I've had this problem before as well and don't know why, as most people say it should be fine but if you simply add this somewhere in the script, preferably at the bottom it should work.
player.CharacterAdded:Connect(function(newCharacter)
character = newCharacter
end)
Also, killing someone from the client isn't the best approach, especially if the server sizes are greater than 1.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Also if there are no errors try adding print("Test") around your script to try debugging