This is a weird thing that happened to me and i can't figure it out. And yes everything is named correctly because it works on desktop! --Click

script.Parent.MouseButton1Click:Connect(function()
	if script.Parent.Parent.HatsFrame.Visible == false then
		script.Parent.Parent.HatsFrame.Visible = true
		script.Parent.Parent.COLOR.Visible = true
		script.Parent.Text = "Hats - On"
	else
		script.Parent.Parent.HatsFrame.Visible = false
		script.Parent.Parent.COLOR.Visible = false
		script.Parent.Text = "Hats - Off"
	end
end)

--Local Script

local text = game.Players.LocalPlayer.PlayerGui.Main.Info

script.Parent.MouseMoved:Connect(function(x,y)
	text.Text = "Hats Frame"
	text.Position = UDim2.new(-0.05,x,-0.045,y)
	text.Visible = true
end)

script.Parent.MouseLeave:Connect(function()
	text.Visible = false
end)

--Rot

script.Parent.MouseEnter:Connect(function()
	script.Parent.Rotation = -3
end)

script.Parent.MouseLeave:Connect(function()
	script.Parent.Rotation = 0
end)