|
| 26 Apr 2014 08:33 PM |
So, I have a hopperbin which shoots projectiles per key down, causing damage on contact with NPC's. It works as intended in studio, but when I test it out in online mode, it doesn't work! There isn't any output either.
Function:
function InsertDamage(parent,a,b) dmgscript = script.Parent.Touch:Clone() dmgscript.Parent = parent dmgscript.Damage.Value = a dmgscript.MagicType.Value = b dmgscript.Disabled = false end
I also have various lines across the script (it's also a local script, by the way):
InsertDamage(firemagic,15,"Fire")
But as stated before, the projectiles do no damage whatsoever when in online mode, but does damage when testing it in studio. Any ideas on how to fix this? |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 08:39 PM |
| Are you using an event on the server side to inflict the damage when the damage object appears in it? |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 08:43 PM |
Basically, yeah. I'd post the whole script, but it's over 300 lines long :/
I'm going to try to clone a part from ServerStorage with the script (dmg) already inside of it, rather than have the script be cloned into the created part. I'll post my results. |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 08:45 PM |
| we need to see the beginning of the script. |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 09:25 PM |
| Got it to work, had to fix up the actual damage script. Thanks guys! |
|
|
| Report Abuse |
|
|