Advertisement
Guest User

vehicle teleport gui

a guest
Jan 26th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.24 KB | None | 0 0
  1. local function Gb(where)
  2.  
  3. for i, v in pairs(game:GetService("Workspace").Vehicles:GetChildren()) do
  4. if (Vector3.new(v:GetPrimaryPartCFrame()) - Vector3.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position)).Magnitude < 50 then
  5. for ic, vc in pairs(v:GetChildren()) do
  6. for icx, vcx in pairs(vc:GetChildren()) do
  7. if vcx.Name == "PlayerName" then
  8. if vcx.Value == game:GetService("Players").LocalPlayer.Character.Name then
  9.  
  10. for i=1,1 do
  11. wait(0.2)
  12. v:MoveTo(where)
  13. end
  14. game:GetService("Players").LocalPlayer.Character:MoveTo(where)
  15. for i=1,4 do
  16. wait(0.2)
  17. v:MoveTo(where)
  18. end
  19.  
  20.  
  21. end
  22.  
  23. end
  24. end
  25. end
  26. end
  27. end
  28. end
  29.  
  30.  
  31. local Main = Instance.new("ScreenGui")
  32. local Frame = Instance.new("Frame")
  33. local Frame2 = Instance.new("Frame")
  34.  
  35. local ha = Instance.new("Frame")
  36. local Blue = Instance.new("Frame")
  37. local Title = Instance.new("TextLabel")
  38. local madeby = Instance.new("TextLabel")
  39. local Jewelry = Instance.new("TextButton")
  40. local closebuttonx = Instance.new("TextButton")
  41. local minimizebutton = Instance.new("TextButton")
  42. local cityGarage = Instance.new("TextButton")
  43. local Bank = Instance.new("TextButton")
  44. local powerPlant = Instance.new("TextButton")
  45. local museumx = Instance.new("TextButton")
  46. local donutxc = Instance.new("TextButton")
  47. local gastaxc = Instance.new("TextButton")
  48. local airdroptp = Instance.new("TextButton")
  49. local tp2player = Instance.new("TextButton")
  50. local playerXname = Instance.new("TextBox")
  51. local oldPosb
  52. local ismini = false
  53.  
  54.  
  55. local jetpackpos = Instance.new("TextButton")
  56. local prisonpos = Instance.new("TextButton")
  57. local milipos = Instance.new("TextButton")
  58. local volcanopos = Instance.new("TextButton")
  59. local citycrimpos = Instance.new("TextButton")
  60.  
  61. -- Properties
  62.  
  63. Main.Name = "Main"
  64. Main.Parent = game.CoreGui
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. Frame.Parent = Main
  72. Frame.Active = true
  73. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  74. Frame.BackgroundTransparency = 0.40000001192093
  75. Frame.BorderColor3 = Color3.new(0, 0, 0)
  76. Frame.BorderSizePixel = 0
  77. Frame.Position = UDim2.new(0, 0, 0.272616148, 0)
  78. Frame.Selectable = true
  79. Frame.Size = UDim2.new(0, 135, 0, 479)
  80. Frame.Draggable = true
  81. Frame2.Parent = Frame
  82. Frame2.Active = true
  83. Frame2.BackgroundColor3 = Color3.new(0, 0, 0)
  84. Frame2.BackgroundTransparency = 1
  85. Frame2.BorderColor3 = Color3.new(0, 0, 0)
  86. Frame2.BorderSizePixel = 0
  87. Frame2.Position = UDim2.new(0, 0, 0.272616148, 0)
  88.  
  89. Frame2.Size = UDim2.new(0, 20, 0, 20)
  90.  
  91. ha.Name = "ha"
  92. ha.Parent = Frame
  93. ha.Active = true
  94. ha.BackgroundColor3 = Color3.new(1, 1, 1)
  95. ha.BackgroundTransparency = 1
  96. ha.ClipsDescendants = true
  97. ha.Position = UDim2.new(0, 0, 0, 0)
  98. ha.Selectable = true
  99. ha.Size = UDim2.new(0, 135,0,20)
  100.  
  101. Blue.Name = "Blue"
  102. Blue.Parent = Frame
  103. Blue.Active = true
  104. Blue.BackgroundColor3 = Color3.new(0.7, 0.4, 0.04)
  105. Blue.BorderSizePixel = 0
  106. Blue.Selectable = true
  107. Blue.Size = UDim2.new(0, 135, 0, 20)
  108.  
  109.  
  110. minimizebutton.Name = "minimizebutton"
  111. minimizebutton.Parent = Frame
  112. minimizebutton.BackgroundColor3 = Color3.new(0.2, 0.0,0.0)
  113. minimizebutton.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  114. minimizebutton.Position = UDim2.new(0, 95, 0, 0)
  115. minimizebutton.Size = UDim2.new(0, 20, 0, 20)
  116. minimizebutton.Font = Enum.Font.SourceSansBold
  117. minimizebutton.Text = "_"
  118. minimizebutton.TextColor3 = Color3.new(1, 1, 1)
  119. minimizebutton.TextSize = 16
  120. minimizebutton.Transparency = 0.3
  121.  
  122. minimizebutton.MouseButton1Down:connect(function()
  123. for i=1,1 do
  124.  
  125. if ismini == true then
  126. Frame.Visible = true
  127. minimizebutton.Parent = Frame
  128. Frame2.Parent = Frame
  129. minimizebutton.Text = "_"
  130. ismini = false
  131. else
  132. Frame.Visible = false
  133. minimizebutton.Text = "+"
  134. Frame2.Parent = Main
  135. Frame2.Position = Frame.Position
  136. minimizebutton.Parent = Frame2
  137. ismini = true
  138. end
  139. end
  140. end)
  141.  
  142.  
  143.  
  144. Title.Name = "Title"
  145. Title.Parent = Frame
  146. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  147. Title.BackgroundTransparency = 1
  148. Title.Position = UDim2.new(0, 0, 0, 0)
  149. Title.Size = UDim2.new(0, 100, 0, 20)
  150. Title.Font = Enum.Font.SourceSansBold
  151. Title.Text = "Car TP"
  152. Title.TextColor3 = Color3.new(0, 0, 0)
  153. Title.TextSize = 24
  154. Title.TextXAlignment = Enum.TextXAlignment.Center
  155.  
  156.  
  157. madeby.Name = "madeby"
  158. madeby.Parent = Frame
  159. madeby.BackgroundColor3 = Color3.new(1, 1, 1)
  160. madeby.BackgroundTransparency = 1
  161. madeby.Position = UDim2.new(0, 0, 0, 464)
  162. madeby.Size = UDim2.new(0, 135, 0, 13)
  163. madeby.Font = Enum.Font.SourceSansBold
  164. madeby.Text = "JBrokenAF v4.3c"
  165. madeby.TextColor3 = Color3.new(0.5, 0.5, 0.5)
  166. madeby.TextSize = 16
  167. madeby.TextXAlignment = Enum.TextXAlignment.Center
  168.  
  169.  
  170.  
  171. closebuttonx.Name = "closebuttonx"
  172. closebuttonx.Parent = Frame
  173. closebuttonx.BackgroundColor3 = Color3.new(0.7, 0.1,0.1)
  174. closebuttonx.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  175. closebuttonx.Position = UDim2.new(0, 115, 0, 0)
  176. closebuttonx.Size = UDim2.new(0, 20, 0, 20)
  177. closebuttonx.Font = Enum.Font.SourceSansBold
  178. closebuttonx.Text = "x"
  179. closebuttonx.TextColor3 = Color3.new(1, 1, 1)
  180. closebuttonx.TextSize = 16
  181. closebuttonx.Transparency = 0.3
  182.  
  183. closebuttonx.MouseButton1Down:connect(function()
  184. for i=1,1 do
  185.  
  186. Main:Destroy()
  187. end
  188. end)
  189.  
  190.  
  191.  
  192.  
  193. Jewelry.Name = "Jewelry"
  194. Jewelry.Parent = Frame
  195. Jewelry.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  196. Jewelry.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  197. Jewelry.Position = UDim2.new(0, 3, 0, 25)
  198. Jewelry.Size = UDim2.new(0, 129, 0, 25)
  199. Jewelry.Font = Enum.Font.SourceSansBold
  200. Jewelry.Text = "Jewelry"
  201. Jewelry.TextColor3 = Color3.new(1, 1, 1)
  202. Jewelry.TextSize = 14
  203. Jewelry.Transparency = 0.3
  204.  
  205. Jewelry.MouseButton1Down:connect(function()
  206. for i=1,1 do
  207.  
  208. Gb(Vector3.new(166.66, 17.9, 1355))
  209. end
  210. end)
  211.  
  212.  
  213.  
  214. Bank.Name = "Bank"
  215. Bank.Parent = Frame
  216. Bank.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  217. Bank.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  218. Bank.Position = UDim2.new(0, 3, 0, 55)
  219. Bank.Size = UDim2.new(0, 129, 0, 25)
  220. Bank.Font = Enum.Font.SourceSansBold
  221. Bank.Text = "Bank"
  222. Bank.TextColor3 = Color3.new(1, 1, 1)
  223. Bank.TextSize = 14
  224. Bank.Transparency = 0.3
  225.  
  226. Bank.MouseButton1Down:connect(function()
  227. for i=1,1 do
  228.  
  229. Gb(Vector3.new(11.704, 17.9, 782.961))
  230. end
  231. end)
  232.  
  233. museumx.Name = "museumx"
  234. museumx.Parent = Frame
  235. museumx.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  236. museumx.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  237. museumx.Position = UDim2.new(0, 3, 0, 85)
  238. museumx.Size = UDim2.new(0, 129, 0, 25)
  239. museumx.Font = Enum.Font.SourceSansBold
  240. museumx.Text = "Museum"
  241. museumx.TextColor3 = Color3.new(1, 1, 1)
  242. museumx.TextSize = 14
  243. museumx.Transparency = 0.3
  244.  
  245. museumx.MouseButton1Down:connect(function()
  246. for i=1,1 do
  247.  
  248. Gb(Vector3.new(1027.71216, 133.360458, 1231.91797))
  249. end
  250. end)
  251.  
  252.  
  253. powerPlant.Name = "powerPlant"
  254. powerPlant.Parent = Frame
  255. powerPlant.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  256. powerPlant.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  257. powerPlant.Position = UDim2.new(0, 3, 0, 115)
  258. powerPlant.Size = UDim2.new(0, 129, 0, 25)
  259. powerPlant.Font = Enum.Font.SourceSansBold
  260. powerPlant.Text = "Power Plant"
  261. powerPlant.TextColor3 = Color3.new(1, 1, 1)
  262. powerPlant.TextSize = 14
  263. powerPlant.Transparency = 0.3
  264. powerPlant.MouseButton1Down:connect(function()
  265. for i=1,1 do
  266.  
  267. Gb(Vector3.new(630.845337, 36.7789726, 2422.48022))
  268. end
  269. end)
  270.  
  271.  
  272. donutxc.Name = "donutxc"
  273. donutxc.Parent = Frame
  274. donutxc.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  275. donutxc.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  276. donutxc.Position = UDim2.new(0, 3, 0, 145)
  277. donutxc.Size = UDim2.new(0, 129, 0, 25)
  278. donutxc.Font = Enum.Font.SourceSansBold
  279. donutxc.Text = "Donut Shop"
  280. donutxc.TextColor3 = Color3.new(1, 1, 1)
  281. donutxc.TextSize = 14
  282. donutxc.Transparency = 0.3
  283. donutxc.MouseButton1Down:connect(function()
  284. for i=1,1 do
  285.  
  286. Gb(Vector3.new(261.627411, 17.5987015, -1791.01428))
  287. end
  288. end)
  289.  
  290.  
  291. gastaxc.Name = "gastaxc"
  292. gastaxc.Parent = Frame
  293. gastaxc.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  294. gastaxc.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  295. gastaxc.Position = UDim2.new(0, 3, 0, 175)
  296. gastaxc.Size = UDim2.new(0, 129, 0, 25)
  297. gastaxc.Font = Enum.Font.SourceSansBold
  298. gastaxc.Text = "Gas Station"
  299. gastaxc.TextColor3 = Color3.new(1, 1, 1)
  300. gastaxc.TextSize = 14
  301. gastaxc.Transparency = 0.3
  302. gastaxc.MouseButton1Down:connect(function()
  303. for i=1,1 do
  304.  
  305. Gb(Vector3.new(-1556.11157, 17.7297306, 663.076172))
  306. end
  307. end)
  308.  
  309.  
  310. cityGarage.Name = "cityGarage"
  311. cityGarage.Parent = Frame
  312. cityGarage.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  313. cityGarage.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  314. cityGarage.Position = UDim2.new(0, 3, 0, 205)
  315. cityGarage.Size = UDim2.new(0, 129, 0, 25)
  316. cityGarage.Font = Enum.Font.SourceSansBold
  317. cityGarage.Text = "City Garage"
  318. cityGarage.TextColor3 = Color3.new(1, 1, 1)
  319. cityGarage.TextSize = 14
  320. cityGarage.Transparency = 0.3
  321. cityGarage.MouseButton1Down:connect(function()
  322. for i=1,1 do
  323.  
  324. Gb(Vector3.new(-232.113724, 17.5864544, 1136.51819))
  325. end
  326. end)
  327.  
  328.  
  329. jetpackpos.Name = "jetpackpos"
  330. jetpackpos.Parent = Frame
  331. jetpackpos.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  332. jetpackpos.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  333. jetpackpos.Position = UDim2.new(0, 3, 0, 235)
  334. jetpackpos.Size = UDim2.new(0, 129, 0, 25)
  335. jetpackpos.Font = Enum.Font.SourceSansBold
  336. jetpackpos.Text = "Jet Pack"
  337. jetpackpos.TextColor3 = Color3.new(1, 1, 1)
  338. jetpackpos.TextSize = 14
  339. jetpackpos.Transparency = 0.3
  340. jetpackpos.MouseButton1Down:connect(function()
  341. for i=1,1 do
  342.  
  343. Gb(Vector3.new(1385.97925, 167.71019, 2598.22144))
  344. end
  345. end)
  346.  
  347.  
  348.  
  349. prisonpos.Name = "prisonpos"
  350. prisonpos.Parent = Frame
  351. prisonpos.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  352. prisonpos.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  353. prisonpos.Position = UDim2.new(0, 3, 0, 265)
  354. prisonpos.Size = UDim2.new(0, 129, 0, 25)
  355. prisonpos.Font = Enum.Font.SourceSansBold
  356. prisonpos.Text = "Prison Yard"
  357. prisonpos.TextColor3 = Color3.new(1, 1, 1)
  358. prisonpos.TextSize = 14
  359. prisonpos.Transparency = 0.3
  360. prisonpos.MouseButton1Down:connect(function()
  361. for i=1,1 do
  362.  
  363. Gb(Vector3.new(-1224.46643, 17.9283619, -1761.8927))
  364. end
  365. end)
  366.  
  367.  
  368. milipos.Name = "milipos"
  369. milipos.Parent = Frame
  370. milipos.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  371. milipos.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  372. milipos.Position = UDim2.new(0, 3, 0, 295)
  373. milipos.Size = UDim2.new(0, 129, 0, 25)
  374. milipos.Font = Enum.Font.SourceSansBold
  375. milipos.Text = "Military"
  376. milipos.TextColor3 = Color3.new(1, 1, 1)
  377. milipos.TextSize = 14
  378. milipos.Transparency = 0.3
  379. milipos.MouseButton1Down:connect(function()
  380. for i=1,1 do
  381.  
  382. Gb(Vector3.new(741.49054, 17.7324486, -324.519745))
  383. end
  384. end)
  385.  
  386.  
  387.  
  388. volcanopos.Name = "volcanopos"
  389. volcanopos.Parent = Frame
  390. volcanopos.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  391. volcanopos.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  392. volcanopos.Position = UDim2.new(0, 3, 0, 325)
  393. volcanopos.Size = UDim2.new(0, 129, 0, 25)
  394. volcanopos.Font = Enum.Font.SourceSansBold
  395. volcanopos.Text = "Volcano"
  396. volcanopos.TextColor3 = Color3.new(1, 1, 1)
  397. volcanopos.TextSize = 14
  398. volcanopos.Transparency = 0.3
  399. volcanopos.MouseButton1Down:connect(function()
  400. for i=1,1 do
  401.  
  402. Gb(Vector3.new(1813.835, 30.585, -1643.736))
  403. end
  404. end)
  405.  
  406.  
  407. citycrimpos.Name = "citycrimpos"
  408. citycrimpos.Parent = Frame
  409. citycrimpos.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  410. citycrimpos.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  411. citycrimpos.Position = UDim2.new(0, 3, 0, 355)
  412. citycrimpos.Size = UDim2.new(0, 129, 0, 25)
  413. citycrimpos.Font = Enum.Font.SourceSansBold
  414. citycrimpos.Text = "City Base"
  415. citycrimpos.TextColor3 = Color3.new(1, 1, 1)
  416. citycrimpos.TextSize = 14
  417. citycrimpos.Transparency = 0.3
  418. citycrimpos.MouseButton1Down:connect(function()
  419. for i=1,1 do
  420.  
  421. Gb(Vector3.new(-227.938477, 17.5950069, 1622.18164))
  422. end
  423. end)
  424.  
  425.  
  426.  
  427. airdroptp.Name = "airdroptp"
  428. airdroptp.Parent = Frame
  429. airdroptp.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  430. airdroptp.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  431. airdroptp.Position = UDim2.new(0, 3, 0, 385)
  432. airdroptp.Size = UDim2.new(0, 129, 0, 25)
  433. airdroptp.Font = Enum.Font.SourceSansBold
  434. airdroptp.Text = "Airdrop"
  435. airdroptp.TextColor3 = Color3.new(1, 1, 1)
  436. airdroptp.TextSize = 14
  437. airdroptp.Transparency = 0.3
  438. airdroptp.MouseButton1Down:connect(function()
  439. for i=1,1 do
  440.  
  441. Gb(workspace.Drop.Briefcase.Position)
  442. end
  443. end)
  444.  
  445.  
  446.  
  447. playerXname.Name = "playerXname"
  448. playerXname.Parent = Frame
  449. playerXname.Position = UDim2.new(0, 3, 0, 415)
  450. playerXname.Size = UDim2.new(0, 129, 0, 15)
  451. playerXname.Text = "enter name"
  452. playerXname.Transparency = 0.3
  453. playerXname.TextColor3 = Color3.new(0,0,0)
  454.  
  455.  
  456.  
  457. tp2player.Name = "tp2player"
  458. tp2player.Parent = Frame
  459. tp2player.BackgroundColor3 = Color3.new(0.6, 0.3,0.3)
  460. tp2player.BorderColor3 = Color3.new(0.152941, 0.152941, 0.152941)
  461. tp2player.Position = UDim2.new(0, 3, 0, 435)
  462. tp2player.Size = UDim2.new(0, 129, 0, 25)
  463. tp2player.Font = Enum.Font.SourceSansBold
  464. tp2player.Text = "Teleport"
  465. tp2player.TextColor3 = Color3.new(1, 1, 1)
  466. tp2player.TextSize = 14
  467. tp2player.Transparency = 0.3
  468. tp2player.MouseButton1Down:connect(function()
  469. for i=1,1 do
  470.  
  471. Gb(game:GetService("Workspace"):FindFirstChild(playerXname.Text).HumanoidRootPart.Position)
  472. end
  473. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement