View difference between Paste ID: YgC5SaNe and CCbfBA9z
SHOW: | | - or go back to the newest paste.
1
--SETTINGS--
2
notls="Script is not a LocalScript!"
3
--END SETTINGS--
4
function errorMsg(m)
5
msg=Instance.new("Hint", game.Players.player)
6
msg.Text=m
7
wait(4)
8
msg:remove()
9
print(script.Parent.Name..": "..m)
10
end
11
--Startup Placements
12
if script:IsA("LocalScript")then 
13-
script.Parent.Parent=game.Players.player.PlayerGui
13+
script.Parent.Parent=game.Players.LocalPlayer.PlayerGui
14
gui = script.Parent
15
playergui = gui.Parent
16
player = playergui.Parent
17
inf=gui.IntroFrame
18
--START INTRO--
19
for i=1,20 do
20
gui.IntroFrame.BackgroundTransparency=gui.IntroFrame.BackgroundTransparency-.7/20
21
wait()
22
end
23
inf.Label1:TweenPosition(UDim2.new(0,170,0,0),"Out","Quad",2,true)
24
wait(1)
25
inf.Label2:TweenPosition(UDim2.new(0,170,0,60),"Out","Quad",1)
26
wait(3)
27
inf.Label1:TweenPosition(UDim2.new(0,170,0,-43),"Out","Quad",1,true)
28
wait(.5)
29
inf.Label2:TweenPosition(UDim2.new(0,170,0,130),"Out","Quad",1)
30
wait(1)
31
inf.Label1.Visible=false
32
inf.Label2.Visible=false
33
wait(.5)
34
inf.Label3.Visible=true
35
gui:WaitForChild("MainScreen")
36
wait(3)
37
inf.Label3.Text="Loaded."
38
wait(1)
39
inf.Label3.Visible=false
40
for i=1,20 do
41
gui.IntroFrame.BackgroundTransparency=gui.IntroFrame.BackgroundTransparency+.7/20
42
wait()
43
end
44
gui.IntroFrame.Visible=false
45
--END INTRO
46
--START MAINSCREEN--
47
gui.MainScreen.Visible=true
48
else errorMsg(notls)
49
end