Error with a long... goofy... script

i see gasdgashggdsagdsagsdagsa

1 Like

you are trying to remove something from a TABLE but the game does not know which table.

table.insert() -- appends an instance to a table
table.remove() -- removes an instance from a table
1 Like

BRUH I JUST REALISED-
image

1 Like

realized what :sob:

also what are those icons :sob:

1 Like

custom icon pack

asdhgadshdashas

1 Like

did my solutions fix your problem yet?

1 Like

kinda but

local PlayersForLobby = {}

game.ReplicatedStorage.JojnEvent.OnServerEvent:Connect(function(Player, IsOwner, Lobby)
	
	if Lobby == script.Parent.Name then
			
			table.insert(PlayersForLobby, Player)
			
			print(PlayersForLobby)
		
	end
	
end)

game.ReplicatedStorage.SoftLeaveEvent.OnServerEvent:Connect(function(Player, Lobby, IsOwner)
	
	if Lobby == script.Parent.Name then

		table.remove(PlayersForLobby, Player)

		print(PlayersForLobby)

	end
	
end)

this doesnt print the table

1 Like

i mean array adsdgudsaifghsdab[d

1 Like

cmon man be clear :sob: if you are the only player in the server and you left then there should be nothing in the table :skull: (if i understood what you meant)

1 Like

bruh but it dpoesnt print after u enter lobby

1 Like

What the hell is this thread on.

Vanilla 3.

1 Like

yes

gdashsahashsahdsahsagsagdadgas

1 Like

is the event even firing?

asdkgjhryuiuyoj

1 Like

yes bruh

gjbgdksabhgd;sabdgp;hsa

1 Like

i can invite you to studio and u can see for yourself bet?

1 Like

you are so confusing just invite me
make a copy of the game

1 Like

user?

gdasdfsabdjg[dsaggdsaggdsagdsa

1 Like

MikeartsRBLX , it shows next to my profile picture :sob:

2 Likes

OH HEIL NAH I FORGOT- hgasdgdgas

This thread, and your code, is just as confusing as it can get. Care to move to private messages if you’re gonna talk like in Discord?

1 Like