|
| 18 Jul 2014 08:34 PM |
Here is what I got? Am I right local badgeId = 12345 --Badge ID local awarded = true script.Parent.Touched:connect(function(hit) local plr = game.Players:FindPlayerFromCharacter(hit.Parent) if awarded and plr then game.BadgeService:AwardBadge(plr.userId,badgeId)
P.S Would I put the badge Id where it says badgeId at the last script line. |
|
|
| Report Abuse |
|
|
Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
|
| 18 Jul 2014 08:45 PM |
local BadgeId = 12345 local IsAwarded = true
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) if IsAwarded == true then game:GetService("BadgeService"):AwardBadge(player.userId, BadgeId) end end end) |
|
|
| Report Abuse |
|
|
| |
|