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

Why is simple tween - pos not working i have no idea could anyone help me?

local frame = game.StarterGui.Tutorial.Frame_Tutorial

frame:TweenPosition(UDim2.new(0.079, 0,0.098, 0),"Out","Quint",1)

1 answer

✓ Accepted answer

You cannot use startergui when manipulating the gui. You must use PlayerGui as such. You must have the script located as a local script inside StarterPlayerScripts so that it is inside the Player


local player = game.Players.LocalPlayer
local frame = player.PlayerGui:WaitForChild("Tutuorial"):WaitForChild("Frame_Tutorial")

frame:TweenPosition(UDim2.new(0.079, 0,0.098, 0),"Out","Quint",1)

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