#non delayed raycast guns
1 messages · Page 1 of 1 (latest)
why not do the raycast and shooting fx client sided then send the result to the server which can handle everything else such as server-sided shooting fx
** You are now Level 7! **
it would make it feel accurate even if ping is horrid
just did this and it works better but i have anther question for u if thats cool
alr go ahead
@proud iron
alright so ive been trying to create a bullet hole effect by spawing a part whereer the rayacast ends but its so inconcistant and i have no idea why i even asked an ai but i didnt realise how bad ai is at scripting idk how ppl make games with it
i just dont know whats a valid surface or not even tho its all the same?
** You are now Level 2! **
What do you mean by it being inconsistent
the part just dosnt spawn soemtimes
do the raycasts also still spawn inconsistently
wdym
the way it works is i spawn one on the client and one of teh server but when it shoots the player it tells the server to kill the player
actually, it might be better if you just raycast on client and then pass the results to the server instead of raycasting on both
for the bullet holes, you can replicate them on the server by passing the hit position to the server
tahts also probably just alot easier thank u
exploiters are gonna love your shooter game 
wym
oh
yea
god roblox js sucks dude
fix byfron PLEASE
its not that simple. any anticheat you use, there will be cheaters who find a way around it. it's a constant arms race. just have to make it hard enough that people dont bother
for your game tho just go with what you have and you can add in some anticheat later.