of     1   

Benocular
#141766207Sunday, July 27, 2014 10:05 PM GMT

This script goes in a tool and when you click it adds 3 points to your "TacoPoints" Err... points. The part of the script that is the OnClick is working fine and the script that makes the leaderboard works but this line of code that adds 3 TacoPoints to the players Leaderboard is not working. Here it is: Parent.Parent.Parent:findFirstChild("leaderstats").TacoPoints.Value = Parent.Parent.Parent:findFirstChild("leaderstats").TacoPoints.Value + 3 Please help! C:
Benocular
#141766367Sunday, July 27, 2014 10:06 PM GMT

B1 c:
Benocular
#141766566Sunday, July 27, 2014 10:08 PM GMT

Oh yeah in the output it says "14:59:34.987 - Stack Begin 14:59:34.987 - Script 'Workspace.TacoTagTaco.TacoEatingAndPoints', Line 19 14:59:34.988 - Stack End 14:59:34.988 - Disconnected event because of exception"
128GB
#141766935Sunday, July 27, 2014 10:12 PM GMT

--equipped local player = Game.Players:GetPlayerFromCharacter(script.Parent.Parent) --clicked if player then player:WaitForChild("leaderstats"):WaitForChild("TacoPoints") = player.leaderstats.TacoPoints.Value + 5 end --end click --end equipped
Benocular
#141767359Sunday, July 27, 2014 10:16 PM GMT

"unexpected symbol near '='.
128GB
#141767445Sunday, July 27, 2014 10:17 PM GMT

Post what you have
Fluent_Lua
#141767466Sunday, July 27, 2014 10:17 PM GMT

Parent.Parent.Parent: should it be script.Parent.Parent.Parent?
128GB
#141767507Sunday, July 27, 2014 10:18 PM GMT

Oh wait player:WaitForChild("leaderstats"):WaitForChild("TacoPoints").Value = player.leaderstats.TacoPoints.Value + 5 My bad.
Benocular
#141767571Sunday, July 27, 2014 10:18 PM GMT

This is the whole script ALL of it except the thing that makes the leader boar (Which works fine) local Tool = script.Parent; enabled = true function onActivated() if not enabled then return end enabled = false Tool.GripForward = Vector3.new(-0.97, 1.02e-005, -0.243) Tool.GripPos = Vector3.new(-0.2, 0, -1.23) Tool.GripRight = Vector3.new(0.197, 0.581, -0.79) Tool.GripUp = Vector3.new(-0.141, 0.814, 0.563) local player = Game.Players:GetPlayerFromCharacter(script.Parent.Parent) if player then player:WaitForChild("leaderstats"):WaitForChild("TacoPoints") = player.leaderstats.TacoPoints.Value + 5 end Tool.Handle.EatSound:Play() wait(.8) local h = Tool.Parent:FindFirstChild("Humanoid") if (h ~= nil) then if (h.MaxHealth > h.Health + 1.6) then h.Health = h.Health + 1.6 else h.Health = h.MaxHealth end end Tool.GripForward = Vector3.new(-1, 0, -0) Tool.GripPos = Vector3.new(0.2, 0, 0) Tool.GripRight = Vector3.new(0,0, -1) Tool.GripUp = Vector3.new(0,1,0) enabled = true end function onEquipped() Tool.Handle.OpenSound:play() end script.Parent.Activated:connect(onActivated) script.Parent.Equipped:connect(onEquipped)
Benocular
#141767824Sunday, July 27, 2014 10:21 PM GMT

NVM It works now! Thank you! c: (I love SH'ers) C;

    of     1