9sume
(9sume)
February 11, 2021, 4:08pm
#1
How could I lift all players in an area and then slam them into the ground, without lag
I’ve been facing a bug though where, whenever I use the skill it “kinda” works, but rarely lifts all of the players in the area. Sometimes doesn’t even lift any. I can’t find whats wrong.
What I did was use :gettouchingparts and sent it to client, then from there I did the following:
This is what I wanna achieve:
MrchipsMa
(MrchipsMan)
February 11, 2021, 4:38pm
#2
9sume
(9sume)
February 11, 2021, 4:50pm
#3
If you read the code you will see I used one.
1 Like
A3Quil
(A3Quil)
February 11, 2021, 4:51pm
#4
Lag is something that always happens mostly depends on the device too
TopBagon
(Bagon)
February 11, 2021, 5:00pm
#5
try printing out all of the players you got from that function, I assume GetTouchingParts
can be pretty inconsistent
9sume
(9sume)
February 11, 2021, 5:11pm
#6
Output:
12:09:31.577 Dummy4 - Client
12:09:31.577 MESSSS - Client
12:09:31.577 Dummy2 - Client
12:09:31.577 Dummy - Client
12:09:31.578 Dummy1 - Client
12:09:31.578 Dummy3 - Client
12:09:31.579 Dummy3 - Client
12:09:31.579 SonnyKid - Client
12:09:31.579 Dummy4 - Client
12:09:31.580 SonnyKid - Client
12:09:31.580 Dummy4 - Client
12:09:31.580 SonnyKid - Client
12:09:31.580 Monkeyboy - Client
12:09:31.581 Dummy1 - Client
12:09:31.582 Dummy3 - Client
12:09:31.583 MESSSS - Client
12:09:31.584 Dummy - Client
12:09:31.584 Monkeyboy - Client
12:09:31.584 Dummy - Client
12:09:31.585 SonnyKid - Client
12:09:31.585 Monkeyboy - Client
12:09:31.586 SonnyKid - Client
12:09:31.586 Dummy1 - Client
12:09:31.587 Dummy3 - Client
12:09:31.587 MESSSS - Client
12:09:31.587 Dummy3 - Client
12:09:31.587 Dummy2 - Client
12:09:31.587 Dummy - Client
12:09:31.587 Dummy4 - Client
12:09:31.588 SonnyKid - Client
12:09:31.588 MESSSS - Client
12:09:31.588 Monkeyboy - Client
12:09:31.588 SonnyKid - Client
12:09:31.588 Monkeyboy - Client
12:09:31.588 Monkeyboy - Client
12:09:31.588 Dummy3 - Client
12:09:31.589 MESSSS - Client
12:09:31.589 Monkeyboy - Client
12:09:31.589 Dummy - Client
12:09:31.589 Dummy1 - Client
12:09:31.589 Dummy3 - Client
12:09:31.589 Monkeyboy - Client
12:09:31.589 Dummy2 - Client
12:09:31.590 Dummy1 - Client
12:09:31.590 Dummy4 - Client
12:09:31.590 MESSSS - Client
12:09:31.590 Dummy3 - Client
12:09:31.590 Dummy3 - Client
12:09:31.590 MESSSS - Client
12:09:31.591 Monkeyboy - Client
12:09:31.591 SonnyKid - Client
12:09:31.591 MESSSS - Client
12:09:31.591 Monkeyboy - Client
12:09:31.592 Dummy4 - Client
12:09:31.592 MESSSS - Client
12:09:31.593 Monkeyboy - Client
12:09:31.593 Dummy - Client
12:09:31.594 Dummy4 - Client
12:09:31.594 Dummy2 - Client
12:09:31.594 Dummy1 - Client
12:09:31.595 SonnyKid - Client
12:09:31.597 Dummy2 - Client
12:09:31.597 SonnyKid - Client
12:09:31.597 Dummy2 - Client
12:09:31.597 Dummy - Client
12:09:31.597 SonnyKid - Client
12:09:31.598 Dummy4 - Client
12:09:31.598 Dummy3 - Client
12:09:31.598 Dummy3 - Client
12:09:31.598 Dummy1 - Client
12:09:31.599 Dummy1 - Client
12:09:31.599 Dummy1 - Client
12:09:31.600 Dummy2 - Client
12:09:31.601 Monkeyboy - Client
12:09:31.601 SonnyKid - Client
12:09:31.601 SonnyKid - Client
12:09:31.601 Dummy3 - Client
12:09:31.602 Dummy4 - Client
12:09:31.602 SonnyKid - Client
12:09:31.602 Dummy4 - Client
12:09:31.603 Dummy2 - Client
12:09:31.604 Dummy2 - Client
12:09:31.605 Dummy - Client
12:09:31.606 Dummy4 - Client
12:09:31.607 Dummy - Client
12:09:31.608 Dummy - Client
12:09:31.613 Dummy1 - Client
12:09:31.614 MESSSS - Client
12:09:31.614 Dummy2 - Client
12:09:31.614 Dummy4 - Client
12:09:31.614 Dummy3 - Client
12:09:31.615 Dummy3 - Client
12:09:31.615 Dummy1 - Client
12:09:31.615 Dummy2 - Client
12:09:31.615 Dummy - Client
12:09:31.615 Dummy1 - Client
12:09:31.615 SonnyKid - Client
12:09:31.616 Dummy4 - Client
12:09:31.616 Monkeyboy - Client
12:09:31.616 Dummy2 - Client
12:09:31.616 Dummy - Client
12:09:31.616 Dummy4 - Client
12:09:31.616 Dummy1 - Client
12:09:31.617 Dummy2 - Client
12:09:31.617 Dummy - Client
12:09:31.617 Monkeyboy - Client
12:09:31.617 Dummy - Client
12:09:31.617 MESSSS - Client
12:09:31.617 Dummy2 - Client
12:09:31.618 MESSSS - Client
12:09:31.618 Monkeyboy - Client
12:09:31.618 Dummy3 - Client
12:09:31.618 Dummy3 - Client
12:09:31.619 Dummy2 - Client
12:09:31.619 Dummy1 - Client
12:09:31.619 Dummy1 - Client
12:09:31.619 MESSSS - Client
12:09:31.620 SonnyKid - Client
12:09:31.620 Dummy - Client
12:09:31.620 Monkeyboy - Client
12:09:31.620 Dummy2 - Client
12:09:31.620 Dummy1 - Client
12:09:31.621 Dummy4 - Client
12:09:31.621 MESSSS - Client
12:09:31.621 Dummy - Client
12:09:31.621 Dummy4 - Client
Yeah its getting touched by the same part multiple times. Should I add a debounce?
TopBagon
(Bagon)
February 11, 2021, 5:23pm
#7
Yeah, debounce is a good idea or create a table and store every player returned from that function inside if they’re not already in there (to make sure there won’t be any duplicates), then clear that table after you slam them to the ground.