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
 

Merge two scripts.

Previous Thread :: Next Thread 
CrazyMe13 is not online. CrazyMe13
Joined: 07 Aug 2010
Total Posts: 45
30 Apr 2015 10:15 AM
(178,113) Excepted identifier,got '='

game.Players[stringVal.Value].leaderstats.Points.Value = game.Players[stringVal.Value].leaderstats.Points.Value = leaderstats.Points.Value + 1

The last equal.

Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
30 Apr 2015 11:01 AM
Seems that ExternalCode made a mistake in his code. Not really hard to fix that one... (did you try to fix it before asking?)

just remove this line:
game.Players[stringVal.Value].leaderstats.Points.Value =
Report Abuse
CrazyMe13 is not online. CrazyMe13
Joined: 07 Aug 2010
Total Posts: 45
30 Apr 2015 02:56 PM
Excepted identifier,got ')'

The last 'end' in the secound script I posted.

I am sorry but I am a beginner scripter and this is too advanced for me ,I tried to add and remove some ')'s but its not working.
Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
01 May 2015 07:44 AM
function onPlayerAdded(plr)
plr.CharacterAdded:connect(function(char)
local stringVal = Instance.new("StringValue", char)
stringVal.Name = "Hit"
stringVal.Value = char.Name
local hum = char:WaitForChild("Humanoid")
hum.Died:connect(function()
local killer = game.Players:FindFirstChild(stringVal.Val)
if killer then
killer.leaderstats.Points.Value = killer.leaderstats.Points.Value + 1
end
end)
end)
end

for _, player in pairs(game.Players:GetPlayers()) do
onPlayerAdded(player)
end
Report Abuse
RelaxRobby is not online. RelaxRobby
Joined: 11 Apr 2011
Total Posts: 104
01 May 2015 08:08 AM
hi m8
Report Abuse
CrazyMe13 is not online. CrazyMe13
Joined: 07 Aug 2010
Total Posts: 45
01 May 2015 09:24 AM
No errors but its still not working.
Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
01 May 2015 07:08 PM
Well, my assumption is it somewhere doesn't pass a check. Add some prints and check the output to determine where the script stops.

I will be away for a week, so I'm sorry to say I won't be able to help you any further than this.
Report Abuse
CrazyMe13 is not online. CrazyMe13
Joined: 07 Aug 2010
Total Posts: 45
01 May 2015 08:05 PM
Thx for everything , I will try to fix it.
Report Abuse
CrazyMe13 is not online. CrazyMe13
Joined: 07 Aug 2010
Total Posts: 45
02 May 2015 07:52 AM
Impossibru.
Report Abuse
bluebird1287 is not online. bluebird1287
Joined: 16 Jun 2011
Total Posts: 4202
02 May 2015 02:47 PM
You could just change "KOs" to "Points" and avoid having to do this


In the following script you have given, it seems as if it's all correct, but perhaps you messed up with parenting stuff or a typo / put scripts in the wrong place





I suggest going over it multiple times checking for mistakes.

I honestly didn't read the entire script, only the last few parts.

Report Abuse
CrazyMe13 is not online. CrazyMe13
Joined: 07 Aug 2010
Total Posts: 45
02 May 2015 05:35 PM
The first part of what I sent is just a script for a weapon.

And I checked the scripts 3 times already, I just can't find the mistake.
Report Abuse
CrazyMe13 is not online. CrazyMe13
Joined: 07 Aug 2010
Total Posts: 45
13 May 2015 02:54 PM
b?
Report Abuse
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
15 May 2015 08:32 AM
If you asked me nicely i could remake the WHOLE script and merge it.
Report Abuse
Previous Thread :: Next Thread 
Page 2 of 2Go to page: 1, [2] Prev
 
 
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