kaualima12

.

May 15th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.55 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. print("edit By mememasterYT65910")
  84. print("100 views! thanks!")
  85. Ply = owner
  86. Char = Ply.Character
  87. Tor = Char.Torso
  88. He = Char.Head
  89. Ne = Tor.Neck
  90. Hu = Char.Humanoid
  91. LA = Char["Left Arm"]
  92. LL = Char["Left Leg"]
  93. RA = Char["Right Arm"]
  94. RL = Char["Right Leg"]
  95. LS = Tor["Left Shoulder"]
  96. RS = Tor["Right Shoulder"]
  97. LH = Tor["Left Hip"]
  98. RH = Tor["Right Hip"]
  99. Combo = 1
  100. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  101. RP = Char.HumanoidRootPart
  102. RJ = RP.RootJoint
  103. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  104. LHCF = CFrame.Angles(0, math.rad(-90), 0)
  105. RHCF = CFrame.Angles(0, math.rad(90), 0)
  106. attack = false
  107. equipped = false
  108. local Anim = "Idle"
  109. Effects = { }
  110. cam = workspace.CurrentCamera
  111. local RbxUtility = LoadLibrary("RbxUtility")
  112. local Create = RbxUtility.Create
  113. local m = Create("Model"){
  114. Parent = Char,
  115. Name = "WeaponModel",
  116. }
  117.  
  118. RS.Parent = nil
  119. LS.Parent = nil
  120.  
  121. RW = Create("Weld"){
  122. Name = "Right Shoulder",
  123. Part0 = Tor ,
  124. C0 = CFrame.new(1.5, 0.5, 0),
  125. C1 = CFrame.new(0, 0.5, 0),
  126. Part1 = RA ,
  127. Parent = Tor ,
  128. }
  129.  
  130. LW = Create("Weld"){
  131. Name = "Left Shoulder",
  132. Part0 = Tor ,
  133. C0 = CFrame.new(-1.5, 0.5, 0),
  134. C1 = CFrame.new(0, 0.5, 0) ,
  135. Part1 = LA ,
  136. Parent = Tor ,
  137. }
  138.  
  139.  
  140. function RemoveOutlines(part)
  141. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  142. end
  143.  
  144. function CreatePart(FF, Par, Mat, Ref, Tra, BC, Nam, Siz)
  145. local Part = Create("Part"){
  146. formFactor = FF,
  147. Parent = Par,
  148. Reflectance = Ref,
  149. Transparency = Tra,
  150. CanCollide = false,
  151. Locked = true,
  152. BrickColor = BrickColor.new(tostring(BC)),
  153. Name = Nam,
  154. Size = Siz,
  155. Position = Tor.Position,
  156. Material = Mat,
  157. }
  158. RemoveOutlines(Part)
  159. return Part
  160. end
  161.  
  162. function CreateMesh(Ms, Par, MType, MId, OS, Sca)
  163. local Msh = Create(Ms){
  164. Parent = Par,
  165. Offset = OS,
  166. Scale = Sca,
  167. }
  168. if Ms == "SpecialMesh" then
  169. Msh.MeshType = MType
  170. Msh.MeshId = MId
  171. end
  172. end
  173.  
  174. function CreateWeld(Par, PartA, PartB, CA, CB)
  175. local Weld = Create("Weld"){
  176. Parent = Par,
  177. Part0 = PartA,
  178. Part1 = PartB,
  179. C0 = CA,
  180. C1 = CB,
  181. }
  182. return Weld
  183. end
  184.  
  185. function CreateSound(id, par, vol, pit)
  186. coroutine.resume(coroutine.create(function()
  187. local sou = Create("Sound"){
  188. Parent = par or workspace,
  189. Volume = vol,
  190. Pitch = pit or 1,
  191. SoundId = id,
  192. }
  193. wait()
  194. sou:play()
  195. end))
  196. end
  197.  
  198. function clerp(a, b, t)
  199. return a:lerp(b, t)
  200. end
  201.  
  202. function rayCast(Pos, Dir, Max, Ignore)
  203. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  204. end
  205.  
  206.  
  207. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  208. for i, v in pairs(hit:GetChildren()) do
  209. if v:IsA("Humanoid") and hit.Name ~= Char.Name then
  210. local find = v:FindFirstChild("Hitz")
  211. if not find then
  212. if v.Parent:findFirstChild("Head") then
  213. local BillG = Create("BillboardGui"){
  214. Parent = v.Parent.Head,
  215. Size = UDim2.new(1, 0, 1, 0),
  216. Adornee = v.Parent.Head,
  217. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  218. }
  219. local TL = Create("TextLabel"){
  220. Parent = BillG,
  221. Size = UDim2.new(3, 3, 3, 3),
  222. BackgroundTransparency = 1,
  223. Text = tostring(damage).."-",
  224. TextColor3 = Color1.Color,
  225. TextStrokeColor3 = Color2.Color,
  226. TextStrokeTransparency = 0,
  227. TextXAlignment = Enum.TextXAlignment.Center,
  228. TextYAlignment = Enum.TextYAlignment.Center,
  229. FontSize = Enum.FontSize.Size18,
  230. Font = "ArialBold",
  231. }
  232. coroutine.resume(coroutine.create(function()
  233. wait(1)
  234. for i = 0, 1, .1 do
  235. wait(.1)
  236. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  237. end
  238. BillG:Destroy()
  239. end))
  240. end
  241. v.Health = v.Health - damage
  242. local bool = Create("BoolValue"){
  243. Parent = v,
  244. Name = 'Hitz',
  245. }
  246. if HSound ~= nil and HPitch ~= nil then
  247. CreateSound(HSound, hit, 1, HPitch)
  248. end
  249. game:GetService("Debris"):AddItem(bool, cooldown)
  250. end
  251. end
  252. end
  253. end
  254.  
  255. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HitSound)
  256. for _, c in pairs(workspace:children()) do
  257. local hum = c:findFirstChild("Humanoid")
  258. if hum ~= nil then
  259. local head = c:findFirstChild("Torso")
  260. if head ~= nil then
  261. local targ = head.Position - Part.Position
  262. local mag = targ.magnitude
  263. if mag <= magni and c.Name ~= Ply.Name then
  264. Damage(head.Parent, math.random(mindam, maxdam), 0, Color1, Color2, HitSound, 1)
  265. end
  266. end
  267. end
  268. end
  269. end
  270.  
  271. Handle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Lilac", "Handle", Vector3.new(0.216133296, 0.432266444, 0.200000003))
  272. 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))
  273. CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  274. FakeHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Lilac", "FakeHandle", Vector3.new(0.216133296, 0.432266444, 0.200000003))
  275. 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))
  276. Barrel = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Barrel", Vector3.new(0.324199915, 0.200000003, 0.216133296))
  277. 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))
  278. CreateMesh("CylinderMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.567349613, 1))
  279. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199826, 0.324199826, 0.432266533))
  280. 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))
  281. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003))
  282. 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))
  283. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  284. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003))
  285. 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))
  286. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  287. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.756466568, 0.200000003, 0.432266533))
  288. 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))
  289. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  290. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296))
  291. 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))
  292. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1))
  293. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003))
  294. 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))
  295. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  296. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003))
  297. 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))
  298. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  299. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  300. 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))
  301. 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))
  302. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296))
  303. 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))
  304. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  305. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.5, "Lilac", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296))
  306. 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))
  307. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  308. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.432266563, 2.48553157, 0.216133296))
  309. 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))
  310. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  311. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296))
  312. 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))
  313. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  314. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.756466269, 0.432266533))
  315. 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))
  316. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  317. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  318. 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))
  319. 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))
  320. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(2.485533, 0.216133222, 0.432266533))
  321. 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))
  322. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(2.16133285, 0.200000003, 0.432266533))
  323. 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))
  324. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  325. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003))
  326. 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))
  327. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  328. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  329. 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))
  330. 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))
  331. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  332. 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))
  333. 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))
  334. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  335. 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))
  336. 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))
  337. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.29679966, 0.200000003, 0.432266533))
  338. 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))
  339. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  340. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296))
  341. 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))
  342. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1))
  343. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.08066642, 0.200000003, 0.432266533))
  344. 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))
  345. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  346. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003))
  347. 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))
  348. 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))
  349. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.432266563, 0.648399651, 0.216133296))
  350. 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))
  351. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  352. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003))
  353. 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))
  354. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  355. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003))
  356. 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))
  357. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  358. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003))
  359. 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))
  360. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  361. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.864533126, 0.540332973, 0.432266533))
  362. 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))
  363. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003))
  364. 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))
  365. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  366. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.5, "Lilac", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296))
  367. 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))
  368. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  369. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216134712, 0.216134697, 0.216134712))
  370. 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))
  371. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.40486634, 0.200000003, 0.432266533))
  372. 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))
  373. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
  374. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003))
  375. 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))
  376. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  377. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199915, 0.756466269, 0.432266533))
  378. 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))
  379. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  380. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.864533186))
  381. 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))
  382. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.432266444, 0.216133267))
  383. 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))
  384. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  385. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.432266563, 0.216133192, 0.216133267))
  386. 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))
  387. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  388. 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))
  389. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  390. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  391. 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))
  392. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  393. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.432266384, 0.216133267))
  394. 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))
  395. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  396. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  397. 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))
  398. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  399. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.432266563, 0.216133237, 0.216133267))
  400. 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))
  401. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.216133296))
  402. 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))
  403. Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267))
  404. 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))
  405. CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
  406. MagHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "MagHandle", Vector3.new(0.432266504, 0.324199826, 0.216133296))
  407. 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))
  408. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296))
  409. 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))
  410. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  411. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296))
  412. 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))
  413. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
  414. BoltHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "BoltHandle", Vector3.new(0.216133282, 1.40486586, 0.216133267))
  415. 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))
  416. CreateMesh("CylinderMesh", BoltHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  417. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.216133252, 0.216133267))
  418. 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))
  419. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  420. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199915, 0.324199826, 0.200000003))
  421. 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))
  422. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
  423. Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199915, 0.200000003, 0.200000003))
  424. 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))
  425. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
  426. ScopeZoom = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Bright violet", "ScopeZoom", Vector3.new(0.216133296, 0.200000003, 0.200000003))
  427. 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))
  428.  
  429. local PE1 = Create("ParticleEmitter"){
  430. Parent = Barrel,
  431. Transparency = NumberSequence.new(0),
  432. Size = NumberSequence.new(.5),
  433. Texture = "rbxassetid://1416396236",
  434. Lifetime = NumberRange.new(.1),
  435. Rate = 100,
  436. VelocitySpread = 180,
  437. Rotation = NumberRange.new(0),
  438. Speed = NumberRange.new(0),
  439. LightEmission = .6,
  440. LockedToPart = true,
  441. Enabled = false
  442. }
  443.  
  444. local PE2 = PE1:Clone()
  445. PE2.Size = NumberSequence.new(.7)
  446. PE2.LightEmission = 1
  447. PE2.Texture = "rbxassetid://87729590"
  448.  
  449. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  450. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  451. prt.Anchored = true
  452. prt.CFrame = cframe
  453. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  454. game:GetService("Debris"):AddItem(prt, 2)
  455. Effects[#Effects + 1] = {
  456. prt,
  457. "Cylinder",
  458. delay,
  459. x3,
  460. y3,
  461. z3
  462. }
  463. end
  464.  
  465. local Ammo = 11
  466. local Depleted = false
  467.  
  468. function Shoot(asd, spread1, spread2)
  469. local MainPos = asd.Position
  470. local MainPos2 = mouse.Hit.p
  471. 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 / 100
  472. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2 + spread)
  473. num = 30
  474. Ammo = Ammo - 1
  475. print(Ammo)
  476. if Ammo == 0 then
  477. Depleted = true
  478. end
  479. coroutine.resume(coroutine.create(function(Spreaded)
  480. repeat
  481. wait()
  482. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 50, RP.Parent)
  483. local TheHit = mouse.Hit.p
  484. local mag = (MainPos - pos).magnitude
  485. CylinderEffect(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 3, .5, 1, .5, 0.2)
  486. MainPos = MainPos + (MouseLook.lookVector * 50)
  487. num = num - 1
  488. if hit ~= nil then
  489. num = 0
  490. local ref = CreatePart(3, workspace, "Neon", 0, 1, BrickColor.new("Pink"), "Reference", Vector3.new())
  491. ref.Anchored = true
  492. ref.CFrame = CFrame.new(pos)
  493. MagnitudeDamage(ref, 5, 999999999, 999999999, BrickColor.new("Pink"), BrickColor.new("Pink") , "rbxassetid://199149297")
  494. game:GetService("Debris"):AddItem(ref, 1)
  495. end
  496. until num <= 0
  497. end))
  498. end
  499. local Aiming = false
  500. gyro = Instance.new("BodyGyro")
  501. gyro.Parent = nil
  502. gyro.P = 1e7
  503. gyro.D = 1e3
  504. gyro.MaxTorque = Vector3.new(0,1e7,0)
  505.  
  506. renai = Instance.new("Sound",game.Workspace.haziqcris2006)
  507. renai.Looped = true
  508. renai.Volume = 0.5
  509. renai.SoundId = "rbxassetid://145106641"
  510. renai.Playing = true
  511.  
  512. local Crouching = false
  513.  
  514. function Fire()
  515. if Aiming == true then
  516. attack = true
  517. CreateSound("rbxassetid://2487714799",Barrel)
  518. wait(0.5)
  519. CreateSound("rbxassetid://132572951", Barrel, 1, .9)
  520. CreateSound("rbxassetid://130767489", Barrel, .7, 1.2)
  521. CreateSound("rbxassetid://281454991", Barrel)
  522. wait(0.5)
  523. CreateSound("rbxassetid://749031341", Barrel)
  524. PE1.Enabled = true
  525. PE2.Enabled = true
  526. Shoot(Barrel, 0, 0)
  527. for i = 0, 1, 0.2 do
  528. wait()
  529. if Crouching == false and Aiming == true then
  530. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  531. elseif Crouching == true and Aiming == true then
  532. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  533. end
  534.  
  535.  
  536. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(-10), math.rad(90)), .3)
  537. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(-20), math.rad(-90)), .5)
  538. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.7, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(140)), .5)
  539. if Crouching == false and Aiming == true then
  540. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  541. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  542. elseif Crouching == true and Aiming == true then
  543. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  544. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  545. end
  546. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  547. end
  548. PE1.Enabled = false
  549. PE2.Enabled = false
  550. for i = 0, 1, 0.1 do
  551. wait()
  552. if Crouching == false and Aiming == true then
  553. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  554. elseif Crouching == true and Aiming == true then
  555. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  556. end
  557. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .3)
  558. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .3)
  559. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .3)
  560. if Crouching == false and Aiming == true then
  561. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  562. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  563. elseif Crouching == true and Aiming == true then
  564. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  565. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  566. end
  567. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  568. end
  569. Handleweld.Part0 = LA
  570. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  571. 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)
  572. for i = 0, 1, 0.1 do
  573. wait()
  574. if Crouching == false and Aiming == true then
  575. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  576. elseif Crouching == true and Aiming == true then
  577. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  578. end
  579. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  580. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3)
  581. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  582. if Crouching == false and Aiming == true then
  583. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  584. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  585. elseif Crouching == true and Aiming == true then
  586. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  587. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  588. end
  589. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  590. end
  591. CreateSound("rbxassetid://146740582", BoltHandle, .7, 1)
  592. for i = 0, 1, 0.1 do
  593. wait()
  594. if Crouching == false and Aiming == true then
  595. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  596. elseif Crouching == true and Aiming == true then
  597. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  598. end
  599. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  600. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  601. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  602. if Crouching == false and Aiming == true then
  603. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  604. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  605. elseif Crouching == true and Aiming == true then
  606. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  607. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  608. end
  609. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  610. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  611. end
  612. for i = 0, 1, 0.1 do
  613. wait()
  614. if Crouching == false and Aiming == true then
  615. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  616. elseif Crouching == true and Aiming == true then
  617. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  618. end
  619. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  620. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  621. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  622. if Crouching == false and Aiming == true then
  623. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  624. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  625. elseif Crouching == true and Aiming == true then
  626. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  627. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  628. end
  629. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  630. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  631. end
  632. for i = 0, 1, 0.3 do
  633. wait()
  634. if Crouching == false and Aiming == true then
  635. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  636. elseif Crouching == true and Aiming == true then
  637. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  638. end
  639. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  640. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  641. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  642. if Crouching == false and Aiming == true then
  643. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  644. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  645. elseif Crouching == true and Aiming == true then
  646. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  647. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  648. end
  649. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  650. end
  651. Handleweld.Part0 = RA
  652. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  653. 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)
  654. attack = false
  655. end
  656. end
  657.  
  658. local Zoomed = false
  659.  
  660. function Reload()
  661. attack = true
  662. for i = 0, 1, 0.1 do
  663. wait()
  664. if Crouching == false and Aiming == true then
  665. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  666. elseif Crouching == true and Aiming == true then
  667. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  668. end
  669. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  670. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3)
  671. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(120)), .3)
  672. if Crouching == false and Aiming == true then
  673. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  674. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  675. elseif Crouching == true and Aiming == true then
  676. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  677. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  678. end
  679. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  680. end
  681. CreateSound("rbxassetid://131045401", FakeHandle, 1, 1)
  682. MagHandleweld.Part0 = LA
  683. MagHandleweld.C0 = CFrame.new(.5, -1, .6) * CFrame.Angles(1.5, 0, 1.5)
  684. for i = 0, 1, 0.08 do
  685. wait()
  686. if Crouching == false and Aiming == true then
  687. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  688. elseif Crouching == true and Aiming == true then
  689. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  690. end
  691. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(5), math.rad(50)), .3)
  692. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3)
  693. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(20)), .3)
  694. if Crouching == false and Aiming == true then
  695. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  696. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  697. elseif Crouching == true and Aiming == true then
  698. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  699. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  700. end
  701. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  702. end
  703. CreateSound("rbxassetid://131045429", FakeHandle, 1, 1)
  704. for i = 0, 1, 0.08 do
  705. wait()
  706. if Crouching == false and Aiming == true then
  707. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  708. elseif Crouching == true and Aiming == true then
  709. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  710. end
  711. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  712. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-50)), .5)
  713. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(100)), .5)
  714. if Crouching == false and Aiming == true then
  715. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  716. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  717. elseif Crouching == true and Aiming == true then
  718. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  719. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  720. end
  721. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  722. end
  723. MagHandleweld.Part0 = FakeHandle
  724. MagHandleweld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  725. Ammo = 10
  726. print(Ammo)
  727. if Depleted == true then
  728. Depleted = false
  729. Handleweld.Part0 = LA
  730. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  731. 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)
  732. for i = 0, 1, 0.1 do
  733. wait()
  734. if Crouching == false and Aiming == true then
  735. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  736. elseif Crouching == true and Aiming == true then
  737. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  738. end
  739. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  740. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3)
  741. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  742. if Crouching == false and Aiming == true then
  743. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  744. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  745. elseif Crouching == true and Aiming == true then
  746. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  747. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  748. end
  749. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  750. end
  751. CreateSound("rbxassetid://146740582", BoltHandle, .7, 1)
  752. for i = 0, 1, 0.1 do
  753. wait()
  754. if Crouching == false and Aiming == true then
  755. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  756. elseif Crouching == true and Aiming == true then
  757. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  758. end
  759. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  760. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  761. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  762. if Crouching == false and Aiming == true then
  763. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  764. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  765. elseif Crouching == true and Aiming == true then
  766. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  767. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  768. end
  769. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  770. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  771. end
  772. for i = 0, 1, 0.3 do
  773. wait()
  774. if Crouching == false and Aiming == true then
  775. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  776. elseif Crouching == true and Aiming == true then
  777. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  778. end
  779. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3)
  780. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5)
  781. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3)
  782. if Crouching == false and Aiming == true then
  783. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  784. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  785. elseif Crouching == true and Aiming == true then
  786. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  787. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  788. end
  789. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  790. BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  791. end
  792. end
  793. Handleweld.Part0 = RA
  794. Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  795. 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)
  796. attack = false
  797. end
  798.  
  799. mouse.Button1Down:connect(function()
  800. if attack == false and Depleted == false then
  801. Fire()
  802. end
  803. end)
  804.  
  805. mouse.KeyDown:connect(function(k)
  806. k = k:lower()
  807. if k == "r" and attack == false then
  808. Reload()
  809. elseif k == "f" and Aiming == false then
  810. Aiming = true
  811. elseif k == "f" and Aiming == true then
  812. Aiming = false
  813. elseif k == "c" and Aiming == true and Crouching == false then
  814. Crouching = true
  815. elseif k == "c" and Aiming == true and Crouching == true then
  816. Crouching = false
  817. elseif k == "z" and Aiming == true and Zoomed == false then
  818. Zoomed = true
  819. CreateSound("rbxassetid://180144779", FakeHandle, 1, 1)
  820. for i = 0, 1, 0.2 do
  821. wait()
  822. cam.FieldOfView = cam.FieldOfView - 5
  823. end
  824. Ply.CameraMode = "LockFirstPerson"
  825. --Ply.DevEnableMouseLock = false
  826. cam.FieldOfView = 10
  827. cam.CameraSubject = ScopeZoom
  828. mouse.Icon = "rbxassetid://18006519"
  829. elseif k == "z" and Aiming == true and Zoomed == true then
  830. Zoomed = false
  831. CreateSound("rbxassetid://190623951", FakeHandle, 1, 1)
  832. for i = 0, 1, 0.2 do
  833. wait()
  834. cam.FieldOfView = cam.FieldOfView + 5
  835. end
  836. Ply.CameraMode = "Classic"
  837. --Ply.DevEnableMouseLock = true
  838. cam.FieldOfView = 80
  839. cam.CameraSubject = Hu
  840. mouse.Icon = ""
  841. end
  842. end)
  843.  
  844.  
  845. local sine = 0
  846. local change = 1
  847. local val = 0
  848.  
  849. while true do
  850. wait()
  851. sine = sine + change
  852. local torvel = (RP.Velocity * Vector3.new(1, 0, 1)).magnitude
  853. local velderp = RP.Velocity.y
  854. hitfloor, posfloor = rayCast(RP.Position, (CFrame.new(RP.Position, RP.Position - Vector3.new(0, 1, 0))).lookVector, 4, Char)
  855. if equipped == true or equipped == false then
  856. if Aiming == true then
  857. if Crouching == false and Aiming == true then
  858. Hu.WalkSpeed = 10
  859. elseif Crouching == true and Aiming == true then
  860. Hu.WalkSpeed = 5
  861. end
  862. gyro.Parent = RP
  863. local gunpos = Vector3.new(mouse.Hit.p.x, He.Position.Y, mouse.Hit.p.z)
  864. offset = (Tor.Position.y - mouse.Hit.p.y) / 60
  865. local mag = (Tor.Position - mouse.Hit.p).magnitude / 80
  866. offset = offset / mag
  867. gyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p -RP.CFrame.p).unit * 100)
  868. elseif Aiming == false then
  869. Hu.JumpPower = 50
  870. Hu.WalkSpeed = 16
  871. gyro.Parent = nil
  872. end
  873. if RP.Velocity.y > 1 and hitfloor == nil then
  874. Anim = "Jump"
  875. if attack == false and Aiming == false then
  876. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  877. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  878. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(-40)), .3)
  879. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(60)), .3)
  880. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3)
  881. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3)
  882. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  883. elseif attack == false and Aiming == true then
  884. if Crouching == false and Aiming == true then
  885. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  886. elseif Crouching == true and Aiming == true then
  887. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  888. end
  889. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  890. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  891. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  892. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  893. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  894. if Crouching == false and Aiming == true then
  895. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  896. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  897. elseif Crouching == true and Aiming == true then
  898. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  899. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  900. end
  901. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  902. end
  903. elseif RP.Velocity.y < -1 and hitfloor == nil then
  904. Anim = "Fall"
  905. if attack == false and Aiming == false then
  906. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  907. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  908. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-40)), .3)
  909. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(100)), .3)
  910. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3)
  911. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3)
  912. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  913. elseif attack == false and Aiming == true then
  914. if Crouching == false and Aiming == true then
  915. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  916. elseif Crouching == true and Aiming == true then
  917. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  918. end
  919. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  920. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  921. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  922. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  923. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  924. if Crouching == false and Aiming == true then
  925. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  926. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  927. elseif Crouching == true and Aiming == true then
  928. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  929. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  930. end
  931. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  932. end
  933. elseif torvel < 1 and hitfloor ~= nil then
  934. Anim = "Idle"
  935. if attack == false and Aiming == false then
  936. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  937. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-50)), .3)
  938. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, 0) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(-40)), .3)
  939. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(70)), .3)
  940. RH.C0 = clerp(RH.C0, CFrame.new(.9, -.5, .2) * RHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(0)), .3)
  941. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -1, -1) * LHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(50)), .3)
  942. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), .3)
  943. elseif attack == false and Aiming == true then
  944. if Crouching == false and Aiming == true then
  945. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  946. elseif Crouching == true and Aiming == true then
  947. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  948. end
  949. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  950. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  951. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  952. if Crouching == false and Aiming == true then
  953. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  954. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  955. elseif Crouching == true and Aiming == true then
  956. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  957. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  958. end
  959. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  960. end
  961. elseif torvel > 2 and hitfloor ~= nil then
  962. Anim = "Walk"
  963. if attack == false and Aiming == false then
  964. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  965. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  966. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-40)), .3)
  967. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(50)), .3)
  968. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  969. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  970. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3)
  971. elseif attack == false and Aiming == true then
  972. if Crouching == false and Aiming == true then
  973. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  974. elseif Crouching == true and Aiming == true then
  975. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4)
  976. end
  977. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4)
  978. RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4)
  979. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4)
  980. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  981. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  982. if Crouching == false and Aiming == true then
  983. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  984. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  985. elseif Crouching == true and Aiming == true then
  986. RH.C0 = clerp(RH.C0, CFrame.new(1, -.1, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4)
  987. LH.C0 = clerp(LH.C0, CFrame.new(-1, -.1, -.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4)
  988. end
  989. FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  990. end
  991. end
  992.  
  993. end
  994. if #Effects > 0 then
  995. for e = 1, #Effects do
  996. if Effects[e] ~= nil then
  997. local Thing = Effects[e]
  998. if Thing ~= nil then
  999. local Part = Thing[1]
  1000. local Mode = Thing[2]
  1001. local Delay = Thing[3]
  1002. local IncX = Thing[4]
  1003. local IncY = Thing[5]
  1004. local IncZ = Thing[6]
  1005. if Thing[1].Transparency <= 1 then
  1006. if Thing[2] == "Block1" then
  1007. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1008. Mesh = Thing[1].Mesh
  1009. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1010. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1011. elseif Thing[2] == "Cylinder" then
  1012. Mesh = Thing[1].Mesh
  1013. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1014. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1015. elseif Thing[2] == "Blood" then
  1016. Mesh = Thing[7]
  1017. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1018. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1019. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1020. elseif Thing[2] == "Elec" then
  1021. Mesh = Thing[1].Mesh
  1022. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1023. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1024. elseif Thing[2] == "Disappear" then
  1025. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1026. end
  1027. else
  1028. Part.Parent = nil
  1029. table.remove(Effects, e)
  1030. end
  1031. end
  1032. end
  1033. end
  1034. end
  1035. end
Advertisement
Add Comment
Please, Sign In to add comment