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 » Game Design
Home Search
 

Re: Someone please help (SCRIPT)

Previous Thread :: Next Thread 
TheSniperAssassin999 is not online. TheSniperAssassin999
Joined: 01 Aug 2014
Total Posts: 512
01 Oct 2016 06:41 PM
I need a script where if someone has a badge, when they play the game they will have a special gear, I am willing to pay for this script.
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
01 Oct 2016 06:48 PM
Gear meaning tool? If so:

tool = game.ReplicatedStorage:WaitForChild("WhateverToolName")
id = 103728213

game.Players.PlayerAdded:connect(function(player)
if Game:GetService("GamePassService"):PlayerHasPass(player, id) then
tool:clone().Parent = player.Backpack
tool:clone().Parent = player.StarterGear
end
end)
Report Abuse
UnRandomizing is not online. UnRandomizing
Joined: 20 Jun 2012
Total Posts: 1490
01 Oct 2016 07:10 PM
^^ That's for gamepasses, not badges?
Report Abuse
TheSniperAssassin999 is not online. TheSniperAssassin999
Joined: 01 Aug 2014
Total Posts: 512
01 Oct 2016 10:04 PM
Yea I mean tool. But im looking for one with a badge, not gamepass.
Report Abuse
blackeye61 is not online. blackeye61
Joined: 16 Aug 2010
Total Posts: 342
01 Oct 2016 10:34 PM
Can you give me the script for how you get the badge in the game? If you can i'll edit it so it gives the player a value (It will also be a saved value as I can add a data store) and if the player has that value the player will get a tool. Btw I kinda want 25 robux for something ive been doing small jobs for a while and I almost got enough for it
Report Abuse
blackeye61 is not online. blackeye61
Joined: 16 Aug 2010
Total Posts: 342
01 Oct 2016 10:53 PM
you can also try this..
BadgeId = 123 --put BadgeId here

game.Players.PlayerAdded:connect(function(plr)
if game:GetService("BadgeService"):UserHasBadge(plr.userId, BadgeId) then
print ("userHasBadge")
local tool = game.Lighting.Tool -- change Tool to Name of the tool, make sure .tool is renamed
local Ctool = tool:Clone()
Ctool.Parent = plr.Backpack
Ctool.name = tool.Name
else
print("NoBadgefound")

end
end)

Warning I have heard people have had problems with :BadgeService... Tell me if this doesn't worl..
Report Abuse
blackeye61 is not online. blackeye61
Joined: 16 Aug 2010
Total Posts: 342
01 Oct 2016 10:54 PM
One more thing, make sure this is a regular script
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
01 Oct 2016 11:40 PM
GamepassService is bad. Props to my boy blackeye for being helpful


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
TheSniperAssassin999 is not online. TheSniperAssassin999
Joined: 01 Aug 2014
Total Posts: 512
02 Oct 2016 12:52 AM
Didn't work.
Report Abuse
blackeye61 is not online. blackeye61
Joined: 16 Aug 2010
Total Posts: 342
02 Oct 2016 01:01 AM
Can you invite me to team create? You may have set the things in the wrong place which is fine
Report Abuse
TheSniperAssassin999 is not online. TheSniperAssassin999
Joined: 01 Aug 2014
Total Posts: 512
02 Oct 2016 01:18 AM
ER sure one moment
Report Abuse
TheSniperAssassin999 is not online. TheSniperAssassin999
Joined: 01 Aug 2014
Total Posts: 512
02 Oct 2016 01:33 AM
PROBLEM SOLVED! Thank You Blackeye61
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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