#I need to transfer data from local script to server script
1 messages · Page 1 of 1 (latest)
Another thing is that I'm pretty sure I can't just fire server with a remote event, because then if another player is firing a projectile it will go to the same point
it wouldnt
oh alr
idk how to properly transfer data with remote events, since they are pretty new to me
rn i cant really help cuz im doing something, but i recommend looking up a tutorial on it, as it helped me to learn it
its not too hard either
ok thanks
try something along the lines of remotevent:fireserver(mouse.position)
in your local script
and then the server script
remoteevent.onserverevent:connect(function(player,mouse.position)
the onserverevent event includes which player fired it in the arguments, so if you take that into account in your code it should be fine
you could also just include the specific model gun in the data fired to the server