lodebt
(Pancake)
#1
Hello, I made a simple Radio shop.
When you have the gamepass, it works just fine.
Problem: When you DON’T have the gamepass then the game throws an error. Third Party sales are also on.
It’s a local script and it gives an error saying “Unable to cast value”
Please provide solution/fix.
Please look if people have asked the same topic before posting your own:
1 Like
lluckvy
(aaron)
#3
Since this is a local script I see no point why you have to do
local PlayerId = script.Parent.Parent.Parent.Parent.UserId
when you can just do:
local Player = game:GetService('Players').LocalPlayer
Also, don’t use ID. You are prompting it to the player, not the ID
MarketPS:PromptGamePassPurchase(Player,PassId)
1 Like
lodebt
(Pancake)
#4
Oops, I was unable to find that. Thank you so much.
1 Like