Jump to content

Benjamin171

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Benjamin171

  1. Hello, I am scripting a panel that will set people into diffrent dimensions. But i need the code for chaning the Dimension Only, Please Every Answer would be to help.

     

     


    function teleportPlayer()
        if(source == GUIEditor.button[1]) then
        local teleportX, teleportY, teleportZ = 1210.48621, 2358.32373, 8.01253
            setElementPosition(getLocalPlayer(), teleportX, teleportY, teleportZ)
            outputChatBox("You Have Been Set To The Arabian Server")
        end
    end
    addEventHandler("onClientGUIClick", root, teleportPlayer)
    -------------------------
    function teleportPlayer()
        if(source == GUIEditor.button[2]) then
        local teleportX, teleportY, teleportZ = 1923.0625, -1760.005859375, 13.546875
            setElementPosition(getLocalPlayer(), teleportX, teleportY, teleportZ)
            outputChatBox("You Have Been Set To The English Server")
        end
    end
    addEventHandler("onClientGUIClick", root, teleportPlayer)

×
×
  • Create New...