Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 98.15 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = owner
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. wait(2)
  84. local p = game.Players.LocalPlayer
  85. Player = game:GetService("Players").LocalPlayer
  86. Cha = Player.Character
  87. mouse = game.Players.LocalPlayer:GetMouse()
  88. name = Player.Name
  89. me = game.Players[name]
  90. laydown = false
  91. shoot = false
  92. camo = false
  93. prop = false
  94.  
  95. Cha.Head.Transparency = 1
  96.  
  97. local new = Instance.new("Part", Player.Character)
  98. new.Name = "hed"
  99. new.formFactor = "Symmetric"
  100. new.TopSurface = "Smooth"
  101. new.BottomSurface = "Smooth"
  102. new.Transparency = 0
  103. new.FormFactor = "Custom"
  104. new.Size = Cha.Head.Size
  105. new.CFrame = Player.Character.Head.CFrame
  106. new.BrickColor = Player.Character.Head.BrickColor
  107. newmeshhh = Instance.new("SpecialMesh",new)
  108. newmeshhh.MeshType = "Head"
  109. newmeshhh.Scale = Vector3.new(1.2,1.2,1.2)
  110. weldT = Instance.new("Weld", Player.Character.Torso)
  111. weldT.Part0 = Player.Character.Head
  112. weldT.Part1 = new
  113. weldT.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  114.  
  115.  
  116. function rand(a)return (math.random()-.5)*2*a end
  117. function q(f,arg)return coroutine.resume(coroutine.create(f),unpack(arg or {}))end
  118. function fade(p,s,inc)q(function(part,start,increment)increment = increment or .05 for i=start,1,increment do part.Transparency = part.Transparency+increment wait(1/30)end end,{p,s,inc})end
  119. function appear(p,s,inc)q(function(part,start,increment)increment = increment or .05 for i=start,0,-increment do part.Transparency = part.Transparency-increment wait(1/30)end end,{p,s,inc})end
  120. function Part(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
  121. local p = Instance.new("Part",Parent)p.Name = Name
  122. p.FormFactor = "Custom"p.Size = Size
  123. p.Anchored = Anch p.CFrame = CFrame
  124. p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
  125. p.TopSurface = 0 p.CanCollide = Can
  126. p.BottomSurface = 0 p.Material = Mat
  127. p.Reflectance = Ref or 0;p:BreakJoints()
  128. p.Locked = true;return p
  129. end
  130. function WedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
  131. local p = Instance.new("WedgePart",Parent)p.Name = Name
  132. p.FormFactor = "Custom"p.Size = Size
  133. p.Anchored = Anch p.CFrame = CFrame
  134. p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
  135. p.TopSurface = 0 p.CanCollide = Can
  136. p.BottomSurface = 0 p.Material = Mat
  137. p.Reflectance = Ref or 0;p:BreakJoints()
  138. p.Locked = true;return p
  139. end
  140. function CornerWedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
  141. local p = Instance.new("CornerWedgePart",Parent)p.Name = Name;p.Size = Size
  142. p.Anchored = Anch p.CFrame = CFrame
  143. p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
  144. p.TopSurface = 0 p.CanCollide = Can
  145. p.BottomSurface = 0 p.Material = Mat
  146. p.Reflectance = Ref or 0;p:BreakJoints()
  147. p.Locked = true;return p
  148. end
  149. function Mesh(Parent,Type,Scale,ID,TID)
  150. local m = Instance.new("SpecialMesh",Parent)m.MeshType = Type
  151. m.Scale = Scale or Vector3.new(1,1,1)
  152. if ID then m.MeshId = ID end if TID then m.TextureId = TID end
  153. return m
  154. end
  155. function Weld(p1,p2,c0,c1)
  156. local w = Instance.new("Weld",p1)w.Part0 = p1;w.Part1 = p2
  157. w.C0,w.C1 = c0 or CFrame.new(),c1 or CFrame.new()
  158. return w
  159. end
  160. function cslerp(start,destination,increment)
  161. local function s(a,b,c)return (1-c)*a+(c*b)end
  162. local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
  163. local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
  164. for i,v in pairs(c1)do c1[i] = s(v,c2[i],increment)end
  165. return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
  166. end
  167. local char
  168. function rayCast(pos,dir,collidedlist,startpos,endpos,distleft)
  169. collidedlist = collidedlist
  170. startpos = startpos or pos
  171. distleft = distleft or dir.unit * dir.magnitude
  172. endpos = endpos or pos + distleft
  173. local ray = Ray.new(pos,distleft)
  174. local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray,collidedlist)
  175. if hitz~=nil then
  176. if hitz.CanCollide==false then
  177. table.insert(collidedlist,hitz)
  178. local newpos = enz
  179. local newdistleft = distleft-(dir.unit*(pos-newpos).magnitude)
  180. if newdistleft~=Vector3.new()then
  181. return rayCast(newpos-(dir*0.01),dir,collidedlist,startpos,endpos,newdistleft+(dir*0.01))
  182. end
  183. end
  184. end
  185. return hitz,enz,ray
  186. end
  187. function findSurface(part,position)
  188. local obj = part.CFrame:pointToObjectSpace(position)
  189. local siz = part.Size/2
  190. for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  191. local vec = Vector3.FromNormalId(v)
  192. local wvec = part.CFrame:vectorToWorldSpace(vec)
  193. local vz = (obj)/(siz*vec)
  194. if (math.abs(vz.X-1)<0.01 or math.abs(vz.Y-1)<0.01 or math.abs(vz.Z-1)<0.01) then
  195. return wvec,vec
  196. end
  197. end
  198. end
  199. ----------------
  200. Player=game:GetService("Players").LocalPlayer
  201. Character=Player.Character
  202. Cha=Character
  203. PlayerGui=Player.PlayerGui
  204. Backpack=Player.Backpack
  205. Torso=Character.Torso
  206. Head=Character.Head
  207. Humanoid=Character.Humanoid
  208. m=Instance.new('Model',Character)
  209. LeftArm=Character["Left Arm"]
  210. LeftLeg=Character["Left Leg"]
  211. RightArm=Character["Right Arm"]
  212. RightLeg=Character["Right Leg"]
  213. LS=Torso["Left Shoulder"]
  214. LH=Torso["Left Hip"]
  215. RS=Torso["Right Shoulder"]
  216. RH=Torso["Right Hip"]
  217. Face = Head.face
  218. Neck=Torso.Neck
  219. it=Instance.new
  220. attacktype=1
  221. vt=Vector3.new
  222. cf=CFrame.new
  223. euler=CFrame.fromEulerAnglesXYZ
  224. angles=CFrame.Angles
  225. cloaked=false
  226. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  227. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  228. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  229. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  230. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  231. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  232. RootPart=Character.HumanoidRootPart
  233. RootJoint=RootPart.RootJoint
  234. RootCF=euler(-1.57,0,3.14)
  235. attack = false
  236. attackdebounce = false
  237. deb=false
  238. equipped=true
  239. hand=false
  240. MMouse=nil
  241. combo=0
  242. mana=0
  243. trispeed=.2
  244. attackmode='none'
  245. local idle=0
  246. local Anim="Idle"
  247. local Effects={}
  248. local gun=false
  249. local shoot=false
  250. player=nil
  251. mana=0
  252. Attacking=false
  253. asset = "http://www.roblox.com/asset/?id="
  254. meshes = {["blast"] = 20329976,["ring"] = 3270017,["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["cloud"] = 1095708,["diamond"] = 9756362}
  255.  
  256.  
  257. mouse=Player:GetMouse()
  258. --save shoulders
  259. RSH, LSH=nil, nil
  260. --welds
  261. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  262. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  263. LH=Torso["Left Hip"]
  264. RH=Torso["Right Hip"]
  265. TorsoColor=Torso.BrickColor
  266. function NoOutline(Part)
  267. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  268. end
  269. player=Player
  270. ch=Character
  271. RSH=ch.Torso["Right Shoulder"]
  272. LSH=ch.Torso["Left Shoulder"]
  273. --
  274. --RSH.Parent=nil
  275. --LSH.Parent=nil
  276. --
  277. RW.Name="Right Shoulder"
  278. RW.Part0=ch.Torso
  279. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  280. RW.C1=cf(0, 0.5, 0)
  281. RW.Part1=ch["Right Arm"]
  282. RW.Parent=ch.Torso
  283. --
  284. LW.Name="Left Shoulder"
  285. LW.Part0=ch.Torso
  286. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  287. LW.C1=cf(0, 0.5, 0)
  288. LW.Part1=ch["Left Arm"]
  289. LW.Parent=ch.Torso
  290.  
  291. Player=game:GetService('Players').LocalPlayer
  292. Character=Player.Character
  293. Mouse=Player:GetMouse()
  294. m=Instance.new('Model',Character)
  295.  
  296.  
  297. local function weldBetween(a, b)
  298. local weldd = Instance.new("ManualWeld")
  299. weldd.Part0 = a
  300. weldd.Part1 = b
  301. weldd.C0 = CFrame.new()
  302. weldd.C1 = b.CFrame:inverse() * a.CFrame
  303. weldd.Parent = a
  304. return weldd
  305. end
  306.  
  307. it=Instance.new
  308.  
  309. function nooutline(part)
  310. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  311. end
  312.  
  313. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  314. local fp=it("Part")
  315. fp.formFactor=formfactor
  316. fp.Parent=parent
  317. fp.Reflectance=reflectance
  318. fp.Transparency=transparency
  319. fp.CanCollide=false
  320. fp.Locked=true
  321. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  322. fp.Name=name
  323. fp.Size=size
  324. fp.Position=Character.Torso.Position
  325. nooutline(fp)
  326. fp.Material=material
  327. fp:BreakJoints()
  328. return fp
  329. end
  330.  
  331. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  332. local mesh=it(Mesh)
  333. mesh.Parent=part
  334. if Mesh=="SpecialMesh" then
  335. mesh.MeshType=meshtype
  336. mesh.MeshId=meshid
  337. end
  338. mesh.Offset=offset
  339. mesh.Scale=scale
  340. return mesh
  341. end
  342.  
  343. function weld(parent,part0,part1,c0,c1)
  344. local weld=it("Weld")
  345. weld.Parent=parent
  346. weld.Part0=part0
  347. weld.Part1=part1
  348. weld.C0=c0
  349. weld.C1=c1
  350. return weld
  351. end
  352.  
  353.  
  354. Player=game:GetService('Players').LocalPlayer
  355. Character=Player.Character
  356. Mouse=Player:GetMouse()
  357. m=Instance.new('Model',Character)
  358.  
  359.  
  360. local function weldBetween(a, b)
  361. local weldd = Instance.new("ManualWeld")
  362. weldd.Part0 = a
  363. weldd.Part1 = b
  364. weldd.C0 = CFrame.new()
  365. weldd.C1 = b.CFrame:inverse() * a.CFrame
  366. weldd.Parent = a
  367. return weldd
  368. end
  369.  
  370. it=Instance.new
  371.  
  372. function nooutline(part)
  373. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  374. end
  375.  
  376. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  377. local fp=it("Part")
  378. fp.formFactor=formfactor
  379. fp.Parent=parent
  380. fp.Reflectance=reflectance
  381. fp.Transparency=transparency
  382. fp.CanCollide=false
  383. fp.Locked=true
  384. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  385. fp.Name=name
  386. fp.Size=size
  387. fp.Position=Character.Torso.Position
  388. nooutline(fp)
  389. fp.Material=material
  390. fp:BreakJoints()
  391. return fp
  392. end
  393.  
  394. function swait(num)
  395. if num==0 or num==nil then
  396. game:service'RunService'.Stepped:wait(0)
  397. else
  398. for i=0,num do
  399. game:service'RunService'.Stepped:wait(0)
  400. end
  401. end
  402. end
  403.  
  404. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  405. local mesh=it(Mesh)
  406. mesh.Parent=part
  407. if Mesh=="SpecialMesh" then
  408. mesh.MeshType=meshtype
  409. mesh.MeshId=meshid
  410. end
  411. mesh.Offset=offset
  412. mesh.Scale=scale
  413. return mesh
  414. end
  415.  
  416. function weld(parent,part0,part1,c0,c1)
  417. local weld=it("Weld")
  418. weld.Parent=parent
  419. weld.Part0=part0
  420. weld.Part1=part1
  421. weld.C0=c0
  422. weld.C1=c1
  423. return weld
  424. end
  425.  
  426.  
  427. local function CFrameFromTopBack(at, top, back)
  428. local right = top:Cross(back)
  429. return CFrame.new(at.x, at.y, at.z,
  430. right.x, top.x, back.x,
  431. right.y, top.y, back.y,
  432. right.z, top.z, back.z)
  433. end
  434.  
  435. function Triangle(a, b, c)
  436. local edg1 = (c-a):Dot((b-a).unit)
  437. local edg2 = (a-b):Dot((c-b).unit)
  438. local edg3 = (b-c):Dot((a-c).unit)
  439. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  440. a, b, c = a, b, c
  441. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  442. a, b, c = b, c, a
  443. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  444. a, b, c = c, a, b
  445. else
  446. assert(false, "unreachable")
  447. end
  448.  
  449. local len1 = (c-a):Dot((b-a).unit)
  450. local len2 = (b-a).magnitude - len1
  451. local width = (a + (b-a).unit*len1 - c).magnitude
  452.  
  453. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  454.  
  455. local list = {}
  456.  
  457. local Color = BrickColor.new("Really black")
  458.  
  459. if len1 > 0.01 then
  460. local w1 = Instance.new('WedgePart', m)
  461. game:GetService("Debris"):AddItem(w1,5)
  462. w1.Material = "SmoothPlastic"
  463. w1.FormFactor = 'Custom'
  464. w1.BrickColor = Color
  465. w1.Transparency = 0
  466. w1.Reflectance = 0
  467. w1.Material = "SmoothPlastic"
  468. w1.CanCollide = false
  469. NoOutline(w1)
  470. local sz = Vector3.new(0.2, width, len1)
  471. w1.Size = sz
  472. local sp = Instance.new("SpecialMesh",w1)
  473. sp.MeshType = "Wedge"
  474. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  475. w1:BreakJoints()
  476. w1.Anchored = false
  477. w1.Parent = workspace
  478. w1.Transparency = 0.7
  479. table.insert(Effects,{w1,"Disappear",.01})
  480. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  481. table.insert(list,w1)
  482. end
  483.  
  484. if len2 > 0.01 then
  485. local w2 = Instance.new('WedgePart', m)
  486. game:GetService("Debris"):AddItem(w2,5)
  487. w2.Material = "SmoothPlastic"
  488. w2.FormFactor = 'Custom'
  489. w2.BrickColor = Color
  490. w2.Transparency = 0
  491. w2.Reflectance = 0
  492. w2.Material = "SmoothPlastic"
  493. w2.CanCollide = false
  494. NoOutline(w2)
  495. local sz = Vector3.new(0.2, width, len2)
  496. w2.Size = sz
  497. local sp = Instance.new("SpecialMesh",w2)
  498. sp.MeshType = "Wedge"
  499. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  500. w2:BreakJoints()
  501. w2.Anchored = false
  502. w2.Parent = workspace
  503. w2.Transparency = 0.7
  504. table.insert(Effects,{w2,"Disappear",.01})
  505. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  506. table.insert(list,w2)
  507. end
  508. return unpack(list)
  509. end
  510.  
  511.  
  512. so = function(id,par,vol,pit)
  513. coroutine.resume(coroutine.create(function()
  514. local sou = Instance.new("Sound",par or workspace)
  515. sou.Volume=vol
  516. sou.Pitch=pit or 1
  517. sou.SoundId=id
  518. swait()
  519. sou:play()
  520. game:GetService("Debris"):AddItem(sou,6)
  521. end))
  522. end
  523.  
  524. function clerp(a,b,t)
  525. local qa = {QuaternionFromCFrame(a)}
  526. local qb = {QuaternionFromCFrame(b)}
  527. local ax, ay, az = a.x, a.y, a.z
  528. local bx, by, bz = b.x, b.y, b.z
  529. local _t = 1-t
  530. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  531. end
  532.  
  533. function QuaternionFromCFrame(cf)
  534. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  535. local trace = m00 + m11 + m22
  536. if trace > 0 then
  537. local s = math.sqrt(1 + trace)
  538. local recip = 0.5/s
  539. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  540. else
  541. local i = 0
  542. if m11 > m00 then
  543. i = 1
  544. end
  545. if m22 > (i == 0 and m00 or m11) then
  546. i = 2
  547. end
  548. if i == 0 then
  549. local s = math.sqrt(m00-m11-m22+1)
  550. local recip = 0.5/s
  551. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  552. elseif i == 1 then
  553. local s = math.sqrt(m11-m22-m00+1)
  554. local recip = 0.5/s
  555. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  556. elseif i == 2 then
  557. local s = math.sqrt(m22-m00-m11+1)
  558. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  559. end
  560. end
  561. end
  562.  
  563. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  564. local xs, ys, zs = x + x, y + y, z + z
  565. local wx, wy, wz = w*xs, w*ys, w*zs
  566. local xx = x*xs
  567. local xy = x*ys
  568. local xz = x*zs
  569. local yy = y*ys
  570. local yz = y*zs
  571. local zz = z*zs
  572. 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))
  573. end
  574.  
  575. function QuaternionSlerp(a, b, t)
  576. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  577. local startInterp, finishInterp;
  578. if cosTheta >= 0.0001 then
  579. if (1 - cosTheta) > 0.0001 then
  580. local theta = math.acos(cosTheta)
  581. local invSinTheta = 1/math.sin(theta)
  582. startInterp = math.sin((1-t)*theta)*invSinTheta
  583. finishInterp = math.sin(t*theta)*invSinTheta
  584. else
  585. startInterp = 1-t
  586. finishInterp = t
  587. end
  588. else
  589. if (1+cosTheta) > 0.0001 then
  590. local theta = math.acos(-cosTheta)
  591. local invSinTheta = 1/math.sin(theta)
  592. startInterp = math.sin((t-1)*theta)*invSinTheta
  593. finishInterp = math.sin(t*theta)*invSinTheta
  594. else
  595. startInterp = t-1
  596. finishInterp = t
  597. end
  598. end
  599. 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
  600. end
  601.  
  602. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  603. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  604. end
  605.  
  606. local function CFrameFromTopBack(at, top, back)
  607. local right = top:Cross(back)
  608. return CFrame.new(at.x, at.y, at.z,
  609. right.x, top.x, back.x,
  610. right.y, top.y, back.y,
  611. right.z, top.z, back.z)
  612. end
  613.  
  614. function Triangle(a, b, c)
  615. local edg1 = (c-a):Dot((b-a).unit)
  616. local edg2 = (a-b):Dot((c-b).unit)
  617. local edg3 = (b-c):Dot((a-c).unit)
  618. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  619. a, b, c = a, b, c
  620. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  621. a, b, c = b, c, a
  622. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  623. a, b, c = c, a, b
  624. else
  625. assert(false, "unreachable")
  626. end
  627.  
  628. local len1 = (c-a):Dot((b-a).unit)
  629. local len2 = (b-a).magnitude - len1
  630. local width = (a + (b-a).unit*len1 - c).magnitude
  631.  
  632. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  633.  
  634. local list = {}
  635.  
  636. if len1 > 0.01 then
  637. local w1 = Instance.new('WedgePart', m)
  638. game:GetService("Debris"):AddItem(w1,5)
  639. w1.Material = "SmoothPlastic"
  640. w1.FormFactor = 'Custom'
  641. w1.BrickColor = BrickColor.new("Really black")
  642. w1.Transparency = 0
  643. w1.Reflectance = 0
  644. w1.Material = "SmoothPlastic"
  645. w1.CanCollide = false
  646. NoOutline(w1)
  647. local sz = Vector3.new(0.2, width, len1)
  648. w1.Size = sz
  649. local sp = Instance.new("SpecialMesh",w1)
  650. sp.MeshType = "Wedge"
  651. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  652. w1:BreakJoints()
  653. w1.Anchored = false
  654. w1.Parent = workspace
  655. w1.Transparency = 0.7
  656. table.insert(Effects,{w1,"Disappear",.01})
  657. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  658. table.insert(list,w1)
  659. end
  660.  
  661. if len2 > 0.01 then
  662. local w2 = Instance.new('WedgePart', m)
  663. game:GetService("Debris"):AddItem(w2,5)
  664. w2.Material = "SmoothPlastic"
  665. w2.FormFactor = 'Custom'
  666. w2.BrickColor = BrickColor.new("Really black")
  667. w2.Transparency = 0
  668. w2.Reflectance = 0
  669. w2.Material = "SmoothPlastic"
  670. w2.CanCollide = false
  671. NoOutline(w2)
  672. local sz = Vector3.new(0.2, width, len2)
  673. w2.Size = sz
  674. local sp = Instance.new("SpecialMesh",w2)
  675. sp.MeshType = "Wedge"
  676. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  677. w2:BreakJoints()
  678. w2.Anchored = false
  679. w2.Parent = workspace
  680. w2.Transparency = 0.7
  681. table.insert(Effects,{w2,"Disappear",.01})
  682. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  683. table.insert(list,w2)
  684. end
  685. return unpack(list)
  686. end
  687.  
  688. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  689. if hit.Parent==nil then
  690. return
  691. end
  692. h=hit.Parent:FindFirstChild("Humanoid")
  693. for _,v in pairs(hit.Parent:children()) do
  694. if v:IsA("Humanoid") then
  695. h=v
  696. end
  697. end
  698. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  699. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  700. end
  701. if hit.Parent.className=="Hat" then
  702. hit=hit.Parent.Parent:findFirstChild("Head")
  703. end
  704. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  705. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  706. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  707. return
  708. end]]
  709. -- hs(hit,1.2)
  710. c=Instance.new("ObjectValue")
  711. c.Name="creator"
  712. c.Value=game:service("Players").LocalPlayer
  713. c.Parent=h
  714. game:GetService("Debris"):AddItem(c,.5)
  715. Damage=math.random(minim,maxim)
  716. -- h:TakeDamage(Damage)
  717. blocked=false
  718. block=hit.Parent:findFirstChild("Block")
  719. if block~=nil then
  720. print(block.className)
  721. if block.className=="NumberValue" then
  722. if block.Value>0 then
  723. blocked=true
  724. if decreaseblock==nil then
  725. block.Value=block.Value-1
  726. end
  727. end
  728. end
  729. if block.className=="IntValue" then
  730. if block.Value>0 then
  731. blocked=true
  732. if decreaseblock~=nil then
  733. block.Value=block.Value-1
  734. end
  735. end
  736. end
  737. end
  738. if blocked==false then
  739. -- h:TakeDamage(Damage)
  740. h.Health=h.Health-Damage
  741. showDamage(hit.Parent,Damage,.5,BrickColor.new("Dark stone grey"))
  742. else
  743. h.Health=h.Health-(Damage/2)
  744. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  745. end
  746. if Type=="Knockdown" then
  747. hum=hit.Parent.Humanoid
  748. hum.PlatformStand=true
  749. coroutine.resume(coroutine.create(function(HHumanoid)
  750. swait(1)
  751. HHumanoid.PlatformStand=false
  752. end),hum)
  753. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  754. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  755. local bodvol=Instance.new("BodyVelocity")
  756. bodvol.velocity=angle*knockback
  757. bodvol.P=5000
  758. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  759. bodvol.Parent=hit
  760. rl=Instance.new("BodyAngularVelocity")
  761. rl.P=3000
  762. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  763. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  764. rl.Parent=hit
  765. game:GetService("Debris"):AddItem(bodvol,.5)
  766. game:GetService("Debris"):AddItem(rl,.5)
  767. elseif Type=="Normal" then
  768. vp=Instance.new("BodyVelocity")
  769. vp.P=500
  770. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  771. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  772. if KnockbackType==1 then
  773. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  774. elseif KnockbackType==2 then
  775. vp.velocity=Property.CFrame.lookVector*knockback
  776. end
  777. if knockback>0 then
  778. vp.Parent=hit.Parent.Torso
  779. end
  780. game:GetService("Debris"):AddItem(vp,.5)
  781. elseif Type=="Up" then
  782. local bodyVelocity=Instance.new("BodyVelocity")
  783. bodyVelocity.velocity=vt(0,60,0)
  784. bodyVelocity.P=5000
  785. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  786. bodyVelocity.Parent=hit
  787. game:GetService("Debris"):AddItem(bodyVelocity,1)
  788. rl=Instance.new("BodyAngularVelocity")
  789. rl.P=3000
  790. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  791. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  792. rl.Parent=hit
  793. game:GetService("Debris"):AddItem(rl,.5)
  794. elseif Type=="Snare" then
  795. bp=Instance.new("BodyPosition")
  796. bp.P=2000
  797. bp.D=100
  798. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  799. bp.position=hit.Parent.Torso.Position
  800. bp.Parent=hit.Parent.Torso
  801. game:GetService("Debris"):AddItem(bp,1)
  802. elseif Type=="Target" then
  803. if Targetting==false then
  804. ZTarget=hit.Parent.Torso
  805. coroutine.resume(coroutine.create(function(Part)
  806. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  807. swait(5)
  808. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  809. end),ZTarget)
  810. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  811. targetgui=Instance.new("BillboardGui")
  812. targetgui.Parent=ZTarget
  813. targetgui.Size=UDim2.new(10,100,10,100)
  814. targ=Instance.new("ImageLabel")
  815. targ.Parent=targetgui
  816. targ.BackgroundTransparency=1
  817. targ.Image="rbxassetid://4834067"
  818. targ.Size=UDim2.new(1,0,1,0)
  819. cam.CameraType="Scriptable"
  820. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  821. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  822. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  823. Targetting=true
  824. RocketTarget=ZTarget
  825. for i=1,Property do
  826. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  827. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  828. swait()
  829. end
  830. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  831. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  832. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  833. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  834. end
  835. Targetting=false
  836. RocketTarget=nil
  837. targetgui.Parent=nil
  838. cam.CameraType="Custom"
  839. end
  840. end
  841. debounce=Instance.new("BoolValue")
  842. debounce.Name="DebounceHit"
  843. debounce.Parent=hit.Parent
  844. debounce.Value=true
  845. game:GetService("Debris"):AddItem(debounce,Delay)
  846. c=Instance.new("ObjectValue")
  847. c.Name="creator"
  848. c.Value=Player
  849. c.Parent=h
  850. game:GetService("Debris"):AddItem(c,.5)
  851. CRIT=false
  852. hitDeb=true
  853. AttackPos=6
  854. end
  855. end
  856.  
  857. showDamage=function(Char,Dealt,du,Color)
  858. m=Instance.new("Model")
  859. m.Name=tostring(Dealt)
  860. h=Instance.new("Humanoid")
  861. h.Health=0
  862. h.MaxHealth=0
  863. h.Parent=m
  864. c=Instance.new("Part")
  865. c.Transparency=0
  866. c.BrickColor=Color
  867. c.Name="Head"
  868. c.TopSurface=0
  869. c.BottomSurface=0
  870. c.formFactor="Plate"
  871. c.Size=Vector3.new(1,.4,1)
  872. ms=Instance.new("CylinderMesh")
  873. ms.Scale=Vector3.new(.8,.8,.8)
  874. if CRIT==true then
  875. ms.Scale=Vector3.new(1,1.25,1)
  876. end
  877. ms.Parent=c
  878. c.Reflectance=0
  879. Instance.new("BodyGyro").Parent=c
  880. c.Parent=m
  881. if Char:findFirstChild("Head")~=nil then
  882. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  883. elseif Char.Parent:findFirstChild("Head")~=nil then
  884. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  885. end
  886. f=Instance.new("BodyPosition")
  887. f.P=2000
  888. f.D=100
  889. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  890. f.position=c.Position+Vector3.new(0,3,0)
  891. f.Parent=c
  892. game:GetService("Debris"):AddItem(m,.5+du)
  893. c.CanCollide=false
  894. m.Parent=workspace
  895. c.CanCollide=false
  896. end
  897. function Smoke(origin,color)
  898. local p = Part("Effect",workspace,Vector3.new(2,2,2),origin*CFrame.new(rand(5),-1,rand(5)),color or "Black",.1,false,false,"SmoothPlastic")
  899. local m = Mesh(p,"Sphere",Vector3.new(1.25,1.25,1.25))
  900. local bp = Instance.new("BodyPosition",p)bp.D = 100 bp.P = 100 bp.position = p.Position+Vector3.new(0,7,0)
  901. q(function(pa,me)
  902. fade(pa,.1)
  903. for i=25,100 do
  904. me.Scale = me.Scale+Vector3.new(0.15,0.1,0.15)
  905. wait(1/30)
  906. end
  907. pa:Destroy()
  908. end,{p,m})
  909. end
  910. function brickMagic(origin,color,size)
  911. local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,.2,true,false,"SmoothPlastic")
  912. local m = Mesh(p,"Brick")
  913. q(function(pa,me)
  914. fade(pa,.2)
  915. for i=20,100 do
  916. me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05)
  917. wait(1/30)
  918. end
  919. pa:Destroy()
  920. end,{p,m})
  921. end
  922. function spikeMagic(origin,size,color)
  923. local p = Part("Effect",workspace,Vector3.new(1,1,1),origin*CFrame.new(0,-size,0),color,1,true,false,"SmoothPlastic")
  924. local m = Mesh(p,"FileMesh",Vector3.new(size/2,size*2,size/2),asset..meshes["spike"])
  925. q(function(pa,me)
  926. appear(pa,1)
  927. for i=1,size,.5 do
  928. wait(1/30)
  929. pa.CFrame = pa.CFrame*CFrame.new(0,.5,0)
  930. end
  931. wait(math.random(2,3))fade(pa,0)
  932. Delay(3,function()pa:Destroy()end)
  933. end,{p,m})
  934. end
  935. function placePart(origin,size,color,material)
  936. local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material)
  937. local m = Mesh(p,"Brick")
  938. q(function(pa,me)
  939. wait(5)
  940. fade(pa,0)
  941. Delay(1.25,function()pa:Destroy()end)
  942. end,{p,m})
  943. end
  944. function placePartRandSize(origin,min,max,color,material)
  945. local p = Part("Effect",workspace,Vector3.new(math.random(min,max),math.random(min,max),math.random(min,max)),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material)
  946. local m = Mesh(p,"Brick")
  947. q(function(pa,me)
  948. wait(5)
  949. fade(pa,0)
  950. Delay(1.25,function()pa:Destroy()end)
  951. end,{p,m})
  952. end
  953. function crater(origin,dist)
  954. local b = workspace.Base
  955. local bc = b and tostring(b.BrickColor) or "Bright green"
  956. local m = b and b.Material or "Grass"
  957. for i=0,360,30 do
  958. local cf = origin*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,dist)*CFrame.Angles(math.rad(i/30),0,rand(5))
  959. placePartRandSize(cf,5,15,bc,m)
  960. end
  961. end
  962. function cylinderExplode(origin,color,size,ysize)
  963. local p = Part("Effect",workspace,Vector3.new(size,ysize or size,size),origin,color,.2,true,false,"SmoothPlastic")
  964. local m = Instance.new("CylinderMesh",p)
  965. q(function(pa,me)
  966. for i=.2,1,.0075 do
  967. me.Scale = me.Scale+Vector3.new(.1,0,.1)
  968. pa.Transparency = i
  969. wait(1/30)
  970. end
  971. pa:Destroy()
  972. end,{p,m})
  973. end
  974. function ringExplode(origin,color,size)
  975. local p = Part("Effect",workspace,Vector3.new(1,1,1),origin,color,.2,true,false,"SmoothPlastic")
  976. local m = Mesh(p,"FileMesh",Vector3.new(size,size,1),asset..meshes["ring"])
  977. q(function(pa,me)
  978. for i=.2,1,.0075 do
  979. me.Scale = me.Scale+Vector3.new(0.25,0.25,0)
  980. pa.Transparency = i
  981. wait(1/30)
  982. end
  983. pa:Destroy()
  984. end,{p,m})
  985. end
  986. function crownExplode(origin,color,size)
  987. local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,.2,true,false,"SmoothPlastic")
  988. local m = Mesh(p,"FileMesh",Vector3.new(size/2,size/2,size/2),asset..meshes["crown"])
  989. q(function(pa,me)
  990. for i=.2,1,.025 do
  991. me.Scale = me.Scale+Vector3.new(0.75,0.75,0.75)
  992. pa.Transparency = i
  993. wait(1/30)
  994. end
  995. pa:Destroy()
  996. end,{p,m})
  997. end
  998. function glitter(origin,color)
  999. local p = Part("Effect",workspace,Vector3.new(0.75,0.75,0.75),origin*CFrame.new(rand(5),rand(5),rand(5))*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,false,"SmoothPlastic")
  1000. local m = Mesh(p,"Brick",Vector3.new(1,1,1))
  1001. q(function(pa,me)
  1002. fade(pa,0)
  1003. for i=0,1,.05 do
  1004. me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05)
  1005. wait(1/30)
  1006. end
  1007. pa:Destroy()
  1008. end,{p,m})
  1009. end
  1010. function sphereExtend(origin,color,size)
  1011. local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,0,true,false,"SmoothPlastic")
  1012. local m = Mesh(p,"Sphere")
  1013. q(function(pa,me)
  1014. for i=0,1,0.05 do
  1015. me.Scale = me.Scale+Vector3.new(0,i*10,0)
  1016. pa.Transparency = i
  1017. wait(1/30)
  1018. end
  1019. pa:Destroy()
  1020. end,{p,m})
  1021. end
  1022. function quickSound(id,v)
  1023. local s = Instance.new("Sound",workspace)
  1024. s.SoundId = id
  1025. s.PlayOnRemove = true
  1026. s.Volume = v or 1
  1027. delay(0.025,function()s:remove()end)
  1028. end
  1029. function checkDmgArea(origin,dmg,d)
  1030. for i,v in pairs(workspace:children())do
  1031. if v~=char and v:FindFirstChild("Torso") then
  1032. local h;
  1033. for _,k in pairs(v:children())do if k:IsA("Humanoid") then h = k end end
  1034. local dist = (origin.p - v:FindFirstChild("Torso").CFrame.p).magnitude
  1035. if dist < d and h~=nil then
  1036. h.Health = h.Health - dmg
  1037. end
  1038. end
  1039. end
  1040. end
  1041.  
  1042.  
  1043.  
  1044. p1 = Instance.new("Part", Cha)
  1045. p1.BrickColor = BrickColor.new("Really black")
  1046. p1.FormFactor = Enum.FormFactor.Custom
  1047. p1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1048. p1.CFrame = CFrame.new(-0.0500000007, 10.3249998, 8.20000172, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1049. p1.Anchored = false
  1050. p1.CanCollide = false
  1051. p1.BottomSurface = Enum.SurfaceType.Smooth
  1052. p1.TopSurface = Enum.SurfaceType.Smooth
  1053. b1 = Instance.new("SpecialMesh", p1)
  1054. b1.MeshType = Enum.MeshType.Brick
  1055. b1.Name = "Mesh"
  1056. b1.Scale = Vector3.new(0.50000006, 0.75, 0.50000006)
  1057. p2 = Instance.new("Part", Cha)
  1058. p2.BrickColor = BrickColor.new("Really black")
  1059. p2.FormFactor = Enum.FormFactor.Custom
  1060. p2.Size = Vector3.new(0.200000003, 0.200000003, 2)
  1061. p2.CFrame = CFrame.new(-0.0500000007, 10.3249998, 12.4000015, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
  1062. p2.Anchored = false
  1063. p2.CanCollide = false
  1064. p2.BottomSurface = Enum.SurfaceType.Smooth
  1065. p2.TopSurface = Enum.SurfaceType.Smooth
  1066. b2 = Instance.new("SpecialMesh", p2)
  1067. b2.MeshType = Enum.MeshType.Brick
  1068. b2.Name = "Mesh"
  1069. b2.Scale = Vector3.new(0.99999994, 0.750000238, 1)
  1070. p3 = Instance.new("Part", Cha)
  1071. p3.BrickColor = BrickColor.new("Really black")
  1072. p3.FormFactor = Enum.FormFactor.Custom
  1073. p3.Size = Vector3.new(0.200000003, 0.200000003, 0.50000006)
  1074. p3.CFrame = CFrame.new(-0.0500000007, 10.4749994, 11.8000002, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
  1075. p3.Anchored = false
  1076. p3.CanCollide = false
  1077. p3.BottomSurface = Enum.SurfaceType.Smooth
  1078. p3.TopSurface = Enum.SurfaceType.Smooth
  1079. b3 = Instance.new("SpecialMesh", p3)
  1080. b3.MeshType = Enum.MeshType.Brick
  1081. b3.Name = "Mesh"
  1082. b3.Scale = Vector3.new(0.99999994, 0.750000298, 1)
  1083. p4 = Instance.new("Part", Cha)
  1084. p4.BrickColor = BrickColor.new("Really black")
  1085. p4.FormFactor = Enum.FormFactor.Custom
  1086. p4.Size = Vector3.new(0.200000003, 0.200000003, 3.40000033)
  1087. p4.CFrame = CFrame.new(-0.0500000007, 10.1999998, 12.0000019, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
  1088. p4.Anchored = false
  1089. p4.CanCollide = false
  1090. p4.BottomSurface = Enum.SurfaceType.Smooth
  1091. p4.TopSurface = Enum.SurfaceType.Smooth
  1092. b4 = Instance.new("SpecialMesh", p4)
  1093. b4.MeshType = Enum.MeshType.Brick
  1094. b4.Name = "Mesh"
  1095. b4.Scale = Vector3.new(0.99999994, 0.500000179, 1)
  1096. p5 = Instance.new("Part", Cha)
  1097. p5.BrickColor = BrickColor.new("Really black")
  1098. p5.FormFactor = Enum.FormFactor.Custom
  1099. p5.Size = Vector3.new(0.25, 0.200000003, 0.200000003)
  1100. p5.CFrame = CFrame.new(-0.0500000007, 10.5249987, 11.9500017, 1, 1.50995803e-007, 0, -1.50995803e-007, 1, -6.60023616e-015, 0, 6.60023616e-015, 1)
  1101. p5.Anchored = false
  1102. p5.CanCollide = false
  1103. p5.BottomSurface = Enum.SurfaceType.Smooth
  1104. p5.TopSurface = Enum.SurfaceType.Smooth
  1105. b5 = Instance.new("SpecialMesh", p5)
  1106. b5.MeshType = Enum.MeshType.Cylinder
  1107. b5.Name = "Mesh"
  1108. b5.Scale = Vector3.new(1, 0.875, 0.875)
  1109. p6 = Instance.new("Part", Cha)
  1110. p6.BrickColor = BrickColor.new("Really black")
  1111. p6.FormFactor = Enum.FormFactor.Custom
  1112. p6.Size = Vector3.new(1.45000005, 0.200000003, 0.200000003)
  1113. p6.CFrame = CFrame.new(-0.0500000231, 10.2249994, 7.57500076, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1114. p6.Anchored = false
  1115. p6.CanCollide = false
  1116. p6.BottomSurface = Enum.SurfaceType.Smooth
  1117. p6.TopSurface = Enum.SurfaceType.Smooth
  1118. b6 = Instance.new("SpecialMesh", p6)
  1119. b6.MeshType = Enum.MeshType.Cylinder
  1120. b6.Name = "Mesh"
  1121. b6.Scale = Vector3.new(1, 0.5, 0.5)
  1122. p7 = Instance.new("Part", Cha)
  1123. p7.BrickColor = BrickColor.new("Pastel brown")
  1124. p7.Transparency = 1
  1125. p7.FormFactor = Enum.FormFactor.Custom
  1126. p7.Size = Vector3.new(0.5, 0.5, 1)
  1127. p7.CFrame = CFrame.new(-0.0500000007, 9.75, 12.8249979, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1128. p7.Anchored = false
  1129. p7.CanCollide = false
  1130. p7.BottomSurface = Enum.SurfaceType.Smooth
  1131. p7.TopSurface = Enum.SurfaceType.Smooth
  1132. b7 = Instance.new("SpecialMesh", p7)
  1133. b7.MeshType = Enum.MeshType.Brick
  1134. b7.Name = "Mesh"
  1135. p8 = Instance.new("Part", Cha)
  1136. p8.BrickColor = BrickColor.new("Really black")
  1137. p8.FormFactor = Enum.FormFactor.Custom
  1138. p8.Size = Vector3.new(0.200000003, 0.25000003, 3.5)
  1139. p8.CFrame = CFrame.new(-0.0500000007, 10.0749998, 12.0500021, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
  1140. p8.Anchored = false
  1141. p8.CanCollide = false
  1142. p8.BottomSurface = Enum.SurfaceType.Smooth
  1143. p8.TopSurface = Enum.SurfaceType.Smooth
  1144. b8 = Instance.new("SpecialMesh", p8)
  1145. b8.MeshType = Enum.MeshType.Brick
  1146. b8.Name = "Mesh"
  1147. b8.Scale = Vector3.new(0.99999994, 1, 1)
  1148. p9 = Instance.new("Part", Cha)
  1149. p9.BrickColor = BrickColor.new("Really black")
  1150. p9.FormFactor = Enum.FormFactor.Custom
  1151. p9.Size = Vector3.new(0.200000003, 0.200000003, 0.300000131)
  1152. p9.CFrame = CFrame.new(-0.0500000007, 10.0999994, 14.7750015, -4.37113883e-008, 0, -1, -1.50995803e-007, 1, 6.60023616e-015, 1, 1.50995803e-007, -4.37113883e-008)
  1153. p9.Anchored = false
  1154. p9.CanCollide = false
  1155. p9.BottomSurface = Enum.SurfaceType.Smooth
  1156. p9.TopSurface = Enum.SurfaceType.Smooth
  1157. b9 = Instance.new("SpecialMesh", p9)
  1158. b9.MeshType = Enum.MeshType.Cylinder
  1159. b9.Name = "Mesh"
  1160. b9.Scale = Vector3.new(0.5, 0.99999994, 1)
  1161. p10 = Instance.new("Part", Cha)
  1162. p10.BrickColor = BrickColor.new("Really black")
  1163. p10.FormFactor = Enum.FormFactor.Custom
  1164. p10.Size = Vector3.new(0.200000003, 0.5, 0.800000012)
  1165. p10.CFrame = CFrame.new(-0.0500000007, 9.82392216, 12.5223665, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111)
  1166. p10.Anchored = false
  1167. p10.CanCollide = false
  1168. p10.BottomSurface = Enum.SurfaceType.Smooth
  1169. p10.TopSurface = Enum.SurfaceType.Smooth
  1170. b10 = Instance.new("SpecialMesh", p10)
  1171. b10.MeshType = Enum.MeshType.Brick
  1172. b10.Name = "Mesh"
  1173. b10.Scale = Vector3.new(0.99999994, 1, 1)
  1174. p11 = Instance.new("Part", Cha)
  1175. p11.BrickColor = BrickColor.new("Really black")
  1176. p11.FormFactor = Enum.FormFactor.Custom
  1177. p11.Size = Vector3.new(0.200000003, 0.200000003, 0.300000012)
  1178. p11.CFrame = CFrame.new(-0.0500000007, 9.6954546, 13.0453367, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111)
  1179. p11.Anchored = false
  1180. p11.CanCollide = false
  1181. p11.BottomSurface = Enum.SurfaceType.Smooth
  1182. p11.TopSurface = Enum.SurfaceType.Smooth
  1183. b11 = Instance.new("SpecialMesh", p11)
  1184. b11.MeshType = Enum.MeshType.Brick
  1185. b11.Name = "Mesh"
  1186. b11.Scale = Vector3.new(0.99999994, 0.500000119, 1)
  1187. p12 = Instance.new("Part", Cha)
  1188. p12.BrickColor = BrickColor.new("Really black")
  1189. p12.FormFactor = Enum.FormFactor.Custom
  1190. p12.Size = Vector3.new(0.200000003, 0.450000048, 0.200000003)
  1191. p12.CFrame = CFrame.new(-0.0500000007, 9.8826685, 13.1200056, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111)
  1192. p12.Anchored = false
  1193. p12.CanCollide = false
  1194. p12.BottomSurface = Enum.SurfaceType.Smooth
  1195. p12.TopSurface = Enum.SurfaceType.Smooth
  1196. b12 = Instance.new("SpecialMesh", p12)
  1197. b12.MeshType = Enum.MeshType.Brick
  1198. b12.Name = "Mesh"
  1199. b12.Scale = Vector3.new(0.99999994, 1, 0.50000006)
  1200. p13 = Instance.new("Part", Cha)
  1201. p13.BrickColor = BrickColor.new("Really black")
  1202. p13.FormFactor = Enum.FormFactor.Custom
  1203. p13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1204. p13.CFrame = CFrame.new(-0.0500000007, 9.86914063, 12.0564413, -4.37113883e-008, 0, 1, -0.139172822, 0.990268111, -6.08343731e-009, -0.990268111, -0.139172822, -4.32859935e-008)
  1205. p13.Anchored = false
  1206. p13.CanCollide = false
  1207. p13.BottomSurface = Enum.SurfaceType.Smooth
  1208. p13.TopSurface = Enum.SurfaceType.Smooth
  1209. b13 = Instance.new("SpecialMesh", p13)
  1210. b13.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1211. b13.TextureId = ""
  1212. b13.MeshType = Enum.MeshType.FileMesh
  1213. b13.Name = "Mesh"
  1214. b13.Scale = Vector3.new(0.5, 0.5, 0.349999994)
  1215. p14 = Instance.new("Part", Cha)
  1216. p14.BrickColor = BrickColor.new("Really black")
  1217. p14.FormFactor = Enum.FormFactor.Custom
  1218. p14.Size = Vector3.new(0.600000024, 0.200000003, 0.249999896)
  1219. p14.CFrame = CFrame.new(-0.0500000007, 10.0249996, 14.1000032, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1220. p14.Anchored = false
  1221. p14.CanCollide = false
  1222. p14.BottomSurface = Enum.SurfaceType.Smooth
  1223. p14.TopSurface = Enum.SurfaceType.Smooth
  1224. b14 = Instance.new("SpecialMesh", p14)
  1225. b14.MeshType = Enum.MeshType.Cylinder
  1226. b14.Name = "Mesh"
  1227. b14.Scale = Vector3.new(1, 0.750000179, 1)
  1228. p15 = Instance.new("Part", Cha)
  1229. p15.BrickColor = BrickColor.new("Really black")
  1230. p15.FormFactor = Enum.FormFactor.Custom
  1231. p15.Size = Vector3.new(0.200000003, 0.200000003, 0.44999975)
  1232. p15.CFrame = CFrame.new(-0.0500000007, 10.0250006, 14.5500021, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
  1233. p15.Anchored = false
  1234. p15.CanCollide = false
  1235. p15.BottomSurface = Enum.SurfaceType.Smooth
  1236. p15.TopSurface = Enum.SurfaceType.Smooth
  1237. b15 = Instance.new("SpecialMesh", p15)
  1238. b15.MeshType = Enum.MeshType.Brick
  1239. b15.Name = "Mesh"
  1240. b15.Scale = Vector3.new(0.99999994, 0.750000179, 1)
  1241. p16 = Instance.new("Part", Cha)
  1242. p16.BrickColor = BrickColor.new("Really black")
  1243. p16.FormFactor = Enum.FormFactor.Custom
  1244. p16.Size = Vector3.new(1.20000005, 0.200000003, 0.200000003)
  1245. p16.CFrame = CFrame.new(-0.0500000007, 10.7749996, 10.8750019, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1246. p16.Anchored = false
  1247. p16.CanCollide = false
  1248. p16.BottomSurface = Enum.SurfaceType.Smooth
  1249. p16.TopSurface = Enum.SurfaceType.Smooth
  1250. b16 = Instance.new("SpecialMesh", p16)
  1251. b16.MeshType = Enum.MeshType.Cylinder
  1252. b16.Name = "Mesh"
  1253. p17 = Instance.new("Part", Cha)
  1254. p17.BrickColor = BrickColor.new("Really black")
  1255. p17.FormFactor = Enum.FormFactor.Custom
  1256. p17.Size = Vector3.new(0.200000003, 0.75, 0.200000003)
  1257. p17.CFrame = CFrame.new(-0.0500000007, 9.72500038, 14.7750015, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
  1258. p17.Anchored = false
  1259. p17.CanCollide = false
  1260. p17.BottomSurface = Enum.SurfaceType.Smooth
  1261. p17.TopSurface = Enum.SurfaceType.Smooth
  1262. b17 = Instance.new("SpecialMesh", p17)
  1263. b17.MeshType = Enum.MeshType.Brick
  1264. b17.Name = "Mesh"
  1265. b17.Scale = Vector3.new(0.99999994, 1, 0.500000715)
  1266. p18 = Instance.new("Part", Cha)
  1267. p18.BrickColor = BrickColor.new("Really black")
  1268. p18.FormFactor = Enum.FormFactor.Custom
  1269. p18.Size = Vector3.new(0.200000003, 0.200000003, 0.650000095)
  1270. p18.CFrame = CFrame.new(-0.0500000007, 10.5499992, 11.5250006, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
  1271. p18.Anchored = false
  1272. p18.CanCollide = false
  1273. p18.BottomSurface = Enum.SurfaceType.Smooth
  1274. p18.TopSurface = Enum.SurfaceType.Smooth
  1275. b18 = Instance.new("SpecialMesh", p18)
  1276. b18.MeshType = Enum.MeshType.Brick
  1277. b18.Name = "Mesh"
  1278. b18.Scale = Vector3.new(0.99999994, 0.500000358, 1)
  1279. p19 = Instance.new("Part", Cha)
  1280. p19.BrickColor = BrickColor.new("Really black")
  1281. p19.FormFactor = Enum.FormFactor.Custom
  1282. p19.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1283. p19.CFrame = CFrame.new(-0.0500000007, 10.6750002, 11.3250027, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1284. p19.Anchored = false
  1285. p19.CanCollide = false
  1286. p19.BottomSurface = Enum.SurfaceType.Smooth
  1287. p19.TopSurface = Enum.SurfaceType.Smooth
  1288. b19 = Instance.new("SpecialMesh", p19)
  1289. b19.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1290. b19.TextureId = ""
  1291. b19.MeshType = Enum.MeshType.FileMesh
  1292. b19.Name = "Mesh"
  1293. b19.Scale = Vector3.new(0.25, 0.25, 0.349999994)
  1294. p20 = Instance.new("Part", Cha)
  1295. p20.BrickColor = BrickColor.new("Really black")
  1296. p20.FormFactor = Enum.FormFactor.Custom
  1297. p20.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1298. p20.CFrame = CFrame.new(-0.0500000007, 10.874999, 10.8750019, -1.07284414e-007, 1, -5.21080397e-015, 1, 1.07284414e-007, 3.17865059e-008, 3.17865059e-008, -1.80060697e-015, -1)
  1299. p20.Anchored = false
  1300. p20.CanCollide = false
  1301. p20.BottomSurface = Enum.SurfaceType.Smooth
  1302. p20.TopSurface = Enum.SurfaceType.Smooth
  1303. b20 = Instance.new("SpecialMesh", p20)
  1304. b20.MeshType = Enum.MeshType.Cylinder
  1305. b20.Name = "Mesh"
  1306. b20.Scale = Vector3.new(0.500000358, 1, 1)
  1307. p21 = Instance.new("Part", Cha)
  1308. p21.BrickColor = BrickColor.new("Really black")
  1309. p21.FormFactor = Enum.FormFactor.Custom
  1310. p21.Size = Vector3.new(0.300000072, 0.200000003, 0.200000003)
  1311. p21.CFrame = CFrame.new(-0.0500000007, 10.7749996, 10.8750019, -1, -1.50995803e-007, -3.17865059e-008, -1.50995803e-007, 1, -6.60023616e-015, 3.17865059e-008, -1.80060697e-015, -1)
  1312. p21.Anchored = false
  1313. p21.CanCollide = false
  1314. p21.BottomSurface = Enum.SurfaceType.Smooth
  1315. p21.TopSurface = Enum.SurfaceType.Smooth
  1316. b21 = Instance.new("SpecialMesh", p21)
  1317. b21.MeshType = Enum.MeshType.Cylinder
  1318. b21.Name = "Mesh"
  1319. p22 = Instance.new("Part", Cha)
  1320. p22.BrickColor = BrickColor.new("Really black")
  1321. p22.FormFactor = Enum.FormFactor.Custom
  1322. p22.Size = Vector3.new(0.5, 0.200000003, 0.5)
  1323. p22.CFrame = CFrame.new(-0.0500000007, 10.7749996, 11.3499994, -1, 8.74227766e-008, 0, 0, 0, -1, -8.74227766e-008, -1, 0)
  1324. p22.Anchored = false
  1325. p22.CanCollide = false
  1326. p22.BottomSurface = Enum.SurfaceType.Smooth
  1327. p22.TopSurface = Enum.SurfaceType.Smooth
  1328. b22 = Instance.new("SpecialMesh", p22)
  1329. b22.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1330. b22.TextureId = ""
  1331. b22.MeshType = Enum.MeshType.FileMesh
  1332. b22.Name = "Mesh"
  1333. b22.VertexColor = Vector3.new(3.00000003e+015, 2.99999995e+031, 3.00000003e+015)
  1334. b22.Scale = Vector3.new(0.100000001, 1, 0.100000001)
  1335. p23 = Instance.new("Part", Cha)
  1336. p23.BrickColor = BrickColor.new("Really black")
  1337. p23.FormFactor = Enum.FormFactor.Custom
  1338. p23.Size = Vector3.new(0.5, 0.5, 0.5)
  1339. p23.CFrame = CFrame.new(-0.0499995016, 10.7749996, 10.0999994, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  1340. p23.Anchored = false
  1341. p23.CanCollide = false
  1342. p23.BottomSurface = Enum.SurfaceType.Smooth
  1343. p23.TopSurface = Enum.SurfaceType.Smooth
  1344. b23 = Instance.new("SpecialMesh", p23)
  1345. b23.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1346. b23.TextureId = ""
  1347. b23.MeshType = Enum.MeshType.FileMesh
  1348. b23.Name = "Mesh"
  1349. b23.VertexColor = Vector3.new(3.00000003e+015, 2.99999995e+031, 3.00000003e+015)
  1350. b23.Scale = Vector3.new(0.200000003, 1, 0.200000003)
  1351. p24 = Instance.new("Part", Cha)
  1352. p24.BrickColor = BrickColor.new("Really black")
  1353. p24.FormFactor = Enum.FormFactor.Custom
  1354. p24.Size = Vector3.new(0.200000003, 0.224999994, 0.224999994)
  1355. p24.CFrame = CFrame.new(-0.0500000007, 10.7749996, 10.2750015, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1356. p24.Anchored = false
  1357. p24.CanCollide = false
  1358. p24.BottomSurface = Enum.SurfaceType.Smooth
  1359. p24.TopSurface = Enum.SurfaceType.Smooth
  1360. b24 = Instance.new("SpecialMesh", p24)
  1361. b24.MeshType = Enum.MeshType.Cylinder
  1362. b24.Name = "Mesh"
  1363. b24.Scale = Vector3.new(0.500000119, 1, 1)
  1364. p25 = Instance.new("Part", Cha)
  1365. p25.BrickColor = BrickColor.new("Really black")
  1366. p25.FormFactor = Enum.FormFactor.Custom
  1367. p25.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1368. p25.CFrame = CFrame.new(-0.0500000007, 10.5249996, 10.3000031, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1369. p25.Anchored = false
  1370. p25.CanCollide = false
  1371. p25.BottomSurface = Enum.SurfaceType.Smooth
  1372. p25.TopSurface = Enum.SurfaceType.Smooth
  1373. b25 = Instance.new("SpecialMesh", p25)
  1374. b25.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1375. b25.TextureId = ""
  1376. b25.MeshType = Enum.MeshType.FileMesh
  1377. b25.Name = "Mesh"
  1378. b25.Scale = Vector3.new(0.25, 0.5, 0.349999994)
  1379. p26 = Instance.new("Part", Cha)
  1380. p26.BrickColor = BrickColor.new("Really black")
  1381. p26.FormFactor = Enum.FormFactor.Custom
  1382. p26.Size = Vector3.new(0.200000003, 1.20000005, 0.5)
  1383. p26.CFrame = CFrame.new(-0.0500000007, 9.51616573, 10.9198675, -1, -1.50995803e-007, 0, -1.40000864e-007, 0.927183807, 0.374606699, -5.65640406e-008, 0.374606699, -0.927183807)
  1384. p26.Anchored = false
  1385. p26.CanCollide = false
  1386. p26.BottomSurface = Enum.SurfaceType.Smooth
  1387. p26.TopSurface = Enum.SurfaceType.Smooth
  1388. b26 = Instance.new("SpecialMesh", p26)
  1389. b26.MeshType = Enum.MeshType.Brick
  1390. b26.Name = "Mesh"
  1391. b26.Scale = Vector3.new(0.99999994, 1, 1)
  1392. p27 = Instance.new("Part", Cha)
  1393. p27.BrickColor = BrickColor.new("Really black")
  1394. p27.FormFactor = Enum.FormFactor.Custom
  1395. p27.Size = Vector3.new(0.200000003, 1, 0.200000003)
  1396. p27.CFrame = CFrame.new(-0.275000006, 9.72679424, 9.47500324, -0.866025388, 0.50000006, 0, 0.50000006, 0.866025388, -1.50995803e-007, -7.54979084e-008, -1.30766196e-007, -1)
  1397. p27.Anchored = false
  1398. p27.CanCollide = false
  1399. p27.BottomSurface = Enum.SurfaceType.Smooth
  1400. p27.TopSurface = Enum.SurfaceType.Smooth
  1401. b27 = Instance.new("SpecialMesh", p27)
  1402. b27.MeshType = Enum.MeshType.Brick
  1403. b27.Name = "Mesh"
  1404. b27.Scale = Vector3.new(0.5, 1, 0.750000119)
  1405. p28 = Instance.new("Part", Cha)
  1406. p28.BrickColor = BrickColor.new("Really black")
  1407. p28.FormFactor = Enum.FormFactor.Custom
  1408. p28.Size = Vector3.new(0.200000003, 0.200000003, 0.550000012)
  1409. p28.CFrame = CFrame.new(-0.0500000007, 9.92500019, 9.52500153, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
  1410. p28.Anchored = false
  1411. p28.CanCollide = false
  1412. p28.BottomSurface = Enum.SurfaceType.Smooth
  1413. p28.TopSurface = Enum.SurfaceType.Smooth
  1414. b28 = Instance.new("SpecialMesh", p28)
  1415. b28.MeshType = Enum.MeshType.Brick
  1416. b28.Name = "Mesh"
  1417. b28.Scale = Vector3.new(0.99999994, 0.750000417, 1)
  1418. p29 = Instance.new("Part", Cha)
  1419. p29.BrickColor = BrickColor.new("Really black")
  1420. p29.FormFactor = Enum.FormFactor.Custom
  1421. p29.Size = Vector3.new(0.200000003, 0.50000006, 1.25)
  1422. p29.CFrame = CFrame.new(-0.0500000007, 10.1999998, 9.72500229, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
  1423. p29.Anchored = false
  1424. p29.CanCollide = false
  1425. p29.BottomSurface = Enum.SurfaceType.Smooth
  1426. p29.TopSurface = Enum.SurfaceType.Smooth
  1427. b29 = Instance.new("SpecialMesh", p29)
  1428. b29.MeshType = Enum.MeshType.Brick
  1429. b29.Name = "Mesh"
  1430. b29.Scale = Vector3.new(0.99999994, 1, 1)
  1431. p30 = Instance.new("Part", Cha)
  1432. p30.BrickColor = BrickColor.new("Really black")
  1433. p30.FormFactor = Enum.FormFactor.Custom
  1434. p30.Size = Vector3.new(0.200000003, 0.450000018, 0.200000003)
  1435. p30.CFrame = CFrame.new(-0.562499523, 9.22882938, 9.47500324, -0.866025388, 0.50000006, 0, 0.50000006, 0.866025388, -1.50995803e-007, -7.54979084e-008, -1.30766196e-007, -1)
  1436. p30.Anchored = false
  1437. p30.CanCollide = false
  1438. p30.BottomSurface = Enum.SurfaceType.Smooth
  1439. p30.TopSurface = Enum.SurfaceType.Smooth
  1440. b30 = Instance.new("SpecialMesh", p30)
  1441. b30.MeshType = Enum.MeshType.Brick
  1442. b30.Name = "Mesh"
  1443. b30.Scale = Vector3.new(0.625, 1, 0.875)
  1444. p31 = Instance.new("Part", Cha)
  1445. p31.BrickColor = BrickColor.new("Really black")
  1446. p31.FormFactor = Enum.FormFactor.Custom
  1447. p31.Size = Vector3.new(0.200000003, 0.899999976, 0.5)
  1448. p31.CFrame = CFrame.new(-0.0500000007, 9.20888424, 12.4573278, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111)
  1449. p31.Anchored = false
  1450. p31.CanCollide = false
  1451. p31.BottomSurface = Enum.SurfaceType.Smooth
  1452. p31.TopSurface = Enum.SurfaceType.Smooth
  1453. b31 = Instance.new("SpecialMesh", p31)
  1454. b31.MeshType = Enum.MeshType.Brick
  1455. b31.Name = "Mesh"
  1456. b31.Scale = Vector3.new(0.99999994, 1, 1)
  1457. p32 = Instance.new("Part", Cha)
  1458. p32.BrickColor = BrickColor.new("Really black")
  1459. p32.FormFactor = Enum.FormFactor.Custom
  1460. p32.Size = Vector3.new(0.425000012, 0.200000003, 0.275000006)
  1461. p32.CFrame = CFrame.new(-0.637500525, 9.00382996, 9.47500324, -1, -5.96046448e-008, -7.54979013e-008, -5.96046448e-008, 1, -1.30766196e-007, 7.54979084e-008, -1.30766196e-007, -1)
  1462. p32.Anchored = false
  1463. p32.CanCollide = false
  1464. p32.BottomSurface = Enum.SurfaceType.Smooth
  1465. p32.TopSurface = Enum.SurfaceType.Smooth
  1466. b32 = Instance.new("SpecialMesh", p32)
  1467. b32.MeshType = Enum.MeshType.Brick
  1468. b32.Name = "Mesh"
  1469. b32.Scale = Vector3.new(1, 0.500000119, 1)
  1470. p33 = Instance.new("Part", Cha)
  1471. p33.BrickColor = BrickColor.new("Black")
  1472. p33.FormFactor = Enum.FormFactor.Custom
  1473. p33.Size = Vector3.new(0.899999976, 0.200000003, 0.200000003)
  1474. p33.CFrame = CFrame.new(-0.0500000007, 10.2249985, 7.10000086, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1475. p33.Anchored = false
  1476. p33.CanCollide = false
  1477. p33.BottomSurface = Enum.SurfaceType.Smooth
  1478. p33.TopSurface = Enum.SurfaceType.Smooth
  1479. b33 = Instance.new("SpecialMesh", p33)
  1480. b33.MeshType = Enum.MeshType.Cylinder
  1481. b33.Name = "Mesh"
  1482. b33.Scale = Vector3.new(1, 0.875, 0.875)
  1483. p34 = Instance.new("Part", Cha)
  1484. p34.BrickColor = BrickColor.new("Really black")
  1485. p34.FormFactor = Enum.FormFactor.Custom
  1486. p34.Size = Vector3.new(0.200000003, 1, 0.200000003)
  1487. p34.CFrame = CFrame.new(0.174999997, 9.72679424, 9.47500324, -0.866025388, -0.50000006, 0, -0.50000006, 0.866025388, -1.50995803e-007, 7.54979084e-008, -1.30766196e-007, -1)
  1488. p34.Anchored = false
  1489. p34.CanCollide = false
  1490. p34.BottomSurface = Enum.SurfaceType.Smooth
  1491. p34.TopSurface = Enum.SurfaceType.Smooth
  1492. b34 = Instance.new("SpecialMesh", p34)
  1493. b34.MeshType = Enum.MeshType.Brick
  1494. b34.Name = "Mesh"
  1495. b34.Scale = Vector3.new(0.5, 1, 0.750000119)
  1496. p35 = Instance.new("Part", Cha)
  1497. p35.BrickColor = BrickColor.new("Really black")
  1498. p35.FormFactor = Enum.FormFactor.Custom
  1499. p35.Size = Vector3.new(0.200000003, 0.450000018, 0.200000003)
  1500. p35.CFrame = CFrame.new(0.462500006, 9.22882938, 9.47500324, -0.866025388, -0.50000006, 0, -0.50000006, 0.866025388, -1.50995803e-007, 7.54979084e-008, -1.30766196e-007, -1)
  1501. p35.Anchored = false
  1502. p35.CanCollide = false
  1503. p35.BottomSurface = Enum.SurfaceType.Smooth
  1504. p35.TopSurface = Enum.SurfaceType.Smooth
  1505. b35 = Instance.new("SpecialMesh", p35)
  1506. b35.MeshType = Enum.MeshType.Brick
  1507. b35.Name = "Mesh"
  1508. b35.Scale = Vector3.new(0.625, 1, 0.875)
  1509. p36 = Instance.new("Part", Cha)
  1510. p36.BrickColor = BrickColor.new("Really black")
  1511. p36.FormFactor = Enum.FormFactor.Custom
  1512. p36.Size = Vector3.new(0.299999982, 0.200000003, 0.700000048)
  1513. p36.CFrame = CFrame.new(-0.0500000007, 8.7949791, 12.5659933, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111)
  1514. p36.Anchored = false
  1515. p36.CanCollide = false
  1516. p36.BottomSurface = Enum.SurfaceType.Smooth
  1517. p36.TopSurface = Enum.SurfaceType.Smooth
  1518. b36 = Instance.new("SpecialMesh", p36)
  1519. b36.MeshType = Enum.MeshType.Brick
  1520. b36.Name = "Mesh"
  1521. b36.Scale = Vector3.new(1, 0.749999881, 1)
  1522. p37 = Instance.new("Part", Cha)
  1523. p37.BrickColor = BrickColor.new("Really black")
  1524. p37.FormFactor = Enum.FormFactor.Custom
  1525. p37.Size = Vector3.new(0.425000012, 0.200000003, 0.275000006)
  1526. p37.CFrame = CFrame.new(0.562499523, 9.00382996, 9.47500324, -1, -5.96046448e-008, -7.54979013e-008, -5.96046448e-008, 1, -1.30766196e-007, 7.54979084e-008, -1.30766196e-007, -1)
  1527. p37.Anchored = false
  1528. p37.CanCollide = false
  1529. p37.BottomSurface = Enum.SurfaceType.Smooth
  1530. p37.TopSurface = Enum.SurfaceType.Smooth
  1531. b37 = Instance.new("SpecialMesh", p37)
  1532. b37.MeshType = Enum.MeshType.Brick
  1533. b37.Name = "Mesh"
  1534. b37.Scale = Vector3.new(1, 0.500000119, 1)
  1535. p38 = Instance.new("Part", Cha)
  1536. p38.BrickColor = BrickColor.new("Really black")
  1537. p38.FormFactor = Enum.FormFactor.Custom
  1538. p38.Size = Vector3.new(1.35000002, 0.200000003, 0.200000003)
  1539. p38.CFrame = CFrame.new(-0.0500000231, 10.0749989, 7.85000134, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1540. p38.Anchored = false
  1541. p38.CanCollide = false
  1542. p38.BottomSurface = Enum.SurfaceType.Smooth
  1543. p38.TopSurface = Enum.SurfaceType.Smooth
  1544. b38 = Instance.new("SpecialMesh", p38)
  1545. b38.MeshType = Enum.MeshType.Cylinder
  1546. b38.Name = "Mesh"
  1547. b38.Scale = Vector3.new(1, 0.5, 0.5)
  1548. p39 = Instance.new("Part", Cha)
  1549. p39.BrickColor = BrickColor.new("Really black")
  1550. p39.FormFactor = Enum.FormFactor.Custom
  1551. p39.Size = Vector3.new(0.75, 0.200000003, 0.200000003)
  1552. p39.CFrame = CFrame.new(-0.0500000007, 10.0749989, 8.75000191, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1553. p39.Anchored = false
  1554. p39.CanCollide = false
  1555. p39.BottomSurface = Enum.SurfaceType.Smooth
  1556. p39.TopSurface = Enum.SurfaceType.Smooth
  1557. b39 = Instance.new("SpecialMesh", p39)
  1558. b39.MeshType = Enum.MeshType.Cylinder
  1559. b39.Name = "Mesh"
  1560. b39.Scale = Vector3.new(1, 0.75, 0.75)
  1561. p40 = Instance.new("Part", Cha)
  1562. p40.BrickColor = BrickColor.new("Really black")
  1563. p40.FormFactor = Enum.FormFactor.Custom
  1564. p40.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1565. p40.CFrame = CFrame.new(-0.0500000007, 10.0749989, 8.5500021, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1566. p40.Anchored = false
  1567. p40.CanCollide = false
  1568. p40.BottomSurface = Enum.SurfaceType.Smooth
  1569. p40.TopSurface = Enum.SurfaceType.Smooth
  1570. b40 = Instance.new("SpecialMesh", p40)
  1571. b40.MeshType = Enum.MeshType.Cylinder
  1572. b40.Name = "Mesh"
  1573. b40.Scale = Vector3.new(0.5, 0.875, 0.875)
  1574. p41 = Instance.new("Part", Cha)
  1575. p41.BrickColor = BrickColor.new("Really black")
  1576. p41.FormFactor = Enum.FormFactor.Custom
  1577. p41.Size = Vector3.new(0.899999976, 0.200000003, 0.200000003)
  1578. p41.CFrame = CFrame.new(-0.0500000007, 10.2249994, 8.70000172, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1579. p41.Anchored = false
  1580. p41.CanCollide = false
  1581. p41.BottomSurface = Enum.SurfaceType.Smooth
  1582. p41.TopSurface = Enum.SurfaceType.Smooth
  1583. b41 = Instance.new("SpecialMesh", p41)
  1584. b41.MeshType = Enum.MeshType.Cylinder
  1585. b41.Name = "Mesh"
  1586. b41.Scale = Vector3.new(1, 0.875, 0.875)
  1587. p42 = Instance.new("Part", Cha)
  1588. p42.BrickColor = BrickColor.new("Really black")
  1589. p42.FormFactor = Enum.FormFactor.Custom
  1590. p42.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1591. p42.CFrame = CFrame.new(-0.0500000007, 10.2249994, 8.5500021, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1592. p42.Anchored = false
  1593. p42.CanCollide = false
  1594. p42.BottomSurface = Enum.SurfaceType.Smooth
  1595. p42.TopSurface = Enum.SurfaceType.Smooth
  1596. b42 = Instance.new("SpecialMesh", p42)
  1597. b42.MeshType = Enum.MeshType.Cylinder
  1598. b42.Name = "Mesh"
  1599. b42.Scale = Vector3.new(0.500000119, 1, 1)
  1600. p43 = Instance.new("Part", Cha)
  1601. p43.BrickColor = BrickColor.new("Really black")
  1602. p43.FormFactor = Enum.FormFactor.Custom
  1603. p43.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1604. p43.CFrame = CFrame.new(-0.0500000007, 10.2249994, 8.22500134, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
  1605. p43.Anchored = false
  1606. p43.CanCollide = false
  1607. p43.BottomSurface = Enum.SurfaceType.Smooth
  1608. p43.TopSurface = Enum.SurfaceType.Smooth
  1609. b43 = Instance.new("SpecialMesh", p43)
  1610. b43.MeshType = Enum.MeshType.Cylinder
  1611. b43.Name = "Mesh"
  1612. b43.Scale = Vector3.new(0.749999881, 0.75, 0.75)
  1613. w1 = Instance.new("Weld", p7)
  1614. w1.Name = "BTWeld"
  1615. w1.Part0 = p7
  1616. w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1617. w1.Part1 = p1
  1618. w1.C1 = CFrame.new(-4.62499619, -0.574999809, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1619. w2 = Instance.new("Weld", p7)
  1620. w2.Name = "BTWeld"
  1621. w2.Part0 = p7
  1622. w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1623. w2.Part1 = p2
  1624. w2.C1 = CFrame.new(8.56816769e-008, -0.574999809, -0.424996376, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
  1625. w3 = Instance.new("Weld", p7)
  1626. w3.Name = "BTWeld"
  1627. w3.Part0 = p7
  1628. w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1629. w3.Part1 = p3
  1630. w3.C1 = CFrame.new(1.11758709e-007, -0.724999428, -1.02499771, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
  1631. w4 = Instance.new("Weld", p7)
  1632. w4.Name = "BTWeld"
  1633. w4.Part0 = p7
  1634. w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1635. w4.Part1 = p4
  1636. w4.C1 = CFrame.new(6.70552254e-008, -0.449999809, -0.824995995, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
  1637. w5 = Instance.new("Weld", p7)
  1638. w5.Name = "BTWeld"
  1639. w5.Part0 = p7
  1640. w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1641. w5.Part1 = p5
  1642. w5.C1 = CFrame.new(1.1920929e-007, -0.774998665, 0.874996185, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -6.60023616e-015, 0, -6.60023616e-015, -1)
  1643. w6 = Instance.new("Weld", p7)
  1644. w6.Name = "BTWeld"
  1645. w6.Part0 = p7
  1646. w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1647. w6.Part1 = p6
  1648. w6.C1 = CFrame.new(-5.24999762, -0.475000381, -2.04890966e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1649. w7 = Instance.new("Weld", p7)
  1650. w7.Name = "BTWeld"
  1651. w7.Part0 = p7
  1652. w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1653. w7.Part1 = p8
  1654. w7.C1 = CFrame.new(4.84287739e-008, -0.324999809, -0.774995804, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
  1655. w8 = Instance.new("Weld", p7)
  1656. w8.Name = "BTWeld"
  1657. w8.Part0 = p7
  1658. w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1659. w8.Part1 = p9
  1660. w8.C1 = CFrame.new(-1.95000362, -0.349999428, 8.56816769e-008, 4.37113883e-008, -1.50995803e-007, -1, 0, 1, -1.50995803e-007, 1, 6.60023616e-015, 4.37113883e-008)
  1661. w9 = Instance.new("Weld", p7)
  1662. w9.Name = "BTWeld"
  1663. w9.Part0 = p7
  1664. w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1665. w9.Part1 = p10
  1666. w9.C1 = CFrame.new(1.49011612e-008, -0.115321159, -0.289399147, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111)
  1667. w10 = Instance.new("Weld", p7)
  1668. w10.Name = "BTWeld"
  1669. w10.Part0 = p7
  1670. w10.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1671. w10.Part1 = p11
  1672. w10.C1 = CFrame.new(-1.49011612e-008, 0.0846796036, 0.21060276, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111)
  1673. w11 = Instance.new("Weld", p7)
  1674. w11.Name = "BTWeld"
  1675. w11.Part0 = p7
  1676. w11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1677. w11.Part1 = p12
  1678. w11.C1 = CFrame.new(1.49011612e-008, -0.0903201103, 0.310600281, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111)
  1679. w12 = Instance.new("Weld", p7)
  1680. w12.Name = "BTWeld"
  1681. w12.Part0 = p7
  1682. w12.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1683. w12.Part1 = p13
  1684. w12.C1 = CFrame.new(-0.744495392, -0.224943161, -3.35276127e-008, 4.37113883e-008, -0.139172822, 0.990268111, 0, 0.990268111, 0.139172822, -1, -6.08343731e-009, 4.32859935e-008)
  1685. w13 = Instance.new("Weld", p7)
  1686. w13.Name = "BTWeld"
  1687. w13.Part0 = p7
  1688. w13.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1689. w13.Part1 = p14
  1690. w13.C1 = CFrame.new(1.27500534, -0.274999619, 5.58793545e-008, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1691. w14 = Instance.new("Weld", p7)
  1692. w14.Name = "BTWeld"
  1693. w14.Part0 = p7
  1694. w14.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1695. w14.Part1 = p15
  1696. w14.C1 = CFrame.new(4.09781933e-008, -0.275000572, 1.7250042, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
  1697. w15 = Instance.new("Weld", p7)
  1698. w15.Name = "BTWeld"
  1699. w15.Part0 = p7
  1700. w15.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1701. w15.Part1 = p16
  1702. w15.C1 = CFrame.new(-1.94999599, -1.02499962, -8.19563866e-008, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1703. w16 = Instance.new("Weld", p7)
  1704. w16.Name = "BTWeld"
  1705. w16.Part0 = p7
  1706. w16.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1707. w16.Part1 = p17
  1708. w16.C1 = CFrame.new(-3.7252903e-009, 0.0249996185, 1.95000362, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
  1709. w17 = Instance.new("Weld", p7)
  1710. w17.Name = "BTWeld"
  1711. w17.Part0 = p7
  1712. w17.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1713. w17.Part1 = p18
  1714. w17.C1 = CFrame.new(1.2293458e-007, -0.799999237, -1.29999733, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
  1715. w18 = Instance.new("Weld", p7)
  1716. w18.Name = "BTWeld"
  1717. w18.Part0 = p7
  1718. w18.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1719. w18.Part1 = p19
  1720. w18.C1 = CFrame.new(0, -0.925000191, -1.49999523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1721. w19 = Instance.new("Weld", p7)
  1722. w19.Name = "BTWeld"
  1723. w19.Part0 = p7
  1724. w19.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1725. w19.Part1 = p20
  1726. w19.C1 = CFrame.new(-1.12499905, -1.1920929e-007, -1.94999599, 1.07284414e-007, 1, -3.17865059e-008, -1, 1.07284414e-007, 1.80060697e-015, 5.21080397e-015, 3.17865059e-008, 1)
  1727. w20 = Instance.new("Weld", p7)
  1728. w20.Name = "BTWeld"
  1729. w20.Part0 = p7
  1730. w20.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1731. w20.Part1 = p21
  1732. w20.C1 = CFrame.new(2.16066837e-007, -1.02499962, -1.94999599, 1, -1.50995803e-007, -3.17865059e-008, 1.50995803e-007, 1, 1.80060697e-015, 3.17865059e-008, -6.60023616e-015, 1)
  1733. w21 = Instance.new("Weld", p7)
  1734. w21.Name = "BTWeld"
  1735. w21.Part0 = p7
  1736. w21.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1737. w21.Part1 = p22
  1738. w21.C1 = CFrame.new(-1.3038516e-007, -1.47499847, 1.02499962, 1, 0, 8.74227766e-008, -8.74227766e-008, 0, 1, 0, -1, 0)
  1739. w22 = Instance.new("Weld", p7)
  1740. w22.Name = "BTWeld"
  1741. w22.Part0 = p7
  1742. w22.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1743. w22.Part1 = p23
  1744. w22.C1 = CFrame.new(-4.991889e-007, 2.72499847, 1.02499962, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  1745. w23 = Instance.new("Weld", p7)
  1746. w23.Name = "BTWeld"
  1747. w23.Part0 = p7
  1748. w23.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1749. w23.Part1 = p24
  1750. w23.C1 = CFrame.new(-2.54999638, -1.02499962, -1.08033419e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1751. w24 = Instance.new("Weld", p7)
  1752. w24.Name = "BTWeld"
  1753. w24.Part0 = p7
  1754. w24.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1755. w24.Part1 = p25
  1756. w24.C1 = CFrame.new(0, -0.774999619, -2.52499485, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1757. w25 = Instance.new("Weld", p7)
  1758. w25.Name = "BTWeld"
  1759. w25.Part0 = p7
  1760. w25.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1761. w25.Part1 = p26
  1762. w25.C1 = CFrame.new(-1.37835741e-007, 0.930481911, -1.67881012, 1, -1.40000864e-007, 5.65640406e-008, 1.50995803e-007, 0.927183807, -0.374606699, 0, 0.374606699, 0.927183807)
  1763. w26 = Instance.new("Weld", p7)
  1764. w26.Name = "BTWeld"
  1765. w26.Part0 = p7
  1766. w26.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1767. w26.Part1 = p27
  1768. w26.C1 = CFrame.new(-0.183252811, 0.132596016, -3.34999466, 0.866025388, 0.50000006, 7.54979084e-008, -0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1)
  1769. w27 = Instance.new("Weld", p7)
  1770. w27.Name = "BTWeld"
  1771. w27.Part0 = p7
  1772. w27.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1773. w27.Part1 = p28
  1774. w27.C1 = CFrame.new(2.60770321e-008, -0.175000191, -3.29999638, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
  1775. w28 = Instance.new("Weld", p7)
  1776. w28.Name = "BTWeld"
  1777. w28.Part0 = p7
  1778. w28.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1779. w28.Part1 = p29
  1780. w28.C1 = CFrame.new(6.70552254e-008, -0.449999809, -3.09999561, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
  1781. w29 = Instance.new("Weld", p7)
  1782. w29.Name = "BTWeld"
  1783. w29.Part0 = p7
  1784. w29.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1785. w29.Part1 = p30
  1786. w29.C1 = CFrame.new(-0.183252335, 0.707596779, -3.34999561, 0.866025388, 0.50000006, 7.54979084e-008, -0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1)
  1787. w30 = Instance.new("Weld", p7)
  1788. w30.Name = "BTWeld"
  1789. w30.Part0 = p7
  1790. w30.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1791. w30.Part1 = p31
  1792. w30.C1 = CFrame.new(-7.07805157e-008, 0.484679699, -0.439400673, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111)
  1793. w31 = Instance.new("Weld", p7)
  1794. w31.Name = "BTWeld"
  1795. w31.Part0 = p7
  1796. w31.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1797. w31.Part1 = p32
  1798. w31.C1 = CFrame.new(-0.587500334, 0.74616909, -3.34999466, 1, -5.96046448e-008, -7.54979084e-008, 5.96046448e-008, 1, 1.30766196e-007, 7.54979013e-008, -1.30766196e-007, 1)
  1799. w32 = Instance.new("Weld", p7)
  1800. w32.Name = "BTWeld"
  1801. w32.Part0 = p7
  1802. w32.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1803. w32.Part1 = p33
  1804. w32.C1 = CFrame.new(-5.72499752, -0.474999428, -2.4959445e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1805. w33 = Instance.new("Weld", p7)
  1806. w33.Name = "BTWeld"
  1807. w33.Part0 = p7
  1808. w33.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1809. w33.Part1 = p34
  1810. w33.C1 = CFrame.new(0.183252811, 0.132595062, -3.34999466, 0.866025388, -0.50000006, -7.54979084e-008, 0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1)
  1811. w34 = Instance.new("Weld", p7)
  1812. w34.Name = "BTWeld"
  1813. w34.Part0 = p7
  1814. w34.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1815. w34.Part1 = p35
  1816. w34.C1 = CFrame.new(0.183252335, 0.707595825, -3.34999561, 0.866025388, -0.50000006, -7.54979084e-008, 0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1)
  1817. w35 = Instance.new("Weld", p7)
  1818. w35.Name = "BTWeld"
  1819. w35.Part0 = p7
  1820. w35.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1821. w35.Part1 = p36
  1822. w35.C1 = CFrame.new(-1.37835741e-007, 0.90967989, -0.389397621, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111)
  1823. w36 = Instance.new("Weld", p7)
  1824. w36.Name = "BTWeld"
  1825. w36.Part0 = p7
  1826. w36.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1827. w36.Part1 = p37
  1828. w36.C1 = CFrame.new(0.612499714, 0.74616909, -3.34999466, 1, -5.96046448e-008, -7.54979084e-008, 5.96046448e-008, 1, 1.30766196e-007, 7.54979013e-008, -1.30766196e-007, 1)
  1829. w37 = Instance.new("Weld", p7)
  1830. w37.Name = "BTWeld"
  1831. w37.Part0 = p7
  1832. w37.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1833. w37.Part1 = p38
  1834. w37.C1 = CFrame.new(-4.97499704, -0.324999809, -1.93715096e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1835. w38 = Instance.new("Weld", p7)
  1836. w38.Name = "BTWeld"
  1837. w38.Part0 = p7
  1838. w38.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1839. w38.Part1 = p39
  1840. w38.C1 = CFrame.new(-4.07499599, -0.324999809, -1.75088644e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1841. w39 = Instance.new("Weld", p7)
  1842. w39.Name = "BTWeld"
  1843. w39.Part0 = p7
  1844. w39.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1845. w39.Part1 = p40
  1846. w39.C1 = CFrame.new(-4.2749958, -0.324999809, -1.86264515e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1847. w40 = Instance.new("Weld", p7)
  1848. w40.Name = "BTWeld"
  1849. w40.Part0 = p7
  1850. w40.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1851. w40.Part1 = p41
  1852. w40.C1 = CFrame.new(-4.12499619, -0.475000381, -1.78813934e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1853. w41 = Instance.new("Weld", p7)
  1854. w41.Name = "BTWeld"
  1855. w41.Part0 = p7
  1856. w41.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1857. w41.Part1 = p42
  1858. w41.C1 = CFrame.new(-4.2749958, -0.475000381, -1.86264515e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1859. w42 = Instance.new("Weld", p7)
  1860. w42.Name = "BTWeld"
  1861. w42.Part0 = p7
  1862. w42.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1863. w42.Part1 = p43
  1864. w42.C1 = CFrame.new(-4.59999657, -0.475000381, -1.97440386e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
  1865.  
  1866.  
  1867. rlwww = Instance.new("Weld", Cha)
  1868. rlwww.Part0 = Cha["Right Arm"]
  1869. rlwww.C0 = CFrame.new(0,-.5,0)*CFrame.fromEulerAnglesXYZ(-1.55,2.7,0)
  1870. rlwww.Part1 = p7
  1871.  
  1872. mouse.KeyDown:connect(function(key)
  1873. key:lower()
  1874. if key == "z" and laydown == false and prop == false then
  1875. laydown = true
  1876. prop = true
  1877. Cha.Humanoid.WalkSpeed = 10
  1878. end
  1879. end)
  1880.  
  1881. mouse.KeyDown:connect(function(key)
  1882. key:lower()
  1883. if key == "x" and laydown == true and prop == true then
  1884. laydown = false
  1885. prop = false
  1886. Cha.Humanoid.WalkSpeed = 16
  1887. end
  1888. end)
  1889.  
  1890. s = Instance.new("Sound")
  1891. s.SoundId = "http://www.roblox.com/asset?id=151112832"
  1892. s.Parent = Cha
  1893. s.Volume = 5
  1894.  
  1895. s2 = Instance.new("Sound")
  1896. s2.SoundId = "http://www.roblox.com/asset?id=200289883"
  1897. s2.Parent = Cha
  1898. s2.Volume = 5
  1899.  
  1900.  
  1901. mouse.Button1Down:connect(function()
  1902. if (not vDebounce) and shoot == false then
  1903. shoot = true
  1904.  
  1905.  
  1906. Bullet1=Instance.new('Part',Workspace)
  1907. Bullet1.BrickColor=BrickColor.new("Medium stone grey")
  1908. Bullet1.CanCollide = True
  1909. Bullet1.TopSurface = "Smooth"
  1910. Bullet1.BottomSurface = "Smooth"
  1911. Bullet1.Transparency = 0.2
  1912. Bullet1.Size = Vector3.new(.2,.2,3)
  1913. Bullet1.CFrame = p33.CFrame *CFrame.new(0, -2, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1914. game.Debris:AddItem(Bullet1, 10)
  1915. Bullet1Mesh = Instance.new("SpecialMesh",Bullet1)
  1916. Bullet1Mesh.MeshType = "Sphere"
  1917. Bullet1Mesh.Scale = Vector3.new(.5,1,.5)
  1918.  
  1919. Bullet1shoot = Instance.new('BodyVelocity',Bullet1)
  1920. Bullet1shoot.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1921. Bullet1shoot.velocity = Cha.Head.CFrame.lookVector*1000
  1922.  
  1923. Bullet1:BreakJoints()
  1924.  
  1925.  
  1926.  
  1927. Bullet1.Touched:connect(function(hit)
  1928. Damagefunc(hit,1,80,math.random(1,3),"Normal",RootPart,.2,1)
  1929. end)
  1930.  
  1931. s:Play()
  1932.  
  1933. Blast=Instance.new('Part',Workspace)
  1934. Blast.BrickColor=BrickColor.new("Medium stone grey")
  1935. Blast.CanCollide = True
  1936. Blast.TopSurface = "Smooth"
  1937. Blast.BottomSurface = "Smooth"
  1938. Blast.Transparency = 0
  1939. Blast.Anchored = false
  1940. Blast.Size = Vector3.new(3,3,3)
  1941. Blast.CFrame = p33.CFrame *CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(math.random(), math.random(), math.random())
  1942. game.Debris:AddItem(Blast, 4)
  1943. BlastMesh = Instance.new("SpecialMesh",Blast)
  1944. BlastMesh.MeshType = "Brick"
  1945. BlastMesh.Scale = Vector3.new(.1,.1,.1)
  1946.  
  1947. Ammo=Instance.new('Part',Workspace)
  1948. Ammo.BrickColor=BrickColor.new("Medium stone grey")
  1949. Ammo.CanCollide = true
  1950. Ammo.TopSurface = "Smooth"
  1951. Ammo.BottomSurface = "Smooth"
  1952. Ammo.Transparency = 0.3
  1953. Ammo.Size = Vector3.new(.2,.2,.2)
  1954. Ammo.CFrame = p21.CFrame *CFrame.new(0, -1, 0)
  1955. game.Debris:AddItem(Ammo, 10)
  1956. AmmoMesh = Instance.new("SpecialMesh",Ammo)
  1957. AmmoMesh.MeshType = "Sphere"
  1958. AmmoMesh.Scale = Vector3.new(.1,.4,.1)
  1959.  
  1960. for i = 1,10 do
  1961. BlastMesh.Scale = BlastMesh.Scale + Vector3.new(.1,.1,.1)
  1962. Blast.Transparency = Blast.Transparency + 0.1
  1963. swait(0.1)
  1964. end
  1965.  
  1966. s2:Play()
  1967.  
  1968.  
  1969. wait(1)
  1970. shoot = false
  1971. end
  1972. end)
  1973.  
  1974. colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Royal purple"}
  1975. mouse.KeyDown:connect(function(k)
  1976. if k == " " then
  1977. if hitfloor==nil then
  1978. Cha.Torso.Velocity = Vector3.new(0,100,0)
  1979. ringExplode(Torso.CFrame*CFrame.Angles(math.pi/2,0,0),colours[4],5)
  1980. end
  1981. end
  1982. end)
  1983.  
  1984. mouse.KeyDown:connect(function(key)
  1985. key:lower()
  1986. if key == "e" and camo == false and prop == true then
  1987. camo = true
  1988.  
  1989. Camoflauge=Instance.new('Part',Cha)
  1990. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  1991. Camoflauge.CanCollide = true
  1992. Camoflauge.TopSurface = "Smooth"
  1993. Camoflauge.BottomSurface = "Smooth"
  1994. Camoflauge.Material = "Grass"
  1995. Camoflauge.Transparency = 0
  1996. Camoflauge.Size = Vector3.new(1,1,1)
  1997. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  1998. CamoflaugeMesh.MeshType = "Brick"
  1999. CamoflaugeMesh.Scale = Vector3.new(4,13,6)
  2000. CaWeld = Instance.new("Weld",Cha)
  2001. CaWeld.Part0 = Cha.Torso
  2002. CaWeld.Part1 = Camoflauge
  2003. CaWeld.C1 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(.35, 0, 0)
  2004.  
  2005. end
  2006. end)
  2007.  
  2008. mouse.KeyDown:connect(function(key)
  2009. key:lower()
  2010. if key == "e" and camo == false and prop == false then
  2011. camo = true
  2012.  
  2013.  
  2014. ac = math.random(1,6)
  2015.  
  2016. if ac == 1 then
  2017. Camoflauge=Instance.new('Part',Cha)
  2018. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2019. Camoflauge.CanCollide = true
  2020. Camoflauge.TopSurface = "Smooth"
  2021. Camoflauge.BottomSurface = "Smooth"
  2022. Camoflauge.Material = "Grass"
  2023. Camoflauge.Transparency = 0
  2024. Camoflauge.Size = Vector3.new(1,1,1)
  2025. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2026. CamoflaugeMesh.MeshType = "Brick"
  2027. CamoflaugeMesh.Scale = Vector3.new(8,8,10)
  2028. CaWeld = Instance.new("Weld",Cha)
  2029. CaWeld.Part0 = Cha.Torso
  2030. CaWeld.Part1 = Camoflauge
  2031. CaWeld.C1 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2032. end
  2033.  
  2034.  
  2035. if ac == 2 then
  2036. Camoflauge=Instance.new('Part',Cha)
  2037. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2038. Camoflauge.CanCollide = true
  2039. Camoflauge.TopSurface = "Smooth"
  2040. Camoflauge.BottomSurface = "Smooth"
  2041. Camoflauge.Transparency = 0
  2042. Camoflauge.Size = Vector3.new(1,1,1)
  2043. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2044. CamoflaugeMesh.MeshType = "FileMesh"
  2045. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=19106014"
  2046. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=142039906"
  2047. CamoflaugeMesh.Scale = Vector3.new(10,10,10)
  2048. CaWeld = Instance.new("Weld",Cha)
  2049. CaWeld.Part0 = Cha.Torso
  2050. CaWeld.Part1 = Camoflauge
  2051. CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2052. end
  2053.  
  2054. if ac == 3 then
  2055. Camoflauge=Instance.new('Part',Cha)
  2056. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2057. Camoflauge.CanCollide = true
  2058. Camoflauge.TopSurface = "Smooth"
  2059. Camoflauge.BottomSurface = "Smooth"
  2060. Camoflauge.Transparency = 0
  2061. Camoflauge.Size = Vector3.new(1,1,1)
  2062. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2063. CamoflaugeMesh.MeshType = "FileMesh"
  2064. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=92598630"
  2065. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=92599263"
  2066. CamoflaugeMesh.Scale = Vector3.new(10,10,10)
  2067. CaWeld = Instance.new("Weld",Cha)
  2068. CaWeld.Part0 = Cha.Torso
  2069. CaWeld.Part1 = Camoflauge
  2070. CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2071. end
  2072.  
  2073. if ac == 4 then
  2074. Camoflauge=Instance.new('Part',Cha)
  2075. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2076. Camoflauge.CanCollide = true
  2077. Camoflauge.TopSurface = "Smooth"
  2078. Camoflauge.BottomSurface = "Smooth"
  2079. Camoflauge.Transparency = 0
  2080. Camoflauge.Size = Vector3.new(1,1,1)
  2081. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2082. CamoflaugeMesh.MeshType = "FileMesh"
  2083. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
  2084. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=29796694"
  2085. CamoflaugeMesh.Scale = Vector3.new(10,10,10)
  2086. CaWeld = Instance.new("Weld",Cha)
  2087. CaWeld.Part0 = Cha.Torso
  2088. CaWeld.Part1 = Camoflauge
  2089. CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2090. end
  2091.  
  2092. if ac == 5 then
  2093. Camoflauge=Instance.new('Part',Cha)
  2094. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2095. Camoflauge.CanCollide = true
  2096. Camoflauge.TopSurface = "Smooth"
  2097. Camoflauge.BottomSurface = "Smooth"
  2098. Camoflauge.Transparency = 0
  2099. Camoflauge.Size = Vector3.new(1,1,1)
  2100. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2101. CamoflaugeMesh.MeshType = "FileMesh"
  2102. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset?id=220616206"
  2103. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset?id=220616251"
  2104. CamoflaugeMesh.Scale = Vector3.new(5,5,5)
  2105. CaWeld = Instance.new("Weld",Cha)
  2106. CaWeld.Part0 = Cha.Torso
  2107. CaWeld.Part1 = Camoflauge
  2108. CaWeld.C1 = CFrame.new(0,1,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2109. end
  2110.  
  2111.  
  2112. if ac == 6 then
  2113.  
  2114.  
  2115. Camoflauge = Instance.new("Model")
  2116. p1 = Instance.new("Part", Camoflauge)
  2117. p1.BrickColor = BrickColor.new("White")
  2118. p1.FormFactor = Enum.FormFactor.Custom
  2119. p1.Size = Vector3.new(0.399999708, 6.30000019, 1.4000001)
  2120. p1.CFrame = CFrame.new(-21.8000011, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2121. p1.Anchored = false
  2122. p1.BottomSurface = Enum.SurfaceType.Smooth
  2123. p1.TopSurface = Enum.SurfaceType.Smooth
  2124. p2 = Instance.new("Part", Camoflauge)
  2125. p2.BrickColor = BrickColor.new("Institutional white")
  2126. p2.FormFactor = Enum.FormFactor.Custom
  2127. p2.Size = Vector3.new(5.79999971, 0.399999946, 1.4000001)
  2128. p2.CFrame = CFrame.new(-24.5, 5.0999999, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2129. p2.Anchored = false
  2130. p2.BottomSurface = Enum.SurfaceType.Smooth
  2131. p2.TopSurface = Enum.SurfaceType.Smooth
  2132. p3 = Instance.new("Part", Camoflauge)
  2133. p3.BrickColor = BrickColor.new("Brown")
  2134. p3.FormFactor = Enum.FormFactor.Custom
  2135. p3.Size = Vector3.new(5.5999999, 0.299999952, 5.5999999)
  2136. p3.CFrame = CFrame.new(-24.5, 5.04999971, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2137. p3.Anchored = false
  2138. p3.BottomSurface = Enum.SurfaceType.Smooth
  2139. p3.TopSurface = Enum.SurfaceType.Smooth
  2140. p4 = Instance.new("Part", Camoflauge)
  2141. p4.BrickColor = BrickColor.new("Brown")
  2142. p4.FormFactor = Enum.FormFactor.Custom
  2143. p4.Size = Vector3.new(1.20000005, 1.30000007, 0.299999714)
  2144. p4.CFrame = CFrame.new(-26.7000027, 2.54999995, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2145. p4.Anchored = false
  2146. p4.BottomSurface = Enum.SurfaceType.Smooth
  2147. p4.TopSurface = Enum.SurfaceType.Smooth
  2148. p5 = Instance.new("Part", Camoflauge)
  2149. p5.BrickColor = BrickColor.new("Brown")
  2150. p5.FormFactor = Enum.FormFactor.Custom
  2151. p5.Size = Vector3.new(1.20000005, 1.30000007, 0.299999714)
  2152. p5.CFrame = CFrame.new(-22.3000011, 2.54999995, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2153. p5.Anchored = false
  2154. p5.BottomSurface = Enum.SurfaceType.Smooth
  2155. p5.TopSurface = Enum.SurfaceType.Smooth
  2156. p6 = Instance.new("Part", Camoflauge)
  2157. p6.BrickColor = BrickColor.new("White")
  2158. p6.FormFactor = Enum.FormFactor.Custom
  2159. p6.Size = Vector3.new(0.399999708, 6.30000019, 1.4000001)
  2160. p6.CFrame = CFrame.new(-27.2000027, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2161. p6.Anchored = false
  2162. p6.BottomSurface = Enum.SurfaceType.Smooth
  2163. p6.TopSurface = Enum.SurfaceType.Smooth
  2164. p7 = Instance.new("Part", Camoflauge)
  2165. p7.BrickColor = BrickColor.new("Medium stone grey")
  2166. p7.Transparency = 1
  2167. p7.Name = "Handle"
  2168. p7.FormFactor = Enum.FormFactor.Custom
  2169. p7.Size = Vector3.new(5, 5, 5)
  2170. p7.CFrame = CFrame.new(-24.5, 2.5, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2171. p7.Anchored = false
  2172. p7.BottomSurface = Enum.SurfaceType.Smooth
  2173. p7.TopSurface = Enum.SurfaceType.Smooth
  2174. p8 = Instance.new("Part", Camoflauge)
  2175. p8.BrickColor = BrickColor.new("Brown")
  2176. p8.FormFactor = Enum.FormFactor.Custom
  2177. p8.Size = Vector3.new(5.5999999, 1.79999995, 0.299999714)
  2178. p8.CFrame = CFrame.new(-24.5, 4.0999999, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2179. p8.Anchored = false
  2180. p8.BottomSurface = Enum.SurfaceType.Smooth
  2181. p8.TopSurface = Enum.SurfaceType.Smooth
  2182. p9 = Instance.new("Part", Camoflauge)
  2183. p9.BrickColor = BrickColor.new("Brown")
  2184. p9.FormFactor = Enum.FormFactor.Custom
  2185. p9.Size = Vector3.new(0.299999714, 6.30000019, 5)
  2186. p9.CFrame = CFrame.new(-21.8500004, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2187. p9.Anchored = false
  2188. p9.BottomSurface = Enum.SurfaceType.Smooth
  2189. p9.TopSurface = Enum.SurfaceType.Smooth
  2190. p10 = Instance.new("Part", Camoflauge)
  2191. p10.BrickColor = BrickColor.new("Brown")
  2192. p10.FormFactor = Enum.FormFactor.Custom
  2193. p10.Size = Vector3.new(5.5999999, 3.20000005, 0.299999714)
  2194. p10.CFrame = CFrame.new(-24.5, 0.300000072, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2195. p10.Anchored = false
  2196. p10.BottomSurface = Enum.SurfaceType.Smooth
  2197. p10.TopSurface = Enum.SurfaceType.Smooth
  2198. p11 = Instance.new("Part", Camoflauge)
  2199. p11.BrickColor = BrickColor.new("Brown")
  2200. p11.FormFactor = Enum.FormFactor.Custom
  2201. p11.Size = Vector3.new(5.5999999, 6.30000019, 0.299999714)
  2202. p11.CFrame = CFrame.new(-24.5, 1.85000002, -6.8499999, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2203. p11.Anchored = false
  2204. p11.BottomSurface = Enum.SurfaceType.Smooth
  2205. p11.TopSurface = Enum.SurfaceType.Smooth
  2206. p12 = Instance.new("Part", Camoflauge)
  2207. p12.BrickColor = BrickColor.new("Brown")
  2208. p12.FormFactor = Enum.FormFactor.Custom
  2209. p12.Size = Vector3.new(0.299999714, 6.30000019, 5)
  2210. p12.CFrame = CFrame.new(-27.1500015, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2211. p12.Anchored = false
  2212. p12.BottomSurface = Enum.SurfaceType.Smooth
  2213. p12.TopSurface = Enum.SurfaceType.Smooth
  2214. w1 = Instance.new("Weld", p7)
  2215. w1.Name = "BTWeld"
  2216. w1.Part0 = p7
  2217. w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2218. w1.Part1 = p1
  2219. w1.C1 = CFrame.new(-2.69999886, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2220. w2 = Instance.new("Weld", p7)
  2221. w2.Name = "BTWeld"
  2222. w2.Part0 = p7
  2223. w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2224. w2.Part1 = p2
  2225. w2.C1 = CFrame.new(0, -2.5999999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2226. w3 = Instance.new("Weld", p7)
  2227. w3.Name = "BTWeld"
  2228. w3.Part0 = p7
  2229. w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2230. w3.Part1 = p3
  2231. w3.C1 = CFrame.new(0, -2.54999971, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2232. w4 = Instance.new("Weld", p7)
  2233. w4.Name = "BTWeld"
  2234. w4.Part0 = p7
  2235. w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2236. w4.Part1 = p4
  2237. w4.C1 = CFrame.new(2.20000267, -0.0499999523, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2238. w5 = Instance.new("Weld", p7)
  2239. w5.Name = "BTWeld"
  2240. w5.Part0 = p7
  2241. w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2242. w5.Part1 = p5
  2243. w5.C1 = CFrame.new(-2.19999886, -0.0499999523, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2244. w6 = Instance.new("Weld", p7)
  2245. w6.Name = "BTWeld"
  2246. w6.Part0 = p7
  2247. w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2248. w6.Part1 = p6
  2249. w6.C1 = CFrame.new(2.70000267, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2250. w7 = Instance.new("Weld", p7)
  2251. w7.Name = "BTWeld"
  2252. w7.Part0 = p7
  2253. w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2254. w7.Part1 = p8
  2255. w7.C1 = CFrame.new(0, -1.5999999, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2256. w8 = Instance.new("Weld", p7)
  2257. w8.Name = "BTWeld"
  2258. w8.Part0 = p7
  2259. w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2260. w8.Part1 = p9
  2261. w8.C1 = CFrame.new(-2.64999962, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2262. w9 = Instance.new("Weld", p7)
  2263. w9.Name = "BTWeld"
  2264. w9.Part0 = p7
  2265. w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2266. w9.Part1 = p10
  2267. w9.C1 = CFrame.new(0, 2.19999981, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2268. w10 = Instance.new("Weld", p7)
  2269. w10.Name = "BTWeld"
  2270. w10.Part0 = p7
  2271. w10.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2272. w10.Part1 = p11
  2273. w10.C1 = CFrame.new(0, 0.649999976, -2.6500001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2274. w11 = Instance.new("Weld", p7)
  2275. w11.Name = "BTWeld"
  2276. w11.Part0 = p7
  2277. w11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2278. w11.Part1 = p12
  2279. w11.C1 = CFrame.new(2.65000153, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2280.  
  2281. rlwwww = Instance.new("Weld", Cha)
  2282. rlwwww.Part0 = Cha.Torso
  2283. rlwwww.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  2284. rlwwww.Part1 = p7
  2285.  
  2286. Camoflauge.Parent = Cha
  2287. Camoflauge:MakeJoints()
  2288.  
  2289. for i, v in pairs(Camoflauge:GetChildren()) do
  2290. if v:IsA('Part') then
  2291. v.CanCollide = False
  2292. end
  2293. end
  2294.  
  2295.  
  2296. end
  2297.  
  2298.  
  2299.  
  2300. end
  2301. end)
  2302.  
  2303. mouse.KeyDown:connect(function(key)
  2304. key:lower()
  2305. if key == "q" and camo == true then
  2306. camo = false
  2307.  
  2308. Camoflauge:Destroy()
  2309.  
  2310. end
  2311. end)
  2312.  
  2313.  
  2314. mouse.KeyDown:connect(function(key)
  2315. key:lower()
  2316. if key == "c" then
  2317.  
  2318. for i,v in pairs(game.Players:getPlayers()) do
  2319. if v.Name~=Cha.Name then
  2320. for j,k in pairs(v.Character:GetChildren()) do
  2321. if k:IsA("BasePart") and k.Transparency <= 1 then
  2322. D = Instance.new("FloorWire",Cha.Torso)
  2323. D.From = Cha.Torso
  2324. D.To = k
  2325. D.Parent = Workspace.Camera
  2326. D.Transparency = 0.4
  2327. end
  2328. end
  2329. end
  2330. end
  2331.  
  2332. end
  2333. end)
  2334.  
  2335.  
  2336. mouse.KeyDown:connect(function(key)
  2337. key:lower()
  2338. if key:byte() == 48 and laydown == false then
  2339. Humanoid.WalkSpeed=50
  2340. end
  2341. end)
  2342. mouse.KeyUp:connect(function(key)
  2343. key:lower()
  2344. if key:byte() == 48 and laydown == false then
  2345. Humanoid.WalkSpeed=16
  2346. end
  2347. end)
  2348.  
  2349. mouse.KeyDown:connect(function(key)
  2350. key:lower()
  2351. if key:byte() == 48 and laydown == true then
  2352. Humanoid.WalkSpeed=20
  2353. end
  2354. end)
  2355. mouse.KeyUp:connect(function(key)
  2356. key:lower()
  2357. if key:byte() == 48 and laydown == true then
  2358. Humanoid.WalkSpeed=10
  2359. end
  2360. end)
  2361.  
  2362.  
  2363. local sine = 0
  2364. local change = 1
  2365. local val = 0
  2366.  
  2367.  
  2368. coroutine.resume(coroutine.create(function()
  2369. while true do
  2370. swait()
  2371. sine = sine + change
  2372. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2373. local velderp=RootPart.Velocity.y
  2374. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2375. if equipped==true or equipped==false then
  2376. if attack==false then
  2377. idle=idle+1
  2378. else
  2379. idle=0
  2380. end
  2381. if idle>=500 then
  2382. if attack==false then
  2383. --Sheath()
  2384. end
  2385. end
  2386. if RootPart.Velocity.y > 1 and hitfloor==nil and laydown == false then
  2387. Anim="Jump"
  2388. if attack==false then
  2389. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2390. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2391. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(20),math.rad(-10),math.rad(30)),.3)
  2392. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(-30)),.3)
  2393. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2394. end
  2395. elseif RootPart.Velocity.y < -1 and hitfloor==nil and laydown == false then
  2396. Anim="Fall"
  2397. if attack==false then
  2398. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2399. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2400. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(-100),math.rad(30)),.3)
  2401. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(100),math.rad(-30)),.3)
  2402. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2403. end
  2404. elseif torvel<1 and hitfloor~=nil and laydown == false then
  2405. Anim="Idle"
  2406. if attack==false then
  2407. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2408. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-20),math.rad(0)),.3)
  2409. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(-30)),.3)
  2410. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(50)),.3)
  2411. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2412. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2413. end
  2414. elseif torvel>2 and torvel<22 and hitfloor~=nil and laydown == false then
  2415. Anim="Walk"
  2416. if attack==false then
  2417. change=3
  2418. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2419. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2420. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-20),math.rad(-10),math.rad(30)),.3)
  2421. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(10),math.rad(-30)),.3)
  2422. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2423. end
  2424. elseif torvel>=22 and hitfloor~=nil and laydown == false then
  2425. Anim="Run"
  2426. if attack==false then
  2427. change=5
  2428. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2429. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2430. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-20),math.rad(-70),math.rad(30)),.3)
  2431. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(70),math.rad(-30)),.3)
  2432. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2433. end
  2434. end
  2435. end
  2436. end
  2437. end))
  2438.  
  2439. coroutine.resume(coroutine.create(function()
  2440. while true do
  2441. swait()
  2442. sine = sine + change
  2443. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2444. local velderp=RootPart.Velocity.y
  2445. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2446. if equipped==true or equipped==false then
  2447. if attack==false then
  2448. idle=idle+1
  2449. else
  2450. idle=0
  2451. end
  2452. if idle>=500 then
  2453. if attack==false then
  2454. --Sheath()
  2455. end
  2456. end
  2457. if RootPart.Velocity.y > 1 and hitfloor==nil and laydown == true then
  2458. Anim="Jump"
  2459. if attack==false then
  2460. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
  2461. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
  2462. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
  2463. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
  2464. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2465. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2466. end
  2467. elseif RootPart.Velocity.y < -1 and hitfloor==nil and laydown == true then
  2468. Anim="Fall"
  2469. if attack==false then
  2470. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
  2471. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
  2472. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
  2473. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
  2474. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2475. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2476. end
  2477. elseif torvel<1 and hitfloor~=nil and laydown == true then
  2478. Anim="Idle"
  2479. if attack==false then
  2480. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
  2481. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
  2482. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
  2483. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
  2484. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2485. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2486. end
  2487. elseif torvel>2 and torvel<22 and hitfloor~=nil and laydown == true then
  2488. Anim="Walk"
  2489. if attack==false then
  2490. change=3
  2491. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
  2492. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
  2493. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
  2494. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
  2495. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2496. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2497. end
  2498. elseif torvel>=22 and hitfloor~=nil and laydown == true then
  2499. Anim="Run"
  2500. if attack==false then
  2501. change=5
  2502. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
  2503. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
  2504. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
  2505. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
  2506. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2507. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2508. end
  2509. end
  2510. end
  2511. end
  2512. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement