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 » Scripting Helpers
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
24 Sep 2011 01:03 PM
[ Content Deleted ]
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
24 Sep 2011 01:10 PM
[ Content Deleted ]
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
24 Sep 2011 01:10 PM
Any output?


Problem MAY be

dama = string.sub(msg, endspace + 1)

Dama is a string

script.Parent.Damage.Value = damage
Damage is a number/intvalue

Setting string as value for number- or intvalue, probably errors? ;3

I cant think of anything else.
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
24 Sep 2011 01:11 PM
[ Content Deleted ]
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
24 Sep 2011 01:14 PM
is "Damage" a IntValue or NumberValue?
if not, what is it?
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
24 Sep 2011 01:15 PM
Also "targ" doesnt exist since you have set it

targ = players[b]

when "players" is in.

Its "plays" in your script.
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
24 Sep 2011 01:18 PM
Ah. The problem was on the "targ"

since "targ" doesnt exist, it skips

if targ ~= nil then
print("#")
dama = string.sub(msg, endspace + 1)
print("#")
-- HERE IS THE LAST ONE THAT RUNS

shoot(targ.Character.Torso.CFrame.p, dama)
print("#")
end

totally. Just add some other letters on those prints, and you will see
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
24 Sep 2011 01:28 PM
[ Content Deleted ]
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
24 Sep 2011 01:32 PM
[ Content Deleted ]
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
24 Sep 2011 01:34 PM
It didnt find any players with the name you tried.

Problem line:
playname = string.sub(msg, 13, endspace - 1)
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
24 Sep 2011 01:36 PM
[ Content Deleted ]
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
24 Sep 2011 01:49 PM
[ Content Deleted ]
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
24 Sep 2011 01:50 PM
Fix for the script:

endspace = string.find(string.sub(msg, 13), " ")+12

msg is "Alpha shoot comiconor 50"
endspace searches for space from "comiconor 50" which returns 9 (i think)
so endspace returns 9, and you try to string.sub(msg,13,9), which returns nothing.

This is why you need to add the amount you decreased minus 1 (12), so it will find your name from string.sub(msg,13,21), which is "comiconor".
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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