Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

2 comments

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.

0

Sorry but it has no errors. it just needed to be local script instead of normal script.

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.