#[Solved] How to :WaitForChild but not for childs but for properties
35 messages · Page 1 of 1 (latest)
@opal prism union2 == nil
It’s not the property
If the property isn’t there then it will say something like “(property) isn’t apart of (dotnav to instance)”
but the union will be there
** You are now Level 10! **
100%
it just changes the properties too fast
that's why I need somethink like waitforchild
union2 is a part
the code works just fine. I'm adding this if someone spams the cut
ok I'll print it
If it returns nil then I owe an apology
it tries to change the CanCollide but can't find it because the union still don't exist
The second it indexes nil it errors
Then add a wait in so it waits for the union to exist
I'll try to move those lines down
Or just add a wait in so it waits for the union to exist
adding a wait will kinda break all the smoothness
You just need to yield until the union is added
what is yield
It’s like wait()
Yielding means temporarily stopping
Then we can make the script wait until certain things have happened
e.g. plr.CharacterAdded:Wait() —yields until player has a character
No pcall calls a function but doesn’t stack end scripts on errors
Event:Wait() yields until the event fires
I ended up with "if union1 then else return end"