Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

0
I think MouseButton1Click doesn't exist on mobile, though I'm not sure. ROOBLOXJakob123 22 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

wait guys lemme repost this i messed up!

Ad

Answer this question