Advertisement
Hermaxs

Untitled

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