i am working on a server jumper. this is my first script and im not very good with lua.
i have made a menu that popps up when people type !server in chat, the menu poppes up with buttons, each button has a server name and when you klick on it, it will connect you to the server.
i am using this command
local b = vgui.Create("DButton",DFrame1) b:SetPos( 20, 90 ) b:SetSize(160,25) b:SetText("slender 2") b.DoClick = function() RunConsoleCommand("connect","188.8.131.52:35000") if IsValid(bg) then bg:Close() end end
when i klick the button, it tries to connect to the server(the loading screen comes up and it says connecting to server on the bottom right)
then i get this in console
Bad server address (“184.108.40.206:34000”)
can anyone help me fix this?