I have a regenerate script that would regenerate models after a certain time. I want to set it so it would enable a Gui from the script right after regenerating. I have tried multiple times but can't get it to enable. Please help, thanks. Here's what i have:
object = script.Parent
if (object ~= nil) and (object ~= game.Workspace) then
model = object
local message = game.workspace.StarterGui.Regen
message.Enabled = false
backup = model:clone() -- Make the backup
waitTime = 8 --Time to wait between regenerations
wait(math.random(0, waitTime))
while true do
wait(waitTime) -- Regen wait time
model:remove()
wait(4.5) -- Display regen message for this amount of time
model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
message.Enabled = true
end
end

8 comments
Okay, so now i understand that i have to go to PlayerGui instead of StarterGui. But instead of making the script go to just one player, i want to make it go to every player in game. I tried game.Players.LocalPlayer.PlayerGui.Regen and it didn't work. Btw, when i put my player name in the space, (in studio it's Player1) it still didn't work.
Oh okay give me a sec, can you give me access to your game?
are you using local script?
Mayk simply do this
Do you still need access to my game? I'm still kinda confused with this. I'm not a very good scripter
By the way, "Regen" was a GuiMain but i changed it
Changed it into a ScreenGui
Also, the script is in workspace because what i'm trying to do is i'm trying to have it regenerate a model and as the model regenerates, i want that gui to show on screen for a certain amount of time.