#Script problem
1 messages · Page 1 of 1 (latest)
PurchaseProcessingManager
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)
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?
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
so you don't understand the code, didn't write it, and don't know how to invert an if/then/else statement, and for some reason you think it's wrong?
there's a reason why this was my first question. for all you know, the dude actually did buy it lol
i dont undersand the code and dont know how to convert i think its wrong
then how when someone joins the game he alr gets it
without buying it
i tested it with my friend
is this everyone or just one guy?
maybe those 2 people actually bought those gamepasses
one of them is broke i know him
and the other was sharing screen without buying it
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
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
processreceipt only fires if the player actually makes a purchase
here's the first thing you need to learn about code: you can't go by what you think is wrong. you have to go by what you can prove is wrong.
and since you don't know how to code, you also dont know how to prove what is wrong
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?
good answer