Advertisement
otorp2

roblox PointScript leaderbd

Jun 27th, 2019
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1.  
  2. local blue = Color3.fromRGB(0,0,255)
  3. local green = Color3.fromRGB(0,255,0)
  4. local red = Color3.fromRGB(255,0,0)
  5.  
  6. local smallPoints = 10
  7. local largePoints = 50
  8. local losePoints = -50
  9.  
  10. local Players = game:GetService("Players")
  11.  
  12.  
  13. local function givePoints()
  14. print("Player giving points")
  15. end
  16.  
  17. local function partTouched(otherPart)
  18. local player = Players:GetPlayerFromCharacter(otherPart.Parent)
  19. if player then
  20. givePoints(player)
  21. end
  22. end
  23. pointPart.Touched:Connect(partTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement