So im trying to use this to make a nuke and its not working. Here is some of my code:
local Click = script.Parent.Click local ClickDetect = Click.Detector local NukePosParent = script.Parent.BIGNUKE local mar = game:GetService("MarketplaceService") local Num = 6089351 ClickDetect.MouseClick:connect(function(p) if mar:UserOwnsGamePassAsync(p, Num) then local Nuke = Instance.new("Part") Nuke.Parent = script.Parent Nuke.Position = NukePosParent.Position while true do Nuke.Size = Nuke.Size + Vector3.new(1,1,1) wait(.1) end else mar:PromptGamePassPurchase(p, Num) end end)
Use Player.UserId, not player.