#Script problem

1 messages · Page 1 of 1 (latest)

earnest topaz
#

so whenever someone joins my game he gets the hunter gamepass and radio gamepass, i wanna make that when someone joins he must buy it and then he can use it. But the opposite happened. When someone joined he had the hunter gamepass without buying it. Whats the solution?

earnest topaz
#

PurchasePromptHandler

-- hunter
local player = game.Players.LocalPlayer
local HgamePassID = 1142448773

local surfaceGui = workspace:WaitForChild("HunterBillboard"):WaitForChild("SurfaceGui")
local imageButton = surfaceGui:WaitForChild("BuyButton")

imageButton.MouseButton1Click:Connect(function()
    game:GetService("MarketplaceService"):PromptGamePassPurchase(player, HgamePassID)
end)
-- Ice pack
local IgamePassID = 1142341882

local surfaceGui2 = workspace:WaitForChild("ItemPackBillboard"):WaitForChild("SurfaceGui")
local imageButton2 = surfaceGui2:WaitForChild("BuyButton")

imageButton2.MouseButton1Click:Connect(function()
    game:GetService("MarketplaceService"):PromptGamePassPurchase(player, IgamePassID)
end)

--radio


local RgamePassID = 1142888428

local surfaceGui3 = workspace:WaitForChild("RadioBillboard"):WaitForChild("SurfaceGui")
local imageButton3 = surfaceGui3:WaitForChild("BuyButton")

imageButton3.MouseButton1Click:Connect(function()
    game:GetService("MarketplaceService"):PromptGamePassPurchase(player, RgamePassID)
end)
undone palm
#

how do you know with 100% absolute certainty that this person did in fact, with 100% absolute certainty, have the results of owning the hunter gamepass, without in fact having purchased it, with 100% absolute certainty?

earnest topaz
#

i dont understand u

#

its generated by ai

undone palm
#

what is generated by ai?

#

your code?

#

your question? wha

earnest topaz
#

the code is generated by ai

#

and i wanna make that the game detects if player owns the gamepass or not

#

because whenever someone joins the game he owns the hunter gamepass and radio gamepass

#

so i wanna make that " else " the opposite happens

#

and idk how do i make it

#

@undone palm

undone palm
undone palm
earnest topaz
#

i dont undersand the code and dont know how to convert i think its wrong

earnest topaz
#

without buying it

#

i tested it with my friend

undone palm
#

is this everyone or just one guy?

earnest topaz
#

one guy

#

like 2 guys exactly

undone palm
#

maybe those 2 people actually bought those gamepasses

earnest topaz
#

they were share screening

#

nah they didnt

earnest topaz
#

and the other was sharing screen without buying it

undone palm
#

i dont see anything in your code that would do this

#

maybe its coming from somewhere else

#

you kinda need to be a scripter, or have hired a scripter, if you want to debug scripts bruh

#

ai isnt good enough

earnest topaz
#

so basically

#

i aint a scripter

#

but

#

i think its coming from the PurchaseProcessingManager

#

in the last codes

#

i thinks we can add else then put the opposite

undone palm
#

processreceipt only fires if the player actually makes a purchase

undone palm
#

and since you don't know how to code, you also dont know how to prove what is wrong

earnest topaz
#

chatgpt told me

#

he mad me understand

undone palm
#

chatgpt likes to hallucinate and make things up, why are you believing it?

#

let me show you an example. in roblox, humanoids actually accelerate and deccelerate. it's particularly noticeable when walkspeed is very very high. to my knowledge there is nothing to interact with this acceleration. here's what roblox assistant has to say about it, and it is completely wrong.

#

and this is just a very simple example. if it's able to confidently make things up about this very simple idea, what hope do you actually think it has for anything more advanced?