Advertisement
yabagaba

Untitled

Jul 9th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 179.17 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. Player=owner
  84. Character=Player.Character
  85. Character.Humanoid.Name = "noneofurbusiness"
  86. hum = Character.noneofurbusiness
  87. LeftArm=Character["Left Arm"]
  88. LeftLeg=Character["Left Leg"]
  89. RightArm=Character["Right Arm"]
  90. RightLeg=Character["Right Leg"]
  91. Root=Character["HumanoidRootPart"]
  92. Head=Character["Head"]
  93. Torso=Character["Torso"]
  94. Neck=Torso["Neck"]
  95. walking = false
  96. hitdebounce = false
  97. jumping = false
  98. invisible = false
  99. attacking = false
  100. firsttime = false
  101. tauntdebounce = false
  102. raygun = false
  103. position = nil
  104. classical = true
  105. dada = false
  106. secondform = false
  107. industrial = false
  108. sidekicktaunting = false
  109. popstar = false
  110. vinyl = false
  111. brutal = false
  112. love = false
  113. godgun = false
  114. talkingtalking = false
  115. glasson = true
  116. glassonp = false
  117. sidekick = false
  118. MseGuide = true
  119. sidekickshootanim = false
  120. running = false
  121. settime = 0
  122. sine = 0
  123. t = 0
  124. ws = 32
  125. change = 1
  126. combo1 = true
  127. equip = false
  128. swetch = false
  129. dgs = 75
  130. combo2 = false
  131. switch1 = true
  132. switch2 = false
  133. tauntdebounce = false
  134. firsttime2 = false
  135. stop = false
  136. combo3 = false
  137. gunallowance = false
  138. shooting = false
  139. RunSrv = game:GetService("RunService")
  140. RenderStepped = game:GetService("RunService").RenderStepped
  141. removeuseless = game:GetService("Debris")
  142. smoothen = game:GetService("TweenService")
  143. cam = workspace.CurrentCamera
  144. randomcolortable={"Cyan","Really red","Cyan","Royal purple","Lime green","Crimson","Daisy yellow","Eggplant"} ---rainbow effect
  145. randomsound={1841352043,1841310110,1841352055}
  146. dicesound={3122807673,3122808037,3122808415,3122808790,3122809131}
  147. shellsound={3178804103,3178804279,3178804471}
  148. shellsound2={3182143803,3182144291,3182144511}
  149. local dmt2 = {1843002153,3111464957,3164241009}
  150. local soundtable = {3164866143,3164866542,3164866984,3164867563,3164868011,3164868391,3164868830,3164869532,3164869991,3164870493,3164872506,3164872843,3164873181}
  151. local p2 = {3206942440,3206936546,3206936808,3206937465}
  152. local p1 = {3206782096,3206785806,3206954599,3206954963,3206955213,3206955582,3206955890,3206956319,3206956640,3206957177}
  153. local secondtheme={561542239,3206925146}
  154. random = #randomcolortable
  155.  
  156. screenGui = Instance.new("ScreenGui")
  157. screenGui.Parent = script.Parent
  158.  
  159. local HEADLERP = Instance.new("ManualWeld")
  160. HEADLERP.Parent = Head
  161. HEADLERP.Part0 = Head
  162. HEADLERP.Part1 = Head
  163. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  164.  
  165. local TORSOLERP = Instance.new("ManualWeld")
  166. TORSOLERP.Parent = Root
  167. TORSOLERP.Part0 = Torso
  168. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  169.  
  170. local ROOTLERP = Instance.new("ManualWeld")
  171. ROOTLERP.Parent = Root
  172. ROOTLERP.Part0 = Root
  173. ROOTLERP.Part1 = Torso
  174. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  175.  
  176. local RIGHTARMLERP = Instance.new("ManualWeld")
  177. RIGHTARMLERP.Parent = RightArm
  178. RIGHTARMLERP.Part0 = RightArm
  179. RIGHTARMLERP.Part1 = Torso
  180. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  181.  
  182. local LEFTARMLERP = Instance.new("ManualWeld")
  183. LEFTARMLERP.Parent = LeftArm
  184. LEFTARMLERP.Part0 = LeftArm
  185. LEFTARMLERP.Part1 = Torso
  186. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  187.  
  188. local RIGHTLEGLERP = Instance.new("ManualWeld")
  189. RIGHTLEGLERP.Parent = RightLeg
  190. RIGHTLEGLERP.Part0 = RightLeg
  191. RIGHTLEGLERP.Part1 = Torso
  192. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  193.  
  194. local LEFTLEGLERP = Instance.new("ManualWeld")
  195. LEFTLEGLERP.Parent = LeftLeg
  196. LEFTLEGLERP.Part0 = LeftLeg
  197. LEFTLEGLERP.Part1 = Torso
  198. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  199.  
  200. local function weldBetween(a, b)
  201. local weld = Instance.new("ManualWeld", a)
  202. weld.Part0 = a
  203. weld.Part1 = b
  204. weld.C0 = a.CFrame:inverse() * b.CFrame
  205. return weld
  206. end
  207.  
  208. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  209. A = Instance.new("Attachment", PARENT)
  210. A.Position = POSITION1
  211. A.Name = "A"
  212. B = Instance.new("Attachment", PARENT)
  213. B.Position = POSITION2
  214. B.Name = "B"
  215. tr1 = Instance.new("Trail", PARENT)
  216. tr1.Attachment0 = A
  217. tr1.Attachment1 = B
  218. tr1.Enabled = true
  219. tr1.Lifetime = LIFETIME
  220. tr1.TextureMode = "Static"
  221. tr1.LightInfluence = 0
  222. tr1.Color = COLOR
  223. tr1.Transparency = NumberSequence.new(0, 1)
  224. end
  225.  
  226. coroutine.wrap(function()
  227. while wait() do
  228. if secondform then
  229. elseif invisible then
  230. else
  231. doomtheme.Volume = 3
  232. end
  233. hum.WalkSpeed = ws
  234. hum.JumpPower = 75
  235. LeftArm.BrickColor = BrickColor.new("Really black")
  236. RightArm.BrickColor = BrickColor.new("Really black")
  237. Head.BrickColor = BrickColor.new("Really black")
  238. end
  239. end)()
  240. godmode = coroutine.wrap(function()
  241. for i,v in pairs(Character:GetChildren()) do
  242. if v:IsA("BasePart") and v ~= Root then
  243. v.Anchored = false
  244. end
  245. end
  246. while true do
  247. hum.MaxHealth = math.huge
  248. wait(0.0000001)
  249. hum.Health = math.huge
  250. wait()
  251. end
  252. end)
  253. godmode()
  254. ff = Instance.new("ForceField", Character)
  255. ff.Visible = false
  256.  
  257. ----defaultpos----
  258. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  259. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  260. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  261. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.2)
  262. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  263. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  264. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  265. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  266. ----defaultpos----
  267.  
  268. coroutine.wrap(function()
  269. for i,v in pairs(Character:GetChildren()) do
  270. if v.Name == "Animate" then v:Remove()
  271. end
  272. end
  273. end)()
  274.  
  275. for i,v in pairs(Character:children()) do
  276. if v:IsA("Accessory") then
  277. v:Destroy()
  278. end
  279. end
  280.  
  281. function damagealll(Radius,Position)
  282. local Returning = {}
  283. for _,v in pairs(workspace:GetChildren()) do
  284. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  285. if v:FindFirstChild("Torso") then
  286. local Mag = (v.Torso.Position - Position).magnitude
  287. if Mag < Radius then
  288. table.insert(Returning,v)
  289. end
  290. elseif v:FindFirstChild("UpperTorso") then
  291. local Mag = (v.UpperTorso.Position - Position).magnitude
  292. if Mag < Radius then
  293. table.insert(Returning,v)
  294. end
  295. end
  296. end
  297. end
  298. return Returning
  299. end
  300.  
  301. ArtificialHB = Instance.new("BindableEvent", script)
  302. ArtificialHB.Name = "Heartbeat"
  303. script:WaitForChild("Heartbeat")
  304.  
  305. frame = 1 / 60
  306. tf = 0
  307. allowframeloss = false
  308. tossremainder = false
  309.  
  310.  
  311. lastframe = tick()
  312. script.Heartbeat:Fire()
  313.  
  314.  
  315. game:GetService("RunService").Heartbeat:connect(function(s, p)
  316. tf = tf + s
  317. if tf >= frame then
  318. if allowframeloss then
  319. script.Heartbeat:Fire()
  320. lastframe = tick()
  321. else
  322. for i = 1, math.floor(tf / frame) do
  323. script.Heartbeat:Fire()
  324. end
  325. lastframe = tick()
  326. end
  327. if tossremainder then
  328. tf = 0
  329. else
  330. tf = tf - frame * math.floor(tf / frame)
  331. end
  332. end
  333. end)
  334.  
  335. function swait(num)
  336. if num == 0 or num == nil then
  337. game:service("RunService").Stepped:wait(0)
  338. else
  339. for i = 0, num do
  340. game:service("RunService").Stepped:wait(0)
  341. end
  342. end
  343. end
  344.  
  345. for _,x in pairs(Character:GetChildren()) do
  346. if x:IsA("Decal") then x:Remove() end
  347. end
  348.  
  349. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  350. so = Instance.new("Sound")
  351. so.Parent = PARENT
  352. so.SoundId = "rbxassetid://"..ID
  353. so.Volume = VOL
  354. so.Looped = LOOP
  355. so:Play()
  356. removeuseless:AddItem(so,REMOVE)
  357. end
  358.  
  359. for _,n in pairs(Character:GetChildren()) do
  360. if n:IsA("Accessory") then n:Remove() end
  361. end
  362. for _,x in pairs(Character:GetChildren()) do
  363. if x:IsA("Decal") then x:Remove() end
  364. end
  365. Head.face:Remove()
  366.  
  367. dmt2random = dmt2[math.random(1,#dmt2)]
  368. doomtheme = Instance.new("Sound", Torso)
  369. doomtheme.Volume = 3
  370. doomtheme.Name = "doomtheme"
  371. doomtheme.Looped = true
  372. doomtheme.SoundId = "rbxassetid://"..dmt2random
  373. doomtheme:Play()
  374.  
  375. Torso.ChildRemoved:connect(function(removed)
  376. if removed.Name == "doomtheme" then
  377. if secondform then
  378. local thousand = secondtheme[math.random(1,#secondtheme)]
  379. doomtheme = Instance.new("Sound",Torso)
  380. doomtheme.SoundId = "rbxassetid://"..thousand
  381. if invisible then
  382. doomtheme.Volume = 0
  383. else
  384. doomtheme.Volume = 4
  385. end
  386. doomtheme.Name = "doomtheme"
  387. doomtheme.Looped = true
  388. doomtheme:Play()
  389. else
  390. dmt2random = dmt2[math.random(1,#dmt2)]
  391. doomtheme = Instance.new("Sound",Torso)
  392. doomtheme.SoundId = "rbxassetid://2683987785"
  393. doomtheme.SoundId = "rbxassetid://"..dmt2random
  394. if invisible then
  395. doomtheme.Volume = 0
  396. else
  397. doomtheme.Volume = 3
  398. end
  399. doomtheme.Name = "doomtheme"
  400. doomtheme.Looped = true
  401. doomtheme:Play()
  402. end
  403. end
  404. end)
  405.  
  406. eyo = Instance.new("Part",Head)
  407. eyo.BrickColor = BrickColor.new("White")
  408. eyo.Material = "Neon"
  409. eyo.Name = "eyo"
  410. eyo.CanCollide = false
  411. eyo.Size = Vector3.new(0.11, 0.12, 0.11)
  412. eyeballmesh = Instance.new("SpecialMesh",eyo)
  413. eyeballmesh.MeshType = "Sphere"
  414. eyoweld = weldBetween(eyo,Head)
  415. eyoweld.C0 = CFrame.new(-.215,-.21,.515)
  416.  
  417. coroutine.wrap(function()
  418. while true do
  419. wait(5)
  420. for i = 1, 10 do
  421. eyo.Size = eyo.Size - Vector3.new(0,.008,0)
  422. swait()
  423. end
  424. for i = 1, 10 do
  425. eyo.Size = eyo.Size + Vector3.new(0,.008,0)
  426. swait()
  427. end
  428. swait()
  429. end
  430. end)()
  431.  
  432. leftlocation = Instance.new("Part",LeftArm)
  433. leftlocation.Size = Vector3.new(1,1,1)
  434. leftlocation.Transparency = 1
  435. leftlocationweld = weldBetween(leftlocation,LeftArm)
  436. leftlocationweld.C0 = CFrame.new(0,1.2,0)
  437. rightlocation = Instance.new("Part",RightArm)
  438. rightlocation.Size = Vector3.new(1,1,1)
  439. rightlocation.Transparency = 1
  440. rightlocationweld = weldBetween(rightlocation,RightArm)
  441. rightlocationweld.C0 = CFrame.new(0,1.2,0)
  442.  
  443. fedora = Instance.new("Part",Character)
  444. fedora.Size = Vector3.new(2,2,2)
  445. fedora.CFrame = Head.CFrame
  446. fedora.CanCollide = false
  447. fedoraweld = Instance.new("Weld",fedora)
  448. fedoraweld.Part0 = fedora
  449. fedoraweld.Part1 = Head
  450. fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(-.1,-1.04,0) * CFrame.Angles(math.rad(0),math.rad(-20),math.rad(-10))
  451. mfedora = Instance.new("SpecialMesh", fedora)
  452. mfedora.MeshType = "FileMesh"
  453. mfedora.Scale = Vector3.new(1.18, 1.18, 1.18)
  454. mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=11144636','http://www.roblox.com/asset/?id=1416342992'
  455.  
  456. mask = Instance.new("Part",Character)
  457. mask.Size = Vector3.new(2,2,2)
  458. mask.CFrame = Head.CFrame
  459. mask.CanCollide = false
  460. maskweld = Instance.new("Weld",mask)
  461. maskweld.Part0 = mask
  462. maskweld.Part1 = Head
  463. maskweld.C0 = mask.CFrame:inverse() * Head.CFrame * CFrame.new(-.16,-.1,.62) * CFrame.Angles(math.rad(0),math.rad(10),math.rad(0))
  464. mmask = Instance.new("SpecialMesh", mask)
  465. mmask.MeshType = "FileMesh"
  466. mmask.Scale = Vector3.new(1.25, 1.25, 1.25)
  467. mmask.MeshId,mmask.TextureId = 'http://www.roblox.com/asset/?id=12470186','http://www.roblox.com/asset/?id=238375294'
  468.  
  469. shirt = Instance.new("Shirt", Character)
  470. shirt.Name = "Shirt"
  471. pants = Instance.new("Pants", Character)
  472. pants.Name = "Pants"
  473. Character.Shirt.ShirtTemplate = "rbxassetid://33209766"----lol
  474. Character.Pants.PantsTemplate = "rbxassetid://33210029"
  475.  
  476. slaten = Instance.new("Decal",mask)
  477. slaten.Texture = "rbxassetid://654786596"
  478. slaten.Color3 = Color3.new(0, 0, 0)
  479. slaten.Face = "Top"
  480.  
  481. slaten2 = Instance.new("Decal",mask)
  482. slaten2.Texture = "rbxassetid://647393266"
  483. slaten2.Color3 = Color3.new(0, 0, 0)
  484. slaten2.Face = "Top"
  485.  
  486. mouse.KeyDown:connect(function(Press)
  487. Press=Press:lower()
  488. if Press=='m' then
  489. immortality()
  490. for i,v in pairs(Player.Character:GetDescendants()) do
  491. if v:IsA("BodyVelocity") then
  492. v:Remove()
  493. end
  494. end
  495. elseif Press=='r' then
  496. if debounce then return end
  497. debounce = true
  498. attacking = true
  499. g1 = Instance.new("BodyGyro", Root)
  500. g1.D = 175
  501. g1.P = 20000
  502. g1.MaxTorque = Vector3.new(0,9000,0)
  503. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  504. ws = 4
  505. for i = 1, 20 do
  506. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  507. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  508. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  509. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  510. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  511. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  512. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  513. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.2)
  514. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,0,.2) * CFrame.Angles(math.rad(30),math.rad(30),0),.2)
  515. swait()
  516. end
  517. ws = 0
  518. local dice = Instance.new("Part",Torso)
  519. local mv = (dice.Position - mouse.Hit.p).magnitude
  520. if mv > 50 then
  521. mv = 50
  522. end
  523. dice.CanCollide = true
  524. dice.CFrame = Root.CFrame * CFrame.new(2,0,-3.6) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  525. dice.Anchored = false
  526. dice.Transparency = 1
  527. dice.Size = Vector3.new(.5,.5,.5)
  528. dice.Velocity = CFrame.new(dice.Position,mouse.Hit.p).lookVector*(mv * 2)
  529. dicemesh = Instance.new("SpecialMesh",dice)
  530. dicemesh.MeshId = "rbxassetid://95358536"
  531. dicemesh.TextureId = "rbxassetid://100025876"
  532. dicemesh.Scale = Vector3.new(.21,.21,.21)
  533. coroutine.wrap(function()
  534. for i = 1, 10 do
  535. dice.Transparency = dice.Transparency - .1
  536. swait()
  537. end
  538. end)()
  539. local toched = false
  540. dice.Touched:connect(function(explod)
  541. if toched then return end
  542. toched = true
  543. r = dicesound[math.random(1,#dicesound)]
  544. local daic = Instance.new("Sound",dice)
  545. daic.SoundId = "rbxassetid://"..r
  546. daic.Volume = 10
  547. daic:Play()
  548. wait(1.5)
  549. ex2 = Instance.new("Part",Torso)
  550. ex2.Anchored = true
  551. ex2.CanCollide = false
  552. ex2.Transparency = 1
  553. ex2.Size = Vector3.new(.1,.1,.1)
  554. ex2.CFrame = dice.CFrame
  555. removeuseless:AddItem(ex2,4)
  556. local ex = Instance.new("Sound",ex2)
  557. ex.SoundId = "rbxassetid://3122872389"
  558. ex.Volume = 10
  559. ex:Play()
  560. Hit = damagealll(34,dice.Position)
  561. for _,v in pairs(Hit) do
  562. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  563. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  564. if secondform then
  565. slachtoffer.Parent:BreakJoints()
  566. else
  567. slachtoffer:TakeDamage(math.random(48,72))
  568. end
  569. if secondform then
  570. coroutine.wrap(function()
  571. if tauntdebounce then return end
  572. tauntdebounce = true
  573. rdnm2 = p1[math.random(1,#p1)]
  574. tauntsound = Instance.new("Sound", Head)
  575. tauntsound.Volume = 10
  576. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  577. tauntsound.Looped = false
  578. tauntsound:Play()
  579. wait(3)
  580. wait(tauntsound.TimeLength)
  581. tauntsound:Remove()
  582. wait(1)
  583. tauntdebounce = false
  584. end)()
  585. end
  586. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  587. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  588. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  589. vel.velocity = CFrame.new(dice.Position,torso.Position).lookVector*125
  590. removeuseless:AddItem(vel,.1)
  591. end
  592. end
  593. dice:Remove()
  594. local lightofdeath = Instance.new("Part",Torso)
  595. lightofdeath.Size = Vector3.new(1000000,20,20)
  596. lightofdeath.CanCollide = false
  597. lightofdeath.Anchored = true
  598. lightofdeath.Material = "Neon"
  599. lightofdeath.Transparency = .1
  600. lightofdeath.BrickColor = BrickColor.new("White")
  601. lightofdeath.CFrame = CFrame.new(dice.Position) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  602. lightofdeath.Shape = "Cylinder"
  603. coroutine.wrap(function()
  604. local shockwave = Instance.new("Part", Torso)
  605. shockwave.Size = Vector3.new(1,1,1)
  606. shockwave.CanCollide = false
  607. shockwave.Anchored = true
  608. shockwave.Transparency = 0
  609. shockwave.BrickColor = BrickColor.new("White")
  610. shockwave.CFrame = CFrame.new(dice.Position) * CFrame.new(0,-1.75,0)
  611. local shockwavemesh = Instance.new("SpecialMesh", shockwave)
  612. shockwavemesh.Scale = Vector3.new(4,.7,4)
  613. shockwavemesh.MeshId = "rbxassetid://20329976"
  614. local shockwave2 = Instance.new("Part", Torso)
  615. shockwave2.Size = Vector3.new(1,1,1)
  616. shockwave2.CanCollide = false
  617. shockwave2.Anchored = true
  618. shockwave2.Transparency = 0
  619. shockwave2.BrickColor = BrickColor.new("White")
  620. shockwave2.CFrame = CFrame.new(dice.Position) * CFrame.new(0,-1.6,0)
  621. local shockwavemesh2 = Instance.new("SpecialMesh", shockwave2)
  622. shockwavemesh2.Scale = Vector3.new(4,.7,4)
  623. shockwavemesh2.MeshId = "rbxassetid://20329976"
  624. local shockwave3 = Instance.new("Part", Torso)
  625. shockwave3.Size = Vector3.new(1,1,1)
  626. shockwave3.CanCollide = false
  627. shockwave3.Anchored = true
  628. shockwave3.Transparency = 0
  629. shockwave3.BrickColor = BrickColor.new("Really black")
  630. shockwave3.CFrame = CFrame.new(dice.Position) * CFrame.new(0,-1.75,0)
  631. local shockwavemesh3 = Instance.new("SpecialMesh", shockwave3)
  632. shockwavemesh3.Scale = Vector3.new(4,.7,4)
  633. shockwavemesh3.MeshId = "rbxassetid://20329976"
  634. local shockwave4 = Instance.new("Part", Torso)
  635. shockwave4.Size = Vector3.new(1,1,1)
  636. shockwave4.CanCollide = false
  637. shockwave4.Anchored = true
  638. shockwave2.Transparency = 0
  639. shockwave4.BrickColor = BrickColor.new("Really black")
  640. shockwave4.CFrame = CFrame.new(dice.Position) * CFrame.new(0,-1.6,0)
  641. local shockwavemesh4 = Instance.new("SpecialMesh", shockwave4)
  642. shockwavemesh4.Scale = Vector3.new(4,.7,4)
  643. shockwavemesh4.MeshId = "rbxassetid://20329976"
  644. local e = Instance.new("Part",Torso)
  645. e.Size = Vector3.new(2,2,2)
  646. e.Material = "Neon"
  647. e.Anchored = true
  648. e.CanCollide = false
  649. e.CFrame = dice.CFrame
  650. e.Shape = "Ball"
  651. e.BrickColor = BrickColor.new("White")
  652. for i = 1, 50 do
  653. e.Size = e.Size + Vector3.new(3.5,3.5,3.5)
  654. e.Transparency = e.Transparency + .035
  655. shockwave.CFrame = shockwave.CFrame * CFrame.Angles(math.rad(0),math.rad(0+21),0)
  656. shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(math.rad(0),math.rad(0-16),0)
  657. shockwave.Transparency = shockwave.Transparency + 0.03
  658. shockwave2.Transparency = shockwave2.Transparency + 0.03
  659. shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(2,.5,2)
  660. shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(2,.5,2)
  661. shockwave3.CFrame = shockwave3.CFrame * CFrame.Angles(math.rad(0),math.rad(0+9),0)
  662. shockwave4.CFrame = shockwave4.CFrame * CFrame.Angles(math.rad(0),math.rad(0-9),0)
  663. shockwave3.Transparency = shockwave3.Transparency + 0.05
  664. shockwave4.Transparency = shockwave4.Transparency + 0.05
  665. shockwavemesh3.Scale = shockwavemesh3.Scale + Vector3.new(5,1,5)
  666. shockwavemesh4.Scale = shockwavemesh4.Scale + Vector3.new(5,1,5)
  667. swait()
  668. end
  669. e:Remove()
  670. shockwave:Remove()
  671. shockwave2:Remove()
  672. shockwave3:Remove()
  673. shockwave4:Remove()
  674. end)()
  675. coroutine.wrap(function()
  676. for i = 1, 20 do
  677. lightofdeath.Transparency = lightofdeath.Transparency + .05
  678. swait()
  679. end
  680. lightofdeath:Remove()
  681. end)()
  682. end)
  683. for i = 1, 25 do
  684. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.2)
  685. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,.35) * CFrame.Angles(math.rad(-110),math.rad(22),math.rad(-1)),.2)
  686. swait()
  687. end
  688. ws = 32
  689. removeuseless:AddItem(g1,.0001)
  690. debounce = false
  691. attacking = false
  692. elseif Press=='q' then
  693. if debounce then return end
  694. if mouse.Target ~= nil then
  695. debounce = true
  696. attacking = true
  697. tps = Instance.new("Sound", Torso)
  698. tps.Volume = 10
  699. tps.SoundId = "rbxassetid://2610939724"
  700. tps:Play()
  701. removeuseless:AddItem(tps,4)
  702. g1 = Instance.new("BodyGyro", Root)
  703. g1.D = 175
  704. g1.P = 20000
  705. g1.MaxTorque = Vector3.new(0,9000,0)
  706. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  707. removeuseless:AddItem(g1,.05)
  708. local fakemask = Instance.new("Part",Character)
  709. fakemask.Size = Vector3.new(1,1,1)
  710. fakemask.CFrame = mask.CFrame
  711. fakemask.Material = "Neon"
  712. fakemask.CanCollide = false
  713. fakemask.Anchored = true
  714. fakemask.BrickColor = BrickColor.new("Really black")
  715. fakemask.Transparency = .5
  716. local mfMask = Instance.new("SpecialMesh", fakemask)
  717. mfMask.MeshType = "FileMesh"
  718. mfMask.Scale = Vector3.new(1.25,1.25,1.25)
  719. mfMask.MeshId = "rbxassetid://12470186"
  720. local fakefedora = Instance.new("Part",Character)
  721. fakefedora.Size = Vector3.new(2,2,2)
  722. fakefedora.CFrame = fedora.CFrame
  723. fakefedora.CanCollide = false
  724. fakefedora.Transparency = .5
  725. fakefedora.Anchored = true
  726. fakefedora.BrickColor = BrickColor.new("Really black")
  727. local fakefedoram = Instance.new("SpecialMesh", fakefedora)
  728. fakefedoram.MeshType = "FileMesh"
  729. fakefedoram.Scale = Vector3.new(1.1, 1.1, 1.1)
  730. fakefedoram.MeshId = "rbxassetid://11144636"
  731. local fakehead = Instance.new("Part",Character)
  732. fakehead.Size = Vector3.new(1.01,1.01,1.01)
  733. fakehead.Anchored = true
  734. fakehead.CanCollide = false
  735. fakehead.Transparency = .5
  736. fakehead.BrickColor = BrickColor.new("Really black")
  737. fakehead.Material = "Neon"
  738. fakehead.CFrame = Head.CFrame
  739. local fakeheadmesh = Instance.new("SpecialMesh",fakehead)
  740. fakeheadmesh.MeshType = "Head"
  741. fakeheadmesh.Scale = Vector3.new(1.255,1.255,1.255)
  742. local fakelarm = Instance.new("Part",Character)
  743. fakelarm.CFrame = LeftArm.CFrame
  744. fakelarm.Size = Vector3.new(1,2,1)
  745. fakelarm.CanCollide = false
  746. fakelarm.BrickColor = BrickColor.new("Really black")
  747. fakelarm.Transparency = .5
  748. fakelarm.Material = "Neon"
  749. fakelarm.Anchored = true
  750. local fakerarm = Instance.new("Part",Character)
  751. fakerarm.CFrame = RightArm.CFrame
  752. fakerarm.Size = Vector3.new(1,2,1)
  753. fakerarm.Transparency = .5
  754. fakerarm.BrickColor = BrickColor.new("Really black")
  755. fakerarm.CanCollide = false
  756. fakerarm.Material = "Neon"
  757. fakerarm.Anchored = true
  758. local fakelleg = Instance.new("Part",Character)
  759. fakelleg.CFrame = LeftLeg.CFrame
  760. fakelleg.Size = Vector3.new(1,2,1)
  761. fakelleg.BrickColor = BrickColor.new("Really black")
  762. fakelleg.Transparency = .5
  763. fakelleg.CanCollide = false
  764. fakelleg.Material = "Neon"
  765. fakelleg.Anchored = true
  766. local fakerleg = Instance.new("Part",Character)
  767. fakerleg.CFrame = RightLeg.CFrame
  768. fakerleg.Size = Vector3.new(1,2,1)
  769. fakerleg.Transparency = .5
  770. fakerleg.BrickColor = BrickColor.new("Really black")
  771. fakerleg.CanCollide = false
  772. fakerleg.Material = "Neon"
  773. fakerleg.Anchored = true
  774. local fakeTorso = Instance.new("Part",Character)
  775. fakeTorso.CFrame = Torso.CFrame
  776. fakeTorso.Size = Vector3.new(2,2,1)
  777. fakeTorso.Transparency = .5
  778. fakeTorso.CanCollide = false
  779. fakeTorso.BrickColor = BrickColor.new("Really black")
  780. fakeTorso.Material = "Neon"
  781. fakeTorso.Anchored = true
  782. coroutine.wrap(function()
  783. for i = 1, 80 do
  784. fakemask.Transparency = fakemask.Transparency + .0125
  785. fakefedora.Transparency = fakefedora.Transparency + .0125
  786. fakehead.Transparency = fakehead.Transparency + .0125
  787. fakelarm.Transparency = fakelarm.Transparency + .0125
  788. fakerarm.Transparency = fakerarm.Transparency + .0125
  789. fakelleg.Transparency = fakelleg.Transparency + .0125
  790. fakerleg.Transparency = fakerleg.Transparency + .0125
  791. fakeTorso.Transparency = fakeTorso.Transparency + .0125
  792. swait()
  793. end
  794. fakemask:Remove()
  795. fakefedora:Remove()
  796. fakehead:Remove()
  797. fakelarm:Remove()
  798. fakerarm:Remove()
  799. fakelleg:Remove()
  800. fakerleg:Remove()
  801. fakeTorso:Remove()
  802. end)()
  803. Root.CFrame = CFrame.new(mouse.Hit.p) * CFrame.new(0,3.3,0)
  804. wait(.1)
  805. attacking = false
  806. debounce = false
  807. end
  808. elseif Press=='v' then
  809. if debounce then return end
  810. if not sidekick then return end
  811. if sidekickshootanim then return end
  812. sidekickshootanim = true
  813. for i = 1, 20 do
  814. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  815. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(2 + .1 * math.sin(sine/15),1.8 - .05 * math.sin(sine/14),.4 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(-20 + 2 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 8 * math.sin(sine/16))),.2)
  816. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  817. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(10 + 2 * math.sin(sine/22)),math.rad(120 - 2 * math.sin(sine/21)),math.rad(-10 - 2 * math.sin(sine/23))),.1)
  818. gun.Transparency = gun.Transparency + .05
  819. gun2.Transparency = gun2.Transparency + .05
  820. gun3.Transparency = gun3.Transparency + .05
  821. gun4.Transparency = gun4.Transparency + .05
  822. swait()
  823. end
  824. gunmesh.MeshId = "rbxassetid://430586811"
  825. gunmesh.TextureId = "rbxassetid://430586818"
  826. gunmesh.Scale = Vector3.new(.0011,.0011,.0011)
  827. gunweld.C0 = CFrame.new(-1.2,0,-.6) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90))
  828. for i = 1, 20 do
  829. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  830. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(2 + .1 * math.sin(sine/15),1.8 - .05 * math.sin(sine/14),.4 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(-20 + 2 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 8 * math.sin(sine/16))),.2)
  831. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  832. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(10 + 2 * math.sin(sine/22)),math.rad(120 - 2 * math.sin(sine/21)),math.rad(-10 - 2 * math.sin(sine/23))),.1)
  833. gun.Transparency = gun.Transparency - .05
  834. swait()
  835. end
  836. gun2.Transparency = 1
  837. gun3.Transparency = 1
  838. gun4.Transparency = 1
  839. uzi = false
  840. deserteagle = true
  841. raygun = true
  842. sidekickshootanim = false
  843. elseif Press=='c' then
  844. if debounce then return end
  845. if not sidekick then return end
  846. if sidekickshootanim then return end
  847. sidekickshootanim = true
  848. for i = 1, 20 do
  849. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  850. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(2 + .1 * math.sin(sine/15),1.8 - .05 * math.sin(sine/14),.4 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(-20 + 2 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 8 * math.sin(sine/16))),.2)
  851. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  852. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(10 + 2 * math.sin(sine/22)),math.rad(120 - 2 * math.sin(sine/21)),math.rad(-10 - 2 * math.sin(sine/23))),.1)
  853. gun.Transparency = gun.Transparency + .05
  854. swait()
  855. end
  856. gunmesh.MeshId = "rbxassetid://431258335"
  857. gunmesh.TextureId = "rbxassetid://431259201"
  858. gunmesh.Scale = Vector3.new(.003,.003,.003)
  859. gunweld.C0 = CFrame.new(0,-.3,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180))
  860. for i = 1, 20 do
  861. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  862. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(2 + .1 * math.sin(sine/15),1.8 - .05 * math.sin(sine/14),.4 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(-20 + 2 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 8 * math.sin(sine/16))),.2)
  863. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  864. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(10 + 2 * math.sin(sine/22)),math.rad(120 - 2 * math.sin(sine/21)),math.rad(-10 - 2 * math.sin(sine/23))),.1)
  865. gun.Transparency = gun.Transparency - .05
  866. gun2.Transparency = gun2.Transparency - .05
  867. gun3.Transparency = gun3.Transparency - .05
  868. gun4.Transparency = gun4.Transparency - .05
  869. swait()
  870. end
  871. gun2.Transparency = 0
  872. gun3.Transparency = 0
  873. gun4.Transparency = 0
  874. uzi = false
  875. deserteagle = true
  876. raygun = false
  877. sidekickshootanim = false
  878. elseif Press=='x' then
  879. if debounce then return end
  880. if not sidekick then return end
  881. if sidekickshootanim then return end
  882. sidekickshootanim = true
  883. for i = 1, 20 do
  884. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  885. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(2 + .1 * math.sin(sine/15),1.8 - .05 * math.sin(sine/14),.4 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(-20 + 2 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 8 * math.sin(sine/16))),.2)
  886. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  887. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(10 + 2 * math.sin(sine/22)),math.rad(120 - 2 * math.sin(sine/21)),math.rad(-10 - 2 * math.sin(sine/23))),.1)
  888. gun.Transparency = gun.Transparency + .05
  889. gun2.Transparency = gun2.Transparency + .05
  890. gun3.Transparency = gun3.Transparency + .05
  891. gun4.Transparency = gun4.Transparency + .05
  892. swait()
  893. end
  894. gunmesh.MeshId = "rbxassetid://72012794"
  895. gunmesh.TextureId = "rbxassetid://72012761"
  896. gunmesh.Scale = Vector3.new(1,1.1,1)
  897. gunweld.C0 = CFrame.new(0,-.45,.05) * CFrame.Angles(math.rad(90),math.rad(90),math.rad(90))
  898. for i = 1, 20 do
  899. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  900. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(2 + .1 * math.sin(sine/15),1.8 - .05 * math.sin(sine/14),.4 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(-20 + 2 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 8 * math.sin(sine/16))),.2)
  901. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  902. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(10 + 2 * math.sin(sine/22)),math.rad(120 - 2 * math.sin(sine/21)),math.rad(-10 - 2 * math.sin(sine/23))),.1)
  903. gun.Transparency = gun.Transparency - .05
  904. swait()
  905. end
  906. gun2.Transparency = 1
  907. gun3.Transparency = 1
  908. gun4.Transparency = 1
  909. uzi = true
  910. deserteagle = false
  911. raygun = false
  912. sidekickshootanim = false
  913. elseif Press=='z' then
  914. if debounce then return end
  915. if not sidekick then return end
  916. if sidekickshootanim then return end
  917. sidekickshootanim = true
  918. g1 = Instance.new("BodyGyro", Root)
  919. g1.D = 175
  920. g1.P = 20000
  921. g1.MaxTorque = Vector3.new(0,9000,0)
  922. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  923. coroutine.wrap(function()
  924. if sidekicktaunting then return end
  925. sidekicktaunting = true
  926. local mr={3182322877,3182252391,3182374535,3182388872,3182410995,3182425171,3182432426,3182466325}
  927. local r2 = mr[math.random(1,#mr)]
  928. local lc = Instance.new("Sound",thedice)
  929. lc.SoundId = "rbxassetid://"..r2
  930. lc.Volume = 10
  931. lc:Play()
  932. wait(.5)
  933. wait(lc.TimeLength)
  934. wait(4)
  935. lc:Remove()
  936. sidekicktaunting = false
  937. end)()
  938. if raygun then
  939. for i = 1, 1 do
  940. for i = 1, 15 do
  941. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  942. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(-10 + 2 * math.sin(sine/22)),math.rad(90 - 2 * math.sin(sine/21)),math.rad(10 - 2 * math.sin(sine/23))),.1)
  943. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  944. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(1.5 + .1 * math.sin(sine/15),2 - .05 * math.sin(sine/14),1 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(00 + 0 * math.sin(sine/18)),math.rad(20),math.rad(-91 + 1 * math.sin(sine/16))),.2)
  945. swait()
  946. end
  947. coroutine.wrap(function()
  948. local shoot = Instance.new("Sound",gunbox)
  949. shoot.SoundId = "rbxassetid://131179973"
  950. shoot.Volume = 8
  951. shoot:Play()
  952. local orbhit = false
  953. local orb = Instance.new("Part",Torso)
  954. orb.Size = Vector3.new(1,1,1)
  955. orb.Shape = "Ball"
  956. orb.BrickColor = BrickColor.new("Lime green")
  957. orb.Anchored = false
  958. orb.Transparency = 1
  959. orb.CanCollide = false
  960. orb.Material = "Neon"
  961. orb.CFrame = gunbox.CFrame
  962. local bov = Instance.new("BodyVelocity",orb)
  963. bov.maxForce = Vector3.new(99999,99999,99999)
  964. orb.CFrame = CFrame.new(orb.Position,mouse.Hit.p)
  965. bov.velocity = orb.CFrame.lookVector*325
  966. coroutine.wrap(function()
  967. while true do
  968. if orbhit then break end
  969. local magic = Instance.new("Part",Torso)
  970. magic.BrickColor = BrickColor.new("Lime green")
  971. magic.Anchored = true
  972. magic.CanCollide = false
  973. magic.CFrame = orb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  974. magic.Material = "Neon"
  975. magic.Size = Vector3.new(2,2,2)
  976. coroutine.wrap(function()
  977. for i = 1, 40 do
  978. magic.Transparency = magic.Transparency + .025
  979. magic.Size = magic.Size - Vector3.new(.05,.05,.05)
  980. swait()
  981. end
  982. magic:Remove()
  983. end)()
  984. swait()
  985. end
  986. end)()
  987. coroutine.wrap(function()
  988. while wait(.05) do
  989. if orbhit then break end
  990. local ring = Instance.new("Part",Torso)
  991. ring.Anchored = true
  992. ring.CanCollide = false
  993. ring.Size = Vector3.new(1,1,1)
  994. ring.Material = "Neon"
  995. ring.BrickColor = BrickColor.new("Lime green")
  996. ring.CFrame = orb.CFrame * CFrame.Angles(math.rad(90),0,0)
  997. local ringmesh = Instance.new("SpecialMesh",ring)
  998. ringmesh.MeshId = "rbxassetid://471124075"
  999. ringmesh.Scale = Vector3.new(.001,.001,.001)
  1000. coroutine.wrap(function()
  1001. for i = 1, 40 do
  1002. ringmesh.Scale = ringmesh.Scale + Vector3.new(.005,.002,.005)
  1003. ring.Transparency = ring.Transparency + .025
  1004. swait()
  1005. end
  1006. ring:Remove()
  1007. end)()
  1008. end
  1009. end)()
  1010. coroutine.wrap(function()
  1011. wait(5)
  1012. if orbhit then
  1013. else
  1014. orbhit = true
  1015. orb:Remove()
  1016. end
  1017. end)()
  1018. orb.Touched:connect(function(orbh)
  1019. if orbh:IsA("Part") and orbh.Parent.Parent ~= Character and orbh.Parent ~= Character then
  1020. if orbhit then return end
  1021. orbhit = true
  1022. Hit = damagealll(28,orb.Position)
  1023. for _,v in pairs(Hit) do
  1024. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  1025. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  1026. slachtoffer:TakeDamage(math.random(69,82))
  1027. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  1028. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  1029. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1030. vel.velocity = CFrame.new(orb.Position,torso.Position).lookVector*195
  1031. removeuseless:AddItem(vel,.1)
  1032. end
  1033. end
  1034. orb.Anchored = true
  1035. orb.Transparency = 1
  1036. local soundbox = Instance.new("Part",Torso)
  1037. soundbox.CFrame = orb.CFrame
  1038. soundbox.Size = Vector3.new(.1,.1,.1)
  1039. soundbox.Anchored = true
  1040. soundbox.CanCollide = false
  1041. soundbox.Transparency = 1
  1042. removeuseless:AddItem(soundbox,5)
  1043. local explosionsound = Instance.new("Sound",soundbox)
  1044. explosionsound.SoundId = "rbxassetid://2812343636"
  1045. explosionsound.TimePosition = .6
  1046. explosionsound.Volume = 10
  1047. explosionsound:Play()
  1048. local explosion = Instance.new("Part",Torso)
  1049. explosion.Size = Vector3.new(1,1,1)
  1050. explosion.Anchored = true
  1051. explosion.CanCollide = false
  1052. explosion.BrickColor = BrickColor.new("Lime green")
  1053. explosion.Material = "Neon"
  1054. explosion.Shape = "Ball"
  1055. explosion.CFrame = orb.CFrame
  1056. for i = 1, 40 do
  1057. local ps = Instance.new("Part",Torso)
  1058. ps.Size = Vector3.new(1,1,1)
  1059. ps.Anchored = true
  1060. ps.BrickColor = BrickColor.new("Lime green")
  1061. ps.Material = "Neon"
  1062. ps.Transparency = 0
  1063. ps.CFrame = explosion.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1064. local psm = Instance.new("SpecialMesh",ps)
  1065. psm.MeshType = "Sphere"
  1066. psm.Scale = Vector3.new(2,1,2)
  1067. coroutine.wrap(function()
  1068. for i = 1, 30 do
  1069. psm.Scale = psm.Scale + Vector3.new(0,6,0)
  1070. swait()
  1071. end
  1072. for i = 1, 20 do
  1073. psm.Scale = psm.Scale + Vector3.new(0,2,0)
  1074. ps.Transparency = ps.Transparency + .05
  1075. swait()
  1076. end
  1077. ps:Remove()
  1078. end)()
  1079. end
  1080. coroutine.wrap(function()
  1081. for i = 1, 30 do
  1082. local bamwave = Instance.new("Part",Torso)
  1083. bamwave.CanCollide = false
  1084. bamwave.Anchored = true
  1085. bamwave.BrickColor = BrickColor.new("Lime green")
  1086. bamwave.Name = "bamwave"
  1087. bamwave.Transparency = .85
  1088. bamwave.CFrame = orb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
  1089. local bamwavemesh = Instance.new("SpecialMesh",bamwave)
  1090. bamwavemesh.MeshId = "rbxassetid://662586858"
  1091. bamwavemesh.Name = "explodmesh34"
  1092. bamwavemesh.Scale = Vector3.new(.04,.01,.04)
  1093. local wshockwave2 = Instance.new("Part", Torso)
  1094. wshockwave2.Size = Vector3.new(1,1,1)
  1095. wshockwave2.CanCollide = false
  1096. wshockwave2.Anchored = true
  1097. wshockwave2.Transparency = .9
  1098. wshockwave2.BrickColor = BrickColor.new("Lime green")
  1099. wshockwave2.CFrame = CFrame.new(orb.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1100. local wshockwavemesh2 = Instance.new("SpecialMesh",wshockwave2)
  1101. wshockwavemesh2.Scale = Vector3.new(1,.05,1)
  1102. wshockwavemesh2.Name = "explodmesh33"
  1103. wshockwavemesh2.MeshId = "rbxassetid://20329976"
  1104. coroutine.wrap(function()
  1105. for i = 1, 30 do
  1106. wshockwave2.CFrame = wshockwave2.CFrame:lerp(CFrame.new(orb.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))),.02)
  1107. bamwave.CFrame = bamwave.CFrame:lerp(orb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))),.02)
  1108. bamwavemesh.Scale = bamwavemesh.Scale + Vector3.new(.02,0,.02)
  1109. wshockwavemesh2.Scale = wshockwavemesh2.Scale + Vector3.new(3,.05,3)
  1110. bamwave.Transparency = bamwave.Transparency + .0029
  1111. wshockwave2.Transparency = wshockwave2.Transparency + .0029
  1112. swait()
  1113. end
  1114. for i = 1, 40 do
  1115. wshockwave2.CFrame = wshockwave2.CFrame:lerp(CFrame.new(orb.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))),.02)
  1116. bamwave.CFrame = bamwave.CFrame:lerp(orb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))),.02)
  1117. bamwavemesh.Scale = bamwavemesh.Scale + Vector3.new(.01,0,.01)
  1118. wshockwavemesh2.Scale = wshockwavemesh2.Scale + Vector3.new(1,.05,1)
  1119. bamwave.Transparency = bamwave.Transparency + .0029
  1120. wshockwave2.Transparency = wshockwave2.Transparency + .0029
  1121. swait()
  1122. end
  1123. bamwave:Remove()
  1124. wshockwave2:Remove()
  1125. end)()
  1126. end
  1127. end)()
  1128. coroutine.wrap(function()
  1129. for i = 1, 20 do
  1130. explosion.Size = explosion.Size + Vector3.new(2,2,2)
  1131. swait()
  1132. end
  1133. for i = 1, 20 do
  1134. explosion.Size = explosion.Size + Vector3.new(.75,.75,.75)
  1135. explosion.Transparency = explosion.Transparency + .05
  1136. swait()
  1137. end
  1138. explosion:Remove()
  1139. orb:Remove()
  1140. end)()
  1141. end
  1142. end)
  1143. removeuseless:AddItem(shoot,10)
  1144. for i = 1, 1 do
  1145. local blast = Instance.new("Part",Torso)
  1146. blast.Size = Vector3.new(1,1,1)
  1147. blast.Anchored = true
  1148. blast.CanCollide = false
  1149. blast.Material = "Neon"
  1150. blast.Shape = "Ball"
  1151. blast.BrickColor = BrickColor.new("Lime green")
  1152. blast.CFrame = gunbox.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1153. coroutine.wrap(function()
  1154. for i = 1, 20 do
  1155. blast.Size = blast.Size + Vector3.new(1.1,1.1,1.1)
  1156. blast.Transparency = blast.Transparency + .05
  1157. swait()
  1158. end
  1159. blast:Remove()
  1160. end)()
  1161. end
  1162. end)()
  1163. for i = 1, 15 do
  1164. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  1165. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),.25) * CFrame.Angles(math.rad(-10 + 2 * math.sin(sine/22)),math.rad(90 - 2 * math.sin(sine/21)),math.rad(10 - 2 * math.sin(sine/23))),.1)
  1166. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.35) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  1167. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(1.4 + .1 * math.sin(sine/15),1.7 - .05 * math.sin(sine/14),1 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(00 + 0 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 1 * math.sin(sine/16))),.2)
  1168. swait()
  1169. end
  1170. swait()
  1171. end
  1172. elseif uzi then
  1173. for i = 1, 32 do
  1174. for i = 1, 3 do
  1175. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  1176. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(-10 + 2 * math.sin(sine/22)),math.rad(90 - 2 * math.sin(sine/21)),math.rad(10 - 2 * math.sin(sine/23))),.1)
  1177. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  1178. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(1.5 + .1 * math.sin(sine/15),2 - .05 * math.sin(sine/14),1 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(00 + 0 * math.sin(sine/18)),math.rad(20),math.rad(-91 + 1 * math.sin(sine/16))),.2)
  1179. swait()
  1180. end
  1181. coroutine.wrap(function()
  1182. local lazer = Instance.new("Part",Torso)
  1183. lazer.Size = Vector3.new(.07,.07,.07)
  1184. lazer.CanCollide = false
  1185. lazer.Anchored = true
  1186. lazer.CFrame = gunbox.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90))
  1187. lazer.Shape = "Cylinder"
  1188. lazer.Material = "Neon"
  1189. lazer.BrickColor = BrickColor.new("Bright yellow")
  1190. local STARTPOS = gunbox.CFrame*CFrame.new(0,0,0).p
  1191. local ENDHIT,ENDPOS = ray2(STARTPOS,mouse.Hit.p,650,Character)
  1192. local DISTANCE = (STARTPOS - ENDPOS).magnitude
  1193. lazer.CFrame = CFrame.new(STARTPOS,ENDPOS)*CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(math.rad(0),math.rad(90),0)
  1194. lazer.Size = Vector3.new(DISTANCE,.25,.25)
  1195. local shoot = Instance.new("Sound",gunbox)
  1196. shoot.SoundId = "rbxassetid://165946560"
  1197. shoot.Volume = 8
  1198. shoot:Play()
  1199. Hit = damagealll(2,ENDPOS)
  1200. for _,v in pairs(Hit) do
  1201. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  1202. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  1203. slachtoffer:TakeDamage(math.random(7,14))
  1204. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  1205. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  1206. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1207. vel.velocity = CFrame.new(ENDPOS,torso.Position).lookVector*8
  1208. removeuseless:AddItem(vel,.1)
  1209. end
  1210. end
  1211. removeuseless:AddItem(shoot,10)
  1212. local shell = Instance.new("Part",Torso)
  1213. shell.Anchored = false
  1214. shell.CanCollide = true
  1215. shell.Size = Vector3.new(.15,.15,1.2)
  1216. shell.BrickColor = BrickColor.new("Bright yellow")
  1217. shell.CFrame = gun.CFrame * CFrame.new(0,0,2)
  1218. local shellmesh = Instance.new("SpecialMesh",shell)
  1219. shellmesh.MeshId = "rbxassetid://3182118922"
  1220. shellmesh.Scale = Vector3.new(0.018, 0.018, 0.018)
  1221. shelldidhit = false
  1222. coroutine.wrap(function()
  1223. shell.Touched:connect(function(shellhit)
  1224. if shellhit.Parent.Parent ~= Character and shellhit.Parent ~= Character then
  1225. if shelldidhit then return end
  1226. shelldidhit = true
  1227. r = shellsound2[math.random(1,#shellsound2)]
  1228. local daic = Instance.new("Sound",shell)
  1229. daic.SoundId = "rbxassetid://"..r
  1230. daic.Volume = 10
  1231. daic:Play()
  1232. end
  1233. end)
  1234. for i = 1, 10 do
  1235. shell.CFrame = shell.CFrame:lerp(CFrame.new(gl.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))),.2)
  1236. swait()
  1237. end
  1238. wait(.25)
  1239. for i = 1, 100 do
  1240. shell.Transparency = shell.Transparency + .01
  1241. swait()
  1242. end
  1243. shell:Remove()
  1244. end)()
  1245. for i = 1, 1 do
  1246. local blast = Instance.new("Part",Torso)
  1247. blast.Size = Vector3.new(1,1,1)
  1248. blast.Anchored = true
  1249. blast.CanCollide = false
  1250. blast.Material = "Neon"
  1251. blast.BrickColor = BrickColor.new("Bright yellow")
  1252. blast.CFrame = gunbox.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1253. local blast2 = Instance.new("Part",Torso)
  1254. blast2.Size = Vector3.new(.5,.5,.5)
  1255. blast2.Anchored = true
  1256. blast2.CanCollide = false
  1257. blast2.Material = "Neon"
  1258. blast2.BrickColor = BrickColor.new("Bright yellow")
  1259. blast2.CFrame = CFrame.new(ENDPOS) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1260. coroutine.wrap(function()
  1261. for i = 1, 2 do
  1262. blast2.CFrame = blast2.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1263. blast.CFrame = blast.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1264. swait()
  1265. end
  1266. lazer:Remove()
  1267. blast2:Remove()
  1268. blast:Remove()
  1269. end)()
  1270. end
  1271. end)()
  1272. for i = 1, 2 do
  1273. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  1274. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),.25) * CFrame.Angles(math.rad(-10 + 2 * math.sin(sine/22)),math.rad(90 - 2 * math.sin(sine/21)),math.rad(10 - 2 * math.sin(sine/23))),.1)
  1275. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.35) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.4)
  1276. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(1.4 + .1 * math.sin(sine/15),1.7 - .05 * math.sin(sine/14),1 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(00 + 0 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 1 * math.sin(sine/16))),.4)
  1277. swait()
  1278. end
  1279. swait()
  1280. end
  1281. local tsound = Instance.new("Sound",gun)
  1282. tsound.SoundId = "rbxassetid://2323955180"
  1283. tsound.Volume = 10
  1284. tsound:Play()
  1285. removeuseless:AddItem(tsound,6)
  1286. local mag = gun3:Clone() mag.Parent = Torso
  1287. for i,v in pairs(mag:GetDescendants()) do
  1288. if v:IsA("ManualWeld") then v:Remove() end end
  1289. mag.Size = Vector3.new(.5,.5,.5)
  1290. mag.CanCollide = true
  1291. coroutine.wrap(function()
  1292. wait(10)
  1293. for i = 1, 40 do
  1294. mag.Transparency = mag.Transparency + .025
  1295. swait()
  1296. end
  1297. end)()
  1298. else
  1299. for i = 1, 7 do
  1300. for i = 1, 15 do
  1301. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  1302. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(-10 + 2 * math.sin(sine/22)),math.rad(90 - 2 * math.sin(sine/21)),math.rad(10 - 2 * math.sin(sine/23))),.1)
  1303. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  1304. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(1.5 + .1 * math.sin(sine/15),2 - .05 * math.sin(sine/14),1 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(00 + 0 * math.sin(sine/18)),math.rad(20),math.rad(-91 + 1 * math.sin(sine/16))),.2)
  1305. swait()
  1306. end
  1307. coroutine.wrap(function()
  1308. local lazer = Instance.new("Part",Torso)
  1309. lazer.Size = Vector3.new(.15,.15,.15)
  1310. lazer.CanCollide = false
  1311. lazer.Anchored = true
  1312. lazer.CFrame = gunbox.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90))
  1313. lazer.Shape = "Cylinder"
  1314. lazer.Material = "Neon"
  1315. lazer.BrickColor = BrickColor.new("Bright yellow")
  1316. local STARTPOS = gunbox.CFrame*CFrame.new(0,0,0).p
  1317. local ENDHIT,ENDPOS = ray2(STARTPOS,mouse.Hit.p,650,Character)
  1318. local DISTANCE = (STARTPOS - ENDPOS).magnitude
  1319. lazer.CFrame = CFrame.new(STARTPOS,ENDPOS)*CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(math.rad(0),math.rad(90),0)
  1320. lazer.Size = Vector3.new(DISTANCE,1,1)
  1321. local shoot = Instance.new("Sound",gunbox)
  1322. shoot.SoundId = "rbxassetid://131205975"
  1323. shoot.Volume = 8
  1324. shoot:Play()
  1325. Hit = damagealll(3,ENDPOS)
  1326. for _,v in pairs(Hit) do
  1327. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  1328. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  1329. slachtoffer:TakeDamage(math.random(26,41))
  1330. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  1331. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  1332. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1333. vel.velocity = CFrame.new(ENDPOS,torso.Position).lookVector*7
  1334. removeuseless:AddItem(vel,.1)
  1335. end
  1336. end
  1337. removeuseless:AddItem(shoot,10)
  1338. local shell = Instance.new("Part",Torso)
  1339. shell.Anchored = false
  1340. shell.CanCollide = true
  1341. shell.Size = Vector3.new(.3,.3,2)
  1342. shell.BrickColor = BrickColor.new("Bright yellow")
  1343. shell.CFrame = gun.CFrame * CFrame.new(0,0,-4)
  1344. local shellmesh = Instance.new("SpecialMesh",shell)
  1345. shellmesh.MeshId = "rbxassetid://3182118922"
  1346. shellmesh.Scale = Vector3.new(0.03, 0.03, 0.03)
  1347. shelldidhit = false
  1348. coroutine.wrap(function()
  1349. shell.Touched:connect(function(shellhit)
  1350. if shellhit.Parent.Parent ~= Character and shellhit.Parent ~= Character then
  1351. if shelldidhit then return end
  1352. shelldidhit = true
  1353. r = shellsound2[math.random(1,#shellsound2)]
  1354. local daic = Instance.new("Sound",shell)
  1355. daic.SoundId = "rbxassetid://"..r
  1356. daic.Volume = 10
  1357. daic:Play()
  1358. end
  1359. end)
  1360. for i = 1, 10 do
  1361. shell.CFrame = shell.CFrame:lerp(CFrame.new(gl.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))),.2)
  1362. swait()
  1363. end
  1364. wait(15)
  1365. for i = 1, 100 do
  1366. shell.Transparency = shell.Transparency + .01
  1367. swait()
  1368. end
  1369. shell:Remove()
  1370. end)()
  1371. for i = 1, 3 do
  1372. local blast = Instance.new("Part",Torso)
  1373. blast.Size = Vector3.new(2,2,2)
  1374. blast.Anchored = true
  1375. blast.CanCollide = false
  1376. blast.Material = "Neon"
  1377. blast.BrickColor = BrickColor.new("Bright yellow")
  1378. blast.CFrame = gunbox.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1379. local blast2 = Instance.new("Part",Torso)
  1380. blast2.Size = Vector3.new(1.25,1.25,1.25)
  1381. blast2.Anchored = true
  1382. blast2.CanCollide = false
  1383. blast2.Material = "Neon"
  1384. blast2.BrickColor = BrickColor.new("Bright yellow")
  1385. blast2.CFrame = CFrame.new(ENDPOS) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1386. coroutine.wrap(function()
  1387. for i = 1, 4 do
  1388. blast2.CFrame = blast2.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1389. blast.CFrame = blast.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  1390. swait()
  1391. end
  1392. lazer:Remove()
  1393. blast2:Remove()
  1394. blast:Remove()
  1395. end)()
  1396. end
  1397. end)()
  1398. for i = 1, 7 do
  1399. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  1400. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),.25) * CFrame.Angles(math.rad(-10 + 2 * math.sin(sine/22)),math.rad(90 - 2 * math.sin(sine/21)),math.rad(10 - 2 * math.sin(sine/23))),.1)
  1401. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.35) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.4)
  1402. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(1.4 + .1 * math.sin(sine/15),1.7 - .05 * math.sin(sine/14),1 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(00 + 0 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 1 * math.sin(sine/16))),.4)
  1403. swait()
  1404. end
  1405. swait()
  1406. end
  1407. local tsound = Instance.new("Sound",gun)
  1408. tsound.SoundId = "rbxassetid://2323955180"
  1409. tsound.Volume = 10
  1410. tsound:Play()
  1411. removeuseless:AddItem(tsound,6)
  1412. local mag = gun3:Clone() mag.Parent = Torso
  1413. for i,v in pairs(mag:GetDescendants()) do
  1414. if v:IsA("ManualWeld") then v:Remove() end end
  1415. mag.Size = Vector3.new(.5,.5,.5)
  1416. mag.CanCollide = true
  1417. coroutine.wrap(function()
  1418. wait(10)
  1419. for i = 1, 40 do
  1420. mag.Transparency = mag.Transparency + .025
  1421. swait()
  1422. end
  1423. end)()
  1424. end
  1425. removeuseless:AddItem(g1,.001)
  1426. sidekickshootanim = false
  1427. elseif Press=='b' then
  1428. if glasson then
  1429. if glassonp then return end
  1430. glassonp = true
  1431. glasson = false
  1432. for i = 1, 20 do
  1433. glasses.Transparency = glasses.Transparency + .05
  1434. swait()
  1435. end
  1436. glassonp = false
  1437. else
  1438. if glassonp then return end
  1439. glassonp = true
  1440. glasson = true
  1441. for i = 1, 20 do
  1442. glasses.Transparency = glasses.Transparency - .05
  1443. swait()
  1444. end
  1445. glassonp = false
  1446. end
  1447. elseif Press=='j' then
  1448. if sidekick then return end
  1449. if debounce then return end
  1450. if invisible then
  1451. ws = 0
  1452. attacking = true
  1453. debounce = true
  1454. local cy = Instance.new("Part",Torso)
  1455. cy.Size = Vector3.new(0,.1,.1)
  1456. cy.Anchored = true
  1457. cy.Shape = "Cylinder"
  1458. cy.Material = "Neon"
  1459. cy.BrickColor = BrickColor.new("White")
  1460. cy.CanCollide = false
  1461. cy.CFrame = Root.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))
  1462. local portalopen = Instance.new("Sound",cy)
  1463. portalopen.SoundId = "rbxassetid://1888686669"
  1464. portalopen.Volume = 10
  1465. portalopen:Play()
  1466. for i = 1, 20 do
  1467. cy.Size = cy.Size + Vector3.new(0,.5,.5)
  1468. swait()
  1469. end
  1470. wait(.5)
  1471. doomtheme.Volume = 0
  1472. local m = Instance.new("Sound",Torso)
  1473. m.SoundId = "rbxassetid://148894535"
  1474. m.Volume = 10
  1475. m:Play()
  1476. for i = 1, 20 do
  1477. doomtheme.Volume = doomtheme.Volume + .2
  1478. slaten.Transparency = slaten.Transparency - .05
  1479. slaten2.Transparency = slaten2.Transparency - .05
  1480. eyo.Transparency = eyo.Transparency - .05
  1481. fedora.Transparency = fedora.Transparency - .05
  1482. mask.Transparency = mask.Transparency - .05
  1483. Torso.Transparency = Torso.Transparency - .05
  1484. RightLeg.Transparency = RightLeg.Transparency - .05
  1485. LeftLeg.Transparency = LeftLeg.Transparency - .05
  1486. RightArm.Transparency = RightArm.Transparency - .05
  1487. LeftArm.Transparency = LeftArm.Transparency - .05
  1488. Head.Transparency = Head.Transparency - .05
  1489. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  1490. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, .15, 0) * CFrame.Angles(math.rad(10), math.rad(2), math.rad(10)), 0.2)
  1491. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, .15, 0) * CFrame.Angles(math.rad(-10), math.rad(-2), math.rad(-10)), 0.2)
  1492. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 7, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 0.2)
  1493. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  1494. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  1495. swait()
  1496. end
  1497. coroutine.wrap(function()
  1498. for i = 1, 20 do
  1499. cy.Size = cy.Size - Vector3.new(0,.5,.5)
  1500. swait()
  1501. end
  1502. cy:Remove()
  1503. end)()
  1504. for i = 1, 20 do
  1505. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4, 1, 0.501) * CFrame.Angles(math.rad(-80), math.rad(-40), math.rad(2)), .2)
  1506. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, 0, .3) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), .2)
  1507. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-80), math.rad(7), math.rad(0)), .2)
  1508. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.2, .8) * CFrame.Angles(math.rad(-80), math.rad(10), math.rad(0)), .2)
  1509. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 1.9, -.34) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(10)), .2)
  1510. swait()
  1511. end
  1512. debounce = false
  1513. attacking = false
  1514. invisible = false
  1515. ws = 32
  1516. else
  1517. debounce = true
  1518. attacking = true
  1519. ws = 0
  1520. for i = 1, 15 do
  1521. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  1522. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  1523. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.33) * CFrame.Angles(math.rad(-80 + 2 * math.sin(sine/12)),math.rad(-94 + 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  1524. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.2)
  1525. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  1526. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  1527. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1528. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  1529. swait()
  1530. end
  1531. local cy = Instance.new("Part",Torso)
  1532. cy.Size = Vector3.new(0,.1,.1)
  1533. cy.Anchored = true
  1534. cy.Shape = "Cylinder"
  1535. cy.Material = "Neon"
  1536. cy.BrickColor = BrickColor.new("White")
  1537. cy.CanCollide = false
  1538. cy.CFrame = Root.CFrame * CFrame.new(0,5,8) * CFrame.Angles(math.rad(0),math.rad(90),0)
  1539. local portalopen = Instance.new("Sound",cy)
  1540. portalopen.SoundId = "rbxassetid://1888686669"
  1541. portalopen.Volume = 10
  1542. portalopen:Play()
  1543. for i = 1, 20 do
  1544. cy.Size = cy.Size + Vector3.new(0,.5,.5)
  1545. swait()
  1546. end
  1547. wait(.5)
  1548. local m = Instance.new("Sound",Torso)
  1549. m.SoundId = "rbxassetid://148894535"
  1550. m.Volume = 10
  1551. m:Play()
  1552. removeuseless:AddItem(m,6)
  1553. invisible = true
  1554. for i = 1, 20 do
  1555. doomtheme.Volume = doomtheme.Volume - .5
  1556. slaten.Transparency = slaten.Transparency + .05
  1557. slaten2.Transparency = slaten2.Transparency + .05
  1558. eyo.Transparency = eyo.Transparency + .05
  1559. fedora.Transparency = fedora.Transparency + .05
  1560. mask.Transparency = mask.Transparency + .05
  1561. Torso.Transparency = Torso.Transparency + .05
  1562. RightLeg.Transparency = RightLeg.Transparency + .05
  1563. LeftLeg.Transparency = LeftLeg.Transparency + .05
  1564. RightArm.Transparency = RightArm.Transparency + .05
  1565. LeftArm.Transparency = LeftArm.Transparency + .05
  1566. Head.Transparency = Head.Transparency + .05
  1567. Root.CFrame = Root.CFrame:lerp(CFrame.new(cy.Position),.2)
  1568. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  1569. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
  1570. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
  1571. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/12), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/12)), math.rad(0), math.rad(0)), 0.2)
  1572. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2 + .02 * math.sin(sine/12), 0.2 + .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/12)), math.rad(20), math.rad(0)), 0.2)
  1573. swait()
  1574. end
  1575. for i = 1, 20 do
  1576. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  1577. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  1578. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.33) * CFrame.Angles(math.rad(-80 + 2 * math.sin(sine/12)),math.rad(-94 + 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  1579. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  1580. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  1581. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  1582. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1583. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  1584. cy.Size = cy.Size - Vector3.new(0,.5,.5)
  1585. swait()
  1586. end
  1587. cy:Remove()
  1588. attacking = false
  1589. debounce = false
  1590. ws = 32
  1591. end
  1592. elseif Press=='h' then
  1593. if invisible then return end
  1594. if sidekick then
  1595. if sidekickshootanim then return end
  1596. if debounce then return end
  1597. sidekickshootanim = true
  1598. debounce = true
  1599. attacking = true
  1600. deserteagle = false
  1601. uzi = false
  1602. raygun = false
  1603. ws = 0
  1604. change = .5
  1605. for i = 1, 30 do
  1606. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  1607. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(2 + .1 * math.sin(sine/15),1.8 - .05 * math.sin(sine/14),.4 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(-20 + 2 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 8 * math.sin(sine/16))),.2)
  1608. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  1609. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(10 + 2 * math.sin(sine/22)),math.rad(120 - 2 * math.sin(sine/21)),math.rad(-10 - 2 * math.sin(sine/23))),.1)
  1610. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  1611. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  1612. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(1.5,1.1,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(171)), 0.2)
  1613. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  1614. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  1615. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  1616. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1617. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  1618. swait()
  1619. end
  1620. local snap = Instance.new("Sound",Torso)
  1621. snap.SoundId = "rbxassetid://3154155968"
  1622. snap.Volume = 10
  1623. snap:Play()
  1624. coroutine.wrap(function()
  1625. for i = 1, 7 do
  1626. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1627. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.4)
  1628. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.95,1.7,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(208)), 0.4)
  1629. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.4)
  1630. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.4)
  1631. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.4)
  1632. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.4)
  1633. swait()
  1634. end
  1635. for i = 1, 20 do
  1636. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  1637. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  1638. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(1.3,1.4,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(188)), 0.2)
  1639. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  1640. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  1641. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  1642. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1643. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  1644. swait()
  1645. end
  1646. attacking = false
  1647. end)()
  1648. local cy = Instance.new("Part",Torso)
  1649. cy.Size = Vector3.new(0,.1,.1)
  1650. cy.Anchored = true
  1651. cy.Shape = "Cylinder"
  1652. cy.Material = "Neon"
  1653. cy.BrickColor = BrickColor.new("White")
  1654. cy.CanCollide = false
  1655. cy.CFrame = Root.CFrame * CFrame.new(5,2.5,4) * CFrame.Angles(math.rad(0),math.rad(90),0)
  1656. local portalopen = Instance.new("Sound",cy)
  1657. portalopen.SoundId = "rbxassetid://1888686669"
  1658. portalopen.Volume = 10
  1659. portalopen:Play()
  1660. for i = 1, 20 do
  1661. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  1662. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(2 + .1 * math.sin(sine/15),1.8 - .05 * math.sin(sine/14),.4 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(-20 + 2 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 8 * math.sin(sine/16))),.2)
  1663. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  1664. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(10 + 2 * math.sin(sine/22)),math.rad(120 - 2 * math.sin(sine/21)),math.rad(-10 - 2 * math.sin(sine/23))),.1)
  1665. cy.Size = cy.Size + Vector3.new(0,.4,.4)
  1666. swait()
  1667. end
  1668. for i = 1, 30 do
  1669. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  1670. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(2 + .1 * math.sin(sine/15),1.8 - .05 * math.sin(sine/14),.4 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(-20 + 2 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 8 * math.sin(sine/16))),.2)
  1671. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  1672. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(10 + 2 * math.sin(sine/22)),math.rad(120 - 2 * math.sin(sine/21)),math.rad(-10 - 2 * math.sin(sine/23))),.1)
  1673. swait()
  1674. end
  1675. for i = 1, 20 do
  1676. thedice.CFrame = thedice.CFrame:lerp(CFrame.new(cy.Position),.2)
  1677. righthand.Transparency = righthand.Transparency + .05
  1678. righthand2.Transparency = righthand2.Transparency + .05
  1679. thedice.Transparency = thedice.Transparency + .05
  1680. fedora2.Transparency = fedora2.Transparency + .05
  1681. glasses.Transparency = glasses.Transparency + .05
  1682. hair.Transparency = hair.Transparency + .05
  1683. gun.Transparency = gun.Transparency + .05
  1684. gun2.Transparency = gun2.Transparency + .05
  1685. gun3.Transparency = gun3.Transparency + .05
  1686. gun4.Transparency = gun4.Transparency + .05
  1687. swait()
  1688. end
  1689. for i = 1, 20 do
  1690. cy.Size = cy.Size - Vector3.new(0,.4,.4)
  1691. swait()
  1692. end
  1693. cy:Remove()
  1694. thedice:Remove()
  1695. fedora2:Remove()
  1696. glasses:Remove()
  1697. righthand:Remove()
  1698. righthand2:Remove()
  1699. hair:Remove()
  1700. gun:Remove()
  1701. gun2:Remove()
  1702. mouth:Remove()
  1703. gun3:Remove()
  1704. gun4:Remove()
  1705. gunbox:Remove()
  1706. eyes:Remove()
  1707. sidekickshootanim = false
  1708. sidekick = false
  1709. debounce = false
  1710. else
  1711. if debounce then return end
  1712. debounce = true
  1713. attacking = true
  1714. sidekick = true
  1715. deserteagle = true
  1716. uzi = false
  1717. raygun = false
  1718. glasson = true
  1719. ws = 0
  1720. change = .5
  1721. for i = 1, 30 do
  1722. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  1723. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  1724. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(1.5,1.1,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(171)), 0.2)
  1725. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  1726. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  1727. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  1728. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1729. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  1730. swait()
  1731. end
  1732. local snap = Instance.new("Sound",Torso)
  1733. snap.SoundId = "rbxassetid://3154155968"
  1734. snap.Volume = 10
  1735. snap:Play()
  1736. coroutine.wrap(function()
  1737. for i = 1, 7 do
  1738. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1739. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.4)
  1740. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.95,1.7,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(208)), 0.4)
  1741. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.4)
  1742. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.4)
  1743. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.4)
  1744. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.4)
  1745. swait()
  1746. end
  1747. for i = 1, 30 do
  1748. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  1749. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  1750. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(1.3,1.4,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(188)), 0.2)
  1751. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  1752. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  1753. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  1754. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1755. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  1756. swait()
  1757. end
  1758. end)()
  1759. local cy = Instance.new("Part",Torso)
  1760. cy.Size = Vector3.new(0,.1,.1)
  1761. cy.Anchored = true
  1762. cy.Shape = "Cylinder"
  1763. cy.Material = "Neon"
  1764. cy.BrickColor = BrickColor.new("White")
  1765. cy.CanCollide = false
  1766. cy.CFrame = Root.CFrame * CFrame.new(5,2.5,4) * CFrame.Angles(math.rad(0),math.rad(90),0)
  1767. local portalopen = Instance.new("Sound",cy)
  1768. portalopen.SoundId = "rbxassetid://1888686669"
  1769. portalopen.Volume = 10
  1770. portalopen:Play()
  1771. for i = 1, 20 do
  1772. cy.Size = cy.Size + Vector3.new(0,.4,.4)
  1773. swait()
  1774. end
  1775. wait(.5)
  1776. local entrysound={3182251817,3182252095,3182259340,3182291263,3182444133,3182443830}
  1777. local z = entrysound[math.random(1,#entrysound)]
  1778. thedice = Instance.new("Part",Torso)
  1779. thedice.CanCollide = true
  1780. thedice.CFrame = cy.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-13),math.rad(0),math.rad(0))
  1781. thedice.Anchored = true
  1782. thedice.Transparency = 1
  1783. thedice.CanCollide = false
  1784. thedice.Size = Vector3.new(6,6,6)
  1785. local dicemesh = Instance.new("SpecialMesh",thedice)
  1786. dicemesh.MeshId = "rbxassetid://95358536"
  1787. dicemesh.TextureId = "rbxassetid://100025876"
  1788. dicemesh.Scale = Vector3.new(.75,.75,.75)
  1789. local entrys = Instance.new("Sound",thedice)
  1790. entrys.SoundId = "rbxassetid://"..z
  1791. entrys.Volume = 10
  1792. entrys:Play()
  1793. removeuseless:AddItem(entrys,4)
  1794. fedora2 = Instance.new("Part",Character)
  1795. fedora2.Size = Vector3.new(2,2,2)
  1796. fedora2.CFrame = thedice.CFrame
  1797. fedora2.CanCollide = false
  1798. fedora2.Transparency = 1
  1799. fedoraweld2 = Instance.new("Weld",fedora2)
  1800. fedoraweld2.Part0 = fedora2
  1801. fedoraweld2.Part1 = thedice
  1802. fedoraweld2.C0 = fedora2.CFrame:inverse() * thedice.CFrame * CFrame.new(-.1,-2.04,.125) * CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0))
  1803. mfedora2 = Instance.new("SpecialMesh", fedora2)
  1804. mfedora2.MeshType = "FileMesh"
  1805. mfedora2.Scale = Vector3.new(2.16, 2.16, 2.16)
  1806. mfedora2.MeshId,mfedora2.TextureId = 'http://www.roblox.com/asset/?id=11144636','http://www.roblox.com/asset/?id=1416342992'
  1807. hair = Instance.new("Part",Torso)
  1808. hair.BrickColor = BrickColor.new("Really black")
  1809. hair.Anchored = false
  1810. hair.CanCollide = false
  1811. hair.Transparency = 1
  1812. hairm = Instance.new("SpecialMesh",hair)
  1813. hairm.MeshId = "rbxassetid://949790989"
  1814. hairm.TextureId = "rbxassetid://949798362"
  1815. hairm.Scale = Vector3.new(2.95,2.75,2.75)
  1816. hairm.VertexColor = Vector3.new(0,0,0)
  1817. hairweld = weldBetween(hair,fedora2)
  1818. hairweld.C0 = CFrame.new(-.125,4.9,.2) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  1819. glasses = Instance.new("Part",Torso)
  1820. glasses.Size = Vector3.new(1,1,1)
  1821. glasses.BrickColor = BrickColor.new("Really black")
  1822. glasses.Anchored = false
  1823. glasses.CanCollide = false
  1824. glasses.Transparency = 1
  1825. glassesweld = weldBetween(glasses,hair)
  1826. glassesweld.C0 = CFrame.new(-.28,-3,0) * CFrame.Angles(math.rad(0),0,math.rad(-5))
  1827. glassesmesh = Instance.new("SpecialMesh",glasses)
  1828. glassesmesh.MeshId = "rbxassetid://1577360"
  1829. glassesmesh.TextureId = "rbxassetid://1577349"
  1830. glassesmesh.Scale = Vector3.new(2.2,2.2,2.2)
  1831. eyes = Instance.new("Part",Torso)
  1832. eyes.Size = Vector3.new(2.15, 1.992, 0.556)
  1833. eyes.Anchored = false
  1834. eyes.Transparency = 1
  1835. eyes.CanCollide = false
  1836. eyesweld = weldBetween(eyes,glasses)
  1837. eyesweld.C0 = CFrame.new(0,.22,.38)
  1838. eyesdecal = Instance.new("Decal",eyes)
  1839. eyesdecal.Texture = "rbxassetid://849461193"
  1840. eyesdecal.Face = "Front"
  1841. mouth = Instance.new("Part",Torso)
  1842. mouth.Size = Vector3.new(2.05, 1.892, 0.456)
  1843. mouth.Anchored = false
  1844. mouth.Transparency = 1
  1845. mouth.CanCollide = false
  1846. mouthweld = weldBetween(mouth,glasses)
  1847. mouthweld.C0 = CFrame.new(0,.22,.45)
  1848. mouthdecal = Instance.new("Decal",mouth)
  1849. mouthdecal.Texture = "rbxassetid://1772659952"
  1850. mouthdecal.Face = "Front"
  1851. righthand = Instance.new("Part",Torso)
  1852. righthand.Size = Vector3.new(1,1,1)
  1853. righthand.BrickColor = BrickColor.new("White")
  1854. righthand.CanCollide = false
  1855. righthand.Transparency = 1
  1856. righthand.Anchored = false
  1857. righthand.Material = "Neon"
  1858. righthandmesh = Instance.new("SpecialMesh",righthand)
  1859. righthandmesh.MeshId = "rbxassetid://90718752"
  1860. righthandmesh.Scale = Vector3.new(3.2,3.2,3.2)
  1861. righthandweld = weldBetween(righthand,thedice)
  1862. righthandweld.C0 = CFrame.new(2,1.8,.4) * CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-120))
  1863. righthand2 = Instance.new("Part",Torso)
  1864. righthand2.Size = Vector3.new(1,1,1)
  1865. righthand2.BrickColor = BrickColor.new("White")
  1866. righthand2.CanCollide = false
  1867. righthand2.Transparency = 1
  1868. righthand2.Anchored = false
  1869. righthand2.Material = "Neon"
  1870. righthandmesh2 = Instance.new("SpecialMesh",righthand2)
  1871. righthandmesh2.MeshId = "rbxassetid://90718752"
  1872. righthandmesh2.Scale = Vector3.new(3.2,3.2,3.2)
  1873. righthandweld2 = weldBetween(righthand2,thedice)
  1874. righthandweld2.C0 = CFrame.new(0,3,1) * CFrame.Angles(math.rad(-15),math.rad(180),math.rad(0))
  1875. gun = Instance.new("Part",Torso)
  1876. gun.Size = Vector3.new(1,1,1)
  1877. gun.Anchored = false
  1878. gun.Transparency = 1
  1879. gun.CanCollide = false
  1880. gunweld = weldBetween(gun,righthand)
  1881. gunweld.C0 = CFrame.new(0,-.3,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180))
  1882. gunmesh = Instance.new("SpecialMesh",gun)
  1883. gunmesh.MeshId = "rbxassetid://431258335"
  1884. gunmesh.Scale = Vector3.new(.003,.003,.003)
  1885. gunmesh.TextureId = "rbxassetid://431259201"
  1886. gl = Instance.new("Part",Torso)
  1887. gl.Size = Vector3.new(1,1,1)
  1888. gl.Anchored = false
  1889. gl.Transparency = 1
  1890. gl.CanCollide = false
  1891. gl.CFrame = gun.CFrame
  1892. glweld = weldBetween(gl,gun)
  1893. glweld.C0 = CFrame.new(-4,0,0)
  1894. gun2 = Instance.new("Part",Torso)
  1895. gun2.Size = Vector3.new(1,1,1)
  1896. gun2.Anchored = false
  1897. gun2.Transparency = 1
  1898. gun2.CanCollide = false
  1899. gunweld2 = weldBetween(gun2,righthand)
  1900. gunweld2.C0 = CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180))
  1901. gunmesh2 = Instance.new("SpecialMesh",gun2)
  1902. gunmesh2.MeshId = "rbxassetid://431258457"
  1903. gunmesh2.Scale = Vector3.new(.003,.003,.003)
  1904. gunmesh2.TextureId = "rbxassetid://431259201"
  1905. gun3 = Instance.new("Part",Torso)
  1906. gun3.Size = Vector3.new(1,1,1)
  1907. gun3.Anchored = false
  1908. gun3.Transparency = 1
  1909. gun3.CanCollide = false
  1910. gunweld3 = weldBetween(gun3,righthand)
  1911. gunweld3.C0 = CFrame.new(0,-.05,.1) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180))
  1912. gunmesh3 = Instance.new("SpecialMesh",gun3)
  1913. gunmesh3.MeshId = "rbxassetid://431258382"
  1914. gunmesh3.Scale = Vector3.new(.003,.003,.003)
  1915. gunmesh3.TextureId = "rbxassetid://431259201"
  1916. gun4 = Instance.new("Part",Torso)
  1917. gun4.Size = Vector3.new(.5,2.4,.1)
  1918. gun4.Anchored = false
  1919. gun4.CanCollide = false
  1920. gun4.BrickColor = BrickColor.new("Really black")
  1921. gun4weld = weldBetween(gun4,righthand)
  1922. gun4weld.C0 = CFrame.new(-.8,1,0)
  1923. gunbox = Instance.new("Part",Torso)
  1924. gunbox.Size = Vector3.new(1,1,1)
  1925. gunbox.Anchored = false
  1926. gunbox.CanCollide = false
  1927. gunbox.Transparency = 1
  1928. gunboxweld = weldBetween(gunbox,gun2)
  1929. gunboxweld.C0 = CFrame.new(0,0,-2)
  1930. coroutine.wrap(function()
  1931. for i = 1, 20 do
  1932. thedice.Transparency = thedice.Transparency - .05
  1933. fedora2.Transparency = fedora2.Transparency - .05
  1934. hair.Transparency = hair.Transparency - .05
  1935. glasses.Transparency = glasses.Transparency - .05
  1936. righthand.Transparency = righthand.Transparency - .05
  1937. righthand2.Transparency = righthand2.Transparency - .05
  1938. gun.Transparency = gun.Transparency - .05
  1939. gun2.Transparency = gun2.Transparency - .05
  1940. gun3.Transparency = gun3.Transparency - .05
  1941. swait()
  1942. end
  1943. hair.Transparency = .001
  1944. end)()
  1945. coroutine.wrap(function()
  1946. wait(1)
  1947. for i = 1, 20 do
  1948. cy.Size = cy.Size - Vector3.new(0,.4,.4)
  1949. swait()
  1950. end
  1951. cy:Remove()
  1952. end)()
  1953. coroutine.wrap(function()
  1954. while sidekick do
  1955. if sidekickshootanim then
  1956. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  1957. else
  1958. gunweld2.C0 = gunweld2.C0:lerp(CFrame.new(0,-.9,-.85) * CFrame.Angles(math.rad(90),math.rad(-90),math.rad(180)),.2)
  1959. righthandweld.C0 = righthandweld.C0:lerp(CFrame.new(2 + .1 * math.sin(sine/15),1.8 - .05 * math.sin(sine/14),.4 + .02 * math.sin(sine/18)) * CFrame.Angles(math.rad(-20 + 2 * math.sin(sine/18)),math.rad(20),math.rad(-120 + 8 * math.sin(sine/16))),.2)
  1960. righthandweld2.C0 = righthandweld2.C0:lerp(CFrame.new(0,3 + .06 * math.sin(sine/14),1) * CFrame.Angles(math.rad(-15 + 3 * math.sin(sine/14)),math.rad(180 + 8 * math.sin(sine/16)),math.rad(0)),.2)
  1961. thedice.CFrame = thedice.CFrame:lerp(Root.CFrame * CFrame.new(5 + .3 * math.sin(sine/22),2.1 + .25 * math.sin(sine/16),0) * CFrame.Angles(math.rad(10 + 2 * math.sin(sine/22)),math.rad(120 - 2 * math.sin(sine/21)),math.rad(-10 - 2 * math.sin(sine/23))),.1)
  1962. end
  1963. swait()
  1964. end
  1965. end)()
  1966. ws = 32
  1967. debounce = false
  1968. attacking = false
  1969. end
  1970. elseif Press=='f' then
  1971. if debounce then return end
  1972. if secondform then
  1973. debounce = true
  1974. local z = {
  1975. Color = BrickColor.new("White").Color
  1976. }
  1977. local f = game:GetService("TweenService"):Create(eyo,TweenInfo.new(.5,Enum.EasingStyle.Linear),z)
  1978. f:Play()
  1979. local cooldown = Instance.new("Sound",Torso)
  1980. cooldown.SoundId = "rbxassetid://1659770705"
  1981. cooldown.Volume = 10
  1982. cooldown.Pitch = .8
  1983. cooldown:Play()
  1984. removeuseless:AddItem(cooldown,10)
  1985. for i = 1, 20 do
  1986. doomtheme.Volume = doomtheme.Volume - .5
  1987. swait()
  1988. end
  1989. dmt2random = dmt2[math.random(1,#dmt2)]
  1990. doomtheme.Volume = 0
  1991. doomtheme.SoundId = "rbxassetid://"..dmt2random
  1992. doomtheme:Play()
  1993. for i = 1, 20 do
  1994. doomtheme.Volume = doomtheme.Volume + .2
  1995. swait()
  1996. end
  1997. b:Remove()
  1998. b2:Remove()
  1999. b3:Remove()
  2000. secondform = false
  2001. debounce = false
  2002. else
  2003. debounce = true
  2004. secondform = true
  2005. local c = Instance.new("Sound",Torso)
  2006. c.SoundId = "rbxassetid://3206852726"
  2007. c.Volume = 10
  2008. c:Play()
  2009. coroutine.wrap(function()
  2010. for i = 1, 20 do
  2011. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  2012. doomtheme.Volume = doomtheme.Volume - .5
  2013. swait()
  2014. end
  2015. hum.CameraOffset = Vector3.new(0,0,0)
  2016. end)()
  2017. for i = 1, 5 do
  2018. wait(.05)
  2019. eyo.BrickColor = BrickColor.new("Really black")
  2020. wait(.05)
  2021. eyo.BrickColor = BrickColor.new("Really red")
  2022. swait()
  2023. end
  2024. wait(1)
  2025. coroutine.wrap(function()
  2026. b = Instance.new("Part",Torso)
  2027. b.Size = Vector3.new(1,1,1)
  2028. b.Anchored = false
  2029. b.CanCollide = false
  2030. b.Transparency = 1
  2031. bweld = weldBetween(b,Root)
  2032. b2 = Instance.new("Part",Torso)
  2033. b2.Size = Vector3.new(1,1,1)
  2034. b2.Anchored = false
  2035. b2.Transparency = 1
  2036. b2.CanCollide = false
  2037. bweld2 = weldBetween(b2,b)
  2038. bweld2.C0 = CFrame.new(0,4,3.2)
  2039. b3 = Instance.new("Part",Torso)
  2040. b3.Size = Vector3.new(1,1,1)
  2041. b3.Anchored = false
  2042. b3.Transparency = 1
  2043. b3.CanCollide = false
  2044. bweld3 = weldBetween(b3,b)
  2045. bweld3.C0 = CFrame.new(0,4,-3.2)
  2046. coroutine.wrap(function()
  2047. while true do
  2048. if not secondform then break end
  2049. if invisible then
  2050. else
  2051. bweld2.C0 = bweld2.C0 * CFrame.Angles(math.rad(0),math.rad(0+5),0)
  2052. bweld3.C0 = bweld3.C0 * CFrame.Angles(math.rad(0),math.rad(0+5),0)
  2053. end
  2054. swait()
  2055. end
  2056. end)()
  2057. local l = 0
  2058. while wait(.1) do
  2059. l = l + 2
  2060. if not secondform then break end
  2061. if invisible then
  2062. else
  2063. local dice = Instance.new("Part",Torso)
  2064. dice.Anchored = true
  2065. dice.CanCollide = false
  2066. dice.Size = Vector3.new(1,1,1)
  2067. dice.CFrame = b2.CFrame
  2068. local dmeshs = math.random(.4,.7)
  2069. local dicemesh = Instance.new("SpecialMesh",dice)
  2070. dicemesh.MeshId = "rbxassetid://95358536"
  2071. dicemesh.TextureId = "rbxassetid://100025876"
  2072. dicemesh.Scale = Vector3.new(.25,.25,.25)
  2073. local dice2 = Instance.new("Part",Torso)
  2074. dice2.Anchored = true
  2075. dice2.CanCollide = false
  2076. dice2.Size = Vector3.new(1,1,1)
  2077. dice2.CFrame = b3.CFrame
  2078. local dmeshs2 = math.random(.4,.7)
  2079. local dicemesh2 = Instance.new("SpecialMesh",dice2)
  2080. dicemesh2.MeshId = "rbxassetid://95358536"
  2081. dicemesh2.TextureId = "rbxassetid://100025876"
  2082. dicemesh2.Scale = Vector3.new(.25,.25,.25)
  2083. local a = math.random(-180,180)
  2084. local b = math.random(-180,180)
  2085. local c = math.random(-180,180)
  2086. coroutine.wrap(function()
  2087. for i = 1, 80 do
  2088. dice.CFrame = dice.CFrame:lerp(b2.CFrame * CFrame.new(0,12,0) * CFrame.Angles(math.rad(a),math.rad(b),math.rad(c)),.05)
  2089. dice.Transparency = dice.Transparency + .015
  2090. dice2.CFrame = dice2.CFrame:lerp(b3.CFrame * CFrame.new(0,12,0) * CFrame.Angles(math.rad(a),math.rad(b),math.rad(c)),.05)
  2091. dice2.Transparency = dice2.Transparency + .015
  2092. swait()
  2093. end
  2094. dice:Remove()
  2095. end)()
  2096. end
  2097. swait()
  2098. end
  2099. end)()
  2100. coroutine.wrap(function()
  2101. while true do
  2102. if not secondform then break end
  2103. if invisible then
  2104. else
  2105. local dicl = Instance.new("Part",Torso)
  2106. dicl.Size = Vector3.new(1,1,1)
  2107. dicl.Anchored = true
  2108. dicl.Transparency = 1
  2109. dicl.CanCollide = false
  2110. dicl.CFrame = Root.CFrame * CFrame.new(math.random(-20,20),-5,math.random(-20,20))
  2111. local dice = Instance.new("Part",Torso)
  2112. dice.Anchored = true
  2113. dice.CanCollide = false
  2114. dice.Size = Vector3.new(1,1,1)
  2115. dice.CFrame = dicl.CFrame
  2116. local dmeshs = math.random(.4,.7)
  2117. local dicemesh = Instance.new("SpecialMesh",dice)
  2118. dicemesh.MeshId = "rbxassetid://95358536"
  2119. dicemesh.TextureId = "rbxassetid://100025876"
  2120. dicemesh.Scale = Vector3.new(.6,.6,.6)
  2121. local a = math.random(-180,180)
  2122. local b = math.random(-180,180)
  2123. local c = math.random(-180,180)
  2124. coroutine.wrap(function()
  2125. for i = 1, 1 do
  2126. wait(.2)
  2127. local tr = Instance.new("Part",Torso)
  2128. tr.Size = Vector3.new(2,2,2)
  2129. tr.Anchored = true
  2130. tr.CanCollide = false
  2131. tr.Transparency = .5
  2132. tr.BrickColor = BrickColor.new("White")
  2133. tr.Material = "Neon"
  2134. tr.CFrame = dice.CFrame
  2135. local z = {
  2136. Color = BrickColor.new("Crimson").Color
  2137. }
  2138. local sm = smoothen:Create(tr,TweenInfo.new(.1,Enum.EasingStyle.Linear),z)
  2139. sm:Play()
  2140. coroutine.wrap(function()
  2141. for i = 1, 40 do
  2142. tr.Size = tr.Size - Vector3.new(.05,.05,.05)
  2143. tr.CFrame = tr.CFrame:lerp(CFrame.new(Root.Position) * CFrame.Angles(math.rad(a),math.rad(b),math.rad(c)),.1)
  2144. tr.Transparency = tr.Transparency + .025
  2145. swait()
  2146. end
  2147. tr:Remove()
  2148. end)()
  2149. swait()
  2150. end
  2151. end)()
  2152. coroutine.wrap(function()
  2153. for i = 1, 2 do
  2154. wait(.2)
  2155. local tr = Instance.new("Part",Torso)
  2156. tr.Size = Vector3.new(2,2,2)
  2157. tr.Anchored = true
  2158. tr.CanCollide = false
  2159. tr.Transparency = .25
  2160. tr.BrickColor = BrickColor.new("White")
  2161. tr.Material = "Neon"
  2162. tr.CFrame = dice.CFrame
  2163. coroutine.wrap(function()
  2164. for i = 1, 40 do
  2165. tr.Size = tr.Size - Vector3.new(.05,.05,.05)
  2166. tr.Transparency = tr.Transparency + .025
  2167. swait()
  2168. end
  2169. tr:Remove()
  2170. end)()
  2171. swait()
  2172. end
  2173. end)()
  2174. coroutine.wrap(function()
  2175. for i = 1, 60 do
  2176. dice.CFrame = dice.CFrame:lerp(CFrame.new(dicl.Position) * CFrame.new(0,15,0) * CFrame.Angles(math.rad(a),math.rad(b),math.rad(c)),.04)
  2177. dice.Transparency = dice.Transparency + .017
  2178. swait()
  2179. end
  2180. dice:Remove()
  2181. dicl:Remove()
  2182. end)()
  2183. end
  2184. swait(10)
  2185. end
  2186. end)()
  2187. local fp = Instance.new("Sound",Torso)
  2188. fp.SoundId = "rbxassetid://3206874211"
  2189. fp.Volume = 8
  2190. fp:Play()
  2191. local thousand = secondtheme[math.random(1,#secondtheme)]
  2192. doomtheme.SoundId = "rbxassetid://"..thousand
  2193. if doomtheme.SoundId == "rbxassetid://561542239" then
  2194. doomtheme.TimePosition = 14
  2195. else
  2196. doomtheme.TimePosition = 0
  2197. end
  2198. doomtheme:Play()
  2199. coroutine.wrap(function()
  2200. for i = 1, 40 do
  2201. doomtheme.Volume = doomtheme.Volume + .1
  2202. swait()
  2203. end
  2204. end)()
  2205. attacking = false
  2206. debounce = false
  2207. end
  2208. elseif Press=='g' then
  2209. if debounce then return end
  2210. debounce = true
  2211. attacking = true
  2212. ws = 0
  2213. for i = 1, 30 do
  2214. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  2215. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  2216. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(1.5,1.1,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(171)), 0.2)
  2217. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  2218. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  2219. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  2220. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  2221. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  2222. swait()
  2223. end
  2224. coroutine.wrap(function()
  2225. for i = 1, 7 do
  2226. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  2227. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.4)
  2228. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.95,1.7,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(208)), 0.4)
  2229. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.4)
  2230. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.4)
  2231. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.4)
  2232. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.4)
  2233. swait()
  2234. end
  2235. for i = 1, 30 do
  2236. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  2237. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  2238. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(1.3,1.4,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(188)), 0.2)
  2239. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  2240. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  2241. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  2242. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  2243. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  2244. swait()
  2245. end
  2246. while true do
  2247. if not attacking then break end
  2248. change = .5
  2249. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  2250. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  2251. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.33) * CFrame.Angles(math.rad(-80 + 2 * math.sin(sine/12)),math.rad(-94 + 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  2252. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  2253. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  2254. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  2255. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  2256. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  2257. swait()
  2258. end
  2259. end)()
  2260. local snap = Instance.new("Sound",Torso)
  2261. snap.SoundId = "rbxassetid://3154155968"
  2262. snap.Volume = 10
  2263. snap:Play()
  2264. local zm = Instance.new("Part",Torso)
  2265. zm.Anchored = false
  2266. zm.CanCollide = false
  2267. zm.Transparency = 1
  2268. zm.Size = Vector3.new(1,1,1)
  2269. zmweld = weldBetween(zm,Torso)
  2270. zmweld.C0 = CFrame.new(0,0,5) * CFrame.Angles(math.rad(0),math.rad(30),0)
  2271. local z = math.random(1,1)
  2272. if z == 1 then
  2273. local z1 = true
  2274. local cy = Instance.new("Part",Torso)
  2275. cy.Size = Vector3.new(0,.1,.1)
  2276. cy.Anchored = true
  2277. cy.Shape = "Cylinder"
  2278. cy.Material = "Neon"
  2279. cy.BrickColor = BrickColor.new("White")
  2280. cy.CanCollide = false
  2281. cy.CFrame = zm.CFrame * CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2282. local portalopen = Instance.new("Sound",cy)
  2283. portalopen.SoundId = "rbxassetid://1888686669"
  2284. portalopen.Volume = 10
  2285. portalopen:Play()
  2286. coroutine.wrap(function()
  2287. while z1 do
  2288. cy.CFrame = zm.CFrame * CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2289. swait()
  2290. end
  2291. end)()
  2292. for i = 1, 20 do
  2293. cy.Size = cy.Size + Vector3.new(0,.115,.115)
  2294. swait()
  2295. end
  2296. wait(.25)
  2297. for i = 1, 20 do
  2298. cy.Size = cy.Size + Vector3.new(0,.3,.3)
  2299. swait()
  2300. end
  2301. local shotgun = Instance.new("Part",Torso)
  2302. shotgun.Size = Vector3.new(2,14,2)
  2303. shotgun.Anchored = true
  2304. shotgun.CanCollide = false
  2305. shotgun.BrickColor = BrickColor.new("White")
  2306. shotgun.Transparency = 1
  2307. shotgun.Material = "Neon"
  2308. shotgun.CFrame = cy.CFrame * CFrame.new(0,0,-2) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(-90))
  2309. shotgunmesh = Instance.new("SpecialMesh",shotgun)
  2310. shotgunmesh.MeshId = "rbxassetid://71947462"
  2311. shotgunmesh.Scale = Vector3.new(5,5,5)
  2312. SOUND(cy,148894535,10,false,10)
  2313. local shloc = Instance.new("Part",Torso)
  2314. shloc.Anchored = false
  2315. shloc.Size = Vector3.new(1,1,1)
  2316. shloc.Transparency = 1
  2317. shloc.CanCollide = false
  2318. shlocweld = weldBetween(shloc,shotgun)
  2319. shlocweld.C0 = CFrame.new(6,3,-3)
  2320. local hand = Instance.new("Part",Torso)
  2321. hand.Size = Vector3.new(1,1,1)
  2322. hand.Anchored = true
  2323. hand.Transparency = 1
  2324. hand.Material = "Neon"
  2325. hand.CanCollide = false
  2326. hand.CFrame = cy.CFrame * CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))
  2327. hand.BrickColor = BrickColor.new("White")
  2328. handm = Instance.new("SpecialMesh",hand)
  2329. handm.MeshId = "rbxassetid://90718752"
  2330. handm.Scale = Vector3.new(8,8,8)
  2331. local ps = Instance.new("Part",Torso)
  2332. ps.Anchored = true
  2333. ps.CanCollide = false
  2334. ps.Transparency = 1
  2335. ps.Size = Vector3.new(1,1,1)
  2336. ps.CFrame = cy.CFrame * CFrame.new(17,.7,-2)
  2337. for i = 1, 20 do
  2338. hand.Transparency = hand.Transparency - .05
  2339. hand.CFrame = hand.CFrame:lerp(cy.CFrame * CFrame.new(2,-1.2,-2) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  2340. shotgun.CFrame = shotgun.CFrame:lerp(cy.CFrame * CFrame.new(9,0,-2) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(-90)),.2)
  2341. shotgun.Transparency = shotgun.Transparency - .045
  2342. ps.CFrame = cy.CFrame * CFrame.new(17,1,-2)
  2343. swait()
  2344. end
  2345. coroutine.wrap(function()
  2346. g1 = Instance.new("BodyGyro", Root)
  2347. g1.D = 175
  2348. g1.P = 20000
  2349. g1.MaxTorque = Vector3.new(0,9000,0)
  2350. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  2351. local zcounter = 0
  2352. for i = 1, 4 do
  2353. zcounter = zcounter + 1
  2354. for i = 1, 25 do
  2355. swait()
  2356. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  2357. ps.CFrame = cy.CFrame * CFrame.new(17,1,-2)
  2358. hand.CFrame = hand.CFrame:lerp(cy.CFrame * CFrame.new(1.8,-1.2,-2) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  2359. shotgun.CFrame = shotgun.CFrame:lerp(cy.CFrame * CFrame.new(8.8,0,-2) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(-90)),.2)
  2360. end
  2361. coroutine.wrap(function()
  2362. local lazer = Instance.new("Part",Torso)
  2363. lazer.Size = Vector3.new(1,6,6)
  2364. lazer.CanCollide = false
  2365. lazer.Anchored = true
  2366. lazer.CFrame = ps.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90))
  2367. lazer.Shape = "Cylinder"
  2368. lazer.Material = "Neon"
  2369. lazer.BrickColor = BrickColor.new("Bright yellow")
  2370. local STARTPOS = ps.CFrame*CFrame.new(0,0,0).p
  2371. local ENDHIT,ENDPOS = ray2(STARTPOS,mouse.Hit.p,650,Character)
  2372. local DISTANCE = (STARTPOS - ENDPOS).magnitude
  2373. lazer.CFrame = CFrame.new(STARTPOS,ENDPOS)*CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2374. lazer.Size = Vector3.new(DISTANCE,2,2)
  2375. local shoot = Instance.new("Sound",ps)
  2376. shoot.SoundId = "rbxassetid://3178597347"
  2377. shoot.Volume = 10
  2378. shoot:Play()
  2379. local shell = Instance.new("Part",Torso)
  2380. shell.Anchored = false
  2381. shell.CanCollide = true
  2382. shell.Size = Vector3.new(.6,.6,2)
  2383. shell.BrickColor = BrickColor.new("Bright yellow")
  2384. shell.CFrame = shotgun.CFrame * CFrame.new(0,0,-4)
  2385. local shellmesh = Instance.new("SpecialMesh",shell)
  2386. shellmesh.MeshId = "rbxassetid://2604622956"
  2387. shellmesh.Scale = Vector3.new(.12,.12,.12)
  2388. shelldidhit = false
  2389. coroutine.wrap(function()
  2390. shell.Touched:connect(function(shellhit)
  2391. if shellhit.Parent.Parent ~= Character and shellhit.Parent ~= Character then
  2392. if shelldidhit then return end
  2393. shelldidhit = true
  2394. r = shellsound[math.random(1,#shellsound)]
  2395. local daic = Instance.new("Sound",shell)
  2396. daic.SoundId = "rbxassetid://"..r
  2397. daic.Volume = 10
  2398. daic:Play()
  2399. end
  2400. end)
  2401. for i = 1, 10 do
  2402. shell.CFrame = shell.CFrame:lerp(CFrame.new(shloc.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))),.2)
  2403. swait()
  2404. end
  2405. wait(15)
  2406. for i = 1, 100 do
  2407. shell.Transparency = shell.Transparency + .01
  2408. swait()
  2409. end
  2410. shell:Remove()
  2411. end)()
  2412. removeuseless:AddItem(shoot,4)
  2413. Hit = damagealll(7,ENDPOS)
  2414. for _,v in pairs(Hit) do
  2415. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  2416. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  2417. if secondform then
  2418. slachtoffer.Parent:BreakJoints()
  2419. else
  2420. slachtoffer:TakeDamage(math.random(68,81))
  2421. end
  2422. if secondform then
  2423. coroutine.wrap(function()
  2424. if tauntdebounce then return end
  2425. tauntdebounce = true
  2426. rdnm2 = p1[math.random(1,#p1)]
  2427. tauntsound = Instance.new("Sound", Head)
  2428. tauntsound.Volume = 10
  2429. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  2430. tauntsound.Looped = false
  2431. tauntsound:Play()
  2432. wait(3)
  2433. wait(tauntsound.TimeLength)
  2434. tauntsound:Remove()
  2435. wait(1)
  2436. tauntdebounce = false
  2437. end)()
  2438. end
  2439. if secondform then
  2440. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  2441. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  2442. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  2443. vel.velocity = CFrame.new(ps.Position,torso.Position).lookVector*3250
  2444. removeuseless:AddItem(vel,.1)
  2445. else
  2446. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  2447. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  2448. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  2449. vel.velocity = CFrame.new(ps.Position,torso.Position).lookVector*220
  2450. removeuseless:AddItem(vel,.1)
  2451. end
  2452. end
  2453. end
  2454. for i = 1, 2 do
  2455. local b = Instance.new("Part",Torso)
  2456. b.Size = Vector3.new(4,4,4)
  2457. b.BrickColor = BrickColor.new("Bright yellow")
  2458. b.Anchored = true
  2459. b.CanCollide = false
  2460. b.CFrame = ps.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  2461. b.Material = "Neon"
  2462. coroutine.wrap(function()
  2463. for i = 1, 5 do
  2464. b.CFrame = ps.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  2465. swait()
  2466. end
  2467. b:Remove()
  2468. lazer:Remove()
  2469. end)()
  2470. local b2 = Instance.new("Part",Torso)
  2471. b2.Size = Vector3.new(2.5,2.5,2.5)
  2472. b2.BrickColor = BrickColor.new("Bright yellow")
  2473. b2.Anchored = true
  2474. b2.CanCollide = false
  2475. b2.CFrame = ps.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  2476. b2.Material = "Neon"
  2477. coroutine.wrap(function()
  2478. for i = 1, 5 do
  2479. b2.CFrame = CFrame.new(ENDPOS) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  2480. swait()
  2481. end
  2482. b2:Remove()
  2483. end)()
  2484. end
  2485. end)()
  2486. for i = 1, 10 do
  2487. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  2488. shotgun.CFrame = shotgun.CFrame:lerp(cy.CFrame * CFrame.new(2.8,6,-2) * CFrame.Angles(math.rad(-90),math.rad(-70),math.rad(-90)),.2)
  2489. hand.CFrame = hand.CFrame:lerp(cy.CFrame * CFrame.new(1.8,-1.2,-2) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)),.2)
  2490. swait()
  2491. end
  2492. if zcounter ~= 4 then
  2493. local hand2 = Instance.new("Part",Torso)
  2494. hand2.Size = Vector3.new(.1,.1,.1)
  2495. hand2.Anchored = true
  2496. hand2.CanCollide = false
  2497. hand2.Locked = true
  2498. hand2.Transparency = 1
  2499. hand2.BrickColor = BrickColor.new("White")
  2500. hand2.Material = "Slate"
  2501. local hand2mesh = Instance.new("SpecialMesh",hand2)
  2502. hand2mesh.MeshId = "rbxassetid://2899129749"
  2503. hand2mesh.Scale = Vector3.new(.4, .4, .4)
  2504. hand2.CFrame = cy.CFrame * CFrame.new(0,0,2.2)
  2505. coroutine.wrap(function()
  2506. for i = 1, 30 do
  2507. hand2.Transparency = hand2.Transparency - .05
  2508. hand2.CFrame = hand2.CFrame:lerp(cy.CFrame * CFrame.new(11.8,3.5,-2.2) * CFrame.Angles(math.rad(90),math.rad(20),0),.15)
  2509. swait()
  2510. end
  2511. local pump = Instance.new("Sound",shotgun)
  2512. pump.SoundId = "rbxassetid://255061173"
  2513. pump.Volume = 10
  2514. pump:Play()
  2515. removeuseless:AddItem(pump,3)
  2516. for i = 1, 10 do
  2517. shotgun.CFrame = shotgun.CFrame:lerp(cy.CFrame * CFrame.new(7.6,2.5,-2) * CFrame.Angles(math.rad(-90),math.rad(-20),math.rad(-90)),.2)
  2518. hand.CFrame = hand.CFrame:lerp(cy.CFrame * CFrame.new(1.8,-1.2,-2) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(120)),.2)
  2519. hand2.CFrame = hand2.CFrame:lerp(cy.CFrame * CFrame.new(8.9,2.5,-2.2) * CFrame.Angles(math.rad(90),math.rad(20),0),.2)
  2520. swait()
  2521. end
  2522. for i = 1, 10 do
  2523. shotgun.CFrame = shotgun.CFrame:lerp(cy.CFrame * CFrame.new(7.8,2.5,-2) * CFrame.Angles(math.rad(-90),math.rad(-20),math.rad(-90)),.2)
  2524. hand.CFrame = hand.CFrame:lerp(cy.CFrame * CFrame.new(1.8,-1.2,-2) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(120)),.2)
  2525. hand2.CFrame = hand2.CFrame:lerp(cy.CFrame * CFrame.new(11.8,3.5,-2.2) * CFrame.Angles(math.rad(90),math.rad(20),0),.2)
  2526. swait()
  2527. end
  2528. for i = 1, 30 do
  2529. hand2.Transparency = hand2.Transparency + .05
  2530. hand2.CFrame = hand2.CFrame:lerp(cy.CFrame * CFrame.new(0,0,2.2),.06)
  2531. swait()
  2532. end
  2533. hand2:Remove()
  2534. end)()
  2535. for i = 1, 75 do
  2536. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  2537. shotgun.CFrame = shotgun.CFrame:lerp(cy.CFrame * CFrame.new(7.8,2.5,-2) * CFrame.Angles(math.rad(-90),math.rad(-20),math.rad(-90)),.2)
  2538. hand.CFrame = hand.CFrame:lerp(cy.CFrame * CFrame.new(1.8,-1.2,-2) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(120)),.2)
  2539. swait()
  2540. end
  2541. end
  2542. swait()
  2543. end
  2544. shotgun.Anchored = false
  2545. shotgun.CanCollide = true
  2546. coroutine.wrap(function()
  2547. wait(2)
  2548. for i = 1, 20 do
  2549. shotgun.Transparency = shotgun.Transparency + .05
  2550. swait()
  2551. end
  2552. shotgun:Remove()
  2553. end)()
  2554. SOUND(cy,148894535,10,false,10)
  2555. for i = 1, 30 do
  2556. hand.CFrame = hand.CFrame:lerp(cy.CFrame,.2)
  2557. hand.Transparency = hand.Transparency + .05
  2558. swait()
  2559. end
  2560. for i = 1, 20 do
  2561. cy.Size = cy.Size - Vector3.new(.5,.5,.5)
  2562. swait()
  2563. end
  2564. cy:Remove()
  2565. hand:Remove()
  2566. shloc:Remove()
  2567. zm:Remove()
  2568. ps:Remove()
  2569. debounce = false
  2570. attacking = false
  2571. ws = 32
  2572. removeuseless:AddItem(g1,.001)
  2573. end)()
  2574. elseif z == 2 then
  2575. local cy2 = Instance.new("Part",Torso)
  2576. cy2.Size = Vector3.new(0,.1,.1)
  2577. cy2.Anchored = true
  2578. cy2.Shape = "Cylinder"
  2579. cy2.Material = "Neon"
  2580. cy2.BrickColor = BrickColor.new("White")
  2581. cy2.CanCollide = false
  2582. cy2.CFrame = zm.CFrame * CFrame.new(2,-1,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2583. local cy3 = Instance.new("Part",Torso)
  2584. cy3.Size = Vector3.new(0,.1,.1)
  2585. cy3.Anchored = true
  2586. cy3.Shape = "Cylinder"
  2587. cy3.Material = "Neon"
  2588. cy3.BrickColor = BrickColor.new("White")
  2589. cy3.CanCollide = false
  2590. cy3.CFrame = zm.CFrame * CFrame.new(-2,4,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2591. for i = 1, 20 do
  2592. cy2.Size = cy2.Size + Vector3.new(0,.115,.115)
  2593. cy3.Size = cy3.Size + Vector3.new(0,.115,.115)
  2594. swait()
  2595. end
  2596. wait(.5)
  2597. local z = {
  2598. Color = BrickColor.new("Really black").Color
  2599. }
  2600. local lol = smoothen:Create(cy2,TweenInfo.new(.8,Enum.EasingStyle.Linear),z)
  2601. local lol2 = smoothen:Create(cy3,TweenInfo.new(.8,Enum.EasingStyle.Linear),z)
  2602. lol:Play()
  2603. lol2:Play()
  2604. wait(2)
  2605. local b = 0
  2606. for i = 1, 200 do
  2607. b = b + 5
  2608. cy2.CFrame = zm.CFrame * CFrame.new(2,-1,0) * CFrame.Angles(math.rad(b),math.rad(90),0)
  2609. cy3.CFrame = zm.CFrame * CFrame.new(-2,4,0) * CFrame.Angles(math.rad(b),math.rad(90),0)
  2610. swait()
  2611. end
  2612. elseif z == 3 then
  2613. local cy = Instance.new("Part",Torso)
  2614. cy.Size = Vector3.new(0,.1,.1)
  2615. cy.Anchored = true
  2616. cy.Shape = "Cylinder"
  2617. cy.Material = "Neon"
  2618. cy.BrickColor = BrickColor.new("White")
  2619. cy.CanCollide = false
  2620. cy.CFrame = zm.CFrame * CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2621. local cy2 = Instance.new("Part",Torso)
  2622. cy2.Size = Vector3.new(0,.1,.1)
  2623. cy2.Anchored = true
  2624. cy2.Shape = "Cylinder"
  2625. cy2.Material = "Neon"
  2626. cy2.BrickColor = BrickColor.new("White")
  2627. cy2.CanCollide = false
  2628. cy2.CFrame = zm.CFrame * CFrame.new(2,-1,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2629. local cy3 = Instance.new("Part",Torso)
  2630. cy3.Size = Vector3.new(0,.1,.1)
  2631. cy3.Anchored = true
  2632. cy3.Shape = "Cylinder"
  2633. cy3.Material = "Neon"
  2634. cy3.BrickColor = BrickColor.new("White")
  2635. cy3.CanCollide = false
  2636. cy3.CFrame = zm.CFrame * CFrame.new(-2,4,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2637. for i = 1, 20 do
  2638. cy.Size = cy.Size + Vector3.new(0,.115,.115)
  2639. cy2.Size = cy2.Size + Vector3.new(0,.115,.115)
  2640. cy3.Size = cy3.Size + Vector3.new(0,.115,.115)
  2641. swait()
  2642. end
  2643. elseif z == 4 then
  2644. print(4)
  2645. local cy = Instance.new("Part",Torso)
  2646. cy.Size = Vector3.new(0,.1,.1)
  2647. cy.Anchored = true
  2648. cy.Shape = "Cylinder"
  2649. cy.Material = "Neon"
  2650. cy.BrickColor = BrickColor.new("White")
  2651. cy.CanCollide = false
  2652. cy.CFrame = zm.CFrame * CFrame.new(2,4,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2653. local cy2 = Instance.new("Part",Torso)
  2654. cy2.Size = Vector3.new(0,.1,.1)
  2655. cy2.Anchored = true
  2656. cy2.Shape = "Cylinder"
  2657. cy2.Material = "Neon"
  2658. cy2.BrickColor = BrickColor.new("White")
  2659. cy2.CanCollide = false
  2660. cy2.CFrame = zm.CFrame * CFrame.new(2,-1,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2661. local cy3 = Instance.new("Part",Torso)
  2662. cy3.Size = Vector3.new(0,.1,.1)
  2663. cy3.Anchored = true
  2664. cy3.Shape = "Cylinder"
  2665. cy3.Material = "Neon"
  2666. cy3.BrickColor = BrickColor.new("White")
  2667. cy3.CanCollide = false
  2668. cy3.CFrame = zm.CFrame * CFrame.new(-2,4,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2669. local cy4 = Instance.new("Part",Torso)
  2670. cy4.Size = Vector3.new(0,.1,.1)
  2671. cy4.Anchored = true
  2672. cy4.Shape = "Cylinder"
  2673. cy4.Material = "Neon"
  2674. cy4.BrickColor = BrickColor.new("White")
  2675. cy4.CanCollide = false
  2676. cy4.CFrame = zm.CFrame * CFrame.new(-2,-1,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2677. for i = 1, 20 do
  2678. cy.Size = cy.Size + Vector3.new(0,.115,.115)
  2679. cy2.Size = cy2.Size + Vector3.new(0,.115,.115)
  2680. cy3.Size = cy3.Size + Vector3.new(0,.115,.115)
  2681. cy4.Size = cy4.Size + Vector3.new(0,.115,.115)
  2682. swait()
  2683. end
  2684. elseif z == 5 then
  2685. local cy = Instance.new("Part",Torso)
  2686. cy.Size = Vector3.new(0,.1,.1)
  2687. cy.Anchored = true
  2688. cy.Shape = "Cylinder"
  2689. cy.Material = "Neon"
  2690. cy.BrickColor = BrickColor.new("White")
  2691. cy.CanCollide = false
  2692. cy.CFrame = zm.CFrame * CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2693. local cy5 = Instance.new("Part",Torso)
  2694. cy5.Size = Vector3.new(0,.1,.1)
  2695. cy5.Anchored = true
  2696. cy5.Shape = "Cylinder"
  2697. cy5.Material = "Neon"
  2698. cy5.BrickColor = BrickColor.new("White")
  2699. cy5.CanCollide = false
  2700. cy5.CFrame = zm.CFrame * CFrame.new(2,4,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2701. local cy2 = Instance.new("Part",Torso)
  2702. cy2.Size = Vector3.new(0,.1,.1)
  2703. cy2.Anchored = true
  2704. cy2.Shape = "Cylinder"
  2705. cy2.Material = "Neon"
  2706. cy2.BrickColor = BrickColor.new("White")
  2707. cy2.CanCollide = false
  2708. cy2.CFrame = zm.CFrame * CFrame.new(2,-1,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2709. local cy3 = Instance.new("Part",Torso)
  2710. cy3.Size = Vector3.new(0,.1,.1)
  2711. cy3.Anchored = true
  2712. cy3.Shape = "Cylinder"
  2713. cy3.Material = "Neon"
  2714. cy3.BrickColor = BrickColor.new("White")
  2715. cy3.CanCollide = false
  2716. cy3.CFrame = zm.CFrame * CFrame.new(-2,4,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2717. local cy4 = Instance.new("Part",Torso)
  2718. cy4.Size = Vector3.new(0,.1,.1)
  2719. cy4.Anchored = true
  2720. cy4.Shape = "Cylinder"
  2721. cy4.Material = "Neon"
  2722. cy4.BrickColor = BrickColor.new("White")
  2723. cy4.CanCollide = false
  2724. cy4.CFrame = zm.CFrame * CFrame.new(-2,-1,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2725. for i = 1, 20 do
  2726. cy.Size = cy.Size + Vector3.new(0,.115,.115)
  2727. cy2.Size = cy2.Size + Vector3.new(0,.115,.115)
  2728. cy3.Size = cy3.Size + Vector3.new(0,.115,.115)
  2729. cy4.Size = cy4.Size + Vector3.new(0,.115,.115)
  2730. cy5.Size = cy5.Size + Vector3.new(0,.115,.115)
  2731. swait()
  2732. end
  2733. elseif z == 6 then
  2734. local cy = Instance.new("Part",Torso)
  2735. cy.Size = Vector3.new(0,.1,.1)
  2736. cy.Anchored = true
  2737. cy.Shape = "Cylinder"
  2738. cy.Material = "Neon"
  2739. cy.BrickColor = BrickColor.new("White")
  2740. cy.CanCollide = false
  2741. cy.CFrame = zm.CFrame * CFrame.new(-2,5,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2742. local cy6 = Instance.new("Part",Torso)
  2743. cy6.Size = Vector3.new(0,.1,.1)
  2744. cy6.Anchored = true
  2745. cy6.Shape = "Cylinder"
  2746. cy6.Material = "Neon"
  2747. cy6.BrickColor = BrickColor.new("White")
  2748. cy6.CanCollide = false
  2749. cy6.CFrame = zm.CFrame * CFrame.new(-2,2,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2750. local cy5 = Instance.new("Part",Torso)
  2751. cy5.Size = Vector3.new(0,.1,.1)
  2752. cy5.Anchored = true
  2753. cy5.Shape = "Cylinder"
  2754. cy5.Material = "Neon"
  2755. cy5.BrickColor = BrickColor.new("White")
  2756. cy5.CanCollide = false
  2757. cy5.CFrame = zm.CFrame * CFrame.new(2,5,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2758. local cy2 = Instance.new("Part",Torso)
  2759. cy2.Size = Vector3.new(0,.1,.1)
  2760. cy2.Anchored = true
  2761. cy2.Shape = "Cylinder"
  2762. cy2.Material = "Neon"
  2763. cy2.BrickColor = BrickColor.new("White")
  2764. cy2.CanCollide = false
  2765. cy2.CFrame = zm.CFrame * CFrame.new(2,2,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2766. local cy3 = Instance.new("Part",Torso)
  2767. cy3.Size = Vector3.new(0,.1,.1)
  2768. cy3.Anchored = true
  2769. cy3.Shape = "Cylinder"
  2770. cy3.Material = "Neon"
  2771. cy3.BrickColor = BrickColor.new("White")
  2772. cy3.CanCollide = false
  2773. cy3.CFrame = zm.CFrame * CFrame.new(-2,-1,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2774. local cy4 = Instance.new("Part",Torso)
  2775. cy4.Size = Vector3.new(0,.1,.1)
  2776. cy4.Anchored = true
  2777. cy4.Shape = "Cylinder"
  2778. cy4.Material = "Neon"
  2779. cy4.BrickColor = BrickColor.new("White")
  2780. cy4.CanCollide = false
  2781. cy4.CFrame = zm.CFrame * CFrame.new(2,-1,0) * CFrame.Angles(math.rad(0),math.rad(90),0)
  2782. for i = 1, 20 do
  2783. cy.Size = cy.Size + Vector3.new(0,.115,.115)
  2784. cy2.Size = cy2.Size + Vector3.new(0,.115,.115)
  2785. cy3.Size = cy3.Size + Vector3.new(0,.115,.115)
  2786. cy4.Size = cy4.Size + Vector3.new(0,.115,.115)
  2787. cy5.Size = cy5.Size + Vector3.new(0,.115,.115)
  2788. cy6.Size = cy6.Size + Vector3.new(0,.115,.115)
  2789. swait()
  2790. end
  2791. end
  2792. elseif Press=='p' then
  2793. if debounce then return end
  2794. debounce = true
  2795. attacking = true
  2796. local posb = Instance.new("Part",Torso)
  2797. posb.Anchored = true
  2798. posb.Transparency = 1
  2799. posb.CanCollide = false
  2800. posb.Size = Vector3.new(1,1,1)
  2801. ws = 3
  2802. g1 = Instance.new("BodyGyro", Root)
  2803. g1.D = 175
  2804. g1.P = 20000
  2805. g1.MaxTorque = Vector3.new(0,9000,0)
  2806. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  2807. for i = 1, 20 do
  2808. posb.CFrame = Root.CFrame * CFrame.new(0,35,-80)
  2809. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  2810. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  2811. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(-140),math.rad(10),math.rad(25)), 0.2)
  2812. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-140),math.rad(-10),math.rad(-25)), 0.2)
  2813. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)),.2)
  2814. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  2815. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2, .1) * CFrame.Angles(math.rad(-10), math.rad(5), math.rad(-3)), 0.2)
  2816. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  2817. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.51, .7, .7) * CFrame.Angles(math.rad(42), math.rad(0), math.rad(0)), 0.4)
  2818. swait()
  2819. end
  2820. local hitbox = Instance.new("Part",Torso)
  2821. hitbox.Anchored = false
  2822. hitbox.CanCollide = false
  2823. hitbox.Transparency = 1
  2824. hitbox.Size = Vector3.new(2.5,3,3)
  2825. hitboxweld = weldBetween(hitbox,LeftLeg)
  2826. hitboxweld.C0 = CFrame.new(0,2.6,0)
  2827. local hi2 = false
  2828. hitbox.Touched:connect(function(hi)
  2829. if hi.Parent:FindFirstChildOfClass("Humanoid") and hi.Parent ~= Character then
  2830. if hi2 then return end
  2831. hi2 = true
  2832. SOUND(LeftLeg,3041191430,10,false,5)
  2833. for i = 1, 25 do
  2834. hi.Parent.Torso.CFrame = hi.Parent.Torso.CFrame:lerp(CFrame.new(posb.Position),.18)
  2835. swait()
  2836. end
  2837. local zw = weldBetween(hi.Parent.Torso,posb)
  2838. wait(.25)
  2839. local portalopen = Instance.new("Sound",nil)
  2840. portalopen.SoundId = "rbxassetid://148894535"
  2841. portalopen.Volume = 10
  2842. portalopen:Play()
  2843. local portalopen2 = Instance.new("Sound",nil)
  2844. portalopen2.SoundId = "rbxassetid://148894535"
  2845. portalopen2.Volume = 10
  2846. portalopen2:Play()
  2847. for i = 1, 4 do
  2848. wait(.5)
  2849. local cy = Instance.new("Part",Torso)
  2850. cy.Size = Vector3.new(.2,.1,.1)
  2851. cy.Anchored = true
  2852. cy.Shape = "Cylinder"
  2853. cy.Material = "Neon"
  2854. cy.BrickColor = BrickColor.new("White")
  2855. cy.CanCollide = false
  2856. cy.CFrame = posb.CFrame * CFrame.Angles(0,math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) * CFrame.new(35,0,0)
  2857. portalopen.Parent = cy
  2858. portalopen:Play()
  2859. for i = 1, 20 do
  2860. cy.Size = cy.Size + Vector3.new(0,.85,.85)
  2861. swait()
  2862. end
  2863. local dice = Instance.new("Part",Torso)
  2864. dice.CanCollide = true
  2865. dice.CFrame = cy.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  2866. dice.Anchored = true
  2867. dice.Transparency = 1
  2868. dice.Size = Vector3.new(6,6,6)
  2869. local dicemesh = Instance.new("SpecialMesh",dice)
  2870. dicemesh.MeshId = "rbxassetid://95358536"
  2871. dicemesh.TextureId = "rbxassetid://100025876"
  2872. dicemesh.Scale = Vector3.new(4,4,4)
  2873. dchit = false
  2874. coroutine.wrap(function()
  2875. wait(.25)
  2876. for i = 1, 20 do
  2877. cy.Size = cy.Size - Vector3.new(0,.85,.85)
  2878. swait()
  2879. end
  2880. cy:Remove()
  2881. end)()
  2882. local cy2 = Instance.new("Part",Torso)
  2883. cy2.Size = Vector3.new(.2,.1,.1)
  2884. cy2.Anchored = true
  2885. cy2.Shape = "Cylinder"
  2886. cy2.Material = "Neon"
  2887. cy2.BrickColor = BrickColor.new("White")
  2888. cy2.CanCollide = false
  2889. cy2.CFrame = cy.CFrame * CFrame.new(-70,0,0)
  2890. portalopen2.Parent = cy2
  2891. portalopen2:Play()
  2892. coroutine.wrap(function()
  2893. for i = 1, 14 do
  2894. dice.Transparency = dice.Transparency - .15
  2895. dice.CFrame = dice.CFrame:lerp(CFrame.new(posb.Position),.1)
  2896. swait()
  2897. end
  2898. Hit = damagealll(12,dice.Position)
  2899. for _,v in pairs(Hit) do
  2900. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  2901. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  2902. slachtoffer:TakeDamage(math.random(2,4))
  2903. if secondform then
  2904. coroutine.wrap(function()
  2905. if tauntdebounce then return end
  2906. tauntdebounce = true
  2907. rdnm2 = p1[math.random(1,#p1)]
  2908. tauntsound = Instance.new("Sound", Head)
  2909. tauntsound.Volume = 10
  2910. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  2911. tauntsound.Looped = false
  2912. tauntsound:Play()
  2913. wait(3)
  2914. wait(tauntsound.TimeLength)
  2915. tauntsound:Remove()
  2916. wait(1)
  2917. tauntdebounce = false
  2918. end)()
  2919. end
  2920. local hc = Instance.new("Sound",slachtoffer.Parent.Head)
  2921. hc.SoundId = "rbxasssetid://2974876428"
  2922. hc.Volume = 10
  2923. hc:Play()
  2924. coroutine.wrap(function()
  2925. local w = Instance.new("Part",Torso)
  2926. w.Anchored = true
  2927. w.CanCollide = false
  2928. w.Material = "Neon"
  2929. w.BrickColor = BrickColor.new("White")
  2930. if slachtoffer.RigType == Enum.HumanoidRigType.R15 then
  2931. w.CFrame = slachtoffer.Parent:FindFirstChild("UpperTorso").CFrame
  2932. elseif slachtoffer.RigType == Enum.HumanoidRigType.R6 then
  2933. w.CFrame = slachtoffer.Parent:FindFirstChild("Torso").CFrame
  2934. end
  2935. w.Size = Vector3.new(3,3,3)
  2936. w.Shape = "Ball"
  2937. for i = 1, 50 do
  2938. w.Transparency = w.Transparency + .05
  2939. w.Size = w.Size + Vector3.new(1.75,1.75,1.75)
  2940. swait()
  2941. end
  2942. w:Remove()
  2943. end)()
  2944. for i = 1, 8 do
  2945. coroutine.wrap(function()
  2946. local ps = Instance.new("Part",Torso)
  2947. ps.Size = Vector3.new(1,1,1)
  2948. ps.Anchored = true
  2949. ps.BrickColor = BrickColor.new("White")
  2950. ps.Material = "Neon"
  2951. if slachtoffer.RigType == Enum.HumanoidRigType.R6 then
  2952. ps.CFrame = slachtoffer.Parent:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  2953. elseif slachtoffer.RigType == Enum.HumanoidRigType.R15 then
  2954. ps.CFrame = slachtoffer.Parent:FindFirstChild("UpperTorso").CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  2955. end
  2956. local psm = Instance.new("SpecialMesh",ps)
  2957. psm.MeshType = "Sphere"
  2958. psm.Scale = Vector3.new(3,1,3)
  2959. for i = 1, 50 do
  2960. psm.Scale = psm.Scale + Vector3.new(0,2.5,0)
  2961. ps.Transparency = ps.Transparency + .025
  2962. swait()
  2963. end
  2964. ps:Remove()
  2965. end)()
  2966. end
  2967. removeuseless:AddItem(hc,6)
  2968. end
  2969. end
  2970. for i = 1, 14 do
  2971. dice.Transparency = dice.Transparency + .15
  2972. dice.CFrame = dice.CFrame:lerp(CFrame.new(cy2.Position),.1)
  2973. swait()
  2974. end
  2975. dice:Remove()
  2976. end)()
  2977. for i = 1, 20 do
  2978. cy2.Size = cy2.Size + Vector3.new(0,.85,.85)
  2979. swait()
  2980. end
  2981. coroutine.wrap(function()
  2982. wait(.25)
  2983. for i = 1, 20 do
  2984. cy2.Size = cy2.Size - Vector3.new(0,.85,.85)
  2985. swait()
  2986. end
  2987. cy2:Remove()
  2988. end)()
  2989. swait()
  2990. end
  2991. for i = 1, 5 do
  2992. wait(.25)
  2993. local cy = Instance.new("Part",Torso)
  2994. cy.Size = Vector3.new(.2,.1,.1)
  2995. cy.Anchored = true
  2996. cy.Shape = "Cylinder"
  2997. cy.Material = "Neon"
  2998. cy.BrickColor = BrickColor.new("White")
  2999. cy.CanCollide = false
  3000. cy.CFrame = posb.CFrame * CFrame.Angles(0,math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) * CFrame.new(35,0,0)
  3001. portalopen.Parent = cy
  3002. portalopen:Play()
  3003. for i = 1, 20 do
  3004. cy.Size = cy.Size + Vector3.new(0,.85,.85)
  3005. swait()
  3006. end
  3007. local dice = Instance.new("Part",Torso)
  3008. dice.CanCollide = true
  3009. dice.CFrame = cy.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3010. dice.Anchored = true
  3011. dice.Transparency = 1
  3012. dice.Size = Vector3.new(.5,.5,.5)
  3013. local dicemesh = Instance.new("SpecialMesh",dice)
  3014. dicemesh.MeshId = "rbxassetid://95358536"
  3015. dicemesh.TextureId = "rbxassetid://100025876"
  3016. dicemesh.Scale = Vector3.new(4,4,4)
  3017. coroutine.wrap(function()
  3018. wait(.25)
  3019. for i = 1, 20 do
  3020. cy.Size = cy.Size - Vector3.new(0,.85,.85)
  3021. swait()
  3022. end
  3023. cy:Remove()
  3024. end)()
  3025. local cy2 = Instance.new("Part",Torso)
  3026. cy2.Size = Vector3.new(.2,.1,.1)
  3027. cy2.Anchored = true
  3028. cy2.Shape = "Cylinder"
  3029. cy2.Material = "Neon"
  3030. cy2.BrickColor = BrickColor.new("White")
  3031. cy2.CanCollide = false
  3032. cy2.CFrame = cy.CFrame * CFrame.new(-70,0,0)
  3033. portalopen2.Parent = cy2
  3034. portalopen2:Play()
  3035. coroutine.wrap(function()
  3036. for i = 1, 14 do
  3037. dice.Transparency = dice.Transparency - .15
  3038. dice.CFrame = dice.CFrame:lerp(CFrame.new(posb.Position),.1)
  3039. swait()
  3040. end
  3041. Hit = damagealll(12,dice.Position)
  3042. for _,v in pairs(Hit) do
  3043. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  3044. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  3045. slachtoffer:TakeDamage(math.random(2,4))
  3046. if secondform then
  3047. coroutine.wrap(function()
  3048. if tauntdebounce then return end
  3049. tauntdebounce = true
  3050. rdnm2 = p1[math.random(1,#p1)]
  3051. tauntsound = Instance.new("Sound", Head)
  3052. tauntsound.Volume = 10
  3053. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  3054. tauntsound.Looped = false
  3055. tauntsound:Play()
  3056. wait(3)
  3057. wait(tauntsound.TimeLength)
  3058. tauntsound:Remove()
  3059. wait(1)
  3060. tauntdebounce = false
  3061. end)()
  3062. end
  3063. local hc = Instance.new("Sound",slachtoffer.Parent.Head)
  3064. hc.SoundId = "rbxasssetid://2974876428"
  3065. hc.Volume = 10
  3066. hc:Play()
  3067. coroutine.wrap(function()
  3068. local w = Instance.new("Part",Torso)
  3069. w.Anchored = true
  3070. w.CanCollide = false
  3071. w.Material = "Neon"
  3072. w.BrickColor = BrickColor.new("White")
  3073. if slachtoffer.RigType == Enum.HumanoidRigType.R15 then
  3074. w.CFrame = slachtoffer.Parent:FindFirstChild("UpperTorso").CFrame
  3075. elseif slachtoffer.RigType == Enum.HumanoidRigType.R6 then
  3076. w.CFrame = slachtoffer.Parent:FindFirstChild("Torso").CFrame
  3077. end
  3078. w.Size = Vector3.new(3,3,3)
  3079. w.Shape = "Ball"
  3080. for i = 1, 50 do
  3081. w.Transparency = w.Transparency + .05
  3082. w.Size = w.Size + Vector3.new(1.75,1.75,1.75)
  3083. swait()
  3084. end
  3085. w:Remove()
  3086. end)()
  3087. for i = 1, 8 do
  3088. coroutine.wrap(function()
  3089. local ps = Instance.new("Part",Torso)
  3090. ps.Size = Vector3.new(1,1,1)
  3091. ps.Anchored = true
  3092. ps.BrickColor = BrickColor.new("White")
  3093. ps.Material = "Neon"
  3094. if slachtoffer.RigType == Enum.HumanoidRigType.R6 then
  3095. ps.CFrame = slachtoffer.Parent:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3096. elseif slachtoffer.RigType == Enum.HumanoidRigType.R15 then
  3097. ps.CFrame = slachtoffer.Parent:FindFirstChild("UpperTorso").CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3098. end
  3099. local psm = Instance.new("SpecialMesh",ps)
  3100. psm.MeshType = "Sphere"
  3101. psm.Scale = Vector3.new(3,1,3)
  3102. for i = 1, 50 do
  3103. psm.Scale = psm.Scale + Vector3.new(0,2.5,0)
  3104. ps.Transparency = ps.Transparency + .025
  3105. swait()
  3106. end
  3107. ps:Remove()
  3108. end)()
  3109. end
  3110. removeuseless:AddItem(hc,6)
  3111. end
  3112. end
  3113. for i = 1, 14 do
  3114. dice.Transparency = dice.Transparency + .15
  3115. dice.CFrame = dice.CFrame:lerp(CFrame.new(cy2.Position),.1)
  3116. swait()
  3117. end
  3118. dice:Remove()
  3119. end)()
  3120. for i = 1, 20 do
  3121. cy2.Size = cy2.Size + Vector3.new(0,.85,.85)
  3122. swait()
  3123. end
  3124. coroutine.wrap(function()
  3125. wait(.25)
  3126. for i = 1, 20 do
  3127. cy2.Size = cy2.Size - Vector3.new(0,.85,.85)
  3128. swait()
  3129. end
  3130. cy2:Remove()
  3131. end)()
  3132. swait()
  3133. end
  3134. for i = 1, 6 do
  3135. wait(.0325)
  3136. local cy = Instance.new("Part",Torso)
  3137. cy.Size = Vector3.new(.2,.1,.1)
  3138. cy.Anchored = true
  3139. cy.Shape = "Cylinder"
  3140. cy.Material = "Neon"
  3141. cy.BrickColor = BrickColor.new("White")
  3142. cy.CanCollide = false
  3143. cy.CFrame = posb.CFrame * CFrame.Angles(0,math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) * CFrame.new(35,0,0)
  3144. portalopen.Parent = cy
  3145. portalopen:Play()
  3146. for i = 1, 20 do
  3147. cy.Size = cy.Size + Vector3.new(0,.85,.85)
  3148. swait()
  3149. end
  3150. local dice = Instance.new("Part",Torso)
  3151. dice.CanCollide = true
  3152. dice.CFrame = cy.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3153. dice.Anchored = true
  3154. dice.Transparency = 1
  3155. dice.Size = Vector3.new(.5,.5,.5)
  3156. local dicemesh = Instance.new("SpecialMesh",dice)
  3157. dicemesh.MeshId = "rbxassetid://95358536"
  3158. dicemesh.TextureId = "rbxassetid://100025876"
  3159. dicemesh.Scale = Vector3.new(4,4,4)
  3160. coroutine.wrap(function()
  3161. wait(.25)
  3162. for i = 1, 20 do
  3163. cy.Size = cy.Size - Vector3.new(0,.85,.85)
  3164. swait()
  3165. end
  3166. cy:Remove()
  3167. end)()
  3168. local cy2 = Instance.new("Part",Torso)
  3169. cy2.Size = Vector3.new(.2,.1,.1)
  3170. cy2.Anchored = true
  3171. cy2.Shape = "Cylinder"
  3172. cy2.Material = "Neon"
  3173. cy2.BrickColor = BrickColor.new("White")
  3174. cy2.CanCollide = false
  3175. cy2.CFrame = cy.CFrame * CFrame.new(-70,0,0)
  3176. portalopen2.Parent = cy2
  3177. portalopen2:Play()
  3178. coroutine.wrap(function()
  3179. for i = 1, 14 do
  3180. dice.Transparency = dice.Transparency - .15
  3181. dice.CFrame = dice.CFrame:lerp(CFrame.new(posb.Position),.1)
  3182. swait()
  3183. end
  3184. Hit = damagealll(12,dice.Position)
  3185. for _,v in pairs(Hit) do
  3186. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  3187. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  3188. slachtoffer:TakeDamage(math.random(2,4))
  3189. if secondform then
  3190. coroutine.wrap(function()
  3191. if tauntdebounce then return end
  3192. tauntdebounce = true
  3193. rdnm2 = p1[math.random(1,#p1)]
  3194. tauntsound = Instance.new("Sound", Head)
  3195. tauntsound.Volume = 10
  3196. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  3197. tauntsound.Looped = false
  3198. tauntsound:Play()
  3199. wait(3)
  3200. wait(tauntsound.TimeLength)
  3201. tauntsound:Remove()
  3202. wait(1)
  3203. tauntdebounce = false
  3204. end)()
  3205. end
  3206. local hc = Instance.new("Sound",slachtoffer.Parent.Head)
  3207. hc.SoundId = "rbxasssetid://2974876428"
  3208. hc.Volume = 10
  3209. hc:Play()
  3210. coroutine.wrap(function()
  3211. local w = Instance.new("Part",Torso)
  3212. w.Anchored = true
  3213. w.CanCollide = false
  3214. w.Material = "Neon"
  3215. w.BrickColor = BrickColor.new("White")
  3216. if slachtoffer.RigType == Enum.HumanoidRigType.R15 then
  3217. w.CFrame = slachtoffer.Parent:FindFirstChild("UpperTorso").CFrame
  3218. elseif slachtoffer.RigType == Enum.HumanoidRigType.R6 then
  3219. w.CFrame = slachtoffer.Parent:FindFirstChild("Torso").CFrame
  3220. end
  3221. w.Size = Vector3.new(3,3,3)
  3222. w.Shape = "Ball"
  3223. for i = 1, 50 do
  3224. w.Transparency = w.Transparency + .05
  3225. w.Size = w.Size + Vector3.new(1.75,1.75,1.75)
  3226. swait()
  3227. end
  3228. w:Remove()
  3229. end)()
  3230. for i = 1, 8 do
  3231. coroutine.wrap(function()
  3232. local ps = Instance.new("Part",Torso)
  3233. ps.Size = Vector3.new(1,1,1)
  3234. ps.Anchored = true
  3235. ps.BrickColor = BrickColor.new("White")
  3236. ps.Material = "Neon"
  3237. if slachtoffer.RigType == Enum.HumanoidRigType.R6 then
  3238. ps.CFrame = slachtoffer.Parent:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3239. elseif slachtoffer.RigType == Enum.HumanoidRigType.R15 then
  3240. ps.CFrame = slachtoffer.Parent:FindFirstChild("UpperTorso").CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3241. end
  3242. local psm = Instance.new("SpecialMesh",ps)
  3243. psm.MeshType = "Sphere"
  3244. psm.Scale = Vector3.new(3,1,3)
  3245. for i = 1, 50 do
  3246. psm.Scale = psm.Scale + Vector3.new(0,2.5,0)
  3247. ps.Transparency = ps.Transparency + .025
  3248. swait()
  3249. end
  3250. ps:Remove()
  3251. end)()
  3252. end
  3253. removeuseless:AddItem(hc,6)
  3254. end
  3255. end
  3256. for i = 1, 14 do
  3257. dice.Transparency = dice.Transparency + .15
  3258. dice.CFrame = dice.CFrame:lerp(CFrame.new(cy2.Position),.1)
  3259. swait()
  3260. end
  3261. dice:Remove()
  3262. end)()
  3263. for i = 1, 20 do
  3264. cy2.Size = cy2.Size + Vector3.new(0,.85,.85)
  3265. swait()
  3266. end
  3267. coroutine.wrap(function()
  3268. wait(.25)
  3269. for i = 1, 20 do
  3270. cy2.Size = cy2.Size - Vector3.new(0,.85,.85)
  3271. swait()
  3272. end
  3273. cy2:Remove()
  3274. end)()
  3275. swait()
  3276. end
  3277. for i = 1, 8 do
  3278. swait()
  3279. local cy = Instance.new("Part",Torso)
  3280. cy.Size = Vector3.new(.2,.1,.1)
  3281. cy.Anchored = true
  3282. cy.Shape = "Cylinder"
  3283. cy.Material = "Neon"
  3284. cy.BrickColor = BrickColor.new("White")
  3285. cy.CanCollide = false
  3286. cy.CFrame = posb.CFrame * CFrame.Angles(0,math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) * CFrame.new(35,0,0)
  3287. portalopen.Parent = cy
  3288. portalopen:Play()
  3289. for i = 1, 20 do
  3290. cy.Size = cy.Size + Vector3.new(0,.85,.85)
  3291. swait()
  3292. end
  3293. local dice = Instance.new("Part",Torso)
  3294. dice.CanCollide = true
  3295. dice.CFrame = cy.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3296. dice.Anchored = true
  3297. dice.Transparency = 1
  3298. dice.Size = Vector3.new(.5,.5,.5)
  3299. local dicemesh = Instance.new("SpecialMesh",dice)
  3300. dicemesh.MeshId = "rbxassetid://95358536"
  3301. dicemesh.TextureId = "rbxassetid://100025876"
  3302. dicemesh.Scale = Vector3.new(4,4,4)
  3303. coroutine.wrap(function()
  3304. wait(.25)
  3305. for i = 1, 20 do
  3306. cy.Size = cy.Size - Vector3.new(0,.85,.85)
  3307. swait()
  3308. end
  3309. cy:Remove()
  3310. end)()
  3311. local cy2 = Instance.new("Part",Torso)
  3312. cy2.Size = Vector3.new(.2,.1,.1)
  3313. cy2.Anchored = true
  3314. cy2.Shape = "Cylinder"
  3315. cy2.Material = "Neon"
  3316. cy2.BrickColor = BrickColor.new("White")
  3317. cy2.CanCollide = false
  3318. cy2.CFrame = cy.CFrame * CFrame.new(-70,0,0)
  3319. portalopen2.Parent = cy2
  3320. portalopen2:Play()
  3321. coroutine.wrap(function()
  3322. for i = 1, 14 do
  3323. dice.Transparency = dice.Transparency - .15
  3324. dice.CFrame = dice.CFrame:lerp(CFrame.new(posb.Position),.1)
  3325. swait()
  3326. end
  3327. Hit = damagealll(12,dice.Position)
  3328. for _,v in pairs(Hit) do
  3329. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  3330. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  3331. if secondform then
  3332. slachtoffer.Parent:BreakJoints()
  3333. else
  3334. slachtoffer:TakeDamage(math.random(2,4))
  3335. end
  3336. if secondform then
  3337. coroutine.wrap(function()
  3338. if tauntdebounce then return end
  3339. tauntdebounce = true
  3340. rdnm2 = p1[math.random(1,#p1)]
  3341. tauntsound = Instance.new("Sound", Head)
  3342. tauntsound.Volume = 10
  3343. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  3344. tauntsound.Looped = false
  3345. tauntsound:Play()
  3346. wait(3)
  3347. wait(tauntsound.TimeLength)
  3348. tauntsound:Remove()
  3349. wait(1)
  3350. tauntdebounce = false
  3351. end)()
  3352. end
  3353. local hc = Instance.new("Sound",slachtoffer.Parent.Head)
  3354. hc.SoundId = "rbxasssetid://2974876428"
  3355. hc.Volume = 10
  3356. hc:Play()
  3357. coroutine.wrap(function()
  3358. local w = Instance.new("Part",Torso)
  3359. w.Anchored = true
  3360. w.CanCollide = false
  3361. w.Material = "Neon"
  3362. w.BrickColor = BrickColor.new("White")
  3363. if slachtoffer.RigType == Enum.HumanoidRigType.R15 then
  3364. w.CFrame = slachtoffer.Parent:FindFirstChild("UpperTorso").CFrame
  3365. elseif slachtoffer.RigType == Enum.HumanoidRigType.R6 then
  3366. w.CFrame = slachtoffer.Parent:FindFirstChild("Torso").CFrame
  3367. end
  3368. w.Size = Vector3.new(3,3,3)
  3369. w.Shape = "Ball"
  3370. for i = 1, 50 do
  3371. w.Transparency = w.Transparency + .05
  3372. w.Size = w.Size + Vector3.new(1.75,1.75,1.75)
  3373. swait()
  3374. end
  3375. w:Remove()
  3376. end)()
  3377. for i = 1, 8 do
  3378. coroutine.wrap(function()
  3379. local ps = Instance.new("Part",Torso)
  3380. ps.Size = Vector3.new(1,1,1)
  3381. ps.Anchored = true
  3382. ps.BrickColor = BrickColor.new("White")
  3383. ps.Material = "Neon"
  3384. if slachtoffer.RigType == Enum.HumanoidRigType.R6 then
  3385. ps.CFrame = slachtoffer.Parent:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3386. elseif slachtoffer.RigType == Enum.HumanoidRigType.R15 then
  3387. ps.CFrame = slachtoffer.Parent:FindFirstChild("UpperTorso").CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3388. end
  3389. local psm = Instance.new("SpecialMesh",ps)
  3390. psm.MeshType = "Sphere"
  3391. psm.Scale = Vector3.new(3,1,3)
  3392. for i = 1, 50 do
  3393. psm.Scale = psm.Scale + Vector3.new(0,2.5,0)
  3394. ps.Transparency = ps.Transparency + .025
  3395. swait()
  3396. end
  3397. ps:Remove()
  3398. end)()
  3399. end
  3400. removeuseless:AddItem(hc,6)
  3401. end
  3402. end
  3403. for i = 1, 14 do
  3404. dice.Transparency = dice.Transparency + .15
  3405. dice.CFrame = dice.CFrame:lerp(CFrame.new(cy2.Position),.1)
  3406. swait()
  3407. end
  3408. dice:Remove()
  3409. end)()
  3410. for i = 1, 20 do
  3411. cy2.Size = cy2.Size + Vector3.new(0,.85,.85)
  3412. swait()
  3413. end
  3414. coroutine.wrap(function()
  3415. wait(.25)
  3416. for i = 1, 20 do
  3417. cy2.Size = cy2.Size - Vector3.new(0,.85,.85)
  3418. swait()
  3419. end
  3420. cy2:Remove()
  3421. end)()
  3422. swait()
  3423. end
  3424. posb:Remove()
  3425. end
  3426. end)
  3427. ws = 0
  3428. for i = 1, 15 do
  3429. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.4,-.2) * CFrame.Angles(math.rad(36),math.rad(0),math.rad(12)), 0.4)
  3430. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.4,-.2) * CFrame.Angles(math.rad(36),math.rad(0),math.rad(-12)), 0.4)
  3431. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(22), math.rad(0), math.rad(0)),.4)
  3432. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.39, 2, .6) * CFrame.Angles(math.rad(37), math.rad(0), math.rad(0)), 0.4)
  3433. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.1, -1.1) * CFrame.Angles(math.rad(-87), math.rad(3), math.rad(5)), 0.4)
  3434. swait()
  3435. end
  3436. hitbox:Remove()
  3437. ws = 32
  3438. removeuseless:AddItem(g1,.001)
  3439. debounce = false
  3440. attacking = false
  3441. elseif Press=='u' then
  3442. if mouse.Target ~= nil then
  3443. if debounce then return end
  3444. debounce = true
  3445. attacking = true
  3446. change = .5
  3447. ws = 0
  3448. for i = 1, 30 do
  3449. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  3450. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  3451. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(1.5,1.1,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(171)), 0.2)
  3452. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  3453. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  3454. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  3455. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  3456. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  3457. swait()
  3458. end
  3459. local snap = Instance.new("Sound",Torso)
  3460. snap.SoundId = "rbxassetid://3154155968"
  3461. snap.Volume = 10
  3462. snap:Play()
  3463. removeuseless:AddItem(snap,4)
  3464. local mark = Instance.new("Part",Torso)
  3465. mark.Size = Vector3.new(1,1,1)
  3466. mark.Anchored = true
  3467. mark.CanCollide = false
  3468. mark.Transparency = 1
  3469. mark.CFrame = CFrame.new(mouse.Hit.p) * CFrame.new(0,30,0) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3470. local cy = Instance.new("Part",Torso)
  3471. cy.Size = Vector3.new(.2,.1,.1)
  3472. cy.Anchored = true
  3473. cy.Shape = "Cylinder"
  3474. cy.Material = "Neon"
  3475. cy.BrickColor = BrickColor.new("White")
  3476. cy.CanCollide = false
  3477. cy.CFrame = mark.CFrame * CFrame.Angles(0,math.rad(math.random(-180,180)),math.rad(math.random(-180,180))) * CFrame.new(23,0,0)
  3478. local portalopen = Instance.new("Sound",cy)
  3479. portalopen.SoundId = "rbxassetid://1888686669"
  3480. portalopen.Volume = 10
  3481. portalopen:Play()
  3482. coroutine.wrap(function()
  3483. for i = 1, 20 do
  3484. cy.Size = cy.Size + Vector3.new(0,.85,.85)
  3485. swait()
  3486. end
  3487. local dice = Instance.new("Part",Torso)
  3488. dice.CanCollide = true
  3489. dice.CFrame = cy.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3490. dice.Anchored = true
  3491. dice.Transparency = 1
  3492. dice.Size = Vector3.new(.5,.5,.5)
  3493. local dicemesh = Instance.new("SpecialMesh",dice)
  3494. dicemesh.MeshId = "rbxassetid://95358536"
  3495. dicemesh.TextureId = "rbxassetid://100025876"
  3496. dicemesh.Scale = Vector3.new(4,4,4)
  3497. local wh = Instance.new("Part",Torso)
  3498. wh.Size = Vector3.new(10,10,10)
  3499. wh.Anchored = false
  3500. wh.CanCollide = false
  3501. wh.Material = "Neon"
  3502. wh.BrickColor = BrickColor.new("White")
  3503. wh.Transparency = 1
  3504. SOUND(dice,148894535,10,false,10)
  3505. local whw = weldBetween(wh,dice)
  3506. for i = 1, 20 do
  3507. dice.Transparency = dice.Transparency - .05
  3508. wh.Transparency = wh.Transparency - .025
  3509. dice.CFrame = dice.CFrame:lerp(CFrame.new(mark.Position),.1)
  3510. swait()
  3511. end
  3512. local f = 0
  3513. local g = 0
  3514. local h = 0
  3515. local speen = true
  3516. coroutine.wrap(function()
  3517. while speen do
  3518. f = f + 2
  3519. g = g + 3
  3520. h = h + 1
  3521. dice.CFrame = dice.CFrame:lerp(CFrame.new(mark.Position)*CFrame.new(5 * math.sin(sine/11),8 * math.sin(sine/13),4 * math.sin(sine/16)) * CFrame.Angles(math.rad(f),math.rad(g),math.rad(h)),.1)
  3522. swait()
  3523. end
  3524. end)()
  3525. wait(.5)
  3526. for i = 1, 20 do
  3527. cy.Size = cy.Size - Vector3.new(0,.85,.85)
  3528. swait()
  3529. end
  3530. cy:Remove()
  3531. dice.Size = Vector3.new(11,11,11)
  3532. for i = 1, 4 do
  3533. local wh2 = Instance.new("Part",Torso)
  3534. wh2.Size = dice.Size
  3535. wh2.Anchored = false
  3536. wh2.CanCollide = false
  3537. wh2.Material = "Neon"
  3538. wh2.BrickColor = BrickColor.new("White")
  3539. wh2.Transparency = 1
  3540. local whw2 = weldBetween(wh2,dice)
  3541. for i = 1, 80 do
  3542. wh2.Transparency = wh2.Transparency - .0125
  3543. swait()
  3544. end
  3545. local mk = Instance.new("Part",Torso)
  3546. mk.Anchored = true
  3547. mk.CanCollide = false
  3548. mk.Size = Vector3.new(1,1,1)
  3549. mk.CFrame = dice.CFrame
  3550. mk.Transparency = 1
  3551. removeuseless:AddItem(mk,6)
  3552. local xplo = Instance.new("Sound",mk)
  3553. xplo.SoundId = "rbxassetid://2743212628"
  3554. xplo.Volume = 10
  3555. xplo:Play()
  3556. dicemesh.Scale = dicemesh.Scale - Vector3.new(1,1,1)
  3557. dice.Size = dice.Size - Vector3.new(2.75,2.75,2.75)
  3558. whw2:Remove()
  3559. wh2.Anchored = true
  3560. wh.Size = wh.Size - Vector3.new(2.5,2.5,2.5)
  3561. for i = 1, 20 do
  3562. local bm = Instance.new("Part",Torso)
  3563. bm.Anchored = true
  3564. bm.CanCollide = false
  3565. bm.CFrame = dice.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  3566. bm.Material = "Neon"
  3567. bm.Shape = "Cylinder"
  3568. bm.BrickColor = BrickColor.new("White")
  3569. bm.Size = Vector3.new(5000000,4,4)
  3570. local hitt = false
  3571. bm.Touched:connect(function(hit)
  3572. if hitt then return end
  3573. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  3574. hitt = true
  3575. if secondform then
  3576. hit.Parent:BreakJoints()
  3577. else
  3578. hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(32,47))
  3579. end
  3580. if secondform then
  3581. coroutine.wrap(function()
  3582. if tauntdebounce then return end
  3583. tauntdebounce = true
  3584. rdnm2 = p1[math.random(1,#p1)]
  3585. tauntsound = Instance.new("Sound", Head)
  3586. tauntsound.Volume = 10
  3587. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  3588. tauntsound.Looped = false
  3589. tauntsound:Play()
  3590. wait(3)
  3591. wait(tauntsound.TimeLength)
  3592. tauntsound:Remove()
  3593. wait(1)
  3594. tauntdebounce = false
  3595. end)()
  3596. end
  3597. end
  3598. end)
  3599. coroutine.wrap(function()
  3600. for i = 1, 20 do
  3601. bm.Transparency = bm.Transparency + .05
  3602. swait()
  3603. end
  3604. bm:Remove()
  3605. end)()
  3606. end
  3607. for i = 1, 40 do
  3608. wh2.Size = wh2.Size + Vector3.new(1,1,1)
  3609. wh2.Transparency = wh2.Transparency + .025
  3610. swait()
  3611. end
  3612. wh2:Remove()
  3613. swait()
  3614. end
  3615. mark:Remove()
  3616. dice:Remove()
  3617. wh:Remove()
  3618. end)()
  3619. for i = 1, 7 do
  3620. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  3621. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.4)
  3622. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.95,1.7,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(208)), 0.4)
  3623. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.4)
  3624. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.4)
  3625. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.4)
  3626. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.4)
  3627. swait()
  3628. end
  3629. for i = 1, 30 do
  3630. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  3631. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  3632. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(1.3,1.4,0) * CFrame.Angles(math.rad(2),math.rad(5),math.rad(188)), 0.2)
  3633. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  3634. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  3635. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  3636. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  3637. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  3638. swait()
  3639. end
  3640. attacking = false
  3641. debounce = false
  3642. ws = 32
  3643. end
  3644. elseif Press=='t' then
  3645. if tauntdebounce == true then return end
  3646. tauntdebounce = true
  3647. if secondform then
  3648. rdnm2 = p2[math.random(1,#p2)]
  3649. tauntsound = Instance.new("Sound", Head)
  3650. tauntsound.Volume = 10
  3651. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  3652. tauntsound.Looped = false
  3653. tauntsound:Play()
  3654. else
  3655. rdnm2 = soundtable[math.random(1,#soundtable)]
  3656. tauntsound = Instance.new("Sound", Head)
  3657. tauntsound.Volume = 10
  3658. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  3659. tauntsound.Looped = false
  3660. tauntsound:Play()
  3661. end
  3662. wait(3)
  3663. wait(tauntsound.TimeLength)
  3664. tauntsound:Remove()
  3665. wait(1)
  3666. tauntdebounce = false
  3667. elseif Press=='y' then
  3668. if mouse.Target ~= nil then
  3669. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil and mouse.Target.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
  3670. local enemyhum = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  3671. if debounce then return end
  3672. debounce = true
  3673. attacking = true
  3674. enemyhum.WalkSpeed = 0
  3675. tps = Instance.new("Sound", Torso)
  3676. tps.Volume = 10
  3677. tps.SoundId = "rbxassetid://2610939724"
  3678. tps:Play()
  3679. removeuseless:AddItem(tps,4)
  3680. ws = 0
  3681. local fakemask = Instance.new("Part",Character)
  3682. fakemask.Size = Vector3.new(1,1,1)
  3683. fakemask.CFrame = mask.CFrame
  3684. fakemask.Material = "Neon"
  3685. fakemask.CanCollide = false
  3686. fakemask.Anchored = true
  3687. fakemask.BrickColor = BrickColor.new("Really black")
  3688. fakemask.Transparency = .5
  3689. local mfMask = Instance.new("SpecialMesh", fakemask)
  3690. mfMask.MeshType = "FileMesh"
  3691. mfMask.Scale = Vector3.new(1.25,1.25,1.25)
  3692. mfMask.MeshId = "rbxassetid://12470186"
  3693. local fakefedora = Instance.new("Part",Character)
  3694. fakefedora.Size = Vector3.new(2,2,2)
  3695. fakefedora.CFrame = fedora.CFrame
  3696. fakefedora.CanCollide = false
  3697. fakefedora.Transparency = .5
  3698. fakefedora.Anchored = true
  3699. fakefedora.BrickColor = BrickColor.new("Really black")
  3700. local fakefedoram = Instance.new("SpecialMesh", fakefedora)
  3701. fakefedoram.MeshType = "FileMesh"
  3702. fakefedoram.Scale = Vector3.new(1.1, 1.1, 1.1)
  3703. fakefedoram.MeshId = "rbxassetid://11144636"
  3704. local fakehead = Instance.new("Part",Character)
  3705. fakehead.Size = Vector3.new(1.01,1.01,1.01)
  3706. fakehead.Anchored = true
  3707. fakehead.CanCollide = false
  3708. fakehead.Transparency = .5
  3709. fakehead.BrickColor = BrickColor.new("Really black")
  3710. fakehead.Material = "Neon"
  3711. fakehead.CFrame = Head.CFrame
  3712. local fakeheadmesh = Instance.new("SpecialMesh",fakehead)
  3713. fakeheadmesh.MeshType = "Head"
  3714. fakeheadmesh.Scale = Vector3.new(1.255,1.255,1.255)
  3715. local fakelarm = Instance.new("Part",Character)
  3716. fakelarm.CFrame = LeftArm.CFrame
  3717. fakelarm.Size = Vector3.new(1,2,1)
  3718. fakelarm.CanCollide = false
  3719. fakelarm.BrickColor = BrickColor.new("Really black")
  3720. fakelarm.Transparency = .5
  3721. fakelarm.Material = "Neon"
  3722. fakelarm.Anchored = true
  3723. local fakerarm = Instance.new("Part",Character)
  3724. fakerarm.CFrame = RightArm.CFrame
  3725. fakerarm.Size = Vector3.new(1,2,1)
  3726. fakerarm.Transparency = .5
  3727. fakerarm.BrickColor = BrickColor.new("Really black")
  3728. fakerarm.CanCollide = false
  3729. fakerarm.Material = "Neon"
  3730. fakerarm.Anchored = true
  3731. local fakelleg = Instance.new("Part",Character)
  3732. fakelleg.CFrame = LeftLeg.CFrame
  3733. fakelleg.Size = Vector3.new(1,2,1)
  3734. fakelleg.BrickColor = BrickColor.new("Really black")
  3735. fakelleg.Transparency = .5
  3736. fakelleg.CanCollide = false
  3737. fakelleg.Material = "Neon"
  3738. fakelleg.Anchored = true
  3739. local fakerleg = Instance.new("Part",Character)
  3740. fakerleg.CFrame = RightLeg.CFrame
  3741. fakerleg.Size = Vector3.new(1,2,1)
  3742. fakerleg.Transparency = .5
  3743. fakerleg.BrickColor = BrickColor.new("Really black")
  3744. fakerleg.CanCollide = false
  3745. fakerleg.Material = "Neon"
  3746. fakerleg.Anchored = true
  3747. local fakeTorso = Instance.new("Part",Character)
  3748. fakeTorso.CFrame = Torso.CFrame
  3749. fakeTorso.Size = Vector3.new(2,2,1)
  3750. fakeTorso.Transparency = .5
  3751. fakeTorso.CanCollide = false
  3752. fakeTorso.BrickColor = BrickColor.new("Really black")
  3753. fakeTorso.Material = "Neon"
  3754. fakeTorso.Anchored = true
  3755. coroutine.wrap(function()
  3756. for i = 1, 80 do
  3757. fakemask.Transparency = fakemask.Transparency + .0125
  3758. fakefedora.Transparency = fakefedora.Transparency + .0125
  3759. fakehead.Transparency = fakehead.Transparency + .0125
  3760. fakelarm.Transparency = fakelarm.Transparency + .0125
  3761. fakerarm.Transparency = fakerarm.Transparency + .0125
  3762. fakelleg.Transparency = fakelleg.Transparency + .0125
  3763. fakerleg.Transparency = fakerleg.Transparency + .0125
  3764. fakeTorso.Transparency = fakeTorso.Transparency + .0125
  3765. swait()
  3766. end
  3767. fakemask:Remove()
  3768. fakefedora:Remove()
  3769. fakehead:Remove()
  3770. fakelarm:Remove()
  3771. fakerarm:Remove()
  3772. fakelleg:Remove()
  3773. fakerleg:Remove()
  3774. fakeTorso:Remove()
  3775. end)()
  3776. Root.CFrame = enemyhum.Parent.Torso.CFrame * CFrame.new(0,0,3.9)
  3777. local hitbox = Instance.new("Part",Torso)
  3778. hitbox.Size = Vector3.new(1,1,1)
  3779. hitbox.Anchored = true
  3780. hitbox.Transparency = 1
  3781. hitbox.CanCollide = false
  3782. hitbox.CFrame = RightLeg.CFrame * CFrame.new(0,-.9,0)
  3783. for i = 1, 50 do
  3784. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  3785. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  3786. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.33) * CFrame.Angles(math.rad(-80 + 2 * math.sin(sine/12)),math.rad(-94 + 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  3787. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  3788. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  3789. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  3790. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  3791. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  3792. swait()
  3793. end
  3794. RightLeg.CanCollide = false
  3795. LeftLeg.CanCollide = false
  3796. for i = 1, 7 do
  3797. hitbox.CFrame = RightLeg.CFrame * CFrame.new(0,-.9,0)
  3798. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.8, 1.7, -.1) * CFrame.Angles(math.rad(-0), math.rad(7), math.rad(72)), 0.4)
  3799. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, .3, -.2) * CFrame.Angles(math.rad(12), math.rad(-0), math.rad(-12)), 0.4)
  3800. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1, .5) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4)
  3801. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.4, 0) * CFrame.Angles(math.rad(72), math.rad(90), math.rad(0)), 0.4)
  3802. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.161, 2.1, 0) * CFrame.Angles(math.rad(0), math.rad(5), math.rad(-18)), 0.4)
  3803. swait()
  3804. end
  3805. Hit = damagealll(3,hitbox.Position)
  3806. for _,v in pairs(Hit) do
  3807. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  3808. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  3809. if secondform then
  3810. slachtoffer.Parent:BreakJoints()
  3811. else
  3812. slachtoffer:TakeDamage(math.random(35,42))
  3813. end
  3814. if secondform then
  3815. coroutine.wrap(function()
  3816. if tauntdebounce then return end
  3817. tauntdebounce = true
  3818. rdnm2 = p1[math.random(1,#p1)]
  3819. tauntsound = Instance.new("Sound", Head)
  3820. tauntsound.Volume = 10
  3821. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  3822. tauntsound.Looped = false
  3823. tauntsound:Play()
  3824. wait(3)
  3825. wait(tauntsound.TimeLength)
  3826. tauntsound:Remove()
  3827. wait(1)
  3828. tauntdebounce = false
  3829. end)()
  3830. end
  3831. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  3832. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  3833. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  3834. local c = Instance.new("Sound",torso)
  3835. c.SoundId = "rbxassetid://2053414752"
  3836. c.Volume = 10
  3837. c:Play()
  3838. removeuseless:AddItem(c,6)
  3839. vel.velocity = CFrame.new(hitbox.Position,torso.Position).lookVector*300
  3840. removeuseless:AddItem(vel,.1)
  3841. end
  3842. end
  3843. enemyhum.WalkSpeed = 16
  3844. for i = 1, 7 do
  3845. hitbox.CFrame = RightLeg.CFrame * CFrame.new(0,-.9,0)
  3846. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.8, 1.7, -.1) * CFrame.Angles(math.rad(-0), math.rad(7), math.rad(72)), 0.4)
  3847. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, .3, -.2) * CFrame.Angles(math.rad(12), math.rad(-0), math.rad(-12)), 0.4)
  3848. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1, .5) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4)
  3849. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.4, 0) * CFrame.Angles(math.rad(72), math.rad(90), math.rad(0)), 0.4)
  3850. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.161, 2.1, 0) * CFrame.Angles(math.rad(0), math.rad(5), math.rad(-18)), 0.4)
  3851. swait()
  3852. end
  3853. for i = 1, 100 do
  3854. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5, 1.76, -.1) * CFrame.Angles(math.rad(-0), math.rad(7), math.rad(90)), 0.02)
  3855. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, .3, -.2) * CFrame.Angles(math.rad(12), math.rad(-0), math.rad(-12)), 0.4)
  3856. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1, .5) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4)
  3857. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.7, -.3) * CFrame.Angles(math.rad(72), math.rad(90), math.rad(0)), 0.02)
  3858. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.161, 2.1, 0) * CFrame.Angles(math.rad(0), math.rad(5), math.rad(-18)), 0.4)
  3859. swait()
  3860. end
  3861. SOUND(Torso,147722227,10,false,4)
  3862. for i = 1, 15 do
  3863. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
  3864. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(1.1, 1.7, 0) * CFrame.Angles(math.rad(0), math.rad(-0), math.rad(-160)), 0.2)
  3865. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.36, 0) * CFrame.Angles(math.rad(180), math.rad(180), math.rad(20)), 0.2)
  3866. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  3867. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  3868. swait()
  3869. end
  3870. for i = 1, 18 do
  3871. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
  3872. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
  3873. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(223), math.rad(96), math.rad(21)), 0.2)
  3874. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  3875. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  3876. swait()
  3877. end
  3878. for i = 1, 40 do
  3879. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4, 1, 0.501) * CFrame.Angles(math.rad(-80), math.rad(-40), math.rad(2)), .2)
  3880. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, 0, .3) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), .2)
  3881. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-80), math.rad(7), math.rad(0)), .2)
  3882. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.2, .8) * CFrame.Angles(math.rad(-80), math.rad(10), math.rad(0)), .2)
  3883. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 1.9, -.34) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(10)), .2)
  3884. swait()
  3885. end
  3886. attacking = false
  3887. debounce = false
  3888. ws = 32
  3889. end
  3890. end
  3891. elseif Press=='l' then
  3892. if debounce then return end
  3893. debounce = true
  3894. attacking = true
  3895. ws = 0
  3896. coroutine.wrap(function()----lol
  3897. local bb = 0
  3898. local ua = Instance.new("Sound",Torso)
  3899. ua.SoundId = "rbxassetid://3214519794"
  3900. ua.Volume = 10
  3901. ua:Play()
  3902. invisible = true
  3903. for i = 1, 20 do
  3904. doomtheme.Volume = doomtheme.Volume - .5
  3905. swait()
  3906. end
  3907. local en = Instance.new("Part",Torso)
  3908. en.Size = Vector3.new(140,140,140)
  3909. en.BrickColor = BrickColor.new("White")
  3910. en.Material = "Neon"
  3911. en.Shape = "Ball"
  3912. en.Anchored = true
  3913. en.Transparency = 1
  3914. en.CanCollide = false
  3915. en.CFrame = Torso.CFrame
  3916. for i = 1, 100 do
  3917. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,4,0) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)),.05)
  3918. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1,.5) * CFrame.Angles(math.rad(-125),math.rad(25),math.rad(0)), 0.05)
  3919. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,1,.5) * CFrame.Angles(math.rad(-125),math.rad(-25),math.rad(0)), 0.05)
  3920. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1., .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.05)
  3921. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.05)
  3922. swait()
  3923. end
  3924. for i = 1, 100 do
  3925. en.CFrame = Torso.CFrame
  3926. en.Size = en.Size - Vector3.new(1.3,1.3,1.3)
  3927. en.Transparency = en.Transparency - .025
  3928. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,4,0) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)),.25)
  3929. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1,.5) * CFrame.Angles(math.rad(-125),math.rad(25),math.rad(0)), 0.25)
  3930. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2,1,.5) * CFrame.Angles(math.rad(-125),math.rad(-25),math.rad(0)), 0.25)
  3931. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1., .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.25)
  3932. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.25)
  3933. swait()
  3934. end
  3935. en.Transparency = 0
  3936. wait(2)
  3937. coroutine.wrap(function()
  3938. local m = Instance.new("Part",Torso)
  3939. m.Size = Vector3.new(10,10,10)
  3940. m.Material = "Neon"
  3941. m.BrickColor = BrickColor.new("White")
  3942. m.Anchored = true
  3943. m.Transparency = 1
  3944. m.Name = "mo"
  3945. m.CanCollide = false
  3946. m.CFrame = Torso.CFrame
  3947. local m2 = m:Clone()
  3948. m2.Parent = Torso
  3949. m2.Size = Vector3.new(25,25,25)
  3950. local m3 = m:Clone()
  3951. m3.Parent = Torso
  3952. m3.Size = Vector3.new(50,50,50)
  3953. local m4 = m:Clone()
  3954. m4.Parent = Torso
  3955. m4.Size = Vector3.new(75,75,75)
  3956. local m5 = m:Clone()
  3957. m5.Parent = Torso
  3958. m5.Size = Vector3.new(100,100,100)
  3959. local m6 = m:Clone()
  3960. m6.Parent = Torso
  3961. m6.Size = Vector3.new(150,150,150)
  3962. local m7 = m:Clone()
  3963. m7.Parent = Torso
  3964. m7.Size = Vector3.new(200,200,200)
  3965. local m8 = m:Clone()
  3966. m8.Size = Vector3.new(300,300,300)
  3967. m8.Parent = Torso
  3968. local m9 = m:Clone()
  3969. m9.Size = Vector3.new(425,425,425)
  3970. m9.Parent = Torso
  3971. local m10 = m:Clone()
  3972. m10.Size = Vector3.new(725,725,725)
  3973. m10.Parent = Torso
  3974. local m11 = m:Clone()
  3975. m11.Size = Vector3.new(1025,1025,1025)
  3976. m11.Parent = Torso
  3977. coroutine.wrap(function()
  3978. for i = 1, 100 do
  3979. m11.Transparency = m.Transparency - .002
  3980. swait()
  3981. end
  3982. end)()
  3983. coroutine.wrap(function()
  3984. for i = 1, 100 do
  3985. m10.Transparency = m.Transparency - .002
  3986. swait()
  3987. end
  3988. end)()
  3989. coroutine.wrap(function()
  3990. for i = 1, 100 do
  3991. m.Transparency = m.Transparency - .005
  3992. swait()
  3993. end
  3994. end)()
  3995. wait(.1)
  3996. coroutine.wrap(function()
  3997. for i = 1, 100 do
  3998. m2.Transparency = m2.Transparency - .0045
  3999. swait()
  4000. end
  4001. end)()
  4002. wait(.1)
  4003. coroutine.wrap(function()
  4004. for i = 1, 100 do
  4005. m3.Transparency = m3.Transparency - .004
  4006. swait()
  4007. end
  4008. end)()
  4009. wait(.1)
  4010. coroutine.wrap(function()
  4011. for i = 1, 100 do
  4012. m4.Transparency = m4.Transparency - .0035
  4013. swait()
  4014. end
  4015. end)()
  4016. wait(.1)
  4017. coroutine.wrap(function()
  4018. for i = 1, 100 do
  4019. m5.Transparency = m5.Transparency - .003
  4020. swait()
  4021. end
  4022. end)()
  4023. wait(.1)
  4024. coroutine.wrap(function()
  4025. for i = 1, 100 do
  4026. m6.Transparency = m6.Transparency - .0025
  4027. swait()
  4028. end
  4029. end)()
  4030. wait(.1)
  4031. coroutine.wrap(function()
  4032. for i = 1, 100 do
  4033. m7.Transparency = m7.Transparency - .002
  4034. swait()
  4035. end
  4036. end)()
  4037. wait(.1)
  4038. coroutine.wrap(function()
  4039. for i = 1, 100 do
  4040. m8.Transparency = m8.Transparency - .002
  4041. swait()
  4042. end
  4043. end)()
  4044. wait(.1)
  4045. coroutine.wrap(function()
  4046. for i = 1, 100 do
  4047. m9.Transparency = m9.Transparency - .002
  4048. swait()
  4049. end
  4050. end)()
  4051. wait(.1)
  4052. end)()
  4053. coroutine.wrap(function()
  4054. for i = 1, 50 do
  4055. en.CFrame = Torso.CFrame
  4056. en.Size = en.Size + Vector3.new(8,8,8)
  4057. en.Transparency = en.Transparency + .025
  4058. swait()
  4059. end
  4060. en:Remove()
  4061. end)()
  4062. for i = 1, 30 do
  4063. coroutine.wrap(function()
  4064. local sk = Instance.new("Part",Torso)
  4065. sk.CanCollide = false
  4066. sk.Anchored = true
  4067. sk.BrickColor = BrickColor.new("White")
  4068. sk.Name = "sk"
  4069. sk.Transparency = 1
  4070. sk.CFrame = Root.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
  4071. local skmesh = Instance.new("SpecialMesh",sk)
  4072. skmesh.MeshId = "rbxassetid://662586858"
  4073. skmesh.Name = "wave"
  4074. skmesh.Scale = Vector3.new(math.random(.7,3),.005,math.random(.7,3))
  4075. for i = 1, 30 do
  4076. sk.Transparency = sk.Transparency - .0125
  4077. swait()
  4078. end
  4079. sk:Remove()
  4080. end)()
  4081. end
  4082. for i = 1, 400 do
  4083. coroutine.wrap(function()
  4084. Hit = damagealll(1000,Root.Position)
  4085. for _,v in pairs(Hit) do
  4086. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  4087. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  4088. if secondform then
  4089. slachtoffer.Parent:BreakJoints()
  4090. else
  4091. slachtoffer:TakeDamage(math.random(5,10))
  4092. end
  4093. end
  4094. end
  4095. local shockwave = Instance.new("Part", Torso)
  4096. shockwave.Size = Vector3.new(1,1,1)
  4097. shockwave.CanCollide = false
  4098. shockwave.Anchored = true
  4099. shockwave.Transparency = 0
  4100. shockwave.BrickColor = BrickColor.new("White")
  4101. shockwave.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-1.75,0)
  4102. local shockwavemesh = Instance.new("SpecialMesh", shockwave)
  4103. shockwavemesh.Scale = Vector3.new(4,.7,4)
  4104. shockwavemesh.MeshId = "rbxassetid://20329976"
  4105. local shockwave2 = Instance.new("Part", Torso)
  4106. shockwave2.Size = Vector3.new(1,1,1)
  4107. shockwave2.CanCollide = false
  4108. shockwave2.Anchored = true
  4109. shockwave2.Transparency = 0
  4110. shockwave2.BrickColor = BrickColor.new("White")
  4111. shockwave2.CFrame = CFrame.new(Root.Position) * CFrame.new(0,-1.6,0)
  4112. local shockwavemesh2 = Instance.new("SpecialMesh", shockwave2)
  4113. shockwavemesh2.Scale = Vector3.new(4,.7,4)
  4114. shockwavemesh2.MeshId = "rbxassetid://20329976"
  4115. for i = 1, 30 do
  4116. shockwave.CFrame = shockwave.CFrame * CFrame.Angles(math.rad(0),math.rad(0+math.random(8,15)),0)
  4117. shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(math.rad(0),math.rad(0-math.random(4,8)),0)
  4118. shockwave.Transparency = shockwave.Transparency + 0.035
  4119. shockwave2.Transparency = shockwave2.Transparency + 0.035
  4120. shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(15,5,15)
  4121. shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(10,6,10)
  4122. swait()
  4123. end
  4124. shockwave:Remove()
  4125. shockwave2:Remove()
  4126. end)()
  4127. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.305,2.035,.4) * CFrame.Angles(math.rad(17),math.rad(9),math.rad(-12)),.2)
  4128. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.305, 2.035, .4) * CFrame.Angles(math.rad(17),math.rad(-9),math.rad(12)),.2)
  4129. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,2,0) * CFrame.Angles(math.rad(30),0,0),.2)
  4130. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:Lerp(CFrame.new(-1.65,1,0) * CFrame.Angles(math.rad(10),math.rad(8),math.rad(-45)),.2)
  4131. LEFTARMLERP.C0 = LEFTARMLERP.C0:Lerp(CFrame.new(1.65,1,0)* CFrame.Angles(math.rad(10),math.rad(-8),math.rad(45)),.2)
  4132. coroutine.wrap(function()
  4133. local deadlyring = Instance.new("Part", Torso)
  4134. deadlyring.Size = Vector3.new(5, 5, 5)
  4135. deadlyring.Transparency = .5
  4136. deadlyring.BrickColor = BrickColor.new("White")
  4137. deadlyring.Anchored = true
  4138. deadlyring.CanCollide = false
  4139. deadlyring.CFrame = Torso.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
  4140. local deadlyringh = Instance.new("SpecialMesh", deadlyring)
  4141. deadlyringh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  4142. deadlyringh.Scale = Vector3.new(1, 1, .1)
  4143. for i = 1, 60 do
  4144. deadlyringh.Scale = deadlyringh.Scale + Vector3.new(20.25,20.25,0)
  4145. deadlyring.Transparency = deadlyring.Transparency + .025
  4146. swait()
  4147. end
  4148. deadlyring:Remove()
  4149. end)()
  4150. coroutine.wrap(function()
  4151. local deadlyring = Instance.new("Part", Torso)
  4152. deadlyring.Size = Vector3.new(5, 5, 5)
  4153. deadlyring.Transparency = .5
  4154. deadlyring.BrickColor = BrickColor.new("White")
  4155. deadlyring.Anchored = true
  4156. deadlyring.CanCollide = false
  4157. deadlyring.CFrame = Torso.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
  4158. local deadlyringh = Instance.new("SpecialMesh", deadlyring)
  4159. deadlyringh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  4160. deadlyringh.Scale = Vector3.new(1, 1, .1)
  4161. for i = 1, 60 do
  4162. deadlyringh.Scale = deadlyringh.Scale + Vector3.new(40.25,40.25,0)
  4163. deadlyring.Transparency = deadlyring.Transparency + .025
  4164. swait()
  4165. end
  4166. deadlyring:Remove()
  4167. end)()
  4168. coroutine.wrap(function()
  4169. local deadlyring = Instance.new("Part", Torso)
  4170. deadlyring.Size = Vector3.new(5, 5, 5)
  4171. deadlyring.Transparency = .5
  4172. deadlyring.BrickColor = BrickColor.new("White")
  4173. deadlyring.Anchored = true
  4174. deadlyring.CanCollide = false
  4175. deadlyring.CFrame = Torso.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
  4176. local deadlyringh = Instance.new("SpecialMesh", deadlyring)
  4177. deadlyringh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  4178. deadlyringh.Scale = Vector3.new(1, 1, .1)
  4179. for i = 1, 60 do
  4180. deadlyringh.Scale = deadlyringh.Scale + Vector3.new(80.25,80.25,0)
  4181. deadlyring.Transparency = deadlyring.Transparency + .025
  4182. swait()
  4183. end
  4184. deadlyring:Remove()
  4185. end)()
  4186. for i,v in pairs(Torso:GetDescendants()) do if v.Name == "sk" then
  4187. v.CFrame = v.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
  4188. end
  4189. end
  4190. for i,v in pairs(Torso:GetDescendants()) do if v.Name == "mo" then
  4191. v.CFrame = v.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  4192. end
  4193. end
  4194. swait()
  4195. end
  4196. ws = 32
  4197. debounce = false
  4198. attacking = false
  4199. invisible = false
  4200. for i = 1, 50 do
  4201. for i,v in pairs(Torso:GetDescendants()) do if v.Name == "sk" then
  4202. v.Transparency = v.Transparency + .05
  4203. end
  4204. end
  4205. for i,v in pairs(Torso:GetDescendants()) do if v.Name == "mo" then
  4206. v.Transparency = v.Transparency + .05
  4207. end
  4208. end
  4209. swait()
  4210. end
  4211. end)()
  4212. elseif Press=='k' then
  4213. if mouse.Target ~= nil and mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4214. local enemyhum = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  4215. if enemyhum.Health < 1 then return end
  4216. local ETorso = enemyhum.Parent:FindFirstChild("Torso") or enemyhum.Parent:FindFirstChild("LowerTorso")
  4217. if debounce then return end
  4218. debounce = true
  4219. attacking = true
  4220. g1 = Instance.new("BodyGyro", Root)
  4221. g1.D = 175
  4222. g1.P = 20000
  4223. g1.MaxTorque = Vector3.new(0,9000,0)
  4224. for i = 1, 20 do
  4225. g1.CFrame = CFrame.new(Root.Position,ETorso.Position)
  4226. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  4227. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  4228. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  4229. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  4230. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  4231. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-88 + 2 * math.sin(sine/12)),math.rad(76 - 1 * math.sin(sine/12)),math.rad(0)), 0.2)
  4232. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.2)
  4233. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,0,.2) * CFrame.Angles(math.rad(30),math.rad(30),0),.2)
  4234. swait()
  4235. end
  4236. local dice = Instance.new("Part",Torso)
  4237. dice.CanCollide = false
  4238. dice.CFrame = Root.CFrame * CFrame.new(2,0,-3.6) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
  4239. dice.Anchored = true
  4240. dice.Transparency = 0
  4241. dice.Size = Vector3.new(.8,.8,.8)
  4242. dicemesh = Instance.new("SpecialMesh",dice)
  4243. dicemesh.MeshId = "rbxassetid://95358536"
  4244. dicemesh.TextureId = "rbxassetid://100025876"
  4245. dicemesh.Scale = Vector3.new(.42,.42,.42)
  4246. local sh = Instance.new("Part",Torso)
  4247. sh.Size = Vector3.new(1.1,1.1,1.1)
  4248. sh.Anchored = true
  4249. sh.Transparency = 1
  4250. sh.CanCollide = false
  4251. sh.BrickColor = BrickColor.new("Really white")
  4252. sh.Material = "Neon"
  4253. sh.CFrame = dice.CFrame
  4254. local a = math.random(1,3)
  4255. local b = math.random(3,5)
  4256. local c = math.random(-180,180)
  4257. for i = 1, 20 do
  4258. dice.CFrame = dice.CFrame:lerp(Root.CFrame * CFrame.new(a,b,-5) * CFrame.Angles(math.rad(c),math.rad(c),math.rad(c)),.2)
  4259. sh.CFrame = dice.CFrame
  4260. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.2)
  4261. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,.35) * CFrame.Angles(math.rad(-110),math.rad(22),math.rad(-1)),.2)
  4262. swait()
  4263. end
  4264. coroutine.wrap(function()
  4265. local sof = Instance.new("Sound",dice)
  4266. sof.SoundId = "rbxassetid://149649902"
  4267. sof.Volume = 8
  4268. sof:Play()
  4269. for i = 1, 40 do
  4270. dice.CFrame = dice.CFrame:lerp(Root.CFrame * CFrame.new(a,b,-5) * CFrame.Angles(math.rad(c),math.rad(c),math.rad(c)),.2)
  4271. sh.Transparency = sh.Transparency - .025
  4272. swait()
  4273. end
  4274. local sof2 = Instance.new("Sound",dice)
  4275. sof2.SoundId = "rbxassetid://224339201"
  4276. sof2.Volume = 8
  4277. sof2:Play()
  4278. local sof3 = Instance.new("Sound",dice)
  4279. sof3.SoundId = "rbxassetid://165796875"
  4280. sof3.Volume = 6
  4281. sof3:Play()
  4282. sof3.Looped = true
  4283. MAKETRAIL(dice,Vector3.new(.2,.2,0),Vector3.new(-.2,-.2,0),.7,ColorSequence.new(BrickColor.new("White").Color,BrickColor.new("Really black").Color))
  4284. local zb = Instance.new("Part",Torso)
  4285. zb.Size = Vector3.new(.5,.5,.5)
  4286. zb.Anchored = false
  4287. zb.CanCollide = false
  4288. zb.CFrame = dice.CFrame
  4289. local bov = Instance.new("RocketPropulsion",zb)
  4290. bov.MaxThrust = 4000
  4291. bov.MaxSpeed = 1000
  4292. bov.MaxTorque = Vector3.new(99999999,99999999,99999999)
  4293. bov.Target = ETorso
  4294. bov.TargetRadius = math.huge
  4295. bov:fire()
  4296. coroutine.wrap(function()
  4297. for i = 1, 200 do
  4298. Hit = damagealll(12,dice.Position)
  4299. for _,v in pairs(Hit) do
  4300. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  4301. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  4302. if slachtoffer == enemyhum then
  4303. if secondform then
  4304. slachtoffer.Parent:BreakJoints()
  4305. else
  4306. slachtoffer:TakeDamage(math.random(1,2))
  4307. end
  4308. end
  4309. if secondform then
  4310. coroutine.wrap(function()
  4311. if tauntdebounce then return end
  4312. tauntdebounce = true
  4313. rdnm2 = p1[math.random(1,#p1)]
  4314. tauntsound = Instance.new("Sound", Head)
  4315. tauntsound.Volume = 10
  4316. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  4317. tauntsound.Looped = false
  4318. tauntsound:Play()
  4319. wait(3)
  4320. wait(tauntsound.TimeLength)
  4321. tauntsound:Remove()
  4322. wait(1)
  4323. tauntdebounce = false
  4324. end)()
  4325. end
  4326. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  4327. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  4328. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  4329. vel.velocity = CFrame.new(dice.Position,torso.Position).lookVector*15
  4330. removeuseless:AddItem(vel,.1)
  4331. end
  4332. end
  4333. local pi = Instance.new("Part",Torso)
  4334. pi.Anchored = true
  4335. pi.CanCollide = false
  4336. pi.Size = Vector3.new(1,1,1)
  4337. pi.CFrame = zb.CFrame * CFrame.new(math.random(-7,7),math.random(-7,7),math.random(-7,7))
  4338. dice.CFrame = pi.CFrame
  4339. pi:Remove()
  4340. swait()
  4341. end
  4342. sof3:Remove()
  4343. bov:Remove()
  4344. zb:Remove()
  4345. dice.Anchored = false
  4346. dice.CanCollide = true
  4347. coroutine.wrap(function()
  4348. wait(6)
  4349. for i = 1, 20 do
  4350. dice.Transparency = dice.Transparency + .05
  4351. swait()
  4352. end
  4353. dice:Remove()
  4354. end)()
  4355. end)()
  4356. for i = 1, 20 do
  4357. sh.Size = sh.Size + Vector3.new(.5,.5,.5)
  4358. sh.Transparency = sh.Transparency + .05
  4359. swait()
  4360. end
  4361. sh:Remove()
  4362. end)()
  4363. removeuseless:AddItem(g1,.001)
  4364. attacking = false
  4365. debounce = false
  4366. end
  4367. elseif Press=='e' then
  4368. if debounce then return end
  4369. debounce = true
  4370. attacking = true
  4371. ws = 10
  4372. local g1 = Instance.new("BodyGyro", Root)
  4373. g1.D = 175
  4374. g1.P = 4000
  4375. g1.MaxTorque = Vector3.new(0,9000000,0)
  4376. local bwoo = Instance.new("Sound",Torso)
  4377. bwoo.SoundId = "rbxassetid://134012322"
  4378. bwoo.Volume = 10
  4379. bwoo.Pitch = .85
  4380. bwoo:Play()
  4381. removeuseless:AddItem(bwoo,8)
  4382. for i = 1, 22 do
  4383. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2)
  4384. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
  4385. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
  4386. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  4387. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.2 + .0 * math.sin(sine/12), .7) * CFrame.Angles(math.rad(9 + 0 * math.cos(sine/12)), math.rad(0), math.rad(0)), 0.2)
  4388. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2 + 0 * math.sin(sine/12), 0.2 + 0 * math.sin(sine/12)) * CFrame.Angles(math.rad(25 + 0 * math.sin(sine/12)), math.rad(20), math.rad(0)), 0.2)
  4389. swait()
  4390. end
  4391. local rocksm = Instance.new("Sound",Torso)
  4392. rocksm.SoundId = "rbxassetid://168514932"
  4393. rocksm.Volume = 10
  4394. rocksm.Pitch = .94
  4395. rocksm:Play()
  4396. removeuseless:AddItem(rocksm,8)
  4397. coroutine.wrap(function()
  4398. ws = 0
  4399. for i = 1, 22 do
  4400. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, .15, 0) * CFrame.Angles(math.rad(-10), math.rad(2), math.rad(10)), 0.4)
  4401. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, .15, 0) * CFrame.Angles(math.rad(-10), math.rad(-2), math.rad(-10)), 0.4)
  4402. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2 + 0 * math.sin(sine/12), 0.2 + 0 * math.sin(sine/12)) * CFrame.Angles(math.rad(25 + 0 * math.sin(sine/12)), math.rad(0), math.rad(0)), 0.4)
  4403. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.7, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.4)
  4404. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + 0 * math.sin(sine/12), .5) * CFrame.Angles(math.rad(-9 + 0 * math.cos(sine/12)), math.rad(0), math.rad(0)), 0.4)
  4405. swait()
  4406. end
  4407. end)()
  4408. local p = Instance.new("Part",Torso)
  4409. p.Size = Vector3.new(1,1,1)
  4410. p.Anchored = true
  4411. p.CanCollide = false
  4412. p.Transparency = 1
  4413. p.CFrame = Root.CFrame * CFrame.new(0,0,-4)
  4414. local so = Instance.new("Sound",p)
  4415. so.Volume = 10
  4416. so.SoundId = "rbxassetid://2017948224"
  4417. so:Play()
  4418. local x = 0
  4419. local z = 0
  4420. local c = 0
  4421. for i = 1, 30 do
  4422. x = x + 2
  4423. c = c - 1.2
  4424. z = z + 10
  4425. Hit = damagealll(5 + x,p.Position)
  4426. for _,v in pairs(Hit) do
  4427. if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
  4428. slachtoffer = v:FindFirstChildOfClass("Humanoid")
  4429. if secondform then
  4430. slachtoffer.Parent:BreakJoints()
  4431. else
  4432. slachtoffer:TakeDamage(math.random(39,62))
  4433. end
  4434. if secondform then
  4435. coroutine.wrap(function()
  4436. if tauntdebounce then return end
  4437. tauntdebounce = true
  4438. rdnm2 = p1[math.random(1,#p1)]
  4439. tauntsound = Instance.new("Sound", Head)
  4440. tauntsound.Volume = 10
  4441. tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
  4442. tauntsound.Looped = false
  4443. tauntsound:Play()
  4444. wait(3)
  4445. wait(tauntsound.TimeLength)
  4446. tauntsound:Remove()
  4447. wait(1)
  4448. tauntdebounce = false
  4449. end)()
  4450. end
  4451. vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
  4452. vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
  4453. torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  4454. vel.velocity = CFrame.new(p.Position,torso.Position).lookVector*125
  4455. removeuseless:AddItem(vel,.1)
  4456. end
  4457. end
  4458. local gr = Instance.new("Part",Torso)
  4459. gr.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15)))
  4460. gr.Anchored = true
  4461. gr.Material = "Grass"
  4462. gr.BrickColor = BrickColor.new("Bright green")
  4463. gr.Size = Vector3.new(x,z,x)
  4464. gr.CanCollide = true
  4465. p.CFrame = p.CFrame * CFrame.new(0,0,-2 + c)
  4466. local gr2 = Instance.new("Part",Torso)
  4467. gr2.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(-76,76)),math.rad(math.random(-76,76)),math.rad(math.random(-76,76)))
  4468. gr2.Anchored = true
  4469. gr2.Material = "Grass"
  4470. gr2.BrickColor = BrickColor.new("Bright green")
  4471. gr2.Size = Vector3.new(x/1,z,x/1)
  4472. gr2.CanCollide = true
  4473. coroutine.wrap(function()
  4474. wait(.5)
  4475. gr2.CanCollide = false
  4476. gr2.Anchored = false
  4477. for i = 1, 40 do
  4478. gr2.Transparency = gr2.Transparency + .025
  4479. swait()
  4480. end
  4481. gr2:Remove()
  4482. end)()
  4483. coroutine.wrap(function()
  4484. wait(.5)
  4485. for i = 1, 40 do
  4486. swait()
  4487. gr.CFrame = gr.CFrame * CFrame.new(0,-5,0)
  4488. gr.Transparency = gr.Transparency + .025
  4489. end
  4490. gr:Remove()
  4491. end)()
  4492. swait()
  4493. end
  4494. coroutine.wrap(function()
  4495. wait(.5)
  4496. for i = 1, 40 do
  4497. so.Volume = so.Volume - .025
  4498. swait()
  4499. end
  4500. p:Remove()
  4501. so:Remove()
  4502. end)()
  4503. ws = 32
  4504. removeuseless:AddItem(g1,.0001)
  4505. attacking = false
  4506. debounce = false
  4507. end
  4508. end)
  4509.  
  4510. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  4511. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  4512. end
  4513.  
  4514. function ray2(StartPos, EndPos, Distance, Ignore)
  4515. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  4516. return ray(StartPos, DIRECTION, Distance, Ignore)
  4517. end
  4518.  
  4519. checks1 = coroutine.wrap(function() -------Checks
  4520. while true do
  4521. hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,4 * 1,Character)
  4522. if Root.Velocity.y > 1 and hf == nil then
  4523. position = "Jump"
  4524. elseif Root.Velocity.y < -1 and hf == nil then
  4525. position = "Falling"
  4526. elseif Root.Velocity.Magnitude < 5 and hf ~= nil then
  4527. position = "Idle"
  4528. elseif Root.Velocity.Magnitude > 5 and hf ~= nil then
  4529. position = "Walking"
  4530. else
  4531. end
  4532. wait()
  4533. end
  4534. end)
  4535. checks1()
  4536.  
  4537. OrgnC0 = Neck.C0
  4538. local movelimbs = coroutine.wrap(function()
  4539. while wait() do
  4540. TrsoLV = Torso.CFrame.lookVector
  4541. Dist = nil
  4542. Diff = nil
  4543. if not MseGuide then
  4544. print("Failed to recognize")
  4545. else
  4546. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  4547. Dist = (Head.CFrame.p-Point).magnitude
  4548. Diff = Head.CFrame.Y-Point.Y
  4549. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  4550. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  4551. Diff2 = LeftArm.CFrame.Y-Point.Y
  4552. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  4553. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  4554. end
  4555. end
  4556. end)
  4557. movelimbs()
  4558. immortal = {}
  4559. for i,v in pairs(Character:GetDescendants()) do
  4560. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  4561. if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
  4562. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  4563. end
  4564. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  4565. elseif v:IsA("JointInstance") then
  4566. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  4567. end
  4568. end
  4569. for e = 1, #immortal do
  4570. if immortal[e] ~= nil then
  4571. local STUFF = immortal[e]
  4572. local PART = STUFF[1]
  4573. local PARENT = STUFF[2]
  4574. local MATERIAL = STUFF[3]
  4575. local COLOR = STUFF[4]
  4576. local TRANSPARENCY = STUFF[5]
  4577. if levitate then
  4578. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  4579. PART.Material = MATERIAL
  4580. PART.Color = COLOR
  4581. PART.Transparency = TRANSPARENCY
  4582. end
  4583. PART.AncestryChanged:connect(function()
  4584. PART.Parent = PARENT
  4585. end)
  4586. else
  4587. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  4588. PART.Material = MATERIAL
  4589. PART.Color = COLOR
  4590. PART.Transparency = TRANSPARENCY
  4591. end
  4592. PART.AncestryChanged:connect(function()
  4593. PART.Parent = PARENT
  4594. end)
  4595. end
  4596. end
  4597. end
  4598. function immortality()
  4599. for e = 1, #immortal do
  4600. if immortal[e] ~= nil then
  4601. local STUFF = immortal[e]
  4602. local PART = STUFF[1]
  4603. local PARENT = STUFF[2]
  4604. local MATERIAL = STUFF[3]
  4605. local COLOR = STUFF[4]
  4606. local TRANSPARENCY = STUFF[5]
  4607. if PART.ClassName == "Part" and PART == Root then
  4608. PART.Material = MATERIAL
  4609. PART.Color = COLOR
  4610. PART.Transparency = TRANSPARENCY
  4611. end
  4612. if PART.Parent ~= PARENT then
  4613. hum:Remove()
  4614. PART.Parent = PARENT
  4615. hum = Instance.new("Humanoid",Character)
  4616. if levitate then
  4617. eyo1:Remove()
  4618. eyo2:Remove()
  4619. end
  4620. hum.Name = "noneofurbusiness"
  4621. end
  4622. end
  4623. end
  4624. end
  4625. coroutine.wrap(function()
  4626. while true do
  4627. hum:SetStateEnabled("Dead",false) hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  4628. if hum.Health < .1 then
  4629. immortality()
  4630. end
  4631. wait()
  4632. end
  4633. end)()
  4634.  
  4635. local anims = coroutine.wrap(function()
  4636. while true do
  4637. settime = 0.05
  4638. sine = sine + change
  4639. if position == "Jump" and not attacking then
  4640. change = 1
  4641. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  4642. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, .15, 0) * CFrame.Angles(math.rad(10), math.rad(2), math.rad(10)), 0.2)
  4643. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, .15, 0) * CFrame.Angles(math.rad(-10), math.rad(-2), math.rad(-10)), 0.2)
  4644. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.09)
  4645. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  4646. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  4647. elseif position == "Falling" and not attacking then
  4648. change = 1
  4649. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  4650. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.09)
  4651. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
  4652. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
  4653. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/12), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/12)), math.rad(0), math.rad(0)), 0.25)
  4654. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2 + .02 * math.sin(sine/12), 0.2 + .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/12)), math.rad(20), math.rad(0)), 0.25)
  4655. elseif position == "Walking" and not attacking then
  4656. change = 1.4
  4657. walking = true
  4658. ws = 32
  4659. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  4660. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 - .3 * math.sin(sine/8),.45 +.45 * math.sin(sine/8),-.3 - .26*math.sin(sine/8)) * CFrame.Angles(math.rad(75*math.sin(sine/8)),math.rad(-30 + 40*math.sin(sine/8)),math.rad(-10, math.sin(-20 * math.sin(sine/4)))),.3)
  4661. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3 - .3 * math.sin(sine/8),.45 -.45 * math.sin(sine/8),-.3 + .26*math.sin(sine/8)) * CFrame.Angles(math.rad(75*-math.sin(sine/8)),math.rad(30 + 40*math.sin(sine/8)),math.rad(10, math.sin(-20 * math.sin(sine/4)))),.3)
  4662. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  4663. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  4664. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + 0.29*math.sin(sine/4), 0) * CFrame.Angles(math.rad(-15), math.rad(12 * -math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.1)
  4665. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.62 - .54 * math.cos(sine/8)/2.8,.2 - .5 * math.sin(sine/8)) * CFrame.Angles(math.rad(20 - 60* math.sin(sine/8)), math.rad(9-16)*math.cos(sine/8), math.rad(0), math.cos(65 * math.cos(sine/8))), 0.3)
  4666. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.62 + .54 * math.cos(sine/8)/2.8,.2 + .5 * math.sin(sine/8)) * CFrame.Angles(math.rad(20 + 60* math.sin(sine/8)), math.rad(-9+16)*math.cos(sine/8), math.rad(0), math.cos(65 * math.cos(sine/8))), 0.3)
  4667. elseif position == "Idle" and not attacking then
  4668. change = .5
  4669. spin = true
  4670. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
  4671. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .2)
  4672. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2)
  4673. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),.2)
  4674. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
  4675. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(-5), math.rad(30 + 0 * math.sin(sine/12)), math.rad(-5 - .1 * math.sin(sine/12))), 0.2)
  4676. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  4677. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.55, 2.0 - .1 * math.sin(sine/12), .2) * CFrame.Angles(math.rad(5), math.rad(-20 + 0 * math.sin(sine/12)), math.rad(5 + .1 * math.sin(sine/12))), 0.2)
  4678. end
  4679. swait()
  4680. end
  4681. end)
  4682. anims()
  4683. warn("You rolled, death! Made by Supr14")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement