Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
|
| 10 Apr 2014 11:00 AM |
| I need it that if you have a certain gamepass, you get a gear called ClassyGun (In ServerStorage), and if not, you get a gear called NormalGun. BTW, do not worry about the ID, I can change that part later. |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 11:02 AM |
plrs = roblox.players:GetAllChildren()
if plrs.Name == waffloid then plrs:destroy()
|
|
|
| Report Abuse |
|
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
| |
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
|
| 10 Apr 2014 11:15 AM |
| By the way, your troll script is wrong, its game.Players, not Roblox.Players. |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 11:17 AM |
| And why are you so incapable. |
|
|
| Report Abuse |
|
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
|
| 10 Apr 2014 11:33 AM |
Because, I have absolutely no idea how to do it. I've tried to figure it out, spent hundreds of robux trying to find some lessons that can explain to me at least the damn. basics, tried the wiki, but I still have no, damn clue.
Thats why. |
|
|
| Report Abuse |
|
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
|
| 10 Apr 2014 11:34 AM |
| The only few things I do know is variables and the 'if' stuff. |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2014 11:45 AM |
ID = --ID of your game pass
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) wait(1) if game:GetService("GamePassService"):PlayerHasPass(p,ID) then game.ServerStorage["ClassyGun"]:Clone().Parent = p.Backpack end end) end)
I bet this works |
|
|
| Report Abuse |
|
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
| |
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
| |
|
|
| 11 Apr 2014 12:37 PM |
This should work:
ID = --ID of your game pass
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) wait(1) if game:GetService("GamePassService"):PlayerHasPass(p,ID) then game.ServerStorage.ClassyGun:Clone().Parent = p.Backpack else game.ServerStorage.NormalGun:Clone().Parent = p.Backpack end end) end) |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 12:39 PM |
Wait. Try this:
ID = --ID of your game pass
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) wait(1) if game:GetService("GamePassService"):PlayerHasPass(p,ID) then local Classy = game.ServerStorage.ClassyGun Classy:clone().Parent = p.Backpack else local Normal = game.ServerStorage.NormalGun Normal:clone().Parent = p.Backpack end end) end)
There's also a way to get it to go into your starter gear, which means that you will always have it, if you want. |
|
|
| Report Abuse |
|
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
|
| 11 Apr 2014 02:17 PM |
| Waffle, just curious, did it work? |
|
|
| Report Abuse |
|
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
|
| 11 Apr 2014 02:28 PM |
@Texas, yup, it did!
words do not explain how greatful i iz... |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2014 02:29 PM |
| Well, I'm glad it worked! :D |
|
|
| Report Abuse |
|
|