Player = game.Players.LocalPlayer Spawn2 = game.Workspace.Spawn5 NonseenScreen = game.Players.LocalPlayer.PlayerGui.LocalArea1.NonseenScreen LocalArea = game.Players.LocalPlayer.PlayerGui.LocalArea1.LocalArea Status = script.Parent.NonseenScreen.Status HasPressedTeleport = false function MouseEnterLocalArea() LocalArea.FontSize = "Size36" LocalArea.BackgroundTransparency = 0 end function MouseLeftLocalArea() LocalArea.FontSize = "Size24" LocalArea.BackgroundColor3 = Color3.new(0, 0, 0) LocalArea.BackgroundTransparency = 0.1 end function TeleportPlayer() if HasPressedTeleport == false then NonseenScreen.Transparency = 1 wait(0.1) NonseenScreen.Transparency = 0.9 wait(0.1) NonseenScreen.Transparency = 0.8 wait(0.1) NonseenScreen.Transparency = 0.7 wait(0.1) NonseenScreen.Transparency = 0.6 wait(0.1) NonseenScreen.Transparency = 0.5 wait(0.1) NonseenScreen.Transparency = 0.4 wait(0.1) NonseenScreen.Transparency = 0.3 wait(0.1) NonseenScreen.Transparency = 0.2 wait(0.1) NonseenScreen.Transparency = 0.1 wait(0.1) NonseenScreen.Transparency = 0 wait(0.5) Player.Character:MoveTo(Spawn2.Position) wait(0.5) Status.Transparency = 1 wait(0.1) NonseenScreen.Transparency = 0 wait(0.1) NonseenScreen.Transparency = 0.1 wait(0.1) NonseenScreen.Transparency = 0.2 wait(0.1) NonseenScreen.Transparency = 0.3 wait(0.1) NonseenScreen.Transparency = 0.4 wait(0.1) NonseenScreen.Transparency = 0.5 wait(0.1) NonseenScreen.Transparency = 0.6 wait(0.1) NonseenScreen.Transparency = 0.7 wait(0.1) NonseenScreen.Transparency = 0.8 wait(0.1) NonseenScreen.Transparency = 0.9 wait(0.1) NonseenScreen.Transparency = 1 wait(0.1) end end LocalArea.MouseEnter:connect(MouseEnterLocalArea) LocalArea.MouseLeave:connect(MouseLeftLocalArea) LocalArea.MouseButton1Down:connect(TeleportPlayer)
~~~~~~~~~~~~~~~~~
Line 26 to 73 can be replaced with a new IntValue's value. Maybe I can help :)
And that is BackgroundTransparency. NOT Transparency.
Put a new thing in first line :
IntValue = Instance.new("IntValue",workspace) IntValue.Value = 1
DELETE line 6 AND line 25, it's useless.
Makes an IntValue can help you shortcut's the line 26 to line 73. IntValue's value always the
Ok, replace line 26 to line 73 like this :
repeat -- repeats IntValue.Value = IntValue.Value + .1 -- adds IntValue's Value 0.1 NonseenScreen.BackgroundTransparency = IntValue.Value -- Make the NonseenScreen's background transparency equals to IntValue's value. wait(.1) -- wait(0.1) seconds. [.1] is a shortcut from [0.1]. until IntValue.Value > 1 -- repeat until the IntValue.Value higher than 1. Player.Character:MoveTo(Spawn2.Position) -- Teleport the player to Spawn2's position repeat -- repeat again IntValue.Value = IntValue.Value - .1 -- 'delete' IntValue's Value 0.1 NonseenScreen.BackgroundTransparency = IntValue.Value -- Make the NonseenScreen's background transparency equals to IntValue's value. wait(.1) -- wait(0.1) seconds. [.1] is a shortcut from [0.1]. until IntValue.Value < 0 -- repeat until the IntValue.Value lower than 0
No comment mode :
repeat IntValue.Value = IntValue.Value + .1 NonseenScreen.BackgroundTransparency = IntValue.Value wait(.1) until IntValue.Value > 1 Player.Character:MoveTo(Spawn2.Position) repeat IntValue.Value = IntValue.Value - .1 NonseenScreen.BackgroundTransparency = IntValue.Value wait(.1) until IntValue.Value < 0
Hope I helped, good night and bye :3