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

Code running on it's own? An auto run issue in the startergui and workspace?

Instead of waiting to be placed in the player's GUI, it runs on it's own in starter GUI. Am I forgetting something?

print("Function starting....")
Vinny = script.Parent

Vinny.BackgroundTransparency = 1
	wait (0.1)

print("Function ending....")

script:Destroy()

1 comment

0

Everything from StarterGui is automatically cloned to the player's gui.

1 answer

It looks like you've misplaced the wait() there.

print("Function starting....")
Vinny = script.Parent

wait(0.1) -- It should be here (Before making the Gui transparent)
Vinny.BackgroundTransparency = 1
-- Not here (Not after making the Gui transparent)

print("Function ending....")

script:Destroy()

Self-explanatory.

3 comments

0

wat

0

That is not really my issue. My issue is that it is running before it goes into the player GUI. Since I leave it in a brick in the workspace, or in starter GUI. It still runs on it's own.

0

Scripts don't run in the StarterGui.

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