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 » Scripters
Home Search
 

Trying to make Exp increase script , won't work

Previous Thread :: Next Thread 
Fennict is not online. Fennict
Joined: 11 Jul 2014
Total Posts: 30
17 Oct 2017 04:08 PM
In studio, I am trying to create a script where when you kill the dummy, the value 'EXP' on the leaderboard goes up. Here's the script I'm dealing with:
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
local tag = character.Humanoid:FindFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
player.EXP.Value = player.EXP.Value + 35
end
end
end)
end)
end)

For some reason, the last end) comes up with an error. I tried fixing it, but with no luck.Could someone please help me fix my script so it increases the EXP Value?
Report Abuse
musickman14 is not online. musickman14
Joined: 27 Nov 2011
Total Posts: 979
17 Oct 2017 04:17 PM
On the third end you don't need a bracket
Report Abuse
Fennict is not online. Fennict
Joined: 11 Jul 2014
Total Posts: 30
17 Oct 2017 04:35 PM
/\ Then that makes the fouth end get under striked, with the words "Expected ')' to close '(' at line 2), got 'end'
Report Abuse
musickman14 is not online. musickman14
Joined: 27 Nov 2011
Total Posts: 979
17 Oct 2017 04:37 PM
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
local tag = character.Humanoid:FindFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
player.EXP.Value = player.EXP.Value + 35
end
end
end)
end)


Ok here do this
Report Abuse
Fennict is not online. Fennict
Joined: 11 Jul 2014
Total Posts: 30
17 Oct 2017 04:55 PM
^ Typed in but still doesn't work. (it also says that whenever you typed "player" it came up as an unknown player)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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