I'm trying to make a "Random even script" in where it takes a random gui from Lighting, clones it, then parents it to startergui. For some reason it wont work pls help.
-- Just Place this in game.Workspace and edit like you need -- Made by DraketehDark
wait(0.5) --Half a sec?
while true do
local i = math.random(1)
wait(i * 10) --Time to wait between events
i = math.random(1) --Change value if you need more events
--First Event
if i == 1 then
wait(3)
local m = game.Lighting.Randomgui:Clone()--Change ??? to whatever the model's name and it MUST be in Lighting
m.Parent = game.StarterGui
--2nd Event
end
end

1 comment
Probably better you place your GUI in ServerStorage and bring it from there. The service is made for this type of situation.