#my script makes the game output go "attempt to index with nil"

1 messages · Page 1 of 1 (latest)

onyx oxide
winged monolith
#

that means it hasnt be loaded in yet

onyx oxide
#

then do the action

silk adder
#

Wait for child

onyx oxide
#

funny enough

#

when i put waitfor child

#

it still says the error message

silk adder
#

I didn't read the code btw am on phone can't open

#

Can u ss

#

From studio

silk adder
#

Ye that's not how to use ts

lament lichenBOT
#

studio** You are now Level 34! **studio

silk adder
#

Epic fail

onyx oxide
silk adder
#

Also why r u accessing starter gui

onyx oxide
#

i wanna like

#

when 5 second occour the function happens.

silk adder
#

Player GUI exists

onyx oxide
#

when it happens it enables an script

onyx oxide
silk adder
#

U using startergui

#

In one place

onyx oxide
#

wdym

silk adder
#

Local ui

#

U using startergui

lilac gate
#

local ui = localp:WaitForChild('PlayerGui').MessageZombie --odk what this does localp:WaitForChild('PlayerGui'):WaitForChild("Zombie").Frame.F.LocalScript.Enabled = true
ui.Enabled = true

#

something like that idk vroski

#

btw do u mean ui.Visible?

onyx oxide
#

message zombie imitates the deprecated hint

lilac gate
#

sowwy dude im on mobile 💔💔

onyx oxide
#

*message

pearl wing
silk adder
#

Show

onyx oxide
#

u saying that because you couldnt do any better or wha

#

its not even chat gpt code broski...

pearl wing
lilac gate
#

What a humble guy🥲🥲👏👏

onyx oxide
lilac gate
#

the message zombie is the screen guis name right?

onyx oxide
#

and its two different screenguis

#

zombie and messagezombie

lilac gate
#

man nothing looks wrong in that line ahh

onyx oxide
lilac gate
#

yeah I know I'm just a bit stupeed and can't figure it out

silk adder
onyx oxide
#

wdym

#

0

lilac gate
#

Just put WaitForChild() everywhere 🤞🤞🤞❤️‍🩹❤️‍🩹

main swan
# onyx oxide

u cant get player using Players.LocalPlayer inside a server script

lilac gate
#

Holy shit

#

I just realised it's a server script

onyx oxide
#

actually...

#

nevermind

#

im using ipairs