Nevermind I fixed it, I just didn't need RemoteEvents So, I have this script where if you touch a door, it will play a knock knock sound, then after one second it explodes. Except it is not working. I am confused.
--Play sound script
local debounce = false
script.Parent.Touched:connect(function(hit)
if not debounce then
debounce = true
if(hit.Parent:FindFirstChild("Humanoid")~=nil)then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
local sound = script.Parent.Knoc --Removed space before end quotation mark
sound:Play()
wait(1)
script.Parent.WaitKid.Disabled = false
wait(30)
script.Parent.WaitKid.Disabled = true
end
debounce = false
end
end)
--local scriipt (isnide part)
local Remote = game.ReplicatedStorage:WaitForChild("EastEgg")
wait(1)
Remote:FireSever()
--SSS script
game.ReplicatedStorage.EastEgg.OnServerEvent:connect(function(plr)
local east = game.ReplicatedStorage:WaitForChild("EastEgg")
east.Disabled = false
wait(1)
east.Disabled = true
end)

2 comments
Theres is two possible reasons. First one being that the object hasnt loaded make sure you use waitforchild and the second is that Eastegg is misspelt or is not in replicatedtorage.
I am using WaitForChild