Advertisement
samuelrichter66

sns

May 28th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.97 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,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152.  
  153.  
  154.  
  155. Player=game:GetService("Players").LocalPlayer
  156. Character=Player.Character
  157. PlayerGui=Player.PlayerGui
  158. Backpack=Player.Backpack
  159. Torso=Character.Torso
  160. Head=Character.Head
  161. Humanoid=Character.Humanoid
  162. m=Instance.new('Model',Character)
  163. LeftArm=Character["Left Arm"]
  164. LeftLeg=Character["Left Leg"]
  165. RightArm=Character["Right Arm"]
  166. RightLeg=Character["Right Leg"]
  167. LS=Torso["Left Shoulder"]
  168. LH=Torso["Left Hip"]
  169. RS=Torso["Right Shoulder"]
  170. RH=Torso["Right Hip"]
  171. Face = Head.face
  172. Neck=Torso.Neck
  173. it=Instance.new
  174. attacktype=1
  175. vt=Vector3.new
  176. cf=CFrame.new
  177. euler=CFrame.fromEulerAnglesXYZ
  178. angles=CFrame.Angles
  179. cloaked=false
  180. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  181. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  182. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  183. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  184. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  185. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  186. RootPart=Character.HumanoidRootPart
  187. RootJoint=RootPart.RootJoint
  188. RootCF=euler(-1.57,0,3.14)
  189. attack = false
  190. attackdebounce = false
  191. deb=false
  192. equipped=true
  193. hand=false
  194. MMouse=nil
  195. combo=0
  196. mana=0
  197. trispeed=.2
  198. attackmode='none'
  199. local idle=0
  200. local Anim="Idle"
  201. local Effects={}
  202. local gun=false
  203. local shoot=false
  204. player=nil
  205. mana=0
  206.  
  207. mouse=Player:GetMouse()
  208. --save shoulders
  209. RSH, LSH=nil, nil
  210. --welds
  211. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  212. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  213. LH=Torso["Left Hip"]
  214. RH=Torso["Right Hip"]
  215. TorsoColor=Torso.BrickColor
  216. function NoOutline(Part)
  217. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  218. end
  219. player=Player
  220. ch=Character
  221. RSH=ch.Torso["Right Shoulder"]
  222. LSH=ch.Torso["Left Shoulder"]
  223. --
  224. RSH.Parent=nil
  225. LSH.Parent=nil
  226. --
  227. RW.Name="Right Shoulder"
  228. RW.Part0=ch.Torso
  229. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  230. RW.C1=cf(0, 0.5, 0)
  231. RW.Part1=ch["Right Arm"]
  232. RW.Parent=ch.Torso
  233. --
  234. LW.Name="Left Shoulder"
  235. LW.Part0=ch.Torso
  236. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  237. LW.C1=cf(0, 0.5, 0)
  238. LW.Part1=ch["Left Arm"]
  239. LW.Parent=ch.Torso
  240.  
  241. Player=game:GetService('Players').LocalPlayer
  242. Character=Player.Character
  243. Mouse=Player:GetMouse()
  244. m=Instance.new('Model',Character)
  245.  
  246.  
  247. local function weldBetween(a, b)
  248. local weldd = Instance.new("ManualWeld")
  249. weldd.Part0 = a
  250. weldd.Part1 = b
  251. weldd.C0 = CFrame.new()
  252. weldd.C1 = b.CFrame:inverse() * a.CFrame
  253. weldd.Parent = a
  254. return weldd
  255. end
  256.  
  257. it=Instance.new
  258.  
  259. function nooutline(part)
  260. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  261. end
  262.  
  263. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  264. local fp=it("Part")
  265. fp.formFactor=formfactor
  266. fp.Parent=parent
  267. fp.Reflectance=reflectance
  268. fp.Transparency=transparency
  269. fp.CanCollide=false
  270. fp.Locked=true
  271. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  272. fp.Name=name
  273. fp.Size=size
  274. fp.Position=Character.Torso.Position
  275. nooutline(fp)
  276. fp.Material=material
  277. fp:BreakJoints()
  278. return fp
  279. end
  280.  
  281. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  282. local mesh=it(Mesh)
  283. mesh.Parent=part
  284. if Mesh=="SpecialMesh" then
  285. mesh.MeshType=meshtype
  286. mesh.MeshId=meshid
  287. end
  288. mesh.Offset=offset
  289. mesh.Scale=scale
  290. return mesh
  291. end
  292.  
  293. function weld(parent,part0,part1,c0,c1)
  294. local weld=it("Weld")
  295. weld.Parent=parent
  296. weld.Part0=part0
  297. weld.Part1=part1
  298. weld.C0=c0
  299. weld.C1=c1
  300. return weld
  301. end
  302.  
  303.  
  304. Player=game:GetService('Players').LocalPlayer
  305. Character=Player.Character
  306. Mouse=Player:GetMouse()
  307. m=Instance.new('Model',Character)
  308.  
  309.  
  310. local function weldBetween(a, b)
  311. local weldd = Instance.new("ManualWeld")
  312. weldd.Part0 = a
  313. weldd.Part1 = b
  314. weldd.C0 = CFrame.new()
  315. weldd.C1 = b.CFrame:inverse() * a.CFrame
  316. weldd.Parent = a
  317. return weldd
  318. end
  319.  
  320. it=Instance.new
  321.  
  322. function nooutline(part)
  323. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  324. end
  325.  
  326. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  327. local fp=it("Part")
  328. fp.formFactor=formfactor
  329. fp.Parent=parent
  330. fp.Reflectance=reflectance
  331. fp.Transparency=transparency
  332. fp.CanCollide=false
  333. fp.Locked=true
  334. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  335. fp.Name=name
  336. fp.Size=size
  337. fp.Position=Character.Torso.Position
  338. nooutline(fp)
  339. fp.Material=material
  340. fp:BreakJoints()
  341. return fp
  342. end
  343.  
  344. function swait(num)
  345. if num==0 or num==nil then
  346. game:service'RunService'.Stepped:wait(0)
  347. else
  348. for i=0,num do
  349. game:service'RunService'.Stepped:wait(0)
  350. end
  351. end
  352. end
  353.  
  354. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  355. local mesh=it(Mesh)
  356. mesh.Parent=part
  357. if Mesh=="SpecialMesh" then
  358. mesh.MeshType=meshtype
  359. mesh.MeshId=meshid
  360. end
  361. mesh.Offset=offset
  362. mesh.Scale=scale
  363. return mesh
  364. end
  365.  
  366. function weld(parent,part0,part1,c0,c1)
  367. local weld=it("Weld")
  368. weld.Parent=parent
  369. weld.Part0=part0
  370. weld.Part1=part1
  371. weld.C0=c0
  372. weld.C1=c1
  373. return weld
  374. end
  375.  
  376.  
  377. so = function(id,par,vol,pit)
  378. coroutine.resume(coroutine.create(function()
  379. local sou = Instance.new("Sound",par or workspace)
  380. sou.Volume=vol
  381. sou.Pitch=pit or 1
  382. sou.SoundId=id
  383. swait()
  384. sou:play()
  385. game:GetService("Debris"):AddItem(sou,6)
  386. end))
  387. end
  388.  
  389. function clerp(a,b,t)
  390. local qa = {QuaternionFromCFrame(a)}
  391. local qb = {QuaternionFromCFrame(b)}
  392. local ax, ay, az = a.x, a.y, a.z
  393. local bx, by, bz = b.x, b.y, b.z
  394. local _t = 1-t
  395. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  396. end
  397.  
  398. function QuaternionFromCFrame(cf)
  399. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  400. local trace = m00 + m11 + m22
  401. if trace > 0 then
  402. local s = math.sqrt(1 + trace)
  403. local recip = 0.5/s
  404. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  405. else
  406. local i = 0
  407. if m11 > m00 then
  408. i = 1
  409. end
  410. if m22 > (i == 0 and m00 or m11) then
  411. i = 2
  412. end
  413. if i == 0 then
  414. local s = math.sqrt(m00-m11-m22+1)
  415. local recip = 0.5/s
  416. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  417. elseif i == 1 then
  418. local s = math.sqrt(m11-m22-m00+1)
  419. local recip = 0.5/s
  420. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  421. elseif i == 2 then
  422. local s = math.sqrt(m22-m00-m11+1)
  423. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  424. end
  425. end
  426. end
  427.  
  428. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  429. local xs, ys, zs = x + x, y + y, z + z
  430. local wx, wy, wz = w*xs, w*ys, w*zs
  431. local xx = x*xs
  432. local xy = x*ys
  433. local xz = x*zs
  434. local yy = y*ys
  435. local yz = y*zs
  436. local zz = z*zs
  437. 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))
  438. end
  439.  
  440. function QuaternionSlerp(a, b, t)
  441. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  442. local startInterp, finishInterp;
  443. if cosTheta >= 0.0001 then
  444. if (1 - cosTheta) > 0.0001 then
  445. local theta = math.acos(cosTheta)
  446. local invSinTheta = 1/math.sin(theta)
  447. startInterp = math.sin((1-t)*theta)*invSinTheta
  448. finishInterp = math.sin(t*theta)*invSinTheta
  449. else
  450. startInterp = 1-t
  451. finishInterp = t
  452. end
  453. else
  454. if (1+cosTheta) > 0.0001 then
  455. local theta = math.acos(-cosTheta)
  456. local invSinTheta = 1/math.sin(theta)
  457. startInterp = math.sin((t-1)*theta)*invSinTheta
  458. finishInterp = math.sin(t*theta)*invSinTheta
  459. else
  460. startInterp = t-1
  461. finishInterp = t
  462. end
  463. end
  464. 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
  465. end
  466.  
  467. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.583199859, 1.12899995, 0.291599989))
  468. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.939432144, -0.0800132751, 0.07417202, 3.88524768e-011, -0.999999642, -3.21874995e-006, -4.39547563e-008, 3.21874859e-006, -0.999999762, 1, 3.88524733e-011, -4.39579679e-008))
  469. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  470. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.200000003, 0.437399983))
  471. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.67403841, -1.36581421, -0.000153541565, 0.999998808, -9.49777586e-006, 5.19875016e-007, 9.49777677e-006, 0.999999285, 9.36602362e-007, -5.19882917e-007, -9.36585764e-007, 1))
  472. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  473. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.882089853, 0.444689989))
  474. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.800296545, -0.712223053, -0.00235366821, 0.999998808, -3.21874109e-006, 1.5134595e-011, 3.21874541e-006, 0.999999285, -5.05944158e-008, -1.4545953e-011, 5.06054008e-008, 1))
  475. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  476. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.882089734, 0.444689989))
  477. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09152389, -0.712356567, -0.00235652924, 0.999998808, -3.21873927e-006, 1.6579807e-010, 3.21874381e-006, 0.999999285, -5.04028108e-008, -1.65181549e-010, 5.04137958e-008, 1))
  478. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 1))
  479. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.45799983, 0.200000003, 0.200000003))
  480. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.30937195, -1.51124191, -0.000161170959, 0.999998808, -8.8703855e-006, 1.47351429e-007, 8.87038732e-006, 0.999999285, 5.79529001e-007, -1.47355948e-007, -5.79516268e-007, 1))
  481. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 0.728999913))
  482. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.437399924, 0.320760012, 0.200000003))
  483. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.364955187, -0.00199317932, -0.852100372, 0.999999523, -3.21874813e-006, -3.88364896e-011, -4.44827578e-011, -2.5929543e-005, 1, -3.21874995e-006, -0.999999762, -2.59295521e-005))
  484. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.728999913))
  485. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.45799983, 0.200000003, 0.200000003))
  486. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.31080449, -0.092010498, 0.145636559, -0.999998808, 4.36551236e-005, -5.04220998e-006, -4.36550872e-005, -0.999999285, -5.39209395e-006, -5.04243917e-006, -5.39185885e-006, 1))
  487. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 0.728999913))
  488. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.437399983, 0.200000003, 0.200000003))
  489. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000127792358, -0.364368677, 0.928386688, -3.33928938e-007, -1.45202073e-008, 1, -0.999998212, 8.56905217e-007, -3.33930245e-007, -8.56913175e-007, -0.999998689, -1.45370116e-008))
  490. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 0.728999913))
  491. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.45799983, 0.200000003, 0.200000003))
  492. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.30979168, 0.0916519165, -0.000160217285, 0.999998808, -5.46405536e-005, 6.34407297e-006, 5.46404881e-005, 0.999999285, 7.63192747e-006, -6.34448179e-006, -7.63156459e-006, 1))
  493. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 0.728999913))
  494. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.02060008, 0.200000003, 0.437399983))
  495. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09181273, -0.0534973145, -0.000155448914, 0.999998808, -4.4839212e-006, 1.47765633e-007, 4.4839253e-006, 0.999999285, 1.29804931e-007, -1.4776559e-007, -1.2979315e-007, 1))
  496. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  497. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.200000003, 0.444689989))
  498. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.0914371, -1.22605515, -0.00235652924, 0.999998808, -3.21873904e-006, 1.65712805e-010, 3.21874336e-006, 0.999999285, -5.03972259e-008, -1.65110522e-010, 5.04082109e-008, 1))
  499. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  500. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.291599959, 0.200000003, 0.291599989))
  501. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.16585624, 0.191926956, 0.709686279, 0.999999464, -3.21874791e-006, -3.88365659e-011, -4.41632321e-011, -2.58302971e-005, 1, -3.21874973e-006, -0.999999702, -2.58303062e-005))
  502. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.364499956, 0.5))
  503. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.451979935, 0.291599959, 0.291599989))
  504. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000159263611, -0.710388184, -1.16607833, -3.81471243e-011, 3.15851821e-007, -1, 3.21874904e-006, 0.999999225, 3.15858699e-007, 0.99999851, -3.21874404e-006, -3.87393208e-011))
  505. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.45799983, 0.200000003, 0.200000003))
  506. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.31019568, -1.51132965, 0.145642281, 0.999998808, -4.18915306e-006, -3.00069217e-007, 4.18915715e-006, 0.999999285, 5.48566788e-007, 3.00067001e-007, -5.4855667e-007, 1))
  507. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 0.728999913))
  508. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.451979935, 0.200000003, 0.291599989))
  509. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000157356262, -0.929039001, -1.1660713, -3.82887853e-011, 3.15786281e-007, -1, 3.21874836e-006, 0.999998689, 3.15800435e-007, 0.999997497, -3.21873972e-006, -3.8597802e-011))
  510. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999972, 1))
  511. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.291599959, 0.200000003, 0.291599989))
  512. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.16569793, -0.191437721, 0.709644318, 0.999997556, -3.21873995e-006, -3.85535423e-011, -4.39490319e-011, -2.58516266e-005, 1, -3.21874859e-006, -0.999998748, -2.5851672e-005))
  513. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.364499956, 0.5))
  514. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.583199918, 0.200000003, 0.422819972))
  515. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.418209076, -1.23842776, -0.000156402588, -3.24854614e-006, -0.999999285, 3.55812446e-008, 0.999998808, -3.24854159e-006, 1.65825187e-010, -1.65257683e-010, 3.55922296e-008, 1))
  516. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  517. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.291599959, 0.291599959))
  518. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.26317215, -0.976104736, -0.22615242, 0.965924382, -0.258822083, -1.14146879e-008, 0.258822024, 0.965924621, 4.24500755e-008, 3.88524768e-011, -4.39547563e-008, 1))
  519. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.314927936, 0.065609917, 0.0393660143))
  520. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.291599959, 0.200000003, 0.437399983))
  521. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.89302266, -0.0535697937, -0.000152587891, 0.999998808, -4.5850793e-006, 1.49880378e-007, 4.58508566e-006, 0.999999285, 1.56089101e-007, -1.49880719e-007, -1.56078116e-007, 1))
  522. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  523. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.437399983))
  524. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.38961792e-005, 0.490356445, -0.364199638, -2.99582325e-007, -6.02180917e-005, 1, -2.32034063e-006, -0.999999285, -6.02181462e-005, 0.999998808, -2.32035381e-006, 2.994434e-007))
  525. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  526. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.291599959, 0.291599959))
  527. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.26317215, -0.976104736, 0.225384712, 0.965924382, -0.258822083, -1.14146879e-008, 0.258822024, 0.965924621, 4.24500755e-008, 3.88524768e-011, -4.39547563e-008, 1))
  528. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.314927936, 0.065609917, 0.0393660143))
  529. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.728999913, 1.16639984, 0.437399983))
  530. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.9457587, -0.709777832, -0.000155448914, 0.999998808, -3.21873949e-006, 1.65954389e-010, 3.21874381e-006, 0.999999285, -5.04691613e-008, -1.6533766e-010, 5.04801463e-008, 1))
  531. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.200000003, 0.437399983))
  532. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.67437994, -0.0535125732, -0.000153541565, 0.999997854, -1.01730784e-005, 8.16774445e-007, 1.01730793e-005, 0.999998808, 9.45945544e-007, -8.16781551e-007, -9.459186e-007, 1))
  533. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  534. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.437399924, 0.291599989, 0.583199918))
  535. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.364617348, -0.0029964447, -0.855743408, 0.999998569, -1.34116942e-006, -3.47053671e-011, 2.32054653e-012, -2.59204589e-005, 1, -1.34118386e-006, -0.999999046, -2.59205281e-005))
  536. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  537. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.583199859, 0.437399983, 0.291599989))
  538. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.392871857, 0.665061951, 9.53674316e-006, 0.707104027, -0.707108796, -3.11104422e-008, 0.707108617, 0.707104206, 3.10545616e-008, 3.95121678e-011, -4.39540919e-008, 1))
  539. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  540. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.291599929, 0.291599989, 0.291599989))
  541. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000177145004, 0.564125061, 9.53674316e-007, 0.999997616, -1.34116613e-006, -3.4560306e-011, 1.34118523e-006, 0.999998569, 1.4362957e-008, 3.7203407e-011, -1.43125121e-008, 1))
  542. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  543. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.451979935, 0.200000003, 0.291599989))
  544. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000158309937, 0.491680145, -1.16609716, 3.83340928e-011, -3.2800807e-007, 1, -3.21874813e-006, -0.999998271, -3.28027653e-007, 0.999996603, -3.21873608e-006, -3.83994746e-011))
  545. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  546. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.437399983, 0.200000003, 0.291599959))
  547. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000143051147, -0.36475873, -0.709705353, -2.9810667e-007, -5.19605692e-008, -1, -0.999998808, 3.71047872e-006, 2.98106386e-007, 3.71048282e-006, 0.999999285, -5.19516234e-008))
  548. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  549. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.45799983, 0.200000003, 0.200000003))
  550. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.30999005, -0.0919189453, 0.145945549, 0.999997854, -4.86629979e-005, 5.66978451e-006, -4.86629287e-005, -0.999998808, -7.28117811e-006, 5.67012512e-006, 7.28087662e-006, -1))
  551. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 0.728999913))
  552. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.200000003, 0.444689989))
  553. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.800222874, -0.198246002, -0.00235366821, 0.999997854, -3.21873722e-006, 1.53904285e-011, 3.21874518e-006, 0.999998808, -5.05917228e-008, -1.44890983e-011, 5.06090956e-008, 1))
  554. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  555. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.45799983, 0.200000003, 0.200000003))
  556. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.31022596, -1.51136017, 0.145956039, -0.999997854, 3.53223049e-006, 2.70134734e-007, 3.53223777e-006, 0.999998808, -6.16106604e-007, -2.70137036e-007, -6.1612235e-007, -1))
  557. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 0.728999913))
  558. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.200000003, 0.444689989))
  559. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09143639, -0.19814682, -0.00235748291, 0.999997854, -3.21873517e-006, 1.6594022e-010, 3.21874313e-006, 0.999998808, -5.03940498e-008, -1.65039454e-010, 5.04114226e-008, 1))
  560. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  561. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.437399983, 0.291599929, 0.291599959))
  562. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.67572021e-005, 0.417419434, -0.437114239, -2.9943584e-007, -6.01886131e-005, 1, -2.32033972e-006, -0.999998808, -6.01887041e-005, 0.999997854, -2.32034927e-006, 2.99297568e-007))
  563. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  564. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.437399924, 0.30618, 0.291599989))
  565. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.364741802, -0.00200366974, -0.852409363, 0.999996662, -1.34116283e-006, -3.44241267e-011, 2.60720612e-012, -2.59189437e-005, 1, -1.34118636e-006, -0.999998093, -2.5919051e-005))
  566. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  567. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.291599989))
  568. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000154495239, -0.861427307, 0.692502499, 3.78594031e-011, -3.55240161e-007, 1, -3.21874995e-006, -0.999999762, -3.55243458e-007, 0.999999523, -3.21874813e-006, -3.88613447e-011))
  569. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  570. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.291599989))
  571. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000155448914, -0.798744202, 0.892030716, 8.1022975e-008, -3.46195606e-007, 1, 0.258815795, -0.96592629, -3.5537272e-007, 0.965926051, 0.258815855, 1.13396368e-008))
  572. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  573. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.437399983))
  574. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0015001297, 0.292566538, 1.15365219, 3.12335345e-007, -4.39539427e-008, 1, 0.999995768, -3.33794401e-006, -3.12338699e-007, 3.33794924e-006, 0.999996483, 4.39614602e-008))
  575. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  576. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.291599989))
  577. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000155448914, -0.865684509, 0.446048737, -8.09472027e-008, -3.46194952e-007, 0.999999881, -0.258821905, -0.965924382, -3.55352569e-007, 0.965924144, -0.258821964, -1.14146737e-008))
  578. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  579. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.583199978, 0.200000003, 0.422819972))
  580. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.709770203, -1.23946881, -0.000160217285, -3.24852385e-006, -0.999992132, 3.55808609e-008, 0.999991179, -3.2485159e-006, 1.65914657e-010, -1.650627e-010, 3.55984895e-008, 1))
  581. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  582. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.583199918, 0.200000003, 0.422819972))
  583. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00143433, -1.23957133, -0.000152587891, -3.24854568e-006, -0.999998808, 3.55657761e-008, 0.999997854, -3.24853772e-006, 1.65882072e-010, -1.65044547e-010, 3.55831631e-008, 1))
  584. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  585. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.291599929, 0.437399983, 0.437399983))
  586. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.146161556, -0.782676697, -0.000150680542, 0.999998212, 5.22959454e-012, -1.09070107e-010, 2.95585778e-012, 0.999998689, -2.20695888e-008, 1.09791246e-010, 2.20860557e-008, 1))
  587. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.583199918, 0.437399983, 0.874799967))
  588. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00147629, 0.000156402588, -0.000279188156, -3.21875132e-006, -0.999998808, 7.32594145e-008, 4.02800493e-012, -7.32767944e-008, -1, 0.999997854, -3.21874359e-006, 5.03071543e-012))
  589. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  590. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.437399983, 0.451979935, 0.874799967))
  591. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00191640854, 0.000154495239, -1.01012421, 0.999997854, -3.12933344e-006, 2.96914529e-008, 2.96905522e-008, -3.59865062e-008, -1, 3.12934117e-006, 0.999998808, -3.59645895e-008))
  592. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  593. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.437399983))
  594. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00150108337, -0.438556671, 1.15356827, -2.85820761e-007, 4.39538574e-008, -1, -0.99999553, 3.21873426e-006, 2.85824285e-007, 3.21873949e-006, 0.999996245, 4.39614496e-008))
  595. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  596. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.291599959, 0.200000003, 0.437399983))
  597. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.89220023, -1.36561584, -0.000156402588, 0.999996901, -5.73970283e-006, -1.51122748e-007, 5.73971147e-006, 0.999998331, 1.31626024e-007, 1.51122478e-007, -1.31602775e-007, 1))
  598. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  599. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.583199859, 0.728999913, 0.437399983))
  600. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.291358232, -0.927932739, -0.000155448914, 0.999998689, -3.21874586e-006, 9.93332777e-011, 3.21875041e-006, 0.999999166, -4.29978506e-008, -9.8798629e-011, 4.30078941e-008, 1))
  601. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.728999913, 0.200000003))
  602. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.58035278e-005, 0.198898315, -0.509926558, -2.99727873e-007, -6.02475266e-005, 1, -2.32034154e-006, -0.999998808, -6.02476175e-005, 0.999997854, -2.32035086e-006, 2.99589459e-007))
  603. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 0.728999913))
  604. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.02060008, 0.200000003, 0.437399983))
  605. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09126163, -1.36589813, -0.000156402588, 0.999997854, -4.4721055e-006, 1.4908322e-007, 4.47211232e-006, 0.999998808, 1.28626766e-007, -1.49082751e-007, -1.28608519e-007, 1))
  606. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.728999913, 1))
  607. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.583199918))
  608. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000154495239, -1.36552811, -0.291260719, -2.99625952e-007, -8.25790323e-007, -1, 4.11713518e-006, 0.999998808, -8.25775203e-007, 0.999997854, -4.11712836e-006, -2.99622513e-007))
  609. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  610. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.291599959, 0.200000003))
  611. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000155448914, -1.43851089, -0.509871006, -2.99845482e-007, -8.26355517e-007, -1, 4.11713336e-006, 0.999998808, -8.26340283e-007, 0.999997854, -4.11712654e-006, -2.99841957e-007))
  612. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 1, 0.728999913))
  613. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.200000003, 0.444689989))
  614. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.800293684, -1.22616959, -0.00235462189, 0.999997854, -3.21873699e-006, 1.52767417e-011, 3.21874472e-006, 0.999998808, -5.05912112e-008, -1.44038349e-011, 5.0608584e-008, 1))
  615. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.728999913, 0.728999913, 1))
  616. Barrel=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Barrel",Vector3.new(0.400000006, 0.200000003, 0.600000024))
  617. Barrelweld=weld(m,handle,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0258264542, -1.56056881, -0.719982147, 3.88524768e-011, -4.39547563e-008, 1, 0.999999523, -3.21874813e-006, -3.88524699e-011, 3.21874995e-006, 0.999999762, 4.39579679e-008))
  618.  
  619. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle2",Vector3.new(1.01999998, 0.200000003, 1.01999998))
  620. Handle2weld=weld(m,Character["Left Arm"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14440918e-005, 0.100007057, 3.33786011e-006, 3.57715635e-010, -2.95605749e-012, -1, -5.72838985e-008, 0.999996901, -3.06973262e-012, 1, 5.72847938e-008, 3.57715635e-010))
  621. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.600000024, 0.400000036))
  622. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0105714798, -0.00724029541, 0.72002697, -0.00227884948, -0.999994278, -3.14008695e-008, 0.999997258, -0.00227884273, -1.88338817e-007, 1.8826681e-007, -3.1829174e-008, 1))
  623. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.722000003, 0.525999904, 0.05400002))
  624. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.800000012, 0.800000072))
  625. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.600066662, -0.506579161, 1.49494934, 1.88182682e-007, -3.42372061e-007, 1, -0.00156627304, -0.999992847, -3.42080369e-007, 0.999998808, -0.00156626385, -1.88718715e-007))
  626. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  627. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(1.00000012, 0.240000024, 0.400000036))
  628. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.992839813, -0.600031376, -0.713233471, -0.999997497, 0.00225593429, 2.69224472e-007, -2.69153475e-007, 3.17754782e-008, -1, -0.00225594081, -0.999994516, -3.11690336e-008))
  629. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  630. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(1.00000012, 0.240000024, 1))
  631. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00487518311, -0.599974632, -0.0101013184, -1.00000715, 0.00170321832, 2.69357599e-007, -2.69303257e-007, 3.14816688e-008, -0.999999881, -0.00170322636, -1.00000143, -3.10243422e-008))
  632. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  633. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(1.00000012, 0.240000024, 0.400000036))
  634. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.992839813, -0.600029945, 0.686819553, -0.999997497, 0.00225593429, 2.69224472e-007, -2.69153475e-007, 3.17754782e-008, -1, -0.00225594081, -0.999994516, -3.11690336e-008))
  635. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  636. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.60000014, 1.4000001, 0.220000014))
  637. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.294834137, 0.00941085815, 0.600057125, 0.999999285, -0.0015829663, -1.88319888e-007, 0.0015829755, 0.999993324, -2.61565543e-008, 1.88360957e-007, 2.5859805e-008, 1))
  638. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.600000024, 0.400000036))
  639. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00724411011, -0.0133445263, 0.72002697, -0.999997139, 0.00227879803, 1.88339342e-007, -0.00227880478, -0.999994159, -3.14003294e-008, 1.88267336e-007, -3.1828634e-008, 1))
  640. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.722000003, 0.525999904, 0.05400002))
  641. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(1.60000014, 1.80000007, 0.200000003))
  642. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.294578552, 0.00910449028, 0.600059032, 0.999998808, -0.00157502736, -1.88321337e-007, 0.00157503667, 0.999992847, -2.61099142e-008, 1.88362222e-007, 2.58145789e-008, 1))
  643. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.219999999, 0.600000024, 0.600000083))
  644. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600063324, -0.389781237, 1.39486694, -1.88033937e-007, 4.18434638e-007, -1, 0.00156614475, 0.999987364, 4.18147323e-007, 0.999999285, -0.00156612648, -1.88689157e-007))
  645. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  646. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.800000012, 0.800000072))
  647. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600064754, -0.490182877, 1.49465942, -1.88085835e-007, 4.1837248e-007, -1, 0.00147422298, 0.999987543, 4.18102474e-007, 0.999999464, -0.00147420575, -1.88702529e-007))
  648. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  649. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.219999999, 0.600000024, 0.600000083))
  650. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.600065231, -0.410286188, 1.39486694, 1.88056802e-007, -4.03845036e-007, 1, -0.00156614475, -0.999987364, -4.0355755e-007, 0.999999285, -0.00156612648, -1.88689171e-007))
  651. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  652. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  653. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.79465866, 0.00978517532, 0.600064754, 0.999999464, -0.00147420575, -1.88344828e-007, 0.00147422298, 0.999987543, -2.61361475e-008, 1.88383041e-007, 2.58611337e-008, 1))
  654. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(1.00000012, 0.200000003, 0.200000003))
  655. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00502396, -0.790920258, 0.600062847, 0.999999106, -0.00170235953, -1.88335619e-007, 0.00170237955, 0.999987185, -2.6221743e-008, 1.88379886e-007, 2.59036881e-008, 1))
  656. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.00000012, 0.800000072, 0.220000014))
  657. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00543976, -0.291083574, 0.600053787, 0.999999225, -0.00163256016, -1.88321309e-007, 0.00163257925, 0.999987304, -2.62404622e-008, 1.88363799e-007, 2.59356483e-008, 1))
  658. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 1, 0.600000083))
  659. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.600045681, -0.390607357, 1.80615997, 2.48640987e-007, 3.55274381e-007, 0.999999881, 0.00125003362, 0.999989927, -3.55585257e-007, -1.00000167, 0.00125001976, 2.48197068e-007))
  660. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  661. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.219999999, 0.400000036, 0.800000072))
  662. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600056171, -1.7054863, 0.290289164, 1.83715883e-007, 6.05534751e-008, -0.999999881, 1.00000477, -0.00163089298, 1.83613238e-007, -0.00163091009, -0.999993145, -6.08563582e-008))
  663. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  664. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.800000072, 0.240000024, 0.600000024))
  665. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.69277954, -0.600026131, -0.0133347511, -0.999997377, 0.00227887253, 2.69257981e-007, -2.69186216e-007, 3.17775601e-008, -1, -0.00227887928, -0.999994397, -3.11648947e-008))
  666. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  667. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.4000001, 0.220000014, 1.20000005))
  668. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.401924133, -0.600030422, -0.110830545, -0.999998093, 0.00197390979, 2.69301665e-007, -2.69240189e-007, 3.14088879e-008, -1, -0.0019739212, -0.999992132, -3.08790185e-008))
  669. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  670. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000262, 0.200000048, 0.220000014))
  671. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.39399719, 0.0092022419, 0.600039959, 0.999999344, -0.00154708384, -1.88294081e-007, 0.001547102, 0.999987423, -2.61687525e-008, 1.88334241e-007, 2.58800839e-008, 1))
  672. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(1.60000014, 0.200000003, 1.4000001))
  673. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.502429962, -0.600062847, -0.211121082, -0.999997973, 0.00200980925, 2.69314768e-007, -2.69251899e-007, 3.15479625e-008, -1, -0.00200982112, -0.999992013, -3.10083941e-008))
  674. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  675. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(1.00000012, 0.200000003, 0.200000003))
  676. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.60664368, 0.207199812, 0.601732731, 1.00000703, -0.00156512251, -1.88274043e-007, 0.00156513706, 0.999994993, -2.61905004e-008, 1.88313066e-007, 2.58985651e-008, 1))
  677.  
  678. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  679. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  680. end
  681. function Laser(Part,Dmg)
  682. sp = Part.Position
  683. dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(1.57,0,0)
  684. local hit,pos = rayCast(sp,dirr.lookVector,500,Character)
  685. local las=Instance.new("Part",Character)
  686. las.Anchored=true
  687. las.Locked=true
  688. las.CanCollide=false
  689. las.TopSurface=0
  690. las.BottomSurface=0
  691. las.FormFactor = "Custom"
  692. las.BrickColor=BrickColor.new("Toothpaste")
  693. las.Size=Vector3.new(1,1,1)
  694. las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  695. local msh=Instance.new("SpecialMesh",las)
  696. mag = (Part.Position-pos).magnitude
  697. msh.Scale=Vector3.new(0.1,mag,0.1)
  698. coroutine.resume(coroutine.create(function(Part,Mesh)
  699. for i = 0,1,0.1 do
  700. wait()
  701. Part.Transparency = Part.Transparency + 0.1
  702. Mesh.Scale = Mesh.Scale + Vector3.new(0.15,0.7,0.15)
  703. end
  704. Part.Parent = nil
  705. end),las,msh)
  706. if pos ~= nil then
  707. local las2=Instance.new("Part",Character)
  708. las2.Anchored=true
  709. las2.Locked=true
  710. las2.CanCollide=false
  711. las2.TopSurface=0
  712. las2.BottomSurface=0
  713. las2.FormFactor = "Custom"
  714. las2.BrickColor=BrickColor.new("Toothpaste")
  715. las2.Size=Vector3.new(1,1,1)
  716. --las2.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  717. las2.CFrame=CFrame.new(pos) *CFrame.Angles(math.rad(90),0,0)
  718. local msh=Instance.new("SpecialMesh",las2)
  719. msh.MeshType = "Sphere"
  720. mag = (Part.Position-pos).magnitude
  721. msh.Scale=Vector3.new(0.1,0.1,0.1)
  722. coroutine.resume(coroutine.create(function(Part,Mesh)
  723. --wait(10)
  724. for i = 0,1,0.1 do
  725. wait()
  726. Part.Transparency = Part.Transparency + 0.1
  727. Mesh.Scale = Mesh.Scale + Vector3.new(0.5,0,0.5)
  728. end
  729. Part.Parent = nil
  730. end),las2,msh)
  731. end
  732. if hit ~= nil and pos ~= nil then
  733. if hit.Parent.className == "Hat" then
  734. hit:BreakJoints()
  735. hit.Velocity = Vector3.new(math.random(-5,5),20,math.random(-5,5))
  736. end
  737. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  738. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  739. hit.Parent.Humanoid:TakeDamage(Dmg)
  740. end
  741. end
  742. --[[if hit.className == "Part" and hit.Parent:findFirstChild("Humanoid") == nil then
  743. end ]]
  744. end
  745. end
  746.  
  747. FireSounds = {131179973}
  748.  
  749. function PlaySound(id, pitch, parent, volume)
  750. if volume == nil then volume=tonumber(1) end
  751. epicsound = Instance.new("Sound")
  752. epicsound.Name = "Epicosound"
  753. epicsound.SoundId = "rbxassetid://"..id
  754. epicsound.Volume = volume
  755. epicsound.Pitch = pitch
  756. epicsound.Looped = false
  757. epicsound.Parent = parent
  758. wait()
  759. epicsound:Play()
  760. game:service'Debris':AddItem(epicsound, 8)
  761. end
  762.  
  763. FireSound = function(part)
  764. local shot=math.random(0.9, #FireSounds)
  765. PlaySound(FireSounds[shot], 1, part)
  766. end
  767.  
  768. function Blast()
  769. if attack==false then
  770. attack=true
  771. FireSound(Barrel)
  772. Laser(Barrel,20)
  773. for i=0,1,0.3 do
  774. swait()
  775. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(30),math.rad(30)),.3)
  776. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3)
  777. end
  778. attack=false
  779. end
  780. end
  781. function Blast2()
  782. if attack==false then
  783. attack=true
  784. for i=0,1,0.3 do
  785. swait()
  786. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(30),math.rad(30)),.3)
  787. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3)
  788. end
  789. for i=0,1,0.3 do
  790. swait()
  791. FireSound(Barrel)
  792. Laser(Barrel,20)
  793. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(10)),.3)
  794. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3)
  795. end
  796. attack=false
  797. end
  798. end
  799.  
  800. function SpinBlast()
  801. attack=true
  802. for i=0,1,0.1 do
  803. swait()
  804. FireSound(Barrel)
  805. Laser(Barrel,20)
  806. RootJoint.C0=RootCF*euler(0,0,6.6*i)
  807. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(100),math.rad(30)),.3)
  808. end
  809. attack=false
  810. end
  811.  
  812. function Spray()
  813. attack=true
  814. for i=0,1,0.1 do
  815. swait()
  816. handleweld.C0=cf(0,-0.5,0)*euler(0-10*i,0,0)
  817. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(30),math.rad(30)),.3)
  818. end
  819. for i=0,1,0.1 do
  820. swait()
  821. FireSound(Barrel)
  822. Laser(Barrel,20)
  823. handleweld.C0=cf(0,0,0)*euler(0,0,0)
  824. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(30)),.3)
  825. end
  826. for i=0,1,0.1 do
  827. swait()
  828. FireSound(Barrel)
  829. Laser(Barrel,20)
  830. handleweld.C0=cf(0,0,0)*euler(0,0,0)
  831. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(30)),.3)
  832. end
  833. for i=0,1,0.1 do
  834. swait()
  835. FireSound(Barrel)
  836. Laser(Barrel,20)
  837. handleweld.C0=cf(0,0,0)*euler(0,0,0)
  838. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(30)),.3)
  839. end
  840. for i=0,1,0.1 do
  841. swait()
  842. FireSound(Barrel)
  843. Laser(Barrel,20)
  844. handleweld.C0=cf(0,0,0)*euler(0,0,0)
  845. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(30)),.3)
  846. end
  847. attack=false
  848. end
  849.  
  850.  
  851. mouse.Button1Down:connect(function()
  852. if attack==false then
  853. Blast()
  854. end
  855. end)
  856.  
  857. Defending=false
  858.  
  859. mouse.KeyDown:connect(function(k)
  860. k=k:lower()
  861. if k=='q' then
  862. if attack==false then
  863. Blast2()
  864. end
  865. elseif k=='r' then
  866. if attack==false then
  867. SpinBlast()
  868. end
  869. elseif k=='e' then
  870. if attack==false then
  871. Spray()
  872. end
  873. elseif k=='f' then
  874. if Defending==false then
  875. Defending=true
  876. attack=true
  877. elseif Defending==true then
  878. Defending=false
  879. attack=false
  880. end
  881. end
  882. end)
  883.  
  884.  
  885. local sine = 0
  886. local change = 1
  887. local val = 0
  888.  
  889. while true do
  890. swait()
  891. sine = sine + change
  892. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  893. local velderp=RootPart.Velocity.y
  894. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  895. if equipped==true or equipped==false then
  896. if attack==false then
  897. idle=idle+1
  898. else
  899. idle=0
  900. end
  901. if idle>=500 then
  902. if attack==false then
  903. --Sheath()
  904. end
  905. end
  906. if RootPart.Velocity.y > 1 and hitfloor==nil then
  907. Anim="Jump"
  908. if attack==false then
  909. handleweld.C0=cf(0,0,0)*euler(0,0,0)
  910. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-10),math.rad(0),math.rad(30)),.5)
  911. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  912. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  913. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-40)),.3)
  914. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  915. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  916. end
  917. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  918. Anim="Fall"
  919. if attack==false then
  920. handleweld.C0=cf(0,0,0)*euler(0,0,0)
  921. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  922. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-30)),.3)
  923. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  924. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(10)),.3)
  925. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  926. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  927. end
  928. elseif torvel<1 and hitfloor~=nil then
  929. Anim="Idle"
  930. if attack==false then
  931. handleweld.C0=cf(0,0,0)*euler(0,0,0)
  932. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  933. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  934. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(30)),.3)
  935. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-20)),.3)
  936. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  937. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  938. end
  939. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  940. Anim="Walk"
  941. if attack==false then
  942. change=3
  943. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(10),math.rad(0),math.rad(30)),.5)
  944. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  945. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(100),math.rad(0),math.rad(30)),.3)
  946. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-30)),.3)
  947. end
  948. elseif torvel>=22 and hitfloor~=nil then
  949. Anim="Run"
  950. if attack==false then
  951. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  952. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  953. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  954. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  955. RH.C0=clerp(RH.C0,RHC0,.3)
  956. LH.C0=clerp(LH.C0,LHC0,.3)
  957. end
  958. end
  959. end
  960. if Defending==true then
  961. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(30)),.5)
  962. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  963. LW.C0=clerp(LW.C0,cf(-0,0.6,-1.2)*euler(math.rad(90),math.rad(0),math.rad(120)),.3)
  964. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  965. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  966. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  967. end
  968. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement