Mobile Users Can't Open Hat Frame Button/Inventory

Hello, Scripters. Today I have been trying to figure out why mobile users can’t open up there Inventory’s like PC users! I do not know which script is the problem so I will show two small scripts below which might be the reason of my problem!

	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)

Next 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)

:smile: Hopefully someone can help me.

1 Like

I’m pretty sure the MouseMoved and MouseLeave events won’t trigger on mobile due to mobile players not having a mouse. It is also reccomended to use UserInputService instead of Mouse in new work.

3 Likes