lolita5432

Untitled

Feb 9th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.91 KB | None | 0 0
  1. hop = Instance.new("HopperBin")
  2. script.Parent = hop
  3.  
  4. local player = game:service("Players").LocalPlayer
  5. local char = player.Character
  6. local Torsoz = char:findFirstChild("Torso")
  7. local RA = char:findFirstChild("Right Arm")
  8. local LA = char:findFirstChild("Left Arm")
  9. local RL = char:findFirstChild("Right Leg")
  10. local LL = char:findFirstChild("Left Leg")
  11. local H = char:findFirstChild("Head")
  12. local RS = Torsoz:findFirstChild("Right Shoulder")
  13. local LS = Torsoz:findFirstChild("Left Shoulder")
  14. local RH = Torsoz:findFirstChild("Right Hip")
  15. local LH = Torsoz:findFirstChild("Left Hip")
  16. local N = Torsoz:findFirstChild("Neck")
  17. local mouse = player:GetMouse()
  18. local T = Instance.new("TextButton")
  19. local FadeBox = Instance.new("Frame")
  20. local FadeText = Instance.new("TextLabel")
  21. local PrevWS = player.Character.Humanoid.WalkSpeed
  22. local Sprinting = false
  23. local QD = false
  24. local ED = false
  25. local RHoverPref = 0
  26. local xfade = false
  27. local HoverPart
  28. local TeleLines = {}
  29. local NoClipCons = {}
  30. local Options = {}
  31. local Change = {0, nil, nil}
  32.  
  33. local P = Instance.new("Part")
  34. P.Anchored = false
  35. P.CanCollide = false
  36. P.Name = "Part"
  37. P.formFactor = "Custom"
  38. P.Size = Vector3.new(0.5,0.5,0.5)
  39. P.Locked = true
  40. P.TopSurface = 0
  41. P.BottomSurface = 0
  42.  
  43. local Binds = {{"Hover", 122}, {"Rise Hover", 101}, {"Descend Hover", 113}, {"Sprint", 48}, {"Teleport", 116}, {"No Clip", 110}}
  44. local Preferences = {{"Toggle Hover", true}, {"Hover Move Speed", 2}, {"Toggle Sprint", false}, {"Sprint Multiplier", 2}, {"Toggle No Clip", true}}
  45.  
  46. function WhatKey(key)
  47. local Key = key
  48. if Key == 50 then
  49. Key = "Left Ctrl"
  50. elseif Key == 49 then
  51. Key = "Right Ctrl"
  52. elseif Key == 32 then
  53. Key = "Space"
  54. elseif Key == 52 then
  55. Key = "Left Alt"
  56. elseif Key == 45 then
  57. Key = "Caps Lock"
  58. elseif Key == 48 then
  59. Key = "Left Shift"
  60. elseif Key == 47 then
  61. Key = "Right Shift"
  62. elseif Key == 13 then
  63. Key = "Enter"
  64. elseif Key == 8 then
  65. Key = "Backspace"
  66. elseif Key == 17 then
  67. Key = "Up Arrow"
  68. elseif Key == 18 then
  69. Key = "Down Arrow"
  70. elseif Key == 20 then
  71. Key = "Left Arrow"
  72. elseif Key == 19 then
  73. Key = "Right Arrow"
  74. elseif Key == 23 then
  75. Key = "End"
  76. elseif Key == 22 then
  77. Key = "Home"
  78. elseif Key == 127 then
  79. Key = "Delete"
  80. elseif Key == 21 then
  81. Key = "Insert"
  82. else
  83. Key = string.char(Key):upper()
  84. end
  85. return Key
  86. end
  87.  
  88. function ChangePref(gui, txt)
  89. local val
  90. for i, v in pairs(Preferences) do
  91. if v[1] == txt then
  92. val = v
  93. break
  94. end
  95. end
  96. if val ~= nil then
  97. if gui.Type.Value == "boolean" then
  98. val[2] = not val[2]
  99. gui.Text = tostring(val[2])
  100. elseif gui.Type.Value == "number" then
  101. Change = {2, val, gui}
  102. local g = Instance.new("ScreenGui", player.PlayerGui)
  103. g.Name = "EnterANum"
  104. local tb = Instance.new("TextButton", g)
  105. tb.Visible = false
  106. tb.Size = UDim2.new(1.1,0,1.1,0)
  107. tb.Position = UDim2.new(-0.05,0,-0.05,0)
  108. tb.BackgroundColor3 = Color3.new(0,0,0)
  109. tb.BackgroundTransparency = 0.15
  110. tb.AutoButtonColor = false
  111. local f = Instance.new("Frame", g)
  112. f.Visible = false
  113. f.Size = UDim2.new(0.3,0,0.22,0)
  114. f.Position = UDim2.new(0.35,0,0.39,0)
  115. f.BackgroundColor3 = Color3.new(0,0,0)
  116. f.BorderColor3 = Color3.new(0,0.4,0.7)
  117. local tl = Instance.new("TextLabel", f)
  118. tl.Text = [[Enter a number for
  119. ]] .. txt:lower() .. " preference"
  120. tl.TextColor3 = Color3.new(0.4,0.6,0.8)
  121. tl.TextStrokeTransparency = 0
  122. tl.TextStrokeColor3 = Color3.new(tl.TextColor3.r-0.3,tl.TextColor3.g-0.3,tl.TextColor3.b-0.3)
  123. tl.Font = "ArialBold"
  124. tl.FontSize = 7
  125. tl.Size = UDim2.new(1,0,0.5,0)
  126. tl.BackgroundTransparency = 1
  127. tl.TextWrap = true
  128. local b = Instance.new("TextBox", f)
  129. b.BackgroundColor3 = Color3.new(0,0,0)
  130. b.TextColor3 = Color3.new(0.4,0.6,0.8)
  131. b.Size = UDim2.new(0.6,0,0.25,0)
  132. b.Position = UDim2.new(0.2,0,0.575,0)
  133. b.Font = "ArialBold"
  134. b.FontSize = 6
  135. b.BorderColor3 = Color3.new(0,0.4,0.7)
  136. b.Text = "- - - - -"
  137. local thecon = b.FocusLost:connect(function()
  138. local num = tonumber(b.Text)
  139. if num == nil then
  140. b.Text = "That was not a number"
  141. else
  142. val[2] = num
  143. gui.Text = val[2]
  144. if val[1] == "Sprint Multiplier" then
  145. gui.Text = "x"..val[2]
  146. end
  147. for i, v in pairs(player.PlayerGui:children()) do
  148. if v.Name == "EnterANum" and v.className == "ScreenGui" then
  149. v:remove()
  150. end
  151. end
  152. gui.TextColor3 = Color3.new(0.5,0.6,0.8)
  153. gui.TextStrokeColor3 = Color3.new(Change[3].TextColor3.r-0.3,Change[3].TextColor3.g-0.3,Change[3].TextColor3.b-0.3)
  154. Change = {0, nil, nil}
  155. thecon:disconnect()
  156. end
  157. end)
  158.  
  159. wait(0.02)
  160. tb.Visible = true
  161. f.Visible = true
  162. end
  163. end
  164. end
  165.  
  166. function ChangeBind(gui, txt)
  167. if Change[1] == 0 then
  168. local val
  169. for i, v in pairs(Binds) do
  170. if v[1] == txt then
  171. val = v
  172. break
  173. end
  174. end
  175. if val ~= nil then
  176. Change = {1, val, gui}
  177. local g = Instance.new("ScreenGui", player.PlayerGui)
  178. g.Name = "EnterAKey"
  179. local tb = Instance.new("TextButton")
  180. tb.Size = UDim2.new(1.1,0,1.1,0)
  181. tb.Position = UDim2.new(-0.05,0,-0.05,0)
  182. tb.BackgroundColor3 = Color3.new(0,0,0)
  183. tb.BackgroundTransparency = 0.15
  184. tb.Text = "Press a key for the " .. txt:lower() .. " action"
  185. tb.TextColor3 = Color3.new(0.4,0.6,0.8)
  186. tb.TextStrokeTransparency = 0
  187. tb.TextStrokeColor3 = Color3.new(tb.TextColor3.r-0.3,tb.TextColor3.g-0.3,tb.TextColor3.b-0.3)
  188. tb.Font = "ArialBold"
  189. tb.FontSize = 7
  190. tb.AutoButtonColor = false
  191. wait(0.025)
  192. tb.Parent = g
  193. end
  194. end
  195. end
  196.  
  197. function ConfigGui()
  198. for i, v in pairs(player.PlayerGui:children()) do
  199. if v.className == "ScreenGui" and v.Name == "ConfigGui" then
  200. v:remove()
  201. end
  202. end
  203. local g = Instance.new("ScreenGui", player.PlayerGui)
  204. g.Name = "ConfigGui"
  205.  
  206.  
  207. ----- border -----
  208.  
  209. local fr = Instance.new("Frame", g)
  210. fr.Visible = false
  211. fr.Position = UDim2.new(0.3,0,0.3,0)
  212. fr.Size = UDim2.new(0.4,0,0.4,0)
  213. fr.BackgroundColor3 = Color3.new(0,0,0)
  214. fr.BorderColor3 = Color3.new(0,0.4,0.7)
  215. -- fr.AutoButtonColor = false
  216. -- fr.Draggable = true
  217.  
  218. local e = Instance.new("ImageLabel", fr)
  219. e.Size = UDim2.new(0.12,0,0.12,0)
  220. e.BackgroundColor3 = Color3.new(0,0,0)
  221. e.BorderColor3 = Color3.new(0,0.4,0.7)
  222. e.ZIndex = 10
  223. local esx = (e.Size.X.Scale /2) - 0.01
  224. local esy = (e.Size.Y.Scale /2) - 0.01
  225.  
  226. e.Position = UDim2.new(-esx,0,-esy,0)
  227.  
  228. local e = e:Clone()
  229. e.Parent = fr
  230. e.Position = UDim2.new(1-(esx*1.25),0,1-(esy*1.25),0)
  231. local e = e:Clone()
  232. e.Parent = fr
  233. e.Position = UDim2.new(-esx,0,1-(esy*1.25),0)
  234.  
  235. local e = Instance.new("ImageLabel", fr)
  236. e.Size = UDim2.new(0.12,0,0.12,0)
  237. e.BackgroundColor3 = Color3.new(0,0,0)
  238. e.BorderColor3 = Color3.new(0,0.4,0.7)
  239. e.ZIndex = 10
  240. e.Position = UDim2.new(1-(esx*1.25),0,-esy,0)
  241.  
  242. local t = Instance.new("TextButton", e)
  243. t.Position = UDim2.new(0.2,0,0,0)
  244. t.Size = UDim2.new(0.6,0,0.8,0)
  245. t.BackgroundTransparency = 1
  246. t.TextColor3 = Color3.new(0.6,0,0)
  247. t.Font = "ArialBold"
  248. t.Text = "x"
  249. t.TextStrokeTransparency = 0
  250. t.TextStrokeColor3 = Color3.new(0.4,0,0)
  251. t.FontSize = 8
  252. t.ZIndex = 10
  253. t.MouseEnter:connect(function() xfade = true end)
  254. t.MouseLeave:connect(function() xfade = false end)
  255. t.MouseButton1Up:connect(function()
  256. for i, v in pairs(player.PlayerGui:children()) do
  257. if v.className == "ScreenGui" and v.Name == "ConfigGui" then
  258. v:remove()
  259. end
  260. end
  261. end)
  262. T = t
  263.  
  264. local f = Instance.new("Frame", fr)
  265. f.Position = UDim2.new(0.02,0,0.02,0)
  266. f.Size = UDim2.new(0.96,0,0.96,0)
  267. f.BackgroundColor3 = Color3.new(0,0,0)
  268. f.BorderColor3 = Color3.new(0,0.4,0.7)
  269.  
  270. local t = Instance.new("TextLabel", f)
  271. t.Position = UDim2.new(0.5,0,0.08,0)
  272. t.Text = "Configuration"
  273. t.TextColor3 = Color3.new(0.4,0.6,0.8)
  274. t.Font = "ArialBold"
  275. t.FontSize = 8
  276. t.TextStrokeTransparency = 0
  277. t.TextStrokeColor3 = Color3.new(t.TextColor3.r-0.3,t.TextColor3.g-0.3,t.TextColor3.b-0.3)
  278.  
  279. local t = Instance.new("TextLabel", f)
  280. t.Position = UDim2.new(0.5,0,0.95,0)
  281. t.Text = [[Say "-config-" to open this menu]]
  282. t.TextColor3 = Color3.new(0.5,0.5,0.5)
  283. t.Font = "ArialBold"
  284. t.FontSize = 5
  285. t.Transparency = 0.7
  286. FadeText = t
  287.  
  288. local f = Instance.new("Frame", f)
  289. f.Position = UDim2.new(0.05,0,0.2,0)
  290. f.Size = UDim2.new(0.9,0,0.7,0)
  291. f.Transparency = 1
  292. local b = Instance.new("Frame", f)
  293. b.Position = UDim2.new(0.4925,0,-0.02,0)
  294. b.Size = UDim2.new(0.01,0,1.04,0)
  295. b.BackgroundColor3 = Color3.new(0,0.1,0.175)
  296. b.BorderColor3 = Color3.new(0,0.2,0.35)
  297. b.Transparency = 0.4
  298.  
  299. local fa = Instance.new("Frame", f)
  300. fa.Position = UDim2.new(0.505,0,0,0)
  301. fa.Size = UDim2.new(0.495,0,1,0)
  302. fa.BackgroundColor3 = Color3.new(0,0,0)
  303. fa.BorderSizePixel = 0
  304. fa.Transparency = 0
  305. fa.ZIndex = 6
  306. FadeBox = fa
  307.  
  308. local kbw = Instance.new("Frame", f)
  309. kbw.Name = "Menu"
  310. kbw.Position = UDim2.new(0.5,0,0,0)
  311. kbw.Size = UDim2.new(0.5,0,1,0)
  312. kbw.Transparency = 1
  313.  
  314. local t = Instance.new("TextLabel", kbw)
  315. t.Position = UDim2.new(0.01,0,0.05,0)
  316. t.Size = UDim2.new(0.55,0,0.15,0)
  317. t.Text = "Action"
  318. t.TextColor3 = Color3.new(0.4,0.6,0.8)
  319. t.BackgroundTransparency = 1
  320. t.Font = "ArialBold"
  321. t.FontSize = 6
  322. t.TextStrokeTransparency = 0
  323. t.TextStrokeColor3 = Color3.new(t.TextColor3.r-0.3,t.TextColor3.g-0.3,t.TextColor3.b-0.3)
  324. local t = t:Clone()
  325. t.Parent = kbw
  326. t.Position = UDim2.new(0.56,0,0.05,0)
  327. t.Size = UDim2.new(0.43,0,0.15,0)
  328. t.Text = "Key binded"
  329.  
  330. for i, v in pairs(Binds) do
  331. local tl = Instance.new("TextLabel", kbw)
  332. tl.Position = UDim2.new(0.01,0,0.2+(0.1*(i-1)),0)
  333. tl.Size = UDim2.new(0.55,0,0.1,0)
  334. tl.Text = v[1]
  335. tl.TextColor3 = Color3.new(0.5,0.6,0.8)
  336. tl.BackgroundTransparency = 1
  337. tl.Font = "ArialBold"
  338. tl.FontSize = 5
  339. tl.TextStrokeTransparency = 0
  340. tl.TextStrokeColor3 = Color3.new(tl.TextColor3.r-0.3,tl.TextColor3.g-0.3,tl.TextColor3.b-0.3)
  341. local bar = Instance.new("Frame", kbw)
  342. bar.Position = UDim2.new(0.04,0,0.2+(0.1*(i-1)),-1)
  343. bar.Size = UDim2.new(0.92,0,0,2)
  344. bar.BackgroundColor3 = Color3.new(0,0.15,0.22)
  345. bar.BorderSizePixel = 0
  346. local t = Instance.new("TextButton", kbw)
  347. t.Position = UDim2.new(0.56,0,0.2+(0.1*(i-1)),0)
  348. t.Size = UDim2.new(0.43,0,0.1,0)
  349. t.Text = WhatKey(v[2])
  350. t.TextColor3 = Color3.new(0.5,0.6,0.8)
  351. t.BackgroundTransparency = 1
  352. t.Font = "ArialBold"
  353. t.FontSize = 5
  354. t.TextStrokeTransparency = 0
  355. t.TextStrokeColor3 = Color3.new(t.TextColor3.r-0.3,t.TextColor3.g-0.3,t.TextColor3.b-0.3)
  356. t.MouseEnter:connect(function()
  357. if Change[1] == 0 then
  358. t.TextColor3 = Color3.new(0.8,0.6,0.5)
  359. t.TextStrokeColor3 = Color3.new(t.TextColor3.r-0.3,t.TextColor3.g-0.3,t.TextColor3.b-0.3)
  360. end
  361. end)
  362. t.MouseLeave:connect(function()
  363. if Change[1] == 0 then
  364. t.TextColor3 = Color3.new(0.5,0.6,0.8)
  365. t.TextStrokeColor3 = Color3.new(t.TextColor3.r-0.3,t.TextColor3.g-0.3,t.TextColor3.b-0.3)
  366. end
  367. end)
  368. t.MouseButton1Up:connect(function()
  369. if Change[1] == 0 then
  370. ChangeBind(t, tl.Text)
  371. end
  372. end)
  373. end
  374.  
  375. local pw = Instance.new("Frame", f)
  376. pw.Name = "Menu"
  377. pw.Position = UDim2.new(0.5,0,0,0)
  378. pw.Size = UDim2.new(0.5,0,1,0)
  379. pw.Transparency = 1
  380. pw.Visible = false
  381.  
  382. local t = Instance.new("TextLabel", pw)
  383. t.Position = UDim2.new(0.01,0,0.05,0)
  384. t.Size = UDim2.new(0.55,0,0.15,0)
  385. t.Text = "Action"
  386. t.TextColor3 = Color3.new(0.4,0.6,0.8)
  387. t.BackgroundTransparency = 1
  388. t.Font = "ArialBold"
  389. t.FontSize = 6
  390. t.TextStrokeTransparency = 0
  391. t.TextStrokeColor3 = Color3.new(t.TextColor3.r-0.3,t.TextColor3.g-0.3,t.TextColor3.b-0.3)
  392. local t = t:Clone()
  393. t.Parent = pw
  394. t.Position = UDim2.new(0.56,0,0.05,0)
  395. t.Size = UDim2.new(0.43,0,0.15,0)
  396. t.Text = "Preference"
  397.  
  398. for i, v in pairs(Preferences) do
  399. local tl = Instance.new("TextLabel", pw)
  400. tl.Position = UDim2.new(0.01,0,0.2+(0.1*(i-1)),0)
  401. tl.Size = UDim2.new(0.55,0,0.1,0)
  402. tl.Text = v[1]
  403. tl.TextColor3 = Color3.new(0.5,0.6,0.8)
  404. tl.BackgroundTransparency = 1
  405. tl.Font = "ArialBold"
  406. tl.FontSize = 5
  407. tl.TextStrokeTransparency = 0
  408. tl.TextStrokeColor3 = Color3.new(tl.TextColor3.r-0.3,tl.TextColor3.g-0.3,tl.TextColor3.b-0.3)
  409. local bar = Instance.new("Frame", pw)
  410. bar.Position = UDim2.new(0.04,0,0.2+(0.1*(i-1)),-1)
  411. bar.Size = UDim2.new(0.92,0,0,2)
  412. bar.BackgroundColor3 = Color3.new(0,0.15,0.22)
  413. bar.BorderSizePixel = 0
  414. local t = Instance.new("TextButton", pw)
  415. t.Position = UDim2.new(0.56,0,0.2+(0.1*(i-1)),0)
  416. t.Size = UDim2.new(0.43,0,0.1,0)
  417. t.Text = tostring(v[2])
  418. if v[1] == "Sprint Multiplier" then
  419. t.Text = "x"..tostring(v[2])
  420. end
  421. t.TextColor3 = Color3.new(0.5,0.6,0.8)
  422. t.BackgroundTransparency = 1
  423. t.Font = "ArialBold"
  424. t.FontSize = 5
  425. t.TextStrokeTransparency = 0
  426. t.TextStrokeColor3 = Color3.new(t.TextColor3.r-0.3,t.TextColor3.g-0.3,t.TextColor3.b-0.3)
  427. t.MouseEnter:connect(function()
  428. if Change[1] == 0 then
  429. t.TextColor3 = Color3.new(0.8,0.6,0.5)
  430. t.TextStrokeColor3 = Color3.new(t.TextColor3.r-0.3,t.TextColor3.g-0.3,t.TextColor3.b-0.3)
  431. end
  432. end)
  433. t.MouseLeave:connect(function()
  434. if Change[1] == 0 then
  435. t.TextColor3 = Color3.new(0.5,0.6,0.8)
  436. t.TextStrokeColor3 = Color3.new(t.TextColor3.r-0.3,t.TextColor3.g-0.3,t.TextColor3.b-0.3)
  437. end
  438. end)
  439. t.MouseButton1Up:connect(function()
  440. ChangePref(t, tl.Text)
  441. end)
  442. local val = Instance.new("StringValue", t)
  443. val.Name = "Type"
  444. val.Value = tostring(type(v[2]))
  445. end
  446.  
  447. Options = {}
  448. for i = 0, 1 do
  449. local o = Instance.new("TextButton", f)
  450. o.Size = UDim2.new(0.47,0,0.185,0)
  451. o.Position = UDim2.new(0,0,0.2*i,0)
  452. o.FontSize = 6
  453. o.Font = "ArialBold"
  454. o.TextXAlignment = "Left"
  455. o.BackgroundColor3 = Color3.new(0.07,0.07,0.07)
  456. o.TextColor3 = Color3.new(0.5,0.5,0.5)
  457. o.BorderSizePixel = 0
  458. o.AutoButtonColor = false
  459. if i == 0 then
  460. o.Text = " Keybindings"
  461. o.Selected = true
  462. elseif i == 1 then
  463. o.Text = " Preferences"
  464. end
  465. o.MouseEnter:connect(function()
  466. o.TextWrap = true
  467. end)
  468. o.MouseLeave:connect(function()
  469. o.TextWrap = false
  470. end)
  471. o.MouseButton1Up:connect(function()
  472. if o.Selected == false then
  473. for _, v in pairs(f:children()) do
  474. if v.Name == "Menu" then
  475. v.Visible = false
  476. end
  477. end
  478. if i == 0 then
  479. kbw.Visible = true
  480. elseif i == 1 then
  481. pw.Visible = true
  482. end
  483. FadeBox.Transparency = 0
  484. end
  485. for _, v in pairs(Options) do
  486. v[1].Selected = false
  487. end
  488. o.Selected = true
  489. end)
  490. if i == 0 then
  491. table.insert(Options, {o, 0.8, 0.075})
  492. else
  493. table.insert(Options, {o, 0.8, 0})
  494. end
  495. end
  496.  
  497. wait(0.01)
  498. fr.Visible = true
  499.  
  500. end
  501.  
  502. ConfigGui()
  503.  
  504. function KD(key)
  505. if Change[1] == 1 and string.byte(key) ~= 27 then
  506. Change[3].Text = WhatKey(string.byte(key))
  507. Change[3].TextColor3 = Color3.new(0.5,0.6,0.8)
  508. Change[3].TextStrokeColor3 = Color3.new(Change[3].TextColor3.r-0.3,Change[3].TextColor3.g-0.3,Change[3].TextColor3.b-0.3)
  509. Change[2][2] = string.byte(key)
  510. Change = {0, nil, nil}
  511. for i, v in pairs(player.PlayerGui:children()) do
  512. if v.className == "ScreenGui" and v.Name == "EnterAKey" then
  513. v:remove()
  514. end
  515. end
  516. elseif Change[1] == 0 then
  517. local Key = string.byte(key)
  518. local func
  519. for i, v in pairs(Binds) do
  520. if v[2] == Key then
  521. func = v[1]
  522. break
  523. end
  524. end
  525.  
  526. if func == "Teleport" then
  527. if mouse.Target ~= nil then
  528. local torsoz = player.Character.Torso.Position
  529. local thepos = mouse.Hit.p + Vector3.new(0,3,0)
  530. local thepos2 = CFrame.new(thepos, Vector3.new(torsoz.x, thepos.y, torsoz.z))
  531. player.Character.Torso.CFrame = thepos2 * CFrame.Angles(0,math.pi,0)
  532. local l = P:Clone()
  533. l.Parent = player.Character.Torso
  534. l.BrickColor = BrickColor.new("Deep blue")
  535. l.Transparency = 0.2
  536. l.Anchored = true
  537. l.CFrame = CFrame.new((torsoz + thepos)/2, torsoz)
  538. local mesh = Instance.new("SpecialMesh", l)
  539. mesh.MeshType = "Brick"
  540. mesh.Name = "Mesh"
  541. mesh.Scale = Vector3.new(1.2,2.6,(torsoz - thepos).magnitude*2)
  542. table.insert(TeleLines, l)
  543. local l = l:Clone()
  544. l.Parent = player.Character.Torso
  545. l.Mesh.Scale = l.Mesh.Scale - Vector3.new(0.3,0.75,0.75)
  546. l.BrickColor = BrickColor.new("Cyan")
  547. table.insert(TeleLines, l)
  548. end
  549.  
  550. elseif func == "Hover" then
  551. if player.Character.Torso:findFirstChild("HotkeyHoverBP") ~= nil then
  552. for i, v in pairs(player.Character.Torso:children()) do
  553. if v.className == "BodyPosition" and v.Name == "HotkeyHoverBP" then
  554. v:remove()
  555. end
  556. end
  557. for i, v in pairs(workspace.CurrentCamera:children()) do
  558. if v.className == "Part" and v.Name == "HoverPart" then
  559. v:remove()
  560. end
  561. end
  562. HoverPart = nil
  563. else
  564. for i, v in pairs(workspace.CurrentCamera:children()) do
  565. if v.className == "Part" and v.Name == "HoverPart" then
  566. v:remove()
  567. end
  568. end
  569. HoverPart = nil
  570. if player.Character:findFirstChild("Torso") ~= nil then
  571. local p = P:Clone()
  572. p.Name = "HoverPart"
  573. p.Parent = workspace.CurrentCamera
  574. p.Transparency = 1
  575. p.Size = Vector3.new(8,0.5,8)
  576. HoverPart = p
  577. local bp = Instance.new("BodyPosition", player.Character:findFirstChild("Torso"))
  578. bp.Name = "HotkeyHoverBP"
  579. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  580. bp.position = player.Character.Torso.Position
  581. bp.P = 10000
  582. wait(0.028)
  583. bp.maxForce = Vector3.new(0,math.huge,0)
  584. end
  585. end
  586. for i, v in pairs(Preferences) do
  587. if v[1] == "Hover Move Speed" then
  588. RHoverPref = v[2]
  589. end
  590. end
  591. ED = true
  592. for i, v in pairs(Preferences) do
  593. if v[1] == "Hover Move Speed" then
  594. RHoverPref = v[2]
  595. end
  596. end
  597. QD = true
  598.  
  599. elseif func == "No Clip" then
  600. if #NoClipCons == 0 then
  601. local con = game:service("RunService").Stepped:connect(function()
  602. pcall(function() player.Character.Torso.CanCollide = false end)
  603. pcall(function() player.Character.Head.CanCollide = false end)
  604. end)
  605. table.insert(NoClipCons, con)
  606. else
  607. for i, v in pairs(NoClipCons) do
  608. v:disconnect()
  609. table.remove(NoClipCons, i)
  610. end
  611. end
  612.  
  613. end
  614.  
  615. end
  616. end
  617.  
  618. function KU(key)
  619. local HoverPref
  620. local SprintPref
  621. local NoClipPref
  622. for i, v in pairs(Preferences) do
  623. if v[1] == "Toggle Hover" then
  624. HoverPref = v[2]
  625. elseif v[1] == "Toggle Sprint" then
  626. SprintPref = v[2]
  627. elseif v[1] == "Hover Move Speed" then
  628. RHoverPref = v[2]
  629. elseif v[1] == "Toggle No Clip" then
  630. NoClipPref = v[2]
  631. end
  632. end
  633. local Key = string.byte(key)
  634. local func
  635. for i, v in pairs(Binds) do
  636. if v[2] == Key then
  637. func = v[1]
  638. break
  639. end
  640. end
  641.  
  642. if func == "Hover" then
  643. if HoverPref == false then
  644. for i, v in pairs(player.Character.Torso:children()) do
  645. if v.className == "BodyPosition" and v.Name == "HotkeyHoverBP" then
  646. v:remove()
  647. end
  648. end
  649. for i, v in pairs(workspace.CurrentCamera:children()) do
  650. if v.className == "Part" and v.Name == "HoverPart" then
  651. v:remove()
  652. end
  653. end
  654. HoverPart = nil
  655. end
  656.  
  657. elseif func == "Sprint" then
  658. if Sprinting == true and SprintPref == false then
  659. player.Character.Humanoid.WalkSpeed = PrevWS
  660. Sprinting = false
  661. end
  662.  
  663. elseif func == "Rise Hover" then
  664. ED = false
  665. elseif func == "Descend Hover" then
  666. QD = false
  667.  
  668. elseif func == "No Clip" then
  669. if NoClipPref == false then
  670. for i, v in pairs(NoClipCons) do
  671. v:disconnect()
  672. table.remove(NoClipCons, i)
  673. end
  674. end
  675.  
  676. end
  677.  
  678. end
  679.  
  680. function Chat(msg)
  681. if msg == "-config-" then
  682. ConfigGui()
  683. end
  684. end
  685.  
  686. mouse.KeyDown:connect(KD)
  687. mouse.KeyUp:connect(KU)
  688. player.Chatted:connect(Chat)
  689.  
  690. local fadenum = 0.5
  691. while true do
  692. if xfade == true then
  693. fadenum = fadenum + 0.045
  694. if fadenum > 1 then
  695. fadenum = 1
  696. end
  697. T.TextColor3 = Color3.new(0,fadenum*0.2,fadenum)
  698. T.TextStrokeColor3 = Color3.new(0,fadenum*0.2,fadenum*0.45)
  699. else
  700. fadenum = fadenum - 0.045
  701. if fadenum < 0.5 then
  702. fadenum = 0.5
  703. end
  704. T.TextColor3 = Color3.new(0,fadenum*0.2,fadenum)
  705. T.TextStrokeColor3 = Color3.new(0,fadenum*0.2,fadenum*0.45)
  706. end
  707.  
  708. for i, v in pairs(Options) do
  709. if v[1].TextWrap == true or v[1].Selected == true then
  710. v[2] = v[2] + 0.028
  711. v[3] = v[3] + 0.0056
  712. if v[2] > 0.8 then
  713. v[2] = 0.8
  714. end
  715. if v[3] > 0.06 then
  716. v[3] = 0.06
  717. end
  718. v[1].TextColor3 = Color3.new(v[2]-0.2,v[2],v[2]+0.2)
  719. v[1].BackgroundColor3 = Color3.new(v[3]+0.02,v[3]+0.04,v[3]+0.07)
  720. v[1].Size = UDim2.new(0.38+(v[3]*1.4),0,0.185,0)
  721. if v[1].Selected == true then
  722. v[1].Size = UDim2.new(0.38+(v[3]*1.4),0,0.185,0)
  723. v[1].BackgroundColor3 = Color3.new(v[3]+0.02,v[3]+0.06,v[3]+0.15)
  724. end
  725. else
  726. v[2] = v[2] - 0.028
  727. v[3] = v[3] - 0.0056
  728. if v[2] < 0.5 then
  729. v[2] = 0.5
  730. end
  731. if v[3] < 0 then
  732. v[3] = 0
  733. end
  734. v[1].TextColor3 = Color3.new(v[2]-0.2,v[2],v[2]+0.2)
  735. v[1].BackgroundColor3 = Color3.new(v[3]+0.02,v[3]+0.04,v[3]+0.07)
  736. v[1].Size = UDim2.new(0.38+(v[3]*1.4),0,0.185,0)
  737. end
  738. end
  739.  
  740. for i, v in pairs(TeleLines) do
  741. v.Transparency = v.Transparency + 0.05
  742. if v.Transparency > 0.9 then
  743. v:remove()
  744. table.remove(TeleLines, i)
  745. end
  746. end
  747.  
  748. if FadeBox.Transparency < 1 then
  749. FadeBox.Transparency = FadeBox.Transparency + 0.05
  750. else
  751. FadeBox.Transparency = 1
  752. end
  753.  
  754. if FadeText.BorderSizePixel == 0 then
  755. FadeText.Transparency = FadeText.Transparency + 0.0125
  756. if FadeText.Transparency > 0.76 then
  757. FadeText.BorderSizePixel = 1
  758. end
  759. else
  760. FadeText.Transparency = FadeText.Transparency - 0.0125
  761. if FadeText.Transparency < 0.38 then
  762. FadeText.BorderSizePixel = 0
  763. end
  764. end
  765.  
  766. local tors = player.Character:findFirstChild("Torso")
  767. if QD == true or ED == true then
  768. if tors ~= nil then
  769. if tors:findFirstChild("HotkeyHoverBP") ~= nil then
  770. if QD == true then
  771. tors:findFirstChild("HotkeyHoverBP").position = tors.Position - Vector3.new(0,RHoverPref,0)
  772. end
  773. if ED == true then
  774. tors:findFirstChild("HotkeyHoverBP").position = tors.Position + Vector3.new(0,RHoverPref,0)
  775. end
  776. end
  777. end
  778. end
  779.  
  780. if tors ~= nil then
  781. if HoverPart ~= nil and tors:findFirstChild("HotkeyHoverBP") ~= nil then
  782. HoverPart.Size = Vector3.new(3.5,0.5,3.5)
  783. HoverPart.Anchored = true
  784. HoverPart.CanCollide = true
  785. HoverPart.CFrame = CFrame.new(tors.Position-Vector3.new(0,3.5,0))
  786. elseif HoverPart ~= nil and tors:findFirstChild("HotkeyHoverBP") == nil then
  787. for i, v in pairs(workspace.CurrentCamera:children()) do
  788. if v.className == "Part" and v.Name == "HoverPart" then
  789. v:remove()
  790. end
  791. end
  792. HoverPart = nil
  793. end
  794. end
  795.  
  796.  
  797. wait(0.025)
  798. end
Add Comment
Please, Sign In to add comment