|
| 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 |
|
|
|
| 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 |
|
|
|
| 29 Jan 2014 04:33 PM |
Thank you very much
im under your bed |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Jan 2014 01:19 AM |
| Add .Value next to the .Points to make .Points.Value |
|
|
| Report Abuse |
|
|