Turns out the solution for my previous question doesn't work, and I also need it to work because some stuns are aimmed like a gadget

so I need a system that could work with both ranged and melee weapons to stun.

Elaborate a little more on this

the help I asked for was to help me figure out a way to make it so when a player is shot they get stunned (stand in place) for a few seconds. I more so need a way to detect when a player gets hit which is the part where this gets tricky as I cant use a tag system as they need to be able to get shot by a gadget to get stunned too

Just gonna link the old post for others:

bumping this up because I’m still trying to figure this out

2 Likes

I don’t see a way, you are going to need something unthought of.

only thing I can think of is making them get knocked out from the shot but then they don’t stay where they were.

yeah.

WAIT I JUST THOUGHT OF SOMETHING. The knocking out thing could actually work. if there’s a way I can change the players position to a specific area I could track that players cordniates so that when they get knocked out they teleport back to where they were

1 Like

That would need a coordinates thingy that tells there position and when they get knocked out (the lifecycle) it gets the x and y and then you would have to have a teleporter at every spot.

man if only there was a way we could set the x,y position in block code.

1 Like

So there isnt a x y option in there?

unfortunately you cant set the x,y position of a player in code. (really should be able to be done.)

hang on just thought of another thing. you might be able to detect if someone got hit if you check if their health has changed from its past value. if that’s possible we can easily make the stuns work with projectiles

1 Like

You can try to do that

You can. The problem is that you need a trillion teleporters

I’m going to try and see if there’s a way to check the players health

Than try it

I can’t figure a way to make this work so I’m just going to work on the other features till I can figure this out

no no he is fine he is doing a type of I NEED help kind of help