#jump through platform

1 messages · Page 1 of 1 (latest)

coarse tree
#

i want to make a platform that you can jump through from the bottom and land on top, i can pull this off easy on client side by using heartbeat and check player height but i want to do this for npcs which local script cant be used

wispy heron
coarse tree
#

the npc tht wanted to jump up will cause the platform to be non colliable and made the npc standing up there fell

#

you cant use local script

wispy heron
wispy heron
#

Elaborate dawg i dont even understand u

coarse tree
#

basically this but i want it to work with npcs

#

not just players

#

so u cant use local script

wispy heron
coarse tree
wispy heron
#

Copy and paste the local script into a server script and replace player and player.character with npc

coarse tree
#

the script will set the collision for all npcs

#

like imagine this

#

npc1 is standing on it

#

npc2 want to jump up

#

and when npc2 jump up npc1 fell bc the collision is set to false

wispy heron
#

Ok so when you do something like plrchar.humanoid.health = 0 replace it with for i, v in NPCsFolder:GetChildren do v.Humaboid.Health = 0

coarse tree
#

??

#

wat does that even hav to do with this

#

im saying that setting the collision on server side will mess up with other npcs

tidal vapor
#

use collision service

coarse tree
#

i mean i thought changing part collision group constantly is bad

tidal vapor
#

don't see why as long as you're judicious with it

#

could set the npc's collision group to not collide with platforms based on touch

#

maybe using a dummy hitbox just below the actual platform

coarse tree
tidal vapor
#

could do that as well but may require more performance heavy methods like constantly tracking position

#

and feels a bit jankier