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
 

Re: Argument 1 missing or nil?????

Previous Thread :: Next Thread 
RetroSlide is not online. RetroSlide
Joined: 21 Apr 2012
Total Posts: 1115
07 Jan 2016 09:23 PM
22:18:14.722 - Argument 1 missing or nil
22:18:14.722 - Script 'Players.Player1.Backpack.Sword.SwordScript', Line 25
22:18:14.723 - Stack End

learning how
and
here the script no idea what is wrong...


handle.Touched:connect(function(hit)
if equipped and character and humanoid and humanoid.Health > 0 and hit and not hit.isDescendantOf(character) then
local targethumanoid = hit.Parent:FindFirstChild("Humanoid")
if targethumanoid and targethumanoid.Health > 0 and not hithumanoids[targethumanoid] then
hithumanoids[targethumanoid] = true
targethumanoid:TakeDamage(damage * combo)
end
end
end)

tool.Activated:connect(function()
local clickdelta = tick() - lastclick
if clickdelta > swingtime then
lastclick = tick()
hithumanoids = {}
if clickdelta < swingtime + combowindow then
combo = (combo +1) % 3
else
combo = 0
end
if player then
if combo == 0 then
event:FireClient(player, "RunAnimation", "SlashAnim2")
slashsound:Play()
elseif combo == 1 then
event:FireClient(player, "RunAnimation", "ThrustAnim2")
overheadsound:Play()
elseif combo == 2 then
event:FireClient(player, "RunAnimation", "OverheadAnim2")
lungesound:Play()
end
end
end
end)


~retroooooooo
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
07 Jan 2016 09:25 PM
is combo an intvalue?



http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217
Report Abuse
RetroSlide is not online. RetroSlide
Joined: 21 Apr 2012
Total Posts: 1115
07 Jan 2016 09:28 PM
hm?


~retroooooooo
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
07 Jan 2016 09:31 PM
Looking through your script you haven't actually defined a 'combo' unless it is in a part of the script you haven't posted.



http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217
Report Abuse
RetroSlide is not online. RetroSlide
Joined: 21 Apr 2012
Total Posts: 1115
07 Jan 2016 09:33 PM
ohh i defined it above this part of the script at the top along with the the other values throughout the script.


~retroooooooo
Report Abuse
RetroSlide is not online. RetroSlide
Joined: 21 Apr 2012
Total Posts: 1115
07 Jan 2016 09:47 PM
helpppp


~retroooooooo
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