Hi!
I have 2 scripts that do the following:
The first script uses MouseEnter and MouseLeave to Tween a GUI to be bigger or smaller.
The second script uses MouseButton1Click to detect when the textbutton is clicked to reset the GUI to it’s original position.
The main issue is while my code theoretically works, it simply doesn’t on mobile
Here is the second script:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.PlayButton.Size = UDim2.new(0.245, 0,0.105, 0)
script.Parent.Parent.Parent.PlayButton.Position = UDim2.new(0.378, 0,0.679, 0)
script.Parent.Parent.Position = UDim2.new(0.147, 0,0.695, 0)
script.Parent.Parent.Size = UDim2.new(0.21, 0,0.09, 0)
end)
Any help is appreciated