Tween Not working

Why tween Not working?
Thnx in Advance

Where is the local script located?

Since you are referring to the StarterGui, which is not the PlayerGui, it is not going to do anything. Here is the correct code:

local codeOpenbutton = script.Parent
local player = game.Players.LocalPlayer
local Code = player.PlayerGui.ScreenGui.Codes


    Code.Visible = true

    Code:TweenSizeAndPosition{, 0, 0.284, 0),, 0, 0.991, 0),
1 Like

Just replace this:

For this:

1 Like

Oh yes, thanks for that. I just had to rewrite the code and messed up there.

1 Like