Advertisement
SmokeDelsin

testing

May 13th, 2015
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. his is a script in the workspace.
  2.  
  3. http://www.roblox.com/Sword-Fighting-for-PP-place?id=149342934 Where the script can be found
  4.  
  5. Format: /awarp 010 cardboardrocks
  6. The number has to be 3 characters long (Ex: 100 is 100, 10 is 010, 1 is 001)
  7.  
  8. keyword = "/awarp"
  9. local PointsService = Game:GetService("PointsService")
  10.  
  11. game.Players.PlayerAdded:connect(function(player)
  12. if player.Name == "CardboardRocks" or player.Name == "Smokedelsin" or player.Name == "tkdkid6" then
  13. player:WaitForDataReady()
  14. pointsToAward = PointsService:GetAwardablePoints()
  15. player.Chatted:connect(function(msg)
  16.  
  17. if string.find(msg:lower(), keyword) then
  18. print("Found "..keyword)
  19. a = (tonumber(msg:sub(8, 11)))
  20. c = msg:sub(12, msg:len())
  21. playerschildren = game.Players:GetChildren()
  22. for i, v in pairs(playerschildren) do
  23. if v.Name:lower() == c:lower() then
  24. d = v
  25. end
  26. end
  27. if pointsToAward > 0 then
  28. game:GetService("PointsService"):AwardPoints(d.userId, a)
  29. end
  30. end
  31. end)
  32. end
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement