Legacy


SUBMITTED BY: Pamlau

DATE: March 8, 2017, 10:41 a.m.

FORMAT: Lua

SIZE: 23.0 kB

HITS: 430

  1. local Plr = game.Players.LocalPlayer --LocalScript
  2. local Char = Plr.Character
  3. local Mouse = Plr:GetMouse()
  4. workspace.CurrentCamera.CameraSubject = Char.Head
  5. --game["Run Service"].RenderStepped:connect(function(_)
  6. Char.Humanoid.WalkSpeed = 4
  7. Char.Humanoid.MaxHealth = 50000
  8. Char.Humanoid.Health = 50000
  9. --end)
  10. local PrimaryColor = 'Really black'
  11. local SecondaryColor = 'Institutional white'
  12. local debounce = false
  13. local Height = 0
  14. local Music = true
  15. for _,v in next, Char:GetChildren() do
  16. if v:IsA('Hat') then
  17. v:Destroy()
  18. end
  19. end
  20. wait(.1)
  21. Char.Torso.Anchored = true
  22. local Hat = Instance.new('Hat',Char)
  23. local Handle = Instance.new('Part',Hat)
  24. Handle.CFrame = Char.Head.CFrame * CFrame.new(0,.2,0)
  25. Handle.Anchored = true
  26. Handle.CanCollide = false
  27. Handle.Material = 'Neon'
  28. local HatMesh = Instance.new('SpecialMesh',Handle)
  29. HatMesh.MeshId = 'rbxassetid://30166087'
  30. HatMesh.TextureId = 'rbxassetid://30166098'
  31. --http://www.roblox.com/asset/?id=3270017
  32. local Hat2 = Instance.new('Hat',Char)
  33. local Handle2 = Instance.new('Part',Hat2)
  34. Handle2.CFrame = Char.Head.CFrame * CFrame.new(0,.2,0)
  35. Handle2.Anchored = true
  36. Handle2.CanCollide = false
  37. Handle2.Material = 'Neon'
  38. local HatMesh2 = Instance.new('SpecialMesh',Handle2)
  39. HatMesh2.MeshId = 'rbxassetid://128154773'
  40. HatMesh2.TextureId = 'rbxassetid://128154785'
  41. local Hat3 = Instance.new('Hat',Char)
  42. local Handle3 = Instance.new('Part',Hat3)
  43. Handle3.CFrame = Char.Head.CFrame * CFrame.new(0,.2,0)
  44. Handle3.Anchored = true
  45. Handle3.CanCollide = false
  46. Handle3.Material = 'Neon'
  47. Handle3.BrickColor = BrickColor.new('Really black')
  48. local HatMesh3 = Instance.new('SpecialMesh',Handle3)
  49. HatMesh3.MeshId = 'rbxassetid://3270017'
  50. --HatMesh3.TextureId = 'rbxassetid://128154785'
  51. HatMesh3.Scale = Vector3.new(2,2,1)
  52. game["Run Service"].RenderStepped:connect(function()
  53. Handle.CFrame = Char.Head.CFrame * CFrame.new(0,.16,-.3)
  54. Handle2.CFrame = Char.Head.CFrame * CFrame.new(0,.6,0)
  55. Handle3.CFrame = Char.Head.CFrame * CFrame.new(0,1.3,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  56. end)
  57. Char.Torso.Anchored = false
  58. local Face = Instance.new('Decal',Char.Head)
  59. Face.Name = 'face'
  60. if Char.Head:findFirstChild('face') then
  61. Char.Head['face']:Destroy()
  62. end
  63. Face.Texture = 'rbxassetid://13603673'
  64. local Sound = Instance.new('Sound',Char.Head)
  65. Sound.SoundId = 'rbxassetid://211759002'
  66. Sound.Pitch = .82
  67. Sound.Looped = true
  68. Sound.Volume = 1
  69. if Music then
  70. Sound:Play()
  71. end
  72. local ra = Char:FindFirstChild('Right Arm')
  73. local ts = Char.Torso
  74. local la = Char:FindFirstChild('Left Arm')
  75. local ll = Char:FindFirstChild('Left Leg')
  76. local rl = Char:FindFirstChild('Right Leg')
  77. local hd = Char.Head
  78. local root = Char:FindFirstChild('HumanoidRootPart')
  79. rarm = ra
  80. larm = la
  81. torso = ts
  82. hed = hd
  83. root = root
  84. lleg = ll
  85. rleg = rl
  86. function clerp(c1,c2,al)
  87. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  88. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  89. for i,v in pairs(com1) do
  90. com1[i] = v+(com2[i]-v)*al
  91. end
  92. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  93. end
  94. newWeld = function(wp,w0,w1,c0,c1)
  95. local Weld = Instance.new('Weld',wp or nil)
  96. Weld.Name = w0.Name..'To'..w1.Name
  97. Weld.Part0 = w0 or nil
  98. Weld.Part1 = w1 or nil
  99. Weld.C0 = c0 or CFrame.fromEulerAnglesXYZ(0,0,0)
  100. Weld.C1 = c1 or CFrame.new(0,0,0)
  101. end
  102. --[[WELDZ]]--
  103. newWeld(torso,torso,root,nil,CFrame.new(0,2,0))
  104. newWeld(torso,torso,rarm,CFrame.fromEulerAnglesXYZ(-.43,0,.54),CFrame.new(-1.6,.75,-.35))
  105. newWeld(torso,torso,larm,CFrame.fromEulerAnglesXYZ(-.43,0,-.54),CFrame.new(1.6,.75,-.35))--]]
  106. --newWeld(torso,torso,rarm,CFrame.fromEulerAnglesXYZ(.2,0,0),CFrame.new(-1.5,0,0))
  107. --newWeld(torso,torso,larm,CFrame.fromEulerAnglesXYZ(.2,0,0),CFrame.new(1.5,0,0))
  108. newWeld(torso,torso,hed,CFrame.fromEulerAnglesXYZ(-.35,.01,0),CFrame.new(0,-1.43,-.3))
  109. newWeld(torso,torso,rleg,CFrame.fromEulerAnglesXYZ(0,0,0),CFrame.new(-.5,2,0))
  110. newWeld(torso,torso,lleg,CFrame.fromEulerAnglesXYZ(-.2,0,0),CFrame.new(.5,2,.2))
  111. -------------
  112. running = false
  113. Mouse.KeyDown:connect(function(k)
  114. k = k:lower()
  115. if k == 'w' then
  116. running = true
  117. end
  118. end)
  119. Mouse.KeyUp:connect(function(k)
  120. if k:lower() == 'w' then
  121. running = false
  122. end
  123. end)
  124. spawn(function()
  125. while wait() do
  126. for i = 1,30 do
  127. if running then
  128. torso['TorsoToLeft Leg'].C0 = torso['TorsoToLeft Leg'].C0 * CFrame.fromEulerAnglesXYZ(.001,0,0)
  129. torso['TorsoToLeft Arm'].C0 = torso['TorsoToLeft Arm'].C0 * CFrame.fromEulerAnglesXYZ(.002,.0005,.0005)
  130. torso['TorsoToRight Arm'].C0 = torso['TorsoToRight Arm'].C0 * CFrame.fromEulerAnglesXYZ(.002,.0005,.0005)
  131. torso['TorsoToRight Leg'].C0 = torso['TorsoToRight Leg'].C0 * CFrame.fromEulerAnglesXYZ(.001,0,0)
  132. torso['TorsoToHead'].C0 = torso['TorsoToHead'].C0 * CFrame.fromEulerAnglesXYZ(-.002,0,0)
  133. game["Run Service"].RenderStepped:wait()
  134. end
  135. end
  136. wait(.05)
  137. for i = 1,30 do
  138. if running then
  139. torso['TorsoToLeft Leg'].C0 = torso['TorsoToLeft Leg'].C0 * CFrame.fromEulerAnglesXYZ(-.001,0,0)
  140. torso['TorsoToHead'].C0 = torso['TorsoToHead'].C0 * CFrame.fromEulerAnglesXYZ(.002,0,0)
  141. torso['TorsoToRight Arm'].C0 = torso['TorsoToRight Arm'].C0 * CFrame.fromEulerAnglesXYZ(-.002,-.0005,-.0005)
  142. torso['TorsoToLeft Arm'].C0 = torso['TorsoToLeft Arm'].C0 * CFrame.fromEulerAnglesXYZ(-.002,-.0005,-.0005)
  143. torso['TorsoToRight Leg'].C0 = torso['TorsoToRight Leg'].C0 * CFrame.fromEulerAnglesXYZ(-.001,0,0)
  144. --game["Run Service"].RenderStepped:wait()
  145. game["Run Service"].RenderStepped:wait()
  146. end
  147. end
  148. wait(.2)
  149. end
  150. end)
  151. FloatPart = function()
  152. local Part = Instance.new('Part',torso)
  153. Part.CFrame = CFrame.new(torso.CFrame.X,workspace.Base.CFrame.Y+1,torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
  154. Part.Anchored = true
  155. Part.Material = 'Neon'
  156. Part.CanCollide = false
  157. Part.BrickColor = BrickColor.new(PrimaryColor)
  158. local Mesh = Instance.new('SpecialMesh',Part)
  159. Mesh.Scale = Vector3.new(4,4,.2)
  160. Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
  161. Mesh.VertexColor = Vector3.new(0,170,255)
  162. spawn(function()
  163. for i = 1,30 do
  164. Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
  165. Part.Transparency = Part.Transparency + .035
  166. game["Run Service"].RenderStepped:wait()
  167. end
  168. Part:Destroy()
  169. end)
  170. end;
  171. DubPart = function()
  172. local Part = Instance.new('Part',torso)
  173. Part.CFrame = CFrame.new(torso.CFrame.X,workspace.Base.CFrame.Y+1,torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
  174. Part.Anchored = true
  175. Part.CanCollide = false
  176. Part.Material = 'Neon'
  177. Part.BrickColor = BrickColor.new(SecondaryColor)
  178. local Mesh = Instance.new('SpecialMesh',Part)
  179. Mesh.Scale = Vector3.new(7,7,.2)
  180. Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
  181. Mesh.VertexColor = Vector3.new(0,170,255)
  182. spawn(function()
  183. for i = 1,30 do
  184. Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
  185. Part.Transparency = Part.Transparency + .035
  186. game["Run Service"].RenderStepped:wait()
  187. end
  188. Part:Destroy()
  189. end)
  190. end;
  191. OnTouch = function(Toucher)
  192. if Toucher.Parent.Name ~= Plr.Name and Toucher.Parent:FindFirstChild('Humanoid') then
  193. local Hum = Toucher.Parent:FindFirstChild('Humanoid')
  194. Hum.Health = Hum.Health - .7
  195. end
  196. end;
  197. Fade = function(Item,t)
  198. spawn(function()
  199. for i = 1,20 do
  200. Item.Transparency = Item.Transparency + .05
  201. if t then
  202. wait(t)
  203. else
  204. wait()
  205. end
  206. end
  207. Item:Destroy()
  208. end)
  209. end
  210. TouchKill = function(Toucher)
  211. if Toucher.Parent then
  212. if Toucher.Parent:FindFirstChild('Humanoid') then
  213. local P = Toucher.Parent:FindFirstChild('Humanoid')
  214. if P ~= nil and P.Parent.Name ~= Plr.Name then
  215. P.Health = P.Health - math.random(4,17)
  216. end
  217. end
  218. end
  219. end;
  220. Particle = function()
  221. local Part = Instance.new('Part',torso)
  222. Part.BrickColor = BrickColor.new(PrimaryColor)
  223. Part.Anchored = true
  224. Part.Transparency = .3
  225. Part.Touched:connect(function(I)OnTouch(I)end)
  226. Part.CanCollide = false
  227. Part.CFrame = torso.CFrame * CFrame.new(math.random(-10,10),math.random(-15,15),math.random(-10,10)) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random())
  228. local Mesh = Instance.new('BlockMesh',Part)
  229. Mesh.Scale = Vector3.new(.05,.1,.1)
  230. spawn(function()
  231. for i = 1,40 do
  232. Part.Transparency = Part.Transparency + .0125
  233. Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0)
  234. game["Run Service"].RenderStepped:wait()
  235. end
  236. Part:Destroy()
  237. end)
  238. end;
  239. spawn(function()
  240. while wait() do
  241. wait(.05)
  242. FloatPart()
  243. wait(.08)
  244. FloatPart()
  245. wait(.05)
  246. DubPart()
  247. wait(.08)
  248. end
  249. end)
  250. --Guns
  251. Gun1 = Instance.new('Model',Char)
  252. Gun1.Name = 'GUN1MODEL'
  253. a = Instance.new('Part',Gun1)
  254. a.CanCollide = false
  255. a.Name = 'PartAGun1'
  256. a.Shape = 'Ball'
  257. a.TopSurface = 10
  258. a.BottomSurface = 0
  259. a.FormFactor = 3
  260. a.Size = Vector3.new(1,1,1)
  261. a.Transparency = .4
  262. a.BrickColor = BrickColor.new(PrimaryColor)
  263. newWeld(torso,torso,a,CFrame.fromEulerAnglesXYZ(0,0,0),CFrame.new(-1.3,-1.6,0))
  264. Gun2 = Instance.new('Model',Char)
  265. Gun2.Name = 'GUN2MODEL'
  266. a2 = Instance.new('Part',Gun2)
  267. a2.CanCollide = false
  268. a2.Name = 'PartAGun2'
  269. a2.Shape = 'Ball'
  270. a2.TopSurface = 10
  271. a2.BottomSurface = 0
  272. a2.FormFactor = 3
  273. a2.Size = Vector3.new(1,1,1)
  274. a2.Transparency = .4
  275. a2.BrickColor = BrickColor.new(SecondaryColor)
  276. newWeld(torso,torso,a2,CFrame.fromEulerAnglesXYZ(0,0,0),CFrame.new(1.3,-1.6,0))
  277. --
  278. local Hand1 = Instance.new('Part',a)
  279. Hand1.FormFactor = 'Custom'
  280. Hand1.Name = 'Hand1'
  281. game["Run Service"].RenderStepped:wait()
  282. Hand1.Size = Vector3.new(.5,.5,.5)
  283. Hand1.Transparency = .4
  284. Hand1.BrickColor = BrickColor.new(SecondaryColor)
  285. Hand1.Material = 'Neon'
  286. --Hand1.Anchored = true
  287. Hand1.CanCollide = false
  288. newWeld(a,a,Hand1,CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random()),CFrame.new(0,0,0))
  289. game["Run Service"].RenderStepped:wait()
  290. local Hand2 = Instance.new('Part',a2)
  291. Hand2.FormFactor = 'Custom'
  292. Hand2.Name = 'Hand1'
  293. game["Run Service"].RenderStepped:wait()
  294. Hand2.Size = Vector3.new(.5,.5,.5)
  295. Hand2.Transparency = .4
  296. Hand2.BrickColor = BrickColor.new(PrimaryColor)
  297. Hand2.Material = 'Neon'
  298. --Hand2.Anchored = true
  299. Hand2.CanCollide = false
  300. newWeld(a2,a2,Hand2,CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random()),CFrame.new(0,0,0))
  301. game["Run Service"].RenderStepped:wait()--]]
  302. game["Run Service"].RenderStepped:connect(function()
  303. torso['TorsoToPartAGun1'].C1 = torso['TorsoToPartAGun1'].C1 * CFrame.new(0,math.sin(tick())/200,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()/3)/3000,0,math.sin(tick()/3)/1100)
  304. torso['TorsoToPartAGun2'].C1 = torso['TorsoToPartAGun2'].C1 * CFrame.new(0,math.sin(tick())/200,0) * CFrame.fromEulerAnglesXYZ(math.sin(tick()/3)/3000,0,math.sin(tick()/3)/1100)
  305. end)
  306. --
  307. Lightning = function(Start,End,Times,Offset,Thickness,Transparency)
  308. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  309. for i=1,Times do
  310. local li = Instance.new("Part",workspace) li.BrickColor = BrickColor.new(PrimaryColor) li.TopSurface = 0 li.Material = 'Neon' li.BottomSurface = 0 li.Anchored = true li.Name = 'LightningPeice' li.Transparency = Transparency or 0.4
  311. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  312. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  313. if Times == i then
  314. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  315. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  316. else
  317. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  318. end
  319. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p spawn(function()wait(.3)Fade(li,.02)end)
  320. li.Touched:connect(function(I)
  321. TouchKill(I,0)
  322. end)
  323. end
  324. end
  325. Orbital = function()
  326. local lzr = Instance.new('Part',workspace.Base)
  327. lzr.Transparency = .3
  328. lzr.Anchored = true
  329. lzr.CFrame = CFrame.new(Mouse.Hit.X,0,Mouse.Hit.Z)-- * CFrame.fromEulerAnglesXYZ(0,0,86.4)
  330. lzr.BrickColor = BrickColor.new(SecondaryColor)
  331. local lzrmesh = Instance.new('CylinderMesh',lzr)
  332. lzrmesh.Scale = Vector3.new(10,10000,10)
  333. wait(.2)
  334. spawn(function()
  335. for i = 1,15 do
  336. lzrmesh.Scale = lzrmesh.Scale - Vector3.new(.5,0,.5)
  337. wait(.001)
  338. end
  339. wait(.1)
  340. local lzr2 = Instance.new('Part',workspace.Base)
  341. lzr2.Transparency = .3
  342. lzr2.Anchored = true
  343. lzr2.CFrame = lzr.CFrame-- * CFrame.fromEulerAnglesXYZ(0,0,86.4)
  344. lzr2.BrickColor = BrickColor.new(PrimaryColor)
  345. local lzrmesh2 = Instance.new('CylinderMesh',lzr2)
  346. lzrmesh2.Scale = Vector3.new(0,10000,0)
  347. for i = 1,20 do
  348. lzr2.Touched:connect(function(I)TouchKill(I)end)
  349. lzrmesh2.Scale = lzrmesh2.Scale + Vector3.new(.4,0,.4)
  350. local ex = Instance.new('Explosion',workspace)
  351. ex.Position = lzr2.Position
  352. game["Run Service"].RenderStepped:wait()
  353. end
  354. for i = 1,20 do
  355. lzr2.Transparency = lzr2.Transparency + .05
  356. game["Run Service"].RenderStepped:wait()
  357. end
  358. lzr:Destroy()
  359. lzr2:Destroy()
  360. end)
  361. end
  362. Fade2 = function(Item)
  363. spawn(function()
  364. for i = 1,20 do
  365. Item.Transparency = Item.Transparency + .05
  366. wait()
  367. end
  368. Item:Destroy()
  369. end)
  370. end
  371. CounterTp = function()
  372. debounce = true
  373. Invis()
  374. debounce = false
  375. torso.CFrame = torso.CFrame * CFrame.new(0,0,-25) * CFrame.fromEulerAnglesXYZ(0,64.4*2,0)
  376. Vis()
  377. end
  378. PSpike = function()
  379. local pa = Instance.new('Part',workspace.Base)
  380. pa.Anchored = true
  381. pa.Transparency = .3
  382. pa.CanCollide = false
  383. pa.Size = Vector3.new(4,1,1)
  384. pa.Material = 'Neon'
  385. local msh = Instance.new('BlockMesh',pa)
  386. msh.Scale = Vector3.new(2,1,1)
  387. game.Debris:AddItem(pa,5)
  388. pa.BrickColor = BrickColor.new('Really red')
  389. pa.CFrame = torso.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) * CFrame.new(Mouse.Hit.p,pa.Position)
  390. wait()
  391. --local sp = Instance.new('SpecialMesh',pa)
  392. --sp.MeshId = 'http://www.roblox.com/asset/?id=1033714'
  393. --sp.Scale = Vector3.new(.5,5,.5)
  394. end
  395. Pulse = function()
  396. local pul = Instance.new('Part',workspace.Base)
  397. pul.Size = Vector3.new(14,14,14)
  398. pul.Anchored = true
  399. pul.Transparency = .4
  400. pul.BrickColor = BrickColor.new(PrimaryColor)
  401. pul.TopSurface = 10
  402. pul.CanCollide = false
  403. pul.Shape = 'Ball'
  404. pul.Touched:connect(function(I)
  405. TouchKill(I)
  406. end)
  407. pul.CFrame = torso.CFrame
  408. pul.BottomSurface = 10
  409. local mshh = Instance.new('SpecialMesh',pul)
  410. mshh.MeshType = Enum.MeshType.Sphere
  411. mshh.Scale = Vector3.new(1,1,1)
  412. spawn(function()
  413. for i = 1,20 do
  414. mshh.Scale = mshh.Scale - Vector3.new(.1,.1,.1)
  415. wait()
  416. end
  417. wait(1)
  418. pul.BrickColor = BrickColor.new(SecondaryColor)
  419. spawn(function()wait(.5)Fade2(pul,.001)end)
  420. for i = 1,20 do
  421. mshh.Scale = mshh.Scale + Vector3.new(.2,.2,.2)
  422. wait()
  423. end
  424. end)
  425. --Fade2(pul,.001)
  426. end;
  427. auto = false
  428. Mouse.KeyDown:connect(function(k)
  429. if k:lower() == 'q' then
  430. auto = true
  431. while auto == true and debounce == false do
  432. debounce = true
  433. wait(.7)
  434. debounce = false
  435. local S = Instance.new('Sound',a)
  436. S.Pitch = .7
  437. S.Volume = .3
  438. S.SoundId = 'rbxassetid://177807944'
  439. S:Play()
  440. Lightning(a.Position,Mouse.Hit.p,math.random(5,10),math.random(-1,.7),.05,.4)
  441. wait(.1)
  442. Lightning(a2.Position,Mouse.Hit.p,math.random(5,10),math.random(-1,.7),.05,.4)
  443. end
  444. elseif k:lower() == 'f' then
  445. Orbital()
  446. elseif k:lower() == 'e' then
  447. Pulse()
  448. elseif k:lower() == 't' then
  449. CounterTp()
  450. elseif k:lower() == 'r' then
  451. PSpike()
  452. elseif k:lower() == 'z' then
  453. for i = 1,10 do
  454. Height = Height + .001
  455. game["Run Service"].RenderStepped:wait()
  456. end
  457. elseif k:lower() == 'x' then
  458. for i = 1,10 do
  459. Height = Height - .001
  460. game["Run Service"].RenderStepped:wait()
  461. end
  462. elseif k:lower() == 'c' then
  463. --for i = 1,10 do
  464. Height = 0
  465. --end
  466. end
  467. end)
  468. Mouse.KeyUp:connect(function(k)
  469. if k:lower() == 'q' then
  470. wait()
  471. auto = false
  472. end
  473. end)
  474. game["Run Service"].RenderStepped:connect(function(_)
  475. Particle()
  476. torso['TorsoToHumanoidRootPart'].C1 = torso['TorsoToHumanoidRootPart'].C1 * CFrame.new(0,Height+math.sin(tick())/150,0)
  477. end)
  478. tor = Char.Torso
  479. Debounce = false
  480. Invis = function()
  481. for i = 1,20 do
  482. Char['Right Arm'].Transparency = Char['Right Arm'].Transparency + .05
  483. Char['Left Arm'].Transparency = Char['Left Arm'].Transparency + .05
  484. Char['Right Leg'].Transparency = Char['Right Leg'].Transparency + .05
  485. Char['Left Leg'].Transparency = Char['Left Leg'].Transparency + .05
  486. Char['Head'].Transparency = Char['Head'].Transparency + .05
  487. Char['Torso'].Transparency = Char['Torso'].Transparency + .05
  488. Char.Head['face'].Transparency = Char.Head['face'].Transparency + .05
  489. game["Run Service"].RenderStepped:wait()
  490. end
  491. end
  492. Vis = function()
  493. for i = 1,20 do
  494. Char['Right Arm'].Transparency = Char['Right Arm'].Transparency - .05
  495. Char['Left Arm'].Transparency = Char['Left Arm'].Transparency - .05
  496. Char['Right Leg'].Transparency = Char['Right Leg'].Transparency - .05
  497. Char['Left Leg'].Transparency = Char['Left Leg'].Transparency - .05
  498. Char['Head'].Transparency = Char['Head'].Transparency - .05
  499. Char['Torso'].Transparency = Char['Torso'].Transparency - .05
  500. Char.Head['face'].Transparency = Char.Head['face'].Transparency - .05
  501. game["Run Service"].RenderStepped:wait()
  502. end
  503. end
  504. Fade = function(Part)
  505. if Part:IsA'Part' then
  506. for i = 1,20 do
  507. Part.Transparency = Part.Transparency + .05
  508. Part.Size = Part.Size - Vector3.new(.04,.04,.04)
  509. Part.CFrame = Part.CFrame * CFrame.new(0,-.1,0)
  510. wait()
  511. end
  512. Part:Destroy()
  513. end
  514. end
  515. Teleport = function(cx,cy,cz)
  516. Debounce = true
  517. tor.Anchored = true
  518. Invis()
  519. --MakeTpPart()
  520. tor.Anchored = false
  521. tor.CFrame = CFrame.new(cx,cy,cz) * CFrame.new(0,3,0)
  522. tor.Anchored = true
  523. Vis()
  524. tor.Anchored = false
  525. Debounce = false
  526. end;
  527. Mouse.Button1Down:connect(function()
  528. if not Debounce then
  529. Teleport(Mouse.Hit.X,Mouse.Hit.Y,Mouse.Hit.Z)
  530. end
  531. end)
  532. --[[GUIS]]--
  533. local sg = Instance.new('ScreenGui',Plr.PlayerGui)
  534. local tlb = Instance.new('TextLabel',sg)
  535. tlb.Size = UDim2.new(0,200,0,23)
  536. tlb.BackgroundTransparency = .2
  537. tlb.TextTransparency = 0
  538. tlb.TextStrokeTransparency = 1
  539. tlb.TextStrokeColor3 = Color3.new(255,255,255)
  540. tlb.BackgroundColor3 = Color3.new(-255,-255,-255)
  541. tlb.Font = 'ArialBold'
  542. tlb.FontSize = 'Size24'
  543. tlb.BorderSizePixel = 0
  544. tlb.TextColor3 = Color3.new(255,255,255)
  545. tlb.Position = UDim2.new(1,-201,0,400)
  546. game["Run Service"].RenderStepped:connect(function(_)
  547. tlb.Text = 'Health; '..math.floor(Char.Humanoid.Health+.1)
  548. end)
  549. local tb = Instance.new('TextButton',sg)
  550. tb.Size = UDim2.new(0,200,0,23)
  551. tb.BackgroundTransparency = .2
  552. tb.TextTransparency = 0
  553. tb.BorderSizePixel = 0
  554. tb.TextStrokeTransparency = 1
  555. tb.TextStrokeColor3 = Color3.new(255,255,255)
  556. tb.BackgroundColor3 = Color3.new(-255,-255,-255)
  557. tb.Font = 'ArialBold'
  558. tb.FontSize = 'Size24'
  559. tb.TextColor3 = Color3.new(255,255,255)
  560. tb.Position = UDim2.new(1,-201,0,424)
  561. tb.Text = 'Open Controls'
  562. local frame = Instance.new('Frame',sg)
  563. frame.Size = UDim2.new(0,200,0,185)
  564. frame.Name = 'SGFrame'
  565. frame.Position = UDim2.new(1,-201,1,0)
  566. frame.BorderSizePixel = 0
  567. frame.BackgroundTransparency = .2
  568. frame.BackgroundColor3 = Color3.new(-255,-255,-255)
  569. local con1 = Instance.new('TextLabel',frame)
  570. con1.BackgroundTransparency = 1
  571. con1.BackgroundColor3 = frame.BackgroundColor3
  572. con1.BorderSizePixel = 0
  573. con1.Text = 'Q; Lightning'
  574. con1.TextColor3 = Color3.new(255,255,255)
  575. con1.Font = 'ArialBold'
  576. con1.FontSize = 'Size18'
  577. con1.Size = UDim2.new(1,0,0,23)
  578. local con2 = Instance.new('TextLabel',frame)
  579. con2.BackgroundTransparency = 1
  580. con2.BackgroundColor3 = frame.BackgroundColor3
  581. con2.BorderSizePixel = 0
  582. con2.Text = 'F; Pulse Beam'
  583. con2.TextColor3 = Color3.new(255,255,255)
  584. con2.Font = 'ArialBold'
  585. con2.Position = UDim2.new(0,0,0,23)
  586. con2.FontSize = 'Size18'
  587. con2.Size = UDim2.new(1,0,0,23)
  588. local con3 = Instance.new('TextLabel',frame)
  589. con3.BackgroundTransparency = 1
  590. con3.BackgroundColor3 = frame.BackgroundColor3
  591. con3.BorderSizePixel = 0
  592. con3.Text = 'Z; Increase Rise'
  593. con3.TextColor3 = Color3.new(255,255,255)
  594. con3.Font = 'ArialBold'
  595. con3.Position = UDim2.new(0,0,0,46)
  596. con3.FontSize = 'Size18'
  597. con3.Size = UDim2.new(1,0,0,23)
  598. local con4 = Instance.new('TextLabel',frame)
  599. con4.BackgroundTransparency = 1
  600. con4.BackgroundColor3 = frame.BackgroundColor3
  601. con4.BorderSizePixel = 0
  602. con4.Text = 'X; Decrease Rise'
  603. con4.TextColor3 = Color3.new(255,255,255)
  604. con4.Font = 'ArialBold'
  605. con4.Position = UDim2.new(0,0,0,69)
  606. con4.FontSize = 'Size18'
  607. con4.Size = UDim2.new(1,0,0,23)
  608. local con5 = Instance.new('TextLabel',frame)
  609. con5.BackgroundTransparency = 1
  610. con5.BackgroundColor3 = frame.BackgroundColor3
  611. con5.BorderSizePixel = 0
  612. con5.Text = 'C; Zero Rise'
  613. con5.TextColor3 = Color3.new(255,255,255)
  614. con5.Font = 'ArialBold'
  615. con5.Position = UDim2.new(0,0,0,92)
  616. con5.FontSize = 'Size18'
  617. con5.Size = UDim2.new(1,0,0,23)
  618. local con6 = Instance.new('TextLabel',frame)
  619. con6.BackgroundTransparency = 1
  620. con6.BackgroundColor3 = frame.BackgroundColor3
  621. con6.BorderSizePixel = 0
  622. con6.Text = 'MouseClick; Teleport'
  623. con6.TextColor3 = Color3.new(255,255,255)
  624. con6.Font = 'ArialBold'
  625. con6.Position = UDim2.new(0,0,0,115)
  626. con6.FontSize = 'Size18'
  627. con6.Size = UDim2.new(1,0,0,23)
  628. local con7 = Instance.new('TextLabel',frame)
  629. con7.BackgroundTransparency = 1
  630. con7.BackgroundColor3 = frame.BackgroundColor3
  631. con7.BorderSizePixel = 0
  632. con7.Text = 'E; Discharge'
  633. con7.TextColor3 = Color3.new(255,255,255)
  634. con7.Font = 'ArialBold'
  635. con7.Position = UDim2.new(0,0,0,139)
  636. con7.FontSize = 'Size18'
  637. con7.Size = UDim2.new(1,0,0,23)
  638. local con8 = Instance.new('TextLabel',frame)
  639. con8.BackgroundTransparency = 1
  640. con8.BackgroundColor3 = frame.BackgroundColor3
  641. con8.BorderSizePixel = 0
  642. con8.Text = 'T; Dodge'
  643. con8.TextColor3 = Color3.new(255,255,255)
  644. con8.Font = 'ArialBold'
  645. con8.Position = UDim2.new(0,0,0,163)
  646. con8.FontSize = 'Size18'
  647. con8.Size = UDim2.new(1,0,0,23)
  648. tb.MouseButton1Down:connect(function()
  649. if tb.Text == 'Open Controls' then
  650. tb.Text = 'Close Controls'
  651. frame:TweenPosition(UDim2.new(1,-201,0,448),'Out','Quint',2,true)
  652. elseif tb.Text == 'Close Controls' then
  653. frame:TweenPosition(UDim2.new(1,-208,1,0),'In','Quint',2,true)
  654. tb.Text = 'Open Controls'
  655. end
  656. end)
  657. --End

comments powered by Disqus