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

This script worked in solo but not working online, why?

Asked by
fdfxd 50
9 years ago
local StarterGui = game:GetService('StarterGui')

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)


script.Rain:Play()
script.Beep:Play()

function start()
    print("Started mate")
    script.Parent.Visible = false
    script.Parent.Parent.Menu.Visible = true
    script.Click:Play()
    wait(1)
    script.Piano:Play()
    script.Disabled = true
end


game:GetService("UserInputService").InputBegan:connect(start)

Why?

It doesn't work in a local script or a normal script, it's in the starter GUI

the input service doesn't read and the sounds don't play for some reason

Answer this question