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

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

Asked by 5 years ago
local frame = game.StarterGui.Tutorial.Frame_Tutorial

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

1 answer

Log in to vote
1
Answered by
AltNature 169
5 years ago

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)
Ad

Answer this question