Hello,
This is a really common error but it’s different for everyone so I am asking for help
Roblox is being super dumb right now and Is acting like my “PlayerStats” BillboardGui just doesn’t exist when it clearly does
im getting the “Attempt to index nil” B.S. in the output.
Please help.
2 Likes
ronaldbox
(Ronarudo)
August 29, 2023, 10:00pm
2
Are you accessing the stats for a server script or local script?
1 Like
I am using a server script
//////////
1 Like
ronaldbox
(Ronarudo)
August 29, 2023, 10:02pm
4
Have you tried putting the UI in ReplicatedStorage
Same error, sadly. (im getting “infinite yield” because of the waitforchild)
ronaldbox
(Ronarudo)
August 29, 2023, 10:05pm
6
Are those 2 items shown in the picture the onlly items in server storage?
Yes, they are the only items in server storage
ronaldbox
(Ronarudo)
August 29, 2023, 10:10pm
8
Check if the error is still there in runtime
SYNE_Dev
(SYNE)
August 29, 2023, 10:10pm
9
use :GetService() maybe:
local nameTag = game:GetService("ServerStorage"):WaitForChild("PlayerStats")
also, are you sure it’s a ServerScript? if yes than make sure there’s no script that removes it from the ServerStorage.
ronaldbox
(Ronarudo)
August 29, 2023, 10:11pm
10
Im guessing, the UI goes under the player on spawn, make sure the UI is cloned before parenting.
Still the same error
this is the first line of the script, so the UI has not been cloned nor parented to the player
ronaldbox
(Ronarudo)
August 29, 2023, 10:16pm
12
go into play > run and check if the ui is still there
1 Like
SYNE_Dev
(SYNE)
August 29, 2023, 10:17pm
13
Where is the script with this line located? Could you screenshot the whole error in the output? thanks
ronaldbox
(Ronarudo)
August 29, 2023, 10:17pm
14
Can you also show pic of the actual output message
ronaldbox
(Ronarudo)
August 29, 2023, 10:19pm
16
You sure there is no script moving or deleting the ui?
is archivable on
Archivable is off, and there is no script (that I know of) that is deleting it
ronaldbox
(Ronarudo)
August 29, 2023, 10:21pm
18
turn it on and test if its still not there
The UI is still not there
////
SYNE_Dev
(SYNE)
August 29, 2023, 10:22pm
20
go in studio and press the following keys: Shift + Control + F. It will open a tab to research specific code in all the scripts in your game. Now try playing with the words and do for example:
ServerStorage:WaitForChild("PlayerStats"):Destroy()
ServerStorage:WaitForChild("PlayerStats"):Remove()
ServerStorage.PlayerStats:Destroy()
ServerStorage.PlayerStats:Remove()
1 Like