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
codeOpenbutton.MouseButton1Up:Connect(function()
Code.Visible = true
Code:TweenSizeAndPosition{
UDim2.new(0.471, 0, 0.284, 0),
UDim2.new(0.277, 0, 0.991, 0),
"Out",
"Quad",
.5,
false
}
end)
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