NetsFan0
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 2777 |
|
|
| 05 Aug 2014 10:27 PM |
script.Parent.MouseButton1Click:connect(function() local key = script.Parent.Parent.TextBox.Text if key == ""..string.sub(script.Parent.Parent.Parent.Parent.Name, -1, -3)..""..string.sub(script.Parent.Parent.Parent.Parent.userId, -1, 1).."" then game:GetService("BadgeService"):AwardBadge(script.Parent.Parent.Parent.Parent, 170422276) script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0 end end) |
|
|
| Report Abuse |
|
|
NetsFan0
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 2777 |
|
|
| 05 Aug 2014 10:27 PM |
The if key line is one line but the forum cut it into two lines.
ɪᴛ ᴀɪɴ'ᴛ ᴇᴀsʏ, ʙᴇɪɴɢ ᴀ ɴᴀᴅᴀʟ ʜᴀᴛᴇʀ |
|
|
| Report Abuse |
|
|
NetsFan0
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 2777 |
|
|
| 05 Aug 2014 10:34 PM |
bump
ɪᴛ ᴀɪɴ'ᴛ ᴇᴀsʏ, ʙᴇɪɴɢ ᴀ ɴᴀᴅᴀʟ ʜᴀᴛᴇʀ |
|
|
| Report Abuse |
|
|
2eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 1351 |
|
|
| 05 Aug 2014 10:37 PM |
| It needs to be run from a server script, not a local script. |
|
|
| Report Abuse |
|
|
NetsFan0
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 2777 |
|
|
| 05 Aug 2014 10:45 PM |
It is in a server script. The script is in a Gui Button
ɪᴛ ᴀɪɴ'ᴛ ᴇᴀsʏ, ʙᴇɪɴɢ ᴀ ɴᴀᴅᴀʟ ʜᴀᴛᴇʀ |
|
|
| Report Abuse |
|
|
2eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 1351 |
|
|
| 05 Aug 2014 10:49 PM |
Oh, AwardBadge's first argument needs to be the player's userId, not the player.
game:GetService("BadgeService"):AwardBadge(script.Parent.Parent.Parent.Parent.userId, 170422276) |
|
|
| Report Abuse |
|
|
NetsFan0
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 2777 |
|
|
| 05 Aug 2014 10:51 PM |
Thanks
ɪᴛ ᴀɪɴ'ᴛ ᴇᴀsʏ, ʙᴇɪɴɢ ᴀ ɴᴀᴅᴀʟ ʜᴀᴛᴇʀ |
|
|
| Report Abuse |
|
|