Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does the GUI isn't a valid member of replicated storage ?

local player = game.Players.LocalPlayer
local playergui = player:WaitForChild("PlayerGui")
local RubleGUI = game.ReplicatedStorage.RubleGui
while true do 
if not playergui:FindFirstChild(RubleGUI.name) then
         wait(5)
      local clone = RubleGUI:Clone()
       clone.parent = playergui
       wait(3)
        clone:Destroy()
end
end

Im making a simple script where every 5 seconds a GUI pops up , but instead it says that 21:04:10.086 - RubleGui is not a valid member of ReplicatedStorage . I have the ScreenGui clearly inside the replicated storage . Can anybody help ?

1 comment

0

Double check spelling

1 answer

✓ Accepted answer

#:WaitForChild('obj')

Try using waitforchild, maybe it's not the solution but try it. It may not have loaded in yet!

CHEERS

This discussion is preserved as it was. New answers, comments, and votes are closed.