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

Why does my UDim2.new animations only work in Roblox Studio & not RobloxPlayerBeta.exe?

Asked by 7 years ago
Edited 7 years ago

I have many scripts...

Here are all of them:

Normal Scripts

1

local i = 0
local label = script.Parent.TextLabel
local button = script.Parent.TextButton
local changebutton = script.Parent.Changelog
local backbutton = script.Parent.Back
local loader = script.Parent.ButtonText

button.Active = false
changebutton.Active = false
backbutton.Active = false

for n = 0, 29 do
    label.Text = "Loading.. ".. i .. "%"
    i = i + 1
    loader.Size = UDim2.new(0, i*2, 0, 50)
    wait(0.0015)
    wait(math.random(0.1,0.5)) -- For now fast. Later a bit slower. when I get save/load slow.
end

for n = 29, 50 do
    label.Text = "Loading.. ".. i .. "%"
    i = i + 1
    loader.Size = UDim2.new(0, i*2, 0, 50)
    wait(0.023)
    wait(math.random(0.2,0.5)) -- For now fast. Later a bit slower. when I get save/load slow.
end

for n = 50, 77 do
    label.Text = "Loading... ".. i .. "%"
    i = i + 1
    loader.Size = UDim2.new(0, i*2, 0, 50)
    wait(0.042)
    wait(math.random(0.4,0.5)) -- For now fast. Later a bit slower. when I get save/load slow.
end

for n = 77, 86 do
    label.Text = "Loading... ".. i .. "%"
    i = i + 1
    loader.Size = UDim2.new(0, i*2, 0, 50)
    wait(0.055)
    wait(math.random(0.4,0.5)) -- For now fast. Later a bit slower. when I get save/load slow.
end

for n = 86, 91 do
    label.Text = "Loading... ".. i .. "%"
    i = i + 1
    loader.Size = UDim2.new(0, i*2, 0, 50)
    wait(0.075)
    wait(math.random(0.4,0.5)) -- For now fast. Later a bit slower. when I get save/load slow.
end

for n = 91, 95 do
    label.Text = "Loading... ".. i .. "%"
    i = i + 1
    loader.Size = UDim2.new(0, i*2, 0, 50)
    wait(0.13)
    wait(math.random(0.42,0.5)) -- For now fast. Later a bit slower. when I get save/load slow.
end

label.Visible = false
button.Visible = true
changebutton.Visible = true
loader.Visible = false
wait(0.1)
button:TweenPosition(UDim2.new(0.5, 0, 0.47, 0), "Out", "Quad", 1)
changebutton:TweenPosition(UDim2.new(0.5, 0, 0.55, 0), "Out", "Quad", 1)
wait(.1)
button.Active = true
changebutton.Active = true
0
Please make clear what the problem is, you haven't given us anything to work with such as errors or what it actually does. General_Scripter 425 — 7y
0
Sorry but it has no errors. it just needed to be local script instead of normal script. MineJulRBX 52 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

Answered in discord. His problem was that he used server scripts instead of local scripts when trying to manipulate the UI.

Ad

Answer this question