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 » Scripters
Home Search
 

Re: I need Scripter's help

Previous Thread :: Next Thread 
SovereignVicente is not online. SovereignVicente
Joined: 31 Oct 2013
Total Posts: 2664
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
SovereignVicente is not online. SovereignVicente
Joined: 31 Oct 2013
Total Posts: 2664
20 Jun 2017 12:23 AM
b1


Report Abuse
SovereignVicente is not online. SovereignVicente
Joined: 31 Oct 2013
Total Posts: 2664
20 Jun 2017 12:45 PM
b2


Report Abuse
SovereignVicente is not online. SovereignVicente
Joined: 31 Oct 2013
Total Posts: 2664
20 Jun 2017 12:46 PM
b3


Report Abuse
SovereignVicente is not online. SovereignVicente
Joined: 31 Oct 2013
Total Posts: 2664
20 Jun 2017 12:46 PM
b4


Report Abuse
SovereignVicente is not online. SovereignVicente
Joined: 31 Oct 2013
Total Posts: 2664
20 Jun 2017 07:45 PM
b5


Report Abuse
SovereignVicente is not online. SovereignVicente
Joined: 31 Oct 2013
Total Posts: 2664
20 Jun 2017 07:45 PM
b6


Report Abuse
SovereignVicente is not online. SovereignVicente
Joined: 31 Oct 2013
Total Posts: 2664
20 Jun 2017 07:47 PM
b7


Report Abuse
SovereignVicente is not online. SovereignVicente
Joined: 31 Oct 2013
Total Posts: 2664
20 Jun 2017 07:48 PM
b8 Why does nobody respond to my threads?


Report Abuse
SovereignVicente is not online. SovereignVicente
Joined: 31 Oct 2013
Total Posts: 2664
20 Jun 2017 07:48 PM
b9


Report Abuse
dialga512 is online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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