generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
Waffloid is not online. 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
Introducted is not online. Introducted
Joined: 09 Feb 2013
Total Posts: 836
10 Apr 2014 11:02 AM
plrs = roblox.players:GetAllChildren()


if plrs.Name == waffloid then
plrs:destroy()

Report Abuse
Waffloid is not online. Waffloid
Joined: 14 Jul 2011
Total Posts: 1606
10 Apr 2014 11:14 AM
troll much

LEIDLE
Report Abuse
Waffloid is not online. 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
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
10 Apr 2014 11:17 AM
And why are you so incapable.
Report Abuse
Waffloid is not online. 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 is not online. 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
WickedSiege is not online. WickedSiege
Joined: 03 Oct 2011
Total Posts: 3039
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 is not online. Waffloid
Joined: 14 Jul 2011
Total Posts: 1606
10 Apr 2014 11:57 AM
Thanks. c:
Report Abuse
Waffloid is not online. Waffloid
Joined: 14 Jul 2011
Total Posts: 1606
11 Apr 2014 12:32 PM
no work
Report Abuse
TexasTech717 is not online. TexasTech717
Joined: 24 Apr 2012
Total Posts: 1129
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
TexasTech717 is not online. TexasTech717
Joined: 24 Apr 2012
Total Posts: 1129
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 is not online. Waffloid
Joined: 14 Jul 2011
Total Posts: 1606
11 Apr 2014 01:28 PM
Thx! c:
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
11 Apr 2014 01:44 PM
[ Content Deleted ]
Report Abuse
TexasTech717 is not online. TexasTech717
Joined: 24 Apr 2012
Total Posts: 1129
11 Apr 2014 02:17 PM
Waffle, just curious, did it work?
Report Abuse
Waffloid is not online. 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
TexasTech717 is not online. TexasTech717
Joined: 24 Apr 2012
Total Posts: 1129
11 Apr 2014 02:29 PM
Well, I'm glad it worked! :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image