Advertisement
Script_editor_cool

Untitled

Jul 30th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.21 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. ----Reskinned----
  88. ---By KAITO_KIRO----
  89.  
  90. Player=owner
  91. Character=Player.Character
  92. PlayerGui=Player.PlayerGui
  93. Backpack=Player.Backpack
  94. Torso=Character.Torso
  95. Head=Character.Head
  96. Humanoid=Character.Humanoid
  97. m=Instance.new('Model',Character)
  98. LeftArm=Character["Left Arm"]
  99. LeftLeg=Character["Left Leg"]
  100. RightArm=Character["Right Arm"]
  101. RightLeg=Character["Right Leg"]
  102. LS=Torso["Left Shoulder"]
  103. LH=Torso["Left Hip"]
  104. RS=Torso["Right Shoulder"]
  105. RH=Torso["Right Hip"]
  106. Face = Head.face
  107. Neck=Torso.Neck
  108. it=Instance.new
  109. attacktype=1
  110. vt=Vector3.new
  111. cf=CFrame.new
  112. euler=CFrame.fromEulerAnglesXYZ
  113. angles=CFrame.Angles
  114. cloaked=false
  115. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  116. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  117. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  118. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  119. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  120. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  121. RootPart=Character.HumanoidRootPart
  122. RootJoint=RootPart.RootJoint
  123. RootCF=euler(-1.57,0,3.14)
  124. attack = false
  125. attackdebounce = false
  126. deb=false
  127. equipped=true
  128. hand=false
  129. MMouse=nil
  130. combo=0
  131. mana=0
  132. trispeed=.2
  133. attackmode='none'
  134. local idle=0
  135. local Anim="Idle"
  136. local Effects={}
  137. local gun=false
  138. local shoot=false
  139. player=nil
  140.  
  141. --save shoulders
  142. RSH, LSH=nil, nil
  143. --welds
  144. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  145. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  146. LH=Torso["Left Hip"]
  147. RH=Torso["Right Hip"]
  148. TorsoColor=Torso.BrickColor
  149. function NoOutline(Part)
  150. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  151. end
  152. player=Player
  153. ch=Character
  154. RSH=ch.Torso["Right Shoulder"]
  155. LSH=ch.Torso["Left Shoulder"]
  156. --
  157. RSH.Parent=nil
  158. LSH.Parent=nil
  159. --
  160. RW.Name="Right Shoulder"
  161. RW.Part0=ch.Torso
  162. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  163. RW.C1=cf(0, 0.5, 0)
  164. RW.Part1=ch["Right Arm"]
  165. RW.Parent=ch.Torso
  166. --
  167. LW.Name="Left Shoulder"
  168. LW.Part0=ch.Torso
  169. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  170. LW.C1=cf(0, 0.5, 0)
  171. LW.Part1=ch["Left Arm"]
  172. LW.Parent=ch.Torso
  173.  
  174. local Stats=Instance.new("BoolValue")
  175. Stats.Name="Stats"
  176. Stats.Parent=Character
  177. local Atk=Instance.new("NumberValue")
  178. Atk.Name="Damage"
  179. Atk.Parent=Stats
  180. Atk.Value=1
  181. local Def=Instance.new("NumberValue")
  182. Def.Name="Defense"
  183. Def.Parent=Stats
  184. Def.Value=1
  185. local Speed=Instance.new("NumberValue")
  186. Speed.Name="Speed"
  187. Speed.Parent=Stats
  188. Speed.Value=1
  189. local Mvmt=Instance.new("NumberValue")
  190. Mvmt.Name="Movement"
  191. Mvmt.Parent=Stats
  192. Mvmt.Value=1
  193.  
  194. local donum=0
  195.  
  196.  
  197. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  198. local fp=it("Part")
  199. fp.formFactor=formfactor
  200. fp.Parent=parent
  201. fp.Reflectance=reflectance
  202. fp.Transparency=transparency
  203. fp.CanCollide=false
  204. fp.Locked=true
  205. fp.BrickColor=brickcolor
  206. fp.Name=name
  207. fp.Size=size
  208. fp.Position=Torso.Position
  209. NoOutline(fp)
  210. fp.Material="SmoothPlastic"
  211. fp:BreakJoints()
  212. return fp
  213. end
  214.  
  215. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  216. local mesh=it(Mesh)
  217. mesh.Parent=part
  218. if Mesh=="SpecialMesh" then
  219. mesh.MeshType=meshtype
  220. if meshid~="nil" then
  221. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  222. end
  223. end
  224. mesh.Offset=offset
  225. mesh.Scale=scale
  226. return mesh
  227. end
  228.  
  229. function weld(parent,part0,part1,c0)
  230. local weld=it("Weld")
  231. weld.Parent=parent
  232. weld.Part0=part0
  233. weld.Part1=part1
  234. weld.C0=c0
  235. return weld
  236. end
  237.  
  238. local Color1=Torso.BrickColor
  239.  
  240. local bodvel=Instance.new("BodyVelocity")
  241. local bg=Instance.new("BodyGyro")
  242.  
  243. function swait(num)
  244. if num==0 or num==nil then
  245. game:service'RunService'.Stepped:wait(0)
  246. else
  247. for i=0,num do
  248. game:service'RunService'.Stepped:wait(0)
  249. end
  250. end
  251. end
  252.  
  253.  
  254. so = function(id,par,vol,pit)
  255. coroutine.resume(coroutine.create(function()
  256. local sou = Instance.new("Sound",par or workspace)
  257. sou.Volume=vol
  258. sou.Pitch=pit or 1
  259. sou.SoundId=id
  260. swait()
  261. sou:play()
  262. game:GetService("Debris"):AddItem(sou,6)
  263. end))
  264. end
  265.  
  266. function clerp(a,b,t)
  267. local qa = {QuaternionFromCFrame(a)}
  268. local qb = {QuaternionFromCFrame(b)}
  269. local ax, ay, az = a.x, a.y, a.z
  270. local bx, by, bz = b.x, b.y, b.z
  271. local _t = 1-t
  272. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  273. end
  274.  
  275. function QuaternionFromCFrame(cf)
  276. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  277. local trace = m00 + m11 + m22
  278. if trace > 0 then
  279. local s = math.sqrt(1 + trace)
  280. local recip = 0.5/s
  281. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  282. else
  283. local i = 0
  284. if m11 > m00 then
  285. i = 1
  286. end
  287. if m22 > (i == 0 and m00 or m11) then
  288. i = 2
  289. end
  290. if i == 0 then
  291. local s = math.sqrt(m00-m11-m22+1)
  292. local recip = 0.5/s
  293. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  294. elseif i == 1 then
  295. local s = math.sqrt(m11-m22-m00+1)
  296. local recip = 0.5/s
  297. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  298. elseif i == 2 then
  299. local s = math.sqrt(m22-m00-m11+1)
  300. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  301. end
  302. end
  303. end
  304.  
  305. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  306. local xs, ys, zs = x + x, y + y, z + z
  307. local wx, wy, wz = w*xs, w*ys, w*zs
  308. local xx = x*xs
  309. local xy = x*ys
  310. local xz = x*zs
  311. local yy = y*ys
  312. local yz = y*zs
  313. local zz = z*zs
  314. 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))
  315. end
  316.  
  317. function QuaternionSlerp(a, b, t)
  318. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  319. local startInterp, finishInterp;
  320. if cosTheta >= 0.0001 then
  321. if (1 - cosTheta) > 0.0001 then
  322. local theta = math.acos(cosTheta)
  323. local invSinTheta = 1/math.sin(theta)
  324. startInterp = math.sin((1-t)*theta)*invSinTheta
  325. finishInterp = math.sin(t*theta)*invSinTheta
  326. else
  327. startInterp = 1-t
  328. finishInterp = t
  329. end
  330. else
  331. if (1+cosTheta) > 0.0001 then
  332. local theta = math.acos(-cosTheta)
  333. local invSinTheta = 1/math.sin(theta)
  334. startInterp = math.sin((t-1)*theta)*invSinTheta
  335. finishInterp = math.sin(t*theta)*invSinTheta
  336. else
  337. startInterp = t-1
  338. finishInterp = t
  339. end
  340. end
  341. 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
  342. end
  343.  
  344. local function CFrameFromTopBack(at, top, back)
  345. local right = top:Cross(back)
  346. return CFrame.new(at.x, at.y, at.z,
  347. right.x, top.x, back.x,
  348. right.y, top.y, back.y,
  349. right.z, top.z, back.z)
  350. end
  351.  
  352. function Triangle(a, b, c)
  353. local edg1 = (c-a):Dot((b-a).unit)
  354. local edg2 = (a-b):Dot((c-b).unit)
  355. local edg3 = (b-c):Dot((a-c).unit)
  356. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  357. a, b, c = a, b, c
  358. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  359. a, b, c = b, c, a
  360. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  361. a, b, c = c, a, b
  362. else
  363. assert(false, "unreachable")
  364. end
  365.  
  366. local len1 = (c-a):Dot((b-a).unit)
  367. local len2 = (b-a).magnitude - len1
  368. local width = (a + (b-a).unit*len1 - c).magnitude
  369.  
  370. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  371.  
  372. local list = {}
  373.  
  374. if len1 > 0.01 then
  375. local w1 = Instance.new('WedgePart', m)
  376. game:GetService("Debris"):AddItem(w1,5)
  377. w1.Material = "SmoothPlastic"
  378. w1.FormFactor = 'Custom'
  379. w1.BrickColor = BrickColor.new("Toothpaste")
  380. w1.Transparency = 0
  381. w1.Reflectance = 0
  382. w1.Material = "SmoothPlastic"
  383. w1.CanCollide = false
  384. local l1 = Instance.new("PointLight",w1)
  385. l1.Color = Color3.new(170,0,0)
  386. NoOutline(w1)
  387. local sz = Vector3.new(0.2, width, len1)
  388. w1.Size = sz
  389. local sp = Instance.new("SpecialMesh",w1)
  390. sp.MeshType = "Wedge"
  391. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  392. w1:BreakJoints()
  393. w1.Anchored = true
  394. w1.Parent = workspace
  395. w1.Transparency = 0.7
  396. table.insert(Effects,{w1,"Disappear",.01})
  397. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  398. table.insert(list,w1)
  399. end
  400.  
  401. if len2 > 0.01 then
  402. local w2 = Instance.new('WedgePart', m)
  403. game:GetService("Debris"):AddItem(w2,5)
  404. w2.Material = "SmoothPlastic"
  405. w2.FormFactor = 'Custom'
  406. w2.BrickColor = BrickColor.new("Toothpaste")
  407. w2.Transparency = 0
  408. w2.Reflectance = 0
  409. w2.Material = "SmoothPlastic"
  410. w2.CanCollide = false
  411. local l2 = Instance.new("PointLight",w2)
  412. l2.Color = Color3.new(170,0,0)
  413. NoOutline(w2)
  414. local sz = Vector3.new(0.2, width, len2)
  415. w2.Size = sz
  416. local sp = Instance.new("SpecialMesh",w2)
  417. sp.MeshType = "Wedge"
  418. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  419. w2:BreakJoints()
  420. w2.Anchored = true
  421. w2.Parent = workspace
  422. w2.Transparency = 0.7
  423. table.insert(Effects,{w2,"Disappear",.01})
  424. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  425. table.insert(list,w2)
  426. end
  427. return unpack(list)
  428. end
  429.  
  430.  
  431. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  432. if hit.Parent==nil then
  433. return
  434. end
  435. h=hit.Parent:FindFirstChild("Humanoid")
  436. for _,v in pairs(hit.Parent:children()) do
  437. if v:IsA("Humanoid") then
  438. h=v
  439. end
  440. end
  441. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  442. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  443. end
  444. if hit.Parent.className=="Hat" then
  445. hit=hit.Parent.Parent:findFirstChild("Head")
  446. end
  447. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  448. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  449. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  450. return
  451. end]]
  452. -- hs(hit,1.2)
  453. c=Instance.new("ObjectValue")
  454. c.Name="creator"
  455. c.Value=owner
  456. c.Parent=h
  457. game:GetService("Debris"):AddItem(c,.5)
  458. Damage=math.random(minim,maxim)
  459. -- h:TakeDamage(Damage)
  460. blocked=false
  461. block=hit.Parent:findFirstChild("Block")
  462. if block~=nil then
  463. print(block.className)
  464. if block.className=="NumberValue" then
  465. if block.Value>0 then
  466. blocked=true
  467. if decreaseblock==nil then
  468. block.Value=block.Value-1
  469. end
  470. end
  471. end
  472. if block.className=="IntValue" then
  473. if block.Value>0 then
  474. blocked=true
  475. if decreaseblock~=nil then
  476. block.Value=block.Value-1
  477. end
  478. end
  479. end
  480. end
  481. if blocked==false then
  482. -- h:TakeDamage(Damage)
  483. h.Health=h.Health-Damage
  484. showDamage(hit.Parent,Damage,.5,BrickColor.new("Toothpaste"))
  485. else
  486. h.Health=h.Health-(Damage/2)
  487. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  488. end
  489. if Type=="Knockdown" then
  490. hum=hit.Parent.Humanoid
  491. hum.PlatformStand=true
  492. coroutine.resume(coroutine.create(function(HHumanoid)
  493. swait(1)
  494. HHumanoid.PlatformStand=false
  495. end),hum)
  496. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  497. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  498. local bodvol=Instance.new("BodyVelocity")
  499. bodvol.velocity=angle*knockback
  500. bodvol.P=5000
  501. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  502. bodvol.Parent=hit
  503. rl=Instance.new("BodyAngularVelocity")
  504. rl.P=3000
  505. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  506. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  507. rl.Parent=hit
  508. game:GetService("Debris"):AddItem(bodvol,.5)
  509. game:GetService("Debris"):AddItem(rl,.5)
  510. elseif Type=="Normal" then
  511. vp=Instance.new("BodyVelocity")
  512. vp.P=500
  513. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  514. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  515. if KnockbackType==1 then
  516. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  517. elseif KnockbackType==2 then
  518. vp.velocity=Property.CFrame.lookVector*knockback
  519. end
  520. if knockback>0 then
  521. vp.Parent=hit.Parent.Torso
  522. end
  523. game:GetService("Debris"):AddItem(vp,.5)
  524. elseif Type=="Up" then
  525. local bodyVelocity=Instance.new("BodyVelocity")
  526. bodyVelocity.velocity=vt(0,60,0)
  527. bodyVelocity.P=5000
  528. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  529. bodyVelocity.Parent=hit
  530. game:GetService("Debris"):AddItem(bodyVelocity,1)
  531. rl=Instance.new("BodyAngularVelocity")
  532. rl.P=3000
  533. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  534. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  535. rl.Parent=hit
  536. game:GetService("Debris"):AddItem(rl,.5)
  537. elseif Type=="Snare" then
  538. bp=Instance.new("BodyPosition")
  539. bp.P=2000
  540. bp.D=100
  541. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  542. bp.position=hit.Parent.Torso.Position
  543. bp.Parent=hit.Parent.Torso
  544. game:GetService("Debris"):AddItem(bp,1)
  545. elseif Type=="Target" then
  546. if Targetting==false then
  547. ZTarget=hit.Parent.Torso
  548. coroutine.resume(coroutine.create(function(Part)
  549. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  550. swait(5)
  551. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  552. end),ZTarget)
  553. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  554. targetgui=Instance.new("BillboardGui")
  555. targetgui.Parent=ZTarget
  556. targetgui.Size=UDim2.new(10,100,10,100)
  557. targ=Instance.new("ImageLabel")
  558. targ.Parent=targetgui
  559. targ.BackgroundTransparency=1
  560. targ.Image="rbxassetid://4834067"
  561. targ.Size=UDim2.new(1,0,1,0)
  562. cam.CameraType="Scriptable"
  563. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  564. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  565. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  566. Targetting=true
  567. RocketTarget=ZTarget
  568. for i=1,Property do
  569. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  570. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  571. swait()
  572. end
  573. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  574. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  575. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  576. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  577. end
  578. Targetting=false
  579. RocketTarget=nil
  580. targetgui.Parent=nil
  581. cam.CameraType="Custom"
  582. end
  583. end
  584. debounce=Instance.new("BoolValue")
  585. debounce.Name="DebounceHit"
  586. debounce.Parent=hit.Parent
  587. debounce.Value=true
  588. game:GetService("Debris"):AddItem(debounce,Delay)
  589. c=Instance.new("ObjectValue")
  590. c.Name="creator"
  591. c.Value=Player
  592. c.Parent=h
  593. game:GetService("Debris"):AddItem(c,.5)
  594. CRIT=false
  595. hitDeb=true
  596. AttackPos=6
  597. end
  598. end
  599.  
  600. showDamage=function(Char,Dealt,du,Color)
  601. m=Instance.new("Model")
  602. m.Name=tostring(Dealt)
  603. h=Instance.new("Humanoid")
  604. h.Health=0
  605. h.MaxHealth=0
  606. h.Parent=m
  607. c=Instance.new("Part")
  608. c.Transparency=0
  609. c.BrickColor=Color
  610. c.Name="Head"
  611. c.TopSurface=0
  612. c.BottomSurface=0
  613. c.formFactor="Plate"
  614. c.Size=Vector3.new(1,.4,1)
  615. ms=Instance.new("CylinderMesh")
  616. ms.Scale=Vector3.new(.8,.8,.8)
  617. if CRIT==true then
  618. ms.Scale=Vector3.new(1,1.25,1)
  619. end
  620. ms.Parent=c
  621. c.Reflectance=0
  622. Instance.new("BodyGyro").Parent=c
  623. c.Parent=m
  624. if Char:findFirstChild("Head")~=nil then
  625. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  626. elseif Char.Parent:findFirstChild("Head")~=nil then
  627. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  628. end
  629. f=Instance.new("BodyPosition")
  630. f.P=2000
  631. f.D=100
  632. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  633. f.position=c.Position+Vector3.new(0,3,0)
  634. f.Parent=c
  635. game:GetService("Debris"):AddItem(m,.5+du)
  636. c.CanCollide=false
  637. m.Parent=workspace
  638. c.CanCollide=false
  639. end
  640.  
  641. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  642. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  643. end
  644.  
  645. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  646. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  647. prt.Anchored=true
  648. prt.CFrame=cframe
  649. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  650. --http://www.roblox.com/asset/?id=4770560
  651. game:GetService("Debris"):AddItem(prt,2)
  652. CF=prt.CFrame
  653. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  654. for i=0,1,0.2 do
  655. wait()
  656. Part.CFrame=CF*cf(0,0,-0.4)
  657. end
  658. for i=0,1,delay do
  659. wait()
  660. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  661. Mesh.Scale=Mesh.Scale
  662. end
  663. for i=0,1,0.1 do
  664. wait()
  665. Part.Transparency=i
  666. end
  667. Part.Parent=nil
  668. end),prt,msh,CF)
  669. end
  670.  
  671. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  672. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  673. prt.Anchored=true
  674. prt.CFrame=cframe
  675. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  676. game:GetService("Debris"):AddItem(prt,5)
  677. coroutine.resume(coroutine.create(function(Part,Mesh)
  678. for i=0,1,delay do
  679. wait()
  680. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  681. Part.Transparency=i
  682. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  683. end
  684. Part.Parent=nil
  685. end),prt,msh)
  686. end
  687.  
  688. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  689. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  690. prt.Anchored=false
  691. prt.CFrame=cframe
  692. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  693. local wld=weld(prt,prt,Parent,cframe)
  694. game:GetService("Debris"):AddItem(prt,5)
  695. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  696. for i=0,1,delay do
  697. wait()
  698. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  699. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  700. Part.Transparency=i
  701. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  702. end
  703. Part.Parent=nil
  704. end),prt,msh,wld)
  705. end
  706.  
  707. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  708. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  709. prt.Anchored=false
  710. prt.CFrame=cframe
  711. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  712. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  713. game:GetService("Debris"):AddItem(prt,5)
  714. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  715. for i=0,1,delay do
  716. wait()
  717. Weld.C0=euler(i*20,0,0)
  718. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  719. Part.Transparency=i
  720. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  721. end
  722. Part.Parent=nil
  723. end),prt,msh,wld)
  724. end
  725.  
  726. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  727. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  728. prt.Anchored=true
  729. prt.CFrame=cframe
  730. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  731. game:GetService("Debris"):AddItem(prt,2)
  732. coroutine.resume(coroutine.create(function(Part,Mesh)
  733. for i=0,1,delay do
  734. wait()
  735. Part.CFrame=Part.CFrame
  736. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  737. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  738. prt2.Anchored=true
  739. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  740. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  741. game:GetService("Debris"):AddItem(prt2,2)
  742. coroutine.resume(coroutine.create(function(Part,Mesh)
  743. for i=0,1,0.1 do
  744. wait()
  745. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  746. end
  747. Part.Parent=nil
  748. end),prt2,msh2)
  749. end
  750. for i=0,1,delay*2 do
  751. wait()
  752. Part.CFrame=Part.CFrame
  753. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  754. end
  755. Part.Parent=nil
  756. end),prt,msh)
  757. end
  758.  
  759. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  760. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  761. prt.Anchored=true
  762. prt.CFrame=cframe
  763. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  764. game:GetService("Debris"):AddItem(prt,2)
  765. coroutine.resume(coroutine.create(function(Part,Mesh)
  766. for i=0,1,delay do
  767. wait()
  768. Part.CFrame=Part.CFrame
  769. Part.Transparency=i
  770. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  771. end
  772. Part.Parent=nil
  773. end),prt,msh)
  774. end
  775.  
  776. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  777. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  778. prt.Anchored=true
  779. prt.CFrame=cframe*euler(x2,y2,z2)
  780. --"http://www.roblox.com/asset/?id=168892465"
  781. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  782. game:GetService("Debris"):AddItem(prt,2)
  783. coroutine.resume(coroutine.create(function(Part,Mesh)
  784. for i=0,1,0.03 do
  785. wait()
  786. Part.CFrame=Part.CFrame
  787. Part.Transparency=i
  788. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  789. end
  790. Part.Parent=nil
  791. end),prt,msh)
  792. end
  793.  
  794. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  795. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  796. prt.Anchored=true
  797. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  798. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  799. game:GetService("Debris"):AddItem(prt,2)
  800. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  801. CF=Part.CFrame
  802. Numbb=0
  803. randnumb=math.random()/10
  804. rand1=math.random()/10
  805. for i=0,1,rand1 do
  806. wait()
  807. CF=CF*cf(0,math.random()/2,0)
  808. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  809. Part.CFrame=CF*euler(Numbb,0,0)
  810. Part.Transparency=i
  811. Numbb=Numbb+randnumb
  812. end
  813. Part.Parent=nil
  814. end),prt,CF,Numbb,randnumb)
  815. end
  816.  
  817. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  818. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  819. prt.Anchored=true
  820. prt.CFrame=cframe
  821. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  822. game:GetService("Debris"):AddItem(prt,5)
  823. coroutine.resume(coroutine.create(function(Part,Mesh)
  824. for i=0,1,delay do
  825. wait()
  826. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  827. Part.Transparency=i
  828. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  829. end
  830. Part.Parent=nil
  831. end),prt,msh)
  832. end
  833.  
  834. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  835. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  836. prt.Anchored=true
  837. prt.CFrame=cframe
  838. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  839. game:GetService("Debris"):AddItem(prt,2)
  840. coroutine.resume(coroutine.create(function(Part,Mesh)
  841. for i=0,1,delay do
  842. wait()
  843. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  844. Part.Transparency=i
  845. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  846. end
  847. Part.Parent=nil
  848. end),prt,msh)
  849. end
  850.  
  851. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  852. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  853. prt.Anchored=true
  854. prt.CFrame=cframe*cf(x,y,z)
  855. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  856. game:GetService("Debris"):AddItem(prt,5)
  857. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  858. local num=math.random()
  859. local num2=math.random(-3,2)+math.random()
  860. local numm=0
  861. for i=0,1,delay*2 do
  862. swait()
  863. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  864. Part.Transparency=i
  865. numm=numm+0.01
  866. end
  867. Part.Parent=nil
  868. Mesh.Parent=nil
  869. end),prt,msh,x,y,z)
  870. end
  871.  
  872. function dmgstart(dmg,what)
  873. hitcon = what.Touched:connect(function(hit)
  874. local hum = hit.Parent:FindFirstChild("Humanoid")
  875. if hum and not hum:IsDescendantOf(Character) then
  876. hum:TakeDamage(dmg)
  877. end
  878. end)
  879. end
  880.  
  881. function dmgstop()
  882. hitcon:disconnect()
  883. end
  884.  
  885. function Cloak()
  886. Face.Parent=nil
  887. cloaked=true
  888. for _,v in pairs(Torso.Parent:children()) do
  889. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  890. coroutine.resume(coroutine.create(function()
  891. for i=0,1,0.2 do
  892. wait()
  893. v.Transparency=i
  894. end
  895. v.Transparency=1
  896. end))
  897. end
  898. if v.className=="Hat" then
  899. hatp=v.Handle
  900. coroutine.resume(coroutine.create(function(derp)
  901. for i=0,1,0.2 do
  902. wait()
  903. derp.Transparency=i
  904. end
  905. derp.Transparency=1
  906. end),hatp)
  907. end
  908. end
  909. for _,v in pairs(m:children()) do
  910. if v.className=="Part" then
  911. coroutine.resume(coroutine.create(function()
  912. for i=0,1,0.2 do
  913. wait()
  914. v.Transparency=i
  915. end
  916. v.Transparency=1
  917. end))
  918. end
  919. end
  920. end
  921.  
  922. function UnCloak()
  923. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  924. Face.Parent=Head
  925. cloaked=false
  926. for _,v in pairs(Torso.Parent:children()) do
  927. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  928. coroutine.resume(coroutine.create(function()
  929. for i=0,1,0.1 do
  930. wait()
  931. v.Transparency=v.Transparency-0.1
  932. end
  933. v.Transparency=0
  934. end))
  935. end
  936. if v.className=="Hat" then
  937. hatp=v.Handle
  938. coroutine.resume(coroutine.create(function(derp)
  939. for i=0,1,0.1 do
  940. wait()
  941. derp.Transparency=derp.Transparency-0.1
  942. end
  943. derp.Transparency=0
  944. end),hatp)
  945. end
  946. end
  947. for _,v in pairs(m:children()) do
  948. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  949. coroutine.resume(coroutine.create(function()
  950. for i=0,1,0.1 do
  951. wait()
  952. v.Transparency=v.Transparency-0.1
  953. end
  954. v.Transparency=0
  955. end))
  956. v.Transparency=0
  957. end
  958. end
  959. end
  960.  
  961. Player=owner
  962. Character=Player.Character
  963. m=Instance.new('Model',Character)
  964.  
  965.  
  966. local function weldBetween(a, b)
  967. local weldd = Instance.new("ManualWeld")
  968. weldd.Part0 = a
  969. weldd.Part1 = b
  970. weldd.C0 = CFrame.new()
  971. weldd.C1 = b.CFrame:inverse() * a.CFrame
  972. weldd.Parent = a
  973. return weldd
  974. end
  975.  
  976. it=Instance.new
  977.  
  978. function nooutline(part)
  979. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  980. end
  981.  
  982. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  983. local fp=it("Part")
  984. fp.formFactor=formfactor
  985. fp.Parent=parent
  986. fp.Reflectance=reflectance
  987. fp.Transparency=transparency
  988. fp.CanCollide=false
  989. fp.Locked=true
  990. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  991. fp.Name=name
  992. fp.Size=size
  993. fp.Position=Character.Torso.Position
  994. nooutline(fp)
  995. fp.Material=material
  996. fp:BreakJoints()
  997. return fp
  998. end
  999.  
  1000. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1001. local mesh=it(Mesh)
  1002. mesh.Parent=part
  1003. if Mesh=="SpecialMesh" then
  1004. mesh.MeshType=meshtype
  1005. mesh.MeshId=meshid
  1006. end
  1007. mesh.Offset=offset
  1008. mesh.Scale=scale
  1009. return mesh
  1010. end
  1011.  
  1012. function weld(parent,part0,part1,c0,c1)
  1013. local weld=it("Weld")
  1014. weld.Parent=parent
  1015. weld.Part0=part0
  1016. weld.Part1=part1
  1017. weld.C0=c0
  1018. weld.C1=c1
  1019. return weld
  1020. end
  1021.  
  1022. Player=owner
  1023. Character=Player.Character
  1024. m=Instance.new('Model',Character)
  1025. it=Instance.new
  1026. function nooutline(part)
  1027. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1028. end
  1029. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1030. local fp=it("Part")
  1031. fp.formFactor=formfactor
  1032. fp.Parent=parent
  1033. fp.Reflectance=reflectance
  1034. fp.Transparency=transparency
  1035. fp.CanCollide=false
  1036. fp.Locked=true
  1037. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1038. fp.Name=name
  1039. fp.Size=size
  1040. fp.Position=Character.Torso.Position
  1041. nooutline(fp)
  1042. fp.Material=material
  1043. fp:BreakJoints()
  1044. return fp
  1045. end
  1046. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1047. local mesh=it(Mesh)
  1048. mesh.Parent=part
  1049. if Mesh=="SpecialMesh" then
  1050. mesh.MeshType=meshtype
  1051. mesh.MeshId=meshid
  1052. end
  1053. mesh.Offset=offset
  1054. mesh.Scale=scale
  1055. return mesh
  1056. end
  1057. function weld(parent,part0,part1,c0,c1)
  1058. local weld=it("Weld")
  1059. weld.Parent=parent
  1060. weld.Part0=part0
  1061. weld.Part1=part1
  1062. weld.C0=c0
  1063. weld.C1=c1
  1064. return weld
  1065. end
  1066.  
  1067. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.400000006, 1))
  1068. handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, -5.69614329e-008, 5.96046448e-008, 5.69614222e-008, 0.999999881, 6.38557296e-008, -5.96045986e-008, -6.38557367e-008, 1),CFrame.new(-1.0929389, -0.0714454651, 0.15032959, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915))
  1069. mesh("BlockMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1070. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.599999964, 3.20000005))
  1071. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(4.19616699e-005, -0.0100028515, 3.1000824, -0.99968493, 0.0161349382, 0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1072. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.99000001, 1, 1))
  1073. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.599999964, 5.80000019))
  1074. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-005, -0.0100257397, 4.40010071, -0.99968493, 0.0161349382, 0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1075. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.99000001, 1, 1))
  1076. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.599999964, 4.4000001))
  1077. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(4.19616699e-005, -0.0100123882, 3.70007324, -0.99968493, 0.0161349382, 0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1078. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.99000001, 1, 1))
  1079. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.399999976, 0.200000003))
  1080. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-4.57763672e-005, 1.29995728, -0.199999332, 0.99968493, -0.0161349382, -0.0192294158, 0.0186750833, -0.0338307135, 0.999253154, -0.0167734325, -0.99929744, -0.0335187353))
  1081. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1082. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1, 0.400000036))
  1083. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-1.52587891e-005, -1.73275757, 0.101932526, -0.99968493, 0.0161348786, 0.019229291, 0.0223798491, 0.225955546, 0.973880529, 0.0113684786, 0.97400409, -0.226245463))
  1084. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1085. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1086. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.28881836e-005, -1.08944702, 0.159484863, -0.99968493, 0.0161346551, 0.0192298498, 0.0245600175, 0.47034353, 0.88214159, 0.00518841529, 0.882335901, -0.470591575))
  1087. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1088. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.20000005, 0.400000036))
  1089. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.28881836e-005, -2.09999084, -0.100028276, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1090. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1091. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
  1092. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.722251892, -7.62939453e-006, -0.31111145, -0.0250595883, -0.682680428, -0.730287313, -0.999685049, 0.0161298718, 0.0192255117, -0.00134544016, 0.730539024, -0.682869613))
  1093. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1094. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1095. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(6.10351563e-005, -0.200017452, -0.40007019, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1096. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1097. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  1098. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-3.81469727e-005, -1.27485657, -1.2587204, -0.99968493, 0.0161348786, 0.0192295052, 0.00134484924, -0.730529785, 0.682879508, 0.0250659045, 0.682690203, 0.730277896))
  1099. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1100. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
  1101. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.742538452, -3.81469727e-006, 0.317245483, 0.00133255101, -0.730529666, 0.682879746, -0.99968487, 0.0161438417, 0.0192210786, -0.025065871, -0.682690144, -0.730277956))
  1102. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1103. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 1))
  1104. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0.0999779701, -1.52587891e-005, -0.999984741, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915))
  1105. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1106. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1107. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-006, 0.399978638, 0.199987411, 0.99968493, -0.0161349382, -0.0192294158, 0.0186750833, -0.0338306986, 0.999253154, -0.0167734325, -0.99929744, -0.0335187204))
  1108. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1109. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.200000003))
  1110. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-4.19616699e-005, -0.652126312, -1.27474976, -0.99968493, 0.0161349233, 0.0192295164, -0.0113684721, -0.97400403, 0.226245433, 0.0223800782, 0.225955546, 0.973880589))
  1111. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1112. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1113. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-6.86645508e-005, -1.00984955, -1.32232666, -0.99968493, 0.0161349084, 0.0192292985, -0.00518870167, -0.882332146, 0.470598638, 0.0245596915, 0.470350564, 0.882137835))
  1114. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1115. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.600000024))
  1116. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0.099998951, -3.81469727e-005, 0.800018311, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915))
  1117. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1118. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.20000005, 0.400000036))
  1119. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.67028809e-005, -1.7000885, -0.100027323, -0.99968493, 0.0161349382, 0.0192294158, 0.0186750833, -0.0338306986, 0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1120. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1121. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
  1122. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.549972773, -3.43322754e-005, 0.0100250244, -0.0167771745, -0.999297023, -0.0335265957, -0.999684811, 0.0161385052, 0.0192303304, -0.0186757445, 0.0338386595, -0.999252915))
  1123. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.99000001, 1.29999995))
  1124. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.600000024))
  1125. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-4.57763672e-005, -2.50007629, -2.67028809e-005, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1126. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1127. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1128. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-006, -0.220021248, -1.00009155, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1129. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.600000024, 1))
  1130. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1131. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(2.67028809e-005, 0.220012903, 1.8000946, 0.99968493, -0.0161349382, -0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, -0.018674951, 0.0338385589, -0.999252915))
  1132. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.600000024, 1))
  1133. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.200000003, 1))
  1134. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.28881836e-005, 1.40666962e-005, 0.200027466, -0.99968493, 0.0161349382, 0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, -0.018674951, 0.0338385589, -0.999252915))
  1135. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.5, 1))
  1136. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036))
  1137. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.0435257, -1.14440918e-005, -0.877830505, 0.00133237685, -0.730529547, 0.682879806, -0.99968493, 0.0161440708, 0.0192210656, -0.0250660162, -0.682690263, -0.730277896))
  1138. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 1.00999999, 0.600000024))
  1139. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  1140. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.67028809e-005, -1.30004883, -0.0599954128, -0.99968493, 0.0161349382, 0.0192294158, 0.0186750833, -0.0338306986, 0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1141. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1))
  1142. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036))
  1143. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0.831382751, -5.34057617e-005, -0.665687561, 0.00133237685, -0.730529547, 0.682879806, -0.99968493, 0.0161440708, 0.0192210656, -0.0250660162, -0.682690263, -0.730277896))
  1144. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 1.00999999, 0.600000024))
  1145. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1146. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(4.57763672e-005, -0.00890350342, -0.62361145, 0.99968493, -0.0161349084, -0.0192297474, 0.0113684032, 0.974003971, -0.226245522, 0.0223803017, 0.22595562, 0.97388047))
  1147. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1))
  1148. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036))
  1149. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.09603119, -7.62939453e-006, 1.2657547, 0.025060432, 0.682680309, 0.730287433, -0.999685049, 0.0161309429, 0.0192256682, 0.00134476018, -0.730539203, 0.682869554))
  1150. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 1.00999999, 0.5))
  1151. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.800000012))
  1152. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-006, 1.62124634e-005, 0.699996948, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1153. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.5, 1))
  1154. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  1155. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-3.81469727e-006, 0.5, 0.0599937439, -0.99968493, 0.0161349382, 0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, -0.0167734325, -0.99929744, -0.0335187204))
  1156. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1))
  1157. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036))
  1158. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.57408142, -3.81469727e-006, 1.09355927, 0.0245514382, 0.470343471, 0.882141948, -0.999685109, 0.0161308739, 0.0192221403, -0.00518871192, -0.88233608, 0.470591396))
  1159. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1.00999999, 0.400000006))
  1160. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036))
  1161. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.95219421, -3.05175781e-005, 0.750869751, 0.0223687999, 0.225955442, 0.973880827, -0.999685168, 0.0161325298, 0.019218497, -0.011368636, -0.97400409, 0.226245165))
  1162. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1.00999999, 0.300000012))
  1163. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  1164. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(2.67028809e-005, -0.220027447, -1.50007629, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1165. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.600000024, 1))
  1166. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  1167. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.52587891e-005, -0.109989166, 0.799972534, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1168. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1))
  1169. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1170. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.52587891e-005, 0.109987736, -0.509963989, 0.99968487, -0.0161355603, -0.0192299671, -0.0167742185, -0.999297082, -0.0335265249, -0.0186754838, 0.0338385291, -0.999252915))
  1171. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 0.899999976))
  1172. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 2, 0.600000024))
  1173. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0, -2.48002625, -0.0500152111, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1174. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.800000012, 0.800000012))
  1175. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1176. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.67028809e-005, 1.6000061, -0.109972715, 0.999684989, -0.0161343552, -0.0192295071, 0.0186751913, -0.033830747, 0.999253154, -0.0167728532, -0.99929738, -0.0335187726))
  1177. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.800000012, 0.800000012))
  1178. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Toothpaste","Hitbox",Vector3.new(0.200000003, 5.80000019, 0.400000036))
  1179. Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.0101203918, -4.37719727, -0.0721693039, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1180.  
  1181. mouse.Button1Down:connect(function()
  1182. if attack==false and attacktype==1 then
  1183. attacktype=2
  1184. attackone()
  1185. elseif attack==false and attacktype==2 then
  1186. attacktype=1
  1187. attacktwo()
  1188. end
  1189. end)
  1190. function attackone()
  1191. attack=true
  1192. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1193. for i=0,1,0.2 do
  1194. swait()
  1195. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1196. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1197. local h = 5
  1198. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1199. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1200. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1201. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1202. scfr = blcf
  1203. elseif not scfr then
  1204. scfr = blcf
  1205. end
  1206. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(-90),math.rad(-90))*angles(math.rad(90),0,math.rad(0)),.4)
  1207. end
  1208. so("http://roblox.com/asset/?id=199150686",Hitbox,1,1)
  1209. so("http://roblox.com/asset/?id=206083107",Hitbox,1,2)
  1210. for i=0,1,0.2 do
  1211. swait()
  1212. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1213. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1214. local h = 5
  1215. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1216. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1217. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1218. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1219. scfr = blcf
  1220. elseif not scfr then
  1221. scfr = blcf
  1222. end
  1223. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.4)
  1224. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(25)),.4)
  1225. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-100))*angles(math.rad(-75),0,math.rad(0)),.4)
  1226. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4)
  1227. end
  1228. attack=false
  1229. con1:disconnect()
  1230. end
  1231.  
  1232. function attacktwo()
  1233. attack=true
  1234. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1235. for i=0,1,0.2 do
  1236. swait()
  1237. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1238. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1239. local h = 5
  1240. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1241. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1242. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1243. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1244. scfr = blcf
  1245. elseif not scfr then
  1246. scfr = blcf
  1247. end
  1248. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-90))*angles(math.rad(-75),0,math.rad(0)),.4)
  1249. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4)
  1250. end
  1251. so("http://roblox.com/asset/?id=199146359",Hitbox,1,1)
  1252. so("http://roblox.com/asset/?id=206083107",Hitbox,1,1.5)
  1253. for i=0,1,1 do
  1254. swait()
  1255. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1256. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1257. local h = 5
  1258. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1259. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1260. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1261. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1262. scfr = blcf
  1263. elseif not scfr then
  1264. scfr = blcf
  1265. end
  1266. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  1267. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-45)),.4)
  1268. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(-90),math.rad(-90))*angles(math.rad(90),0,math.rad(0)),.4)
  1269. handleweld.C0=clerp(handleweld.C0,cf(0,-.5,-.5)*angles(math.rad(-35),math.rad(0),math.rad(0)),.4)
  1270. end
  1271. attack=false
  1272. con1:disconnect()
  1273. end
  1274.  
  1275. function attackthree()
  1276.  
  1277. end
  1278.  
  1279. idleanim=.4
  1280.  
  1281. while true do
  1282. swait()
  1283. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1284. local velderp=RootPart.Velocity.y
  1285. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1286. if equipped==true or equipped==false then
  1287. if attack==false then
  1288. idle=idle+1
  1289. else
  1290. idle=0
  1291. end
  1292. if idle>=500 then
  1293. if attack==false then
  1294. --Sheath()
  1295. end
  1296. end
  1297. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1298. Anim="Jump"
  1299. if attack==false then
  1300. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1301. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1302. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1303. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(105),math.rad(0)),.3)
  1304. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1305. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1306. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1307. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1308. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1309. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1310. end
  1311. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1312. Anim="Fall"
  1313. if attack==false then
  1314. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1315. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1316. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1317. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(115),math.rad(0)),.3)
  1318. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1319. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1320. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1321. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1322. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1323. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1324. end
  1325. elseif torvel<1 and hitfloor~=nil then
  1326. Anim="Idle"
  1327. if attack==false then
  1328. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-35)),.3)
  1329. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(35)),.3)
  1330. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(90),math.rad(0))*angles(math.rad(-25),math.rad(15),math.rad(0)),.3)
  1331. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),.3)
  1332. RH.C0=clerp(RH.C0,cf(1,-.75,0)*angles(math.rad(-15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(15),math.rad(0)),.3)
  1333. LH.C0=clerp(LH.C0,cf(-1,-.75,-.25)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(35),math.rad(0)),.3)
  1334. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1335. end
  1336. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1337. Anim="Walk"
  1338. if attack==false then
  1339. --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1340. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1341. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-35)),.3)
  1342. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(35)),.3)
  1343. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-55),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  1344. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-25)),.3)
  1345. --RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1346. --LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1347. RH.C0=clerp(RH.C0,cf(1,-.75,0)*angles(math.rad(-15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(15),math.rad(0)),.3)
  1348. LH.C0=clerp(LH.C0,cf(-1,-.75,-.25)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(35),math.rad(0)),.3)
  1349. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1350. end
  1351. elseif torvel>=22 and hitfloor~=nil then
  1352. Anim="Run"
  1353. if attack==false then
  1354. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1355. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1356. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1357. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1358. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1359. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1360. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1361. end
  1362. end
  1363. end
  1364. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement