yes but im not sure of the solution. to be honest i didnt see any before. heres the error: Workspace.Part.Door.Script:1: attempt to index nil with ‘WaitForChild’
script.Parent.Triggered:Connect(function(plr)
local ui = plr:WaitForChild('PlayerGui'):WaitForChild("ScreenGui"):WaitForChild("Die")
local menu = plr:WaitForChild('PlayerGui'):WaitForChild("ScreenGui"):WaitForChild("Menu")
print("hit")
script.Parent.Gunshot:Play()
ui.Visible = true
wait(0.5)
menu.Visible = true
print("everything good")
local character = plr.Character or plr.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
humanoid.Health = 0
print("HOPE")
end)