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

ButtonGUI not working when clicked in mobile?

Asked by 8 years ago

Hello! I'm having a problem on mobile, when I touch the ButtonGUI on Mobile, it does nothing. Here's the script:

function onClicked () 
    for i = 0, 1, .1 do
        script.Parent.Parent.Parent.Picture.ImageTransparency=i
        script.Parent.BackgroundTransparency=i
        script.Parent.TextTransparency=i
        script.Parent.TextStrokeTransparency=i
        wait()
    end
    script.Parent.Parent.Parent:Remove()
    script.Parent.Start:Remove()
    script.Parent.Parent.Picture:Remove()
    script.Parent:Destroy()
    script.Parent:Remove()
end

script.Parent.MouseButton1Click:connect(onClicked)

Answer this question