Hello, there!
Currently, in Roblox Studio, I decided to make a little system that can slightly simulate the idea of the Roblox logo rotating once joining an experience and waiting for the game to be loaded in…
While putting upon the script to as well as change its TweenSize to 180 until 720, the last rotation value, 720, should’ve printed events saying that is loaded + changed the title of the TextLabel. However, testing by myself multiple times, either gives me an error throughout the Output or skips right away.
local RobloxLogo = script.Parent
local MainGui = game.StarterGui.MainGui
local LoadingFrame = MainGui.MainFrame.LoadingFrame
local LoadingFrameText = LoadingFrame.TextLabel
while true do
wait(0.01)
RobloxLogo.Rotation = script.Parent.Rotation + 1
print(RobloxLogo.Rotation)
if RobloxLogo.Rotation == 90 then
wait(1)
RobloxLogo:TweenSize(UDim2.new(0, 150, 0, 150), "Out", "Quad", 1)
wait(3.5)
RobloxLogo:TweenSize(UDim2.new(0, 100, 0, 100), "Out", "Sine", 1)
end
if RobloxLogo.Rotation == 180 then
wait(1)
RobloxLogo:TweenSize(UDim2.new(0, 150, 0, 150), "Out", "Quad", 1)
wait(3.5)
RobloxLogo:TweenSize(UDim2.new(0, 100, 0, 100), "Out", "Sine", 1)
end
if RobloxLogo.Rotation == 360 then
wait(1)
RobloxLogo:TweenSize(UDim2.new(0, 150, 0, 150), "Out", "Quad", 1)
wait(3.5)
RobloxLogo:TweenSize(UDim2.new(0, 100, 0, 100), "Out", "Sine", 1)
end
if RobloxLogo.Rotation == 720 then
wait(1)
RobloxLogo:TweenSize(UDim2.new(0, 150, 0, 150), "Out", "Quad", 1)
wait(3.5)
RobloxLogo:TweenSize(UDim2.new(0, 100, 0, 100), "Out", "Sine", 1)
wait(5)
local LoadingFrameText = "Carregado!" -- Carregado = Loaded
if LoadingFrameText == "Carregado!" then
print("Loaded")
LoadingFrame:Destroy()
else
print("Error")
end
end
end
As the result, I was wondering if anyone can help me to make the rotation stop once at 720 and fire other events…
