Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Loading screen bar won't size?

Asked by 5 years ago
Edited 5 years ago

I'm trying to make a random loading screen for a test. The bar in the loading screen won't size (tweensizing). Also there are no errors.

--LOCAL SCRIPT--

wait()

    game.ReplicatedStorage.RemoteEventz:WaitForChild("guistartSize").OnClientEvent:Connect(function(tweenprop, wshumanoidonJoined)
        game:GetService("StarterGui"):SetCoreGuiEnabled("All",(false)
    game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (wshumanoidonJoined)
    script.Parent.LittleGreen:TweenSize(UDim2.new(0,498,0,61),"In","Quart",tweenprop)
   if script.Parent.LittleGreen.Size.Y == UDim2.new(0,0,0,61) and script.Parent.LittleGreen.Size.X == UDim2.new(0,498,0,0) then
        script.Parent.BackgroundTransparency = .1
            wait(.8)
        script.Parent.BackgroundTransparency = .2
            wait(.8)
        script.Parent.BackgroundTransparency = .3
            wait(.8)
        script.Parent.BackgroundTransparency = .4
            wait(.8)
        script.Parent.BackgroundTransparency = .5
            wait(.8)
        script.Parent.BackgroundTransparency = .6
            wait(.8)
        script.Parent.BackgroundTransparency = .7
            wait(.8)
        script.Parent.BackgroundTransparency = .8
            wait(.8)
        script.Parent.BackgroundTransparency = .9
            wait(.8)
        script.Parent.BackgroundTransparency = 1
            wait(.8)
        game:GetService("StarterGui"):SetCoreGuiEnabled("All",(true)
    end
end)
--SERVER SCRIPT--

wait()

game.ReplicatedStorage.RemoteEventz:WaitForChild("guistartSize")

game.Players.PlayerAdded:Connect(function(plr)

game.ReplicatedStorage.RemoteEventz.guistartSize:FireClient(plr, 1.8, 0)
end)
0
Are you sure about the "no errors" part? I found a syntax error while reading through the first script. Optikk 499 — 5y
0
There's no error in the output though. InstantManager 27 — 5y
0
Have you heard about a for loop? User#21908 42 — 5y

Answer this question