|
| 30 Jun 2014 01:15 PM |
| All I need is a block that when touched, gives x amount of "Points" on the leaderboard. That's it. Also the leaderboard would be very, very appreciated as well. |
|
|
| Report Abuse |
|
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 30 Jun 2014 01:18 PM |
get out
but here is mah script
function createleaderboord local b = instonce.new('ledorbord') b.parent = ledorbord end createleaderboord()
function award(p, amt) local money = p.lederbord.money money.value = money.value + amt end
script.parunt.touched:CONNECT(FUNCTION(oopsIusedCaps) local thing = oopsIusedCaps.Parent if thing:findFirstChild('humanoid') then local p = game.plyrs:getplyrfromcharctur(thing) award(p, 5) end end)
siggys r stupid |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2014 01:20 PM |
-- leaderstats
game.Players.PlayerAdded:connect(function(player) local leaderstat = Instance.new("IntValue",player) leaderstat.Name = "leaderstats" local points = Instance.new("IntValue",leaderstat) points.Name = "Points" end)
|
|
|
| Report Abuse |
|
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 30 Jun 2014 01:21 PM |
thx very much but mine actualy gives point also.
siggys r stupid |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2014 01:22 PM |
-- Points giver amountPoints = 0 -- Amounts of points to recieved when touch the part
script.Parent.Touched:connect(function(hit) if hit.Parent then local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then stats = player:FindFirstChild("leaderstats"):FindFirstChild("Points") if stats then stats.Value = stats.Value + amountPoints end end end end) |
|
|
| Report Abuse |
|
|
Barite
|
  |
| Joined: 25 Jun 2014 |
| Total Posts: 1319 |
|
|
| 30 Jun 2014 01:22 PM |
partNameHere.Touched:connect(function(hit) if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("leaderstats") then hit.Parent.leaderstats.Points.Value = hit.Parent.leaderstats.Points.Value + x end) |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2014 01:23 PM |
| -- Put the points giver thingy inside a part that you want to giff people points when they touch it. |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2014 01:29 PM |
Robomax. Get out, you troll. Giving him this script does no good at all... how much effort did you put in to screwing it up? Be nice, have a heart, and help him the way he really needs.
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2014 01:38 PM |
@Barite
why u trying to find leaderstats inside a character? |
|
|
| Report Abuse |
|
|