Advertisement
ticktockclock

statue maker

Feb 15th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.18 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. Player= owner
  87. Character=Player.Character
  88. PlayerGui=Player.PlayerGui
  89. Backpack=Player.Backpack
  90. Torso=Character.Torso
  91. Head=Character.Head
  92. Humanoid=Character.Humanoid
  93. LeftArm=Character["Left Arm"]
  94. LeftLeg=Character["Left Leg"]
  95. RightArm=Character["Right Arm"]
  96. RightLeg=Character["Right Leg"]
  97. LS=Torso["Left Shoulder"]
  98. LH=Torso["Left Hip"]
  99. RS=Torso["Right Shoulder"]
  100. RH=Torso["Right Hip"]
  101. Face = Head.face
  102. Neck=Torso.Neck
  103. it=Instance.new
  104. attacktype=1
  105. vt=Vector3.new
  106. cf=CFrame.new
  107. euler=CFrame.fromEulerAnglesXYZ
  108. angles=CFrame.Angles
  109. cloaked=false
  110. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  111. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  112. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  113. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  114. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  115. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  116. RootPart=Character.HumanoidRootPart
  117. RootJoint=RootPart.RootJoint
  118. RootCF=euler(-1.57,0,3.14)
  119. attack = false
  120. attackdebounce = false
  121. deb=false
  122. equipped=true
  123. hand=false
  124. MMouse=nil
  125. combo=0
  126. mana=0
  127. trispeed=.2
  128. attackmode='none'
  129. local idle=0
  130. local Anim="Idle"
  131. local Effects={}
  132. local gun=false
  133. local shoot=false
  134. player=nil
  135. mana=0
  136. cam = workspace.CurrentCamera
  137. ZTarget = nil
  138. RocketTarget = nil
  139. local m = Instance.new("Model",Character)
  140. m.Name = "WeaponModel"
  141.  
  142. --save shoulders
  143. RSH, LSH=nil, nil
  144. --welds
  145. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  146. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  147. LH=Torso["Left Hip"]
  148. RH=Torso["Right Hip"]
  149. TorsoColor=Torso.BrickColor
  150. function NoOutline(Part)
  151. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  152. end
  153. player=Player
  154. ch=Character
  155. RSH=ch.Torso["Right Shoulder"]
  156. LSH=ch.Torso["Left Shoulder"]
  157. --
  158. RSH.Parent=nil
  159. LSH.Parent=nil
  160. --
  161. RW.Name="Right Shoulder"
  162. RW.Part0=ch.Torso
  163. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  164. RW.C1=cf(0, 0.5, 0)
  165. RW.Part1=ch["Right Arm"]
  166. RW.Parent=ch.Torso
  167. --
  168. LW.Name="Left Shoulder"
  169. LW.Part0=ch.Torso
  170. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  171. LW.C1=cf(0, 0.5, 0)
  172. LW.Part1=ch["Left Arm"]
  173. LW.Parent=ch.Torso
  174.  
  175. function swait(num)
  176. if num==0 or num==nil then
  177. game:service'RunService'.Heartbeat:wait(0)
  178. else
  179. for i=0,num do
  180. game:service'RunService'.Heartbeat:wait(0)
  181. end
  182. end
  183. end
  184.  
  185. function nooutline(part)
  186. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  187. end
  188.  
  189. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  190. local fp=it("Part")
  191. fp.formFactor=formfactor
  192. fp.Parent=parent
  193. fp.Reflectance=reflectance
  194. fp.Transparency=transparency
  195. fp.CanCollide=false
  196. fp.Locked=true
  197. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  198. fp.Name=name
  199. fp.Size=size
  200. fp.Position=Character.Torso.Position
  201. nooutline(fp)
  202. fp.Material=material
  203. fp:BreakJoints()
  204. return fp
  205. end
  206.  
  207. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  208. local mesh=it(Mesh)
  209. mesh.Parent=part
  210. if Mesh=="SpecialMesh" then
  211. mesh.MeshType=meshtype
  212. mesh.MeshId=meshid
  213. end
  214. mesh.Offset=offset
  215. mesh.Scale=scale
  216. return mesh
  217. end
  218.  
  219. function weld(parent,part0,part1,c0,c1)
  220. local weld=it("Weld")
  221. weld.Parent=parent
  222. weld.Part0=part0
  223. weld.Part1=part1
  224. weld.C0=c0
  225. weld.C1=c1
  226. return weld
  227. end
  228.  
  229.  
  230. local function CFrameFromTopBack(at, top, back)
  231. local right = top:Cross(back)
  232. return CFrame.new(at.x, at.y, at.z,
  233. right.x, top.x, back.x,
  234. right.y, top.y, back.y,
  235. right.z, top.z, back.z)
  236. end
  237.  
  238. function Triangle(a, b, c)
  239. local edg1 = (c-a):Dot((b-a).unit)
  240. local edg2 = (a-b):Dot((c-b).unit)
  241. local edg3 = (b-c):Dot((a-c).unit)
  242. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  243. a, b, c = a, b, c
  244. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  245. a, b, c = b, c, a
  246. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  247. a, b, c = c, a, b
  248. else
  249. assert(false, "unreachable")
  250. end
  251.  
  252. local len1 = (c-a):Dot((b-a).unit)
  253. local len2 = (b-a).magnitude - len1
  254. local width = (a + (b-a).unit*len1 - c).magnitude
  255.  
  256. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  257.  
  258. local list = {}
  259.  
  260. local TrailColor = ("Maroon")
  261.  
  262. if len1 > 0.01 then
  263. local w1 = Instance.new('WedgePart', m)
  264. game:GetService("Debris"):AddItem(w1,5)
  265. w1.Material = "Granite"
  266. w1.FormFactor = 'Custom'
  267. w1.BrickColor = BrickColor.new(TrailColor)
  268. w1.Transparency = 0
  269. w1.Reflectance = 0
  270. w1.Material = "Granite"
  271. w1.CanCollide = false
  272. NoOutline(w1)
  273. local sz = Vector3.new(0.2, width, len1)
  274. w1.Size = sz
  275. local sp = Instance.new("SpecialMesh",w1)
  276. sp.MeshType = "Wedge"
  277. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  278. w1:BreakJoints()
  279. w1.Anchored = true
  280. w1.Parent = workspace
  281. w1.Transparency = 0.7
  282. table.insert(Effects,{w1,"Disappear",.01})
  283. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  284. table.insert(list,w1)
  285. end
  286.  
  287. if len2 > 0.01 then
  288. local w2 = Instance.new('WedgePart', m)
  289. game:GetService("Debris"):AddItem(w2,5)
  290. w2.Material = "Granite"
  291. w2.FormFactor = 'Custom'
  292. w2.BrickColor = BrickColor.new(TrailColor)
  293. w2.Transparency = 0
  294. w2.Reflectance = 0
  295. w2.Material = "Granite"
  296. w2.CanCollide = false
  297. NoOutline(w2)
  298. local sz = Vector3.new(0.2, width, len2)
  299. w2.Size = sz
  300. local sp = Instance.new("SpecialMesh",w2)
  301. sp.MeshType = "Wedge"
  302. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  303. w2:BreakJoints()
  304. w2.Anchored = true
  305. w2.Parent = workspace
  306. w2.Transparency = 0.7
  307. table.insert(Effects,{w2,"Disappear",.01})
  308. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  309. table.insert(list,w2)
  310. end
  311. return unpack(list)
  312. end
  313.  
  314.  
  315. so = function(id,par,vol,pit)
  316. coroutine.resume(coroutine.create(function()
  317. local sou = Instance.new("Sound",par or workspace)
  318. sou.Volume=vol
  319. sou.Pitch=pit or 1
  320. sou.SoundId=id
  321. swait()
  322. sou:play()
  323. game:GetService("Debris"):AddItem(sou,6)
  324. end))
  325. end
  326.  
  327. function clerp(a,b,t)
  328. local qa = {QuaternionFromCFrame(a)}
  329. local qb = {QuaternionFromCFrame(b)}
  330. local ax, ay, az = a.x, a.y, a.z
  331. local bx, by, bz = b.x, b.y, b.z
  332. local _t = 1-t
  333. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  334. end
  335.  
  336. function QuaternionFromCFrame(cf)
  337. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  338. local trace = m00 + m11 + m22
  339. if trace > 0 then
  340. local s = math.sqrt(1 + trace)
  341. local recip = 0.5/s
  342. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  343. else
  344. local i = 0
  345. if m11 > m00 then
  346. i = 1
  347. end
  348. if m22 > (i == 0 and m00 or m11) then
  349. i = 2
  350. end
  351. if i == 0 then
  352. local s = math.sqrt(m00-m11-m22+1)
  353. local recip = 0.5/s
  354. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  355. elseif i == 1 then
  356. local s = math.sqrt(m11-m22-m00+1)
  357. local recip = 0.5/s
  358. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  359. elseif i == 2 then
  360. local s = math.sqrt(m22-m00-m11+1)
  361. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  362. end
  363. end
  364. end
  365.  
  366. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  367. local xs, ys, zs = x + x, y + y, z + z
  368. local wx, wy, wz = w*xs, w*ys, w*zs
  369. local xx = x*xs
  370. local xy = x*ys
  371. local xz = x*zs
  372. local yy = y*ys
  373. local yz = y*zs
  374. local zz = z*zs
  375. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  376. end
  377.  
  378. function QuaternionSlerp(a, b, t)
  379. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  380. local startInterp, finishInterp;
  381. if cosTheta >= 0.0001 then
  382. if (1 - cosTheta) > 0.0001 then
  383. local theta = math.acos(cosTheta)
  384. local invSinTheta = 1/math.sin(theta)
  385. startInterp = math.sin((1-t)*theta)*invSinTheta
  386. finishInterp = math.sin(t*theta)*invSinTheta
  387. else
  388. startInterp = 1-t
  389. finishInterp = t
  390. end
  391. else
  392. if (1+cosTheta) > 0.0001 then
  393. local theta = math.acos(-cosTheta)
  394. local invSinTheta = 1/math.sin(theta)
  395. startInterp = math.sin((t-1)*theta)*invSinTheta
  396. finishInterp = math.sin(t*theta)*invSinTheta
  397. else
  398. startInterp = t-1
  399. finishInterp = t
  400. end
  401. end
  402. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  403. end
  404.  
  405. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  406. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  407. end
  408.  
  409. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  410. if hit.Parent==nil then
  411. return
  412. end
  413. local h=hit.Parent:FindFirstChild("Humanoid")
  414. for _,v in pairs(hit.Parent:children()) do
  415. if v:IsA("Humanoid") then
  416. h=v
  417. end
  418. end
  419. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  420. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  421. end
  422. if hit.Parent.className=="Hat" then
  423. hit=hit.Parent.Parent:findFirstChild("Head")
  424. end
  425. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  426. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  427. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  428. return
  429. end]]
  430. -- hs(hit,1.2)
  431. local c=Instance.new("ObjectValue")
  432. c.Name="creator"
  433. c.Value= owner
  434. c.Parent=h
  435. game:GetService("Debris"):AddItem(c,.5)
  436. local Damage=math.random(minim,maxim)
  437. -- h:TakeDamage(Damage)
  438. local blocked=false
  439. local block=hit.Parent:findFirstChild("Block")
  440. if block~=nil then
  441. print(block.className)
  442. if block.className=="NumberValue" then
  443. if block.Value>0 then
  444. blocked=true
  445. if decreaseblock==nil then
  446. block.Value=block.Value-1
  447. end
  448. end
  449. end
  450. if block.className=="IntValue" then
  451. if block.Value>0 then
  452. blocked=true
  453. if decreaseblock~=nil then
  454. block.Value=block.Value-1
  455. end
  456. end
  457. end
  458. end
  459. if blocked==false then
  460. -- h:TakeDamage(Damage)
  461. h.Health=h.Health-Damage
  462. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  463. else
  464. h.Health=h.Health-(Damage/2)
  465. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Maroon").Color)
  466. end
  467. if Type=="Knockdown" then
  468. local hum=hit.Parent.Humanoid
  469. hum.PlatformStand=true
  470. coroutine.resume(coroutine.create(function(HHumanoid)
  471. swait(1)
  472. HHumanoid.PlatformStand=false
  473. end),hum)
  474. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  475. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  476. local bodvol=Instance.new("BodyVelocity")
  477. bodvol.velocity=angle*knockback
  478. bodvol.P=5000
  479. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  480. bodvol.Parent=hit
  481. local rl=Instance.new("BodyAngularVelocity")
  482. rl.P=3000
  483. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  484. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  485. rl.Parent=hit
  486. game:GetService("Debris"):AddItem(bodvol,.5)
  487. game:GetService("Debris"):AddItem(rl,.5)
  488. elseif Type=="Normal" then
  489. local vp=Instance.new("BodyVelocity")
  490. vp.P=500
  491. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  492. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  493. if KnockbackType==1 then
  494. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  495. elseif KnockbackType==2 then
  496. vp.velocity=Property.CFrame.lookVector*knockback
  497. end
  498. if knockback>0 then
  499. vp.Parent=hit.Parent.Torso
  500. end
  501. game:GetService("Debris"):AddItem(vp,.5)
  502. elseif Type=="Up" then
  503. local bodyVelocity=Instance.new("BodyVelocity")
  504. bodyVelocity.velocity=vt(0,60,0)
  505. bodyVelocity.P=5000
  506. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  507. bodyVelocity.Parent=hit
  508. game:GetService("Debris"):AddItem(bodyVelocity,1)
  509. local rl=Instance.new("BodyAngularVelocity")
  510. rl.P=3000
  511. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  512. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  513. rl.Parent=hit
  514. game:GetService("Debris"):AddItem(rl,.5)
  515. elseif Type=="Snare" then
  516. local bp=Instance.new("BodyPosition")
  517. bp.P=2000
  518. bp.D=100
  519. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  520. bp.position=hit.Parent.Torso.Position
  521. bp.Parent=hit.Parent.Torso
  522. game:GetService("Debris"):AddItem(bp,1)
  523. elseif Type=="Target" then
  524. local Targetting = false
  525. if Targetting==false then
  526. ZTarget=hit.Parent.Torso
  527. coroutine.resume(coroutine.create(function(Part)
  528. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  529. swait(5)
  530. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  531. end),ZTarget)
  532. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  533. local targetgui=Instance.new("BillboardGui")
  534. targetgui.Parent=ZTarget
  535. targetgui.Size=UDim2.new(10,100,10,100)
  536. local targ=Instance.new("ImageLabel")
  537. targ.Parent=targetgui
  538. targ.BackgroundTransparency=1
  539. targ.Image="rbxassetid://4834067"
  540. targ.Size=UDim2.new(1,0,1,0)
  541. cam.CameraType="Scriptable"
  542. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  543. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  544. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  545. Targetting=true
  546. RocketTarget=ZTarget
  547. for i=1,Property do
  548. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  549. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  550. swait()
  551. end
  552. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  553. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  554. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  555. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  556. end
  557. Targetting=false
  558. RocketTarget=nil
  559. targetgui.Parent=nil
  560. cam.CameraType="Custom"
  561. end
  562. end
  563. local debounce=Instance.new("BoolValue")
  564. debounce.Name="DebounceHit"
  565. debounce.Parent=hit.Parent
  566. debounce.Value=true
  567. game:GetService("Debris"):AddItem(debounce,Delay)
  568. c=Instance.new("ObjectValue")
  569. c.Name="creator"
  570. c.Value=Player
  571. c.Parent=h
  572. game:GetService("Debris"):AddItem(c,.5)
  573. end
  574. end
  575.  
  576. function ShowDamage(Pos, Text, Time, Color)
  577. local Rate = (1 / 30)
  578. local Pos = (Pos or Vector3.new(0, 0, 0))
  579. local Text = (Text or "")
  580. local Time = (Time or 2)
  581. local Color = (Color or Color3.new(1, 0, 0))
  582. local EffectPart = part("Custom",workspace,"Granite",0,1,BrickColor.new("Maroon"),"Effect",vt(0,0,0))
  583. EffectPart.Anchored = true
  584. local BillboardGui = Instance.new("BillboardGui")
  585. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  586. BillboardGui.Adornee = EffectPart
  587. local TextLabel = Instance.new("TextLabel")
  588. TextLabel.BackgroundTransparency = 1
  589. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  590. TextLabel.Text = Text
  591. TextLabel.TextColor3 = Color
  592. TextLabel.TextScaled = true
  593. TextLabel.Font = Enum.Font.ArialBold
  594. TextLabel.Parent = BillboardGui
  595. BillboardGui.Parent = EffectPart
  596. game.Debris:AddItem(EffectPart, (Time + 0.1))
  597. EffectPart.Parent = game:GetService("Workspace")
  598. Delay(0, function()
  599. local Frames = (Time / Rate)
  600. for Frame = 1, Frames do
  601. wait(Rate)
  602. local Percent = (Frame / Frames)
  603. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  604. TextLabel.TextTransparency = Percent
  605. end
  606. if EffectPart and EffectPart.Parent then
  607. EffectPart:Destroy()
  608. end
  609. end)
  610. end
  611.  
  612. --example: local con = HitboxB.Touched:connect(function(hit) Damagefunc(Hitbox,hit,Dmg,Dmg,math.random(Knockback,Knockback),"Normal",RootPart,.2,1) end)
  613.  
  614. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,1,"Maroon","Handle",Vector3.new(1, 0.800000012, 1))
  615. Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.96453857e-005, 0.000481128693, -1.83582306e-005, 1, 1.92410751e-014, -4.42007258e-005, -1.93349195e-014, 0.999999881, -2.12312026e-012, 4.42007258e-005, 2.12312091e-012, 1))
  616. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,1,"Maroon","Hitbox",Vector3.new(1.60000002, 3.4000001, 1))
  617. Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.300050735, 0.100232601, 3.57627869e-007, 1, 1.06558363e-014, -4.67116479e-009, -1.06558363e-014, 1, -7.35089073e-017, 4.67116479e-009, 7.35089073e-017, 1))
  618. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1, 0.200000003, 1))
  619. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(8.20159912e-005, 1.10002291, 1.57356262e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254525e-014, 0.999996662, -2.14035647e-012, -4.41999473e-005, 2.14036427e-012, 1))
  620. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  621. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, -0.699694633, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  622. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  623. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, -0.699361324, -0.40998435, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  624. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.200000003, 0.800000012, 0.620000005))
  625. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409914017, 0.000346660614, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  626. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  627. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409914017, 0.700180769, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  628. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1.01999998, 0.800000012, 0.200000003))
  629. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.000400543213, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  630. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.200000003, 0.800000012, 0.620000005))
  631. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.410078049, 0.000326633453, 1.57356262e-005, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  632. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1.01999998, 0.800000012, 0.200000003))
  633. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.000392436981, -0.40998435, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  634. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  635. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.700207949, 0.410015702, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  636. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  637. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.410078049, -0.699380398, 1.56164169e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  638. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  639. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.4100914, 0.700154781, 1.57356262e-005, 1, -1.93349195e-014, 4.42007258e-005, 1.92409124e-014, 0.999991417, 2.12310291e-012, -4.42007258e-005, -2.12312026e-012, 1))
  640. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  641. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.82012939e-005, 0.700230837, -0.40998435, 1, -1.57821432e-014, 4.42007258e-005, 1.56883004e-014, 1, 2.12312091e-012, -4.42007258e-005, -2.12312026e-012, 1))
  642. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.400000006, 2, 1))
  643. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699924469, 4.14848328e-005, 2.16960907e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  644. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1, 1.39999998, 0.200000003))
  645. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.57356262e-005, -0.299851894, 0.999885559, -4.41999473e-005, -5.95854743e-008, 1, -2.60350986e-012, 1, 5.95854743e-008, -1, 3.01648321e-014, -4.41999473e-005))
  646. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  647. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1, 0.600000024, 0.200000003))
  648. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.57356262e-005, -0.700007677, 0.999902725, 4.41999473e-005, -2.13950775e-012, -1, -2.65373322e-014, -1, 2.13950667e-012, -1, 2.64427677e-014, -4.41999473e-005))
  649. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  650. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.400000006, 1.39999998, 0.399999976))
  651. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.848457336, -0.300411701, -0.141453743, 0.707042813, -1.50516166e-012, -0.707170904, 1.1783393e-014, 1, -2.11664583e-012, 0.707170904, 1.48822632e-012, 0.707042813))
  652. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  653. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.6998806, -0.499980569, -0.399654627, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  654. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.995999992))
  655. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  656. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699882507, 0.500019133, 1.00034523, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  657. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.560000002))
  658. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  659. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699882507, 0.500019133, -0.399654627, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  660. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.404000014, 0.400000006, 0.995999992))
  661. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.200000003, 0.200000003, 0.620000005))
  662. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409921646, -0.699380398, 1.57356262e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  663. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1, 0.200000003, 0.400000006))
  664. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.56164169e-005, -1.10002637, 0.699918747, 4.41999473e-005, -2.14036427e-012, -1, -1.23254932e-014, -1, 2.14036362e-012, -1, 1.22308889e-014, -4.41999473e-005))
  665. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  666. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1, 0.200000003, 0.200000003))
  667. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.16960907e-005, -0.599924088, 1.49999762, 4.41999473e-005, -2.14036427e-012, -1, 1, -1.22308889e-014, 4.41999473e-005, -1.23254932e-014, -1, 2.14036362e-012))
  668. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  669. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.400000006, 1.39999998, 0.399999976))
  670. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.141283035, -0.300261259, -0.848459244, 0.707067847, -1.51049073e-012, -0.70714587, 1.20093924e-014, 1, -2.12403055e-012, 0.70714587, 1.49334115e-012, 0.707067847))
  671. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.400000006, 0.400000006, 0.400000006))
  672. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.6998806, -0.499980569, 1.00034523, 0.999999881, 3.17161053e-008, 4.20847573e-005, -4.21145523e-005, -2.83570323e-009, 0.999999762, 3.17162403e-008, -0.999999762, -2.83438673e-009))
  673. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.403999984, 0.399999976, 0.560000002))
  674. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(1, 0.200000003, 0.400000006))
  675. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.16960907e-005, -0.79992485, 1.19999647, 4.41999473e-005, -2.14036427e-012, -1, 0.999999821, 2.980231e-008, 4.419994e-005, 2.980231e-008, -0.999999821, 3.45762416e-012))
  676. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  677. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Part",Vector3.new(0.200000003, 0.400000006, 1))
  678. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599924088, -1.19995832, 2.16960907e-005, 1, -1.22308889e-014, 4.41999473e-005, 1.23254932e-014, 1, -2.14036362e-012, -4.41999473e-005, 2.14036427e-012, 1))
  679. Finger1Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,1,"Maroon","Finger1Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  680. Finger1Connectorweld=weld(m,Handle,Finger1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399971008, 1.29990399, 0.200015664, 1, 1.78782017e-007, 4.41999473e-005, -1.7878321e-007, 0.999993324, -1.00110302e-011, -4.41999473e-005, 2.10883698e-012, 1))
  681. Finger2Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,1,"Maroon","Finger2Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  682. Finger2Connectorweld=weld(m,Handle,Finger2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399934769, 1.29982674, 0.400015712, 1, 2.97982776e-008, 4.41999473e-005, -2.97984766e-008, 0.999993324, -3.43642345e-012, -4.41999473e-005, 2.11934723e-012, 1))
  683. Finger3Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,1,"Maroon","Finger3Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  684. Finger3Connectorweld=weld(m,Handle,Finger3Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399934769, 1.29971194, 0.140015721, 1, 8.93768473e-008, 4.421228e-005, -8.93774441e-008, 0.999993324, -1.82566007e-012, -4.421228e-005, -2.12587717e-012, 1))
  685. Finger4Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,1,"Maroon","Finger4Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  686. Finger4Connectorweld=weld(m,Handle,Finger4Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399930954, 1.29973722, -0.119984269, 1, 8.93806842e-008, 4.421228e-005, -8.9381281e-008, 0.999993324, -1.82601091e-012, -4.421228e-005, -2.12569589e-012, 1))
  687. Finger5Connector=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,1,"Maroon","Finger5Connector",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  688. Finger5Connectorweld=weld(m,Handle,Finger5Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399984121, -1.29981911, -0.399932861, -4.41701486e-005, 5.95858012e-008, 1, 4.58027785e-008, -0.999993324, 5.95882241e-008, 1, 4.58051019e-008, 4.41701486e-005))
  689. Finger1=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Finger1",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  690. Finger1weld=weld(m,Finger1Connector,Finger1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, 0.100007057, 0, 1, 2.06483719e-011, -5.55111512e-017, -2.54232191e-011, 0.999986649, 4.50594423e-016, 5.55111512e-017, -4.49727061e-016, 1))
  691. Finger2=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Finger2",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  692. Finger2weld=weld(m,Finger2Connector,Finger2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.199999213, 1.1920929e-007, 1, 8.77520279e-013, 0, -1.67332814e-012, 0.999986649, 1.50920942e-016, 0, -1.50053581e-016, 1))
  693. Finger3=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Finger3",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  694. Finger3weld=weld(m,Finger3Connector,Finger3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.200001121, 1.1920929e-007, 1, 2.64321898e-012, -4.35207426e-013, -5.03064257e-012, 0.999986649, -1.23739232e-016, 4.35207426e-013, 2.38535383e-016, 1))
  695. Finger4=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Finger4",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  696. Finger4weld=weld(m,Finger4Connector,Finger4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.199998736, 1.1920929e-007, 1, 2.64321898e-012, -4.35207426e-013, -5.03064257e-012, 0.999986649, -1.23732138e-016, 4.35207426e-013, 2.38539513e-016, 1))
  697. Finger5=part(Enum.FormFactor.Custom,m,Enum.Material.Granite,0.5,0,"Maroon","Finger5",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  698. Finger5weld=weld(m,Finger5Connector,Finger5,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.38418579e-007, -0.199927688, 9.53674316e-006, 1, -3.86535248e-012, -7.77482967e-010, 5.45696821e-012, 0.999986649, -1.35540613e-012, 7.77477638e-010, 2.57749442e-012, 1))
  699.  
  700. function FuckYou()
  701. attack = true
  702. for i = 0,1,0.1 do
  703. swait()
  704. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  705. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  706. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-170)), 0.3)
  707. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  708. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  709. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  710. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  711. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  712. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  713. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  714. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  715. end
  716. for i = 0,1,0.01 do
  717. swait()
  718. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  719. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  720. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-130), math.rad(-150)), 0.3)
  721. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  722. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  723. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  724. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  725. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  726. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  727. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  728. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  729. end
  730. attack = false
  731. end
  732.  
  733. function attackone()
  734. attack = true
  735. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  736. for i = 0,1,0.1 do
  737. swait()
  738. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  739. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  740. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  741. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  742. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  743. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  744. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  745. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  746. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  747. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  748. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  749. end
  750. so("http://roblox.com/asset/?id=200632136",Hitbox,1,.9)
  751. for i = 0,1,0.1 do
  752. swait()
  753. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.4)
  754. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.4)
  755. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.5) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.4)
  756. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  757. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  758. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  759. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(20)),.3)
  760. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),.3)
  761. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  762. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3)
  763. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-20),math.rad(0),math.rad(-20)),.3)
  764. end
  765. attack = false
  766. con:disconnect()
  767. end
  768.  
  769. function attacktwo()
  770. attack = true
  771. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  772. for i = 0,1,0.1 do
  773. swait()
  774. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  775. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  776. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(0), math.rad(150), math.rad(90)), 0.3)
  777. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  778. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  779. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  780. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  781. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  782. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  783. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  784. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  785. end
  786. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  787. for i = 0,1,0.1 do
  788. swait()
  789. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(70)),.4)
  790. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5)
  791. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.4)
  792. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  793. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  794. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  795. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  796. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  797. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  798. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  799. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  800. end
  801. attack = false
  802. con:disconnect()
  803. end
  804.  
  805. function attackthree()
  806. attack = true
  807. local con = Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end)
  808. for i = 0,1,0.1 do
  809. swait()
  810. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  811. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  812. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)), 0.3)
  813. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-90)), 0.3)
  814. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  815. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  816. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  817. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  818. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  819. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  820. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  821. end
  822. so("http://roblox.com/asset/?id=200632136",Hitbox,1,.8)
  823. for i = 0,1,0.1 do
  824. swait()
  825. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(90)),.4)
  826. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.4)
  827. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-40*i)), 0.4)
  828. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  829. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  830. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  831. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  832. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  833. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  834. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  835. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  836. end
  837. attack = false
  838. con:disconnect()
  839. end
  840.  
  841. function weld5(part0, part1, c0, c1)
  842. local weeld=Instance.new("Weld", part0)
  843. weeld.Part0=part0
  844. weeld.Part1=part1
  845.  
  846. weeld.C0=c0
  847. weeld.C1=c1
  848. return weeld
  849. end
  850.  
  851. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  852. local prt=part(3,workspace,"Granite",0.5,0,brickcolor,"Effect",vt())
  853. prt.Anchored=true
  854. prt.CFrame=cframe
  855. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  856. game:GetService("Debris"):AddItem(prt,2)
  857. coroutine.resume(coroutine.create(function(Part,Mesh)
  858. local wld=nil
  859. for i=0,1,delay do
  860. wait()
  861. Part.CFrame=Part.CFrame
  862. Part.Transparency=i
  863. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  864. end
  865. Part.Parent=nil
  866. end),prt,msh)
  867. end
  868.  
  869. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  870. local prt=part(3,workspace,"Granite",0.5,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  871. prt.Anchored=true
  872. prt.CFrame=cframe
  873. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  874. game:GetService("Debris"):AddItem(prt,5)
  875. coroutine.resume(coroutine.create(function(Part,Mesh)
  876. for i=0,1,delay do
  877. wait()
  878. Part.CFrame=Part.CFrame
  879. Part.Transparency=i
  880. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  881. end
  882. Part.Parent=nil
  883. end),prt,msh)
  884. end
  885.  
  886. local Grab = false
  887.  
  888. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  889. for _,c in pairs(workspace:children()) do
  890. local hum=c:findFirstChild("Humanoid")
  891. if hum~=nil then
  892. local head=c:findFirstChild("Torso")
  893. if head~=nil then
  894. local targ=head.Position-Part.Position
  895. local mag=targ.magnitude
  896. if mag<=magni and c.Name~=Player.Name then
  897. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  898. end
  899. end
  900. end
  901. end
  902. end
  903.  
  904. function MagniDamage2(Hit,Part,magni,mindam,maxdam,knock,Type)
  905. for _,c in pairs(workspace:children()) do
  906. local hum=c:findFirstChild("Humanoid")
  907. if hum~=nil then
  908. local head=c:findFirstChild("Torso")
  909. if head~=nil then
  910. local targ=head.Position-Part.Position
  911. local mag=targ.magnitude
  912. if mag<=magni and c.Name~=Player.Name then
  913. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  914. for i,v in pairs (hum.Parent:GetChildren()) do
  915. if v:IsA("Humanoid") then
  916. v:remove()
  917. end
  918. if v:IsA("Part") then
  919. v.BrickColor = BrickColor.new("Maroon")
  920. v.Reflectance = 0
  921. v.Material = "Granite"
  922. v.CanCollide = true
  923. end
  924. end
  925. end
  926. end
  927. end
  928. end
  929. end
  930.  
  931.  
  932. function GrabNSlam()
  933. attack = true
  934. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  935. if Grab == false then
  936. gp = nil
  937. con1=Hitbox.Touched:connect(function(hit) -- credits to TheDarkRevenant for the grabbing
  938. local ht = hit.Parent
  939. local hum1=ht:FindFirstChild('Humanoid')
  940. if hum1 ~= nil then
  941. hum1.PlatformStand=true
  942. gp = ht
  943. Grab = true
  944. local asd=weld5(RightArm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0))
  945. asd.Parent = RightArm
  946. asd.Name = "asd"
  947. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
  948. so("http://roblox.com/asset/?id=200632821",Torso,1,.9)
  949. for i,v in pairs (gp:GetChildren()) do
  950. if v:IsA("Part") then
  951. v.BrickColor = BrickColor.new("Maroon")
  952. v.Reflectance = 0
  953. v.Material = "Granite"
  954. end
  955. end
  956. elseif hum1 == nil then
  957. con1:disconnect()
  958. wait() return
  959. end
  960. end)
  961. end
  962. for i = 0,1,0.1 do
  963. swait()
  964. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(50)),.4)
  965. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.5)
  966. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.4)
  967. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  968. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  969. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  970. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  971. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  972. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  973. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  974. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  975. end
  976. if Grab == true then
  977. for i = 0,1,0.1 do
  978. swait()
  979. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-50)),.4)
  980. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.5)
  981. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.4)
  982. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  983. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  984. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  985. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  986. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  987. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  988. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  989. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  990. end
  991. so("http://roblox.com/asset/?id=200632875",Torso,1,.9)
  992. MagicCircle(BrickColor.new("Maroon"),Hitbox.CFrame,5,5,5,6,6,6,0.05)
  993. MagicRing(BrickColor.new("Maroon"),Hitbox.CFrame,5,5,5,6,6,6,0.05)
  994. MagniDamage(Hitbox,Hitbox,10,30,50,0,"Normal")
  995. for i = 0,1,0.1 do
  996. swait()
  997. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(50),math.rad(0),math.rad(70)),.4)
  998. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5)
  999. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.4)
  1000. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-70)), 0.3)
  1001. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  1002. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-10),math.rad(0),math.rad(0)),.4)
  1003. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1004. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1005. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1006. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1007. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1008. end
  1009. end
  1010. con1:disconnect()
  1011. for i,v in pairs(RightArm:GetChildren()) do
  1012. if v.Name == "asd" and v:IsA("Weld") then
  1013. v:Remove()
  1014.  
  1015. end
  1016. end
  1017. Grab = false
  1018. attack = false
  1019. end
  1020.  
  1021. function BlastEffect(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  1022. local prt=part(3,workspace,"Granite",0.5,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1023. prt.Anchored=true
  1024. prt.CFrame = cframe
  1025. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1026. coroutine.resume(coroutine.create(function()
  1027. for i=0,1,0.05 do
  1028. wait()
  1029. prt.Transparency=i
  1030. msh.Scale=msh.Scale+vt(x2,y2,z2)
  1031. end
  1032. prt.Parent=nil
  1033. end))
  1034. end
  1035.  
  1036. function HammerFist()
  1037. attack = true
  1038. Humanoid.WalkSpeed = 0
  1039. for i = 0,1,0.1 do
  1040. swait()
  1041. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1042. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1043. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1044. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1045. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(-5))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1046. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1047. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1048. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1049. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1050. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1051. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1052. end
  1053. so("http://roblox.com/asset/?id=200632875",Torso,1,.9)
  1054. so("http://roblox.com/asset/?id=263610131",Torso,1,1)
  1055. so("http://roblox.com/asset/?id=263610111",Torso,1,1)
  1056. MagniDamage(Hitbox,Hitbox,20,20,30,0,"Knockdown")
  1057. local hit,pos=rayCast(Hitbox.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1058. if hit~=nil then
  1059. local ref=part(3,workspace,"Granite",0,1,BrickColor.new("Black"),"Effect",vt())
  1060. ref.Anchored=true
  1061. ref.CFrame=cf(pos)
  1062. game:GetService("Debris"):AddItem(ref,3)
  1063. for i=1,10 do
  1064. local Col=BrickColor.new("Maroon")
  1065. local groundpart=part(3,workspace,"Granite",0.5,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  1066. groundpart.Anchored=true
  1067. groundpart.CanCollide=false
  1068. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1069. game:GetService("Debris"):AddItem(groundpart,5)
  1070. end
  1071. BlastEffect(BrickColor.new("Maroon"),cf(pos),1,1,1,.7,.7,.7)
  1072. MagicCircle(BrickColor.new("Maroon"),cf(pos),3,3,3,5,5,5,0.05)
  1073. MagniDamage(ref,ref,10,10,20,math.random(10,20),"Knockdown")
  1074. end
  1075. for i = 0,1,0.1 do
  1076. swait()
  1077. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(40),math.rad(0),math.rad(0)),.5)
  1078. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1079. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.5)
  1080. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.3)
  1081. RH.C0=clerp(RH.C0,cf(1,.5,-.2)*angles(math.rad(0),math.rad(90),math.rad(30))*angles(math.rad(2),math.rad(0),math.rad(0)),.3)
  1082. LH.C0=clerp(LH.C0,cf(-1,-.5,-.5)*angles(math.rad(0),math.rad(-80),math.rad(40))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1083. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1084. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1085. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1086. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1087. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1088. end
  1089. attack = false
  1090. Humanoid.WalkSpeed = 16
  1091. end
  1092.  
  1093. function TurnIntoGold()
  1094. attack = true
  1095. so("http://roblox.com/asset/?id=200632211",Hitbox,1,.9)
  1096. if Grab == false then
  1097. gp = nil
  1098. con1=Hitbox.Touched:connect(function(hit) -- credits to TheDarkRevenant for the grabbing
  1099. local ht = hit.Parent
  1100. local hum1=ht:FindFirstChild('Humanoid')
  1101. if hum1 ~= nil then
  1102. hum1.PlatformStand=true
  1103. gp = ht
  1104. Grab = true
  1105. local asd=weld5(RightArm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0))
  1106. asd.Parent = RightArm
  1107. asd.Name = "asd"
  1108. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
  1109. so("http://roblox.com/asset/?id=200632821",Torso,1,.9)
  1110. --[[for i,v in pairs (gp:GetChildren()) do
  1111. if v:IsA("Part") then
  1112. v.BrickColor = BrickColor.new("Maroon")
  1113. v.Reflectance = 0
  1114. v.Material = "Granite"
  1115. end
  1116. end]]--
  1117. elseif hum1 == nil then
  1118. con1:disconnect()
  1119. wait() return
  1120. end
  1121. end)
  1122. end
  1123. for i = 0,1,0.1 do
  1124. swait()
  1125. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  1126. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.5)
  1127. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.4)
  1128. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.3)
  1129. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1130. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1131. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1132. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1133. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1134. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1135. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1136. end
  1137. if Grab == true then
  1138. for i = 0,1,0.1 do
  1139. swait()
  1140. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1141. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  1142. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(0), math.rad(0)), 0.4)
  1143. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1144. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1145. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1146. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1147. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1148. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1149. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1150. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1151. end
  1152. so("http://roblox.com/asset/?id=248572927",Torso,1,1)
  1153. MagniDamage2(Hitbox,Hitbox,5,30,50,0,"Normal")
  1154. MagicCircle(BrickColor.new("Maroon"),RightArm.CFrame,3,3,3,5,5,5,0.05)
  1155. BlastEffect(BrickColor.new("Maroon"),Torso.CFrame,1,1,1,.7,.7,.7)
  1156. for i = 0,1,0.1 do
  1157. swait()
  1158. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1159. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  1160. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(0), math.rad(0)), 0.4)
  1161. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1162. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.4)
  1163. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.4)
  1164. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1165. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1166. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1167. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1168. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1169. end
  1170. end
  1171. con1:disconnect()
  1172. Grab = false
  1173. attack = false
  1174. for i,v in pairs(RightArm:GetChildren()) do
  1175. if v.Name == "asd" and v:IsA("Weld") then
  1176. v:Remove()
  1177.  
  1178. end
  1179. end
  1180. end
  1181.  
  1182. mouse.Button1Down:connect(function()
  1183. if attack == false and attacktype == 1 then
  1184. attacktype = 2
  1185. attackone()
  1186. elseif attack == false and attacktype == 2 then
  1187. attacktype = 3
  1188. attacktwo()
  1189. elseif attack == false and attacktype == 3 then
  1190. attacktype = 1
  1191. attackthree()
  1192. end
  1193. end)
  1194.  
  1195. mouse.KeyDown:connect(function(k)
  1196. k=k:lower()
  1197. if attack == false and k == 'q' then
  1198. GrabNSlam()
  1199. elseif attack == false and k == 'e' then
  1200. HammerFist()
  1201. elseif attack == false and k == 'r' then
  1202. TurnIntoGold()
  1203. elseif attack == false and k == 'f' then
  1204. FuckYou()
  1205. end
  1206. end)
  1207.  
  1208.  
  1209. local sine = 0
  1210. local change = 1
  1211. local val = 0
  1212. local donum = .5
  1213.  
  1214. while true do
  1215. swait()
  1216. sine = sine + change
  1217. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1218. local velderp=RootPart.Velocity.y
  1219. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1220. if equipped==true or equipped==false then
  1221. if attack==false then
  1222. idle=idle+1
  1223. else
  1224. idle=0
  1225. end
  1226. if idle>=500 then
  1227. if attack==false then
  1228. end
  1229. end
  1230. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1231. Anim="Jump"
  1232. if attack==false then
  1233. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1234. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1235. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  1236. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1237. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1238. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1239. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1240. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1241. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1242. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1243. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1244. end
  1245. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1246. Anim="Fall"
  1247. if attack==false then
  1248. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1249. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1250. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(60)), 0.3)
  1251. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-60)), 0.3)
  1252. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1253. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1254. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(30),math.rad(0),math.rad(-50)),.3)
  1255. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
  1256. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  1257. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(-10),math.rad(0),math.rad(50)),.3)
  1258. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(50),math.rad(0),math.rad(-20)),.3)
  1259. end
  1260. elseif torvel<1 and hitfloor~=nil then
  1261. Anim="Idle"
  1262. if attack==false then
  1263. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-30)),.3)
  1264. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1265. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3)
  1266. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-10)), 0.3)
  1267. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1268. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1269. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1270. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.07,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1271. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1272. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1273. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-50),math.rad(0),math.rad(0)),.3)
  1274. end
  1275. elseif torvel>2 and hitfloor~=nil then
  1276. Anim="Walk"
  1277. if attack==false then
  1278. change=3
  1279. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1280. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1281. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10)*math.cos(sine/13), math.rad(0), math.rad(10)), 0.3)
  1282. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10)*math.cos(sine/13), math.rad(0), math.rad(-10)), 0.3)
  1283. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5)),.3)
  1284. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-5)),.3)
  1285. Finger1weld.C0=clerp(Finger1weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(80)),.3)
  1286. Finger2weld.C0=clerp(Finger2weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1287. Finger3weld.C0=clerp(Finger3weld.C0,cf(0,0.08,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1288. Finger4weld.C0=clerp(Finger4weld.C0,cf(0,0.09,0)*angles(math.rad(0),math.rad(0),math.rad(-80)),.3)
  1289. Finger5weld.C0=clerp(Finger5weld.C0,cf(0,-0.1,0)*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
  1290. end
  1291. end
  1292. end
  1293. if #Effects>0 then
  1294. for e=1,#Effects do
  1295. if Effects[e]~=nil then
  1296. local Thing=Effects[e]
  1297. if Thing~=nil then
  1298. local Part=Thing[1]
  1299. local Mode=Thing[2]
  1300. local Delay=Thing[3]
  1301. local IncX=Thing[4]
  1302. local IncY=Thing[5]
  1303. local IncZ=Thing[6]
  1304. if Thing[1].Transparency<=1 then
  1305. if Thing[2]=="Block1" then
  1306. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1307. Mesh=Thing[1].Mesh
  1308. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1309. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1310. elseif Thing[2]=="Cylinder" then
  1311. Mesh=Thing[1].Mesh
  1312. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1313. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1314. elseif Thing[2]=="Blood" then
  1315. Mesh=Thing[7]
  1316. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1317. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1318. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1319. elseif Thing[2]=="Elec" then
  1320. Mesh=Thing[1].Mesh
  1321. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1322. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1323. elseif Thing[2]=="Disappear" then
  1324. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1325. end
  1326. else
  1327. Part.Parent=nil
  1328. table.remove(Effects,e)
  1329. end
  1330. end
  1331. end
  1332. end
  1333. end
  1334. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement