Ok, FINNALY I GOT IT:
LSgate1 = createObject ( 969, 1584.9000244141, -1637.9000244141, 12.39999961853, 0, 0, 0)
col = createColRectangle(1584.8251953125,-1644.04296875,10,15)
addEventHandler ( "onColShapeHit", col,
function(hitElement)
if (getElementType (hitElement) == "player") then
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup ( "Admin" ) ) then
moveObject (LSgate1, 2500, 1584.9000244141, -1637.9000244141, 15.99999961853) -- here is where you enter the coordinatess of the new location of the object, 2200 = the speed of the movent.
end
end
end)
addEventHandler ( "onColShapeLeave", col,
function(hitElement)
if (getElementType (hitElement) == "player") then
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup ( "Admin" ) ) then
moveObject (LSgate1, 2500,1584.9000244141, -1637.9000244141, 12.39999961853) -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent.
end
end
end)