local admins = {"","","",""}

game.Players.PlayerAdded:Connect(function(player)

player.Chatted:Connect(function(message)
	
	for i,v in pairs(admins) do
		if player.Name == v then
			
			if string.sub(message:lower(), 1, 16) == "/blockaidem false" then
				game.Workspace.BlockaideM.CanCollide = false
				
				elseif string.sub(message:lower(), 1, 15) == "/blockaidem true" then
					game.Workspace.BlockaideM.CanCollide = true
			end
		end
		
	end


end)

end)

I'm trying to make it so that when an admin says "/blockaidem false", it will make BlockaideM's cancollide false. I got rid of the names because well, privacy reasons.

2 comments

0

/blockaidem false is 17 letters long and /blockaidem true is 16 letters long

0

I changed it to that, still doesn't work.