#Devproducts
38 messages · Page 1 of 1 (latest)
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
This is not a gamepwss though, its a dev product, which means you can buy it multiple times.
this is a gamepass
I meant dev products not gamepass
Ive never done this before so how was I suppost to know?
Yes its a server script
dude you're called fucking LOCALplayer in a server script
yikes dude, how in the world are you s1?
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
in case you're not sure use the Bible of scripting
i see you have some sense of scripting, eh are you willing to help me with a script that for my feeling just straight up bugs out in dm? lol
Just make a post like everybody else
well i just joined this server so i am not level 3 yet so i cant make a post
** You are now Level 1! **