I am trying to update a guis position with math.random and it dosent work, just does the same position every time. Here's my script:
local Numbers = math.random(0.2,0.8)
script.Parent.Position = (UDim2.new(Numbers, 0, 0.8, 0))
script.Parent:TweenPosition(UDim2.new(Numbers,0,0.8),"In","Linear",1,true)
wait(0.1)
for i = 1,20 do
script.Parent.Text.TextStrokeTransparency = script.Parent.Text.TextStrokeTransparency +0.05
script.Parent.Text.TextTransparency = script.Parent.Text.TextTransparency +0.05
script.Parent.ImageTransparency = script.Parent.ImageTransparency + 0.05
wait(0.05)
end
script.Parent:Destroy()
Idk whats wrong here.

2 comments
Is the "local Numbers = math.random(0.2,0.8)" in some type of loop or is it being called every time it's used. If you have nothing to reset the math.random the numbers will stay the same from the first time it picked them
Don't forget to accept my answer if it helps out.