[solved] Tweening not working

I have a localscript inside of StarterPlayerScripts where when you step on top of a part, a frame becomes visible and tweens into view.

What is happening is the frame is becoming visible, but it isn’t tweening and there are no errors.
I’m genuinely confused

local shopPart = workspace.Upg.Hitbox
local LocalPlayer = game:GetService("Players").LocalPlayer

shopPart.Touched:Connect(function(part)
	if LocalPlayer.Character and part:IsDescendantOf(LocalPlayer.Character) then
		if not LocalPlayer.PlayerGui.Shop.Main.Visible == true then
			LocalPlayer.PlayerGui.Shop.Main.Visible = true
			LocalPlayer.PlayerGui.Shop.Main:TweenPosition(UDim2.new(0.5,0,0.5,0), nil, nil, .2, true)
		end
	end
end)    

LocalPlayer.PlayerGui.Shop.Main:TweenPosition(UDim2.new(0.5,0,0.5,0), Enum.EasingStyle.Linear, "Out", .2,true)

local shopPart = workspace.Upg.Hitbox
local LocalPlayer = game:GetService(“Players”).LocalPlayer

shopPart.Touched:Connect(function(part)
if LocalPlayer.Character and part:IsDescendantOf(LocalPlayer.Character) then
if LocalPlayer.PlayerGui.Shop.Main.Visible == false then
LocalPlayer.PlayerGui.Shop.Main.Visible = true
LocalPlayer.PlayerGui.Shop.Main:TweenPosition(UDim2.new(0.5,0,0.5,0), Enum.EasingStyle.Linear, “Out”, .2,true)
end
end
end)

this doesnt make a difference because setting the easingstyle and easingdirection to nil is the same thing as setting it to linear and out (roblox defaults)

you can’t leave them “nil” you need to assign them a value

Have you tried with it? charsss

Also check your ouput for errors

yes i have lol it doesnt change anything
i’ve also used nil in plenty of other scripts

			LocalPlayer.PlayerGui.Shop.Main:TweenPosition(UDim2.new(0.5,0,0.5,0), nil, nil, .2)

try removing “true” part like i did above

that wont do anything.
the true is a boolean for overriding
image

Try this maybe

game:GetService("TweenService"):Create(gui,TweenInfo.new(.2),{Position = UDim2.new(0.5,0,0.5,0)}):Play()

if i remember right roblox has value “true” as default so you don’t need to write it,

this would do what he wants to happen but still he don’t know how how to fix his problem with “TweenPosition”

doesnt make any sort of difference. no clue why this is even happening

Could you check your output real quick if no then print the gui itself try debugging little bit

i honestly don’t have any idea, try using game:GetService("TweenService"):Create() to achieve what you want, but i’ll continue looking solutions for :TweenPosition

i found the problem, it wasnt even related to the script.

ah ok, what was it anyway? i’m just curious

issues with frame propeties lmao