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
 

Re: 1 Player Points every 30 min

Previous Thread :: Next Thread 
Xkrew is not online. Xkrew
Joined: 06 Dec 2013
Total Posts: 1044
08 Jun 2014 01:51 AM

local PointsService = Game:GetService("PointsService")
game.Players.PlayerAdded:connect(function(player)
local pointsToAward = PointsService:GetAwardablePoints()
local universeBalance = PointsService:GetGamePointBalance(player.userId)
while true do
if ( pointsToAward > 0 ) then
pcall(function()
wait (30)
PointsService:AwardPoints(player.userId, 1)
end)
end
end

PointsService.PointsAwarded:connect(function(userId, userBalanceinUni, userBalance)
local message = Instance.new('Message', game.Workspace)
message.Text = "Point awarded to " .. userId .. ". This player now has " .. userBalance .. " points total!"
wait(5)
message:Destroy()
end)
end)

i dont know it work or not
Report Abuse
Succulence is not online. Succulence
Joined: 24 Sep 2012
Total Posts: 1437
08 Jun 2014 02:02 AM
should work
Report Abuse
Faxu is not online. Faxu
Joined: 08 Feb 2010
Total Posts: 2937
08 Jun 2014 02:10 AM
I'm pretty sure that script awards one player point every 30 seconds, not minutes.
Report Abuse
Xkrew is not online. Xkrew
Joined: 06 Dec 2013
Total Posts: 1044
08 Jun 2014 02:17 AM
oh sorry

wait (1800)
Report Abuse
devMOUSE is not online. devMOUSE
Joined: 23 Dec 2009
Total Posts: 137
08 Jun 2014 03:28 AM
local PointsService = Game:GetService("PointsService")
game.Players.PlayerAdded:connect(function(player)
local pointsToAward = PointsService:GetAwardablePoints()
local universeBalance = PointsService:GetGamePointBalance(player.userId)
while true do
if ( pointsToAward > 100 ) then
pcall(function()
wait (30)
PointsService:AwardPoints(player.userId, 1)
end)
end
end

PointsService.PointsAwarded:connect(function(userId, userBalanceinUni, userBalance)
local message = Instance.new('Message', game.Workspace)
message.Text = "Point awarded to " .. userId .. ". This player now has " .. userBalance .. " points total!"
wait(5)
message:Destroy()
end)
end)

i dont know it work or not
Report Abuse
seyyid123 is not online. seyyid123
Joined: 12 Jun 2012
Total Posts: 8
08 Jun 2014 03:33 AM
yeah im sure to
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