so I want a Button(Gui) which disables a script but the script viewer says: W001:Unkown Global: 'player' how can I fix this?
local Button = script.Parent.Button
Button.MouseButton1Click:Connect(function()
player.PlayerGui:FindFirstChild("AudioPicker").AudioList.AudioHandler.Disabled = true
end)
and the Output says this: Button is not a valid member of TextButton "Players.123balint1.PlayerGui.Enabler.Frame.TextButton"

1 comment
u didn't define player