local T = script.Parent
local on = false
local f = script.Parent.Parent.Parent.Parent.TeamChanger.Teams
function click()
if on==false then
on=true
f:TweenPosition(UDim2.new(0.098, 0,0.806, 0),"Out","Quint",1) --Change to the position your gui will be when its open!
else
on=false
f:TweenPosition(UDim2.new(-0.098, 0,0.806, 0),"Out","Quint",1)
end
end
script.Parent.MouseButton1Click:connect(click)
What’s going on, any fixes? Sorry for the bad post first time using this.
Probably the EndPosition is the issue, you may’ve given it the wrong Y scale, There’s nothing wrong with it here as it looks to be the tween for the Teams gui. May we see the script that handles the menu tween?
Then it probably requires a change on EndPosition since the tween position can be different depending on where it is parented and what not. Tweak the EndPosition for the Menu tween till it is what you want
local T = script.Parent
local on = false
local f = script.Parent.Parent.Parent.Parent.TeamChanger.Teams
script.Parent.MouseButton1Click:Connect(function()
if on==false then
on=true
f:TweenPosition(UDim2.new(0.098, 0,0.806, 0),"Out","Quint",1) --Change to the position your gui will be when its open!
else
on=false
f:TweenPosition(UDim2.new(-0.098, 0,0.806, 0),"Out","Quint",1)
end
end)