#bullets being inconsistent

1 messages · Page 1 of 1 (latest)

iron bay
#

im having trouble with my bullets being very inconsistent with detecting when it hits something

spiral vortex
#

are you shooting dummies or avatars with accessories?

calm slate
iron bay
#

uh they're projectiles

iron bay
#

the tween is the shooting thing

spiral vortex
#

are you just shooting plain dummies?

iron bay
#

uh its a pvp game

#

not sure how thats relevant

#

i can show u the rest of the script hold on

spiral vortex
#

how are you testing that it's not working?

iron bay
iron bay
spiral vortex
#

hmm

#

so ur checking for a humanoid

iron bay
#

its just to make sure whatever im hitting is actually a player

#

it would be nice if the .touched could detect anchored parts

#

but since it cant i put in getpartsinpart

#

it can only detect an anchored part when it also hits another unanchored part but its the best i could think of

#

if u have an idea on how to make .touched be able to detect anchored parts that would be much appreciated

shut sundial
#

u could use runservice to check every frame for and parts inside a bullet every frame

iron bay
#

well its either that or making a bunch of checks with getpartsinpart

#

which is laggy.

shut sundial
#

maybe if ur bullets are thin

#

u could use raycasting

iron bay
#

the bullets are projectiles though

#

raycasting would be for hitscans

shut sundial
#

ik but u could check with raycasting in front of the bullet

iron bay
#

ah

shut sundial
#

or maybe make projectiles diffrent than with tween service

iron bay
#

i see what you mean

iron bay
#

i've seen linear velocity but the part has to be unanchored

shut sundial
iron bay
#

whih means its affected by gravity

shut sundial
#

or use runservice to move and check each frame

iron bay
#

i think i'll just try the runservice

#

thx

iron bay
#

ok i've tried runservice for a while trying to make it work

#

but for some reason it seems to make the bullet's damage linger

#

despite the bullet not even existing

#

i added an if statement to only make it deal damage when the bullet IS a thing but its still broken

calm slate