|
| 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
|
  |
| 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 |
|
|
|
| 01 Oct 2016 07:10 PM |
| ^^ That's for gamepasses, not badges? |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2016 10:04 PM |
| Yea I mean tool. But im looking for one with a badge, not gamepass. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 01 Oct 2016 10:54 PM |
| One more thing, make sure this is a regular script |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 02 Oct 2016 01:33 AM |
| PROBLEM SOLVED! Thank You Blackeye61 |
|
|
| Report Abuse |
|
|