Advertisement
Zach_script_stealer2

DIO GUN

Apr 17th, 2019
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. local plr = game:GetService("Players").LocalPlayer
  146. local deb = false
  147.  
  148. while not plr.Character do wait() end
  149. wait(1)
  150.  
  151. local tstab = {}
  152. local tsstab = {}
  153. local ignlist = {}
  154. local stab = {}
  155.  
  156.  
  157. function plrIgnore(char)
  158. for i,v in pairs(char:GetChildren()) do
  159. if #v:GetChildren() >= 1 then
  160. plrIgnore(v)
  161. end
  162. table.insert(ignlist,v)
  163. end
  164. end
  165.  
  166. function timeStop(target)
  167. for i,v in pairs(target:GetChildren()) do
  168. if #v:GetChildren() >= 1 then
  169. timeStop(v)
  170. end
  171. local isinign = false
  172. for i,b in pairs(ignlist) do
  173. if b == v then
  174. isinign = true
  175. end
  176. end
  177. if isinign == false then
  178. if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("UnionOperation") then
  179. if v.Anchored == false then
  180. table.insert(tstab,v)
  181. v.Anchored = true
  182. end
  183. end
  184. if v:IsA("Sound") then
  185. local isintab = false
  186. for i,b in pairs(stab) do
  187. if v == b[1] then
  188. isintab = true
  189. end
  190. end
  191. if isintab == false then
  192. table.insert(stab,{v,v.Pitch})
  193. end
  194. end
  195. --[[if v:IsA("Script") or v:IsA("LocalScript") then
  196. if v.Disabled == false then
  197. table.insert(tsstab,v)
  198. v.Disabled = true
  199. end
  200. end]]
  201. end
  202. end
  203. local isinign = false
  204. for i,b in pairs(ignlist) do
  205. if b == target then
  206. isinign = true
  207. end
  208. end
  209. if isinign == false then
  210. if target:IsA("Part") or target:IsA("WedgePart") or target:IsA("UnionOperation") then
  211. if target.Anchored == false then
  212. table.insert(tstab,target)
  213. target.Anchored = true
  214. end
  215. end
  216. if target:IsA("Sound") then
  217. table.insert(stab,{target,target.Pitch})
  218. end
  219. end
  220. end
  221.  
  222. plr:GetMouse().KeyDown:connect(function(key)
  223. if key == "r" then
  224. if deb == true then
  225. deb = false
  226. else
  227. print("R!")
  228. deb = true
  229.  
  230. s = Instance.new("Sound",game:GetService("Workspace"))
  231. s.SoundId = "rbxassetid://274698941"
  232. s.Volume = 5
  233. s:Play()
  234.  
  235. wait(2)
  236.  
  237. print("ZA WARUDO!")
  238. local cc = Instance.new("ColorCorrectionEffect",game:GetService("Lighting"))
  239. spawn(function()
  240. plr.Character.Humanoid.WalkSpeed = 0
  241. plr.Character.Humanoid.JumpPower = 0
  242. local p = Instance.new("Part",plr.Character)
  243. p.Transparency = 0.5
  244. p.BrickColor = BrickColor.new("Institutional white")
  245. p.Size = Vector3.new(0.2,0.2,0.2)
  246. p.Anchored = true
  247. p.CanCollide = false
  248. p.CFrame = plr.Character.Torso.CFrame
  249. local m = Instance.new("SpecialMesh",p)
  250. m.MeshType = Enum.MeshType.Sphere
  251.  
  252. local r = 255
  253. local g = 255
  254. local b = 255
  255. local contrast = 0
  256.  
  257. for i=1,50 do
  258. m.Scale = m.Scale + Vector3.new(50,50,50)
  259. p.Transparency = p.Transparency + 0.5/50
  260. r = r - ((255-42)/50)
  261. g = g - ((255-0)/50)
  262. b = b - ((255-255)/50)
  263. contrast = contrast - 2/50
  264. --cc.TintColor = Color3.fromRGB(r,g,b)
  265. cc.Contrast = contrast
  266. for i,v in pairs(stab) do
  267. v[1].Pitch = v[1].Pitch - (v[2]/50)
  268. end
  269. wait()
  270. end
  271. p:Destroy()
  272. plr.Character.Humanoid.WalkSpeed = 16
  273. plr.Character.Humanoid.JumpPower = 50
  274. end)
  275. local sHp = plr.Character.Humanoid.Health
  276. local hplock = plr.Character.Humanoid.HealthChanged:connect(function()
  277. plr.Character.Humanoid.Health = sHp
  278. end)
  279.  
  280. local aNew = game:GetService("Workspace").ChildAdded:connect(function(c)
  281. timeStop(c)
  282. end)
  283.  
  284. for i,v in pairs(ignlist) do
  285. table.remove(ignlist,1)
  286. end
  287. plrIgnore(plr.Character)
  288. timeStop(game:GetService("Workspace"))
  289. while deb ~= false do wait() end
  290. --spawn(function()
  291. local r = 42
  292. local g = 0
  293. local b = 255
  294. local contrast = -2
  295. for i=1,50 do
  296. r = r + ((255-42)/50)
  297. g = g + ((255-0)/50)
  298. b = b + ((255-255)/50)
  299. contrast = contrast + 2/50
  300. --cc.TintColor = Color3.fromRGB(r,g,b)
  301. cc.Contrast = contrast
  302. for i,v in pairs(stab) do
  303. v[1].Pitch = v[1].Pitch + (v[2]/50)
  304. end
  305. wait()
  306. end
  307. cc:Destroy()
  308. --end)
  309. for i,v in pairs(tstab) do
  310. v.Anchored = false
  311. end
  312. for i,v in pairs(tstab) do
  313. table.remove(tstab,1)
  314. end
  315. --table.foreach(stab,print)
  316. for i,v in pairs(stab) do
  317. table.remove(stab,1)
  318. end
  319. --print("---------")
  320. --table.foreach(stab,print)
  321. --[[for i,v in pairs(tsstab) do
  322. v.Disabled = false
  323. end
  324. for i,v in pairs(tsstab) do
  325. table.remove(tsstab,1)
  326. end]]
  327. hplock:Disconnect()
  328. aNew:Disconnect()
  329. deb = false
  330. end
  331. end
  332. end)
  333.  
  334.  
  335. wait(0.5)
  336. Player=game:GetService("Players").LocalPlayer
  337. Character=Player.Character
  338. PlayerGui=Player.PlayerGui
  339. Backpack=Player.Backpack
  340. Torso=Character.Torso
  341. Head=Character.Head
  342. Humanoid=Character.Humanoid
  343. m=Instance.new('Model',Character)
  344. LeftArm=Character["Left Arm"]
  345. LeftLeg=Character["Left Leg"]
  346. RightArm=Character["Right Arm"]
  347. RightLeg=Character["Right Leg"]
  348. LS=Torso["Left Shoulder"]
  349. LH=Torso["Left Hip"]
  350. RS=Torso["Right Shoulder"]
  351. RH=Torso["Right Hip"]
  352. Face = Head.face
  353. Neck=Torso.Neck
  354. it=Instance.new
  355. attacktype=1
  356. vt=Vector3.new
  357. cf=CFrame.new
  358. euler=CFrame.fromEulerAnglesXYZ
  359. angles=CFrame.Angles
  360. cloaked=false
  361. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  362. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  363. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  364. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  365. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  366. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  367. RootPart=Character.HumanoidRootPart
  368. RootJoint=RootPart.RootJoint
  369. RootCF=euler(-1.57,0,3.14)
  370. attack = false
  371. attackdebounce = false
  372. deb=false
  373. equipped=true
  374. hand=false
  375. MMouse=nil
  376. combo=0
  377. trispeed=.2
  378. attackmode='none'
  379. local idle=0
  380. local Anim="Idle"
  381.  
  382. it = Instance.new
  383.  
  384. local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
  385. local prt = it("Part",parent)
  386. prt.Name = name
  387. prt.CanCollide = false
  388. prt.BrickColor = BrickColor.new(brkclr)
  389. if brkclr == "Really black" and mtrl == "Neon" then prt.Color = Color3.new(0,0,0) end
  390. prt.Material = mtrl
  391. prt.Reflectance = rfl
  392. prt.Transparency = trns
  393. prt.Size = sz
  394. prt.Anchored = true
  395. return prt
  396. end
  397. local mesh = function(meshtype,parent,meshid,textureid,scale)
  398. local msh = it("SpecialMesh",parent)
  399. if meshtype == "FileMesh" then
  400. msh.MeshId = meshid
  401. msh.TextureId = textureid
  402. end
  403. msh.MeshType = meshtype
  404. msh.Scale = scale
  405. return(msh)
  406. end
  407. local weld = function(part1,part2,x1,y1,z1,x2,y2,z2)
  408. local w = it("Weld",part1)
  409. w.Part0 = part1
  410. w.Part1 = part2
  411. if part1.Anchored or part2.Anchored then
  412. part1.Anchored = false
  413. part2.Anchored = false
  414. end
  415. w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(z2),math.rad(y2),math.rad(x2)))
  416. return(w)
  417. end
  418. local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang)
  419. local emm = it("ParticleEmitter",parent)
  420. emm.Texture = tex
  421. emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
  422. emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
  423. emm.LightEmission = lightem
  424. emm.EmissionDirection = emdir
  425. emm.Lifetime = NumberRange.new(lif)
  426. emm.Rate = rate
  427. emm.Speed = NumberRange.new(speed)
  428. emm.RotSpeed = NumberRange.new(rotspeed)
  429. emm.SpreadAngle = Vector2.new(sprdang,sprdang)
  430. return(emm)
  431. end
  432.  
  433. eye = part("Eye",m,"Bright yellow","Neon",0,0,Vector3.new(0.08,0.175,0.05))
  434. mesh("Sphere",eye,"","",Vector3.new(1,1,1))
  435. weld(Head,eye,-0.11,0.2625,-0.59,0,0,0)
  436.  
  437. p = part("Collar1",m,"Black","Sand",0,0,Vector3.new(1,1,1))
  438. weld(Torso,p,0,1.15,0,0,22.5,190)
  439. mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
  440. p = part("Collar2",m,"Black","Sand",0,0,Vector3.new(1,1,1))
  441. weld(Torso,p,0,1.15,0,0,-22.5,190)
  442. mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
  443. p = part("Collar3",m,"Black","Sand",0,0,Vector3.new(1,1,1))
  444. weld(Torso,p,0,0.9,0.1,0,0,-15)
  445. mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
  446.  
  447.  
  448. p = part("Coat1",m,"Black","Sand",0,0,Vector3.new(2.05,1.55,1.05))
  449. weld(Torso,p,0,0.25,0,0,0,0)
  450. p = part("Coat2",m,"Black","Sand",0,0,Vector3.new(0.55,2.05,1.04))
  451. weld(Torso,p,1,-1.25,0,22,0,0)
  452. p = part("Coat3",m,"Black","Sand",0,0,Vector3.new(0.55,2.05,1.04))
  453. weld(Torso,p,-1,-1.25,0,-22,0,0)
  454. p = part("Coat4",m,"Black","Sand",0,0,Vector3.new(2.1,1.05,0.54))
  455. weld(Torso,p,0,-1,0.24,0,0,0)
  456. p = part("Coat5",m,"Black","Sand",0,0,Vector3.new(0.925,0.75,0.54))
  457. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  458. weld(Torso,p,0.3,-0.75,-0.05,90,0,-90)
  459. p = part("Coat6",m,"Black","Sand",0,0,Vector3.new(0.925,0.75,0.54))
  460. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  461. weld(Torso,p,-0.3,-0.75,-0.05,-90,0,-90)
  462. p = part("Coat7",m,"Black","Sand",0,0,Vector3.new(0.975,0.5,0.75))
  463. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  464. weld(Torso,p,-1.4,-2.45,0,90,0,-90)
  465. p = part("Coat8",m,"Black","Sand",0,0,Vector3.new(0.975,0.5,0.75))
  466. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  467. weld(Torso,p,1.4,-2.45,0,-90,0,-90)
  468. p = part("Coat9",m,"Black","Sand",0,0,Vector3.new(1.05,0.5,0.525))
  469. weld(RightLeg,p,0,0.75,0.25,0,0,0)
  470. p = part("Coat10",m,"Black","Sand",0,0,Vector3.new(1.05,0.5,0.525))
  471. weld(LeftLeg,p,0,0.75,0.25,0,0,0)
  472.  
  473. p = part("Sleeves1",m,"Black","Granite",0,0,Vector3.new(1.1,0.5,1.1))
  474. weld(LeftArm,p,0,0.875,0,0,0,0)
  475. p = part("Sleeves2",m,"Black","Sand",0,0,Vector3.new(1.05,1.5,1.05))
  476. weld(LeftArm,p,0,0.25,0,0,0,0)
  477. p = part("Sleeves3",m,"Bright yellow","Neon",0,0,Vector3.new(0.25,0.5,0.5))
  478. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  479. weld(LeftArm,p,-0.41,0.15,0,0,0,0)
  480. p = part("Sleeves4",m,"Bright yellow","Neon",0,0,Vector3.new(0.25,0.075,0.075))
  481. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  482. weld(LeftArm,p,-0.44,0.15,0,0,0,0)
  483. p = part("Sleeves5",m,"Black","Sand",0,0,Vector3.new(0.25,0.375,0.375))
  484. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  485. weld(LeftArm,p,-0.43,0.15,0,0,0,0)
  486. p = part("Sleeves6",m,"Black","Sand",0,0,Vector3.new(0.25,0.75,0.075))
  487. weld(LeftArm,p,-0.42,0.2,0.0375,0,0,-45)
  488. p = part("Sleeves7",m,"Black","Sand",0,0,Vector3.new(0.25,0.75,0.075))
  489. weld(LeftArm,p,-0.42,0.1,-0.0375,0,0,-45)
  490. p = part("Sleeves8",m,"Black","Granite",0,0,Vector3.new(1.1,0.25,1.1))
  491. weld(LeftArm,p,0,-0.4,0,0,0,0)
  492. p = part("Sleeves9",m,"Black","Granite",0,0,Vector3.new(1.1,0.5,1.1))
  493. weld(RightArm,p,0,0.875,0,0,0,0)
  494.  
  495.  
  496.  
  497. function weld(p0,p1,c0,c1,par)
  498. local w = Instance.new("Weld",p0 or par)
  499. w.Part0 = p0
  500. w.Part1 = p1
  501. w.C0 = c0 or CFrame.new()
  502. w.C1 = c1 or CFrame.new()
  503. return w
  504. end
  505. local motors = {}
  506. function motor(p0,p1,c0,c1,des,vel,par)
  507. local w = Instance.new("Motor6D",p0 or par)
  508. w.Part0 = p0
  509. w.Part1 = p1
  510. w.C0 = c0 or CFrame.new()
  511. w.C1 = c1 or CFrame.new()
  512. w.MaxVelocity = tonumber(vel) or .05
  513. w.DesiredAngle = tonumber(des) or 0
  514. return w
  515. end
  516.  
  517. function lerp(a,b,c)
  518. return a+(b-a)*c
  519. end
  520.  
  521. function ctlerp(c1,c2,al)
  522. local com1 = {c1:components()}
  523. local com2 = {c2:components()}
  524. for i,v in pairs(com1) do
  525. com1[i] = lerp(v,com2[i],al)
  526. end
  527. return CFrame.new(unpack(com1))
  528. end
  529.  
  530. do
  531. local function QuaternionFromCFrame(cf)
  532. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  533. local trace = m00 + m11 + m22
  534. if trace > 0 then
  535. local s = math.sqrt(1 + trace)
  536. local recip = 0.5/s
  537. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  538. else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs 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)) end local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end 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 end function clerp(a,b,t) local qa = {QuaternionFromCFrame(a)} local qb = {QuaternionFromCFrame(b)} local ax, ay, az = a.x, a.y, a.z local bx, by, bz = b.x, b.y, b.z local _t = 1-t return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) end end
  539. function tickwave(time,length,offset) return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length end function invcol(c) c = c.Color return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r)) end local oc = oc or function(...) return ... end local plr = game.Players.LocalPlayer local char = plr.Character local tor = char.Torso local hum = char.Humanoid local vel = Vector3.new() local cf = CFrame.new() local flspd = 0 local keysdown = {} local keypressed = {} local ktime = {} local descendtimer = 0 local possiblefly = 0 local cam = workspace.CurrentCamera local flying = false local moving = false hum.PlatformStand = false local winghats = {"Wings","Angel","EmpyreanreignmentII"} for _,o in pairs(char:GetChildren()) do for i,v in pairs(winghats) do if o.Name:lower() == v:lower() then o:Destroy() end end end local mod = Instance.new("Model",char) mod.Name = "Wings" local topcolor = BrickColor.new("Gold") local feacolor = topcolor local ptrans = 0 local pref = 0 local fire = false local fmcol = Color3.new() local fscol = Color3.new() local part = Instance.new("Part") part.Locked = true part.FormFactor = "Custom" part.Size = Vector3.new(.2,.2,.2) part.TopSurface,part.BottomSurface = 0,0 part.CanCollide = false part.BrickColor = topcolor part.Transparency = ptrans part.Reflectance = pref local ef = Instance.new("Fire",fire and part or nil) ef.Size = .15 ef.Color = fmcol or Color3.new() ef.SecondaryColor = fscol or Color3.new() part:BreakJoints() function newpart() local clone = part:Clone() clone.Parent = mod clone:BreakJoints() return clone end local feath = newpart() feath.BrickColor = feacolor Instance.new("SpecialMesh",feath).MeshType = "Sphere" function newfeather() local clone = feath:Clone() clone.Parent = mod clone:BreakJoints() return clone end local r1 = newpart() r1.Size = Vector3.new(.3,1.5,.3)*1.2 local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1)
  540. local r2 = newpart() r2.Size = Vector3.new(.4,1.8,.4)*1.2 local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1) local r3 = newpart() r3.Size = Vector3.new(.3,2.2,.3)*1.2 local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1) local r4 = newpart() r4.Size = Vector3.new(.25,1.2,.25)*1.2 local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1) local feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.4,3,.3) weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0)) feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.4,2.3,.3) weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0)) feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.35,2.2,.25) weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0)) local rf3 = {} for i=0,7 do feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.45,2.2,.35) table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0))) end local rf2 = {} for i=0,7 do feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.45,2.2-i*.08,.3) table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0))) end local rf1 = {} for i=0,6 do feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  541. table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0))) end local l1 = newpart() l1.Size = Vector3.new(.3,1.5,.3)*1.2 local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1) local l2 = newpart() l2.Size = Vector3.new(.4,1.8,.4)*1.2 local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1) local l3 = newpart() l3.Size = Vector3.new(.3,2.2,.3)*1.2 local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1) local l4 = newpart() l4.Size = Vector3.new(.25,1.2,.25)*1.2 local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1) local feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.4,3,.3) weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0)) feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.4,2.3,.3) weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0)) feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.35,2.2,.25) weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0)) local lf3 = {} for i=0,7 do feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.45,2.2,.35) table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0))) end local lf2 = {} for i=0,7 do feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  542. table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0))) end local lf1 = {} for i=0,6 do feather = newfeather() feather.Mesh.Scale = Vector3.new(1,1,1) feather.Size = Vector3.new(.37,1.65-i*.06,.25) table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0))) end local rwing = {rm1,rm2,rm3,rm4} local lwing = {lm1,lm2,lm3,lm4} local oc0 = {} for i,v in pairs(rwing) do oc0[v] = v.C0 end for i,v in pairs(lwing) do oc0[v] = v.C0 end function gotResized() if lastsize then if tor.Size == lastsize then return end local scaleVec = tor.Size/lastsize for i,v in pairs(oc0) do oc0[i] = v-v.p+scaleVec*v.p end lastsize = tor.Size end lastsize = tor.Size end tor.Changed:connect(function(p) if p == "Size" then gotResized() end end) gotResized() local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;} local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0} local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0} local outnormal = {0,-.2,1.8,0; .05,.05,.1,.05; -.3,0,0,0} local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0} local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; -.2,-.6,0,0} local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0} function setwings(tab,time) time = time or 10 for i=1,4 do rwing[i].DesiredAngle = tab[i] lwing[i].DesiredAngle = tab[i] rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new()) local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new()) end for i,v in pairs(rf1) do v.DesiredAngle = tab[9] v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time end for i,v in pairs(lf1) do v.DesiredAngle = tab[9] v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time end for i,v in pairs(rf2) do v.DesiredAngle = tab[10] v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time end for i,v in pairs(lf2) do v.DesiredAngle = tab[10]
  543. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time end for i,v in pairs(rf3) do v.DesiredAngle = tab[11] v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time end for i,v in pairs(lf3) do v.DesiredAngle = tab[11] v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time end end setwings(outhigh,1) for i,v in pairs(tor:GetChildren()) do if v.ClassName:lower():match("body") then v:Destroy() end end local ctor = tor:Clone() ctor:ClearAllChildren() ctor.Name = "cTorso" ctor.Transparency = 1 ctor.CanCollide = false ctor.FormFactor = "Custom" ctor.Size = Vector3.new(.2,.2,.2) ctor.Parent = mod weld(tor,ctor) local bg = Instance.new("BodyGyro",ctor) bg.maxTorque = Vector3.new() bg.P = 15000 bg.D = 1000 local bv = Instance.new("BodyVelocity",ctor) bv.maxForce = Vector3.new() bv.P = 15000 kd = plr:GetMouse().KeyDown:connect(oc(function(key) keysdown[key] = true keypressed[key] = true if key == "2" then descendtimer = tick() elseif key == " " and tick()-(ktime[key] or 0) < .5 then possiblefly = tick() elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then reqrotx = key == "a" and math.pi*2 or -math.pi*2 end ktime[key] = tick() end)) ku = plr:GetMouse().KeyUp:connect(function(key) keysdown[key] = false if key == " " then descendtimer = tick() end end) function mid(a,b,c) return math.max(a,math.min(b,c or -a)) end function bn(a) return a and 1 or 0 end function gm(tar) local m = 0 for i,v in pairs(tar:GetChildren()) do if v:IsA("BasePart") then m = m + v:GetMass() end m = m + gm(v) end return m end reqrotx = 0 local grav = 196.2 local flyspeed = 80 local maxspeed = 150 local con con = game:GetService("RunService").Stepped:connect(oc(function() if not mod:IsDescendantOf(workspace) then pcall(function() kd:disconnect() end) pcall(function() ku:disconnect() end) bg:Destroy() bv:Destroy() con:disconnect() hum.PlatformStand = false return end
  544. local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity) local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z if flying then local lfldir = fldir fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit local lmoving = moving moving = fldir.magnitude > .1 if lmoving and not moving then idledir = lfldir*Vector3.new(1,0,1) descendtimer = tick() end local dbomb = fldir.Y < -.6 or (moving and keysdown["0"]) if moving and keysdown["0"] and lmoving then fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit end local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0)) local descending = (not moving and keysdown["2"] and not keysdown[" "]) cf = ctlerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07) local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05 hum.PlatformStand = true bg.maxTorque = Vector3.new(1,1,1)*9e5 local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0) reqrotx = reqrotx - reqrotx/10 bv.maxForce = Vector3.new(1,1,1)*9e4*.5 local anioff =(bn(keysdown[" "])-bn(keysdown["2"]))/2 local ani = tickwave(1.5-anioff,1) bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["2"]))*15,0)+vel,.6) vel = moving and cf.lookVector*flspd or Vector3.new() acceleration = moving and (fldir.Y < 0 and (acceleration or 0) + -fldir.Y*grav/60) or lerp((acceleration or 0),0,.02) or 0 flspd = lerp(flspd,moving and math.min(maxspeed,flyspeed + acceleration) or 0,.1) setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15) for i=1,4 do
  545. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2) lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2) end if down.Y < -.85 then local ignlist = {char} local hit,ray repeat hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),ignlist) if hit then if hit.CanCollide then break else table.insert(ignlist,hit) end else break end until false if hit then flying = false hum.PlatformStand = false tor.Velocity = Vector3.new() end end else bg.maxTorque = Vector3.new() bv.maxForce = Vector3.new() local ani = tickwave(walking and .8 or 4.5,1) setwings(keysdown["2"] and outnormal or idle,15) local x,y,z = fspd/160,uspd/700,sspd/900 for i=1,4 do rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)) * CFrame.Angles(0,bn(i==2)*-.1,0),.2) lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)) * CFrame.Angles(0,bn(i==2)*-.1,0),.2) end if keypressed[" "] and not flying and (tick()-possiblefly < .5) then vel = Vector3.new(0,50,0) bv.velocity = vel idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1) cf = tor.CFrame * CFrame.Angles(-.01,0,0) tor.CFrame = cf bg.cframe = cf flystart = tick() flying = true end end keypressed = {} end))
  546.  
  547.  
  548.  
  549. --It's just edit of Sniper gun.
  550. --Bullet Changes:Q / E
  551. --Normal Bullet:Hitted humanoid will die.
  552. --Poisonous Bullet:Shoots Extremely deadly poison.
  553. --Blast Bullet:Now easy to hit!...maybe.
  554. --Explosive Bullet:Extremely strong explode that kill ghosts.
  555. --Script Killer Bullet:Does not do damage but kills script.
  556. --MLG Bullet:.
  557. --Secret:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  558. Ply = game:FindFirstChildOfClass("Players").LocalPlayer lol=false
  559. Char = Ply.Character
  560. Tor = Char.Torso
  561. He = Char.Head
  562. Ne = Tor.Neck
  563. Hu = Char:FindFirstChildOfClass("Humanoid")
  564. LA = Char["Left Arm"]
  565. LL = Char["Left Leg"]
  566. RA = Char["Right Arm"]
  567. RL = Char["Right Leg"]
  568. LS = Tor["Left Shoulder"]
  569. RS = Tor["Right Shoulder"]
  570. LH = Tor["Left Hip"]
  571. RH = Tor["Right Hip"]
  572. Combo = 1
  573. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  574. RP = Char.HumanoidRootPart
  575. RJ = RP.RootJoint
  576. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  577. LHCF = CFrame.Angles(0, math.rad(-90), 0)
  578. RHCF = CFrame.Angles(0, math.rad(90), 0)
  579. attack = false
  580. equipped = false
  581. local Anim = "Idle"
  582. Effects = { }
  583. MLGIMAGE1="rbxassetid://301558913"
  584. MLGIMAGE2="rbxassetid://380038160"
  585. MLGIMAGE3="rbxassetid://387336597"
  586. cam = workspace.CurrentCamera
  587. local RbxUtility = LoadLibrary("RbxUtility")
  588. local Create = RbxUtility.Create
  589. function a(part)
  590. local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=Vector3.new(0,0,0)
  591. end
  592. function ua(part)
  593. if part:IsA("Part")and part.Name~="Effect"then part.Anchored=false end
  594. local c=part:GetChildren()
  595. for i=1,#c do
  596. ua(c[i])
  597. end
  598. end
  599. local m = Create("Model"){
  600. Parent = Char,
  601. Name = "WeaponModel",
  602. }
  603. BulletType=1
  604. RS.Parent = nil
  605. LS.Parent = nil
  606. local txt=Instance.new("BillboardGui",Char)
  607. txt.Adornee=Char.Head
  608. txt.Name="_status"
  609. txt.Size=UDim2.new(300, 0, 3, 0)
  610. txt.StudsOffset=Vector3.new(0, 3, 0)
  611. local text=Instance.new("TextLabel", txt)
  612. text.Size=UDim2.new(1, 0, 1, 0)
  613. text.FontSize="Size24"
  614. text.TextScaled=true
  615. text.TextTransparency=0
  616. text.BackgroundTransparency=1
  617. text.TextStrokeTransparency=0
  618. text.Font="Arcade"text.TextColor3=Color3.new(1,1,0)
  619. text.TextStrokeColor3=Color3.new(0,0,0)text.Text="DIO MEMES"
  620. local music=Instance.new("Sound",script)music.Looped=true music.SoundId="rbxassetid://569913318"music:Play()
  621. RW = Create("Weld"){
  622. Name = "Right Shoulder",
  623. Part0 = Tor ,
  624. C0 = CFrame.new(1.5, 0.5, 0),
  625. C1 = CFrame.new(0, 0.5, 0),
  626. Part1 = RA ,
  627. Parent = Tor ,
  628. }
  629.  
  630. LW = Create("Weld"){
  631. Name = "Left Shoulder",
  632. Part0 = Tor ,
  633. C0 = CFrame.new(-1.5, 0.5, 0),
  634. C1 = CFrame.new(0, 0.5, 0) ,
  635. Part1 = LA ,
  636. Parent = Tor ,
  637. }
  638.  
  639. mouse = Ply:GetMouse()
  640. HitSound=Instance.new("Sound",Ply)HitSound.Volume=100
  641. function RemoveOutlines(part)
  642. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  643. end
  644.  
  645. function CreatePart(FF, Par, Mat, Ref, Tra, BC, Nam, Siz)
  646. local Part = Create("Part"){
  647. formFactor = FF,
  648. Parent = Par,
  649. Reflectance = Ref,
  650. Transparency = Tra,
  651. CanCollide = false,
  652. Locked = true,
  653. BrickColor = BrickColor.new(tostring(BC)),
  654. Name = Nam,
  655. Size = Siz,
  656. Position = Tor.Position,
  657. Material = Mat,
  658. }
  659. RemoveOutlines(Part)
  660. return Part
  661. end
  662.  
  663. function CreateMesh(Ms, Par, MType, MId, OS, Sca)
  664. local Msh = Create(Ms){
  665. Parent = Par,
  666. Offset = OS,
  667. Scale = Sca,
  668. }
  669. if Ms == "SpecialMesh" then
  670. Msh.MeshType = MType
  671. Msh.MeshId = MId
  672. end
  673. end
  674.  
  675. function CreateWeld(Par, PartA, PartB, CA, CB)
  676. local Weld = Create("Weld"){
  677. Parent = Par,
  678. Part0 = PartA,
  679. Part1 = PartB,
  680. C0 = CA,
  681. C1 = CB,
  682. }
  683. return Weld
  684. end
  685. --[[
  686. function CreateSound(id, par, vol, pit)
  687. coroutine.resume(coroutine.create(function()
  688. local sou = Create("Sound"){
  689. Parent = par or workspace,
  690. Volume = vol,
  691. Pitch = pit or 1,
  692. SoundId = id,
  693. }
  694. wait()
  695. sou:play()
  696. end))
  697. end]]--
  698. debri=function(Item,Ltime)game:GetService("Debris"):AddItem(Item,Ltime)end
  699. function CreateSound(Id,par,Volume,spd)local PL=Ply
  700. if PL:FindFirstChild("Sound")then if PL.Sound:FindFirstChildOfClass("Sound")==nil then Instance.new("Sound",PL.Sound)end local smo=PL.Sound:Clone()local e=smo:FindFirstChildOfClass("Sound")e.SoundId=Id e.Volume=Volume if spd~=nil then e.PlaybackSpeed=spd e:Play()smo.Parent=workspace debri(smo,7)end
  701. else local m=Instance.new("Model",PL)m.Name="Sound"Instance.new("Sound",m)local smo=m:Clone()local e=smo:FindFirstChildOfClass("Sound")e.SoundId=Id e.Volume=Volume if spd~=nil then e.PlaybackSpeed=spd debri(smo,7)end
  702. end
  703. end
  704. function clerp(a, b, t)
  705. return a:lerp(b, t)
  706. end
  707.  
  708. function rayCast(Pos, Dir, Max, Ignore)
  709. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  710. end
  711.  
  712. Handle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Bright yellow", "Handle", Vector3.new(0.216133296, 0.432266444, 0.200000003))
  713. Handleweld = CreateWeld(m, RA, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015))
  714. CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  715. FakeHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Bright yellow", "FakeHandle", Vector3.new(0.216133296, 0.432266444, 0.200000003))
  716. FakeHandleweld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1))
  717. Barrel = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Smoky grey", "Barrel", Vector3.new(0.324199915, 0.200000003, 0.216133296))
  718. Barrelweld = CreateWeld(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 5.45991993, 0.648399353, 1.88395493e-016, 1.00281931e-024, -1, 0.999999642, 0, 4.37113812e-008, 0, -0.999999642, -4.73655636e-016))
  719. CreateMesh("CylinderMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.567349613, 1))
  720. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199826, 0.324199826, 0.432266533))
  721. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.378201485, -0.162090302, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  722. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003))
  723. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.03202057, 0.162498474, 0.864542007, 5.96045453e-008, 0.999996662, 2.34803412e-008, 4.76836078e-007, 6.32193187e-009, 0.999997854, 0.999997139, -2.98022425e-008, -4.3312528e-007))
  724. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  725. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003))
  726. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648406029, -0.594371796, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  727. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  728. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.756466568, 0.200000003, 0.432266533))
  729. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.8910985, -0.70243454, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  730. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  731. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296))
  732. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.45885229, -0.832115173, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  733. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1))
  734. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003))
  735. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810516357, -0.81047821, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  736. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  737. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003))
  738. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37740993, -0.594367981, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  739. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  740. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  741. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0540370941, -0.162101746, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1))
  742. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.369587988, 0.358781129, 0.748901784))
  743. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296))
  744. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37741232, -0.702438354, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  745. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  746. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.5, "Bright yellow", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296))
  747. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000377655029, -1.56698084, -1.0320282, -4.17232428e-007, 6.32132613e-009, -0.999997616, -0.999997139, 2.98022425e-008, 2.99015426e-007, -8.70414851e-014, 0.999996722, -2.34809274e-008))
  748. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  749. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.432266563, 2.48553157, 0.216133296))
  750. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 3.51209116, 0.648399353, 1.78814986e-007, -6.32150376e-009, -1, 0.999999642, -5.96046341e-008, 2.22526424e-007, -5.96046341e-008, -0.999999642, 6.32149666e-009))
  751. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  752. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296))
  753. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37741327, -0.486289978, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  754. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  755. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.756466269, 0.432266533))
  756. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.45884228, 0.0540428162, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1))
  757. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  758. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  759. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000377655029, -1.02661896, -0.162124634, 4.37113812e-008, 4.73655636e-016, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  760. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.218294606, 0.239907846, 1.02987504))
  761. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(2.485533, 0.216133222, 0.432266533))
  762. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.02665424, -0.324203491, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  763. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(2.16133285, 0.200000003, 0.432266533))
  764. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.18871307, -0.486282349, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  765. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  766. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003))
  767. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000408172607, 1.19412231, 0.869961739, 4.17229757e-007, 6.32150021e-009, 0.999997854, 8.70414851e-014, -0.999996722, -2.34808173e-008, 0.999997079, 1.49012358e-008, -3.73518958e-007))
  768. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  769. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  770. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000377655029, -1.02661514, -0.378243446, 4.37113812e-008, 4.73655636e-016, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  771. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.229101285, 0.250714511, 2.71571469))
  772. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  773. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, -1.02661896, 1.56696892, -1.93715053e-007, 9.32587256e-015, -0.999999702, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, -6.05967614e-008))
  774. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.218294606, 0.239907846, 1.02987504))
  775. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  776. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0540370941, -0.162101746, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1))
  777. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.369587988, 0.369587809, 0.748901784))
  778. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.29679966, 0.200000003, 0.432266533))
  779. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.864494324, -0.378234863, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1))
  780. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  781. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296))
  782. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.270159721, -0.832111359, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  783. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1))
  784. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.08066642, 0.200000003, 0.432266533))
  785. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.72902441, -0.594367981, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  786. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  787. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  788. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, -1.02661514, 1.35084629, -1.93715053e-007, 9.32587256e-015, -0.999999702, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, -6.05967614e-008))
  789. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.229101285, 0.250714511, 2.71571469))
  790. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.432266563, 0.648399651, 0.216133296))
  791. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.864570618, -1.03203201, 3.57626845e-007, 6.32133856e-009, 0.999997854, 0.999997139, -2.98022425e-008, -3.1391599e-007, -8.70414851e-014, 0.999996722, 2.34809345e-008))
  792. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  793. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003))
  794. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37740993, -0.594367981, -0.161708832, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  795. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  796. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003))
  797. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648406029, -0.594371796, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  798. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  799. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003))
  800. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0540428162, -0.486282349, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  801. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  802. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.864533126, 0.540332973, 0.432266533))
  803. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.972568512, -0.0540428162, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1))
  804. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003))
  805. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810501099, -0.810474396, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  806. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  807. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.5, "Bright yellow", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296))
  808. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.162106514, -1.0320282, 3.57626845e-007, 6.32133856e-009, 0.999997854, 0.999997139, -2.98022425e-008, -3.1391599e-007, -8.70414851e-014, 0.999996722, 2.34809345e-008))
  809. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  810. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216134712, 0.216134697, 0.216134712))
  811. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000408172607, 0.864553452, -1.03203201, 3.57626561e-007, 6.59261232e-008, 1, 0.999999642, 0, -3.1391528e-007, 0, 0.999999642, -6.59261374e-008))
  812. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.40486634, 0.200000003, 0.432266533))
  813. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810516357, -0.70243454, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  814. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  815. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003))
  816. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0540428162, -0.486282349, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  817. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  818. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199915, 0.756466269, 0.432266533))
  819. Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 5.1330142, 0.648399353, 0, 0, -1, 0.999999642, 0, 4.37113812e-008, 0, -0.999999642, -4.73655636e-016))
  820. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  821. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.864533186))
  822. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, -0.324199677, -0.972576141, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008))
  823. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.432266444, 0.216133267))
  824. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.161708832, -0.648399353, -2.86102295e-005, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  825. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  826. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.432266563, 0.216133192, 0.216133267))
  827. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, -0.108055115, -0.432257652, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008))
  828. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  829. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.162475586, -0.486286163, 0.32416153, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  830. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  831. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  832. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.161708832, -0.810497284, 1.62095213, 1.49011559e-008, 0, -0.999999762, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, 5.86125317e-008))
  833. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  834. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.432266384, 0.216133267))
  835. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.162475586, -0.648399353, -2.86102295e-005, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  836. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  837. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  838. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.162475586, -0.810497284, 1.62095213, 1.49011559e-008, 0, -0.999999762, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, 5.86125317e-008))
  839. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  840. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.432266563, 0.216133237, 0.216133267))
  841. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.324203491, 2.37740946, 1.06338617e-018, 5.01342412e-010, 0.999999404, 1.49011701e-008, -0.999999285, 5.01343078e-010, 0.999999285, 1.49011701e-008, 4.37113634e-008))
  842. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.216133296))
  843. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.108070374, -0.108057022, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008))
  844. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  845. Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.161708832, -0.486286163, 0.32416153, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008))
  846. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  847. MagHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "MagHandle", Vector3.new(0.432266504, 0.324199826, 0.216133296))
  848. MagHandleweld = CreateWeld(m, FakeHandle, MagHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648423195, -0.0540428162, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  849. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296))
  850. Partweld = CreateWeld(m, MagHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.270163536, 0, 0, 0.999999642, 0, 0, 0, 0.999999642, -0, 0, -0, 1))
  851. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  852. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296))
  853. Partweld = CreateWeld(m, MagHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.270174026, 0, 0, 0.999999642, 0, 0, 0, 0.999999642, -0, 0, -0, 1))
  854. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  855. BoltHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "BoltHandle", Vector3.new(0.216133282, 1.40486586, 0.216133267))
  856. BoltHandleweld = CreateWeld(m, FakeHandle, BoltHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.540328979, -0.486276627, -0.000385284424, -4.47034729e-008, -0.999999583, -2.42770696e-015, -0.999999642, 0, -4.37113812e-008, 0, 0, -0.99999994))
  857. CreateMesh("CylinderMesh", BoltHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  858. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.216133252, 0.216133267))
  859. Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.70238018, 0, 0.999999523, 4.47034729e-008, 0, 4.47034729e-008, 0.999999642, 0, 0, 0, 0.999999881))
  860. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  861. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199915, 0.324199826, 0.200000003))
  862. Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.015832901, 0.146270752, 0.648381233, 0.707106292, 5.08757338e-008, 0.707106531, 0.707106411, -8.72889849e-009, -0.707106411, 8.94069458e-008, 0.999999404, -5.09424458e-009))
  863. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  864. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199915, 0.200000003, 0.200000003))
  865. Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0158443451, 0.362377167, 0.648385048, 0.707106292, 5.08757338e-008, 0.707106531, 0.707106411, -8.72889849e-009, -0.707106411, 8.94069458e-008, 0.999999404, -5.09424458e-009))
  866. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  867. ScopeZoom = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Bright violet", "ScopeZoom", Vector3.new(0.216133296, 0.200000003, 0.200000003))
  868. ScopeZoomweld = CreateWeld(m, FakeHandle, ScopeZoom, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.72752714, -1.03763962, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1))
  869.  
  870. local PE1 = Create("ParticleEmitter"){
  871. Parent = Barrel,
  872. Color = ColorSequence.new(BrickColor.new("Dark stone grey").Color),
  873. Transparency = NumberSequence.new(0,1),
  874. Size = NumberSequence.new(1),
  875. Texture = "rbxassetid://286322458",
  876. Lifetime = NumberRange.new(5),
  877. Rate = 100000,
  878. VelocitySpread = 180,
  879. Rotation = NumberRange.new(0),
  880. Speed = NumberRange.new(.25),
  881. LightEmission = 1,
  882. LockedToPart = false,
  883. Enabled = false
  884. }
  885. function dDamage(humanoid,bp)
  886. if bp==1 then
  887. humanoid.Health=nil
  888. humanoid.Parent:BreakJoints()
  889. end
  890. if bp==2 then
  891. for i=1,500 do
  892. humanoid.Health=humanoid.Health-humanoid.MaxHealth/25
  893. wait()
  894. end
  895. end
  896. if bp==3 then humanoid.Health=nil end
  897. if bp==5 then local c=humanoid.Parent:GetChildren()for i=1,#c do if c[i]:IsA("LocalScript")and c[i].Name~="Animate"then c[i]:Remove()end end end
  898. if bp==6 then
  899. if humanoid.Parent:FindFirstChild("HumanoidRootPart")~=nil then local idk=humanoid.Parent.HumanoidRootPart
  900. local s=Instance.new("Sound",humanoid)s.SoundId="rbxassetid://182411115"s:Play()local Particle1=Instance.new("ParticleEmitter",idk)Particle1.Texture = MLGIMAGE1
  901. Particle1.Size = NumberSequence.new(1)Particle1.Lifetime = NumberRange.new(1)Particle1.Rate=15
  902. Particle1.Speed=NumberRange.new(0,15)Particle1.RotSpeed=NumberRange.new(-120,120)Particle1.SpreadAngle=Vector2.new(360,360)local Particle2=Particle1:Clone()Particle2.Parent=idk
  903. Particle2.Texture = MLGIMAGE2
  904. local Particle3=Particle1:Clone()Particle3.Parent=idk
  905. Particle3.Texture = MLGIMAGE3
  906. game:GetService("Debris"):AddItem(humanoid.Parent,5)
  907. end
  908. end
  909. if bp==7 then
  910. humanoid.Health=nil
  911. humanoid.Parent:BreakJoints()
  912. end
  913. end
  914. local PE2 = PE1:Clone()
  915. PE2.Parent=Barrel
  916. PE2.Size = NumberSequence.new(7)
  917. PE2.LightEmission = 1
  918. PE2.Texture = "rbxassetid://87729590"
  919. PE2.Lifetime = NumberRange.new(.2)
  920. function Doidk(Part,bp)
  921. if Part.Name~="HumanoidRootPart"then
  922. if tostring(Part.Parent)~=tostring(Ply)and Part.Parent~=nil then
  923. if Part.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  924. dDamage(Part.Parent:FindFirstChildOfClass("Humanoid"),bp)
  925. elseif tostring(Part.Parent.Parent)~=tostring(Ply)and Part.Parent.Parent~=nil then
  926. if Part.Parent.Parent:FindFirstChildOfClass("Humanoid")then
  927. dDamage(Part.Parent.Parent:FindFirstChildOfClass("Humanoid"),bp)
  928. end
  929. end
  930. end
  931. end
  932. end
  933.  
  934. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  935. local prt = CreatePart(3, Char, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  936. prt.Anchored = true
  937. prt.CFrame = cframe
  938. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  939. game:GetService("Debris"):AddItem(prt, 2)
  940. Effects[#Effects + 1] = {
  941. prt,
  942. "Cylinder",
  943. delay,
  944. x3,
  945. y3,
  946. z3
  947. }
  948. end
  949.  
  950. local Ammo = 193984389
  951. local Depleted = false
  952.  
  953. function Shoot(asd, spread1, spread2)
  954. local MainPos = asd.Position
  955. local MainPos2 = mouse.Hit.p
  956. local spread = Vector3.new((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 25
  957. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2 + spread)
  958. local bp=BulletType
  959. local num=5
  960. if bp~=7 then num = 12 else num = 200 end
  961. if Ammo == 0 then
  962. Depleted = true
  963. end
  964. coroutine.resume(coroutine.create(function(Spreaded)
  965. repeat
  966. wait()local hit, pos = rayCast(MainPos, MouseLook.lookVector, 100, RP.Parent)
  967. if bp==7 then hit, pos = rayCast(MainPos, MouseLook.lookVector, 2.5, RP.Parent)end
  968. local TheHit = mouse.Hit.p
  969. local mag = (MainPos - pos).magnitude
  970. local col=BrickColor.new("New Yeller")
  971. if bp==2 then col=BrickColor.new("Bright violet")end
  972. if bp==5 then col=BrickColor.new("Lily white")end
  973. if bp~=7 then
  974. CylinderEffect(col, CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 3, .5, 1, .5, 0.2)
  975. MainPos = MainPos + (MouseLook.lookVector * 100)
  976. else
  977. CylinderEffect(col, CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag *5, 3, .5, 1, .5, 0.2)
  978. MainPos = MainPos + (MouseLook.lookVector * 2.5)
  979. end
  980. num = num - 1
  981. if hit ~= nil then
  982. num = 0
  983. if bp~=4 then
  984. HitSound.SoundId="rbxassetid://268933841"HitSound.Volume=5
  985. if bp==6 then HitSound.SoundId="rbxassetid://460112630"HitSound.Volume=2 end
  986. if bp==7 then local s2=Instance.new("Sound",workspace)s2.SoundId="rbxassetid://159490394"s2.Volume=5 s2:Play()end
  987. HitSound:Play()
  988. local ref = CreatePart(3, workspace, "Neon", 0, 1, BrickColor.new("New Yeller"), "Reference", Vector3.new(1,1,1))
  989. if bp==2 then ref.Color=Color3.new(.25,0,.5)end
  990. if bp==5 then ref.Color=Color3.new(1,1,1)end
  991. if bp==3 then ref.Size=Vector3.new(8,8,8)end
  992. if bp==7 then ref.Size=Vector3.new(50,50,50)end
  993. a(ref)
  994. ref.CFrame = CFrame.new(pos)
  995. ref.Touched:connect(function(Part)Doidk(Part,bp)end)
  996. if bp~=7 then spawn(function()for i=1,20 do ref.Transparency=i/20 ref.CFrame=CFrame.new(pos)*CFrame.Angles(math.random(360),math.random(360),math.random(360))wait()end ref:Remove()end)
  997. else spawn(function()local exp=Instance.new("Explosion",workspace)exp.BlastRadius=50 exp.BlastPressure=1000000 exp.Position=ref.Position exp.Hit:connect(function(party)if party.Name~="Base"and party.Name~="Baseplate"then party.Anchored=false end party:BreakJoints()end)for i=1,120 do ref.Transparency=i/120 ref.CFrame=CFrame.new(pos)*CFrame.Angles(math.random(360),math.random(360),math.random(360))wait()end ref:Remove()end)end
  998. else
  999. HitSound.SoundId="rbxassetid://2248511"HitSound:Play()
  1000. local exp=Instance.new("Explosion",workspace)exp.Position=pos exp.BlastPressure=1/0 exp.BlastRadius=20
  1001. end
  1002. end
  1003. until num <= 0
  1004. end))
  1005. end
  1006. local Aiming = false
  1007. gyro = Instance.new("BodyGyro")
  1008. gyro.Parent = nil
  1009. gyro.P = 1e7
  1010. gyro.D = 1e3
  1011. gyro.MaxTorque = Vector3.new(0,1e7,0)
  1012.  
  1013.  
  1014. local Crouching = false
  1015.  
  1016. function Fire()
  1017. if Aiming == true then
  1018. attack = true
  1019.  
  1020. PE1.Enabled = true
  1021. PE2.Enabled = true
  1022. if BulletType==7 then text.Text="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"end
  1023. if lol then spawn(function()for i=1,20 do
  1024. CreateSound("rbxassetid://132572951", Barrel, 1, .9)
  1025. if BulletType==7 then CreateSound("rbxassetid://539881968", Barrel, 99999999999, 99999999999)else CreateSound("rbxassetid://130767489", Barrel, .99999999999, 99999999999.99999999999)end
  1026. Shoot(Barrel,0,0)wait()end end)
  1027. else
  1028. CreateSound("rbxassetid://178605796", Barrel, 99999999999, .99999999999)
  1029. if BulletType==7 then CreateSound("rbxassetid://539881968", Barrel, 99999999999, 99999999999)else CreateSound("rbxassetid://130767489", Barrel, .99999999999, 99999999999.99999999999)end
  1030. Shoot(Barrel, 0, 0)
  1031. end
  1032. for i = 9999999999999.9999999999999 , 9999999999999.9999999999999 , 9999999999999.9999999999999 do
  1033. wait()
  1034. PE1.Enabled = false
  1035. PE2.Enabled = false
  1036. if Crouching == false and Aiming == true then
  1037. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1038. elseif Crouching == true and Aiming == true then
  1039. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1040. end
  1041. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(-10), math.rad(90)), .3)
  1042. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(-20), math.rad(-90)), .5)
  1043. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.7, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(140)), .5)
  1044. if Crouching == false and Aiming == true then
  1045. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1046. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1047. elseif Crouching == true and Aiming == true then
  1048. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1049. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1050. end
  1051. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1052. end
  1053. PE1.Enabled = false
  1054. PE2.Enabled = false
  1055. for i = 0, 0.001, 0.001 do
  1056. wait()
  1057. if Crouching == false and Aiming == true then
  1058. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1059. elseif Crouching == true and Aiming == true then
  1060. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1061. end
  1062. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .3)
  1063. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .3)
  1064. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .3)
  1065. if Crouching == false and Aiming == true then
  1066. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1067. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1068. elseif Crouching == true and Aiming == true then
  1069. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1070. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1071. end
  1072. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1073. end
  1074. Handleweld.Part0 = LA
  1075. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1076. Handleweld.C1 = CFrame.new(-0.737663269, -0.281144857, 0.33117196, 0.00916702952, 0.939647615, 0.342020333, 0.999940991, -0.0106014106, 0.00232372736, 0.00580918044, 0.341978878, -0.939689875)
  1077. for i = 0, 0.001, 0.001 do
  1078. wait()
  1079. if Crouching == false and Aiming == true then
  1080. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1081. elseif Crouching == true and Aiming == true then
  1082. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1083. end
  1084. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1085. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3)
  1086. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1087. if Crouching == false and Aiming == true then
  1088. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1089. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1090. elseif Crouching == true and Aiming == true then
  1091. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1092. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1093. end
  1094. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1095. end
  1096. CreateSound("rbxassetid://180148413", BoltHandle, .9999999999999, 9999999999999)
  1097. for i = 9999999999999, 9999999999999, 9999999999999.9999999999999 do
  1098. wait()
  1099. if Crouching == false and Aiming == true then
  1100. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1101. elseif Crouching == true and Aiming == true then
  1102. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1103. end
  1104. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1105. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  1106. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1107. if Crouching == false and Aiming == true then
  1108. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1109. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1110. elseif Crouching == true and Aiming == true then
  1111. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1112. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1113. end
  1114. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1115. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1116. end
  1117. for i = 0, 0.001, 0.001 do
  1118. wait()
  1119. if Crouching == false and Aiming == true then
  1120. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1121. elseif Crouching == true and Aiming == true then
  1122. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1123. end
  1124. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1125. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  1126. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1127. if Crouching == false and Aiming == true then
  1128. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1129. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1130. elseif Crouching == true and Aiming == true then
  1131. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1132. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1133. end
  1134. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1135. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1136. end
  1137. for i = 0, 0.001, 0.001 do
  1138. wait()
  1139. if Crouching == false and Aiming == true then
  1140. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1141. elseif Crouching == true and Aiming == true then
  1142. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1143. end
  1144. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1145. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1146. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1147. if Crouching == false and Aiming == true then
  1148. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1149. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1150. elseif Crouching == true and Aiming == true then
  1151. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1152. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1153. end
  1154. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1155. end
  1156. Handleweld.Part0 = RA
  1157. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1158. Handleweld.C1 = CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015)
  1159. attack = false
  1160. text.Text="DIO MEMES"
  1161. end
  1162. end
  1163.  
  1164. local Zoomed = false
  1165.  
  1166. function Reload()
  1167. attack = true
  1168. for i = 0, 0.001, 0.01 do
  1169. wait()
  1170. if Crouching == false and Aiming == true then
  1171. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1172. elseif Crouching == true and Aiming == true then
  1173. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1174. end
  1175. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1176. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3)
  1177. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(120)), .3)
  1178. if Crouching == false and Aiming == true then
  1179. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1180. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1181. elseif Crouching == true and Aiming == true then
  1182. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1183. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1184. end
  1185. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1186. end
  1187. CreateSound("rbxassetid://180148413", FakeHandle, 99999999999999, 99999999999999)
  1188. MagHandleweld.Part0 = LA
  1189. MagHandleweld.C0 = CFrame.new(.5, -1, .6) * CFrame.Angles(1.5, 0, 1.5)
  1190. for i = 0, 0.001, 0.001 do
  1191. wait()
  1192. if Crouching == false and Aiming == true then
  1193. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1194. elseif Crouching == true and Aiming == true then
  1195. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1196. end
  1197. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(5), math.rad(50)), .3)
  1198. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3)
  1199. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(20)), .3)
  1200. if Crouching == false and Aiming == true then
  1201. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1202. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1203. elseif Crouching == true and Aiming == true then
  1204. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1205. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1206. end
  1207. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1208. end
  1209. CreateSound("rbxassetid://178605794", FakeHandle, 999999999999, 9999999999999)
  1210. for i = 0, 0.001, 0.01 do
  1211. wait()
  1212. if Crouching == false and Aiming == true then
  1213. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1214. elseif Crouching == true and Aiming == true then
  1215. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1216. end
  1217. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1218. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-50)), .5)
  1219. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(100)), .5)
  1220. if Crouching == false and Aiming == true then
  1221. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1222. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1223. elseif Crouching == true and Aiming == true then
  1224. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1225. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1226. end
  1227. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1228. end
  1229. MagHandleweld.Part0 = FakeHandle
  1230. MagHandleweld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1231. Ammo = 10892498
  1232. print(Ammo)
  1233. if Depleted == true then
  1234. Depleted = false
  1235. Handleweld.Part0 = LA
  1236. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1237. Handleweld.C1 = CFrame.new(-0.737663269, -0.281144857, 0.33117196, 0.00916702952, 0.939647615, 0.342020333, 0.999940991, -0.0106014106, 0.00232372736, 0.00580918044, 0.341978878, -0.939689875)
  1238. for i = 0, 0.001, 0.01 do
  1239. wait()
  1240. if Crouching == false and Aiming == true then
  1241. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1242. elseif Crouching == true and Aiming == true then
  1243. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1244. end
  1245. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1246. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3)
  1247. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1248. if Crouching == false and Aiming == true then
  1249. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1250. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1251. elseif Crouching == true and Aiming == true then
  1252. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1253. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1254. end
  1255. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1256. end
  1257. CreateSound("rbxassetid://146740582", BoltHandle, .999999999,99999999999999999999)
  1258. for i = 99999999999999999999, 99999999999999999999, 99999999999999999999.99999999999999999999 do
  1259. wait()
  1260. if Crouching == false and Aiming == true then
  1261. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1262. elseif Crouching == true and Aiming == true then
  1263. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1264. end
  1265. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1266. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  1267. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1268. if Crouching == false and Aiming == true then
  1269. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1270. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1271. elseif Crouching == true and Aiming == true then
  1272. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1273. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1274. end
  1275. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1276. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1277. end
  1278. for i = 0, 0.001, 0.01 do
  1279. wait()
  1280. if Crouching == false and Aiming == true then
  1281. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1282. elseif Crouching == true and Aiming == true then
  1283. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1284. end
  1285. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1286. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  1287. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1288. if Crouching == false and Aiming == true then
  1289. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1290. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1291. elseif Crouching == true and Aiming == true then
  1292. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1293. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1294. end
  1295. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1296. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1297. end
  1298. end
  1299. Handleweld.Part0 = RA
  1300. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1301. Handleweld.C1 = CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015)
  1302. attack = false
  1303. end
  1304.  
  1305. mouse.Button1Down:connect(function()
  1306. if attack == false and Depleted == false then
  1307. Fire()
  1308. end
  1309. end)
  1310.  
  1311. mouse.KeyDown:connect(function(k)
  1312. k = k:lower()
  1313. if k == "r" and attack == false then
  1314. Reload()
  1315. elseif k == "f" and Aiming == false then
  1316. Aiming = true
  1317. elseif k == "f" and Aiming == true then
  1318. Aiming = false
  1319. elseif k == "c" and Aiming == true and Crouching == false then
  1320. Crouching = true
  1321. elseif k == "c" and Aiming == true and Crouching == true then
  1322. Crouching = false
  1323. elseif k == "z" and Aiming == true and Zoomed == false then
  1324. Zoomed = true
  1325. CreateSound("rbxassetid://180144779", FakeHandle, 1, 1)
  1326. for i = 0, 1, 0.2 do
  1327. wait()
  1328. cam.FieldOfView = cam.FieldOfView - 5
  1329. end
  1330. Ply.CameraMode = "LockFirstPerson"
  1331. --Ply.DevEnableMouseLock = false
  1332. cam.FieldOfView = 10
  1333. cam.CameraSubject = ScopeZoom
  1334. mouse.Icon = "rbxassetid://18006519"
  1335. elseif k == "z" and Aiming == true and Zoomed == true then
  1336. Zoomed = false
  1337. CreateSound("rbxassetid://190623951", FakeHandle, 1, 1)
  1338. for i = 0, 1, 0.2 do
  1339. wait()
  1340. cam.FieldOfView = cam.FieldOfView + 5
  1341. end
  1342. Ply.CameraMode = "Classic"
  1343. --Ply.DevEnableMouseLock = true
  1344. cam.FieldOfView = 80
  1345. cam.CameraSubject = Hu
  1346. mouse.Icon = ""
  1347. end
  1348. end)
  1349.  
  1350.  
  1351. local sine = 0
  1352. local change = 1
  1353. local val = 0
  1354. BTMax=6
  1355. game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
  1356. if not Gpe then
  1357. if Key.KeyCode==Enum.KeyCode.Q then
  1358. BulletType=BulletType-1
  1359. if BulletType<=0 then BulletType=1 end
  1360. if BulletType>=BTMax then BulletType=BTMax end
  1361. if BulletType==1 then print("Normal Bullet")end
  1362. if BulletType==2 then print("Poisonous Bullet")end
  1363. if BulletType==3 then print("Blast Bullet")end
  1364. if BulletType==4 then print("Explosion Bullet")end
  1365. if BulletType==5 then print("Script Killing Bullet")end
  1366. if BulletType==6 then print("MLG Bullet")end
  1367. end
  1368. if Key.KeyCode==Enum.KeyCode.E then
  1369. BulletType=BulletType+1
  1370. if BulletType<=0 then BulletType=1 end
  1371. if BulletType>=BTMax then BulletType=BTMax end
  1372. if BulletType==1 then print("Normal Bullet")end
  1373. if BulletType==2 then print("Poisonous Bullet")end
  1374. if BulletType==3 then print("Blast Bullet")end
  1375. if BulletType==4 then print("Explosion Bullet")end
  1376. if BulletType==5 then print("Script Killing Bullet")end
  1377. if BulletType==6 then print("MLG Bullet")end
  1378. end
  1379.  
  1380.  
  1381. end
  1382. end)
  1383. Ply.Chatted:connect(function(cht)if cht=="AAAAAA"then BulletType=7 print("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")end if cht=="supermode"then if lol then lol=false else lol=true end end end)
  1384. spawn(function()
  1385. local PC=Ply.Character
  1386. local Phm=nil
  1387. if PC:FindFirstChildOfClass("Humanoid")~=nil then Phm=PC:FindFirstChildOfClass("Humanoid")end
  1388. while wait()do
  1389. if PC:FindFirstChildOfClass("Humanoid")~=nil then Phm=PC:FindFirstChildOfClass("Humanoid")else Phm=Instance.new("Humanoid",PC)end
  1390. if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else Instance.new("ForceField",PC)end
  1391. Phm.MaxHealth=(1/0)/(1/0)Phm.Health=(1/0)/(1/0)Phm.PlatformStand=false Phm.Name=""
  1392. ua(PC)
  1393. end
  1394. end)
  1395. while true do
  1396. wait()
  1397. sine = sine + change
  1398. local torvel = (RP.Velocity * Vector3.new(1, 0, 1)).magnitude
  1399. local velderp = RP.Velocity.y
  1400. hitfloor, posfloor = rayCast(RP.Position, (CFrame.new(RP.Position, RP.Position - Vector3.new(0, 1, 0))).lookVector, 4, Char)
  1401. if equipped == true or equipped == false then
  1402. if Aiming == true then
  1403. if Crouching == false and Aiming == true then
  1404. Hu.WalkSpeed = 10
  1405. elseif Crouching == true and Aiming == true then
  1406. Hu.WalkSpeed = 5
  1407. end
  1408. gyro.Parent = RP
  1409. local gunpos = Vector3.new(mouse.Hit.p.x, He.Position.Y, mouse.Hit.p.z)
  1410. offset = (Tor.Position.y - mouse.Hit.p.y) / 60
  1411. local mag = (Tor.Position - mouse.Hit.p).magnitude / 80
  1412. offset = offset / mag
  1413. gyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p -RP.CFrame.p).unit * 100)
  1414. elseif Aiming == false then
  1415. Hu.JumpPower = 50
  1416. Hu.WalkSpeed = 16
  1417. gyro.Parent = nil
  1418. end
  1419. if RP.Velocity.y > 1 and hitfloor == nil then
  1420. Anim = "Jump"
  1421. if attack == false and Aiming == false then
  1422. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1423. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  1424. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(-40)), .3)
  1425. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(60)), .3)
  1426. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3)
  1427. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3)
  1428. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  1429. elseif attack == false and Aiming == true then
  1430. if Crouching == false and Aiming == true then
  1431. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1432. elseif Crouching == true and Aiming == true then
  1433. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1434. end
  1435. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1436. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1437. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1438. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1439. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1440. if Crouching == false and Aiming == true then
  1441. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1442. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1443. elseif Crouching == true and Aiming == true then
  1444. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1445. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1446. end
  1447. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1448. end
  1449. elseif RP.Velocity.y < -1 and hitfloor == nil then
  1450. Anim = "Fall"
  1451. if attack == false and Aiming == false then
  1452. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1453. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1454. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-40)), .3)
  1455. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(100)), .3)
  1456. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3)
  1457. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3)
  1458. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  1459. elseif attack == false and Aiming == true then
  1460. if Crouching == false and Aiming == true then
  1461. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1462. elseif Crouching == true and Aiming == true then
  1463. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1464. end
  1465. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1466. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1467. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1468. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1469. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1470. if Crouching == false and Aiming == true then
  1471. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1472. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1473. elseif Crouching == true and Aiming == true then
  1474. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1475. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1476. end
  1477. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1478. end
  1479. elseif torvel < 1 and hitfloor ~= nil then
  1480. Anim = "Idle"
  1481. if attack == false and Aiming == false then
  1482. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1483. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-50)), .3)
  1484. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, 0) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(-40)), .3)
  1485. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(70)), .3)
  1486. RH.C0 = clerp(RH.C0, CFrame.new(.9, -.5, .2) * RHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(0)), .3)
  1487. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -1, -1) * LHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(50)), .3)
  1488. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), .3)
  1489. elseif attack == false and Aiming == true then
  1490. if Crouching == false and Aiming == true then
  1491. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1492. elseif Crouching == true and Aiming == true then
  1493. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1494. end
  1495. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1496. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1497. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1498. if Crouching == false and Aiming == true then
  1499. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1500. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1501. elseif Crouching == true and Aiming == true then
  1502. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1503. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1504. end
  1505. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1506. end
  1507. elseif torvel > 2 and hitfloor ~= nil then
  1508. Anim = "Walk"
  1509. if attack == false and Aiming == false then
  1510. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  1511. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  1512. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-40)), .3)
  1513. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(50)), .3)
  1514. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1515. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1516. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  1517. elseif attack == false and Aiming == true then
  1518. if Crouching == false and Aiming == true then
  1519. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1520. elseif Crouching == true and Aiming == true then
  1521. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1522. end
  1523. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1524. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1525. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1526. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1527. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1528. if Crouching == false and Aiming == true then
  1529. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1530. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1531. elseif Crouching == true and Aiming == true then
  1532. RH.C0 = clerp(RH.C0, CFrame.new(1, -.1, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1533. LH.C0 = clerp(LH.C0, CFrame.new(-1, -.1, -.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1534. end
  1535. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1536. end
  1537. end
  1538.  
  1539. end
  1540. if #Effects > 0 then
  1541. for e = 1, #Effects do
  1542. if Effects[e] ~= nil then
  1543. local Thing = Effects[e]
  1544. if Thing ~= nil then
  1545. local Part = Thing[1]
  1546. local Mode = Thing[2]
  1547. local Delay = Thing[3]
  1548. local IncX = Thing[4]
  1549. local IncY = Thing[5]
  1550. local IncZ = Thing[6]
  1551. if Thing[1].Transparency <= 1 then
  1552. if Thing[2] == "Block1" then
  1553. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1554. Mesh = Thing[1].Mesh
  1555. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1556. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1557. elseif Thing[2] == "Cylinder" then
  1558. Mesh = Thing[1].Mesh
  1559. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1560. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1561. elseif Thing[2] == "Blood" then
  1562. Mesh = Thing[7]
  1563. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1564. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1565. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1566. elseif Thing[2] == "Elec" then
  1567. Mesh = Thing[1].Mesh
  1568. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1569. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1570. elseif Thing[2] == "Disappear" then
  1571. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1572. end
  1573. else
  1574. Part.Parent = nil
  1575. table.remove(Effects, e)
  1576. end
  1577. end
  1578. end
  1579. end
  1580. end
  1581. end
  1582. warn'editted by victoriachristophe for faster firing'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement