|
| 24 Jul 2014 04:01 AM |
Basicly, I want a script that gives an item in lightning as soon as you buy the gamepass
It goes in StarterGear and Backpack so when you reset you still have it....
name in lightning = HotAir
|
|
|
| Report Abuse |
|
|
blox6137
|
  |
| Joined: 23 Nov 2008 |
| Total Posts: 1109 |
|
|
| 24 Jul 2014 04:09 AM |
| https://www.youtube.com/watch?v=lgI2ZQVyrBo |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 24 Jul 2014 04:13 AM |
local passId = 0000000 local tool = game.Lighting:FindFirstChild("HotAir") function isAuthenticated(player) return game:GetService("GamePassService"):PlayerHasPass(player, passId) end game.Players.PlayerAdded:connect(function(plr) if isAuthenticated(plr) then repeat tool:clone().Parent = plr.StarterGear until plr:FindFirstChild("StarterGear") end end) |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 24 Jul 2014 04:15 AM |
Basically, I modified the code given from wiki.roblox. http://wiki.roblox.com/index.php?title=Game_Pass
Remember to change the passID in the code to your GamePass's id |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2014 04:19 AM |
RoAnt
thanks ;D
How would I make a script that makes a gui visible when you buy the gamepass? I have seen one before but cant find it again |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 24 Jul 2014 04:22 AM |
Basically the same thing as the code I've posted. You could make a gui and put it in Lighting and then have it cloned to the player's PlayerGui. Just like the tool you mentioned. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2014 04:50 AM |
| https://www.youtube.com/watch?v=-NuONuafxwk |
|
|
| Report Abuse |
|
|
| |
|