Alex4897
|
  |
| Joined: 06 Aug 2008 |
| Total Posts: 14517 |
|
|
| 05 Jun 2014 09:15 PM |
"PointsService:GetAwardablePoints() failed because Forbidden"
seriously. This is breaking practically everything in my game.
--I am an eggspert in the eggcelent art of egg puns.-- |
|
|
| Report Abuse |
|
rcouret
|
  |
| Joined: 05 Sep 2013 |
| Total Posts: 129 |
|
| |
Alex4897
|
  |
| Joined: 06 Aug 2008 |
| Total Posts: 14517 |
|
|
| 06 Jun 2014 11:28 AM |
bump
--I am an eggspert in the eggcelent art of egg puns.-- |
|
|
| Report Abuse |
|
|
| 15 Jul 2014 11:25 PM |
Hey Guys, I know its been a month since this question was asked, But I have an answer. I'm by no means an expert in Lua, I literally bought Outrageous Builders club today, and have been teaching myself how to use Lua in Roblox somewhat seriously over the past few days...
Anyways, The issue is most likely that you were attempting to test the code, while in the Roblox Studio itself. Since you were not actually in any actual server, the Points Service was not allowing you to get awardable points.
I tested this by:
Creating to Parts
Grouping them
changing the name of one of the parts to "Head"
Inserting a Humanoid to the group
Inserting a script to the group that says:
"
local PointsService = Game:GetService("PointsService")
local interval = 3
while wait() do local pointsToAward = PointsService:GetAwardablePoints() if pointsToAward then script.Parent.Name = "Available points: " ..pointsToAward.. "!" else script.Parent.Name = "There were no points to award." end end
"
What that script does, is every 3 seconds, it will access the Points Service, and determine how many points may be awarded. It then sets the Text of the model equal to the amount of points to be awarded. |
|
|
| Report Abuse |
|