|
| 20 Jun 2017 12:20 AM |
I have a GUI in my game where you can purchase a sword, the swords cost "points." The sword does't give you points or anything if you kill someone, and that's what I need to know. I want to make the sword be able to give points to the Player who killed someone .
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 20 Jun 2017 07:48 PM |
b8 Why does nobody respond to my threads?
|
|
|
| Report Abuse |
|
|
| |
|
dialga512
|
  |
| Joined: 27 May 2012 |
| Total Posts: 177 |
|
|
| 20 Jun 2017 08:15 PM |
I know I may be a little bit late, but you must add a script to the weapon, this is the script
--Add this to your weapon script and call it when a player is killed local PointsService = game:GetService("PointsService") function awardPoints(creator) if time() - lastAwardedTime < 5 then return else lastAwardedTime = time() PointsService:AwardPoints(creator.Value, 1) end end
This script will fire whenever a player gets a kill, assuming you have the point system done. You must call it using the function. |
|
|
| Report Abuse |
|
|