Help with server changer entity

Hi, I was trying to script a entity which on touch you would be transported to another server (IP).

I frankly cannot even manage to make it appear in-game.
Is there anything here that probably doesn’t work? (I have a feeling the entire thing doesn’t work at all)

[LUA]function ENT:Initialize()

self.Entity:SetModel( "models//props_c17/utilityconducter001.mdl" )
    end

function ENT:StartTouch( ent )
if ( ent:IsValid() and ent:IsPlayer() ) then
for k,v in pairs(player.GetAll() do
v:ConCommand(“connect 127.0.0.1”)
end
end
end
[/LUA]

This is mostly copy-pasting from the wiki.
So, halp?

@line 3: should be
[LUA] self.Entity:SetModel( “models/props_c17/utilityconducter001.mdl” )
[/LUA]

Also it should be:
[LUA]
function ENT:StartTouch( ent )
if ( ent:IsValid() and ent:IsPlayer() ) then
ent:ConCommand(“connect 127.0.0.1”)
end
end
[/LUA]

Otherwise it’ll make everyone in the server run the command. (a.k.a. Make everyone join the server)

Yeah, I was a bit suspicious at that part.

Say, do you know how to make it have no model at all? And not be physic, I want it to be like a point in the map people walk on and they go to another server mentioned in the IP. (I need to learn more LUA…)

Well, that’d be getting over my head. Surely someone else can be able to help you out with that.

And it’s ‘Lua’, not ‘LUA’; a common misconception.

You could use this somehow; **[Ents.FindInSphere

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Ents.FindInSphere)**

If this is for a custom map, perhaps a trigger entity is in place?