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
 

Works in studio but not online...

Previous Thread :: Next Thread 
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
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
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
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
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
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
TheNextEvolution is not online. TheNextEvolution
Joined: 08 Apr 2010
Total Posts: 1624
26 Apr 2014 08:45 PM
we need to see the beginning of the script.
Report Abuse
IAmTheRolo is not online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
26 Apr 2014 09:25 PM
Got it to work, had to fix up the actual damage script. Thanks guys!
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