Advertisement
jayrock3401

Untitled

Dec 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.15 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. Player = owner
  89. Character = Player.Character
  90. PlayerGui = Player.PlayerGui
  91. Backpack = Player.Backpack
  92. Torso = Character.Torso
  93. script.Parent = Backpack
  94. Head = Character.Head
  95. Humanoid = Character.Humanoid
  96. LeftArm = Character["Left Arm"]
  97. LeftLeg = Character["Left Leg"]
  98. RightArm = Character["Right Arm"]
  99. RightLeg = Character["Right Leg"]
  100. LS = Torso["Left Shoulder"]
  101. LH = Torso["Left Hip"]
  102. RS = Torso["Right Shoulder"]
  103. RH = Torso["Right Hip"]
  104. Neck = Torso.Neck
  105. it=Instance.new
  106. vt=Vector3.new
  107. cf=CFrame.new
  108. euler=CFrame.fromEulerAnglesXYZ
  109. angles=CFrame.Angles
  110. RootPart=Character.HumanoidRootPart
  111. RootJoint=RootPart.RootJoint
  112. RootCF=euler(-1.57,0,3.14)
  113. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  114. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  115. RW,LW=Instance.new("Weld"),Instance.new("Weld")
  116. RH,LH=Instance.new("Weld"),Instance.new("Weld")
  117. cam=workspace.CurrentCamera
  118. local attack=false
  119. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  120. local fp = it("Part")
  121. fp.formFactor = formfactor
  122. fp.Parent = parent
  123. fp.Reflectance = reflectance
  124. fp.Transparency = transparency
  125. fp.CanCollide = false
  126. fp.Locked=true
  127. fp.BrickColor = brickcolor
  128. fp.Name = name
  129. fp.Size = size
  130. fp.Position = Torso.Position
  131. fp.Material="SmoothPlastic"
  132. fp:BreakJoints()
  133. return fp
  134. end
  135.  
  136. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  137. local mesh = it(Mesh)
  138. mesh.Parent = part
  139. if Mesh=="SpecialMesh" then
  140. mesh.MeshType = meshtype
  141. mesh.MeshId = meshid
  142. end
  143. mesh.Offset=offset
  144. mesh.Scale=scale
  145. return mesh
  146. end
  147.  
  148. function weld(parent,part1,part0,c0,c1)
  149. local weld = it("Weld")
  150. weld.Parent = parent
  151. weld.Part0 = part0
  152. weld.Part1 = part1
  153. weld.C0 = c0
  154. weld.C1 = c1
  155. return weld
  156. end
  157.  
  158. if Character:findFirstChild("Shades",true) ~= nil then
  159. Character:findFirstChild("Shades",true).Parent = nil
  160. end
  161.  
  162. local scale=1.5
  163. local ShadeCenter=it("Part")
  164. ShadeCenter.CanCollide=false
  165. ShadeCenter.CFrame=Torso.CFrame
  166. ShadeCenter.Transparency=1
  167. ShadeCenter.Parent=Character
  168. ShadeCenter.Name="Shades"
  169. ShadeCenter.formFactor=3
  170. ShadeCenter.Size=vt()
  171. ShadeCenter.TopSurface=0
  172. ShadeCenter.BottomSurface=0
  173. local shadeweld=weld(ShadeCenter,ShadeCenter,Head,cf(0,0.4,-0.65),cf(0,0,0))
  174. --[[scale=3
  175. shadeweld.Part0=Torso
  176. shadeweld.C0=cf(1.2,0,-0.7)*euler(0,-1,0.5)]]
  177. local Shade1=it("Part")
  178. Shade1.CanCollide=false
  179. Shade1.CFrame=Torso.CFrame
  180. Shade1.Reflectance=0.4
  181. Shade1.Transparency=0.05
  182. Shade1.BrickColor=BrickColor.new("Really black")
  183. Shade1.Parent=ShadeCenter
  184. Shade1.formFactor=3
  185. Shade1.Size=vt()
  186. Shade1.TopSurface=0
  187. Shade1.BottomSurface=0
  188. Shade1Mesh=it("SpecialMesh",Shade1)
  189. Shade1Mesh.MeshType="Wedge"
  190. Shade1Mesh.Scale=Vector3.new(0.075*scale,2*scale,2.8*scale)
  191. local w1=weld(Shade1,Shade1,ShadeCenter,cf(-1*0.3*scale,0,0),angles(math.rad(-45),math.rad(90*-1),0))
  192. coroutine.resume(coroutine.create(function(Mesh,Weld)
  193. while true do
  194. wait()
  195. Mesh.Scale=Vector3.new(0.075*scale,2*scale,2.8*scale)
  196. Weld.C0=cf(-1*0.3*scale,0,0)
  197. Weld.C1=angles(math.rad(-45),math.rad(90*-1),0)
  198. end
  199. end),Shade1Mesh,w1)
  200. local Shade2=it("Part")
  201. Shade2.CanCollide=false
  202. Shade2.CFrame=Torso.CFrame
  203. Shade2.Reflectance=0.4
  204. Shade2.Transparency=0.05
  205. Shade2.BrickColor=BrickColor.new("Really black")
  206. Shade2.Parent=ShadeCenter
  207. Shade2.formFactor=3
  208. Shade2.Size=vt()
  209. Shade2.TopSurface=0
  210. Shade2.BottomSurface=0
  211. Shade2Mesh=it("SpecialMesh",Shade2)
  212. Shade2Mesh.MeshType="Wedge"
  213. Shade2Mesh.Scale=Vector3.new(0.075*scale,2*scale,2.8*scale)
  214. local w2=weld(Shade2,Shade2,ShadeCenter,cf(1*0.3*scale,0,0),angles(math.rad(-45),math.rad(90*1),0))
  215. coroutine.resume(coroutine.create(function(Mesh,Weld)
  216. while true do
  217. wait()
  218. Mesh.Scale=Vector3.new(0.075*scale,2*scale,2.8*scale)
  219. Weld.C0=cf(1*0.3*scale,0,0)
  220. Weld.C1=angles(math.rad(-45),math.rad(90*1),0)
  221. end
  222. end),Shade2Mesh,w2)
  223.  
  224. if Backpack:findFirstChild("DRILL")~=nil then
  225. --Backpack:findFirstChild("DRILL").Parent=nil
  226. end
  227. if (script.Parent.className ~= "HopperBin") then
  228. Tool = Instance.new("HopperBin")
  229. Tool.Parent = Backpack
  230. Tool.Name = "CERTAIN KILL"
  231. script.Parent = Tool
  232. end
  233. Bin = script.Parent
  234.  
  235. game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=171070086")
  236. function GIGADRILLBREAKER()
  237. cam.CameraType="Scriptable"
  238. local partpos=part(3,Character,0,1,BrickColor.new("Black"),"PartPos",vt(0.5,0.5,0.5))
  239. partpos.Anchored=true
  240. partpos.CFrame=Torso.CFrame
  241. game:GetService("Debris"):AddItem(partpos,30)
  242. local sound=Instance.new("Sound")
  243. sound.Parent=partpos
  244. sound.Volume=1
  245. sound.SoundId="http://www.roblox.com/asset/?id=171070086"
  246. --171070086
  247. local sound2=Instance.new("Sound")
  248. sound2.Parent=Torso
  249. sound2.Volume=1
  250. sound2.SoundId="http://www.roblox.com/asset/?id=171070086"
  251. local sound3=Instance.new("Sound")
  252. sound3.Parent=workspace.CurrentCamera
  253. sound3.Volume=1
  254. sound3.SoundId="http://www.roblox.com/asset/?id=171070086"
  255. sound:Play()
  256. sound2:Play()
  257. sound3:Play()
  258. bodypos=Instance.new("BodyPosition")
  259. bodypos.P=4000
  260. bodypos.maxForce=Vector3.new(5000000,50000000,5000000)*5000
  261. bodypos.position=Torso.Position+Vector3.new(0,0,0)
  262. bodypos.Parent=Torso
  263. local bodygy=Instance.new("BodyGyro") --gg nubs
  264. bodygy.P=15000
  265. bodygy.D=100
  266. bodygy.maxTorque=Vector3.new(500000000,500000000,500000000)
  267. bodygy.cframe=RootPart.CFrame*euler(0,0,0)
  268. bodygy.Parent=RootPart
  269. RSH=Torso["Right Shoulder"]
  270. LSH=Torso["Left Shoulder"]
  271. RHP=Torso["Right Hip"]
  272. LHP=Torso["Left Hip"]
  273. --
  274. RSH.Parent=nil
  275. LSH.Parent=nil
  276. RHP.Parent=nil
  277. LHP.Parent=nil
  278. --
  279. RW.Part0=Torso
  280. RW.C0=cf(1.5,0.5,0)
  281. RW.C1=cf(0,0.5,0)
  282. RW.Part1=RightArm
  283. RW.Parent=Torso
  284. --
  285. LW.Part0=Torso
  286. LW.C0=cf(-1.5,0.5,0)
  287. LW.C1=cf(0,0.5,0)
  288. LW.Part1=LeftArm
  289. LW.Parent=Torso
  290. --_G.L = LW
  291. --
  292. RH.Part0=Torso
  293. RH.C0=cf(0.5,-1,0)
  294. RH.C1=cf(0,1,0)
  295. RH.Part1=RightLeg
  296. RH.Parent=Torso
  297. --
  298. LH.Part0=Torso
  299. LH.C0=cf(-0.5,-1,0)
  300. LH.C1=cf(0,1,0)
  301. LH.Part1=LeftLeg
  302. LH.Parent=Torso
  303. --_G.L = LW
  304. --
  305. wait(.2)
  306. shadeweld.Part0=RootPart
  307. shadeweld.C0=cf(0,1.9,-0.65)*euler(0,0,0)
  308. numb=2
  309. for i=0,1,0.1 do
  310. wait()
  311. --cam.CoordinateFrame=Torso.CFrame
  312. cam.CoordinateFrame=ShadeCenter.CFrame*euler(0,3.14,0)*cf(0,0,5)
  313. scale=1.5+1*i
  314. --shadeweld.C0=cf(0,0.4+2*i,-0.65)*euler(0,0,-0.1*i)
  315. shadeweld.C0=cf(0,1.9+8*i*numb,-0.65)*euler(0,0,-0.2*i)
  316. Torso.Neck.C0=necko
  317. RootJoint.C0=RootCF
  318. RW.C0=cf(1.5,0.5,0)
  319. LW.C0=cf(-1.5,0.5,0)
  320. RH.C0=cf(0.5,-1,0)
  321. LH.C0=cf(-0.5,-1,0)
  322. numb=numb-0.1
  323. end
  324. shadeweld.Part0=RightArm
  325. shadeweld.C0=cf(0,6,0)*euler(3.14,0,-0.2)
  326. for i=0,1,0.1 do
  327. wait()
  328. cam.CoordinateFrame=ShadeCenter.CFrame*euler(0,0,0)*cf(0,0,5)
  329. scale=2.5+0.5*i
  330. --shadeweld.C0=cf(0,0.4+2*i,-0.65)*euler(0,0,-0.1*i)
  331. --shadeweld.C0=cf(0,1.9+2-2*i,-0.65)*euler(0,0,-0.2)
  332. shadeweld.C0=euler(-3.14*i,0,0)*cf(-1.5*i,8-7.5*i,0)*euler(3.14,0,-0.2)
  333. Torso.Neck.C0=necko*euler(0,0,-0.2*i)
  334. RootJoint.C0=RootCF*euler(0,0,0.2*i)
  335. RW.C0=cf(1.5,0.5,0)*euler(3*i,0,0.2*i)
  336. LW.C0=cf(-1.5,0.5,0)
  337. RH.C0=cf(0.5,-1,0)
  338. LH.C0=cf(-0.5,-1,0)
  339. end
  340. for i=0,1,0.1 do
  341. wait()
  342. cam.CoordinateFrame=RootPart.CFrame*euler(-0.1*i,3.14-0.1*i,0)*cf(0,0,9+2*i)
  343. shadeweld.C0=euler(-3.14,0,0)*cf(-1.5,0.5,0)*euler(3.14,0,-0.2)
  344. Torso.Neck.C0=necko*euler(0,0,-0.2+0.3*i)
  345. RootJoint.C0=RootCF*euler(0.1*i,0,0.2-0.3*i)
  346. RW.C0=cf(1.5,0.5,0)*euler(3-1.5*i,0,0.2+0.2*i)
  347. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.3*i)
  348. RH.C0=cf(0.5,-1,0)*euler(0.2*i,0,0.2*i)
  349. LH.C0=cf(-0.5,-1,0)*euler(-0.1*i,0,-0.3*i)
  350. end
  351. n=2
  352. for i=0,1,0.1 do
  353. wait()
  354. cam.CoordinateFrame=RootPart.CFrame*euler(-0.1,3.04,0)*cf(0,0,7)
  355. Torso.Neck.C0=necko*euler(0,0,0.1+0.1*i*n)
  356. RootJoint.C0=RootCF*euler(0.1+0.1*i*n,0,-0.1-0.1*i*n)
  357. RW.C0=cf(1.5,0.5,0)*euler(1.5-0.2*i*n,0,0.4+0.2*i*n)
  358. LW.C0=cf(-1.5,0.5,0)*euler(0.2*i*n,0,-0.3-0.1*i*n)
  359. RH.C0=cf(0.5,-1,0)*euler(0.2+0.1*i*n,0,0.2)
  360. LH.C0=cf(-0.5,-1,0)*euler(-0.1-0.1*i*n,0,-0.3)
  361. n=n-0.1
  362. end
  363. for i=0,1,0.1 do
  364. wait()
  365. cam.CoordinateFrame=RootPart.CFrame*euler(0.2,3,0)*cf(0,0,5)
  366. Torso.Neck.C0=necko*euler(0,0,0.2+0.7*i)
  367. RootJoint.C0=RootCF*euler(0.2,0,-0.2-1*i)
  368. RW.C0=cf(1.5,0.5,0)*euler(1.3,0,0.6+2*i)
  369. LW.C0=cf(-1.5,0.5,0)*euler(0.2+1*i,0,-0.4-0.6*i)
  370. RH.C0=cf(0.5,-1,0)*euler(0.3-0.2*i,0,0.2-0.3*i)
  371. LH.C0=cf(-0.5,-1,0)*euler(-0.2,0,-0.3)
  372. end
  373. n=2
  374. for i=0,1,0.1 do
  375. wait()
  376. cam.CoordinateFrame=RootPart.CFrame*euler(0.2,3,0)*cf(0,0,5)
  377. Torso.Neck.C0=necko*euler(0,0,0.9-0.4*i*n)
  378. RootJoint.C0=RootCF*euler(0.2,0,-1.2+0.7*i*n)
  379. RW.C0=cf(1.5,0.5,0)*euler(1.3+0.4*i*n,0,2.6-0.4*i*n)
  380. LW.C0=cf(-1.5,0.5,0)*euler(1.2,0,-1-1*i*n)
  381. RH.C0=cf(0.5,-1,0)*euler(0.1,0,-0.1+0.2*i*n)
  382. LH.C0=cf(-0.5,-1,0)*euler(-0.2+0.1*i*n,0,-0.3+0.2*i*n)
  383. n=n-0.1
  384. end
  385. for i=0,1,0.1 do
  386. wait()
  387. cam.CoordinateFrame=RootPart.CFrame*euler(0.2,3,0)*cf(0,0,5)
  388. Torso.Neck.C0=necko*euler(0,0,0.5-0.1*i)
  389. RootJoint.C0=RootCF*euler(0.2-0.1*i,0.2*i,-0.5+0.1*i)
  390. RW.C0=cf(1.5,0.5,0)*euler(1.7+2.7*i,-1.57*i,2.2-2*i)
  391. LW.C0=cf(-1.5,0.5,0)*euler(1.2,0,-2+1*i)
  392. RH.C0=cf(0.5,-1,0)*euler(0.1,0,0.1)
  393. LH.C0=cf(-0.5,-1,0)*euler(-0.1,0,-0.1-0.2*i)
  394. end
  395. n=2
  396. for i=0,1,0.1 do
  397. wait()
  398. cam.CoordinateFrame=RootPart.CFrame*euler(0.2,3,0)*cf(0,0,5+1*i)
  399. Torso.Neck.C0=necko*euler(-0.1*i*n,0,0.4-0.2*i*n)
  400. RootJoint.C0=RootCF*euler(0.1+0.3*i*n,0.2+0.2*i*n,-0.4+0.2*i*n)
  401. RW.C0=cf(1.5,0.5,0)*euler(4.4-1*i*n,-1.57,0.2)
  402. LW.C0=cf(-1.5,0.5,0)*euler(1.2,0,-1)
  403. RH.C0=cf(0.5,-1,0)*euler(0.1,0,0.1)
  404. LH.C0=cf(-0.5,-1,0)*euler(-0.1+0.5*i*n,0,-0.3)
  405. n=n-0.1
  406. end
  407. for i=0,1,0.2 do
  408. wait()
  409. cam.CoordinateFrame=RootPart.CFrame*euler(0.2-0.1*i,3-0.1*i,0)*cf(0,0,6+10*i)
  410. Torso.Neck.C0=necko*euler(-0.1,0,0.2)
  411. RootJoint.C0=RootCF*euler(0.4+0.2*i,0.4,-0.2)
  412. RW.C0=cf(1.5,0.5,0)*euler(3.4-2.4*i,-1.57,0.2)
  413. LW.C0=cf(-1.5,0.5,0)*euler(1.2,0,-1-0.2*i)
  414. RH.C0=cf(0.5,-1,0)*euler(0.1-0.3*i,0,0.1+0.2*i)
  415. LH.C0=cf(-0.5,-1,0)*euler(0.4+0.2*i,0,-0.3)
  416. end
  417. print("DO THROW")
  418. local ref=part(3,Character,0,1,BrickColor.new("White"),"Reference",vt(0.5,0.5,0.5))
  419. ref.Anchored=true
  420. ref.CFrame=RootPart.CFrame*cf(0,0,-200)
  421. game:GetService("Debris"):AddItem(ref,7)
  422. canhit=false
  423. local target=nil
  424. bb=Instance.new("BodyPosition")
  425. local gudbai=Instance.new("BodyGyro")
  426. con1=ShadeCenter.Touched:connect(function(hit)
  427. if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character then
  428. if canhit==false then
  429. canhit=true
  430. tors=hit.Parent.Torso
  431. print(hit.Parent)
  432. target=hit.Parent
  433. bb.Parent=tors
  434. bb.maxForce=Vector3.new(50000000000000000,50000000000000000,50000000000000000)
  435. bb.position=ref.Position
  436. end
  437. elseif hit.Name~="Base" and canhit==false and hit.Name~="Reference" then
  438. --hit.Anchored=false
  439. --hit:BreakJoints()
  440. --hit.Velocity=Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  441. end
  442. end)
  443. shadeweld.Part0=nil
  444. --[[local bodypos2=Instance.new("BodyPosition")
  445. bodypos2.P=4000
  446. bodypos2.maxForce=Vector3.new(5000000,50000000,5000000)*5000
  447. bodypos2.position=ref.Position
  448. bodypos2.Parent=ShadeCenter]]
  449. prop=Instance.new("RocketPropulsion")
  450. prop.MaxSpeed=5000
  451. prop.CartoonFactor=0
  452. prop.MaxThrust=10000
  453. prop.Parent=ShadeCenter
  454. prop.Target=ref
  455. prop.ThrustD=1.5
  456. prop.TurnD=0
  457. prop.TurnP=0
  458. prop:Fire()
  459. local gg=Instance.new("BodyGyro") --gg nubs
  460. gg.P=15000
  461. gg.D=100
  462. gg.maxTorque=Vector3.new(500000000,500000000,500000000)
  463. gg.cframe=RootPart.CFrame*euler(0,1.57,0)
  464. gg.Parent=ShadeCenter
  465. coroutine.resume(coroutine.create(function(Part,Gyro)
  466. while Gyro.Parent~=nil do
  467. wait()
  468. Gyro.cframe=Gyro.cframe*euler(0,0,-1)
  469. end
  470. end),ShadeCenter,gg)
  471. for i=0,1,0.2 do
  472. wait()
  473. cam.CoordinateFrame=RootPart.CFrame*euler(0.1-0.1*i,2.9+0.1*i,0)*cf(0,0,16+5*i)
  474. Torso.Neck.C0=necko*euler(-0.1,0,0.2)
  475. RootJoint.C0=RootCF*cf(0,0,-0.5*i)*euler(0.6+0.8*i,0.4+0.4*i,-0.2-0.2*i)
  476. RootJoint.C1=RootCF*euler(0.7*i,0,-0.2*i)
  477. RW.C0=cf(1.5,0.5,0)*euler(1,-1.57,0.2)
  478. RW.C1=cf(0,0.5,0)*euler(0.5*i,0,0)
  479. LW.C0=cf(-1.5,0.5,0)*euler(1.2,0,-1.2-0.2*i)
  480. RH.C0=cf(0.5,-1,0)*euler(0.1-0.3,0,0.1+0.2)
  481. LH.C0=cf(-0.5,-1,0)*euler(0.6+0.2*i,0,-0.3-0.1*i)
  482. end
  483. coroutine.resume(coroutine.create(function(Camera)
  484. print(canhit)
  485. print(attack)
  486. while canhit==false and attack==true do
  487. wait()
  488. Camera.CoordinateFrame=ShadeCenter.CFrame*cf(0,0,7)
  489. --Camera.CoordinateFrame=cf(ShadeCenter.Position)*cf(0,0,5)
  490. end
  491. for i=0,1,0.1 do
  492. wait()
  493. if tors~=nil then
  494. Camera.CoordinateFrame=tors.CFrame*cf(0,0,7)
  495. end
  496. end
  497. end),cam)
  498. wait(1.5)
  499. if target~=nil then
  500. tors=target.Torso
  501. partpos.CFrame=tors.CFrame
  502. ShadesClone1=ShadeCenter:Clone()
  503. ShadesClone1.Parent=workspace
  504. local weld1=weld(ShadesClone1,ShadesClone1,tors,cf(0,0,0),cf(0,0,0))
  505. ShadesClone2=ShadeCenter:Clone()
  506. ShadesClone2.Parent=workspace
  507. local weld2=weld(ShadesClone2,ShadesClone2,tors,cf(0,0,0),cf(0,0,0))
  508. --[[bb2=Instance.new("BodyPosition")
  509. bb2.Parent=ShadesClone
  510. bb2.maxForce=Vector3.new(50000000000000000,50000000000000000,50000000000000000)
  511. bb2.position=tors.Position+vt(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  512. coroutine.resume(coroutine.create(function(Part,Gyro)
  513. end),ShadesClone,bb2)
  514. local gg2=Instance.new("BodyGyro")
  515. gg2.P=15000
  516. gg2.D=100
  517. gg2.maxTorque=Vector3.new(500000000,500000000,500000000)
  518. gg2.cframe=tors.CFrame*euler(0,1.57,0)
  519. gg2.Parent=ShadesClone
  520. coroutine.resume(coroutine.create(function(Part,Gyro)
  521. while Gyro.Parent~=nil do
  522. wait()
  523. print(Gyro.cframe)
  524. Gyro.cframe=Gyro.cframe*euler(0,0,-0.5)
  525. end
  526. end),ShadesClone,gg2)]]
  527. Shade1.Transparency=1
  528. Shade2.Transparency=1
  529. shadeweld.Part0=Head
  530. shadeweld.C0=cf(0,0.4,-0.65)
  531. prop.Parent=nil
  532. gg.Parent=nil
  533. scale=1.5
  534. gudbai.P=15000
  535. gudbai.D=100
  536. gudbai.maxTorque=Vector3.new(500000000,500000000,500000000)
  537. gudbai.cframe=cf(0,0,0)
  538. gudbai.Parent=tors
  539. camCF=tors.CFrame
  540. for i=0,1,0.02 do
  541. wait()
  542. cam.CoordinateFrame=camCF*euler(-0.2*i,0,0)*cf(0,0,7)
  543. weld1.C0=euler(0,0,0)*cf(20*i,0,0)
  544. weld1.C1=euler(0,0,7*i)
  545. weld2.C0=euler(0,0,0)*cf(-20*i,0,0)
  546. weld2.C1=euler(0,0,7*i)
  547. gudbai.cframe=cf(0,0,0)
  548. Torso.Neck.C0=necko*euler(-0.1+0.1*i,0,0.2-0.2*i)
  549. RootJoint.C0=RootCF*cf(0,0,-0.5+0.5*i)*euler(1.4-1.4*i,0.8-0.8*i,-0.4+0.4*i)
  550. RootJoint.C1=RootCF*euler(0.7-0.7*i,0,-0.2+0.2*i)
  551. RW.C0=cf(1.5,0.5,0)*euler(1-1*i,-1.57+1.57*i,0.2-0.2*i)
  552. RW.C1=cf(0,0.5,0)*euler(0.5-0.5*i,0,0)
  553. LW.C0=cf(-1.5,0.5,0)*euler(1.2-1.2*i,0,-1.4+1.4*i)
  554. RH.C0=cf(0.5,-1,0)*euler(-0.2+0.2*i,0,0.4-0.4*i)
  555. LH.C0=cf(-0.5,-1,0)*euler(0.8-0.8*i,0,-0.4+0.4*i)
  556. end
  557. for i=0,1,0.02 do
  558. wait()
  559. cam.CoordinateFrame=camCF*euler(-0.2+0.2*i,0,0)*cf(0,0,7+2*i)
  560. weld1.C0=euler(0,0,0)*cf(20-15*i,0,0)
  561. weld1.C1=euler(0,0,7+5*i)
  562. weld2.C0=euler(0,0,0)*cf(-20+15*i,0,0)
  563. weld2.C1=euler(0,0,7+5*i)
  564. gudbai.cframe=cf(0,0,0)
  565. end
  566. for i=0,6.5,0.1 do
  567. wait()
  568. cam.CoordinateFrame=camCF*euler(0,1*i,0)*cf(0,0,9)
  569. local prt=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
  570. prt.Anchored=true
  571. prt.CFrame=ShadesClone1.CFrame
  572. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.25,1,.25))
  573. game:GetService("Debris"):AddItem(prt,5)
  574. coroutine.resume(coroutine.create(function(Part,Mesh)
  575. for i=0,1,0.05 do
  576. wait()
  577. Part.CFrame=Part.CFrame
  578. Part.Transparency=i
  579. Mesh.Scale=Mesh.Scale+vt(0,0.8,0)
  580. end
  581. Part.Parent=nil
  582. end),prt,msh)
  583. weld1.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100)
  584. weld2.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100)
  585. gudbai.cframe=cf(0,0,0)
  586. end
  587. wait()
  588. weld1.C0=cf(1.2,0,-0.7)*euler(0,-1,0.5)
  589. --weld1.C0=cf(2,1,0)*euler(0,0,1.3)
  590. --weld1.C0=cf(-2,0,0)*euler(0,1.57,0)
  591. weld2.C0=cf(-1.2,0,-0.7)*euler(0,-1,-0.5)
  592. gudbai.P=15000
  593. gudbai.D=100
  594. gudbai.maxTorque=Vector3.new(500000000,500000000,500000000)
  595. gudbai.cframe=cf(0,0,0)
  596. gudbai.Parent=tors
  597. wait(1)
  598. partpos.CFrame=tors.CFrame
  599. --cam.CameraType="Custom"
  600. for i=0,1,0.05 do
  601. wait()
  602. cam.CoordinateFrame=RootPart.CFrame*euler(-0.1*i,3.14,0)*cf(0,0,9+4*i)
  603. Torso.Neck.C0=necko*euler(0.2*i,0,0)
  604. RootJoint.C0=RootCF*cf(0,0,-0.3*i)*euler(0.3*i,0,0)
  605. RootJoint.C1=RootCF*euler(0,0,0)
  606. RW.C0=cf(1.5,0.5,0)*euler(2.8*i,0,0.2*i)
  607. LW.C0=cf(-1.5,0.5,0)*euler(2.8*i,0,-0.2*i)
  608. RH.C0=cf(0.5,-1+0.2*i,-0.1*i)*euler(0.1*i,0,0.2*i)
  609. LH.C0=cf(-0.5,-1+0.2*i,-0.1*i)*euler(0.1*i,0,-0.2*i)
  610. end
  611. n=2
  612. for i=0,1,0.05 do
  613. wait()
  614. cam.CoordinateFrame=RootPart.CFrame*euler(-0.1+0.2*i,3.14-0.24*i,0)*cf(0,0,13)
  615. Torso.Neck.C0=necko*euler(0.2,0,0)
  616. RootJoint.C0=RootCF*cf(0,0,-0.3)*euler(0.3+0.1*i*n,0,0)
  617. RootJoint.C1=RootCF*euler(0,0,0)
  618. RW.C0=cf(1.5,0.5,0)*euler(2.8+0.1*i*n,0,0.2-0.3*i*n)
  619. LW.C0=cf(-1.5,0.5,0)*euler(2.8+0.1*i*n,0,-0.2+0.3*i*n)
  620. RH.C0=cf(0.5,-1+0.2,-0.1)*euler(0.1+0.1*i*n,0,0.2)
  621. LH.C0=cf(-0.5,-1+0.2,-0.1)*euler(0.1+0.1*i*n,0,-0.2)
  622. n=n-0.1
  623. end
  624. for i=0,1,0.05 do
  625. wait()
  626. cam.CoordinateFrame=RootPart.CFrame*euler(0.1,2.9+0.3*i,0)*cf(0,0,13-2*i)
  627. Torso.Neck.C0=necko*euler(0.2-0.3*i,0,0)
  628. RootJoint.C0=RootCF*cf(0,0,-0.3+0.3*i)*euler(0.4-0.5*i,0,0)
  629. RootJoint.C1=RootCF*euler(0,0,0)
  630. RW.C0=cf(1.5,0.5,0)*euler(2.9-3*i,0,-0.1+0.2*i)
  631. LW.C0=cf(-1.5,0.5,0)*euler(2.9,0,0.1-0.3*i)
  632. RH.C0=cf(0.5,-0.8-0.2*i,-0.1+0.1*i)*euler(0.2-0.3*i,0,0.2)
  633. LH.C0=cf(-0.5,-0.8-0.2*i,-0.1+0.1*i)*euler(0.2-0.3*i,0,-0.2)
  634. end
  635. n=2
  636. for i=0,1,0.05 do
  637. wait()
  638. cam.CoordinateFrame=RootPart.CFrame*euler(0.1,3.2+0.1*i,0)*cf(0,0,13)
  639. Torso.Neck.C0=necko*euler(-0.1,0,0)
  640. RootJoint.C0=RootCF*cf(0,0,0)*euler(-0.1,0,0)
  641. RootJoint.C1=RootCF*euler(0,0,0)
  642. RW.C0=cf(1.5,0.5,0)*euler(-0.1,0,0.1)
  643. LW.C0=cf(-1.5,0.5-0.2*i*n,0)*euler(2.9+0.1*i*n,0,-0.2-0.1*i*n)
  644. RH.C0=cf(0.5,-1,0)*euler(-0.1,0,0.2)
  645. LH.C0=cf(-0.5,-1,0)*euler(-0.1,0,-0.2)
  646. n=n-0.1
  647. end
  648. for i=0,1,0.1 do
  649. wait()
  650. cam.CoordinateFrame=RootPart.CFrame*euler(0.1,3.3,0)*cf(0,0,13)
  651. Torso.Neck.C0=necko*euler(-0.1,0,-0.3*i)
  652. RootJoint.C0=RootCF*cf(0,0,0)*euler(-0.1,0,0.3*i)
  653. RootJoint.C1=RootCF*euler(0,0,0)
  654. RW.C0=cf(1.5,0.5,0)*euler(-0.1+3.2*i,0,0.1)
  655. LW.C0=cf(-1.5,0.3+0.2,0)*euler(3-3.2*i,0,-0.3+0.2*i)
  656. RH.C0=cf(0.5,-1,0)*euler(-0.1,0,0.2)
  657. LH.C0=cf(-0.5,-1,0)*euler(-0.1,0,-0.2)
  658. end
  659. -- u gon get fuck'd
  660. drill=Instance.new("Model")
  661. drill.Parent=Character
  662. drill.Name="Drill"
  663. local drillp=part(3,drill,0,0,BrickColor.new("Medium stone grey"),"Drill Part",vt(0.5,0.5,0.5))
  664. drillmsh=mesh("SpecialMesh",drillp,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(.5,1,.5))
  665. local drillweld=weld(drillp,drillp,RightArm,cf(0,-1,0)*euler(3.14,0,0),cf(0,0,0))
  666. for i=0,1,0.05 do
  667. wait()
  668. cam.CoordinateFrame=RootPart.CFrame*euler(0.1+0.2*i,3.3-0.2*i,0)*cf(0,0,13-3*i)
  669. Torso.Neck.C0=necko*euler(-0.1-0.1*i,0,-0.3)
  670. RootJoint.C0=RootCF*cf(0,0,0)*euler(-0.1,0,0.3)
  671. RootJoint.C1=RootCF*euler(0,0,0)
  672. RW.C0=cf(1.5,0.5,0)*euler(3.1+0.1*i,0,0.1-0.1*i)
  673. LW.C0=cf(-1.5,0.3+0.2,0)*euler(-0.2,0,-0.1)
  674. RH.C0=cf(0.5,-1,0)*euler(-0.1,0,0.2)
  675. LH.C0=cf(-0.5,-1,0)*euler(-0.1,0,-0.2)
  676. end
  677. wait(0.5)
  678. for i=0,1,0.1 do
  679. wait()
  680. cam.CoordinateFrame=RootPart.CFrame*euler(0.3,3.1,0)*cf(0,0,10-1*i)
  681. drillmsh.Scale=vt(.5,1+8*i,.5)
  682. drillweld.C0=cf(0,-1-7*i,0)*euler(3.14,0,0)
  683. end
  684. wait(0.4)
  685. for i=0,1,0.2 do
  686. wait()
  687. cam.CoordinateFrame=RootPart.CFrame*euler(0.3-0.4*i,3.1,0)*cf(0,0,9+7*i)
  688. drillmsh.Scale=vt(.5+6.5*i,9,.5+6.5*i)
  689. drillweld.C0=cf(0,-8,0)*euler(3.14,0,0)
  690. end
  691. local drillpcir=part(3,drill,0,0,BrickColor.new("Medium stone grey"),"Drill Circle",vt(0.5,0.5,0.5))
  692. drillmshc=mesh("CylinderMesh",drillpcir,"","",vt(0,0,0),vt(18,1,18))
  693. local drillweldc=weld(drillpcir,drillpcir,drillp,cf(0,-7,0)*euler(0,0,0),cf(0,0,0))
  694. coroutine.resume(coroutine.create(function(Part)
  695. numb1=-7
  696. numb2=0
  697. numb3=4.7
  698. for i=1,24 do
  699. local drillp2=part(3,drill,0,0,BrickColor.new("Black"),"Drill Part2",vt(0.5,0.5,0.5))
  700. drillmsh2=mesh("BlockMesh",drillp2,"","",vt(0,0,0),vt(1,1,1))
  701. local drillweld2=weld(drillp2,drillp2,Part,euler(0,numb2,0)*cf(numb3,numb1,0),cf(0,0,0))
  702. local drillp3=part(3,drill,0,0,BrickColor.new("Black"),"Drill Part3",vt(0.5,0.5,0.5))
  703. drillmsh3=mesh("BlockMesh",drillp3,"","",vt(0,0,0),vt(1,1,1))
  704. local drillweld3=weld(drillp3,drillp3,Part,euler(0,1.57,0)*euler(0,numb2,0)*cf(numb3,numb1,0),cf(0,0,0))
  705. local drillp4=part(3,drill,0,0,BrickColor.new("Black"),"Drill Part4",vt(0.5,0.5,0.5))
  706. drillmsh4=mesh("BlockMesh",drillp4,"","",vt(0,0,0),vt(1,1,1))
  707. local drillweld4=weld(drillp4,drillp4,Part,euler(0,3.14,0)*euler(0,numb2,0)*cf(numb3,numb1,0),cf(0,0,0))
  708. local drillp5=part(3,drill,0,0,BrickColor.new("Black"),"Drill Part5",vt(0.5,0.5,0.5))
  709. drillmsh5=mesh("BlockMesh",drillp5,"","",vt(0,0,0),vt(1,1,1))
  710. local drillweld5=weld(drillp5,drillp5,Part,euler(0,4.71,0)*euler(0,numb2,0)*cf(numb3,numb1,0),cf(0,0,0))
  711. numb1=numb1+0.6
  712. numb2=numb2+(0.785)/4
  713. numb3=numb3-0.2
  714. wait()
  715. end
  716. end),drillp)
  717. wait(1)
  718. for i=0,1,0.1 do
  719. wait()
  720. cam.CoordinateFrame=RootPart.CFrame*euler(-0.1-0.4*i,3.1,0)*cf(0,0,16-7*i)
  721. Torso.Neck.C0=necko*euler(-0.2+0.2*i,0,-0.3+0.2*i)
  722. RootJoint.C0=RootCF*cf(0,0,0)*euler(-0.1+0.1*i,0,0.3-0.2*i)
  723. RootJoint.C1=RootCF*euler(0,0,0)
  724. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(3.2-1.5*i,0,0.2-1.2*i)
  725. LW.C0=cf(-1.5,0.5,0)*euler(-0.2-0.2*i,0,-0.1)
  726. RH.C0=cf(0.5,-1,0)*euler(-0.1+0.1*i,0,0.2)
  727. LH.C0=cf(-0.5,-1,0)*euler(-0.1+0.1*i,0,-0.2)
  728. end
  729. for i=0,1,0.02 do
  730. wait()
  731. cam.CoordinateFrame=RootPart.CFrame*euler(-0.5+0.6*i,3.1-3.7*i,0)*cf(-3*i,0,9+1*i)
  732. Torso.Neck.C0=necko*euler(0,0,-0.1+1.67*i)
  733. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,0.1-1.67*i)
  734. RootJoint.C1=RootCF*euler(0,0,0)
  735. RW.C0=cf(1-1.5*i,0.5,-0.5-0.5*i)*euler(1.7-0.2*i,0,-1-0.57*i)
  736. LW.C0=cf(-1.5,0.5,0)*euler(-0.4,3.14*i,-0.1)
  737. RH.C0=cf(0.5,-1,0)*euler(0,0,0.2)
  738. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2)
  739. end
  740. Torso.Neck.C0=necko*euler(0,0,1.57)
  741. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,0.-1.57)
  742. RootJoint.C1=RootCF*euler(0,0,0)
  743. RW.C0=cf(1-1.5,0.5,-1)*euler(1.5,0,-1.57)
  744. LW.C0=cf(-1.5,0.5,0)*euler(-0.4,3.14,0.1)
  745. RH.C0=cf(0.5,-1,0)*euler(0,0,0.2)
  746. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2)
  747. doing=true
  748. coroutine.resume(coroutine.create(function(Model,Weld)
  749. i=0
  750. num=0
  751. while Model.Parent~=nil and doing==true do
  752. wait()
  753. Weld.C0=cf(0,-8,0)*euler(3.14,i,0)
  754. i=i+0.5
  755. if i%1==0 then
  756. local prt=part(3,workspace,0,0,BrickColor.new("Cyan"),"Effect",vt(0.5,0.5,0.5))
  757. prt.Anchored=true
  758. prt.CFrame=RootPart.CFrame
  759. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(num,num,num))
  760. game:GetService("Debris"):AddItem(prt,5)
  761. coroutine.resume(coroutine.create(function(Part,Mesh)
  762. for i=0,1,0.05 do
  763. wait()
  764. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  765. Part.Transparency=i
  766. Mesh.Scale=Mesh.Scale+vt(num,num,num)
  767. end
  768. Part.Parent=nil
  769. end),prt,msh)
  770. end
  771. if num<=0.8 then
  772. num=num+0.05
  773. end
  774. end
  775. end),drill,drillweld)
  776. wait(2.5)
  777. bodypos.Parent=nil
  778. for i=1,5,0.05 do
  779. wait()
  780. cam.CoordinateFrame=RootPart.CFrame*euler(0.1,-0.6,0)*cf(-3,0,10)
  781. partpos.CFrame=tors.CFrame
  782. RootPart.CFrame=RootPart.CFrame*cf(0,0,-i)
  783. if i>=4.85 and i<=4.90 then
  784. print("ded")
  785. coroutine.resume(coroutine.create(function()
  786. for i=1,10 do
  787. local prt=part(3,workspace,0,0,BrickColor.new("Black"),"Effect",vt(0.5,0.5,0.5))
  788. prt.Anchored=true
  789. prt.CFrame=tors.CFrame
  790. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(2,2,2))
  791. game:GetService("Debris"):AddItem(prt,5)
  792. coroutine.resume(coroutine.create(function(Part,Mesh)
  793. for i=0,1,0.05 do
  794. wait()
  795. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  796. Part.Transparency=i
  797. Mesh.Scale=Mesh.Scale+vt(1,1,1)
  798. end
  799. Part.Parent=nil
  800. end),prt,msh)
  801. wait()
  802. end
  803. end))
  804. end
  805. end
  806. doing=false
  807. print("end")
  808. bodypos.P=4000
  809. bodypos.maxForce=Vector3.new(5000000,50000000,5000000)*5000
  810. bodypos.position=Torso.Position+Vector3.new(0,0,0)
  811. bodypos.Parent=Torso
  812. cam.CoordinateFrame=RootPart.CFrame*euler(-0.1,3.4,0)*cf(0,0,15)
  813. wait(2)
  814. for i=0,1,0.05 do
  815. wait()
  816. Torso.Neck.C0=necko*euler(0,0,1.57-1.77*i)
  817. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,0.-1.57+1.77*i)
  818. RW.C0=cf(1-1.5+1*i,0.5,-1+0.5*i)*euler(1.5+0.4*i,0,-1.57+0.57*i)
  819. LW.C0=cf(-1.5,0.5,0)*euler(-0.4,3.14-3.14*i,0.1)
  820. RH.C0=cf(0.5,-1,0)*euler(0,0,0.2)
  821. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2)
  822. end
  823. for _,v in pairs(drill:children()) do
  824. if v.Name~="Drill Part" then
  825. v.Parent=nil
  826. end
  827. end
  828. for i=0,1,0.2 do
  829. wait()
  830. drillmsh.Scale=vt(7-6.5*i,9,7-6.5*i)
  831. Torso.Neck.C0=necko*euler(0,0,-0.2+0.6*i)
  832. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,0.2-0.6*i)
  833. RW.C0=cf(1-0.5+1*i,0.5,-0.5+0.5*i)*euler(1.9-1.4*i,0,-1+2*i)
  834. LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,0.1-0.2*i)
  835. RH.C0=cf(0.5,-1,0)*euler(0,0,0.2)
  836. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2)
  837. end
  838. n=2
  839. for i=0,1,0.2 do
  840. wait()
  841. Torso.Neck.C0=necko*euler(0,0,0.4+0.1*i*n)
  842. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,-0.4-0.1*i*n)
  843. RW.C0=cf(1.5,0.5,0)*euler(0.5-0.1*i*n,0,1+0.1*i*n)
  844. LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.1)
  845. RH.C0=cf(0.5,-1,0)*euler(0,0,0.2)
  846. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2)
  847. n=n-0.2
  848. end
  849. wait(0.2)
  850. for i=0,1,0.2 do
  851. wait()
  852. Torso.Neck.C0=necko*euler(0.1*i,0,0.5+0.1*i)
  853. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,-0.5-0.2*i)
  854. RW.C0=cf(1.5-0.5*i,0.5,0.5*i)*euler(0.4,0,1-0.2*i)
  855. LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.1-0.2*i)
  856. RH.C0=cf(0.5,-1,0)*euler(0,0,0.2)
  857. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2)
  858. drillmsh.Scale=vt(.5,9-8*i,.5)
  859. drillweld.C0=cf(0,-8+7*i,0)*euler(3.14,0,0)
  860. end
  861. n=2
  862. for i=0,1,0.2 do
  863. wait()
  864. Torso.Neck.C0=necko*euler(0.1+0.1*i*n,0,0.6+0.1*i*n)
  865. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,-0.7-0.1*i*n)
  866. RW.C0=cf(1.5-0.5,0.5,0.5)*euler(0.4-0.1*i*n,0,0.8+0.1*i*n)
  867. LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.3-0.1*i*n)
  868. RH.C0=cf(0.5,-1,0)*euler(0,0,0.2)
  869. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2)
  870. n=n-0.2
  871. end
  872. drill.Parent=nil
  873. for i=0,1,0.1 do
  874. wait()
  875. Torso.Neck.C0=necko*euler(0.2,0.2*i,0.7)
  876. RootJoint.C0=RootCF*cf(0,0,0)*euler(0,0,-0.9)
  877. RW.C0=cf(1.5-0.5+0.5*i,0.5,0.5-0.5*i)*euler(0.3,0,0.9-0.2*i)
  878. LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.4+0.1*i)
  879. RH.C0=cf(0.5,-1,0)*euler(0,0,0.2)
  880. LH.C0=cf(-0.5,-1,0)*euler(0,0,-0.2)
  881. end
  882. --[[sound:Stop()
  883. sound2:Stop()
  884. sound3:Stop()
  885. DONTLOSEYOURWAAAAAAAY=Instance.new("Sound")
  886. DONTLOSEYOURWAAAAAAAY.Parent=tors
  887. DONTLOSEYOURWAAAAAAAY.Volume=1
  888. DONTLOSEYOURWAAAAAAAY.SoundId="http://www.roblox.com/asset/?id=138109980"
  889. DONTLOSEYOURWAAAAAAAY:Play()
  890. DONTLOSEYOURWAAAAAAAY=Instance.new("Sound")
  891. DONTLOSEYOURWAAAAAAAY.Parent=Torso
  892. DONTLOSEYOURWAAAAAAAY.Volume=1
  893. DONTLOSEYOURWAAAAAAAY.SoundId="http://www.roblox.com/asset/?id=138109980"
  894. DONTLOSEYOURWAAAAAAAY:Play()]]
  895. wait(2.2)
  896. --very ded
  897. POS=tors.Position
  898. boomCF=tors.CFrame
  899. e=Instance.new("Explosion")
  900. e.BlastRadius=30
  901. e.Position=POS
  902. e.BlastPressure=e.BlastPressure*2.5
  903. e.Parent=workspace
  904. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Effect",vt(0.5,0.5,0.5))
  905. prt.Anchored=true
  906. prt.CFrame=boomCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  907. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(10,10,10))
  908. game:GetService("Debris"):AddItem(prt,5)
  909. coroutine.resume(coroutine.create(function(Part,Mesh)
  910. for i=0,1,0.01 do
  911. wait()
  912. Part.CFrame=Part.CFrame
  913. Part.Transparency=i
  914. Mesh.Scale=Mesh.Scale+vt(1.5,1.5,1.5)
  915. end
  916. Part.Parent=nil
  917. end),prt,msh)
  918. for i=1,10 do
  919. wait()
  920. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Effect",vt(0.5,0.5,0.5))
  921. prt.Anchored=true
  922. prt.CFrame=boomCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  923. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(10,10,10))
  924. game:GetService("Debris"):AddItem(prt,5)
  925. coroutine.resume(coroutine.create(function(Part,Mesh)
  926. for i=0,1,0.02 do
  927. wait()
  928. Part.CFrame=Part.CFrame
  929. Part.Transparency=i
  930. Mesh.Scale=Mesh.Scale+vt(1.5,1.5,1.5)
  931. end
  932. Part.Parent=nil
  933. end),prt,msh)
  934. end
  935. wait(1.5)
  936. e=Instance.new("Explosion")
  937. e.BlastRadius=30
  938. e.Position=POS
  939. e.BlastPressure=e.BlastPressure*2.5
  940. e.Parent=workspace
  941. local prt=part(3,workspace,0,0,BrickColor.new("Bright yellow"),"Effect",vt(0.5,0.5,0.5))
  942. prt.Anchored=true
  943. prt.CFrame=boomCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  944. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(10,10,10))
  945. game:GetService("Debris"):AddItem(prt,5)
  946. coroutine.resume(coroutine.create(function(Part,Mesh)
  947. for i=0,1,0.01 do
  948. wait()
  949. Part.CFrame=Part.CFrame
  950. Part.Transparency=i/2
  951. Mesh.Scale=Mesh.Scale+vt(3,3,3)
  952. end
  953. Part.Parent=nil
  954. end),prt,msh)
  955. for i=1,10 do
  956. wait(0.1)
  957. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Effect",vt(0.5,0.5,0.5))
  958. prt.Anchored=true
  959. prt.CFrame=boomCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  960. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(10,10,10))
  961. game:GetService("Debris"):AddItem(prt,5)
  962. coroutine.resume(coroutine.create(function(Part,Mesh)
  963. for i=0,1,0.01 do
  964. wait()
  965. Part.CFrame=Part.CFrame
  966. Part.Transparency=i
  967. Mesh.Scale=Mesh.Scale+vt(1,1,1)
  968. end
  969. Part.Parent=nil
  970. end),prt,msh)
  971. end
  972. --wait(1.5)
  973. wait(1.5)
  974. local prt=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
  975. prt.Anchored=true
  976. prt.CFrame=ShadeCenter.CFrame
  977. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.5,1,.5))
  978. game:GetService("Debris"):AddItem(prt,5)
  979. coroutine.resume(coroutine.create(function(Part,Mesh)
  980. for i=0,1,0.05 do
  981. wait()
  982. Part.CFrame=Part.CFrame
  983. Part.Transparency=i
  984. Mesh.Scale=Mesh.Scale+vt(0.1,0.7,0.1)
  985. end
  986. Part.Parent=nil
  987. end),prt,msh)
  988. local prt=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
  989. prt.Anchored=true
  990. prt.CFrame=ShadeCenter.CFrame*euler(1.57,0,0)
  991. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.5,1,.5))
  992. game:GetService("Debris"):AddItem(prt,5)
  993. coroutine.resume(coroutine.create(function(Part,Mesh)
  994. for i=0,1,0.05 do
  995. wait()
  996. Part.CFrame=Part.CFrame
  997. Part.Transparency=i
  998. Mesh.Scale=Mesh.Scale+vt(0.1,0.7,0.1)
  999. end
  1000. Part.Parent=nil
  1001. end),prt,msh)
  1002. local prt=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
  1003. prt.Anchored=true
  1004. prt.CFrame=ShadeCenter.CFrame*euler(0,0,1.57)
  1005. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.5,1,.5))
  1006. game:GetService("Debris"):AddItem(prt,5)
  1007. coroutine.resume(coroutine.create(function(Part,Mesh)
  1008. for i=0,1,0.05 do
  1009. wait()
  1010. Part.CFrame=Part.CFrame
  1011. Part.Transparency=i
  1012. Mesh.Scale=Mesh.Scale+vt(0.1,0.7,0.1)
  1013. end
  1014. Part.Parent=nil
  1015. end),prt,msh)
  1016. Shade1.Transparency=0.05
  1017. Shade2.Transparency=0.05
  1018. wait(1)
  1019. sound:Stop()
  1020. wait()
  1021. sound2:Stop()
  1022. sound3:Stop()
  1023. wait(1)
  1024. ShadesClone1.Parent=nil
  1025. ShadesClone2.Parent=nil
  1026. end
  1027. wait()
  1028. print(target)
  1029. con1:disconnect()
  1030. bb.Parent=nil
  1031. gudbai.Parent=nil
  1032. wait(.5)
  1033. sound:Stop()
  1034. wait()
  1035. sound2:Stop()
  1036. sound3:Stop()
  1037. --bodypos2.Parent=nil
  1038. bodypos.Parent=nil
  1039. bodygy.Parent=nil
  1040. prop.Parent=nil
  1041. gg.Parent=nil
  1042. scale=1.5
  1043. Torso.Neck.C0=necko
  1044. RootJoint.C0=RootCF
  1045. RootJoint.C1=RootCF
  1046. shadeweld.Part0=Head
  1047. shadeweld.C0=cf(0,0.4,-0.65)
  1048. prop.Parent=nil
  1049. gg.Parent=nil
  1050. scale=1.5
  1051. RW.Parent=nil
  1052. LW.Parent=nil
  1053. RSH.Parent=Torso
  1054. LSH.Parent=Torso
  1055. RHP.Parent=Torso
  1056. LHP.Parent=Torso
  1057. end
  1058.  
  1059. function ob1d()
  1060. if attack==true then return end
  1061. attack=true
  1062. print("DRILLBREEEEEAK")
  1063. GIGADRILLBREAKER()
  1064. attack=false
  1065. cam.CameraType="Custom"
  1066. end
  1067.  
  1068. function s(mouse)
  1069. mouse.Button1Down:connect(function() ob1d() end)
  1070. end
  1071.  
  1072. Bin.Selected:connect(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement