Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------<<<<<<[::Loading Screen Script::]>>>>>>---------------------------------------------------------
- local Players = game:GetService("Players")
- local ReplicatedFirst = game:GetService("ReplicatedFirst")
- local TweenService = game:GetService("TweenService")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- print("Service Successful")
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.IgnoreGuiInset = true
- ScreenGui.Parent = playerGui
- print("ScreenGui Successful")
- local frame = Instance.new("Frame")
- frame.Parent = ScreenGui
- frame.Size = UDim2.new(1,0,1,0)
- frame.BackgroundTransparency = 0
- frame.BackgroundColor3 = Color3.fromRGB(0,20,40)
- print("frame Successful")
- local textLabel = Instance.new("TextLabel")
- textLabel.Size = UDim2.new(1,0,1,0)
- textLabel.BackgroundColor3 = Color3.fromRGB(0,20,40)
- textLabel.Font = Enum.Font.GothamBold
- textLabel.TextColor3 = Color3.new(.8,.8,.8)
- textLabel.Text = "Loading"
- textLabel.TextSize = 28
- textLabel.Parent = frame
- print("TextLabel Successful")
- local loadingRing = Instance.new("ImageLabel")
- loadingRing.Size = UDim2.new(0,256,0,256)
- loadingRing.BackgroundTransparency = 1
- loadingRing.Image = "rbxassetid://4965945816"
- loadingRing.AnchorPoint = Vector2.new(0.5,0.5)
- loadingRing.Position = UDim2.new(0.5,0,0.5,0)
- loadingRing.Parent = frame
- print("LoadingRing Successful")
- ReplicatedFirst:RemoveDefaultLoadingScreen()
- print("Remove Deafult loading screen Unsuccessful")
- local tweenInfo = TweenInfo.new(4,Enum.EasingStyle.Linear,Enum.EasingDirection.In,-1)
- local tween = TweenService:Create(loadingRing,tweenInfo,{Rotation = 360})
- print("TweenService Successful")
- tween:Play()
- wait(5)
- if not game:IsLoaded() then
- game.Loaded:Wait()
- end
- loadingRing.Visible = false
- frame:TweenPosition(UDim2.new(0,0,1,0),"InOut","Sine",2)
- wait(2)
- ScreenGui:Destroy()
- print("Loaded LoadingScreen")
- print("Script Successful")
- ------------------------------<<<<<<<<<<<<<<<^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>>>>>>>>>>>>>>>-----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement