#script help pls
12 messages · Page 1 of 1 (latest)
@faint river
Anyways, I'm coding something right now
At least give me the gamepass
Gamepass ID
local MarketplaceService = game:GetService("MarketplaceService")
local passId = 00000 -- your gamepass ID
game.Players.PlayerAdded:Connect(function(player)
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, passId) then
print('player owns gamepass!') -- do what you want here
end
end)
https://devforum.roblox.com/t/how-to-detect-a-gamepass/1037542/6
its literally there
local MKPS = game:GetService("MarketplaceService")
local Player = game:GetService("Players").LocalPlayer
local passId = 1234 -- your gamepass ID
local Owned = pcall(function () if MKPS:UserOwnsGamePassAsync(Player.UserId, passId) then return true else return false end end)
if Owned then
script.Parent.test123.Visible = true
end
Simple
paid access users? You mean people playing the beta version before alpha release?
so.. hold it, why would you want to detect if they paid
if they can play the game by paying in the first place?
https://devforum.roblox.com/t/we-need-a-way-to-check-if-someone-is-part-of-a-games-paid-access/80560
Currently the only way to do so is by using DataStore, however this only works for players who actually join the game after buying it. Yes, edge cases, but still Robux spent. I think a good way would be to somehow do :PlayerOwnsAsset(PlaceId) or maybe :PlayerHasGameAccess(PlaceId). Often paid access is used for early access, and is also paire...
sorry i cant really help now, i gotta cook