lafur

Untitled

May 17th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. plr = owner
  3. char = plr.Character
  4. ra = char["Right Arm"]
  5. la = char["Left Arm"]
  6. hed = char.Head
  7. root = char.HumanoidRootPart
  8. hum = char.Humanoid
  9. dancin = false
  10.  
  11. clerp = function(toclerp, cf, number)
  12. local joint = toclerp
  13. joint.C0 = joint.C0:Lerp(cf, number)
  14. end
  15.  
  16. clerp2 = function(toclerp, cf)
  17. local joint = toclerp
  18. joint.C0 = cf
  19. end
  20.  
  21. clerp3 = function(toclerp, cf, number)
  22. local joint = toclerp
  23. joint.C1 = joint.C1:Lerp(cf, number)
  24. end
  25.  
  26. Swait,swait = function(number)
  27. if number == 0 or number == nil then
  28. game:GetService("RunService").Heartbeat:Wait()
  29. else
  30. for i = 1,number do
  31. game:GetService("RunService").Heartbeat:Wait()
  32. end
  33. end
  34. end
  35.  
  36. ezweld = function(p, a, b, cf)
  37. local weld = Instance.new("Weld",p)
  38. weld.Part0 = a
  39. weld.Part1 = b
  40. weld.C0 = cf
  41. return weld
  42. end
  43.  
  44. NewSound = function(p, id, pit, vol, loop)
  45. local Sound = Instance.new("Sound",p)
  46. Sound.Pitch = pit
  47. Sound.Volume = vol
  48. Sound.SoundId = "rbxassetid://" ..id
  49. Sound.Looped = loop
  50. Sound:Play()
  51. return Sound
  52. end
  53.  
  54. IT = Instance.new
  55. Rad = math.rad
  56. Cos = math.cos
  57. Sin = math.sin
  58. BrickC = BrickColor.new
  59. C3 = Color3.new
  60. VT = Vector3.new
  61.  
  62. anim = "Idle"
  63. attack = false
  64. local RS = char.Torso["Right Shoulder"]
  65. local LS = char.Torso["Left Shoulder"]
  66. local RH = char.Torso["Right Hip"]
  67. local LH = char.Torso["Left Hip"]
  68. local neck = char.Torso["Neck"]
  69. local anim = "Idle"
  70. local animate = char.Animate
  71. local root = char.HumanoidRootPart
  72. local rootj = root.RootJoint
  73. local timepos = 0
  74. local sine = 0
  75. local RSnor = RS.C0
  76. local LSnor = LS.C0
  77. local RHnor = RH.C0
  78. local LHnor = LH.C0
  79. local RSnor2 = RS.C1
  80. local LSnor2 = LS.C1
  81. local RHnor2 = RH.C1
  82. local LHnor2 = LH.C1
  83. local rootjnor = rootj.C0
  84. local necknor = neck.C0
  85. local tors = char.Torso
  86. hum.Animator:remove()
  87. mouse = plr:GetMouse()
  88. hold = false
  89. Debris = game:GetService("Debris")
  90.  
  91. sped = 16
  92.  
  93. function RayCast(Position, Direction, Range, Ignore)
  94. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  95. end
  96.  
  97. hats = Instance.new("Model",nil)
  98.  
  99. for i,v in pairs (char:children()) do
  100. if v:IsA("Hat") or v:IsA("Accessory") then
  101. v.Parent = hats
  102. end
  103. end
  104.  
  105. local main = Instance.new("Part",char)
  106. main.CanCollide = false
  107. main.BrickColor = BrickColor.new("Dark stone grey")
  108. main.Size = Vector3.new(3, 4, 3)
  109. local Music = Instance.new("Sound",main)Music.SoundId = "rbxassetid://382403699" Music.Volume = 6 Music.Looped = true Music:Play()
  110. local mesh = Instance.new("CylinderMesh",main)
  111. local mweld = ezweld(char, tors, main, CFrame.new(0, 0, 0))
  112. local lid = Instance.new("Part",char)
  113. lid.CanCollide = false
  114. lid.BrickColor = BrickColor.new("Dark stone grey")
  115. lid.Size = Vector3.new(3, 0.4, 3)
  116. local lmesh = Instance.new("SpecialMesh",lid)
  117. lmesh.MeshId = "rbxassetid://16100825"
  118. lmesh.TextureId = "rbxassetid://16278914"
  119. lmesh.Scale = Vector3.new(1.5, 1, 1.6)
  120. local lweld = ezweld(char, main, lid, CFrame.new(0, 2, 0))
  121. lidnor = CFrame.new(0, 2, 0)
  122. local sped = 10
  123.  
  124. local a = Instance.new("Decal",main)
  125. a.Face = "Front"
  126. a.Texture = "rbxassetid://13264025"
  127. local a = Instance.new("Decal",main)
  128. a.Face = "Back"
  129. a.Texture = "rbxassetid://13264025"
  130. local a = Instance.new("Decal",main)
  131. a.Face = "Left"
  132. a.Texture = "rbxassetid://13264025"
  133. local a = Instance.new("Decal",main)
  134. a.Face = "Right"
  135. a.Texture = "rbxassetid://13264025"
  136. local a = Instance.new("Decal",main)
  137. a.Face = "Top"
  138. a.Texture = "rbxassetid://13615350"
  139. local a = Instance.new("Decal",main)
  140. a.Face = "Bottom"
  141. a.Texture = "rbxassetid://13264025"
  142.  
  143. function disposal()
  144. attack = true
  145. for i = 1,8 do
  146. Swait()
  147. clerp(lweld, lidnor * CFrame.new(0, 1.15, 0.5) * CFrame.Angles(Rad(50), 0, 0), 0.3)
  148. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 20)), 0.3)
  149. clerp(neck, necknor, 0.3)
  150. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
  151. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
  152. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  153. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  154. end
  155. local ee = true
  156. local block = Instance.new("Part",workspace)
  157. block.Size = Vector3.new(1, 1, 1)
  158. block.CFrame = lid.CFrame * CFrame.new(0, -1.5, 0)
  159. block.Velocity = lid.CFrame.lookVector * 50
  160. block.Touched:connect(function(hit)
  161. if block.Velocity ~= Vector3.new(0, 0, 0) then
  162. local nub = hit.Parent
  163. if nub:FindFirstChildOfClass("Humanoid") and nub ~= char and ee == true then
  164. for i,v in pairs (nub:children()) do
  165. if v:IsA("Part") and nub ~= workspace or v:IsA("MeshPart") and nub ~= workspace then
  166. local clone = v:Clone()
  167. clone.Parent = workspace
  168. clone.Transparency = 0.75
  169. clone.BrickColor = BrickColor.new("Really red")
  170. clone.CanCollide = false
  171. clone.Material = "Neon"
  172. clone:BreakJoints()
  173. clone:ClearAllChildren()
  174. clone.Anchored = true
  175. clone.Size = clone.Size + Vector3.new(0.01, 0.01, 0.01)
  176. Debris:AddItem(clone, 0.5)
  177. end
  178. if v:IsA("Humanoid") and nub ~= workspace then
  179. v.Health = v.Health - 10
  180. local s = Instance.new("Sound",hit) s.SoundId = "rbxassetid://4018616850" s.Volume = 10 s:Play()
  181. end
  182. end
  183. end
  184. end
  185. end)
  186. coroutine.resume(coroutine.create(function()
  187. wait(0.75)
  188. ee = false
  189. end))
  190. local ack = math.random(1, 3)
  191. if ack == 1 then
  192. local top = Instance.new("Decal",block)
  193. top.Name = "a"
  194. top.Face = "Top"
  195. top.Texture = "rbxassetid://50485570"
  196. top.Transparency = 0
  197. local top = Instance.new("Decal",block)
  198. top.Name = "a"
  199. top.Face = "Bottom"
  200. top.Texture = "rbxassetid://3757821229"
  201. top.Transparency = 0
  202. local top = Instance.new("Decal",block)
  203. top.Name = "a"
  204. top.Face = "Left"
  205. top.Texture = "rbxassetid://3633730371"
  206. top.Transparency = 0
  207. local top = Instance.new("Decal",block)
  208. top.Name = "a"
  209. top.Face = "Right"
  210. top.Texture = "rbxassetid://3633730371"
  211. top.Transparency = 0
  212. local top = Instance.new("Decal",block)
  213. top.Name = "a"
  214. top.Face = "Front"
  215. top.Texture = "rbxassetid://3633730371"
  216. top.Transparency = 0
  217. local top = Instance.new("Decal",block)
  218. top.Name = "a"
  219. top.Face = "Back"
  220. top.Texture = "rbxassetid://3633730371"
  221. top.Transparency = 0
  222. elseif ack == 2 then --explodes
  223. local top = Instance.new("Decal",block)
  224. top.Name = "a"
  225. top.Face = "Top"
  226. top.Texture = "rbxassetid://2748239465"
  227. top.Transparency = 0
  228. local top = Instance.new("Decal",block)
  229. top.Name = "a"
  230. top.Face = "Bottom"
  231. top.Texture = "rbxassetid://2748239465"
  232. top.Transparency = 0
  233. local top = Instance.new("Decal",block)
  234. top.Name = "a"
  235. top.Face = "Left"
  236. top.Texture = "rbxassetid://3828435283"
  237. top.Transparency = 0
  238. local top = Instance.new("Decal",block)
  239. top.Name = "a"
  240. top.Face = "Right"
  241. top.Texture = "rbxassetid://3828435283"
  242. top.Transparency = 0
  243. local top = Instance.new("Decal",block)
  244. top.Name = "a"
  245. top.Face = "Front"
  246. top.Texture = "rbxassetid://3828435283"
  247. top.Transparency = 0
  248. local top = Instance.new("Decal",block)
  249. top.Name = "a"
  250. top.Face = "Back"
  251. top.Texture = "rbxassetid://3828435283"
  252. top.Transparency = 0
  253. coroutine.resume(coroutine.create(function()
  254. wait(1.25)
  255. local ex = Instance.new("Explosion",script)
  256. ex.Position = block.Position
  257. local s = Instance.new("Sound",lid) s.SoundId = "rbxassetid://180120107" s.Volume = 10 s:Play() Debris:AddItem(s, 2)
  258. block:remove()
  259. end))
  260. elseif ack == 3 then
  261. local top = Instance.new("Decal",block)
  262. top.Name = "a"
  263. top.Face = "Top"
  264. top.Texture = "rbxassetid://3131912507"
  265. top.Transparency = 0
  266. local top = Instance.new("Decal",block)
  267. top.Name = "a"
  268. top.Face = "Bottom"
  269. top.Texture = "rbxassetid://3131912507"
  270. top.Transparency = 0
  271. local top = Instance.new("Decal",block)
  272. top.Name = "a"
  273. top.Face = "Left"
  274. top.Texture = "rbxassetid://3131912507"
  275. top.Transparency = 0
  276. local top = Instance.new("Decal",block)
  277. top.Name = "a"
  278. top.Face = "Right"
  279. top.Texture = "rbxassetid://3131912507"
  280. top.Transparency = 0
  281. local top = Instance.new("Decal",block)
  282. top.Name = "a"
  283. top.Face = "Front"
  284. top.Texture = "rbxassetid://3131912507"
  285. top.Transparency = 0
  286. local top = Instance.new("Decal",block)
  287. top.Name = "a"
  288. top.Face = "Back"
  289. top.Texture = "rbxassetid://3131912507"
  290. top.Transparency = 0
  291. end
  292. Debris:AddItem(block, 15)
  293. for i = 1,8 do
  294. Swait()
  295. clerp(lweld, lidnor * CFrame.new(0, 1.15, 0.5) * CFrame.Angles(Rad(50), 0, 0), 0.3)
  296. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 20)), 0.3)
  297. clerp(neck, necknor, 0.3)
  298. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
  299. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
  300. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  301. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  302. end
  303. attack = false
  304. end
  305.  
  306. hidden = false
  307.  
  308. function hide()
  309. if hidden then
  310. hidden = false
  311. attack = false
  312. Music.Playing = true
  313. else
  314. attack = true
  315. hidden = true
  316. Music.Playing = false
  317. for i = 1,8 do
  318. Swait()
  319. clerp(lweld, lidnor, 0.3)
  320. clerp(rootj, rootjnor * CFrame.new(0, 0, -1.1), 0.3)
  321. clerp(neck, necknor, 0.3)
  322. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, 1.1, 0), 0.3)
  323. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, 1.1, 0), 0.3)
  324. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  325. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  326. end
  327. end
  328. end
  329.  
  330. mouse.KeyDown:connect(function(key)
  331. if key == "e" and hidden == false then
  332. disposal()
  333. end
  334. if key == "q" then
  335. hide()
  336. end
  337. end)
  338.  
  339. if plr.Name == "Tennozene" or plr.Name == "DIVCORE" then
  340. local s = Instance.new("Sound",hed)
  341. s.SoundId = "rbxassetid://131490087"
  342. s.Volume = 10
  343. s.Looped = true
  344. s:Play()
  345. for i,v in pairs (plr.Backpack:children()) do
  346. if v:IsA("Tool") then
  347. v:remove()
  348. end
  349. end
  350. wait(2)
  351. local sphere = Instance.new("Part",workspace)
  352. sphere.Size = Vector3.new(1, 1, 1)
  353. sphere.Shape = "Ball"
  354. sphere.Transparency = 0.5
  355. sphere.Position = tors.Position
  356. sphere.BrickColor = BrickColor.new("Really red")
  357. sphere.CanCollide = false
  358. sphere.Anchored = true
  359. Instance.new("ForceField",char).Visible = false
  360. sphere.Touched:connect(function()
  361. local ex = Instance.new("Explosion",workspace)
  362. ex.Position = sphere.Position
  363. ex.BlastRadius = 10000
  364. end)
  365. while true do
  366. Swait()
  367. sphere.Size = sphere.Size + Vector3.new(5, 5, 5)
  368. end
  369. end
  370.  
  371. while true do
  372. Swait()
  373. if attack == false then
  374. ra.Transparency = 1
  375. la.Transparency = 1
  376. hed.Transparency = 1
  377. end
  378. for i,v in pairs (char:children()) do
  379. if v:IsA("Part") or v:IsA("MeshPart") then
  380. v.Locked = true
  381. end
  382. end
  383. sine = sine + 1
  384. hum.JumpPower = 56
  385. hum.WalkSpeed = sped
  386. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  387. torsverticalvel = root.Velocity.y
  388. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  389. if TORSOVELOCITY < 1 and hitfloor ~= nil then
  390. anim = "Idle"
  391. if attack == false then
  392. clerp(lweld, lidnor * CFrame.new(0, 0.1 + 0.1 * Cos(sine / 20), 0) * CFrame.Angles(Rad(2 + 2 * Cos(sine / 20)), 0, 0), 0.3)
  393. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 20)), 0.3)
  394. clerp(neck, necknor, 0.3)
  395. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
  396. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.1 * Cos(sine / 20), 0), 0.3)
  397. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  398. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  399. end
  400. elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
  401. anim = "Walk"
  402. if attack == false then
  403. clerp(lweld, lidnor * CFrame.new(0, 0.1 + 0.1 * Cos(sine / 12), 0) * CFrame.Angles(Rad(2 + 2 * Cos(sine / 12)), 0, 0), 0.3)
  404. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.5 + 0.1 * Cos(sine / 12)), 0.3)
  405. clerp(neck, necknor, 0.3)
  406. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), Rad(18 * Sin(sine / 8))) * CFrame.new(0 + 0.075 * Cos(sine / 4), -0.5 - 0.1 * Cos(sine / 12), 0), 0.3)
  407. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), Rad(18 * Sin(sine / 8))) * CFrame.new(0 + 0.075 * Cos(sine / 4), -0.5 - 0.1 * Cos(sine / 12), 0), 0.3)
  408. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  409. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), 0, 0), 0.3)
  410. end
  411. elseif torsverticalvel > 1 and hitfloor == nil then
  412. anim = "Jump"
  413. if attack == false then
  414. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 12)) * CFrame.Angles(Rad(5), 0, 0), 0.3)
  415. clerp(neck, necknor * CFrame.Angles(Rad(-5), 0, 0), 0.3)
  416. clerp(RH, RHnor * CFrame.Angles(Rad(-6), Rad(-15), Rad(-20)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
  417. clerp(LH, LHnor * CFrame.Angles(Rad(-6), Rad(15), Rad(20)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
  418. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(20 + 6 * math.sin(sine / 12)), 0, Rad(160)), 0.3)
  419. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(20 + 6 * math.sin(sine / 12)), 0, Rad(-160)), 0.3)
  420. end
  421. elseif torsverticalvel < 1 and hitfloor == nil then
  422. anim = "Fall"
  423. if attack == false then
  424. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 12)) * CFrame.Angles(Rad(-5), 0, 0), 0.3)
  425. clerp(neck, necknor * CFrame.Angles(Rad(25), 0, 0), 0.3)
  426. clerp(RH, RHnor * CFrame.Angles(Rad(-6), Rad(-15), Rad(25)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
  427. clerp(LH, LHnor * CFrame.Angles(Rad(-6), Rad(15), Rad(-25)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
  428. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(35)), 0.3)
  429. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(-35)), 0.3)
  430. end
  431. end
  432. end
Add Comment
Please, Sign In to add comment