Advertisement
Kittdy3

Untitled

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