when i wrote this line of code which make sure player owns a gamepass to make the button visible in the output it says "attempt to index nil with 'Visible'" please help
local mps = game:GetService("MarketplaceService") local player = game.Players.LocalPlayer if mps:UserOwnsGamePassAsync(player.UserId, 18392789) then script.Parent.Visible = true end script.Parent.MouseButton1Click:Connect(function() player.Character.Humanoid.WalkSpeed = 16 script.Parent.Visible = false script.Parent.Parent.Off.Visible = true end)
line 4 btw