End of file, the last end is giving me an error

game.Players.PlayerAdded:Connect(function(player)
	 tab[player.Name] = true
		end)
local db = true
local tab = {}

script.Parent.Touched:Connect(function(hit)
	
end)
	
	if hit.parent:FindFirstChild("Humanoid") ~= nil then
					
		if tab[player.Name] then
			tab[player.Name] = false
			script.Parent.Transparency = 1
			local player = game.Players:GetPlayerFromCharacter(hit.Parent)
			player.leaderstats.Enigma.Value = player.leaderstats.Enigma.Value + 20
			script.Sound:Play()
			wait(1)
			script.Parent:Remove()
			end
	end
	
end)

That syntax seems Lua. AFAIK, there’s no Processing flavor for Lua: :first_quarter_moon_with_face:

You should check out LÖVE instead: :heart:
Love2d.org

1 Like