I have a script inside a block that when you click it a Gui tweens to the middle of the screen,
local Crops = script.Parent
Crops.ClickDetector.MouseClick:Connect(function(player)
player.PlayerGui.PlantingSystemUI.PlantingMenu:TweenPosition(UDim2.new(0.319, 0, 0.291, 0), "Out", "Quint", 1, false, nil)
end)
But when the button inside makes it Tweenback,
script.Parent.Frame.Plant.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent:TweenPosition(UDim2.new(1.319, 0, 0.291, 0), "Out", "Quint", 1, false, nil)
end)
When I try the same first script when I click the block it doesn't Tween to the middle of the screen.
Help will be appreciated! Thanks
