#event providing Nil
45 messages · Page 1 of 1 (latest)
this works when I add like a wait(25) to the first script for some reason
but I cant just add a 25 second wait gap between the door getting destroyed
Huh are you sure??
I really have no idea whats going on im not that good at scripting
let me retry
Because if you pass an instance as an argument, roblox will deserialize it into a string
not deserialize just converts it into a string
thats what iknow
try printing one
alright ima try that
does nothing..?
on the local script
local event = game.ReplicatedStorage:WaitForChild("DoorEvent")
event.OnClientEvent:Connect(function(One)
print(One)
print(typeof(One))
if script.Parent.Parent.leaderstats.Stage.Value == 1 then
One:Destroy()
end
end)
I did this
yea
did that
what does it print
Nothing
wdym, are you not fireing the remote
thats what im wondering I did trigger the proximityprompt
oh wait nvm I just didnt have 300 coins
It does say instance
not string
and it also says the instance name
and it still says nil
No it destroyed it now
...
WELL WHAT THE HELL JUST HAPPEND
what did u even change
oh shit wait
I added :waitforchild in the server script
maybe the door wasnt loading
oke
like child in workspace takes some time after the game is launched
tysm for ur help
U kinda solved it on ur own