I’m making a car shop gui and I have a section where you select the brands to view. When you click a button it tweens any gui out of the screen that’s not the name of the frame but I have the local scripts in each button cause they are in separate frames.
this is how the scripts look like
local ShowNissan = script.Parent.Parent.Parent.Parent.Nissan
local ShowToyota = script.Parent.Parent.Parent.Parent.Toyota
script.Parent.MouseButton1Click:Connect(function()
ShowNissan:TweenPosition(UDim2.new(0.307, 0,0.245, 0),"Out","Quint",0.5,true) -- Position to move frame/tween style
end)
script.Parent.MouseButton1Click:Connect(function()
ShowToyota:TweenPosition(UDim2.new(1.307, 0,0.245, 0),"Out","Quint",0.5,true) -- Position to move frame/tween style
end)
anytime I add another brand ill have to add more and i wanna know if this will have a effect on the performance of the game to players?