Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
|
| 16 Aug 2009 02:42 PM |
Im trying to make a tool that when you click a player it gives the a badge can you check out this script? I have the badgeID too.
bin = script.Parent
function onButton1Down(mouse) local player = game.Players.LocalPlayer local target = mouse.Target if target ~= nil then if target.Parent ~= nil then local p = game.Players:findFirstChild(target.Parent.Name) if p ~= nil then local b = game:GetService("BadgeService") b:AwardBadge(p, script.Parent.BadgeID.Value) end end end end
function onSelected(mouse) mouse.Icon = "rbxasset://textures\\Delete.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
bin.Selected:connect(onSelected) |
|
|
| Report Abuse |
|
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
| |
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
| |
|
mraznboy1
|
  |
| Joined: 04 Dec 2007 |
| Total Posts: 2750 |
|
|
| 16 Aug 2009 03:14 PM |
bin = script.Parent
function onButton1Down(mouse)
local player = game.Players.LocalPlayer local target = mouse.Target if target ~= nil then if target.Parent ~= nil then local p = game.Players:GetPlayerFromCharacter(target.Parent.Name) if p ~= nil then local b = game:GetService("BadgeService") b:AwardBadge(p.PlayerId, script.Parent.BadgeID.Value) end end end end
function onSelected(mouse) mouse.Icon = "rbxasset://textures\\Delete.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
bin.Selected:connect(onSelected) |
|
|
| Report Abuse |
|
|
rakstern
|
  |
| Joined: 13 Dec 2008 |
| Total Posts: 7718 |
|
|
| 16 Aug 2009 03:14 PM |
What about me I need a script that when you get 15 KOs you get the badge. Can someone give me a script to do it. |
|
|
| Report Abuse |
|
|
rakstern
|
  |
| Joined: 13 Dec 2008 |
| Total Posts: 7718 |
|
|
| 16 Aug 2009 03:16 PM |
Someone please And like a tutorial of how i should insert it. |
|
|
| Report Abuse |
|
|
rakstern
|
  |
| Joined: 13 Dec 2008 |
| Total Posts: 7718 |
|
| |
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
|
| 16 Aug 2009 03:53 PM |
| This is my form not yours, and the script didnt work DX |
|
|
| Report Abuse |
|
|