of     1   

Coconutko
#188133954Tuesday, April 26, 2016 7:29 PM GMT

local passId = 405122945 --change this to your GamePass Id local marketplaceService = game:GetService("MarketplaceService") local lasersniper = game.Lighting.RedHyperLaser:Clone() marketplaceService.PromptPurchaseFinished:connect(function(player,assetId,isPurchased) if isPurchased then --if the player did pay if assetId == passId then --if what they bought is the passId lasersniper.Parent = Player.Backpack end end end) What's wrong with it
Coconutko
#188133979Tuesday, April 26, 2016 7:29 PM GMT

I'd appreciate if someone would help me
RobuxLife
#188135312Tuesday, April 26, 2016 7:55 PM GMT

Taken out of my game and edited! local passId = 405122945 local lasersniper = game.Lighting.RedHyperLaser function haspassyay(player) return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, passId) end game.Players.PlayerAdded:connect(function(plr) if haspassyay(plr) then lasersniper:Clone().Parent = plr.Backpack end end) Also, I don't recommend putting models into lighting or anything, it's inefficient and laggy. Use replicated storage. :)
Coconutko
#188138780Tuesday, April 26, 2016 8:56 PM GMT

Thanks, I really appreciate it!
Coconutko
#189492127Saturday, May 21, 2016 4:31 PM GMT

One more thing, how to you make it so you get the tool back everytime you die? sorry, I'm kinda a noob at scripting :P
Coconutko
#189494771Saturday, May 21, 2016 5:14 PM GMT

bUMP
Coconutko
#189498487Saturday, May 21, 2016 6:08 PM GMT

bUMP
championbuilder
#189499684Saturday, May 21, 2016 6:25 PM GMT

Put it in StarterGear
Coconutko
#189500886Saturday, May 21, 2016 6:43 PM GMT

That wont work, if someone didn't buy it, they would get it anyway
championbuilder
#189500931Saturday, May 21, 2016 6:44 PM GMT

That's StarterPack, not StarterGear.
Coconutko
#189501174Saturday, May 21, 2016 6:48 PM GMT

Where is it? I've never seen it before
championbuilder
#189501282Saturday, May 21, 2016 6:49 PM GMT

StarterGear is created whenever a player joins a game. It's in the same location as BackPack, but unlike BackPack, if you die with a gear inside StarterGear, the Gear will be automatically cloned back into the BackPack. http://wiki.roblox.com/index.php?title=API:Class/StarterGear

    of     1