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
 

Touch birck for a point on the leaderboards

Previous Thread :: Next Thread 
dustyshirt is not online. dustyshirt
Joined: 15 Jan 2012
Total Posts: 15431
29 Jan 2014 04:24 PM
How would i make a script for when you touch it you get a point on the leaderboards?

im under your bed
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
29 Jan 2014 04:29 PM
function touch(hit)
if hit.Parent:findFirstChild("Humanoid") then
hit.Parent.Player.leaderstats.Points = (hit.Parent.Player.leaderstats.Points + 1)
else
print('Not valid player')
end
end
script.Parent.Touched:connect(touch)


I'm not sure what the value in the leaderboard is, but change it if it isn't points. Also in the + 1) change 1 to how many points you want to give them
Report Abuse
dustyshirt is not online. dustyshirt
Joined: 15 Jan 2012
Total Posts: 15431
29 Jan 2014 04:33 PM
Thank you very much

im under your bed
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
29 Jan 2014 04:38 PM
Anytime.
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
30 Jan 2014 01:19 AM
Add .Value next to the .Points to make .Points.Value
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