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 » Scripting Helpers
Home Search
 

Re: Badge giver tool help

Previous Thread :: Next Thread 
Drenkus is not online. 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 is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
16 Aug 2009 02:51 PM
Bump
Report Abuse
Drenkus is not online. Drenkus
Joined: 03 May 2009
Total Posts: 2380
16 Aug 2009 03:11 PM
Anyone?
Report Abuse
mraznboy1 is not online. 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 is not online. 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 is not online. 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 is not online. rakstern
Joined: 13 Dec 2008
Total Posts: 7718
16 Aug 2009 03:22 PM
Hello?
I hate floodchecks
Report Abuse
Drenkus is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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