Advertisement
sneakydodge123

holy

Aug 4th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 104.38 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,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. self._btrs[name] = self.Heartbeat:Connect(fun)
  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. -----uuhhh
  146.  
  147. local plr = game:GetService("Players").LocalPlayer
  148. local deb = false
  149.  
  150. while not plr.Character do wait() end
  151. wait(1)
  152.  
  153. local tstab = {}
  154. local tsstab = {}
  155. local ignlist = {}
  156. local stab = {}
  157.  
  158.  
  159. function plrIgnore(char)
  160. for i,v in pairs(char:GetChildren()) do
  161. if #v:GetChildren() >= 1 then
  162. plrIgnore(v)
  163. end
  164. table.insert(ignlist,v)
  165. end
  166. end
  167.  
  168. function timeStop(target)
  169. for i,v in pairs(target:GetChildren()) do
  170. if #v:GetChildren() >= 1 then
  171. timeStop(v)
  172. end
  173. local isinign = false
  174. for i,b in pairs(ignlist) do
  175. if b == v then
  176. isinign = true
  177. end
  178. end
  179. if isinign == false then
  180. if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("UnionOperation") then
  181. if v.Anchored == false then
  182. table.insert(tstab,v)
  183. v.Anchored = true
  184. end
  185. end
  186. if v:IsA("Sound") then
  187. local isintab = false
  188. for i,b in pairs(stab) do
  189. if v == b[1] then
  190. isintab = true
  191. end
  192. end
  193. if isintab == false then
  194. table.insert(stab,{v,v.Pitch})
  195. end
  196. end
  197. --[[if v:IsA("Script") or v:IsA("LocalScript") then
  198. if v.Disabled == false then
  199. table.insert(tsstab,v)
  200. v.Disabled = true
  201. end
  202. end]]
  203. end
  204. end
  205. local isinign = false
  206. for i,b in pairs(ignlist) do
  207. if b == target then
  208. isinign = true
  209. end
  210. end
  211. if isinign == false then
  212. if target:IsA("Part") or target:IsA("WedgePart") or target:IsA("UnionOperation") then
  213. if target.Anchored == false then
  214. table.insert(tstab,target)
  215. target.Anchored = true
  216. end
  217. end
  218. if target:IsA("Sound") then
  219. table.insert(stab,{target,target.Pitch})
  220. end
  221. end
  222. end
  223.  
  224. plr:GetMouse().KeyDown:connect(function(key)
  225. if key == "r" then
  226. if deb == true then
  227. deb = false
  228. else
  229. print("R!")
  230. deb = true
  231.  
  232. s = Instance.new("Sound",game:GetService("Workspace"))
  233. s.SoundId = "rbxassetid://274698941"
  234. s.Volume = 5
  235. s:Play()
  236.  
  237. wait(2)
  238.  
  239. print("ZA WARUDO!")
  240. local cc = Instance.new("ColorCorrectionEffect",game:GetService("Lighting"))
  241. spawn(function()
  242. plr.Character.Humanoid.WalkSpeed = 0
  243. plr.Character.Humanoid.JumpPower = 0
  244. local p = Instance.new("Part",plr.Character)
  245. p.Transparency = 0.5
  246. p.BrickColor = BrickColor.new("Institutional white")
  247. p.Size = Vector3.new(0.2,0.2,0.2)
  248. p.Anchored = true
  249. p.CanCollide = false
  250. p.CFrame = plr.Character.Torso.CFrame
  251. local m = Instance.new("SpecialMesh",p)
  252. m.MeshType = Enum.MeshType.Sphere
  253.  
  254. local r = 255
  255. local g = 255
  256. local b = 255
  257. local contrast = 0
  258.  
  259. for i=1,50 do
  260. m.Scale = m.Scale + Vector3.new(50,50,50)
  261. p.Transparency = p.Transparency + 0.5/50
  262. r = r - ((255-42)/50)
  263. g = g - ((255-0)/50)
  264. b = b - ((255-255)/50)
  265. contrast = contrast - 2/50
  266. --cc.TintColor = Color3.fromRGB(r,g,b)
  267. cc.Contrast = contrast
  268. for i,v in pairs(stab) do
  269. v[1].Pitch = v[1].Pitch - (v[2]/50)
  270. end
  271. wait()
  272. end
  273. p:Destroy()
  274. plr.Character.Humanoid.WalkSpeed = 16
  275. plr.Character.Humanoid.JumpPower = 50
  276. end)
  277. local sHp = plr.Character.Humanoid.Health
  278. local hplock = plr.Character.Humanoid.HealthChanged:connect(function()
  279. plr.Character.Humanoid.Health = sHp
  280. end)
  281.  
  282. local aNew = game:GetService("Workspace").ChildAdded:connect(function(c)
  283. timeStop(c)
  284. end)
  285.  
  286. for i,v in pairs(ignlist) do
  287. table.remove(ignlist,1)
  288. end
  289. plrIgnore(plr.Character)
  290. timeStop(game:GetService("Workspace"))
  291. while deb ~= false do wait() end
  292. --spawn(function()
  293. local r = 42
  294. local g = 0
  295. local b = 255
  296. local contrast = -2
  297. for i=1,50 do
  298. r = r + ((255-42)/50)
  299. g = g + ((255-0)/50)
  300. b = b + ((255-255)/50)
  301. contrast = contrast + 2/50
  302. --cc.TintColor = Color3.fromRGB(r,g,b)
  303. cc.Contrast = contrast
  304. for i,v in pairs(stab) do
  305. v[1].Pitch = v[1].Pitch + (v[2]/50)
  306. end
  307. wait()
  308. end
  309. cc:Destroy()
  310. --end)
  311. for i,v in pairs(tstab) do
  312. v.Anchored = false
  313. end
  314. for i,v in pairs(tstab) do
  315. table.remove(tstab,1)
  316. end
  317. --table.foreach(stab,print)
  318. for i,v in pairs(stab) do
  319. table.remove(stab,1)
  320. end
  321. --print("---------")
  322. --table.foreach(stab,print)
  323. --[[for i,v in pairs(tsstab) do
  324. v.Disabled = false
  325. end
  326. for i,v in pairs(tsstab) do
  327. table.remove(tsstab,1)
  328. end]]
  329. hplock:Disconnect()
  330. aNew:Disconnect()
  331. deb = false
  332. end
  333. end
  334. end)
  335.  
  336.  
  337. wait(0.5)
  338. Player=game:GetService("Players").LocalPlayer
  339. Character=Player.Character
  340. PlayerGui=Player.PlayerGui
  341. Backpack=Player.Backpack
  342. Torso=Character.Torso
  343. Head=Character.Head
  344. Humanoid=Character.Humanoid
  345. m=Instance.new('Model',Character)
  346. LeftArm=Character["Left Arm"]
  347. LeftLeg=Character["Left Leg"]
  348. RightArm=Character["Right Arm"]
  349. RightLeg=Character["Right Leg"]
  350. LS=Torso["Left Shoulder"]
  351. LH=Torso["Left Hip"]
  352. RS=Torso["Right Shoulder"]
  353. RH=Torso["Right Hip"]
  354. Face = Head.face
  355. Neck=Torso.Neck
  356. it=Instance.new
  357. attacktype=1
  358. vt=Vector3.new
  359. cf=CFrame.new
  360. euler=CFrame.fromEulerAnglesXYZ
  361. angles=CFrame.Angles
  362. cloaked=false
  363. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  364. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  365. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  366. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  367. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  368. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  369. RootPart=Character.HumanoidRootPart
  370. RootJoint=RootPart.RootJoint
  371. RootCF=euler(-1.57,0,3.14)
  372. attack = false
  373. attackdebounce = false
  374. deb=false
  375. equipped=true
  376. hand=false
  377. MMouse=nil
  378. combo=0
  379. trispeed=.2
  380. attackmode='none'
  381. local idle=0
  382. local Anim="Idle"
  383.  
  384. it = Instance.new
  385.  
  386. local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
  387. local prt = it("Part",parent)
  388. prt.Name = name
  389. prt.CanCollide = false
  390. prt.BrickColor = BrickColor.new(brkclr)
  391. if brkclr == "Really black" and mtrl == "Neon" then prt.Color = Color3.new(0,0,0) end
  392. prt.Material = mtrl
  393. prt.Reflectance = rfl
  394. prt.Transparency = trns
  395. prt.Size = sz
  396. prt.Anchored = true
  397. return prt
  398. end
  399. local mesh = function(meshtype,parent,meshid,textureid,scale)
  400. local msh = it("SpecialMesh",parent)
  401. if meshtype == "FileMesh" then
  402. msh.MeshId = meshid
  403. msh.TextureId = textureid
  404. end
  405. msh.MeshType = meshtype
  406. msh.Scale = scale
  407. return(msh)
  408. end
  409. local weld = function(part1,part2,x1,y1,z1,x2,y2,z2)
  410. local w = it("Weld",part1)
  411. w.Part0 = part1
  412. w.Part1 = part2
  413. if part1.Anchored or part2.Anchored then
  414. part1.Anchored = false
  415. part2.Anchored = false
  416. end
  417. w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(z2),math.rad(y2),math.rad(x2)))
  418. return(w)
  419. end
  420. local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang)
  421. local emm = it("ParticleEmitter",parent)
  422. emm.Texture = tex
  423. emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
  424. emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
  425. emm.LightEmission = lightem
  426. emm.EmissionDirection = emdir
  427. emm.Lifetime = NumberRange.new(lif)
  428. emm.Rate = rate
  429. emm.Speed = NumberRange.new(speed)
  430. emm.RotSpeed = NumberRange.new(rotspeed)
  431. emm.SpreadAngle = Vector2.new(sprdang,sprdang)
  432. return(emm)
  433. end
  434.  
  435. eye = part("Eye",m,"Bright yellow","Neon",0,0,Vector3.new(0.08,0.175,0.05))
  436. mesh("Sphere",eye,"","",Vector3.new(1,1,1))
  437. weld(Head,eye,-0.11,0.2625,-0.59,0,0,0)
  438.  
  439. p = part("Collar1",m,"Black","Sand",0,0,Vector3.new(1,1,1))
  440. weld(Torso,p,0,1.15,0,0,22.5,190)
  441. mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
  442. p = part("Collar2",m,"Black","Sand",0,0,Vector3.new(1,1,1))
  443. weld(Torso,p,0,1.15,0,0,-22.5,190)
  444. mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
  445. p = part("Collar3",m,"Black","Sand",0,0,Vector3.new(1,1,1))
  446. weld(Torso,p,0,0.9,0.1,0,0,-15)
  447. mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
  448.  
  449.  
  450. p = part("Coat1",m,"Black","Sand",0,0,Vector3.new(2.05,1.55,1.05))
  451. weld(Torso,p,0,0.25,0,0,0,0)
  452. p = part("Coat2",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("Coat3",m,"Black","Sand",0,0,Vector3.new(0.55,2.05,1.04))
  455. weld(Torso,p,-1,-1.25,0,-22,0,0)
  456. p = part("Coat4",m,"Black","Sand",0,0,Vector3.new(2.1,1.05,0.54))
  457. weld(Torso,p,0,-1,0.24,0,0,0)
  458. p = part("Coat5",m,"Black","Sand",0,0,Vector3.new(0.925,0.75,0.54))
  459. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  460. weld(Torso,p,0.3,-0.75,-0.05,90,0,-90)
  461. p = part("Coat6",m,"Black","Sand",0,0,Vector3.new(0.925,0.75,0.54))
  462. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  463. weld(Torso,p,-0.3,-0.75,-0.05,-90,0,-90)
  464. p = part("Coat7",m,"Black","Sand",0,0,Vector3.new(0.975,0.5,0.75))
  465. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  466. weld(Torso,p,-1.4,-2.45,0,90,0,-90)
  467. p = part("Coat8",m,"Black","Sand",0,0,Vector3.new(0.975,0.5,0.75))
  468. mesh("Wedge",p,"","",Vector3.new(1,1,1))
  469. weld(Torso,p,1.4,-2.45,0,-90,0,-90)
  470. p = part("Coat9",m,"Black","Sand",0,0,Vector3.new(1.05,0.5,0.525))
  471. weld(RightLeg,p,0,0.75,0.25,0,0,0)
  472. p = part("Coat10",m,"Black","Sand",0,0,Vector3.new(1.05,0.5,0.525))
  473. weld(LeftLeg,p,0,0.75,0.25,0,0,0)
  474.  
  475. p = part("Sleeves1",m,"Black","Granite",0,0,Vector3.new(1.1,0.5,1.1))
  476. weld(LeftArm,p,0,0.875,0,0,0,0)
  477. p = part("Sleeves2",m,"Black","Sand",0,0,Vector3.new(1.05,1.5,1.05))
  478. weld(LeftArm,p,0,0.25,0,0,0,0)
  479. p = part("Sleeves3",m,"Bright yellow","Neon",0,0,Vector3.new(0.25,0.5,0.5))
  480. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  481. weld(LeftArm,p,-0.41,0.15,0,0,0,0)
  482. p = part("Sleeves4",m,"Bright yellow","Neon",0,0,Vector3.new(0.25,0.075,0.075))
  483. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  484. weld(LeftArm,p,-0.44,0.15,0,0,0,0)
  485. p = part("Sleeves5",m,"Black","Sand",0,0,Vector3.new(0.25,0.375,0.375))
  486. mesh("Cylinder",p,"","",Vector3.new(1,1,1))
  487. weld(LeftArm,p,-0.43,0.15,0,0,0,0)
  488. p = part("Sleeves6",m,"Black","Sand",0,0,Vector3.new(0.25,0.75,0.075))
  489. weld(LeftArm,p,-0.42,0.2,0.0375,0,0,-45)
  490. p = part("Sleeves7",m,"Black","Sand",0,0,Vector3.new(0.25,0.75,0.075))
  491. weld(LeftArm,p,-0.42,0.1,-0.0375,0,0,-45)
  492. p = part("Sleeves8",m,"Black","Granite",0,0,Vector3.new(1.1,0.25,1.1))
  493. weld(LeftArm,p,0,-0.4,0,0,0,0)
  494. p = part("Sleeves9",m,"Black","Granite",0,0,Vector3.new(1.1,0.5,1.1))
  495. weld(RightArm,p,0,0.875,0,0,0,0)
  496.  
  497.  
  498.  
  499. function weld(p0,p1,c0,c1,par)
  500. local w = Instance.new("Weld",p0 or par)
  501. w.Part0 = p0
  502. w.Part1 = p1
  503. w.C0 = c0 or CFrame.new()
  504. w.C1 = c1 or CFrame.new()
  505. return w
  506. end
  507. local motors = {}
  508. function motor(p0,p1,c0,c1,des,vel,par)
  509. local w = Instance.new("Motor6D",p0 or par)
  510. w.Part0 = p0
  511. w.Part1 = p1
  512. w.C0 = c0 or CFrame.new()
  513. w.C1 = c1 or CFrame.new()
  514. w.MaxVelocity = tonumber(vel) or .05
  515. w.DesiredAngle = tonumber(des) or 0
  516. return w
  517. end
  518.  
  519. function lerp(a,b,c)
  520. return a+(b-a)*c
  521. end
  522.  
  523. function ctlerp(c1,c2,al)
  524. local com1 = {c1:components()}
  525. local com2 = {c2:components()}
  526. for i,v in pairs(com1) do
  527. com1[i] = lerp(v,com2[i],al)
  528. end
  529. return CFrame.new(unpack(com1))
  530. end
  531.  
  532. do
  533. local function QuaternionFromCFrame(cf)
  534. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  535. local trace = m00 + m11 + m22
  536. if trace > 0 then
  537. local s = math.sqrt(1 + trace)
  538. local recip = 0.5/s
  539. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  540. else 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
  541. 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)
  542. 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)
  543. 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)
  544. 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]
  545. 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
  546. 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
  547. 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))
  548.  
  549.  
  550.  
  551. --It's just edit of Sniper gun.
  552. --Bullet Changes:Q / E
  553. --Normal Bullet:Hitted humanoid will die.
  554. --Poisonous Bullet:Shoots Extremely deadly poison.
  555. --Blast Bullet:Now easy to hit!...maybe.
  556. --Explosive Bullet:Extremely strong explode that kill ghosts.
  557. --Script Killer Bullet:Does not do damage but kills script.
  558. --MLG Bullet:.
  559. --Secret:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  560. Ply = game:FindFirstChildOfClass("Players").LocalPlayer lol=false
  561. Char = Ply.Character
  562. Tor = Char.Torso
  563. He = Char.Head
  564. Ne = Tor.Neck
  565. Hu = Char:FindFirstChildOfClass("Humanoid")
  566. LA = Char["Left Arm"]
  567. LL = Char["Left Leg"]
  568. RA = Char["Right Arm"]
  569. RL = Char["Right Leg"]
  570. LS = Tor["Left Shoulder"]
  571. RS = Tor["Right Shoulder"]
  572. LH = Tor["Left Hip"]
  573. RH = Tor["Right Hip"]
  574. Combo = 1
  575. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  576. RP = Char.HumanoidRootPart
  577. RJ = RP.RootJoint
  578. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  579. LHCF = CFrame.Angles(0, math.rad(-90), 0)
  580. RHCF = CFrame.Angles(0, math.rad(90), 0)
  581. attack = false
  582. equipped = false
  583. local Anim = "Idle"
  584. Effects = { }
  585. MLGIMAGE1="rbxassetid://301558913"
  586. MLGIMAGE2="rbxassetid://380038160"
  587. MLGIMAGE3="rbxassetid://387336597"
  588. cam = workspace.CurrentCamera
  589. local RbxUtility = LoadLibrary("RbxUtility")
  590. local Create = RbxUtility.Create
  591. function a(part)
  592. local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=Vector3.new(0,0,0)
  593. end
  594. function ua(part)
  595. if part:IsA("Part")and part.Name~="Effect"then part.Anchored=false end
  596. local c=part:GetChildren()
  597. for i=1,#c do
  598. ua(c[i])
  599. end
  600. end
  601. local m = Create("Model"){
  602. Parent = Char,
  603. Name = "WeaponModel",
  604. }
  605. BulletType=1
  606. RS.Parent = nil
  607. LS.Parent = nil
  608. local txt=Instance.new("BillboardGui",Char)
  609. txt.Adornee=Char.Head
  610. txt.Name="_status"
  611. txt.Size=UDim2.new(300, 0, 3, 0)
  612. txt.StudsOffset=Vector3.new(0, 3, 0)
  613. local text=Instance.new("TextLabel", txt)
  614. text.Size=UDim2.new(1, 0, 1, 0)
  615. text.FontSize="Size24"
  616. text.TextScaled=true
  617. text.TextTransparency=0
  618. text.BackgroundTransparency=1
  619. text.TextStrokeTransparency=0
  620. text.Font="Arcade"text.TextColor3=Color3.new(1,1,0)
  621. text.TextStrokeColor3=Color3.new(0,0,0)text.Text="DIO Gun"
  622. local music=Instance.new("Sound",script)music.Looped=true music.SoundId="rbxassetid://569913318"music:Play()
  623. RW = Create("Weld"){
  624. Name = "Right Shoulder",
  625. Part0 = Tor ,
  626. C0 = CFrame.new(1.5, 0.5, 0),
  627. C1 = CFrame.new(0, 0.5, 0),
  628. Part1 = RA ,
  629. Parent = Tor ,
  630. }
  631.  
  632. LW = Create("Weld"){
  633. Name = "Left Shoulder",
  634. Part0 = Tor ,
  635. C0 = CFrame.new(-1.5, 0.5, 0),
  636. C1 = CFrame.new(0, 0.5, 0) ,
  637. Part1 = LA ,
  638. Parent = Tor ,
  639. }
  640.  
  641. mouse = Ply:GetMouse()
  642. HitSound=Instance.new("Sound",Ply)HitSound.Volume=100
  643. function RemoveOutlines(part)
  644. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  645. end
  646.  
  647. function CreatePart(FF, Par, Mat, Ref, Tra, BC, Nam, Siz)
  648. local Part = Create("Part"){
  649. formFactor = FF,
  650. Parent = Par,
  651. Reflectance = Ref,
  652. Transparency = Tra,
  653. CanCollide = false,
  654. Locked = true,
  655. BrickColor = BrickColor.new(tostring(BC)),
  656. Name = Nam,
  657. Size = Siz,
  658. Position = Tor.Position,
  659. Material = Mat,
  660. }
  661. RemoveOutlines(Part)
  662. return Part
  663. end
  664.  
  665. function CreateMesh(Ms, Par, MType, MId, OS, Sca)
  666. local Msh = Create(Ms){
  667. Parent = Par,
  668. Offset = OS,
  669. Scale = Sca,
  670. }
  671. if Ms == "SpecialMesh" then
  672. Msh.MeshType = MType
  673. Msh.MeshId = MId
  674. end
  675. end
  676.  
  677. function CreateWeld(Par, PartA, PartB, CA, CB)
  678. local Weld = Create("Weld"){
  679. Parent = Par,
  680. Part0 = PartA,
  681. Part1 = PartB,
  682. C0 = CA,
  683. C1 = CB,
  684. }
  685. return Weld
  686. end
  687. --[[
  688. function CreateSound(id, par, vol, pit)
  689. coroutine.resume(coroutine.create(function()
  690. local sou = Create("Sound"){
  691. Parent = par or workspace,
  692. Volume = vol,
  693. Pitch = pit or 1,
  694. SoundId = id,
  695. }
  696. wait()
  697. sou:play()
  698. end))
  699. end]]--
  700. debri=function(Item,Ltime)game:GetService("Debris"):AddItem(Item,Ltime)end
  701. function CreateSound(Id,par,Volume,spd)local PL=Ply
  702. 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
  703. 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
  704. end
  705. end
  706. function clerp(a, b, t)
  707. return a:lerp(b, t)
  708. end
  709.  
  710. function rayCast(Pos, Dir, Max, Ignore)
  711. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  712. end
  713.  
  714. Handle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Bright yellow", "Handle", Vector3.new(0.216133296, 0.432266444, 0.200000003))
  715. 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))
  716. CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  717. FakeHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Bright yellow", "FakeHandle", Vector3.new(0.216133296, 0.432266444, 0.200000003))
  718. 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))
  719. Barrel = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Smoky grey", "Barrel", Vector3.new(0.324199915, 0.200000003, 0.216133296))
  720. 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))
  721. CreateMesh("CylinderMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.567349613, 1))
  722. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199826, 0.324199826, 0.432266533))
  723. 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))
  724. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003))
  725. 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))
  726. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  727. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003))
  728. 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))
  729. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  730. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.756466568, 0.200000003, 0.432266533))
  731. 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))
  732. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  733. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296))
  734. 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))
  735. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1))
  736. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003))
  737. 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))
  738. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  739. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003))
  740. 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))
  741. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  742. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  743. 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))
  744. 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))
  745. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296))
  746. 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))
  747. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  748. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.5, "Bright yellow", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296))
  749. 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))
  750. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  751. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.432266563, 2.48553157, 0.216133296))
  752. 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))
  753. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  754. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296))
  755. 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))
  756. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  757. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.756466269, 0.432266533))
  758. 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))
  759. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  760. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  761. 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))
  762. 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))
  763. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(2.485533, 0.216133222, 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.02665424, -0.324203491, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1))
  765. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(2.16133285, 0.200000003, 0.432266533))
  766. 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))
  767. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  768. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003))
  769. 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))
  770. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  771. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  772. 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))
  773. 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))
  774. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  775. 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))
  776. 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))
  777. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  778. 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))
  779. 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))
  780. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.29679966, 0.200000003, 0.432266533))
  781. 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))
  782. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  783. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296))
  784. 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))
  785. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1))
  786. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.08066642, 0.200000003, 0.432266533))
  787. 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))
  788. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  789. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  790. 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))
  791. 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))
  792. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.432266563, 0.648399651, 0.216133296))
  793. 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))
  794. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  795. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003))
  796. 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))
  797. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  798. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003))
  799. 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))
  800. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  801. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003))
  802. 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))
  803. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  804. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.864533126, 0.540332973, 0.432266533))
  805. 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))
  806. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003))
  807. 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))
  808. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  809. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.5, "Bright yellow", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296))
  810. 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))
  811. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  812. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216134712, 0.216134697, 0.216134712))
  813. 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))
  814. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.40486634, 0.200000003, 0.432266533))
  815. 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))
  816. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  817. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003))
  818. 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))
  819. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  820. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199915, 0.756466269, 0.432266533))
  821. 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))
  822. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  823. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.864533186))
  824. 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))
  825. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.432266444, 0.216133267))
  826. 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))
  827. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  828. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.432266563, 0.216133192, 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.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))
  830. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  831. 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))
  832. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  833. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  834. 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))
  835. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  836. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.432266384, 0.216133267))
  837. 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))
  838. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  839. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  840. 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))
  841. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  842. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.432266563, 0.216133237, 0.216133267))
  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.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))
  844. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.216133296))
  845. 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))
  846. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  847. 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))
  848. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  849. MagHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "MagHandle", Vector3.new(0.432266504, 0.324199826, 0.216133296))
  850. 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))
  851. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296))
  852. 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))
  853. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  854. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296))
  855. 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))
  856. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  857. BoltHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "BoltHandle", Vector3.new(0.216133282, 1.40486586, 0.216133267))
  858. 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))
  859. CreateMesh("CylinderMesh", BoltHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  860. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.216133282, 0.216133252, 0.216133267))
  861. 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))
  862. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  863. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199915, 0.324199826, 0.200000003))
  864. 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))
  865. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  866. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.324199915, 0.200000003, 0.200000003))
  867. 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))
  868. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  869. ScopeZoom = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Bright violet", "ScopeZoom", Vector3.new(0.216133296, 0.200000003, 0.200000003))
  870. 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))
  871.  
  872. local PE1 = Create("ParticleEmitter"){
  873. Parent = Barrel,
  874. Color = ColorSequence.new(BrickColor.new("Dark stone grey").Color),
  875. Transparency = NumberSequence.new(0,1),
  876. Size = NumberSequence.new(1),
  877. Texture = "rbxassetid://286322458",
  878. Lifetime = NumberRange.new(5),
  879. Rate = 100000,
  880. VelocitySpread = 180,
  881. Rotation = NumberRange.new(0),
  882. Speed = NumberRange.new(.25),
  883. LightEmission = 1,
  884. LockedToPart = false,
  885. Enabled = false
  886. }
  887. function dDamage(humanoid,bp)
  888. if bp==1 then
  889. humanoid.Health=nil
  890. humanoid.Parent:BreakJoints()
  891. end
  892. if bp==2 then
  893. for i=1,500 do
  894. humanoid.Health=humanoid.Health-humanoid.MaxHealth/25
  895. wait()
  896. end
  897. end
  898. if bp==3 then humanoid.Health=nil end
  899. 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
  900. if bp==6 then
  901. if humanoid.Parent:FindFirstChild("HumanoidRootPart")~=nil then local idk=humanoid.Parent.HumanoidRootPart
  902. local s=Instance.new("Sound",humanoid)s.SoundId="rbxassetid://182411115"s:Play()local Particle1=Instance.new("ParticleEmitter",idk)Particle1.Texture = MLGIMAGE1
  903. Particle1.Size = NumberSequence.new(1)Particle1.Lifetime = NumberRange.new(1)Particle1.Rate=15
  904. 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
  905. Particle2.Texture = MLGIMAGE2
  906. local Particle3=Particle1:Clone()Particle3.Parent=idk
  907. Particle3.Texture = MLGIMAGE3
  908. game:GetService("Debris"):AddItem(humanoid.Parent,5)
  909. end
  910. end
  911. if bp==7 then
  912. humanoid.Health=nil
  913. humanoid.Parent:BreakJoints()
  914. end
  915. end
  916. local PE2 = PE1:Clone()
  917. PE2.Parent=Barrel
  918. PE2.Size = NumberSequence.new(7)
  919. PE2.LightEmission = 1
  920. PE2.Texture = "rbxassetid://87729590"
  921. PE2.Lifetime = NumberRange.new(.2)
  922. function Doidk(Part,bp)
  923. if Part.Name~="HumanoidRootPart"then
  924. if tostring(Part.Parent)~=tostring(Ply)and Part.Parent~=nil then
  925. if Part.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  926. dDamage(Part.Parent:FindFirstChildOfClass("Humanoid"),bp)
  927. elseif tostring(Part.Parent.Parent)~=tostring(Ply)and Part.Parent.Parent~=nil then
  928. if Part.Parent.Parent:FindFirstChildOfClass("Humanoid")then
  929. dDamage(Part.Parent.Parent:FindFirstChildOfClass("Humanoid"),bp)
  930. end
  931. end
  932. end
  933. end
  934. end
  935.  
  936. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  937. local prt = CreatePart(3, Char, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  938. prt.Anchored = true
  939. prt.CFrame = cframe
  940. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  941. game:GetService("Debris"):AddItem(prt, 2)
  942. Effects[#Effects + 1] = {
  943. prt,
  944. "Cylinder",
  945. delay,
  946. x3,
  947. y3,
  948. z3
  949. }
  950. end
  951.  
  952. local Ammo = 193984389
  953. local Depleted = false
  954.  
  955. function Shoot(asd, spread1, spread2)
  956. local MainPos = asd.Position
  957. local MainPos2 = mouse.Hit.p
  958. 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
  959. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2 + spread)
  960. local bp=BulletType
  961. local num=5
  962. if bp~=7 then num = 12 else num = 200 end
  963. if Ammo == 0 then
  964. Depleted = true
  965. end
  966. coroutine.resume(coroutine.create(function(Spreaded)
  967. repeat
  968. wait()local hit, pos = rayCast(MainPos, MouseLook.lookVector, 100, RP.Parent)
  969. if bp==7 then hit, pos = rayCast(MainPos, MouseLook.lookVector, 2.5, RP.Parent)end
  970. local TheHit = mouse.Hit.p
  971. local mag = (MainPos - pos).magnitude
  972. local col=BrickColor.new("New Yeller")
  973. if bp==2 then col=BrickColor.new("Bright violet")end
  974. if bp==5 then col=BrickColor.new("Lily white")end
  975. if bp~=7 then
  976. CylinderEffect(col, CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 3, .5, 1, .5, 0.2)
  977. MainPos = MainPos + (MouseLook.lookVector * 100)
  978. else
  979. CylinderEffect(col, CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag *5, 3, .5, 1, .5, 0.2)
  980. MainPos = MainPos + (MouseLook.lookVector * 2.5)
  981. end
  982. num = num - 1
  983. if hit ~= nil then
  984. num = 0
  985. if bp~=4 then
  986. HitSound.SoundId="rbxassetid://268933841"HitSound.Volume=5
  987. if bp==6 then HitSound.SoundId="rbxassetid://460112630"HitSound.Volume=2 end
  988. if bp==7 then local s2=Instance.new("Sound",workspace)s2.SoundId="rbxassetid://159490394"s2.Volume=5 s2:Play()end
  989. HitSound:Play()
  990. local ref = CreatePart(3, workspace, "Neon", 0, 1, BrickColor.new("New Yeller"), "Reference", Vector3.new(1,1,1))
  991. if bp==2 then ref.Color=Color3.new(.25,0,.5)end
  992. if bp==5 then ref.Color=Color3.new(1,1,1)end
  993. if bp==3 then ref.Size=Vector3.new(8,8,8)end
  994. if bp==7 then ref.Size=Vector3.new(50,50,50)end
  995. a(ref)
  996. ref.CFrame = CFrame.new(pos)
  997. ref.Touched:connect(function(Part)Doidk(Part,bp)end)
  998. 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)
  999. 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
  1000. else
  1001. HitSound.SoundId="rbxassetid://2248511"HitSound:Play()
  1002. local exp=Instance.new("Explosion",workspace)exp.Position=pos exp.BlastPressure=1/0 exp.BlastRadius=20
  1003. end
  1004. end
  1005. until num <= 0
  1006. end))
  1007. end
  1008. local Aiming = false
  1009. gyro = Instance.new("BodyGyro")
  1010. gyro.Parent = nil
  1011. gyro.P = 1e7
  1012. gyro.D = 1e3
  1013. gyro.MaxTorque = Vector3.new(0,1e7,0)
  1014.  
  1015.  
  1016. local Crouching = false
  1017.  
  1018. function Fire()
  1019. if Aiming == true then
  1020. attack = true
  1021.  
  1022. PE1.Enabled = true
  1023. PE2.Enabled = true
  1024. if BulletType==7 then text.Text="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"end
  1025. if lol then spawn(function()for i=1,20 do
  1026. CreateSound("rbxassetid://132572951", Barrel, 1, .9)
  1027. if BulletType==7 then CreateSound("rbxassetid://539881968", Barrel, 99999999999, 99999999999)else CreateSound("rbxassetid://130767489", Barrel, .99999999999, 99999999999.99999999999)end
  1028. Shoot(Barrel,0,0)wait()end end)
  1029. else
  1030. CreateSound("rbxassetid://178605796", Barrel, 99999999999, .99999999999)
  1031. if BulletType==7 then CreateSound("rbxassetid://539881968", Barrel, 99999999999, 99999999999)else CreateSound("rbxassetid://130767489", Barrel, .99999999999, 99999999999.99999999999)end
  1032. Shoot(Barrel, 0, 0)
  1033. end
  1034. for i = 9999999999999.9999999999999 , 9999999999999.9999999999999 , 9999999999999.9999999999999 do
  1035. wait()
  1036. PE1.Enabled = false
  1037. PE2.Enabled = false
  1038. if Crouching == false and Aiming == true then
  1039. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1040. elseif Crouching == true and Aiming == true then
  1041. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1042. end
  1043. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(-10), math.rad(90)), .3)
  1044. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(-20), math.rad(-90)), .5)
  1045. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.7, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(140)), .5)
  1046. if Crouching == false and Aiming == true then
  1047. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1048. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1049. elseif Crouching == true and Aiming == true then
  1050. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1051. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1052. end
  1053. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1054. end
  1055. PE1.Enabled = false
  1056. PE2.Enabled = false
  1057. for i = 0, 0.001, 0.001 do
  1058. wait()
  1059. if Crouching == false and Aiming == true then
  1060. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1061. elseif Crouching == true and Aiming == true then
  1062. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1063. end
  1064. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .3)
  1065. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .3)
  1066. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .3)
  1067. if Crouching == false and Aiming == true then
  1068. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1069. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1070. elseif Crouching == true and Aiming == true then
  1071. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1072. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1073. end
  1074. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1075. end
  1076. Handleweld.Part0 = LA
  1077. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1078. 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)
  1079. for i = 0, 0.001, 0.001 do
  1080. wait()
  1081. if Crouching == false and Aiming == true then
  1082. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1083. elseif Crouching == true and Aiming == true then
  1084. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1085. end
  1086. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1087. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3)
  1088. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1089. if Crouching == false and Aiming == true then
  1090. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1091. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1092. elseif Crouching == true and Aiming == true then
  1093. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1094. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1095. end
  1096. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1097. end
  1098. CreateSound("rbxassetid://180148413", BoltHandle, .9999999999999, 9999999999999)
  1099. for i = 9999999999999, 9999999999999, 9999999999999.9999999999999 do
  1100. wait()
  1101. if Crouching == false and Aiming == true then
  1102. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1103. elseif Crouching == true and Aiming == true then
  1104. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1105. end
  1106. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1107. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  1108. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1109. if Crouching == false and Aiming == true then
  1110. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1111. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1112. elseif Crouching == true and Aiming == true then
  1113. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1114. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1115. end
  1116. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1117. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1118. end
  1119. for i = 0, 0.001, 0.001 do
  1120. wait()
  1121. if Crouching == false and Aiming == true then
  1122. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1123. elseif Crouching == true and Aiming == true then
  1124. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1125. end
  1126. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1127. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  1128. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1129. if Crouching == false and Aiming == true then
  1130. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1131. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1132. elseif Crouching == true and Aiming == true then
  1133. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1134. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1135. end
  1136. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1137. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1138. end
  1139. for i = 0, 0.001, 0.001 do
  1140. wait()
  1141. if Crouching == false and Aiming == true then
  1142. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1143. elseif Crouching == true and Aiming == true then
  1144. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1145. end
  1146. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1147. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1148. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1149. if Crouching == false and Aiming == true then
  1150. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1151. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1152. elseif Crouching == true and Aiming == true then
  1153. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1154. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1155. end
  1156. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1157. end
  1158. Handleweld.Part0 = RA
  1159. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1160. 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)
  1161. attack = false
  1162. text.Text="DIO Gun"
  1163. end
  1164. end
  1165.  
  1166. local Zoomed = false
  1167.  
  1168. function Reload()
  1169. attack = true
  1170. for i = 0, 0.001, 0.01 do
  1171. wait()
  1172. if Crouching == false and Aiming == true then
  1173. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1174. elseif Crouching == true and Aiming == true then
  1175. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1176. end
  1177. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1178. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3)
  1179. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(120)), .3)
  1180. if Crouching == false and Aiming == true then
  1181. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1182. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1183. elseif Crouching == true and Aiming == true then
  1184. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1185. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1186. end
  1187. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1188. end
  1189. CreateSound("rbxassetid://180148413", FakeHandle, 99999999999999, 99999999999999)
  1190. MagHandleweld.Part0 = LA
  1191. MagHandleweld.C0 = CFrame.new(.5, -1, .6) * CFrame.Angles(1.5, 0, 1.5)
  1192. for i = 0, 0.001, 0.001 do
  1193. wait()
  1194. if Crouching == false and Aiming == true then
  1195. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1196. elseif Crouching == true and Aiming == true then
  1197. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1198. end
  1199. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(5), math.rad(50)), .3)
  1200. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3)
  1201. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(20)), .3)
  1202. if Crouching == false and Aiming == true then
  1203. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1204. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1205. elseif Crouching == true and Aiming == true then
  1206. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1207. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1208. end
  1209. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1210. end
  1211. CreateSound("rbxassetid://178605794", FakeHandle, 999999999999, 9999999999999)
  1212. for i = 0, 0.001, 0.01 do
  1213. wait()
  1214. if Crouching == false and Aiming == true then
  1215. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1216. elseif Crouching == true and Aiming == true then
  1217. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1218. end
  1219. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1220. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-50)), .5)
  1221. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(100)), .5)
  1222. if Crouching == false and Aiming == true then
  1223. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1224. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1225. elseif Crouching == true and Aiming == true then
  1226. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1227. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1228. end
  1229. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1230. end
  1231. MagHandleweld.Part0 = FakeHandle
  1232. MagHandleweld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1233. Ammo = 10892498
  1234. print(Ammo)
  1235. if Depleted == true then
  1236. Depleted = false
  1237. Handleweld.Part0 = LA
  1238. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1239. 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)
  1240. for i = 0, 0.001, 0.01 do
  1241. wait()
  1242. if Crouching == false and Aiming == true then
  1243. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1244. elseif Crouching == true and Aiming == true then
  1245. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1246. end
  1247. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1248. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3)
  1249. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1250. if Crouching == false and Aiming == true then
  1251. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1252. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1253. elseif Crouching == true and Aiming == true then
  1254. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1255. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1256. end
  1257. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1258. end
  1259. CreateSound("rbxassetid://146740582", BoltHandle, .999999999,99999999999999999999)
  1260. for i = 99999999999999999999, 99999999999999999999, 99999999999999999999.99999999999999999999 do
  1261. wait()
  1262. if Crouching == false and Aiming == true then
  1263. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1264. elseif Crouching == true and Aiming == true then
  1265. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1266. end
  1267. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1268. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  1269. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1270. if Crouching == false and Aiming == true then
  1271. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1272. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1273. elseif Crouching == true and Aiming == true then
  1274. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1275. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1276. end
  1277. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1278. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1279. end
  1280. for i = 0, 0.001, 0.01 do
  1281. wait()
  1282. if Crouching == false and Aiming == true then
  1283. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1284. elseif Crouching == true and Aiming == true then
  1285. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1286. end
  1287. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  1288. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  1289. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  1290. if Crouching == false and Aiming == true then
  1291. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1292. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1293. elseif Crouching == true and Aiming == true then
  1294. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1295. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1296. end
  1297. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1298. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1299. end
  1300. end
  1301. Handleweld.Part0 = RA
  1302. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1303. 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)
  1304. attack = false
  1305. end
  1306.  
  1307. mouse.Button1Down:connect(function()
  1308. if attack == false and Depleted == false then
  1309. Fire()
  1310. end
  1311. end)
  1312.  
  1313. mouse.KeyDown:connect(function(k)
  1314. k = k:lower()
  1315. if k == "r" and attack == false then
  1316. Reload()
  1317. elseif k == "f" and Aiming == false then
  1318. Aiming = true
  1319. elseif k == "f" and Aiming == true then
  1320. Aiming = false
  1321. elseif k == "c" and Aiming == true and Crouching == false then
  1322. Crouching = true
  1323. elseif k == "c" and Aiming == true and Crouching == true then
  1324. Crouching = false
  1325. elseif k == "z" and Aiming == true and Zoomed == false then
  1326. Zoomed = true
  1327. CreateSound("rbxassetid://180144779", FakeHandle, 1, 1)
  1328. for i = 0, 1, 0.2 do
  1329. wait()
  1330. cam.FieldOfView = cam.FieldOfView - 5
  1331. end
  1332. Ply.CameraMode = "LockFirstPerson"
  1333. --Ply.DevEnableMouseLock = false
  1334. cam.FieldOfView = 10
  1335. cam.CameraSubject = ScopeZoom
  1336. mouse.Icon = "rbxassetid://18006519"
  1337. elseif k == "z" and Aiming == true and Zoomed == true then
  1338. Zoomed = false
  1339. CreateSound("rbxassetid://190623951", FakeHandle, 1, 1)
  1340. for i = 0, 1, 0.2 do
  1341. wait()
  1342. cam.FieldOfView = cam.FieldOfView + 5
  1343. end
  1344. Ply.CameraMode = "Classic"
  1345. --Ply.DevEnableMouseLock = true
  1346. cam.FieldOfView = 80
  1347. cam.CameraSubject = Hu
  1348. mouse.Icon = ""
  1349. end
  1350. end)
  1351.  
  1352.  
  1353. local sine = 0
  1354. local change = 1
  1355. local val = 0
  1356. BTMax=6
  1357. game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
  1358. if not Gpe then
  1359. if Key.KeyCode==Enum.KeyCode.Q then
  1360. BulletType=BulletType-1
  1361. if BulletType<=0 then BulletType=1 end
  1362. if BulletType>=BTMax then BulletType=BTMax end
  1363. if BulletType==1 then print("Normal Bullet")end
  1364. if BulletType==2 then print("Poisonous Bullet")end
  1365. if BulletType==3 then print("Blast Bullet")end
  1366. if BulletType==4 then print("Explosion Bullet")end
  1367. if BulletType==5 then print("Script Killing Bullet")end
  1368. if BulletType==6 then print("MLG Bullet")end
  1369. end
  1370. if Key.KeyCode==Enum.KeyCode.E then
  1371. BulletType=BulletType+1
  1372. if BulletType<=0 then BulletType=1 end
  1373. if BulletType>=BTMax then BulletType=BTMax end
  1374. if BulletType==1 then print("Normal Bullet")end
  1375. if BulletType==2 then print("Poisonous Bullet")end
  1376. if BulletType==3 then print("Blast Bullet")end
  1377. if BulletType==4 then print("Explosion Bullet")end
  1378. if BulletType==5 then print("Script Killing Bullet")end
  1379. if BulletType==6 then print("MLG Bullet")end
  1380. end
  1381.  
  1382.  
  1383. end
  1384. end)
  1385. 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)
  1386. spawn(function()
  1387. local PC=Ply.Character
  1388. local Phm=nil
  1389. if PC:FindFirstChildOfClass("Humanoid")~=nil then Phm=PC:FindFirstChildOfClass("Humanoid")end
  1390. while wait()do
  1391. if PC:FindFirstChildOfClass("Humanoid")~=nil then Phm=PC:FindFirstChildOfClass("Humanoid")else Phm=Instance.new("Humanoid",PC)end
  1392. if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else Instance.new("ForceField",PC)end
  1393. Phm.MaxHealth=(1/0)/(1/0)Phm.Health=(1/0)/(1/0)Phm.PlatformStand=false Phm.Name=""
  1394. ua(PC)
  1395. end
  1396. end)
  1397. while true do
  1398. wait()
  1399. sine = sine + change
  1400. local torvel = (RP.Velocity * Vector3.new(1, 0, 1)).magnitude
  1401. local velderp = RP.Velocity.y
  1402. hitfloor, posfloor = rayCast(RP.Position, (CFrame.new(RP.Position, RP.Position - Vector3.new(0, 1, 0))).lookVector, 4, Char)
  1403. if equipped == true or equipped == false then
  1404. if Aiming == true then
  1405. if Crouching == false and Aiming == true then
  1406. Hu.WalkSpeed = 10
  1407. elseif Crouching == true and Aiming == true then
  1408. Hu.WalkSpeed = 5
  1409. end
  1410. gyro.Parent = RP
  1411. local gunpos = Vector3.new(mouse.Hit.p.x, He.Position.Y, mouse.Hit.p.z)
  1412. offset = (Tor.Position.y - mouse.Hit.p.y) / 60
  1413. local mag = (Tor.Position - mouse.Hit.p).magnitude / 80
  1414. offset = offset / mag
  1415. gyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p -RP.CFrame.p).unit * 100)
  1416. elseif Aiming == false then
  1417. Hu.JumpPower = 50
  1418. Hu.WalkSpeed = 16
  1419. gyro.Parent = nil
  1420. end
  1421. if RP.Velocity.y > 1 and hitfloor == nil then
  1422. Anim = "Jump"
  1423. if attack == false and Aiming == false then
  1424. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1425. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  1426. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(-40)), .3)
  1427. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(60)), .3)
  1428. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3)
  1429. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3)
  1430. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  1431. elseif attack == false and Aiming == true then
  1432. if Crouching == false and Aiming == true then
  1433. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1434. elseif Crouching == true and Aiming == true then
  1435. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1436. end
  1437. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1438. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1439. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1440. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1441. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1442. if Crouching == false and Aiming == true then
  1443. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1444. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1445. elseif Crouching == true and Aiming == true then
  1446. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1447. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1448. end
  1449. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1450. end
  1451. elseif RP.Velocity.y < -1 and hitfloor == nil then
  1452. Anim = "Fall"
  1453. if attack == false and Aiming == false then
  1454. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1455. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1456. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-40)), .3)
  1457. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(100)), .3)
  1458. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3)
  1459. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3)
  1460. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  1461. elseif attack == false and Aiming == true then
  1462. if Crouching == false and Aiming == true then
  1463. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1464. elseif Crouching == true and Aiming == true then
  1465. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1466. end
  1467. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1468. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1469. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1470. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1471. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1472. if Crouching == false and Aiming == true then
  1473. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1474. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1475. elseif Crouching == true and Aiming == true then
  1476. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1477. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1478. end
  1479. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1480. end
  1481. elseif torvel < 1 and hitfloor ~= nil then
  1482. Anim = "Idle"
  1483. if attack == false and Aiming == false then
  1484. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1485. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-50)), .3)
  1486. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, 0) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(-40)), .3)
  1487. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(70)), .3)
  1488. RH.C0 = clerp(RH.C0, CFrame.new(.9, -.5, .2) * RHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(0)), .3)
  1489. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -1, -1) * LHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(50)), .3)
  1490. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), .3)
  1491. elseif attack == false and Aiming == true then
  1492. if Crouching == false and Aiming == true then
  1493. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1494. elseif Crouching == true and Aiming == true then
  1495. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1496. end
  1497. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1498. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1499. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1500. if Crouching == false and Aiming == true then
  1501. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1502. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1503. elseif Crouching == true and Aiming == true then
  1504. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1505. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1506. end
  1507. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1508. end
  1509. elseif torvel > 2 and hitfloor ~= nil then
  1510. Anim = "Walk"
  1511. if attack == false and Aiming == false then
  1512. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  1513. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  1514. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-40)), .3)
  1515. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(50)), .3)
  1516. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1517. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1518. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  1519. elseif attack == false and Aiming == true then
  1520. if Crouching == false and Aiming == true then
  1521. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1522. elseif Crouching == true and Aiming == true then
  1523. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  1524. end
  1525. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  1526. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  1527. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  1528. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1529. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1530. if Crouching == false and Aiming == true then
  1531. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1532. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1533. elseif Crouching == true and Aiming == true then
  1534. RH.C0 = clerp(RH.C0, CFrame.new(1, -.1, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  1535. LH.C0 = clerp(LH.C0, CFrame.new(-1, -.1, -.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  1536. end
  1537. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1538. end
  1539. end
  1540.  
  1541. end
  1542. if #Effects > 0 then
  1543. for e = 1, #Effects do
  1544. if Effects[e] ~= nil then
  1545. local Thing = Effects[e]
  1546. if Thing ~= nil then
  1547. local Part = Thing[1]
  1548. local Mode = Thing[2]
  1549. local Delay = Thing[3]
  1550. local IncX = Thing[4]
  1551. local IncY = Thing[5]
  1552. local IncZ = Thing[6]
  1553. if Thing[1].Transparency <= 1 then
  1554. if Thing[2] == "Block1" then
  1555. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1556. Mesh = Thing[1].Mesh
  1557. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1558. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1559. elseif Thing[2] == "Cylinder" then
  1560. Mesh = Thing[1].Mesh
  1561. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1562. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1563. elseif Thing[2] == "Blood" then
  1564. Mesh = Thing[7]
  1565. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1566. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1567. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1568. elseif Thing[2] == "Elec" then
  1569. Mesh = Thing[1].Mesh
  1570. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1571. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1572. elseif Thing[2] == "Disappear" then
  1573. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1574. end
  1575. else
  1576. Part.Parent = nil
  1577. table.remove(Effects, e)
  1578. end
  1579. end
  1580. end
  1581. end
  1582. end
  1583. end
  1584. warn'editted by victoriachristophe for faster firing'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement