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
Double check spelling