Hey guys! I’m trying to Tween a GUI but I got a problem, when I try to Tween it, it gives me an error saying:
Players.(MyName).PlayerGui.TweeningGui.TweeningShadow.TweenShadow:10: attempt to call a table value
I know there is a lot of good people in the devforum, so if you that can give me a hand with this , I’ll appreciate your help very much, have a good day!

Here’s the script
- I’m in a LocalScript
Hey guys! I’m trying to Tween a GUI but I got a problem, when I try to Tween it, it gives me an error saying:
Players.(MyName).PlayerGui.Gui.TweenExample:10: attempt to call a table value
I know there is a lot of good people in the devforum, so if you that can give me a hand with this , I’ll appreciate your help very much, have a good day!

Here’s the script
while wait(1) do
if game.ReplicatedStorage:WaitForChild('BoolValue').Value == true then
break
end
end
if game.ReplicatedStorage:WaitForChild('BoolValue').Value == true then
local player = game.Players.LocalPlayer
local Frame = player.PlayerGui.Gui.TweenExample
Frame:TweenPosition(UDim2(0,0,0,0),"Out","Sine",3)
end
I also tried to do with :
local Frame = script.Parent.Frame
(With the LocalScript inside the ScreenGui)