#hitbox created by my attack system dosent appear in the server (code included)
1 messages · Page 1 of 1 (latest)
lemme screenshot the code hold on
but yea i made this and the hitbox created wont transfer to the client
server*
lemme send a vid
Are you familiar with the server-client model?
Use remote events
** You are now Level 11! **
make the hitbox part in a server script in sss and animation and input as a local in sps and just use a remote event
so make a remoteevent that is triggered by a localscript, then the serverscript is triggered by the remote event?
also where should i put the remote event?
ok, i figured out how to make the localscript attack cause an effect on the server with a remoteevent
but
how can i make the remote event spawn the hitbox at the attacker's position if it cant figure out who the attacker is
cuz the value for who the attacker is
is in the localscript
local scripts are on the client, and anything done on the client will only be shown for the player. While things done on the server are replicated to all other clients/players
For client sided hitboxes, you should send the information that the hitbox gets to the server and validate it from there
so if a localscript triggers a remote event, does the serverscript that senses the remoteevent getting trigger just know all the variables from the localcsript or something like that?
idk how else i would send that info
are you familiar with arguments and parameters?
PATREON🎁
Get Access to My Scripts + More Perks by Becoming a Patreon Member!
https://www.patreon.com/BrawlDev
DISCORD 📜
Join my Discord Community if you want scripting help, participate in events/challenges, and make friends!
https://discord.gg/WC6kPu5W5P
ADVANCED ROBLOX SCRIPTING SERIES 🔴
https://www.youtube.com/playlist?list=PLQ1Qd...
in this Roblox coding tutorial we are going to cover arguments.
arguments are just inofrmations you pass through functions. or what i like to call blank variables.
sheepbowl youtube channel: https://www.youtube.com/channel/UC2ljYS4OqG4F0-YMOrTkhVA
keywords: alvinblox, thedevking, coding, tutorial, beginner, scripting, studio, lua, how to c...
ok
also while i watch those i will send u the code i have rn so u can understand it cuz maybe ive been explaining it weirdly
No it doesn't work like that
You must manually send specific data
oh
so there is a way to manually send data from a local script to a server script via remoteevents?
ok
im watching the video still to figure it out
oooh shoot
it will automatically define the player that triggered the event
and then i can use it to get the character
i understand it now
ok
i made the hitbox appear to the server now
and i will continute to watch those tutorials