Hi thank you for reading this I appreciate your help any help because i am stuck in something every player has a game tag and if that game tag is true that player can mine but if it'S false they will not be able to mine here is the code for setting the game tag

this code is in the serverscriptservise.

	plrs={}
	for i,player in pairs(game.Players:GetPlayers()) do
		if player then
			table.insert(plrs,player)
		end

	end


	for i,players in pairs(plrs) do
	        local character=players.Character or players.CharacterAdded:Wait()
	        if character then
	 
	            builder.Value=true
	            builder.Parent=character
	            print("i am allowed")
	        else
	 
	            if not players then
	                builder.Value=true
	                builder.Parent=character   
	                table.remove(plrs,i)
	                print("removed")
	            end
	 
	        end
	end

and here the script I check on if they builder tag is true i serverscript is in the map that the player mines in al players get teleporter to their mining surface and in that surface i check this.

view source

	if (builder and builder.Value)then
	     --code
	end

and this works fine when I play this alone but when i test this with 3 players then only 1 player can mine and all others can not please if u know how to solve my problem then answer it thank u for taking the time reading.

0 Is that the whole code in your first provided script? You're missing some things/haven't defined them from what I can see, but I'm not sure if you just copy and pasted part of the code here.LoveSpeaksOutTruth 348 — 10h 0 yes but that is the importent codeyou_success 13 — 22m Post a comment...

Edit Remove Report

7 comments

0

you wrote "plrs" with s instead of plr in line 4

0

same for line 10

0

thank you when i pastet the code i fergot an "s" but still in the code i didnt fergot the s

0

oh ok then.

0

but still thanks

0

This is a duplicated post, you posted this yesterday...

0

no i even postet again for 5 minutes