local owns = game:GetService("MarketplaceService"):PlayerOwnsAsset(game.Players[script.Parent.Parent.UsernameInput.Text].UserId, 1107385689) script.Parent.MouseButton1Click:Connect(function() if owns then script.Parent.Parent.GPStatus.Text = "Gamepass Status: User has the Suite gamepass" wait(3) script.Parent.Parent.GPStatus.Text = "Gamepass Status: N/A" else script.Parent.Parent.GPStatus.Text = "Gamepass Status: User doesn't have the suite gamepass." wait(3) script.Parent.Parent.GPStatus.Text = "Gamepass Status: N/A" end end)
these few days there has been something wrong with my scripting skills and i cant think straight help me?
https://www.roblox.com/game-pass/idhere/passnamehere
UserOwnsGamePassAsync
method.local player = game:GetService("Players").LocalPlayer local owns = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(game.Players[script.Parent.Parent.UsernameInput.Text].UserId, 1107385689) script.Parent.Activated:Connect(function(inputObject) if owns then script.Parent.Parent.GPStatus.Text = "Gamepass Status: User has the Suite gamepass" wait(3) script.Parent.Parent.GPStatus.Text = "Gamepass Status: N/A" else script.Parent.Parent.GPStatus.Text = "Gamepass Status: User doesn't have the suite gamepass." wait(3) script.Parent.Parent.GPStatus.Text = "Gamepass Status: N/A" end end)