Advertisement
Vzurxy

VERSION

Sep 9th, 2018
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.36 KB | None | 0 0
  1. -- // Made by Atom#0995
  2. -- // SkyWars
  3.  
  4. -- // Objects \\ --
  5. local SkyWar = Instance.new("ScreenGui")
  6. local BG = Instance.new("Frame")
  7. local BGDETAIL = Instance.new("Frame")
  8. local LINE0 = Instance.new("Frame")
  9. local VALUE = Instance.new("TextBox")
  10. local LINE2 = Instance.new("Frame")
  11. local info = Instance.new("TextLabel")
  12. local credits = Instance.new("TextLabel")
  13. local exit = Instance.new("TextButton")
  14. local VIP = Instance.new("TextButton")
  15. local LINE1 = Instance.new("Frame")
  16. local MEGAVIP = Instance.new("TextButton")
  17. local LINE11 = Instance.new("Frame")
  18. local NUKE = Instance.new("TextButton")
  19. local LINE3 = Instance.new("Frame")
  20. local FLY = Instance.new("TextButton")
  21. local LINE4 = Instance.new("Frame")
  22. local SPEED = Instance.new("TextButton")
  23. local LINE6 = Instance.new("Frame")
  24. local JUMP = Instance.new("TextButton")
  25. local LINE7 = Instance.new("Frame")
  26. local SECTION = Instance.new("Frame")
  27. local NOCLIP = Instance.new("TextButton")
  28. local LINE12 = Instance.new("Frame")
  29. local AIRWALK = Instance.new("TextButton")
  30. local LINE8 = Instance.new("Frame")
  31. local TP = Instance.new("TextButton")
  32. local LINE9 = Instance.new("Frame")
  33. local GROUP = Instance.new("TextButton")
  34. local LINE10 = Instance.new("Frame")
  35.  
  36. -- // Properties \\ --
  37.  
  38. SkyWar.Name = "SkyWar"
  39. SkyWar.Parent = game.CoreGui
  40.  
  41. BG.Name = "BG"
  42. BG.Parent = SkyWar
  43. BG.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  44. BG.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  45. BG.Position = UDim2.new(0.612682879, 0, 0.579681337, 0)
  46. BG.Size = UDim2.new(0, 311, 0, 175)
  47. BG.Active = true
  48. BG.Draggable = true
  49.  
  50.  
  51. BGDETAIL.Name = "BGDETAIL"
  52. BGDETAIL.Parent = BG
  53. BGDETAIL.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  54. BGDETAIL.BorderColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  55. BGDETAIL.BorderSizePixel = 0
  56. BGDETAIL.Size = UDim2.new(0, 311, 0, 24)
  57.  
  58. LINE0.Name = "LINE0"
  59. LINE0.Parent = BGDETAIL
  60. LINE0.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  61. LINE0.BorderSizePixel = 0
  62. LINE0.Position = UDim2.new(0, 0, 1.01214278, 0)
  63. LINE0.Size = UDim2.new(0, 311, 0, 2)
  64.  
  65. VALUE.Name = "VALUE"
  66. VALUE.Parent = BGDETAIL
  67. VALUE.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  68. VALUE.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  69. VALUE.Position = UDim2.new(0.0385852121, 0, 6.29166651, 0)
  70. VALUE.Size = UDim2.new(0, 177, 0, 18)
  71. VALUE.Font = Enum.Font.SourceSans
  72. VALUE.PlaceholderColor3 = Color3.new(1, 1, 1)
  73. VALUE.Text = "Value"
  74. VALUE.TextColor3 = Color3.new(1, 1, 1)
  75. VALUE.TextSize = 14
  76.  
  77. LINE2.Name = "LINE2"
  78. LINE2.Parent = VALUE
  79. LINE2.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  80. LINE2.BorderSizePixel = 0
  81. LINE2.Position = UDim2.new(0, 0, 1, 0)
  82. LINE2.Size = UDim2.new(0, 177, 0, 2)
  83.  
  84. info.Name = "info"
  85. info.Parent = BG
  86. info.BackgroundColor3 = Color3.new(1, 1, 1)
  87. info.BackgroundTransparency = 1
  88. info.BorderSizePixel = 0
  89. info.Position = UDim2.new(0, 0, 0.0228571426, 0)
  90. info.Size = UDim2.new(0, 311, 0, 16)
  91. info.Font = Enum.Font.SourceSansBold
  92. info.Text = "Sky Wars"
  93. info.TextColor3 = Color3.new(1, 1, 1)
  94. info.TextScaled = true
  95. info.TextSize = 14
  96. info.TextStrokeColor3 = Color3.new(1, 1, 1)
  97. info.TextWrapped = true
  98.  
  99. credits.Name = "credits"
  100. credits.Parent = BG
  101. credits.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  102. credits.BorderSizePixel = 0
  103. credits.Position = UDim2.new(0.70096463, 0, 0.908571422, 0)
  104. credits.Size = UDim2.new(0, 93, 0, 16)
  105. credits.Font = Enum.Font.SourceSansBold
  106. credits.Text = "Made by Atom#0995"
  107. credits.TextColor3 = Color3.new(1, 1, 1)
  108. credits.TextScaled = true
  109. credits.TextSize = 14
  110. credits.TextStrokeColor3 = Color3.new(1, 1, 1)
  111. credits.TextWrapped = true
  112.  
  113. exit.Name = "exit"
  114. exit.Parent = BG
  115. exit.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  116. exit.BorderSizePixel = 0
  117. exit.Position = UDim2.new(0, 0, 0.0228571426, 0)
  118. exit.Size = UDim2.new(0, 22, 0, 16)
  119. exit.Font = Enum.Font.SourceSansBold
  120. exit.Text = "X"
  121. exit.TextColor3 = Color3.new(1, 1, 1)
  122. exit.TextScaled = true
  123. exit.TextSize = 14
  124. exit.TextWrapped = true
  125.  
  126. exit.MouseButton1Down:Connect(function()
  127. SkyWar:Destroy()
  128. end)
  129.  
  130. VIP.Name = "VIP"
  131. VIP.Parent = BG
  132. VIP.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  133. VIP.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  134. VIP.Position = UDim2.new(0.0321543403, 0, 0.239999995, 0)
  135. VIP.Size = UDim2.new(0, 61, 0, 28)
  136. VIP.Font = Enum.Font.SourceSansBold
  137. VIP.Text = "VIP"
  138. VIP.TextColor3 = Color3.new(1, 1, 1)
  139. VIP.TextScaled = true
  140. VIP.TextSize = 14
  141. VIP.TextWrapped = true
  142.  
  143. VIP.MouseButton1Down:Connect(function()
  144. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(10.2524004, 264.001801, 70))
  145. end)
  146.  
  147. LINE1.Name = "LINE1"
  148. LINE1.Parent = VIP
  149. LINE1.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  150. LINE1.BorderSizePixel = 0
  151. LINE1.Position = UDim2.new(0, 0, 1, 0)
  152. LINE1.Size = UDim2.new(0, 61, 0, 2)
  153.  
  154. MEGAVIP.Name = "MEGAVIP"
  155. MEGAVIP.Parent = BG
  156. MEGAVIP.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  157. MEGAVIP.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  158. MEGAVIP.Position = UDim2.new(0.0385852084, 0, 0.474285722, 0)
  159. MEGAVIP.Size = UDim2.new(0, 61, 0, 28)
  160. MEGAVIP.Font = Enum.Font.SourceSansBold
  161. MEGAVIP.Text = "Mega VIP"
  162. MEGAVIP.TextColor3 = Color3.new(1, 1, 1)
  163. MEGAVIP.TextScaled = true
  164. MEGAVIP.TextSize = 14
  165. MEGAVIP.TextWrapped = true
  166.  
  167. MEGAVIP.MouseButton1Down:Connect(function()
  168. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(10.2524004, 264.001801, 70))
  169. end)
  170.  
  171. LINE11.Name = "LINE11"
  172. LINE11.Parent = MEGAVIP
  173. LINE11.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  174. LINE11.BorderSizePixel = 0
  175. LINE11.Position = UDim2.new(0, 0, 1, 0)
  176. LINE11.Size = UDim2.new(0, 61, 0, 2)
  177.  
  178. NUKE.Name = "NUKE"
  179. NUKE.Parent = BG
  180. NUKE.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  181. NUKE.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  182. NUKE.Position = UDim2.new(0.472668827, 0, 0.239999995, 0)
  183. NUKE.Size = UDim2.new(0, 59, 0, 28)
  184. NUKE.Font = Enum.Font.SourceSansBold
  185. NUKE.Text = "Nuke Blocks"
  186. NUKE.TextColor3 = Color3.new(1, 1, 1)
  187. NUKE.TextScaled = true
  188. NUKE.TextSize = 14
  189. NUKE.TextWrapped = true
  190.  
  191. NUKE.MouseButton1Down:Connect(function()
  192. local CURRENTMAP = ""
  193.  
  194. local getmap = workspace:GetChildren()
  195. for i = 1, #getmap do
  196. if(getmap[i].Name == "SummerMap") then
  197. CURRENTMAP = "SummerMap"
  198. warn("Summer Map Selected")
  199. elseif(getmap[i].Name == "WinterMap") then
  200. CURRENTMAP = "WinterMap"
  201. warn("Winter Map Selected")
  202. elseif(getmap[i].Name == "SpringMap") then
  203. CURRENTMAP = "SpringMap"
  204. warn("Spring Map Selected")
  205. elseif(getmap[i].Name == "FallMap") then
  206. CURRENTMAP = "FallMap"
  207. warn("Fall Map Selected")
  208. else warn("No Map Found.")
  209. end
  210. end
  211.  
  212. local blocks = game.Workspace[CURRENTMAP].Map:GetChildren()
  213. for i=1,10 do
  214. for i=1, #blocks do
  215. game.Players.LocalPlayer.Backpack.Axe.RemoteEvent:FireServer(blocks[i])
  216. end
  217. end
  218.  
  219. local blocks = game.Workspace[CURRENTMAP].Map.Ores:GetChildren()
  220. for i=1,20 do
  221. for i=1, #blocks do
  222. game.Players.LocalPlayer.Backpack.Axe.RemoteEvent:FireServer(blocks[i])
  223. end
  224. end
  225. end)
  226.  
  227. LINE3.Name = "LINE3"
  228. LINE3.Parent = NUKE
  229. LINE3.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  230. LINE3.BorderSizePixel = 0
  231. LINE3.Position = UDim2.new(0, 0, 1, 0)
  232. LINE3.Size = UDim2.new(0, 59, 0, 2)
  233.  
  234. FLY.Name = "FLY"
  235. FLY.Parent = BG
  236. FLY.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  237. FLY.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  238. FLY.Position = UDim2.new(0.472668797, 0, 0.474285722, 0)
  239. FLY.Size = UDim2.new(0, 59, 0, 28)
  240. FLY.Font = Enum.Font.SourceSansBold
  241. FLY.Text = "Fly [E]"
  242. FLY.TextColor3 = Color3.new(1, 1, 1)
  243. FLY.TextSize = 20
  244. FLY.TextWrapped = true
  245.  
  246. FLY.MouseButton1Down:Connect(function()
  247. repeat wait()
  248. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  249. local mouse = game.Players.LocalPlayer:GetMouse()
  250. repeat wait() until mouse
  251. local plr = game.Players.LocalPlayer
  252. local torso = plr.Character.Torso
  253. local flying = true
  254. local deb = true
  255. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  256. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  257. local maxspeed = 50
  258. local speed = 0
  259.  
  260. function Fly()
  261. local bg = Instance.new("BodyGyro", torso)
  262. bg.P = 9e4
  263. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  264. bg.cframe = torso.CFrame
  265. local bv = Instance.new("BodyVelocity", torso)
  266. bv.velocity = Vector3.new(0,0.1,0)
  267. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  268. repeat wait()
  269. plr.Character.Humanoid.PlatformStand = true
  270. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  271. speed = speed+.5+(speed/maxspeed)
  272. if speed > maxspeed then
  273. speed = maxspeed
  274. end
  275. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  276. speed = speed-1
  277. if speed < 0 then
  278. speed = 0
  279. end
  280. end
  281. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  282. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  283. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  284. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  285. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  286. else
  287. bv.velocity = Vector3.new(0,0.1,0)
  288. end
  289. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  290. until not flying
  291. ctrl = {f = 0, b = 0, l = 0, r = 0}
  292. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  293. speed = 0
  294. bg:Destroy()
  295. bv:Destroy()
  296. plr.Character.Humanoid.PlatformStand = false
  297. end
  298. mouse.KeyDown:connect(function(key)
  299. if key:lower() == "e" then
  300. if flying then flying = false
  301. else
  302. flying = true
  303. Fly()
  304. end
  305. elseif key:lower() == "w" then
  306. ctrl.f = 1
  307. elseif key:lower() == "s" then
  308. ctrl.b = -1
  309. elseif key:lower() == "a" then
  310. ctrl.l = -1
  311. elseif key:lower() == "d" then
  312. ctrl.r = 1
  313. end
  314. end)
  315. mouse.KeyUp:connect(function(key)
  316. if key:lower() == "w" then
  317. ctrl.f = 0
  318. elseif key:lower() == "s" then
  319. ctrl.b = 0
  320. elseif key:lower() == "a" then
  321. ctrl.l = 0
  322. elseif key:lower() == "d" then
  323. ctrl.r = 0
  324. end
  325. end)
  326. Fly()
  327. end)
  328.  
  329.  
  330. LINE4.Name = "LINE4"
  331. LINE4.Parent = FLY
  332. LINE4.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  333. LINE4.BorderSizePixel = 0
  334. LINE4.Position = UDim2.new(0, 0, 1, 0)
  335. LINE4.Size = UDim2.new(0, 59, 0, 2)
  336.  
  337. SPEED.Name = "SPEED"
  338. SPEED.Parent = BG
  339. SPEED.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  340. SPEED.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  341. SPEED.Position = UDim2.new(0.125401929, 0, 0.725714266, 0)
  342. SPEED.Size = UDim2.new(0, 45, 0, 18)
  343. SPEED.Font = Enum.Font.SourceSansBold
  344. SPEED.Text = "Speed"
  345. SPEED.TextColor3 = Color3.new(1, 1, 1)
  346. SPEED.TextScaled = true
  347. SPEED.TextSize = 14
  348. SPEED.TextWrapped = true
  349.  
  350. SPEED.MouseButton1Down:Connect(function()
  351. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = VALUE.Text
  352. end)
  353.  
  354. LINE6.Name = "LINE6"
  355. LINE6.Parent = SPEED
  356. LINE6.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  357. LINE6.BorderSizePixel = 0
  358. LINE6.Position = UDim2.new(0, 0, 1, 0)
  359. LINE6.Size = UDim2.new(0, 45, 0, 2)
  360.  
  361. JUMP.Name = "JUMP"
  362. JUMP.Parent = BG
  363. JUMP.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  364. JUMP.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  365. JUMP.Position = UDim2.new(0.379421234, 0, 0.725714266, 0)
  366. JUMP.Size = UDim2.new(0, 45, 0, 18)
  367. JUMP.Font = Enum.Font.SourceSansBold
  368. JUMP.Text = "Jump"
  369. JUMP.TextColor3 = Color3.new(1, 1, 1)
  370. JUMP.TextScaled = true
  371. JUMP.TextSize = 14
  372. JUMP.TextWrapped = true
  373.  
  374. JUMP.MouseButton1Down:Connect(function()
  375. game.Players.LocalPlayer.Character.Humanoid.JumpPower = VALUE.Text
  376. end)
  377.  
  378. LINE7.Name = "LINE7"
  379. LINE7.Parent = JUMP
  380. LINE7.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  381. LINE7.BorderSizePixel = 0
  382. LINE7.Position = UDim2.new(0, 0, 1, 0)
  383. LINE7.Size = UDim2.new(0, 45, 0, 2)
  384.  
  385. SECTION.Name = "SECTION"
  386. SECTION.Parent = BG
  387. SECTION.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  388. SECTION.BorderSizePixel = 0
  389. SECTION.Position = UDim2.new(0.694533765, 0, 0.148571432, 0)
  390. SECTION.Size = UDim2.new(0, 2, 0, 148)
  391.  
  392. NOCLIP.Name = "NOCLIP"
  393. NOCLIP.Parent = BG
  394. NOCLIP.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  395. NOCLIP.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  396. NOCLIP.Position = UDim2.new(0.765273333, 0, 0.239999995, 0)
  397. NOCLIP.Size = UDim2.new(0, 59, 0, 41)
  398. NOCLIP.Font = Enum.Font.SourceSansBold
  399. NOCLIP.Text = "Enable Noclip"
  400. NOCLIP.TextColor3 = Color3.new(1, 1, 1)
  401. NOCLIP.TextScaled = true
  402. NOCLIP.TextSize = 14
  403. NOCLIP.TextWrapped = true
  404.  
  405. noclip = false
  406. game:GetService('RunService').Stepped:connect(function()
  407. if noclip then
  408. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  409. end
  410. end)
  411.  
  412. NOCLIP.MouseButton1Down:Connect(function()
  413. noclip = not noclip
  414. if NOCLIP.Text == "Enable Noclip" then
  415. NOCLIP.Text = "Disable Noclip"
  416. else
  417. NOCLIP.Text = "Enable Noclip"
  418. end
  419. end)
  420.  
  421. LINE12.Name = "LINE12"
  422. LINE12.Parent = NOCLIP
  423. LINE12.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  424. LINE12.BorderSizePixel = 0
  425. LINE12.Position = UDim2.new(0, 0, 1, 0)
  426. LINE12.Size = UDim2.new(0, 59, 0, 2)
  427.  
  428. local TOGGLEWALK = false
  429.  
  430. AIRWALK.Name = "AIRWALK"
  431. AIRWALK.Parent = BG
  432. AIRWALK.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  433. AIRWALK.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  434. AIRWALK.Position = UDim2.new(0.765273333, 0, 0.554285705, 0)
  435. AIRWALK.Size = UDim2.new(0, 59, 0, 41)
  436. AIRWALK.Font = Enum.Font.SourceSansBold
  437. AIRWALK.Text = "Enable AirWalk"
  438. AIRWALK.TextColor3 = Color3.new(1, 1, 1)
  439. AIRWALK.TextScaled = true
  440. AIRWALK.TextSize = 20
  441. AIRWALK.TextWrapped = true
  442.  
  443. AIRWALK.MouseButton1Down:Connect(function()
  444. if TOGGLEWALK == false then
  445. TOGGLEWALK = true
  446. AIRWALK.Text = "Disable AirWalk"
  447. repeat
  448. wait()
  449. game.Players.LocalPlayer.Character.Humanoid:ChangeState(10);
  450. until TOGGLEWALK == false
  451. else
  452. AIRWALK.Text = "Enable AirWalk"
  453. TOGGLEWALK = false
  454. end
  455. end)
  456.  
  457. LINE8.Name = "LINE8"
  458. LINE8.Parent = AIRWALK
  459. LINE8.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  460. LINE8.BorderSizePixel = 0
  461. LINE8.Position = UDim2.new(0, 0, 1, 0)
  462. LINE8.Size = UDim2.new(0, 59, 0, 2)
  463.  
  464. TP.Name = "TP"
  465. TP.Parent = BG
  466. TP.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  467. TP.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  468. TP.Position = UDim2.new(0.257234722, 0, 0.239999995, 0)
  469. TP.Size = UDim2.new(0, 59, 0, 28)
  470. TP.Font = Enum.Font.SourceSansBold
  471. TP.Text = "ClickTP"
  472. TP.TextColor3 = Color3.new(1, 1, 1)
  473. TP.TextScaled = true
  474. TP.TextSize = 14
  475. TP.TextWrapped = true
  476.  
  477. TP.MouseButton1Down:Connect(function()
  478. bin=Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  479. bin.Name = "ClickTP"
  480.  
  481. function teleportPlayer(pos)
  482.  
  483. local player = game.Players.LocalPlayer
  484. if player == nil or player.Character == nil then return end
  485.  
  486. local char = player.Character
  487.  
  488. char:MoveTo(pos)
  489.  
  490. end
  491.  
  492.  
  493. enabled = true
  494. function onButton1Down(mouse)
  495. if not enabled then
  496. return
  497. end
  498.  
  499. local player = game.Players.LocalPlayer
  500. if player == nil then return end
  501. local cf = mouse.Hit
  502. teleportPlayer(cf.p)
  503.  
  504. end
  505.  
  506. function onSelected(mouse)
  507. mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
  508. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  509. end
  510.  
  511. bin.Selected:connect(onSelected)
  512. end)
  513.  
  514. LINE9.Name = "LINE9"
  515. LINE9.Parent = TP
  516. LINE9.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  517. LINE9.BorderSizePixel = 0
  518. LINE9.Position = UDim2.new(0, 0, 1, 0)
  519. LINE9.Size = UDim2.new(0, 59, 0, 2)
  520.  
  521. GROUP.Name = "GROUP"
  522. GROUP.Parent = BG
  523. GROUP.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  524. GROUP.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  525. GROUP.Position = UDim2.new(0.257234722, 0, 0.474285722, 0)
  526. GROUP.Size = UDim2.new(0, 59, 0, 28)
  527. GROUP.Font = Enum.Font.SourceSansBold
  528. GROUP.Text = "Remove Group Door"
  529. GROUP.TextColor3 = Color3.new(1, 1, 1)
  530. GROUP.TextScaled = true
  531. GROUP.TextSize = 14
  532. GROUP.TextWrapped = true
  533.  
  534. GROUP.MouseButton1Down:Connect(function()
  535. game.Workspace.GroupDoor:Destroy()
  536. end)
  537.  
  538. LINE10.Name = "LINE10"
  539. LINE10.Parent = GROUP
  540. LINE10.BackgroundColor3 = Color3.new(0.780392, 0.529412, 1)
  541. LINE10.BorderSizePixel = 0
  542. LINE10.Position = UDim2.new(0, 0, 1, 0)
  543. LINE10.Size = UDim2.new(0, 59, 0, 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement