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: Awarding Player Points?

Previous Thread :: Next Thread 
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
06 Jun 2014 05:36 PM
Do I need access or something? I have enough and I'm not getting any errors, using the exact same script as on the tutorial page.
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
06 Jun 2014 06:19 PM
Bump 1
Report Abuse
togov is online. togov
Joined: 21 Apr 2010
Total Posts: 3740
06 Jun 2014 06:20 PM
Ben you need to use the getservice ("points")
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
07 Jun 2014 03:59 AM
Bump 2
Report Abuse
TheLuaUser is not online. TheLuaUser
Joined: 22 May 2012
Total Posts: 1405
07 Jun 2014 05:00 AM
This example will offer Player Points to whoever joins.
_________________________________________________
PS = game:GetService("PointsService") -- Declares the Service.
PointsToAward = 10 -- Points to award when the player joins.
CurrentPoints = game:GetService("PointsService"):GetAwardablePoints() -- How many points the budget haves.
game.Players.PlayerAdded:connect(function(plr)
if PointsToAward >= CurrentPoints then -- Checks if there are enough Points to award.
print("The game haves enough points to award!")
wait()
PS:AwardPoints(plr.userId,PointsToAward) -- Award Points.
print(""..plr.Name.." just got" ..PointsToAward)
else -- If there aren't enough points...
print("The game doesn't have enough points to award!")
wait()
end
end)
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
07 Jun 2014 05:25 AM
@theluanoob

That wasn't the question you dimwit
Report Abuse
Kirbyfan56 is not online. Kirbyfan56
Joined: 29 Oct 2007
Total Posts: 179
07 Jun 2014 05:31 AM
it was an example
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
07 Jun 2014 05:38 AM
you cant use it in studio.

Report Abuse
TheLuaUser is not online. TheLuaUser
Joined: 22 May 2012
Total Posts: 1405
07 Jun 2014 05:39 AM
@BenCrippledBastard

Is that how you call people who tries to help you?
Shame on you.

Sluggy bastard.
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
07 Jun 2014 06:00 AM
I'm appalled at how nooby OP, Ben, called him a dimwit.

The question was worded horribly, and even though i know the answer, I'm not going to tell him.

You disgust me, go learn some manners.
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
07 Jun 2014 06:01 AM
@TheLuaUser, that was really helpful! I'm going to use it. Thank you:)
Report Abuse
TheLuaUser is not online. TheLuaUser
Joined: 22 May 2012
Total Posts: 1405
07 Jun 2014 06:21 AM
@smiley,

No problem. :)
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
07 Jun 2014 06:55 AM
You didn't help me at all. You are of the kind that roams here giving pseudo help and then getting mad at people for pointing out that you're not helping them, it's pathetic really and frustrating for users that need help.

What I need is evident when reading and comprehending both the title and body of my original post.
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
07 Jun 2014 06:57 AM
@VerifiedName

If I were to use it in studio I would have gotten an error but I'm assuming you were assuming that I was using studio since I pointed out that I was getting no errors. There is a thing called developer console which you can access in-game via F9 to check serverside errors as you would see them in the output in studio.
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
07 Jun 2014 06:58 AM
Well, then, TheLua was trying to help you and he even helped me too and I also learned some new things because I haven't experimented with Player Points yet. Thank you TheLua!
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
07 Jun 2014 07:00 AM
That's good for you then but doesn't contribute anything to this thread and honestly I couldn't care less.
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
07 Jun 2014 07:02 AM
Don't you at least appreciate the help TheLua offered to you...?
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
07 Jun 2014 07:04 AM
No because he did not even make an effort to respond to the question but rather copy pasted some script that was remotely related to the topic.
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
07 Jun 2014 07:08 AM
Well, if you look into the script, he actually did help: One of the important parts was to get the type of service and TheLua had included it, the script also has the part that gives the player points. So I think TheLua has both helped you and answered the question too.
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
07 Jun 2014 07:09 AM
Your stupidity baffles me, you yourself didn't even bother to read the 2 lines of text in my original post or you wouldn't have posted what you just did.

"using the exact same script as on the tutorial page."
Report Abuse
Paramedic4 is not online. Paramedic4
Joined: 23 Jan 2011
Total Posts: 5934
07 Jun 2014 07:09 AM
And TheLua also exceeded your expectations which was really good
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
07 Jun 2014 07:11 AM
You can defend him as much as you want with invalid arguments but it won't change my opinion that you two are beyond stupid.
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
07 Jun 2014 07:13 AM
op doesnt know how to script hes not gonna know what answers he needs
Report Abuse
BenBonez is not online. BenBonez
Joined: 29 Aug 2008
Total Posts: 19362
07 Jun 2014 07:14 AM
smiley thinks he is edgy by using the word op and being an atr tard
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
07 Jun 2014 07:15 AM
Wow the negativity here, and Ben your question was not clear.
"Do I need access" There is no "access", the owner of the place can freely distribute playerpoints as long as he HAS in his place.
Regardless, this post had no clear question so you cannot blame the others for assuming.
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