|
| 27 Apr 2015 01:20 PM |
| I need the script and i don know how to figure out my badges id! Someone please help me! here is the link for that badge! -- http://www.roblox.com/You-Met-The-Owner-item?id=241298245 Thanks PLEASE help me :) |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2015 01:27 PM |
put this in server script service
local BadgeId = 241298245 local OwnerId = game.CreatorId local Players = game:GetService("Players")
Players.PlayerAdded:connect(function(plr) for _,wanted in next, Players:GetPlayers() do if wanted.userId == OwnerId then for _,plrs in next, Players:GetPlayers() do game:GetService("BadgeService"):AwardBadge(plrs.userId, BadgeId) end end end end) |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 27 Apr 2015 01:27 PM |
Just check if the owner is on the server with the person.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2015 02:54 PM |
| No can someone please give me like the script with my name and everything i get very confused please thanks |
|
|
| Report Abuse |
|
|
9draco
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 5841 |
|
| |
|
| |
|
9draco
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 5841 |
|
|
| 27 Apr 2015 02:59 PM |
| Abstract, you're creating a cancer to the community. |
|
|
| Report Abuse |
|
|
| |
|
9draco
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 5841 |
|
|
| 27 Apr 2015 03:02 PM |
| In his first post in the forum, he got the script he wanted... He'll continue posting again and again. |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2015 03:02 PM |
| Never mind THANKS SOOOOOO MUCH BRO!!! UR THE BEST!! |
|
|
| Report Abuse |
|
|
9draco
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 5841 |
|
| |
|
|
| 27 Apr 2015 03:55 PM |
| @Abstract but what if the creator was the first in the server and everyone joined afterwards? Nobody gets it? O_O |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Apr 2015 04:01 PM |
#Fail
I still need to revise it though qq
local BadgeId = 241298245 local Players = game:GetService("Players") local BadgeService = game:GetService("BadgeService")
Players.PlayerAdded:connect(function(plr) for i,wanted in next, Players:GetPlayers() do if wanted.userId == game.CreatorId then for i,user in next, Players:GetPlayers() do if not BadgeService:UserHasBadge(BadgeId) then BadgeService:AwardBadge(user.userId, BadgeId) end end break end end end) |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2015 04:04 PM |
| that if statement isn't really needed. i like when you can sometimes give someone the same badge twice <3 |
|
|
| Report Abuse |
|
|