#Question on gun raycast and bullet making
1 messages · Page 1 of 1 (latest)
if model and game:GetService("Players"):GetPlayerFromCharacter(model) ~= player then
huh?
in your server script
when the raycast is checking for a model, also check if the model also the character is not equal to the player who fired the event
i want it so that when the player fires the bullet, the bullet is the thing that does the damage, not the raycast
wow
literal idiot moment right here, i am soo sorry i completely read that wrong
try this
i am not smart enough for that
i want to make a game where if you have the least kills at the end of the round, you can choose a card to upgrade yourself, and i dont want it to hit anyone from anywhere
juust try excluding the descendants by the params
and it wouldnt hit anyone
oh uve alr done that
nvm
nvm
making the bullets cause the damage would make it so you can't hit anyone from anywhere
** You are now Level 1! **
got it to do what i want but now when i kill someone it only kills them for me and they are still alive
Watch Roblox Studio and millions of other Roblox Studio videos captured using Medal.
run the touch event on server
the what
bullet.touched function
if you run it in a localscript it only replicates to you
server scripts replicates it to all
i tried doing this but they stopped taking damage and it says im trying to index nil with take damage
this is easily exploitable but to clear the errors
clear the errors?
only send hit.Parent if it's a player
oh right
cause the bullet is touching other parts that isn't a player
now my bullets pass through walls ):