of     1   

HatLicense
#183746191Tuesday, February 16, 2016 9:16 AM GMT

I've created a Fireball with FilteringEnabled- I have the RemoteFunction Stored in ReplicatedStorage I have the Script for creating the Fireball in ServerScripts and I have the Keydown in a LocalScript in Backpack. I was wondering- is this the right way to do it?
HatLicense
#183746200Tuesday, February 16, 2016 9:17 AM GMT

- meaning as in is this the best way to place everything?
DeepBlueNoSpace
#183747091Tuesday, February 16, 2016 10:35 AM GMT

Yeah, that looks about right
HatLicense
#183747362Tuesday, February 16, 2016 10:53 AM GMT

out of curiosity I don't need to clone the script in ServerScript and dedicate it to a player do I? Like if 2 players fire that script at the same time, it's going to run for both of them like it should?
Lightlimn
#183747405Tuesday, February 16, 2016 10:56 AM GMT

I tend to put localscripts in the playergui but i don't think it makes a difference. use userinputservice, not keydown.
HatLicense
#183747686Tuesday, February 16, 2016 11:14 AM GMT

uh- no, I mean if I was to run the RemoteFunction from the LocalScript to the Script on 2 different players at the same time, would both players have the same effect or would the script break because it's already running?
Wrathsong
#183748104Tuesday, February 16, 2016 11:34 AM GMT

remote event to the server to fire and damage the player so that it affects the other player anyway?
HatLicense
#183748961Tuesday, February 16, 2016 12:16 PM GMT

uh- I've put a script named 'listenFor' in ServerScripts. I've got a RemoteEvent in ReplicatedStorage called Fireball the Script in ServerScripts is listening for the event Fireball. The LocalScript in player backpack will fire the Fireball Event when the key Z is pressed. My question is if 2 players pressed the key z, which would fire the Fireball Event would it only fire for one of them, because the Script in ServerScripts is still running or would it fire for both, because it can active twice at the same time?
filiptibell
#183750020Tuesday, February 16, 2016 12:51 PM GMT

Events are asynchronous. This basically means that they dont need to wait for previous events to finish. You can fire the event while the other is still running, and it will run at the same time as the event before (even if it hasn't finished)

    of     1