Hello Fellow Robloxians!
I seem to have a problem with my loading screen gui system. I want it to tween the size of this “frame” to the other size, but it seems to not do the tween; heres the script:
game.ReplicatedStorage.joined.OnClientEvent:Connect(function(plr)
local player = game.Players.LocalPlayer
if player then
local gui = player.PlayerGui.mucky_loading
local BO = gui:FindFirstChild("backdrop")
local inner = BO:FindFirstChild("holder")
local inset = inner:FindFirstChild("inset")
if inner then
local TweenService = game:GetService("TweenService")
local goalUp = { Size = UDim2.new({0, 720},{0, 20})}
local tween = TweenInfo.new(30)
local tweenup = TweenService:Create(inset, tween, goalUp)
gui.Enabled = true
inset.Size = UDim2.new({0, 0},{0, 20})
wait(0.1)
inset:TweenSize(UDim2.new({0, 120},{0, 20}))
wait(5)
inset:TweenSize(UDim2.new({0, 220},{0, 20}))
wait(5)
inset:TweenSize(UDim2.new({0, 320},{0, 20}))
wait(5)
inset:TweenSize(UDim2.new({0, 420},{0, 20}))
wait(5)
inset:TweenSize(UDim2.new({0, 520},{0, 20}))
wait(5)
inset:TweenSize(UDim2.new({0, 620},{0, 20}))
wait(5)
inset:TweenSize(UDim2.new({0, 720},{0, 20}))
wait(5)
gui.Enabled = false
end
end
end)
If you can help me, that will be amazing!