Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

When you click this gui on mobile it does not open up?

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! Code

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


1 comment

0

I think MouseButton1Click doesn't exist on mobile, though I'm not sure.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.