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

What's wrong with this script?

There's two things you should know:

This script is called, IntroGui and it's in Workspace. The IntroGui itself is in StarterGui, when I tried too run it, it said the first line had a mistake, what's the problem?

local Intro = script.Intro:Clone()
game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:wait()
	Intro:Clone().Parent = player.PlayerGui
end)

1 comment

0

If the answer helped, you should mark it as accepted so other people know the problem is solved

2 answers

✓ Accepted answer

You said the IntroGui is in the StarterGui, so why are you using script.Intro to refer to it?

local Intro = game.StarterGui.IntroGui:Clone()

But, if it's in the StarterGui, then every new player (and upon every death) will have it anyway. You should really put it in one of the Storage services.

The problem is the script is that near the end you added this ")", and you need the delete that.

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