ERROR: GAMEMODE:'HUDPaint' Failed: SEOW2/gamemode/cl_init.lua:141: attempt to index globa


ERROR: GAMEMODE:'HUDPaint' Failed: SEOW2/gamemode/cl_init.lua:141: attempt to index global 'Me' (a nil value)


local dist = 255-v:GetPos():Distance(Me:GetPos())/1000*255

Please Help

You have to define Me somewhere in your code.

Since it’s clientside LocalPlayer() is probably the value you want.

[lua]local dist = 255-v:GetPos():Distance(LocalPlayer():GetPos())/1000*255[/lua]

:?:

No, define “Me” in your code

[lua]local me = LocalPlayer()[/lua]

Also, why are you using SEOW2?

Yes, that is correct.

:sigh:

[lua]local Me = LocalPlayer()[/lua]

No need to penalise for forgetting to capitalise a letter

Because im fixing it for someone.

Do you really have to fix up leaked gamemodes? assuiming its leaked which im pretty sure it is

Can’t help (properly), don’t post.

Iv’e never heard of this gamemode to be honest, I’m just fixing up cause he’s an old friend.

It’s leaked. Don’t help him with it. It belongs to Darkspider.