Script does not remove player from table when touching part

so we spent an hour trying to figure out the problem only to realised you thought a leg was a player
:clap:
give my leg a name now

legs are op! yayyyyy (3ocharrrr)

uwu
:bowing_woman: :bowing_woman: :bowing_woman: :bowing_woman:
xd

im sry but no i got it first

???
ok i need to sleep because i realised im going to get mod 6-10 times

1 Like

Why are you using _G in the first place?
_G is used to share data between scripts, in this case, you are not doing that.

I suggest switching over to a local variable.
And, if you ever need to share data between scripts, a ModuleScript works fine for that.

The case is closed but the 1st script is located in the part and the 2nd is in SSS

Then a ModuleScript works just fine for that.
Here’s why.

That girl was using a 10k line script. I planning on using just 1 _G. I don’t think the game’s performance is depending on 1 global table.