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

**URL:** https://discourse.processing.org/t/end-of-file-the-last-end-is-giving-me-an-error/14789
**Category:** Coding Questions
**Created:** [October 19, 2019, 12:51am UTC](https://discourse.processing.org/t/end-of-file-the-last-end-is-giving-me-an-error/14789 "2019-10-19T00:51:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aprilsfooled](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@aprilsfooled](https://discourse.processing.org/u/aprilsfooled)
#### Post date: [October 19, 2019, 12:51am UTC](https://discourse.processing.org/t/end-of-file-the-last-end-is-giving-me-an-error/14789/1 "2019-10-19T00:51:27Z")

</div>

```auto
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)

```

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [October 19, 2019, 1:29am UTC](https://discourse.processing.org/t/end-of-file-the-last-end-is-giving-me-an-error/14789/2 "2019-10-19T01:29:55Z")

</div>

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

> **[Lua (programming language) | Syntax](https://en.wikipedia.org/wiki/Lua_(programming_language)#Syntax)**
>
> The classic "Hello, World!" program can be written as follows:
> or as:
> A comment in Lua starts with a double-hyphen and runs to the end of the line, similar to Ada, Eiffel, Haskell, SQL and VHDL. Multi-line strings and comments are adorned with double square brackets.
> The factorial function is implemented as a function in this example:

You should check out LÖVE instead: ❤  
[Love2d.org](http://Love2d.org)
