Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- his is a script in the workspace.
- http://www.roblox.com/Sword-Fighting-for-PP-place?id=149342934 Where the script can be found
- Format: /awarp 010 cardboardrocks
- The number has to be 3 characters long (Ex: 100 is 100, 10 is 010, 1 is 001)
- keyword = "/awarp"
- local PointsService = Game:GetService("PointsService")
- game.Players.PlayerAdded:connect(function(player)
- if player.Name == "CardboardRocks" or player.Name == "Smokedelsin" or player.Name == "tkdkid6" then
- player:WaitForDataReady()
- pointsToAward = PointsService:GetAwardablePoints()
- player.Chatted:connect(function(msg)
- if string.find(msg:lower(), keyword) then
- print("Found "..keyword)
- a = (tonumber(msg:sub(8, 11)))
- c = msg:sub(12, msg:len())
- playerschildren = game.Players:GetChildren()
- for i, v in pairs(playerschildren) do
- if v.Name:lower() == c:lower() then
- d = v
- end
- end
- if pointsToAward > 0 then
- game:GetService("PointsService"):AwardPoints(d.userId, a)
- end
- end
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement