#Devproducts

38 messages · Page 1 of 1 (latest)

silver wadi
#

Im new at doing dev products, so I found a tutorial online. I edited it so it would fit my needs, but this appeared. What douse this mean, and how do I fix it?

hidden cairn
#

local MarketplaceService = game:GetService("MarketplaceService")
local id = 248865162

local plr = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
local hasPass
local succes, message = pcall(function()
hasPass = MarketplaceService:UserOwnsGamePassAsync(plr.UserId, id)
end)

if hasPass then
    local character = plr.CharacterAdded:Wait()
    local humanoid = character:WaitForChild("Humanoid")
else
    MarketplaceService:PromptGamePassPurchase(plr, id)
end

end)

#

i use thgis script

silver wadi
hidden cairn
#

this is a gamepass

silver wadi
#

Devposts

#

Devproducts

hardy ingot
#

well he did say he wanted one for deve products

#

not for gamepasses

silver wadi
#

I meant dev products not gamepass

hardy ingot
#

oh wait

#

I'm blind

#

remove the

local gamepass = 

from line 6

silver wadi
#

e

#

It still says the same warning

hardy ingot
#

hang on

#

do I see a white logo?

#

please don't tell me this is a server script

silver wadi
#

Ive never done this before so how was I suppost to know?
Yes its a server script

hardy ingot
#

dude you're called fucking LOCALplayer in a server script

#

yikes dude, how in the world are you s1?

silver wadi
#

Hmmm

#

I mainly do GUI

#

and tweening

hardy ingot
#

this is the most basic of basics

#

who would the LOCAL player be inside a server script?

#

the server itself? no it's not a player, the client? no because there is no client

#

this should be common sense

silver wadi
#

Ok well ill remeber that next time

#

also it works

#

soo thanks.

hardy ingot
hidden cairn
hardy ingot
hidden cairn
small pantherBOT
#

studio** You are now Level 1! **studio

hardy ingot
#

You can make a post

#

You probably forgot to add a tag