|
| 17 Aug 2014 04:51 PM |
I'm making a game that you click as many times as possible in ten seconds, and after you click, it will award points. If you have the T-Shirt, I want it to award 1.5 times as many points. How would I modify this script to do that?
local PointsService = Game:GetService("PointsService") if script.Parent.Parent.Parent.Parent.Parent:HasItem(164792610) local value = script.Value*1.5 else local value = script.Value local pointsToAward = PointsService:GetAwardablePoints() local universeBalance = PointsService:GetGamePointBalance(player.userId) if ( pointsToAward > 0 and universeBalance == 0) then
pcall(function() PointsService:AwardPoints(player.userId, value) end) end end)
If you look closely, I don't give a crap. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2014 05:04 PM |
HELP PLEASE
If you look closely, I don't give a crap. |
|
|
| Report Abuse |
|
|
Goodis
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 253 |
|
|
| 17 Aug 2014 05:10 PM |
it=shirtidhere; Players=game:service[[Players]]:players(); game.Players.DescendantAdded:connect(functio(Ph) for a=1,#Players do if(game.Players:FindFirstChild(a[i].Name).Character Shirt.ShirtTemplate='rbxassetid://'..it)then -- pp stuff end;end;end);
|
|
|
| Report Abuse |
|
|
|
| 17 Aug 2014 05:11 PM |
| By the way, GamePasses are more efficient. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2014 05:11 PM |
@Epic, I don't have the money for gamepasses atm.
If you look closely, I don't give a crap. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2014 05:13 PM |
Goodis, that wouldn't work because the player wouldn't necessarily have the t-shirt.
If you look closely, I don't give a crap. |
|
|
| Report Abuse |
|
|
Goodis
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 253 |
|
|
| 17 Aug 2014 05:15 PM |
| I am on mobile, untested, and it finds that template; if they are not wearing it then they get no special privilegese |
|
|
| Report Abuse |
|
|
Goodis
|
  |
| Joined: 14 Jan 2010 |
| Total Posts: 253 |
|
|
| 17 Aug 2014 05:15 PM |
| *they do get spyecial privileges |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2014 05:17 PM |
wat
If you look closely, I don't give a crap. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2014 05:24 PM |
bump...
If you look closely, I don't give a crap. |
|
|
| Report Abuse |
|
|