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