Advertisement
AgentVK

Ghost Lenny

Jul 26th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.74 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local Character = Player.Character
  3. local Head = Character.Head
  4. local Torso = Character.Torso
  5. local Right_Arm = Character["Right Arm"]
  6. local Right_Leg = Character["Right Leg"]
  7. local Left_Arm = Character["Left Arm"]
  8. local Left_Leg = Character["Left Leg"]
  9. local Humanoid = Character.Humanoid
  10. local Animation = "Idle"
  11. local Damage = 0
  12. local Mouse = Player:GetMouse()
  13. local LeftShoulder = Torso["Left Shoulder"]
  14. local Left_Hip = Torso["Left Hip"]
  15. local RightShoulder = Torso["Right Shoulder"]
  16. local Right_Hip = Torso["Right Hip"]
  17. local Root = Character.HumanoidRootPart
  18. local RootJoint = Root.RootJoint
  19. local Attacking = false
  20. local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
  21. local WakeMeUp = false
  22. local cf = CFrame.new
  23. local WalkForward = false
  24. local Effects = {}
  25. local Color = "White"
  26.  
  27. Necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. Necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. Right_Hip_C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  30. Left_Hip_C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  31.  
  32. Movemment = 1
  33. Walk = 0
  34.  
  35.  
  36. local Services = {
  37.  
  38. SoundService = game:GetService("SoundService");
  39. Players = game:GetService("Players");
  40. Debris = game:GetService("Debris");
  41. Workspace = game:GetService("Workspace");
  42. Lighting = game:GetService("Lighting");
  43. HttpService = game:GetService("HttpService");
  44. InsertService = game:GetService("InsertService");
  45.  
  46. }
  47.  
  48. MaxCooldown1 = 1
  49. MaxCooldown2 = 1
  50. MaxCooldown3 = 1
  51. MaxCooldown4 = 1
  52. MaxCooldownE = 1
  53.  
  54. Cooldown1 = MaxCooldown1
  55. Cooldown2 = MaxCooldown2
  56. Cooldown3 = MaxCooldown3
  57. Cooldown4 = MaxCooldown4
  58. CooldownE = MaxCooldownE
  59.  
  60. cf = CFrame.new
  61.  
  62. local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
  63. Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  64. Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  65. Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  66. Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  67.  
  68. Movemment = 1
  69. Walk = 0
  70.  
  71. Left_Shoulder = Instance.new("Weld", Torso)
  72. Left_Shoulder.Part0 = Torso
  73. Left_Shoulder.Part1 = Left_Arm
  74. Left_Shoulder.Name = "Left Shoulder"
  75. Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
  76.  
  77. Right_Shoulder = Instance.new("Weld", Torso)
  78. Right_Shoulder.Part0 = Torso
  79. Right_Shoulder.Part1 = Right_Arm
  80. Right_Shoulder.Name = "Right Shoulder"
  81. Right_Shoulder.C0 = CFrame.new(1.5,0,0)
  82. wait()
  83. LeftShoulder.Parent = nil
  84. RightShoulder.Parent = nil
  85.  
  86.  
  87. wait(0.1)
  88. local HealthBarGUI = Instance.new("ScreenGui", Player.PlayerGui)
  89. HealthBarGUI.Name = "HealthBarGUI"
  90.  
  91. local HealthBarP1 = Instance.new("Frame", HealthBarGUI)
  92. HealthBarP1.Name = "HealthBarPart1"
  93. HealthBarP1.Size = UDim2.new(0,300,0,40)
  94. HealthBarP1.Position = UDim2.new(0,350,0,550)
  95. HealthBarP1.Style = "RobloxRound"
  96.  
  97. local HealthBarP2 = Instance.new("Frame", HealthBarP1)
  98. HealthBarP2.Name = "HealthBarPart2"
  99. HealthBarP2.Size = UDim2.new(0,285,0,20)
  100. HealthBarP2.Position = UDim2.new(0,0,0,0)
  101.  
  102. local HealthBarText = Instance.new("TextLabel", HealthBarP1)
  103. HealthBarText.Name = "HealthBarText"
  104. HealthBarText.Size = UDim2.new(0,285,0,20)
  105. HealthBarText.Position = UDim2.new(0,0,0,0)
  106. HealthBarText.BackgroundColor3 = Color3.new(0,1,0)
  107. HealthBarText.TextScaled = true
  108. HealthBarText.Text = "Health"
  109. HealthBarText.TextTransparency = 0
  110. HealthBarText.TextStrokeTransparency = 0
  111. HealthBarText.BackgroundTransparency = 1
  112. HealthBarText.TextStrokeColor3 = Color3.new(1,1,1)
  113. HealthBarText.TextColor3 = Color3.new(0,0,0)
  114. HealthBarText.Font = "SciFi"
  115.  
  116. local CoolDownGUI = Instance.new("ScreenGui", Player.PlayerGui)
  117. CoolDownGUI.Name = "CoolDownGUI"
  118.  
  119. local CoolDowns = Instance.new("Frame", CoolDownGUI)
  120. CoolDowns.Name = "CoolDowns"
  121. CoolDowns.Size = UDim2.new(0,200,0,200)
  122. CoolDowns.Position = UDim2.new(0.81,0,0.68,0)
  123. CoolDowns.Style = "RobloxRound"
  124.  
  125. local CoolDown1Frame = Instance.new("Frame", CoolDowns)
  126. CoolDown1Frame.Name = "CoolDown1Frame"
  127. CoolDown1Frame.Size = UDim2.new(0,80,0,50)
  128. CoolDown1Frame.Position = UDim2.new(0,0,0,0)
  129. CoolDown1Frame.BackgroundTransparency = 0.5
  130. CoolDown1Frame.BackgroundColor3 = BrickColor.White().Color
  131.  
  132. local CoolDown1Bar = Instance.new("Frame", CoolDown1Frame)
  133. CoolDown1Bar.Name = "CoolDown1Bar"
  134. CoolDown1Bar.Size = UDim2.new(0,80,0,50)
  135. CoolDown1Bar.Position = UDim2.new(0,0,0,0)
  136. CoolDown1Bar.BackgroundColor3 = BrickColor.White().Color
  137.  
  138. local CoolDown1Text = Instance.new("TextLabel", CoolDown1Frame)
  139. CoolDown1Text.Name = "CoolDown1Text"
  140. CoolDown1Text.Size = UDim2.new(0,80,0,50)
  141. CoolDown1Text.Position = UDim2.new(0,0,0,0)
  142. CoolDown1Text.BackgroundTransparency = 1
  143. CoolDown1Text.TextScaled = true
  144. CoolDown1Text.Text = "z - WAKE ME UP INSIDE"
  145. CoolDown1Text.TextStrokeTransparency = 0
  146. CoolDown1Text.TextStrokeColor3 = Color3.new(1,1,1)
  147. CoolDown1Text.TextColor3 = Color3.new(0,0,0)
  148. CoolDown1Text.Font = "SciFi"
  149.  
  150. local CoolDown2Frame = Instance.new("Frame", CoolDowns)
  151. CoolDown2Frame.Name = "CoolDown2Frame"
  152. CoolDown2Frame.Size = UDim2.new(0,80,0,50)
  153. CoolDown2Frame.Position = UDim2.new(0.55,0,0,0)
  154. CoolDown2Frame.BackgroundTransparency = 0.5
  155. CoolDown2Frame.BackgroundColor3 = BrickColor.White().Color
  156.  
  157. local CoolDown2Bar = Instance.new("Frame", CoolDown2Frame)
  158. CoolDown2Bar.Name = "CoolDown2Bar"
  159. CoolDown2Bar.Size = UDim2.new(0,80,0,50)
  160. CoolDown2Bar.Position = UDim2.new(0,0,0,0)
  161. CoolDown2Bar.BackgroundColor3 = BrickColor.White().Color
  162.  
  163. local CoolDown2Text = Instance.new("TextLabel", CoolDown2Frame)
  164. CoolDown2Text.Name = "CoolDown2Text"
  165. CoolDown2Text.Size = UDim2.new(0,80,0,50)
  166. CoolDown2Text.Position = UDim2.new(0,0,0,0)
  167. CoolDown2Text.BackgroundTransparency = 1
  168. CoolDown2Text.TextScaled = true
  169. CoolDown2Text.Text = "x - meme launch"
  170. CoolDown2Text.TextStrokeTransparency = 0
  171. CoolDown2Text.TextStrokeColor3 = Color3.new(1,1,1)
  172. CoolDown2Text.TextColor3 = Color3.new(0,0,0)
  173. CoolDown2Text.Font = "SciFi"
  174.  
  175. local CoolDown3Frame = Instance.new("Frame", CoolDowns)
  176. CoolDown3Frame.Name = "CoolDown3Frame"
  177. CoolDown3Frame.Size = UDim2.new(0,80,0,50)
  178. CoolDown3Frame.Position = UDim2.new(0,0,0.4,0)
  179. CoolDown3Frame.BackgroundTransparency = 0.5
  180. CoolDown3Frame.BackgroundColor3 = BrickColor.White().Color
  181.  
  182. local CoolDown3Bar = Instance.new("Frame", CoolDown3Frame)
  183. CoolDown3Bar.Name = "CoolDown3Bar"
  184. CoolDown3Bar.Size = UDim2.new(0,80,0,50)
  185. CoolDown3Bar.Position = UDim2.new(0,0,0,0)
  186. CoolDown3Bar.BackgroundColor3 = BrickColor.White().Color
  187.  
  188. local CoolDown3Text = Instance.new("TextLabel", CoolDown3Frame)
  189. CoolDown3Text.Name = "CoolDown3Text"
  190. CoolDown3Text.Size = UDim2.new(0,80,0,50)
  191. CoolDown3Text.Position = UDim2.new(0,0,0,0)
  192. CoolDown3Text.BackgroundTransparency = 1
  193. CoolDown3Text.TextScaled = true
  194. CoolDown3Text.Text = "c - and his name is..."
  195. CoolDown3Text.TextStrokeTransparency = 0
  196. CoolDown3Text.TextStrokeColor3 = Color3.new(1,1,1)
  197. CoolDown3Text.TextColor3 = Color3.new(0,0,0)
  198. CoolDown3Text.Font = "SciFi"
  199.  
  200.  
  201. local CoolDown4Frame = Instance.new("Frame", CoolDowns)
  202. CoolDown4Frame.Name = "CoolDown4Frame"
  203. CoolDown4Frame.Size = UDim2.new(0,80,0,50)
  204. CoolDown4Frame.Position = UDim2.new(0.55,0,0.4,0)
  205. CoolDown4Frame.BackgroundTransparency = 0.5
  206. CoolDown4Frame.BackgroundColor3 = BrickColor.White().Color
  207.  
  208. local CoolDown4Bar = Instance.new("Frame", CoolDown4Frame)
  209. CoolDown4Bar.Name = "CoolDown4Bar"
  210. CoolDown4Bar.Size = UDim2.new(0,80,0,50)
  211. CoolDown4Bar.Position = UDim2.new(0,0,0,0)
  212. CoolDown4Bar.BackgroundColor3 = BrickColor.White().Color
  213.  
  214. local CoolDown4Text = Instance.new("TextLabel", CoolDown4Frame)
  215. CoolDown4Text.Name = "CoolDown4Text"
  216. CoolDown4Text.Size = UDim2.new(0,80,0,50)
  217. CoolDown4Text.Position = UDim2.new(0,0,0,0)
  218. CoolDown4Text.BackgroundTransparency = 1
  219. CoolDown4Text.TextScaled = true
  220. CoolDown4Text.Text = "v - allahuekber"
  221. CoolDown4Text.TextStrokeTransparency = 0
  222. CoolDown4Text.TextStrokeColor3 = Color3.new(1,1,1)
  223. CoolDown4Text.TextColor3 = Color3.new(0,0,0)
  224. CoolDown4Text.Font = "SciFi"
  225.  
  226. local CoolDownEFrame = Instance.new("Frame", CoolDowns)
  227. CoolDownEFrame.Name = "CoolDownEFrame"
  228. CoolDownEFrame.Size = UDim2.new(0,180,0,50)
  229. CoolDownEFrame.Position = UDim2.new(0,0,0.74,0)
  230. CoolDownEFrame.BackgroundTransparency = 0.5
  231. CoolDownEFrame.BackgroundColor3 = BrickColor.White().Color
  232.  
  233. local CoolDownEBar = Instance.new("Frame", CoolDownEFrame)
  234. CoolDownEBar.Name = "CoolDownEBar"
  235. CoolDownEBar.Size = UDim2.new(0,180,0,50)
  236. CoolDownEBar.Position = UDim2.new(0,0,0,0)
  237. CoolDownEBar.BackgroundColor3 = BrickColor.White().Color
  238.  
  239. local CoolDownEText = Instance.new("TextLabel", CoolDownEFrame)
  240. CoolDownEText.Name = "CoolDownEText"
  241. CoolDownEText.Size = UDim2.new(0,180,0,50)
  242. CoolDownEText.Position = UDim2.new(0,0,0,0)
  243. CoolDownEText.BackgroundTransparency = 1
  244. CoolDownEText.TextScaled = true
  245. CoolDownEText.Text = "e - aaaa"
  246. CoolDownEText.TextStrokeTransparency = 0
  247. CoolDownEText.TextStrokeColor3 = Color3.new(1,1,1)
  248. CoolDownEText.TextColor3 = Color3.new(0,0,0)
  249. CoolDownEText.Font = "SciFi"
  250.  
  251. --[[ transformixu ]]--
  252.  
  253. Head.face.Texture = "http://www.roblox.com/asset/?id=176699876"
  254.  
  255. for i,v in pairs(Character:children()) do
  256.  
  257. if v:IsA("Hat") then
  258.  
  259. v:Remove()
  260.  
  261. end
  262.  
  263. end
  264.  
  265.  
  266. --[[ perts andi effictiz fucktions ]]--
  267.  
  268. function NoOutlines(Part)
  269. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  270. end
  271.  
  272. local CreateVelocity = function(Parent,Velocity,Force)
  273.  
  274. local BodyVelocity = Instance.new("BodyVelocity", Parent)
  275. BodyVelocity.Velocity = Velocity
  276. BodyVelocity.MaxForce = Force
  277.  
  278.  
  279.  
  280. return BodyVelocity
  281.  
  282. end
  283.  
  284. local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
  285.  
  286. local Part = Instance.new("Part", Parent)
  287. Part.Name = Name
  288. Part.BrickColor = BrickColor.new(Color)
  289. Part.Size = Size
  290. Part.Material = Material
  291. Part.Transparency = Transparency
  292. Part.Shape = Shape
  293. Part.CanCollide = false
  294. NoOutlines(Part)
  295.  
  296. return Part
  297.  
  298. end
  299.  
  300. local MakeSFX = function(Parent, Id, Volume, Pitch)
  301.  
  302. local SFX = Instance.new("Sound", Parent)
  303. SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
  304. SFX.Name = "SFX"
  305. SFX:Play()
  306. SFX.Volume = Volume
  307. SFX.Pitch = Pitch
  308. SFX.PlayOnRemove = true
  309. SFX:Remove()
  310.  
  311. end
  312.  
  313.  
  314. CircleEffect = function(Position, Parent, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  315.  
  316. local Part = Instance.new("Part", Parent)
  317. Part.Transparency = Transparency
  318. Part.Name = "CircleEffect"
  319. Part.Size = Vector3.new()
  320. Part.Anchored = true
  321. Part.CanCollide = false
  322. Part.Position = Position
  323. Part.BrickColor = BrickColor.new(Brickcolor)
  324. Part.Material = Material
  325. NoOutlines(Part)
  326.  
  327. local Mesh = Instance.new("SpecialMesh", Part)
  328. Mesh.MeshType = "Sphere"
  329. Mesh.Scale = Vector3.new(0,0,0)
  330.  
  331. Services.Debris:AddItem(Part, Time)
  332.  
  333.  
  334. table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
  335.  
  336.  
  337. end
  338.  
  339. BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  340.  
  341. local Part = Instance.new("Part", Parent)
  342. Part.Transparency = Transparency
  343. Part.Name = "BlockEffect"
  344. Part.Size = Vector3.new()
  345. Part.Anchored = true
  346. Part.Position = Position
  347. Part.CanCollide = false
  348. Part.BrickColor = BrickColor.new(Brickcolor)
  349. Part.Material = Material
  350. NoOutlines(Part)
  351.  
  352. local Mesh = Instance.new("BlockMesh", Part)
  353. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  354.  
  355. Services.Debris:AddItem(Part, Time)
  356.  
  357. table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
  358.  
  359.  
  360. end
  361.  
  362. --[[ customiz ]]--
  363.  
  364.  
  365. if Player:FindFirstChild("Custom") and Player.Custom.Customized.Value == true then
  366.  
  367. CoolDown1Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
  368. CoolDown2Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
  369. CoolDown3Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
  370. CoolDown4Bar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
  371. CoolDownEBar.BackgroundColor3 = BrickColor.new(Player.Custom.Co1.Value).Color
  372. Color = Player.Custom.Co1.Value
  373.  
  374. end
  375.  
  376.  
  377. --[[ soumdiz ]]--
  378.  
  379. WakeMeUpInside = Instance.new("Sound", Character)
  380. WakeMeUpInside.SoundId = "http://www.roblox.com/asset?id=326429386"
  381. WakeMeUpInside.Name = "WAKE ME UP INSIDE!111!"
  382. WakeMeUpInside.Looped = true
  383.  
  384. Sad = Instance.new("Sound", Character)
  385. Sad.SoundId = "http://www.roblox.com/asset?id=254352182"
  386. Sad.Name = "Sad"
  387. Sad.Looped = true
  388.  
  389. JOHNCENAh = Instance.new("Sound", Character)
  390. JOHNCENAh.SoundId = "http://www.roblox.com/asset?id=272322032"
  391. JOHNCENAh.Name = "JOHNCENAh"
  392.  
  393.  
  394.  
  395. --[[ crerp decaratius ]] --
  396. function clerp(a,b,t)
  397. local qa = {QuaternionFromCFrame(a)}
  398. local qb = {QuaternionFromCFrame(b)}
  399. local ax, ay, az = a.x, a.y, a.z
  400. local bx, by, bz = b.x, b.y, b.z
  401. local _t = 1-t
  402. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  403. end
  404.  
  405. function QuaternionFromCFrame(cf)
  406. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  407. local trace = m00 + m11 + m22
  408. if trace > 0 then
  409. local s = math.sqrt(1 + trace)
  410. local recip = 0.5/s
  411. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  412. else
  413. local i = 0
  414. if m11 > m00 then
  415. i = 1
  416. end
  417. if m22 > (i == 0 and m00 or m11) then
  418. i = 2
  419. end
  420. if i == 0 then
  421. local s = math.sqrt(m00-m11-m22+1)
  422. local recip = 0.5/s
  423. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  424. elseif i == 1 then
  425. local s = math.sqrt(m11-m22-m00+1)
  426. local recip = 0.5/s
  427. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  428. elseif i == 2 then
  429. local s = math.sqrt(m22-m00-m11+1)
  430. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  431. end
  432. end
  433. end
  434.  
  435. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  436. local xs, ys, zs = x + x, y + y, z + z
  437. local wx, wy, wz = w*xs, w*ys, w*zs
  438. local xx = x*xs
  439. local xy = x*ys
  440. local xz = x*zs
  441. local yy = y*ys
  442. local yz = y*zs
  443. local zz = z*zs
  444. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  445. end
  446.  
  447. function QuaternionSlerp(a, b, t)
  448. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  449. local startInterp, finishInterp;
  450. if cosTheta >= 0.0001 then
  451. if (1 - cosTheta) > 0.0001 then
  452. local theta = math.acos(cosTheta)
  453. local invSinTheta = 1/math.sin(theta)
  454. startInterp = math.sin((1-t)*theta)*invSinTheta
  455. finishInterp = math.sin(t*theta)*invSinTheta
  456. else
  457. startInterp = 1-t
  458. finishInterp = t
  459. end
  460. else
  461. if (1+cosTheta) > 0.0001 then
  462. local theta = math.acos(-cosTheta)
  463. local invSinTheta = 1/math.sin(theta)
  464. startInterp = math.sin((t-1)*theta)*invSinTheta
  465. finishInterp = math.sin(t*theta)*invSinTheta
  466. else
  467. startInterp = t-1
  468. finishInterp = t
  469. end
  470. end
  471. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  472. end
  473.  
  474. function RayCast(Pos, Dir, Max, Ignore)
  475. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  476. end
  477.  
  478. --[[ debeigi fucktion ]]--
  479.  
  480.  
  481.  
  482. function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  483.  
  484. local HitHumanoid = Hit.Parent.Humanoid
  485.  
  486.  
  487. local Damage = math.random(Min, Max)
  488.  
  489.  
  490. coroutine.resume(coroutine.create(function()
  491. HitHumanoid:TakeDamage(Damage)
  492. end))
  493.  
  494. if Type == "Normal" then
  495.  
  496. local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  497. Services.Debris:AddItem(Push, 0)
  498. DamageLabel(Hit.Parent, Damage)
  499.  
  500. elseif Type == "Ranged" then
  501. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  502. Services.Debris:AddItem(Push, 0)
  503. DamageLabel(Hit.Parent, Damage)
  504.  
  505. elseif Type == "Knockdown" then
  506.  
  507.  
  508. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  509. DamageLabel(Hit.Parent, Damage)
  510. Services.Debris:AddItem(Push, 0.3)
  511.  
  512. coroutine.resume(coroutine.create(function()
  513.  
  514. HitHumanoid.PlatformStand = true
  515. wait(1)
  516. HitHumanoid.PlatformStand = false
  517.  
  518.  
  519. end))
  520. end
  521.  
  522. if HitSFX == "Penetration" then
  523.  
  524. MakeSFX(Hit, 199149269, 1 , 1)
  525.  
  526. elseif HitSFX == "Punch" then
  527.  
  528. MakeSFX(Hit, 278062209, 1 , 1)
  529.  
  530.  
  531.  
  532.  
  533. end
  534. end
  535.  
  536. function DamageLabel(HitCharacter, DamageDealt)
  537.  
  538. local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
  539. DamageShowingPart.Position = HitCharacter.Head.Position
  540.  
  541. local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
  542. DamageGui.Name = "Damage"
  543. DamageGui.AlwaysOnTop = true
  544. DamageGui.Size = UDim2.new(5, 0, 5, 0)
  545.  
  546. local DamageNumber = Instance.new("TextLabel", DamageGui)
  547. DamageNumber.Size = UDim2.new(1,0,1,0)
  548. DamageNumber.TextStrokeColor3 = BrickColor.White().Color
  549. DamageNumber.TextColor3 = BrickColor.Black().Color
  550. DamageNumber.TextStrokeTransparency = 0
  551. DamageNumber.BackgroundTransparency = 1
  552. DamageNumber.Font = "SciFi"
  553. DamageNumber.TextScaled = true
  554. DamageNumber.Text = DamageDealt
  555.  
  556. local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
  557. BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  558. BodyVelocity.Velocity = Vector3.new(0,2,0)
  559.  
  560. Services.Debris:AddItem(DamageShowingPart, 3)
  561.  
  562.  
  563. end
  564. function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
  565. for _,WorkspaceChildren in pairs(workspace:children()) do
  566.  
  567. local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
  568.  
  569. if HitHumanoid ~= nil then
  570. local Hit = WorkspaceChildren:findFirstChild("Torso")
  571.  
  572. if Hit ~= nil then
  573.  
  574. local Target = Hit.Position - Part.Position
  575.  
  576. local Magnitude = Target.magnitude
  577.  
  578. if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
  579.  
  580. local HitBlock = Hit.Parent:FindFirstChild("Block")
  581.  
  582. if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
  583.  
  584. local HitBlock2 = Hit.Parent.Block.BlockDurability
  585.  
  586. if HitBlock2.Value > 15 then
  587.  
  588. local HitN = math.random(1,5)
  589.  
  590. HitBlock2.Value = HitBlock2.Value - 15
  591.  
  592.  
  593. if HitN == 1 then
  594. MakeSFX(Hit ,199148971, 0.5, 1)
  595. end
  596.  
  597. if HitN == 2 then
  598. MakeSFX(Hit ,199149025, 0.5, 1)
  599. end
  600.  
  601. if HitN == 3 then
  602. MakeSFX(Hit ,199149072, 0.5, 1)
  603. end
  604.  
  605. if HitN == 4 then
  606. MakeSFX(Hit ,199149109, 0.5, 1)
  607. end
  608.  
  609. if HitN == 5 then
  610. MakeSFX(Hit ,199149119, 0.5, 1)
  611. end
  612. return
  613. end
  614. end
  615.  
  616. DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  617.  
  618.  
  619.  
  620. end
  621. end
  622. end
  623. end
  624. end
  625.  
  626.  
  627. function Bars()
  628.  
  629. --[[ Cooldowns Bars ]]--
  630.  
  631. if Cooldown1 ~= MaxCooldown1 then
  632.  
  633. Cooldown1 = Cooldown1 + 1
  634.  
  635. end
  636.  
  637. if Cooldown1 >= MaxCooldown1 then
  638.  
  639. Cooldown1 = MaxCooldown1
  640.  
  641. end
  642.  
  643.  
  644.  
  645. if Cooldown2 ~= MaxCooldown2 then
  646.  
  647. Cooldown2 = Cooldown2 + 0.1
  648. end
  649.  
  650.  
  651. if Cooldown2 >= MaxCooldown2 then
  652.  
  653. Cooldown2 = MaxCooldown2
  654.  
  655. end
  656.  
  657.  
  658.  
  659. if Cooldown3 ~= MaxCooldown3 then
  660. Cooldown3 = Cooldown3 + 0.1
  661. end
  662.  
  663. if Cooldown3 >= MaxCooldown3 then
  664.  
  665. Cooldown3 = MaxCooldown3
  666.  
  667. end
  668.  
  669.  
  670.  
  671. if Cooldown4 ~= MaxCooldown4 then
  672. Cooldown4 = Cooldown4 + 0.1
  673. end
  674.  
  675. if Cooldown4 >= MaxCooldown4 then
  676.  
  677. Cooldown4 = MaxCooldown4
  678.  
  679. end
  680.  
  681.  
  682.  
  683. if CooldownE ~= MaxCooldownE then
  684. CooldownE = CooldownE + 0.1
  685. end
  686.  
  687. if CooldownE >= MaxCooldownE then
  688.  
  689. CooldownE = MaxCooldownE
  690.  
  691. end
  692.  
  693. --[[ Health Bar ]]--
  694.  
  695. local YellowZone = Humanoid.MaxHealth / 2
  696. local RedZone = Humanoid.MaxHealth / 4
  697.  
  698. if Humanoid.Health <= YellowZone then
  699.  
  700. HealthBarP2.BackgroundColor3 = BrickColor.new("Gold").Color
  701.  
  702. end
  703.  
  704. if Humanoid.Health <= RedZone then
  705.  
  706. HealthBarP2.BackgroundColor3 = BrickColor.new("Bright red").Color
  707.  
  708. end
  709.  
  710. if Humanoid.Health >= YellowZone then
  711.  
  712. HealthBarP2.BackgroundColor3 = BrickColor.new("Lime green").Color
  713.  
  714. end
  715.  
  716.  
  717. --[[ Resize All Bars ]]--
  718.  
  719.  
  720. CoolDown1Bar.Size = UDim2.new(Cooldown1 / MaxCooldown1,0,0,50)
  721. CoolDown2Bar.Size = UDim2.new(Cooldown2 / MaxCooldown2,0,0,50)
  722. CoolDown3Bar.Size = UDim2.new(Cooldown3 / MaxCooldown3,0,0,50)
  723. CoolDown4Bar.Size = UDim2.new(Cooldown4 / MaxCooldown4,0,0,50)
  724. CoolDownEBar.Size = UDim2.new(CooldownE / MaxCooldownE,0,0,50)
  725. HealthBarP2.Size = UDim2.new(Humanoid.Health / Humanoid.MaxHealth,0,0,25)
  726.  
  727. end
  728.  
  729. --[[ attakis ]]--
  730.  
  731. function WAKEMEUPINSIDE()
  732.  
  733. for i = 1,3 do
  734. wait()
  735. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(3,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  736. Torso.Neck.C0 = clerp(Torso.Neck.C0,cf(10,20,3) * CFrame.Angles(-0.5,0,0),0.3)
  737. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(3, 10, 0) * CFrame.Angles(-0.23,0.5,0.2), 0.3)
  738. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(3, 0.1, 0) * CFrame.Angles(0.3,0.2,2), 0.3)
  739. Right_Hip.C0=clerp(Right_Hip.C0,cf(3,-2,9)*CFrame.Angles(2,1.6,-0.2),0.2)
  740. Left_Hip.C0=clerp(Left_Hip.C0,cf(-0,-0,5)*CFrame.Angles(5,-1.6,0.2),0.2)
  741. end
  742.  
  743. ValidateDamage(Torso, 20, 1, 5, "Normal", "Punch", 50)
  744.  
  745. for i = 1,3 do
  746. wait()
  747. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(3,30,0)* CFrame.Angles(-0.3452,0,0),0.2)
  748. Torso.Neck.C0 = clerp(Torso.Neck.C0,cf(12,56,5) * CFrame.Angles(-0.5,0,30),0.3)
  749. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(10, 30, 5) * CFrame.Angles(-0.23,0.5,0.2), 0.3)
  750. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(34, 1, 32) * CFrame.Angles(0.3,0.2,22), 0.3)
  751. Right_Hip.C0=clerp(Right_Hip.C0,cf(5,-3,3)*CFrame.Angles(2,1.6,-0.342),0.2)
  752. Left_Hip.C0=clerp(Left_Hip.C0,cf(-53,-0,25)*CFrame.Angles(5,-41.6,0.52),0.2)
  753. end
  754. ValidateDamage(Torso, 50, 1, 5, "Normal", "Punch", 50)
  755.  
  756. for i = 1,3 do
  757. wait()
  758. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(-3,-30,0)* CFrame.Angles(0.3452,-0,-0),0.2)
  759. Torso.Neck.C0 = clerp(Torso.Neck.C0,cf(-12,-56,5) * CFrame.Angles(0.5,-0,-30),0.3)
  760. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(-10, -30, -5) * CFrame.Angles(0.23,-0.5,-0.2), 0.3)
  761. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-34, -1, -32) * CFrame.Angles(-0.3,-0.2,-22), 0.3)
  762. Right_Hip.C0=clerp(Right_Hip.C0,cf(-5,3,-3)*CFrame.Angles(-2,-1.6,0.342),0.2)
  763. Left_Hip.C0=clerp(Left_Hip.C0,cf(53,0,-25)*CFrame.Angles(-5,41.6,-0.52),0.2)
  764. end
  765. ValidateDamage(Torso, 50, 1, 5, "Normal", "Punch", 50)
  766.  
  767. end
  768.  
  769. function MemeLaunch()
  770.  
  771. memis = {294841732,474498947,474494834,519973850,291736664,513363123,94349155,379915109,331385631,387197836,304460548,196819764}
  772.  
  773. local meme = Instance.new("Part",game.Workspace)
  774. meme.Anchored = true
  775. meme.Position = Torso.Position + Vector3.new(0,5,0)
  776. meme.Rotation = Torso.Rotation + Vector3.new(0,-1,0)
  777. meme.Size = Vector3.new(5, 5, 0.2)
  778. meme.Transparency = 1
  779.  
  780.  
  781. meme.Touched:connect(function(hit)
  782.  
  783.  
  784. ValidateDamage(meme, 10, 1, 1, "Knockdown", "Punch", 130)
  785.  
  786.  
  787. end)
  788.  
  789.  
  790. game:GetService("Debris"):AddItem(meme, 30)
  791.  
  792. local memedecal = Instance.new("Decal", meme)
  793. memedecal.Texture = "http://www.roblox.com/asset?id=" .. memis[math.random(1, #memis)]
  794.  
  795.  
  796. local memedecal2 = memedecal:Clone()
  797. memedecal2.Parent = meme
  798. memedecal2.Face = "Back"
  799.  
  800.  
  801.  
  802. for i = 1,30 do
  803.  
  804. wait()
  805.  
  806.  
  807. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  808. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  809. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.1), 0.3)
  810. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.1), 0.3)
  811. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
  812. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
  813.  
  814.  
  815. end
  816.  
  817. meme.Anchored = false
  818.  
  819. meme.CFrame = CFrame.new(meme.Position, Mouse.Hit.p)
  820. local memevilocity = CreateVelocity(meme,meme.CFrame.lookVector * 250,Vector3.new(math.huge,math.huge,math.huge))
  821.  
  822.  
  823. for i = 1,30 do
  824.  
  825. wait()
  826.  
  827. ValidateDamage(meme, 1, 1, 33, "Knockdown", "Punch", 5)
  828.  
  829. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(0.8,0,0),0.2)
  830. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  831. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.1), 0.3)
  832. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.1), 0.3)
  833. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,0.8),0.2)
  834. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,-0.8),0.2)
  835.  
  836.  
  837. end
  838.  
  839. Attacking = false
  840. end
  841.  
  842. function JOHNCENA()
  843.  
  844. JOHNCENAh:Play()
  845.  
  846. Humanoid.WalkSpeed = 0
  847. Humanoid.JumpPower = 0
  848.  
  849.  
  850. for i = 1,60 do
  851.  
  852. wait()
  853. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,10)* CFrame.Angles(1.6,1.6,1.6),0.8)
  854. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,-1),0.3)
  855. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,-0.5), 0.3)
  856. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,0.3), 0.3)
  857. Right_Hip.C0=clerp(Right_Hip.C0,cf(0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
  858. Left_Hip.C0=clerp(Left_Hip.C0,cf(-0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
  859.  
  860.  
  861. end
  862.  
  863. for i = 1,6 do
  864.  
  865. wait()
  866. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,-2)* CFrame.Angles(1.6,1.6,1.6),0.8)
  867. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,-1),0.3)
  868. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,-0.5), 0.3)
  869. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.3, 0.5, -0.5) * CFrame.Angles(1.6,0,0.3), 0.3)
  870. Right_Hip.C0=clerp(Right_Hip.C0,cf(0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
  871. Left_Hip.C0=clerp(Left_Hip.C0,cf(-0.5,-1,0.5)*CFrame.Angles(0,0,0),0.2)
  872.  
  873.  
  874. end
  875.  
  876. local Explosion = Instance.new("Explosion")
  877. Explosion.Parent = game.workspace.Terrain
  878. Explosion.Position = Right_Arm.Position
  879. Explosion.Name = "Boom!"
  880. Explosion.BlastRadius = 0
  881. Explosion.BlastPressure = 0
  882. Explosion.DestroyJointRadiusPercent = 0
  883. Explosion.ExplosionType = "NoCraters"
  884.  
  885. local dmgreference = Instance.new("Part", Services.Workspace)
  886. dmgreference.CFrame = Torso.CFrame
  887. dmgreference.Transparency = 1
  888. dmgreference.Size = Vector3.new()
  889. dmgreference.CanCollide = false
  890.  
  891.  
  892.  
  893. ValidateDamage(dmgreference, 1000, 10, 20, "Knockdown", "Penetration", 100)
  894.  
  895. Humanoid.WalkSpeed = 16
  896. Humanoid.JumpPower = 50
  897.  
  898. Attacking = false
  899.  
  900.  
  901. end
  902.  
  903. function allahuekber()
  904. Attacking = true
  905.  
  906. Sad:Remove()
  907. MakeSFX(Character,433848566, 1, 1)
  908.  
  909. Humanoid.WalkSpeed = 0
  910. Humanoid.JumpPower = 0
  911. wait(5)
  912. MakeSFX(Character, 134854740, 1 , 0.4)
  913. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  914. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  915. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  916. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  917. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  918. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  919. BlockEffect(Torso.Position, Services.Workspace, 1,1,1, 10,10,10, 5, Color, "Neon", 0.5)
  920. ValidateDamage(Torso, 1000, 77, 89, "Knockdown", "Penetration", 0)
  921. wait(5)
  922. Character:BreakJoints()
  923.  
  924. end
  925.  
  926. Mouse.KeyDown:connect(function(kei)
  927. if not Attacking then
  928.  
  929. if kei == "z" then
  930.  
  931.  
  932. WakeMeUp = true
  933.  
  934. if JOHNCENAh.IsPlaying == false then
  935. WakeMeUpInside:Resume()
  936. end
  937.  
  938. while WakeMeUp do
  939. WakeMeUp = true
  940. Attacking = true
  941. WAKEMEUPINSIDE()
  942. end
  943.  
  944.  
  945. end
  946. if kei == "x" then
  947.  
  948. Attacking = true
  949.  
  950.  
  951. MemeLaunch()
  952.  
  953.  
  954. end
  955.  
  956. if kei == "c" and JOHNCENAh.IsPlaying == false then
  957.  
  958. Attacking = true
  959.  
  960.  
  961. JOHNCENA()
  962.  
  963. end
  964.  
  965. if kei == "v" then
  966.  
  967. allahuekber()
  968.  
  969. end
  970. end
  971. end)
  972.  
  973. Mouse.KeyUp:connect(function(kei)
  974.  
  975.  
  976. if kei == "z" and WakeMeUp then
  977. Attacking = false
  978. WakeMeUp = false
  979. WakeMeUpInside:Pause()
  980.  
  981.  
  982. end
  983.  
  984. end)
  985.  
  986. Humanoid.Died:connect(function ()
  987.  
  988. Sad:Play()
  989.  
  990. end)
  991.  
  992. --[[ crerp animaxius ]]--
  993. while true do
  994.  
  995. wait()
  996.  
  997. Bars()
  998.  
  999. local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
  1000. local Velderp = Root.Velocity.y
  1001. HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1002.  
  1003. if Torvel < 1 and HitFloor ~= nil and Attacking == false then
  1004. Anim = "Idle"
  1005.  
  1006. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  1007. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  1008. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  1009. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3)
  1010. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
  1011. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
  1012.  
  1013. end
  1014.  
  1015.  
  1016. if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
  1017. Anim = "Walking"
  1018. WalkForward = true
  1019. Walk = Walk + 1
  1020. if 15 - 5 * Movemment <= Walk then
  1021. Walk = 0
  1022. if WalkForward == true then
  1023. WalkForward = false
  1024. else
  1025. if WalkForward == false then
  1026. WalkForward = true
  1027. end
  1028. end
  1029. end
  1030.  
  1031. if Attacking == false then
  1032. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  1033. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  1034. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 0.5, 0.6) * CFrame.Angles(-1.6,0,0.2), 0.3)
  1035. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 0.5, 0.6) * CFrame.Angles(-1.6,0,-0.2), 0.3)
  1036. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
  1037. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
  1038.  
  1039. end
  1040.  
  1041.  
  1042. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0) * CFrame.Angles(0,1.6,0),0.2)
  1043. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.2)
  1044. end
  1045.  
  1046. if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then
  1047. Anim = "Jump"
  1048.  
  1049. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  1050. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  1051. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.2), 0.3)
  1052. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.2), 0.3)
  1053. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
  1054. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
  1055.  
  1056.  
  1057. end
  1058.  
  1059. if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then
  1060. Anim = "Fall"
  1061.  
  1062. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*cf(0,0,0)* CFrame.Angles(-0.2,0,0),0.2)
  1063. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  1064. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, cf(1.5, 1, 0) * CFrame.Angles(0,0,-3.2), 0.3)
  1065. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, cf(-1.5, 1, 0) * CFrame.Angles(0,0,3.2), 0.3)
  1066. Right_Hip.C0=clerp(Right_Hip.C0,cf(1,-1,0)*CFrame.Angles(0,1.6,-0.2),0.2)
  1067. Left_Hip.C0=clerp(Left_Hip.C0,cf(-1,-1,0)*CFrame.Angles(0,-1.6,0.2),0.2)
  1068.  
  1069. end
  1070.  
  1071. if #Effects > 0 then
  1072. for E = 1, #Effects do
  1073. if Effects[E]~=nil then
  1074. local Effect = Effects[E]
  1075.  
  1076. if Effect ~= nil then
  1077.  
  1078. local Part = Effect[1]
  1079. local Mode = Effect[2]
  1080. local Time = Effect[3]
  1081. local SizeX = Effect[4]
  1082. local SizeY = Effect[5]
  1083. local SizeZ = Effect[6]
  1084.  
  1085. if Effect[1].Transparency <= 1 then
  1086. if Effect[2] == "Block" then
  1087. Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1088.  
  1089. Mesh = Effect[1]:FindFirstChild("Mesh")
  1090. if Mesh ~= nil then
  1091. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  1092. end
  1093.  
  1094. elseif Effect[2] == "Circle" then
  1095.  
  1096. if Effect[1]:FindFirstChild("Mesh") ~= nil then
  1097. Mesh=Effect[1].Mesh
  1098. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  1099. end
  1100.  
  1101. else
  1102.  
  1103. Part.Parent=nil
  1104.  
  1105. table.remove(Effects, E)
  1106.  
  1107. end
  1108. end
  1109. end
  1110. end
  1111. end
  1112. end
  1113. end
  1114.  
  1115.  
  1116.  
  1117. local time = tick()
  1118.  
  1119. local plr = game:GetService("Players").LocalPlayer
  1120. local mouse,char = plr:GetMouse(),plr.Character
  1121.  
  1122. local amountGhosts = 5
  1123.  
  1124. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  1125.  
  1126. local toggle,cd,mcd = false,false,false
  1127. local ghosts = {}
  1128. local temptab = {}
  1129.  
  1130. char:WaitForChild("Animate"):Destroy()
  1131. char.Humanoid:WaitForChild("Animator"):Destroy()
  1132.  
  1133. local state = "idle"
  1134.  
  1135. local gt = false
  1136.  
  1137. local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit
  1138. gyro.MaxTorque = Vector3.new(0,0,0)
  1139. gyro.D = 0
  1140. gyro.P = 100000000
  1141.  
  1142.  
  1143. local wCol = BrickColor.new("Really red")
  1144. local wCol2 = BrickColor.new("Really black")
  1145. local gCol = BrickColor.new("Toothpaste")
  1146. local gCol2 = BrickColor.new("Institutional white")
  1147.  
  1148. function searchAll(m,clear)
  1149. if clear then
  1150. if clear == true then
  1151. for i,v in pairs(temptab) do
  1152. table.remove(temptab,1)
  1153. end
  1154. end
  1155. end
  1156. for i,v in pairs(m:GetChildren()) do
  1157. if v then
  1158. local s = v:Clone()
  1159. for _,b in pairs(s:GetChildren()) do
  1160. b:Destroy()
  1161. end
  1162. if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then
  1163. if s.Name ~= "HumanoidRootPart" then
  1164. s.Anchored = true
  1165. s.CanCollide = false
  1166. s.Transparency = 0.95
  1167. s.TopSurface = "Smooth"
  1168. s.BottomSurface = "Smooth"
  1169. s.FrontSurface = "Smooth"
  1170. s.RightSurface = "Smooth"
  1171. s.BackSurface = "Smooth"
  1172. s.LeftSurface = "Smooth"
  1173. if s.Material ~= Enum.Material.Neon then
  1174. if gt == true then
  1175. s.BrickColor = wCol2
  1176. else
  1177. s.BrickColor = gCol2
  1178. end
  1179. else
  1180. if gt == true then
  1181. s.BrickColor = wCol
  1182. else
  1183. s.BrickColor = gCol
  1184. end
  1185. end
  1186. for _,c in pairs(v:GetChildren()) do
  1187. if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then
  1188. c:Clone().Parent = s
  1189. end
  1190. end
  1191. local objValue = Instance.new("ObjectValue",s)
  1192. objValue.Name = "Target"
  1193. objValue.Value = v
  1194. table.insert(temptab,s)
  1195. end
  1196. --elseif s:IsA("CharacterMesh") then
  1197. --table.insert(temptab,s)
  1198. end
  1199. --searchAll(v)
  1200. end
  1201. end
  1202. return temptab
  1203. end
  1204.  
  1205. function CreateGhost()
  1206. local ghost = Instance.new("Model",game.Workspace)
  1207. searchAll(char,true)
  1208. ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name
  1209. --Instance.new("Humanoid",ghost)
  1210. for i,v in pairs(temptab) do
  1211. v:Clone().Parent = ghost
  1212. end
  1213. table.insert(ghosts,ghost)
  1214. end
  1215.  
  1216. function ClearGhosts()
  1217. for i,v in pairs(ghosts) do
  1218. v:Destroy()
  1219. end
  1220. for i,v in pairs(ghosts) do
  1221. table.remove(ghosts,1)
  1222. end
  1223. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  1224. if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then
  1225. v:Destroy()
  1226. end
  1227. end
  1228. end
  1229.  
  1230. Instance.new("ForceField",char).Visible = false
  1231.  
  1232. local e1 = Instance.new("Part",char)
  1233. e1.Size = Vector3.new(0.2,0.2,0.2)
  1234. e1.TopSurface = "Smooth"
  1235. e1.BottomSurface = "Smooth"
  1236. e1.Material = "Neon"
  1237. e1.Transparency = 1
  1238. e1.Anchored = true
  1239. e1.CanCollide = false
  1240. e1.BrickColor = gCol
  1241. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6)
  1242. local em1 = Instance.new("SpecialMesh",e1)
  1243. em1.MeshType = "Sphere"
  1244. local e2 = Instance.new("Part",char)
  1245. e2.Size = Vector3.new(0.2,0.2,0.2)
  1246. e2.TopSurface = "Smooth"
  1247. e2.BottomSurface = "Smooth"
  1248. e2.Transparency = 1
  1249. e2.Material = "Neon"
  1250. e2.Anchored = true
  1251. e2.CanCollide = false
  1252. e2.BrickColor = gCol
  1253. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6)
  1254. local em2 = Instance.new("SpecialMesh",e2)
  1255. em2.MeshType = "Sphere"
  1256.  
  1257. toggle = true
  1258. for i=1,amountGhosts do
  1259. CreateGhost()
  1260. end
  1261. char.Parent = game:GetService("Workspace").CurrentCamera
  1262. char:FindFirstChild("Head").Transparency = 1
  1263. char:FindFirstChild("Torso").Transparency = 1
  1264. char:FindFirstChild("Right Arm").Transparency = 1
  1265. char:FindFirstChild("Left Arm").Transparency = 1
  1266. char:FindFirstChild("Right Leg").Transparency = 1
  1267. char:FindFirstChild("Left Leg").Transparency = 1
  1268. for i,v in pairs(char:GetChildren()) do
  1269. if v:IsA("Accessory") then
  1270. v:FindFirstChild("Handle").Transparency = 1
  1271. end
  1272. end
  1273. char:FindFirstChild("Head"):FindFirstChild("face"):Destroy()
  1274.  
  1275. local p1 = Instance.new("Part",workspace)
  1276. local m1 = Instance.new("SpecialMesh",p1)
  1277. m1.MeshType = "Sphere"
  1278. m1.Scale = Vector3.new(5,5,5)
  1279. p1.Size = Vector3.new(1,1,1)
  1280. p1.Anchored = true
  1281. p1.CanCollide = false
  1282. p1.TopSurface = "Smooth"
  1283. p1.BottomSurface = "Smooth"
  1284. p1.BrickColor = gCol
  1285. p1.Material = "Neon"
  1286. local p2 = Instance.new("Part",workspace)
  1287. local m2 = Instance.new("SpecialMesh",p2)
  1288. m2.MeshType = "Sphere"
  1289. m2.Scale = Vector3.new(8,8,8)
  1290. p2.Size = Vector3.new(1,1,1)
  1291. p2.Anchored = true
  1292. p2.CanCollide = false
  1293. p2.TopSurface = "Smooth"
  1294. p2.BottomSurface = "Smooth"
  1295. p2.BrickColor = gCol2
  1296. p2.Material = "Neon"
  1297. local p3 = Instance.new("Part",workspace)
  1298. local m3 = Instance.new("BlockMesh",p3)
  1299. m3.Scale = Vector3.new(7,7,7)
  1300. p3.Size = Vector3.new(1,1,1)
  1301. p3.Transparency = 0.4
  1302. p3.Anchored = true
  1303. p3.CanCollide = false
  1304. p3.TopSurface = "Smooth"
  1305. p3.BottomSurface = "Smooth"
  1306. p3.BrickColor = gCol
  1307. p3.Material = "Neon"
  1308. local p4 = Instance.new("Part",workspace)
  1309. local m4 = Instance.new("BlockMesh",p4)
  1310. m4.Scale = Vector3.new(10,10,10)
  1311. p4.Size = Vector3.new(1,1,1)
  1312. p4.Transparency = 0.4
  1313. p4.Anchored = true
  1314. p4.CanCollide = false
  1315. p4.TopSurface = "Smooth"
  1316. p4.BottomSurface = "Smooth"
  1317. p4.BrickColor = gCol2
  1318. p4.Material = "Neon"
  1319. local currentframe = 0
  1320. local frmR
  1321.  
  1322. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1323. currentframe = currentframe + 1
  1324. if currentframe < 1*60 then
  1325. p1.CFrame = char:WaitForChild("Torso").CFrame
  1326. p2.CFrame = char:WaitForChild("Torso").CFrame
  1327. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1328. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1329. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  1330. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  1331. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  1332. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  1333. p1.Transparency = p1.Transparency + (1/(1*60))
  1334. p2.Transparency = p2.Transparency + (1/(1*60))
  1335. p3.Transparency = p3.Transparency + (1/(1*60))
  1336. p4.Transparency = p4.Transparency + (1/(1*60))
  1337. else
  1338. p1:Destroy()
  1339. p2:Destroy()
  1340. p3:Destroy()
  1341. p4:Destroy()
  1342. frmR:disconnect()
  1343. end
  1344. end)
  1345.  
  1346. char.Humanoid.MaxHealth = math.huge
  1347. wait()
  1348. char.Humanoid.Health = math.huge
  1349.  
  1350. --[[mouse.KeyDown:connect(function(key)
  1351. if key == "r" then
  1352. print("R!")
  1353. if cd == false then
  1354. print("No cooldown!")
  1355. cd = true
  1356. if toggle == false then
  1357. print("Entering godmode")
  1358. toggle = true
  1359. Instance.new("ForceField",char)
  1360. for i=1,amountGhosts do
  1361. CreateGhost()
  1362. end
  1363. char.Parent = game:GetService("Workspace").CurrentCamera
  1364. char:FindFirstChild("Head").Transparency = 1
  1365. char:FindFirstChild("Torso").Transparency = 1
  1366. char:FindFirstChild("Right Arm").Transparency = 1
  1367. char:FindFirstChild("Left Arm").Transparency = 1
  1368. char:FindFirstChild("Right Leg").Transparency = 1
  1369. char:FindFirstChild("Left Leg").Transparency = 1
  1370. for i,v in pairs(char:GetChildren()) do
  1371. if v:IsA("Accessory") then
  1372. v:FindFirstChild("Handle").Transparency = 1
  1373. end
  1374. end
  1375. else
  1376. print("Exiting godmode")
  1377. toggle = false
  1378. for i,v in pairs(ghosts) do
  1379. v:Destroy()
  1380. end
  1381. char.Parent = game:GetService("Workspace")
  1382. char:FindFirstChild("ForceField"):Destroy()
  1383. char:FindFirstChild("Head").Transparency = 0
  1384. char:FindFirstChild("Torso").Transparency = 0
  1385. char:FindFirstChild("Right Arm").Transparency = 0
  1386. char:FindFirstChild("Left Arm").Transparency = 0
  1387. char:FindFirstChild("Right Leg").Transparency = 0
  1388. char:FindFirstChild("Left Leg").Transparency = 0
  1389. for i,v in pairs(char:GetChildren()) do
  1390. if v:IsA("Accessory") then
  1391. v:FindFirstChild("Handle").Transparency = 0
  1392. end
  1393. end
  1394. end
  1395. cd = false
  1396. end
  1397. end
  1398. end)]]
  1399.  
  1400. mouse.KeyDown:connect(function(key)
  1401. spawn(function()
  1402. if key == "f" and toggle == true and mcd == false then
  1403. if #ghosts < amountGhosts then
  1404. print(#ghosts.."<")
  1405. mcd = true
  1406.  
  1407. ClearGhosts()
  1408.  
  1409. for i=1,amountGhosts do
  1410. CreateGhost()
  1411. end
  1412. local p1 = Instance.new("Part",workspace)
  1413. local m1 = Instance.new("SpecialMesh",p1)
  1414. m1.MeshType = "Sphere"
  1415. m1.Scale = Vector3.new(7,7,7)
  1416. p1.Size = Vector3.new(1,1,1)
  1417. p1.Anchored = true
  1418. p1.CanCollide = false
  1419. p1.TopSurface = "Smooth"
  1420. p1.BottomSurface = "Smooth"
  1421. if gt == false then
  1422. p1.BrickColor = gCol
  1423. else
  1424. p1.BrickColor = wCol
  1425. end
  1426. p1.Material = "Neon"
  1427. local p2 = Instance.new("Part",workspace)
  1428. local m2 = Instance.new("SpecialMesh",p2)
  1429. m2.MeshType = "Sphere"
  1430. m2.Scale = Vector3.new(9,9,9)
  1431. p2.Size = Vector3.new(1,1,1)
  1432. p2.Anchored = true
  1433. p2.CanCollide = false
  1434. p2.TopSurface = "Smooth"
  1435. p2.BottomSurface = "Smooth"
  1436. if gt == false then
  1437. p2.BrickColor = gCol2
  1438. else
  1439. p2.BrickColor = wCol2
  1440. end
  1441. p2.Material = "Neon"
  1442. local currentframe = 0
  1443. local frmR
  1444.  
  1445. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1446. currentframe = currentframe + 1
  1447. if currentframe < 0.25*60 then
  1448. p1.CFrame = char:WaitForChild("Torso").CFrame
  1449. p2.CFrame = char:WaitForChild("Torso").CFrame
  1450. p1.Transparency = p1.Transparency + (1/(0.25*60))
  1451. p2.Transparency = p2.Transparency + (1/(0.25*60))
  1452. else
  1453. p1:Destroy()
  1454. p2:Destroy()
  1455. mcd = false
  1456. frmR:disconnect()
  1457. end
  1458. end)
  1459. else
  1460. mcd = true
  1461.  
  1462. ClearGhosts()
  1463.  
  1464. local p1 = Instance.new("Part",workspace)
  1465. local m1 = Instance.new("SpecialMesh",p1)
  1466. m1.MeshType = "Sphere"
  1467. m1.Scale = Vector3.new(7,7,7)
  1468. p1.Size = Vector3.new(1,1,1)
  1469. p1.Anchored = true
  1470. p1.CanCollide = false
  1471. p1.TopSurface = "Smooth"
  1472. p1.BottomSurface = "Smooth"
  1473. if gt == false then
  1474. p1.BrickColor = gCol
  1475. else
  1476. p1.BrickColor = wCol
  1477. end
  1478. p1.Material = "Neon"
  1479. local p2 = Instance.new("Part",workspace)
  1480. local m2 = Instance.new("SpecialMesh",p2)
  1481. m2.MeshType = "Sphere"
  1482. m2.Scale = Vector3.new(9,9,9)
  1483. p2.Size = Vector3.new(1,1,1)
  1484. p2.Anchored = true
  1485. p2.CanCollide = false
  1486. p2.TopSurface = "Smooth"
  1487. p2.BottomSurface = "Smooth"
  1488. if gt == false then
  1489. p2.BrickColor = gCol2
  1490. else
  1491. p2.BrickColor = wCol2
  1492. end
  1493. p2.Material = "Neon"
  1494. local currentframe = 0
  1495. local frmR
  1496.  
  1497. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1498. currentframe = currentframe + 1
  1499. if currentframe < 0.25*60 then
  1500. p1.CFrame = char:WaitForChild("Torso").CFrame
  1501. p2.CFrame = char:WaitForChild("Torso").CFrame
  1502. p1.Transparency = p1.Transparency + (1/(0.25*60))
  1503. p2.Transparency = p2.Transparency + (1/(0.25*60))
  1504. else
  1505. p1:Destroy()
  1506. p2:Destroy()
  1507. mcd = false
  1508. frmR:disconnect()
  1509. end
  1510. end)
  1511. end
  1512. elseif key == "g" and toggle == true and mcd == false then
  1513. if gt == true then
  1514. gt = false
  1515. local p1 = Instance.new("Part",workspace)
  1516. local m1 = Instance.new("SpecialMesh",p1)
  1517. m1.MeshType = "Sphere"
  1518. m1.Scale = Vector3.new(5,5,5)
  1519. p1.Size = Vector3.new(1,1,1)
  1520. p1.Anchored = true
  1521. p1.CanCollide = false
  1522. p1.TopSurface = "Smooth"
  1523. p1.BottomSurface = "Smooth"
  1524. p1.BrickColor = gCol
  1525. p1.Material = "Neon"
  1526. local p2 = Instance.new("Part",workspace)
  1527. local m2 = Instance.new("SpecialMesh",p2)
  1528. m2.MeshType = "Sphere"
  1529. m2.Scale = Vector3.new(8,8,8)
  1530. p2.Size = Vector3.new(1,1,1)
  1531. p2.Anchored = true
  1532. p2.CanCollide = false
  1533. p2.TopSurface = "Smooth"
  1534. p2.BottomSurface = "Smooth"
  1535. p2.BrickColor = gCol2
  1536. p2.Material = "Neon"
  1537. local p3 = Instance.new("Part",workspace)
  1538. local m3 = Instance.new("BlockMesh",p3)
  1539. m3.Scale = Vector3.new(7,7,7)
  1540. p3.Size = Vector3.new(1,1,1)
  1541. p3.Transparency = 0.4
  1542. p3.Anchored = true
  1543. p3.CanCollide = false
  1544. p3.TopSurface = "Smooth"
  1545. p3.BottomSurface = "Smooth"
  1546. p3.BrickColor = gCol
  1547. p3.Material = "Neon"
  1548. local p4 = Instance.new("Part",workspace)
  1549. local m4 = Instance.new("BlockMesh",p4)
  1550. m4.Scale = Vector3.new(10,10,10)
  1551. p4.Size = Vector3.new(1,1,1)
  1552. p4.Transparency = 0.4
  1553. p4.Anchored = true
  1554. p4.CanCollide = false
  1555. p4.TopSurface = "Smooth"
  1556. p4.BottomSurface = "Smooth"
  1557. p4.BrickColor = gCol2
  1558. p4.Material = "Neon"
  1559.  
  1560. ClearGhosts()
  1561.  
  1562. for i=1,amountGhosts do
  1563. CreateGhost()
  1564. end
  1565.  
  1566. local currentframe = 0
  1567. local frmR
  1568.  
  1569. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1570. currentframe = currentframe + 1
  1571. if currentframe < 1*60 then
  1572. p1.CFrame = char:WaitForChild("Torso").CFrame
  1573. p2.CFrame = char:WaitForChild("Torso").CFrame
  1574. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1575. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1576. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  1577. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  1578. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  1579. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  1580. p1.Transparency = p1.Transparency + (1/(1*60))
  1581. p2.Transparency = p2.Transparency + (1/(1*60))
  1582. p3.Transparency = p3.Transparency + (1/(1*60))
  1583. p4.Transparency = p4.Transparency + (1/(1*60))
  1584. else
  1585. p1:Destroy()
  1586. p2:Destroy()
  1587. p3:Destroy()
  1588. p4:Destroy()
  1589. frmR:disconnect()
  1590. end
  1591. end)
  1592. else
  1593. gt = true
  1594. local p1 = Instance.new("Part",workspace)
  1595. local m1 = Instance.new("SpecialMesh",p1)
  1596. m1.MeshType = "Sphere"
  1597. m1.Scale = Vector3.new(5,5,5)
  1598. p1.Size = Vector3.new(1,1,1)
  1599. p1.Anchored = true
  1600. p1.CanCollide = false
  1601. p1.TopSurface = "Smooth"
  1602. p1.BottomSurface = "Smooth"
  1603. p1.BrickColor = wCol
  1604. p1.Material = "Neon"
  1605. local p2 = Instance.new("Part",workspace)
  1606. local m2 = Instance.new("SpecialMesh",p2)
  1607. m2.MeshType = "Sphere"
  1608. m2.Scale = Vector3.new(8,8,8)
  1609. p2.Size = Vector3.new(1,1,1)
  1610. p2.Anchored = true
  1611. p2.CanCollide = false
  1612. p2.TopSurface = "Smooth"
  1613. p2.BottomSurface = "Smooth"
  1614. p2.BrickColor = wCol2
  1615. p2.Material = "Neon"
  1616. local p3 = Instance.new("Part",workspace)
  1617. local m3 = Instance.new("BlockMesh",p3)
  1618. m3.Scale = Vector3.new(7,7,7)
  1619. p3.Size = Vector3.new(1,1,1)
  1620. p3.Transparency = 0.4
  1621. p3.Anchored = true
  1622. p3.CanCollide = false
  1623. p3.TopSurface = "Smooth"
  1624. p3.BottomSurface = "Smooth"
  1625. p3.BrickColor = wCol
  1626. p3.Material = "Neon"
  1627. local p4 = Instance.new("Part",workspace)
  1628. local m4 = Instance.new("BlockMesh",p4)
  1629. m4.Scale = Vector3.new(10,10,10)
  1630. p4.Size = Vector3.new(1,1,1)
  1631. p4.Transparency = 0.4
  1632. p4.Anchored = true
  1633. p4.CanCollide = false
  1634. p4.TopSurface = "Smooth"
  1635. p4.BottomSurface = "Smooth"
  1636. p4.BrickColor = wCol2
  1637. p4.Material = "Neon"
  1638.  
  1639. ClearGhosts()
  1640.  
  1641. for i=1,amountGhosts do
  1642. CreateGhost()
  1643. end
  1644.  
  1645. local currentframe = 0
  1646. local frmR
  1647.  
  1648. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1649. currentframe = currentframe + 1
  1650. if currentframe < 1*60 then
  1651. p1.CFrame = char:WaitForChild("Torso").CFrame
  1652. p2.CFrame = char:WaitForChild("Torso").CFrame
  1653. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1654. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1655. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  1656. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  1657. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  1658. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  1659. p1.Transparency = p1.Transparency + (1/(1*60))
  1660. p2.Transparency = p2.Transparency + (1/(1*60))
  1661. p3.Transparency = p3.Transparency + (1/(1*60))
  1662. p4.Transparency = p4.Transparency + (1/(1*60))
  1663. else
  1664. p1:Destroy()
  1665. p2:Destroy()
  1666. p3:Destroy()
  1667. p4:Destroy()
  1668. frmR:disconnect()
  1669. end
  1670. end)
  1671. end
  1672. end
  1673. end)
  1674. end)
  1675.  
  1676. local frm = 0
  1677.  
  1678. local toRemove = {}
  1679.  
  1680. game:GetService("RunService").RenderStepped:connect(function()
  1681. frm = frm + 1
  1682. if char.Parent == game:GetService("Workspace").CurrentCamera then
  1683.  
  1684. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55)
  1685. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55)
  1686.  
  1687. local delay = 0.9
  1688.  
  1689. for i,v in pairs(ghosts) do
  1690. for _,b in pairs(v:GetChildren()) do
  1691. if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then
  1692. b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay)
  1693. end
  1694. end
  1695. delay = delay - (0.5/(#ghosts+1))
  1696. end
  1697.  
  1698. --[[if math.floor(frm/8) == frm/8 then
  1699. local isub = 0
  1700. for i,v in pairs(ghosts) do
  1701. if #v:GetChildren() < 6 then
  1702. v:Destroy()
  1703. table.remove(ghosts,i - isub)
  1704. isub = isub + 1
  1705. CreateGhost()
  1706. end
  1707. end
  1708. end]]
  1709. end
  1710.  
  1711. --Animation states
  1712.  
  1713. local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4)
  1714. local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true)
  1715.  
  1716. if state ~= "busy" then
  1717. if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
  1718. state = "idle"
  1719. elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then
  1720. state = "running"
  1721. --[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then
  1722. state = "falling"
  1723. elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then
  1724. state = "jumping"]]
  1725. end
  1726. char.Humanoid.WalkSpeed = 50
  1727. char.Humanoid.JumpPower = 70
  1728. end
  1729.  
  1730. --Actual animations
  1731.  
  1732. if state == "idle" then
  1733. char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(80 + math.cos(tick())*4),math.rad(180),math.rad(0)),0.06)
  1734. char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
  1735. char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
  1736. char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.43 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
  1737. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(-15 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
  1738. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
  1739. elseif state == "running" then
  1740. char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(65 + math.cos(tick())*4),math.rad(180),math.rad(-char.HumanoidRootPart.RotVelocity.Y*10)),0.06)
  1741. char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
  1742. char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
  1743. char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.70 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(50 + math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
  1744. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(-35 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
  1745. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
  1746. end
  1747. end)
  1748.  
  1749. char.Humanoid.Died:connect(function()
  1750. toggle = false
  1751.  
  1752. ClearGhosts()
  1753.  
  1754. char.Parent = game.Workspace
  1755. char.Parent = game:GetService("Workspace")
  1756. char:FindFirstChild("ForceField"):Destroy()
  1757. char:FindFirstChild("Head").Transparency = 0
  1758. char:FindFirstChild("Torso").Transparency = 0
  1759. char:FindFirstChild("Right Arm").Transparency = 0
  1760. char:FindFirstChild("Left Arm").Transparency = 0
  1761. char:FindFirstChild("Right Leg").Transparency = 0
  1762. char:FindFirstChild("Left Leg").Transparency = 0
  1763. for i,v in pairs(char:GetChildren()) do
  1764. if v:IsA("Accessory") then
  1765. v:FindFirstChild("Handle").Transparency = 0
  1766. end
  1767. end
  1768. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  1769. plr:LoadCharacter()
  1770. end)
  1771.  
  1772. local msgidGlob = 0
  1773. local state = true
  1774. local font = "Arcade"
  1775. local tcol = Color3.fromRGB(255,217,0)
  1776. local tscol = Color3.fromRGB(0,0,0)
  1777. local fsiz = 28
  1778. local tr = true
  1779. local tsr = false
  1780. local fade = 2
  1781.  
  1782. local p = Instance.new("Part",game.Workspace)
  1783. p.Size = Vector3.new(0.2,0.2,0.2)
  1784. p.Transparency = 1
  1785. p.Anchored = true
  1786. p.CanCollide = false
  1787. p.Name = "Msg"
  1788. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  1789.  
  1790. local r = 255
  1791. local b = 0
  1792. local g = 0
  1793.  
  1794. plr.Chatted:connect(function(c)
  1795. msgidGlob = msgidGlob + 1
  1796. local curMsgId = msgidGlob
  1797. if string.lower(c) == "!disable" then
  1798. state = false
  1799. elseif string.lower(c) == "!enable" then
  1800. state = true
  1801. elseif string.lower(string.sub(c,1,6)) == "!font " then
  1802. local old = font
  1803. font = string.sub(c,7,#c) or old
  1804. elseif string.lower(string.sub(c,1,8)) == "!tcolor " then
  1805. if string.lower(string.sub(c,9,#c)) == "rainbow" then
  1806. tr = true
  1807. else
  1808. tr = false
  1809. local old = tcol
  1810. tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old
  1811. end
  1812. elseif string.lower(string.sub(c,1,9)) == "!tscolor " then
  1813. if string.sub(c,10,#c) == "rainbow" then
  1814. tsr = true
  1815. else
  1816. tsr = false
  1817. local old = tscol
  1818. tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old
  1819. end
  1820. elseif string.lower(string.sub(c,1,6)) == "!size " then
  1821. local old = fsiz
  1822. fsiz = string.sub(c,7,#c) or old
  1823. elseif string.lower(string.sub(c,1,6)) == "!fade " then
  1824. local old = fade
  1825. fade = string.sub(c,7,#c) or old
  1826. end
  1827. if plr.Character and state == true then
  1828. if plr.Character:FindFirstChild("Head") then
  1829. for i,v in pairs(p:GetChildren()) do
  1830. if v:IsA("BillboardGui") and v.Name == "J2CMSG" then
  1831. v:Destroy()
  1832. end
  1833. end
  1834. local bbgui = Instance.new("BillboardGui",p)
  1835. bbgui.Name = "J2CMSG"
  1836. bbgui.AlwaysOnTop = true
  1837. bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0)
  1838. bbgui.Size = UDim2.new(0.2,0,0.14,0)
  1839. local tl = Instance.new("TextLabel",bbgui)
  1840. tl.BackgroundTransparency = 1
  1841. tl.BorderSizePixel = 0
  1842. tl.Size = UDim2.new(1,0,10,0)
  1843. tl.Position = UDim2.new(0,0,-5,0)
  1844. tl.Font = font or "SciFi"
  1845. tl.FontSize = "Size"..fsiz or "Size36"
  1846. tl.TextColor3 = tcol
  1847. tl.TextScaled = false
  1848. tl.TextWrapped = false
  1849. tl.TextStrokeColor3 = tscol
  1850. tl.TextStrokeTransparency = 0
  1851.  
  1852. game:GetService("RunService").RenderStepped:connect(function()
  1853. if tr then
  1854. if tl.Parent ~= nil then
  1855. tl.TextColor3 = Color3.fromRGB(r,g,b)
  1856. end
  1857. end
  1858. end)
  1859.  
  1860. for i=1,#c do
  1861. if msgidGlob == curMsgId then
  1862. tl.Text = string.sub(c,1,i)
  1863. if string.sub(c,i,i) ~= " " then
  1864. local s = Instance.new("Sound",p)
  1865. s.SoundId = "rbxassetid://418252437"
  1866. s.Volume = 1
  1867. s.Pitch = 1
  1868. s:Play()
  1869. game.Debris:AddItem(s,2)
  1870. end
  1871. wait()
  1872. end
  1873. end
  1874. wait(fade)
  1875. if msgidGlob == curMsgId then
  1876. for i=1,10 do
  1877. if msgidGlob == curMsgId then
  1878. tl.TextTransparency = tl.TextTransparency + 0.1
  1879. tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
  1880. tl.Position = tl.Position + UDim2.new(0,0,0,-3)
  1881. wait()
  1882. end
  1883. end
  1884. if msgidGlob == curMsgId then
  1885. bbgui:Destroy()
  1886. end
  1887. end
  1888. end
  1889. end
  1890. end)
  1891.  
  1892. coroutine.resume(coroutine.create(function()
  1893. while wait() do
  1894. for i=0,255,10 do g = i wait() end
  1895. for i=255,0,-10 do r = i wait() end
  1896. for i=0,255,10 do b = i wait() end
  1897. for i=255,0,-10 do g = i wait() end
  1898. for i=0,255,10 do r = i wait() end
  1899. for i=255,0,-10 do b = i wait() end
  1900. end
  1901. end))
  1902.  
  1903. game:GetService("RunService").RenderStepped:connect(function()
  1904. if p.Parent ~= nil then
  1905. p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16)
  1906. else
  1907. p = Instance.new("Part",game.Workspace)
  1908. p.Size = Vector3.new(0.2,0.2,0.2)
  1909. p.Transparency = 1
  1910. p.Anchored = true
  1911. p.CanCollide = false
  1912. p.Name = "Msg"
  1913. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  1914. end
  1915. end)
  1916.  
  1917. print("Ghost loaded! Time elapsed: "..tick() - time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement