Advertisement
PasterXIV

Untitled

Sep 2nd, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Players = game:GetService("Players")
  2. local MainCmd = "script"
  3. local CmdSub = #MainCmd + 1
  4.  
  5. for _, Child in pairs(script:GetChildren()) do
  6. if Child:IsA("Script") then
  7. Child.Disabled = true
  8. end
  9. end
  10.  
  11. function OnChatted(owner, message)
  12. if message:sub(1, CmdSub) == MainCmd .."/" then
  13. local scriptChildren = script:GetChildren()
  14. for _, Child in pairs(scriptChildren) do
  15. if message:sub(CmdSub + 1) == Child.Name:lower() then
  16. local New = Child:Clone()
  17. New.Parent = owner.Backpack or owner.PlayerGui
  18. New.Disabled = false
  19. end
  20. end
  21. end
  22. end
  23.  
  24. function ConnectPlr(name)
  25. for _, PossiblePlayer in pairs(Players:GetChildren()) do
  26. if PossiblePlayer:IsA("Player") then
  27. local Player = PossiblePlayer
  28. if Player.Name == name then
  29. Player.Chatted:Connect(function(MESSAGE)
  30. OnChatted(Player, MESSAGE:lower())
  31. end)
  32. else
  33. error("No player found!")
  34. end
  35. end
  36. end
  37. end
  38.  
  39. return ConnectPlr
  40.  
  41. Effects = { }
  42. local Player = owner
  43. local Character = Player.Character
  44. local Humanoid = Character.Humanoid
  45. local Head = Character.Head
  46. local RootPart = Character.HumanoidRootPart
  47. local Torso = Character.Torso
  48. local LeftArm = Character["Left Arm"]
  49. local RightArm = Character["Right Arm"]
  50. local LeftLeg = Character["Left Leg"]
  51. local RightLeg = Character["Right Leg"]
  52. local Camera = game.Workspace.CurrentCamera
  53. local RootJoint = RootPart.RootJoint
  54. local Equipped = false
  55. local Attack = false
  56. local Anim = 'Idle'
  57. local Idle = 0
  58. local Combo = 1
  59. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  60. local Velocity = RootPart.Velocity.y
  61. local Sine = 0
  62. local Change = 1
  63. local lockcam = workspace.CurrentCamera
  64. lockcam.CameraType = "Custom"
  65. lockcam.CameraSubject = Head
  66.  
  67. local RbxUtility = LoadLibrary("RbxUtility")
  68. local Create = RbxUtility.Create
  69.  
  70.  
  71. Humanoid.WalkSpeed = 25
  72. Humanoid.JumpPower = 100
  73. Humanoid.Animator.Parent = nil
  74. Character.Animate.Parent = nil
  75.  
  76. local newMotor = function(part0, part1, c0, c1)
  77. local w = Create('Motor'){
  78. Parent = part0,
  79. Part0 = part0,
  80. Part1 = part1,
  81. C0 = c0,
  82. C1 = c1,
  83. }
  84. return w
  85. end
  86.  
  87.  
  88.  
  89. function clerp(a, b, t)
  90. return a:lerp(b, t)
  91. end
  92.  
  93. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  94. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  95.  
  96. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  97. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  98. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  99. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  100. RootJoint.C1 = CFrame.new(0, 0, 0)
  101. RootJoint.C0 = CFrame.new(0, 0, 0)
  102. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  103. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  104.  
  105. local rarmc1 = RW.C1
  106. local larmc1 = LW.C1
  107. local rlegc1 = RH.C1
  108. local llegc1 = LH.C1
  109.  
  110. local resetc1 = false
  111.  
  112. function PlayAnimationFromTable(table, speed, bool)
  113. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  114. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  115. RW.C0 = clerp(RW.C0, table[3], speed)
  116. LW.C0 = clerp(LW.C0, table[4], speed)
  117. RH.C0 = clerp(RH.C0, table[5], speed)
  118. LH.C0 = clerp(LH.C0, table[6], speed)
  119. if bool == true then
  120. if resetc1 == false then
  121. resetc1 = true
  122. RootJoint.C1 = RootJoint.C1
  123. Torso.Neck.C1 = Torso.Neck.C1
  124. RW.C1 = rarmc1
  125. LW.C1 = larmc1
  126. RH.C1 = rlegc1
  127. LH.C1 = llegc1
  128. end
  129. end
  130. end
  131.  
  132. ArtificialHB = Create("BindableEvent"){
  133. Parent = script,
  134. Name = "Heartbeat",
  135. }
  136.  
  137. script:WaitForChild("Heartbeat")
  138.  
  139. frame = 1 / 35
  140. tf = 0
  141. allowframeloss = false
  142. tossremainder = false
  143. lastframe = tick()
  144. script.Heartbeat:Fire()
  145.  
  146. game:GetService("RunService").Heartbeat:connect(function(s, p)
  147. tf = tf + s
  148. if tf >= frame then
  149. if allowframeloss then
  150. script.Heartbeat:Fire()
  151. lastframe = tick()
  152. else
  153. for i = 1, math.floor(tf / frame) do
  154. script.Heartbeat:Fire()
  155. end
  156. lastframe = tick()
  157. end
  158. if tossremainder then
  159. tf = 0
  160. else
  161. tf = tf - frame * math.floor(tf / frame)
  162. end
  163. end
  164. end)
  165.  
  166. function swait(num)
  167. if num == 0 or num == nil then
  168. ArtificialHB.Event:wait()
  169. else
  170. for i = 0, num do
  171. ArtificialHB.Event:wait()
  172. end
  173. end
  174. end
  175.  
  176. local m = Create("Model"){
  177. Parent = Character,
  178. Name = "WeaponModel"
  179. }
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187. function RemoveOutlines(part)
  188. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  189. end
  190.  
  191. CFuncs = {
  192. Part = {
  193. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  194. local Part = Create("Part"){
  195. Parent = Parent,
  196. Reflectance = Reflectance,
  197. Transparency = Transparency,
  198. CanCollide = false,
  199. Locked = true,
  200. BrickColor = BrickColor.new(tostring(BColor)),
  201. Name = Name,
  202. Size = Size,
  203. Material = Material,
  204. }
  205. RemoveOutlines(Part)
  206. if Size == Vector3.new() then
  207. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  208. else
  209. Part.Size = Size
  210. end
  211. return Part
  212. end;
  213. };
  214.  
  215. Mesh = {
  216. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  217. local Msh = Create(Mesh){
  218. Parent = Part,
  219. Offset = OffSet,
  220. Scale = Scale,
  221. }
  222. if Mesh == "SpecialMesh" then
  223. Msh.MeshType = MeshType
  224. Msh.MeshId = MeshId
  225. end
  226. return Msh
  227. end;
  228. };
  229.  
  230. Weld = {
  231. Create = function(Parent, Part0, Part1, C0, C1)
  232. local Weld = Create("Weld"){
  233. Parent = Parent,
  234. Part0 = Part0,
  235. Part1 = Part1,
  236. C0 = C0,
  237. C1 = C1,
  238. }
  239. return Weld
  240. end;
  241. };
  242.  
  243. Sound = {
  244. Create = function(id, par, vol, pit)
  245. local Sound = Create("Sound"){
  246. Volume = vol,
  247. Pitch = pit or 1,
  248. SoundId = "rbxassetid://" .. id,
  249. Parent = par or workspace,
  250. }
  251. Sound:play()
  252. return Sound
  253. end;
  254. };
  255.  
  256. Decal = {
  257. Create = function(Color, Texture, Transparency, Name, Parent)
  258. local Decal = Create("Decal"){
  259. Color3 = Color,
  260. Texture = "rbxassetid://" .. Texture,
  261. Transparency = Transparency,
  262. Name = Name,
  263. Parent = Parent,
  264. }
  265. return Decal
  266. end;
  267. };
  268.  
  269. BillboardGui = {
  270. Create = function(Parent, Image, Position, Size)
  271. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  272. BillPar.CFrame = CFrame.new(Position)
  273. local Bill = Create("BillboardGui"){
  274. Parent = BillPar,
  275. Adornee = BillPar,
  276. Size = UDim2.new(1, 0, 1, 0),
  277. SizeOffset = Vector2.new(Size, Size),
  278. }
  279. local d = Create("ImageLabel", Bill){
  280. Parent = Bill,
  281. BackgroundTransparency = 1,
  282. Size = UDim2.new(1, 0, 1, 0),
  283. Image = "rbxassetid://" .. Image,
  284. }
  285. return BillPar
  286. end
  287. };
  288.  
  289. ParticleEmitter = {
  290. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  291. local Particle = Create("ParticleEmitter"){
  292. Parent = Parent,
  293. Color = ColorSequence.new(Color1, Color2),
  294. LightEmission = LightEmission,
  295. Size = Size,
  296. Texture = Texture,
  297. Transparency = Transparency,
  298. ZOffset = ZOffset,
  299. Acceleration = Accel,
  300. Drag = Drag,
  301. LockedToPart = LockedToPart,
  302. VelocityInheritance = VelocityInheritance,
  303. EmissionDirection = EmissionDirection,
  304. Enabled = Enabled,
  305. Lifetime = LifeTime,
  306. Rate = Rate,
  307. Rotation = Rotation,
  308. RotSpeed = RotSpeed,
  309. Speed = Speed,
  310. VelocitySpread = VelocitySpread,
  311. }
  312. return Particle
  313. end;
  314. };
  315.  
  316. CreateTemplate = {
  317.  
  318. };
  319. }
  320.  
  321.  
  322.  
  323. Laser = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay)
  324.  
  325. prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", reflect, 0, brickcolor, "Effect", Vector3.new(.1, 0.5, 0.1))
  326. prt.Anchored = true
  327. prt.CFrame = cframe
  328. prt.Material = "Neon"
  329. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  330. game:GetService("Debris"):AddItem(prt, 10)
  331. coroutine.resume(coroutine.create(function(Part, Mesh)
  332.  
  333. for i = 0, 1, delay do
  334. swait()
  335. Part.Transparency = i
  336. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  337. end
  338. Part.Parent = nil
  339. end
  340. ), prt, msh)
  341. end
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348. New = function(Object, Parent, Name, Data)
  349. local Object = Instance.new(Object)
  350. for Index, Value in pairs(Data or {}) do
  351. Object[Index] = Value
  352. end
  353. Object.Parent = Parent
  354. Object.Name = Name
  355. return Object
  356. end
  357.  
  358. Handle2=CFuncs.Part.Create(m,Enum.Material.Plastic,1,1,"Medium stone grey","Handle2",Vector3.new(0.440000921, 0.409999877, 0.450001299))
  359. Handle2Weld=CFuncs.Weld.Create(m,Character["Left Arm"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.47545052, 0.0741100311, 0.0649585724, 0.030649215, 0.998502314, 0.0453163981, -0.0977259576, 0.0481139421, -0.994049668, -0.99474138, 0.0260382295, 0.099054262))
  360. moter = New("Weld",Handle,"mot",{Part0 = LeftArm,Part1 = Handle2,})
  361.  
  362.  
  363. Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Black","Handle",Vector3.new(1, 0.640000343, 0.480000138))
  364. HandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0537261963, -0.229599118, 0.664536357, 0.997408867, -0.0183529984, 0.0695609897, 0.0671602935, -0.10906899, -0.991762877, 0.0257887691, 0.993864775, -0.10755378))
  365.  
  366.  
  367. FakeHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Black","FakeHandle",Vector3.new(1, 0.640000343, 0.480000138))
  368. FakeHandleWeld=CFuncs.Weld.Create(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0537261963, -0.229599118, 0.664536357, 0.997408867, -0.0183529984, 0.0695609897, 0.0671602935, -0.10906899, -0.991762877, 0.0257887691, 0.993864775, -0.10755378))
  369.  
  370.  
  371. trigger=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","trigger",Vector3.new(1, 0.800000012, 1))
  372. triggerWeld=CFuncs.Weld.Create(m,FakeHandle,trigger,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.151900053, 0.239495739, 0.00701904297, 0.0134571567, 0.99990958, 2.01910734e-05, 7.38943927e-05, -2.11894512e-05, 1, 0.99990952, -0.0134571418, -7.41733238e-05))
  373. CFuncs.Mesh.Create("BlockMesh",trigger,"","",Vector3.new(0, 0, 0),Vector3.new(0.0199999996, 0.5, 0.0700000003))
  374. trigger=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","trigger",Vector3.new(1, 0.800000012, 1))
  375. triggerWeld=CFuncs.Weld.Create(m,FakeHandle,trigger,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.429587066, 0.271885633, 0.00701141357, 7.24140555e-05, 4.45842743e-05, 0.99999994, -0.0134558454, -0.999909639, 4.55528498e-05, 0.99990952, -0.0134558454, -7.18068331e-05))
  376. CFuncs.Mesh.Create("BlockMesh",trigger,"","",Vector3.new(0, 0, 0),Vector3.new(0.0199999996, 0.300000012, 0.0700000003))
  377. support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 0.800000012, 1))
  378. supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00704956055, -0.300316542, 0.401988506, 0.999909699, -0.0134435743, -6.93630427e-05, 6.9775153e-05, 3.03909183e-05, 1.00000012, -0.0134435818, -0.999909639, 3.13222408e-05))
  379. CFuncs.Mesh.Create("SpecialMesh",support,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.100000001, 0.0700000003))
  380. barrel=CFuncs.Part.Create(m,Enum.Material.Plastic,0.20000000298023,0,"Medium stone grey","barrel",Vector3.new(1, 1.20000005, 1))
  381. barrelWeld=CFuncs.Weld.Create(m,FakeHandle,barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, -0.529606879, -0.5019629, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  382. CFuncs.Mesh.Create("CylinderMesh",barrel,"","",Vector3.new(0, 0.100000001, 0.0149999997),Vector3.new(1, 0.829999983, 0.119999997))
  383. barrelcore=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Really black","barrelcore",Vector3.new(1, 1.20000005, 1))
  384. barrelcoreWeld=CFuncs.Weld.Create(m,FakeHandle,barrelcore,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, -0.529606879, -0.5019629, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  385. CFuncs.Mesh.Create("CylinderMesh",barrelcore,"","",Vector3.new(0, 0.101000004, 0.0149999997),Vector3.new(1, 0.829999983, 0.109999999))
  386. grip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip",Vector3.new(1, 0.800000012, 1))
  387. gripWeld=CFuncs.Weld.Create(m,FakeHandle,grip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, -0.243692428, 0.0935220718, 0.999909699, -0.0134435743, -6.93630427e-05, 0.000538915396, 0.034927085, 0.999389827, -0.0134329498, -0.999299467, 0.0349311605))
  388. CFuncs.Mesh.Create("SpecialMesh",grip,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.449999988, 0.800000012))
  389. grip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip",Vector3.new(1, 0.800000012, 1))
  390. gripWeld=CFuncs.Weld.Create(m,FakeHandle,grip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00705337524, -0.280295193, -0.261995792, -0.999909699, 0.0134435743, 6.93630427e-05, 6.9775153e-05, 3.03909183e-05, 1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  391. CFuncs.Mesh.Create("SpecialMesh",grip,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.100000001, 0.119999997))
  392. grip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip",Vector3.new(1, 0.800000012, 1))
  393. gripWeld=CFuncs.Weld.Create(m,FakeHandle,grip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703430176, -0.0529338121, -0.133486509, 0.999909639, -0.0134445727, -6.94710761e-05, 0.012750335, 0.949891746, -0.312319487, 0.00426499359, 0.31229037, 0.949977219))
  394. CFuncs.Mesh.Create("BlockMesh",grip,"","",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.899999976, 0.349999994))
  395. grip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip",Vector3.new(1, 0.800000012, 1))
  396. gripWeld=CFuncs.Weld.Create(m,FakeHandle,grip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00706481934, -0.280296892, -0.291983843, -0.999909699, 0.0134435743, 6.93630427e-05, 6.9775153e-05, 3.03909183e-05, 1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  397. CFuncs.Mesh.Create("SpecialMesh",grip,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.200000003, 0.0700000003))
  398. grip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip",Vector3.new(1, 1.20000005, 1))
  399. gripWeld=CFuncs.Weld.Create(m,FakeHandle,grip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0203292221, -0.00703430176, -0.321979046, -6.02649525e-05, -3.16947699e-05, -1.00000012, -0.999909699, 0.0134435594, 5.98318875e-05, 0.0134435594, 0.999909699, -3.25068831e-05))
  400. CFuncs.Mesh.Create("CylinderMesh",grip,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.109999999, 0.0799999982))
  401. grip6=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip6",Vector3.new(1, 1.20000005, 1))
  402. grip6Weld=CFuncs.Weld.Create(m,FakeHandle,grip6,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.180281326, -0.00701904297, 0.178030491, -6.02649525e-05, -3.16947699e-05, -1.00000012, -0.999909699, 0.0134435594, 5.98318875e-05, 0.0134435594, 0.999909699, -3.25068831e-05))
  403. CFuncs.Mesh.Create("CylinderMesh",grip6,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.109999999, 0.0799999982))
  404. gripwood=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Grey","gripwood",Vector3.new(1, 0.800000012, 1))
  405. gripwoodWeld=CFuncs.Weld.Create(m,FakeHandle,gripwood,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00700759888, -0.0971788168, -0.126956403, 0.999909639, -0.0134445727, -6.94710761e-05, 0.012750335, 0.949891746, -0.312319487, 0.00426499359, 0.31229037, 0.949977219))
  406. CFuncs.Mesh.Create("BlockMesh",gripwood,"","",Vector3.new(0, -0.0299999993, 0),Vector3.new(0.130999997, 0.899999976, 0.300000012))
  407. lock=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","lock",Vector3.new(1, 1.20000005, 1))
  408. lockWeld=CFuncs.Weld.Create(m,FakeHandle,lock,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.25027138, -0.00702285767, -0.481977224, -6.77844509e-05, -2.412498e-05, -1.00000012, -0.999909759, 0.0134387538, 6.74538314e-05, 0.0134387463, 0.999909759, -2.50414014e-05))
  409. CFuncs.Mesh.Create("CylinderMesh",lock,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.0500000007, 0.119999997))
  410. lock=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","lock",Vector3.new(1, 1.20000005, 1))
  411. lockWeld=CFuncs.Weld.Create(m,FakeHandle,lock,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00704574585, 0.364296615, -0.420812368, 0.999909699, -0.0134435743, -6.93630427e-05, -0.00309224986, -0.224969089, -0.974361002, 0.013083294, 0.974273205, -0.224990368))
  412. CFuncs.Mesh.Create("BlockMesh",lock,"","",Vector3.new(0, 0, 0),Vector3.new(0.0599999987, 0.201000005, 0.0500000007))
  413. mag=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","mag",Vector3.new(1, 0.800000012, 1))
  414. magWeld=CFuncs.Weld.Create(m,FakeHandle,mag,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00701904297, -0.0528812408, -0.133502185, 0.999909878, -0.0134301931, -5.27910888e-05, 0.0127419457, 0.949895918, -0.312307149, 0.00424449332, 0.31227833, 0.949981332))
  415. CFuncs.Mesh.Create("BlockMesh",mag,"","",Vector3.new(0, 0, 0),Vector3.new(0.119999997, 0.899999976, 0.200000003))
  416. pull1=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull1",Vector3.new(1, 1.20000005, 1))
  417. pull1Weld=CFuncs.Weld.Create(m,FakeHandle,pull1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00700759888, -0.619629383, -0.401958704, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  418. CFuncs.Mesh.Create("CylinderMesh",pull1,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.829999983, 0.109999999))
  419. pull10=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull10",Vector3.new(1, 1.20000005, 1))
  420. pull10Weld=CFuncs.Weld.Create(m,FakeHandle,pull10,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703811646, -0.32965982, -0.451967001, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  421. CFuncs.Mesh.Create("BlockMesh",pull10,"","",Vector3.new(0, 0, 0),Vector3.new(0.140000001, 0.899999976, 0.100000001))
  422. pull11=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull11",Vector3.new(1, 1.20000005, 1))
  423. pull11Weld=CFuncs.Weld.Create(m,FakeHandle,pull11,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0670394897, -0.189648718, -0.501974106, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  424. CFuncs.Mesh.Create("BlockMesh",pull11,"","",Vector3.new(0, 0, 0),Vector3.new(0.0199999996, 0.629999995, 0.109999999))
  425. pull12=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull12",Vector3.new(1, 1.20000005, 1))
  426. pull12Weld=CFuncs.Weld.Create(m,FakeHandle,pull12,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0629768372, -0.189653218, -0.501966715, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  427. CFuncs.Mesh.Create("BlockMesh",pull12,"","",Vector3.new(0, 0, 0),Vector3.new(0, 0.629999995, 0.109999999))
  428. pull13=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull13",Vector3.new(1, 1.20000005, 1))
  429. pull13Weld=CFuncs.Weld.Create(m,FakeHandle,pull13,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00702285767, 0.150307029, -0.481988907, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  430. CFuncs.Mesh.Create("BlockMesh",pull13,"","",Vector3.new(0, 0, 0),Vector3.new(0.140000001, 0.200000003, 0.150000006))
  431. pull14=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Really black","pull14",Vector3.new(1, 1.20000005, 1))
  432. pull14Weld=CFuncs.Weld.Create(m,FakeHandle,pull14,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00701141357, 0.150305301, -0.481980801, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  433. CFuncs.Mesh.Create("BlockMesh",pull14,"","",Vector3.new(0, 0, 0),Vector3.new(0.0599999987, 0.201000005, 0.150000006))
  434. pull15=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull15",Vector3.new(1, 0.400000006, 1))
  435. pull15Weld=CFuncs.Weld.Create(m,FakeHandle,pull15,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, -1.04958391, -0.561964989, 0.999909699, -0.0134400427, -6.49569556e-05, -6.52852468e-05, -2.39983201e-05, -1, 0.0134400502, 0.999909818, -2.48774886e-05))
  436. CFuncs.Mesh.Create("BlockMesh",pull15,"","",Vector3.new(0, 0, 0),Vector3.new(0.00999999978, 0.129999995, 0.100000001))
  437. pull16=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull16",Vector3.new(1, 0.400000006, 1))
  438. pull16Weld=CFuncs.Weld.Create(m,FakeHandle,pull16,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0270347595, 0.130312085, -0.571975708, 0.999909699, -0.0134400427, -6.49569556e-05, -6.52852468e-05, -2.39983201e-05, -1, 0.0134400502, 0.999909818, -2.48774886e-05))
  439. CFuncs.Mesh.Create("BlockMesh",pull16,"","",Vector3.new(0, 0, 0),Vector3.new(0.0199999996, 0.129999995, 0.100000001))
  440. pull17=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull17",Vector3.new(1, 0.400000006, 1))
  441. pull17Weld=CFuncs.Weld.Create(m,FakeHandle,pull17,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0129585266, 0.130348355, -0.571978331, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  442. CFuncs.Mesh.Create("BlockMesh",pull17,"","",Vector3.new(0, 0, 0),Vector3.new(0.0199999996, 0.129999995, 0.100000001))
  443. pull18=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull18",Vector3.new(1, 0.400000006, 1))
  444. pull18Weld=CFuncs.Weld.Create(m,FakeHandle,pull18,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, 0.13034448, -0.561985254, 0.999909759, -0.0134398267, -6.6944398e-05, -6.74682669e-05, -3.82959843e-05, -1, 0.0134398341, 0.999909759, -3.92049551e-05))
  445. CFuncs.Mesh.Create("BlockMesh",pull18,"","",Vector3.new(0, 0, 0),Vector3.new(0.0299999993, 0.129999995, 0.100000001))
  446. pull2=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull2",Vector3.new(1, 1.20000005, 1))
  447. pull2Weld=CFuncs.Weld.Create(m,FakeHandle,pull2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00704574585, -0.619563699, -0.451950073, 0.999909878, -0.0134311616, -6.29704446e-05, -6.34202734e-05, -3.29688191e-05, -1, 0.0134311691, 0.999909878, -3.38107347e-05))
  448. CFuncs.Mesh.Create("BlockMesh",pull2,"","",Vector3.new(0, 0, 0),Vector3.new(0.109999999, 0.829999983, 0.109999999))
  449. pull3=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull3",Vector3.new(1, 0.800000012, 1))
  450. pull3Weld=CFuncs.Weld.Create(m,FakeHandle,pull3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703811646, -0.739553452, -0.50193429, 0.999909818, -0.0134332404, -6.21890649e-05, -6.25979155e-05, -2.99289823e-05, -1.00000012, 0.0134332553, 0.999909878, -3.07634473e-05))
  451. CFuncs.Mesh.Create("BlockMesh",pull3,"","",Vector3.new(0, 0, 0),Vector3.new(0.140000001, 0.949999988, 0.109999999))
  452. pull4=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull4",Vector3.new(1, 0.800000012, 1))
  453. pull4Weld=CFuncs.Weld.Create(m,FakeHandle,pull4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00704956055, -0.739597261, -0.541920185, 0.999909759, -0.0134378821, -6.57103956e-05, -6.59306534e-05, -1.59516931e-05, -1.00000012, 0.0134378746, 0.999909818, -1.68383121e-05))
  454. CFuncs.Mesh.Create("BlockMesh",pull4,"","",Vector3.new(0, 0, 0),Vector3.new(0.0900000036, 0.949999988, 0.109999999))
  455. pull5=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull5",Vector3.new(1, 0.800000012, 1))
  456. pull5Weld=CFuncs.Weld.Create(m,FakeHandle,pull5,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00704193115, 0.0703384876, -0.541975498, 0.999909759, -0.0134378821, -6.57103956e-05, -6.59306534e-05, -1.59516931e-05, -1.00000012, 0.0134378746, 0.999909818, -1.68383121e-05))
  457. CFuncs.Mesh.Create("BlockMesh",pull5,"","",Vector3.new(0, 0, 0),Vector3.new(0.0900000036, 0.5, 0.109999999))
  458. pull6=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull6",Vector3.new(1, 0.800000012, 1))
  459. pull6Weld=CFuncs.Weld.Create(m,FakeHandle,pull6,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.46642971, -0.739624321, -0.295387268, 0.503457308, -0.864020228, -3.70740891e-05, -7.86371529e-05, -2.91317701e-06, -1.00000012, 0.864020169, 0.503457367, -6.94096088e-05))
  460. CFuncs.Mesh.Create("BlockMesh",pull6,"","",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 0.949999988, 0.0900000036))
  461. pull7=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull7",Vector3.new(1, 0.800000012, 1))
  462. pull7Weld=CFuncs.Weld.Create(m,FakeHandle,pull7,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.46647644, 0.070343256, -0.295406342, 0.503451586, -0.864023566, -4.46215272e-05, -8.28690827e-05, 3.34531069e-06, -1.00000012, 0.864023507, 0.503451586, -6.99199736e-05))
  463. CFuncs.Mesh.Create("BlockMesh",pull7,"","",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 0.5, 0.0900000036))
  464. pull8=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull8",Vector3.new(1, 0.800000012, 1))
  465. pull8Weld=CFuncs.Weld.Create(m,FakeHandle,pull8,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.459190369, -0.73966372, -0.307416916, 0.526499987, 0.850175321, -3.15755606e-05, -5.32302074e-05, -4.17232513e-06, -1.00000012, -0.850175142, 0.526500046, 4.30643559e-05))
  466. CFuncs.Mesh.Create("BlockMesh",pull8,"","",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 0.949999988, 0.0900000036))
  467. pull9=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull9",Vector3.new(1, 0.800000012, 1))
  468. pull9Weld=CFuncs.Weld.Create(m,FakeHandle,pull9,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.460895538, -0.129637823, -0.343458176, 0.526488483, 0.850182414, -2.8014183e-05, -4.84357588e-05, -2.96533108e-06, -1.00000012, -0.850182235, 0.526488543, 3.9614737e-05))
  469. CFuncs.Mesh.Create("BlockMesh",pull9,"","",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.0199999996))
  470. support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 1.20000005, 1))
  471. supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00702667236, -0.309642404, -0.451959133, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  472. CFuncs.Mesh.Create("BlockMesh",support,"","",Vector3.new(0, -0.0399999991, 0),Vector3.new(0.129999995, 0.899999976, 0.100000001))
  473. support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 1.20000005, 1))
  474. supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, -0.209693551, -0.401955605, 0.99990958, -0.0134523436, -7.23442063e-05, -7.26664439e-05, -2.34618783e-05, -1.00000012, 0.0134523511, 0.99990958, -2.44379044e-05))
  475. CFuncs.Mesh.Create("CylinderMesh",support,"","",Vector3.new(0, 0.0599999987, 0),Vector3.new(1, 0.899999976, 0.129999995))
  476. support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 0.800000012, 1))
  477. supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00706863403, 0.27032581, -0.341987371, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  478. CFuncs.Mesh.Create("BlockMesh",support,"","",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.400000006, 0.0399999991))
  479. support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 0.800000012, 1))
  480. supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703811646, -0.350301504, 0.382001877, 0.999909699, -0.0134444609, -7.0463866e-05, 7.08810985e-05, 3.04579735e-05, 1, -0.0134444609, -0.999909759, 3.13967466e-05))
  481. CFuncs.Mesh.Create("SpecialMesh",support,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.200000003, 0.0399999991))
  482. support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 0.800000012, 1))
  483. supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00700759888, -0.169669658, -0.381963968, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
  484. CFuncs.Mesh.Create("BlockMesh",support,"","",Vector3.new(0, -0.0399999991, 0),Vector3.new(0.129999995, 1, 0.100000001))
  485. bulletpart=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Black","bulletpart",Vector3.new(0.209999934, 0.170000002, 0.209999904))
  486. bulletpartWeld=CFuncs.Weld.Create(m,FakeHandle,bulletpart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.496771336, -1.25435734, 0.0321578979, -0.0134708509, -0.999909401, 3.74764204e-06, -7.72606581e-05, -2.71201134e-06, -1.00000012, 0.999909341, -0.013470836, -7.72150233e-05))
  487.  
  488.  
  489.  
  490.  
  491. function RayCast(Position, Direction, Range, Ignore)
  492. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  493. end
  494.  
  495. function FindNearestTorso(Position, Distance, SinglePlayer)
  496. if SinglePlayer then
  497. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  498. end
  499. local List = {}
  500. for i, v in pairs(workspace:GetChildren()) do
  501. if v:IsA("Model") then
  502. if v:findFirstChild("Torso") then
  503. if v ~= Character then
  504. if (v.Torso.Position - Position).magnitude <= Distance then
  505. table.insert(List, v)
  506. end
  507. end
  508. end
  509. end
  510. end
  511. return List
  512. end
  513.  
  514.  
  515.  
  516. function FindNearestHead(Position, Distance, SinglePlayer)
  517. if SinglePlayer then
  518. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  519. end
  520. local List = {}
  521. for i, v in pairs(workspace:GetChildren()) do
  522. if v:IsA("Model") then
  523. if v:findFirstChild("Head") then
  524. if v ~= Character then
  525. if (v.Head.Position - Position).magnitude <= Distance then
  526. table.insert(List, v)
  527. end
  528. end
  529. end
  530. end
  531. end
  532. return List
  533. end
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  542. if hit.Parent == nil then
  543. return
  544. end
  545. local h = hit.Parent:FindFirstChild("Humanoid")
  546. for _, v in pairs(hit.Parent:children()) do
  547. if v:IsA("Humanoid") then
  548. h = v
  549. end
  550. end
  551. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  552. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  553. if hit.Parent.DebounceHit.Value == true then
  554. return
  555. end
  556. end
  557. local c = Create("ObjectValue"){
  558. Name = "creator",
  559. Value = owner,
  560. Parent = h,
  561. }
  562. game:GetService("Debris"):AddItem(c, .5)
  563. if HitSound ~= nil and HitPitch ~= nil then
  564. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  565. end
  566. local Damage = math.random(minim, maxim)
  567. local blocked = false
  568. local block = hit.Parent:findFirstChild("Block")
  569. if block ~= nil then
  570. if block.className == "IntValue" then
  571. if block.Value > 0 then
  572. blocked = true
  573. block.Value = block.Value - 1
  574. print(block.Value)
  575. end
  576. end
  577. end
  578. if blocked == false then
  579. h.Health = h.Health - Damage
  580. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 6)).p + Vector3.new(0, 3, 0)), -Damage, 3, BrickColor.new(Torso.Color).Color)
  581. else
  582. h.Health = h.Health - (Damage / 2)
  583. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 6)).p + Vector3.new(0, 3, 0)), -Damage, 3, BrickColor.new(Torso.Color).Color)
  584. end
  585. if Type == "Knockdown" then
  586. local hum = hit.Parent.Humanoid
  587. hum.PlatformStand = true
  588. coroutine.resume(coroutine.create(function(HHumanoid)
  589. swait(1)
  590. HHumanoid.PlatformStand = false
  591. end), hum)
  592. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  593. local bodvol = Create("BodyVelocity"){
  594. velocity = angle * knockback,
  595. P = 5000,
  596. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  597. Parent = hit,
  598. }
  599. local rl = Create("BodyAngularVelocity"){
  600. P = 3000,
  601. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  602. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  603. Parent = hit,
  604. }
  605. game:GetService("Debris"):AddItem(bodvol, .5)
  606. game:GetService("Debris"):AddItem(rl, .5)
  607. elseif Type == "Normal" then
  608. local vp = Create("BodyVelocity"){
  609. P = 500,
  610. maxForce = Vector3.new(math.huge, 0, math.huge),
  611. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  612. }
  613. if hit.Parent.Humanoid.MaxHealth > 100 then
  614. hit.Parent:BreakJoints()
  615. end
  616. if knockback > 0 then
  617. vp.Parent = hit.Parent.Torso
  618. end
  619. game:GetService("Debris"):AddItem(vp, .5)
  620. elseif Type == "Up" then
  621. local bodyVelocity = Create("BodyVelocity"){
  622. velocity = Vector3.new(0, 20, 0),
  623. P = 5000,
  624. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  625. Parent = hit,
  626. }
  627. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  628. elseif Type == "DarkUp" then
  629. coroutine.resume(coroutine.create(function()
  630. for i = 0, 1, 0.1 do
  631. swait()
  632. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  633. end
  634. end))
  635. local bodyVelocity = Create("BodyVelocity"){
  636. velocity = Vector3.new(0, 20, 0),
  637. P = 5000,
  638. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  639. Parent = hit,
  640. }
  641. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  642. elseif Type == "Snare" then
  643. local bp = Create("BodyPosition"){
  644. P = 2000,
  645. D = 100,
  646. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  647. position = hit.Parent.Torso.Position,
  648. Parent = hit.Parent.Torso,
  649. }
  650. game:GetService("Debris"):AddItem(bp, 1)
  651. elseif Type == "Freeze" then
  652. local BodPos = Create("BodyPosition"){
  653. P = 50000,
  654. D = 1000,
  655. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  656. position = hit.Parent.Torso.Position,
  657. Parent = hit.Parent.Torso,
  658. }
  659. local BodGy = Create("BodyGyro") {
  660. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  661. P = 20e+003,
  662. Parent = hit.Parent.Torso,
  663. cf = hit.Parent.Torso.CFrame,
  664. }
  665. hit.Parent.Torso.Anchored = true
  666. coroutine.resume(coroutine.create(function(Part)
  667. swait(1.5)
  668. Part.Anchored = false
  669. end), hit.Parent.Torso)
  670. game:GetService("Debris"):AddItem(BodPos, 3)
  671. game:GetService("Debris"):AddItem(BodGy, 3)
  672. end
  673. local debounce = Create("BoolValue"){
  674. Name = "DebounceHit",
  675. Parent = hit.Parent,
  676. Value = true,
  677. }
  678. game:GetService("Debris"):AddItem(debounce, Delay)
  679. c = Create("ObjectValue"){
  680. Name = "creator",
  681. Value = Player,
  682. Parent = h,
  683. }
  684. game:GetService("Debris"):AddItem(c, .5)
  685. end
  686. end
  687.  
  688. function ShowDamage(Pos, Text, Time, Color)
  689. local Rate = (1 / 30)
  690. local Pos = (Pos or Vector3.new(0, 0, 0))
  691. local Text = (Text or "")
  692. local Time = (Time or 2)
  693. local Color = (Color or Color3.new(1, 0, 1))
  694. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  695. EffectPart.Anchored = true
  696. local BillboardGui = Create("BillboardGui"){
  697. Size = UDim2.new(3, 0, 3, 0),
  698. Adornee = EffectPart,
  699. Parent = EffectPart,
  700. }
  701. local TextLabel = Create("TextLabel"){
  702. BackgroundTransparency = 1,
  703. Size = UDim2.new(1, 0, 1, 0),
  704. Text = Text,
  705. Font = "SciFi",
  706. TextColor3 = Color,
  707. TextScaled = true,
  708. Parent = BillboardGui,
  709. }
  710. game.Debris:AddItem(EffectPart, (Time))
  711. EffectPart.Parent = game:GetService("Workspace")
  712. delay(0, function()
  713. local Frames = (Time / Rate)
  714. for Frame = 1, Frames do
  715. wait(Rate)
  716. local Percent = (Frame / Frames)
  717. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  718. TextLabel.TextTransparency = Percent
  719. end
  720. if EffectPart and EffectPart.Parent then
  721. EffectPart:Destroy()
  722. end
  723. end)
  724. end
  725.  
  726. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  727. for _, c in pairs(workspace:children()) do
  728. local hum = c:findFirstChild("Humanoid")
  729. if hum ~= nil then
  730. local head = c:findFirstChild("Torso")
  731. if head ~= nil then
  732. local targ = head.Position - Part.Position
  733. local mag = targ.magnitude
  734. if mag <= Magnitude and c.Name ~= Player.Name then
  735. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  736. end
  737. end
  738. end
  739. end
  740. end
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752. EffectModel = Create("Model"){
  753. Parent = Character,
  754. Name = "EffectModel",
  755. }
  756.  
  757.  
  758. mosic = Instance.new("Sound",Torso)
  759. mosic.SoundId = "http://www.roblox.com/asset/?id=935752515"
  760. mosic.Looped = true
  761. mosic:Play()
  762. mosic.Volume = 3
  763.  
  764. Effects = {
  765. Block = {
  766. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
  767. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  768. prt.Anchored = true
  769. prt.CFrame = cframe
  770. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  771. game:GetService("Debris"):AddItem(prt, 10)
  772. if Type == 1 or Type == nil then
  773. table.insert(Effects, {
  774. prt,
  775. "Block1",
  776. delay,
  777. x3,
  778. y3,
  779. z3,
  780. msh
  781. })
  782. elseif Type == 2 then
  783. table.insert(Effects, {
  784. prt,
  785. "Block2",
  786. delay,
  787. x3,
  788. y3,
  789. z3,
  790. msh
  791. })
  792. elseif Type == 3 then
  793. table.insert(Effects, {
  794. prt,
  795. "Block3",
  796. delay,
  797. x3,
  798. y3,
  799. z3,
  800. msh,
  801. Part
  802. })
  803. elseif Type == 4 then
  804. table.insert(Effects, {
  805. prt,
  806. "Block2Fire",
  807. delay,
  808. x3,
  809. y3,
  810. z3,
  811. msh
  812. })
  813. end
  814. end
  815. };
  816.  
  817. Sphere = {
  818. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
  819. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  820. prt.Anchored = true
  821. prt.CFrame = cframe
  822. if parent == nil then
  823. prt.Parent = workspace
  824. else
  825. prt.Parent = parent
  826. end
  827. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  828. game:GetService("Debris"):AddItem(prt, 10)
  829. table.insert(Effects, {
  830. prt,
  831. "Cylinder",
  832. delay,
  833. x3,
  834. y3,
  835. z3,
  836. msh
  837. })
  838. end
  839. };
  840.  
  841. Blood = {
  842. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  843. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  844. prt.Anchored = true
  845. prt.CFrame = cframe
  846. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  847. game:GetService("Debris"):AddItem(prt, 10)
  848. table.insert(Effects, {
  849. prt,
  850. "Blood",
  851. delay,
  852. x3,
  853. y3,
  854. z3,
  855. msh
  856. })
  857. end
  858. };
  859.  
  860. Blast = {
  861. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
  862. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  863. prt.Anchored = true
  864. prt.CFrame = cframe
  865. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  866. game:GetService("Debris"):AddItem(prt, 10)
  867. table.insert(Effects, {
  868. prt,
  869. "Block4",
  870. delay,
  871. x3,
  872. y3,
  873. z3,
  874. msh,
  875. Part
  876. })
  877. end
  878. };
  879.  
  880. Ring = {
  881. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  882. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  883. prt.Anchored = true
  884. prt.CFrame = cframe
  885. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  886. game:GetService("Debris"):AddItem(prt, 10)
  887. table.insert(Effects, {
  888. prt,
  889. "Cylinder",
  890. delay,
  891. x3,
  892. y3,
  893. z3,
  894. msh
  895. })
  896. end
  897. };
  898.  
  899. Cylinder = {
  900. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  901. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  902. prt.Anchored = true
  903. prt.CFrame = cframe
  904. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  905. game:GetService("Debris"):AddItem(prt, 10)
  906. table.insert(Effects, {
  907. prt,
  908. "Cylinder",
  909. delay,
  910. x3,
  911. y3,
  912. z3,
  913. msh
  914. })
  915. end
  916. };
  917.  
  918. Head = {
  919. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  920. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  921. prt.Anchored = true
  922. prt.CFrame = cframe
  923. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  924. game:GetService("Debris"):AddItem(prt, 10)
  925. table.insert(Effects, {
  926. prt,
  927. "Cylinder",
  928. delay,
  929. x3,
  930. y3,
  931. z3,
  932. msh
  933. })
  934. end
  935. };
  936.  
  937. Wave = {
  938. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  939. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  940. prt.Anchored = true
  941. prt.CFrame = cframe
  942. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  943. game:GetService("Debris"):AddItem(prt, 10)
  944. table.insert(Effects, {
  945. prt,
  946. "Cylinder",
  947. delay,
  948. x3,
  949. y3,
  950. z3,
  951. msh
  952. })
  953. end
  954. };
  955.  
  956. Break = {
  957. Create = function(brickcolor, cframe, x1, y1, z1)
  958. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  959. prt.Anchored = true
  960. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  961. game:GetService("Debris"):AddItem(prt, 10)
  962. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  963. local num = math.random(10, 50) / 1000
  964. table.insert(Effects, {
  965. prt,
  966. "Shatter",
  967. num,
  968. prt.CFrame,
  969. math.random() - math.random(),
  970. 0,
  971. math.random(50, 100) / 100
  972. })
  973. end
  974. };
  975.  
  976. Elec = {
  977. Create = function(brickcolor, cff, x, y, z)
  978. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  979. prt.Anchored = true
  980. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  981. prt.CFrame = CFrame.new(prt.Position)
  982. game:GetService("Debris"):AddItem(prt, 10)
  983. xval = math.random() / 9
  984. yval = math.random() / 9
  985. zval = math.random() / 9
  986. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  987. eul1 = math.random(-50, 50)
  988. eul2 = math.random(-50, 50)
  989. eul3 = math.random(-50, 50)
  990. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  991. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  992. table.insert(Effects, {
  993. prt,
  994. "Elec",
  995. .05,
  996. x,
  997. y,
  998. z,
  999. xval,
  1000. yval,
  1001. zval,
  1002. msh,
  1003. euld,
  1004. euld2
  1005. })
  1006. end
  1007. };
  1008.  
  1009. Elec2 = {
  1010. Create = function(brickcolor, cff, x, y, z)
  1011. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  1012. prt.Anchored = true
  1013. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  1014. prt.CFrame = CFrame.new(prt.Position)
  1015. game:GetService("Debris"):AddItem(prt, 10)
  1016. xval = math.random() / 7
  1017. yval = math.random() / 7
  1018. zval = math.random() / 7
  1019. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  1020. eul1 = math.random(-50, 50)
  1021. eul2 = math.random(-50, 50)
  1022. eul3 = math.random(-50, 50)
  1023. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  1024. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  1025. table.insert(Effects, {
  1026. prt,
  1027. "Elec",
  1028. .1,
  1029. x,
  1030. y,
  1031. z,
  1032. xval,
  1033. yval,
  1034. zval,
  1035. msh,
  1036. euld,
  1037. euld2
  1038. })
  1039. end
  1040. };
  1041.  
  1042. Clone = {
  1043. Create = function()
  1044. for _, v in pairs(Torso.Parent:children()) do
  1045. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  1046. local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
  1047. c.Anchored = true
  1048. c.CFrame = v.CFrame
  1049. game:GetService("Debris"):AddItem(c, 5)
  1050. local cmsh = nil
  1051. if v.Name == "Head" then
  1052. cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
  1053. else
  1054. cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1055. end
  1056. table.insert(Effects, {
  1057. c,
  1058. "Cylinder",
  1059. 0.05,
  1060. 0.1,
  1061. 0.1,
  1062. 0.1,
  1063. cmsh
  1064. })
  1065. end
  1066. end
  1067. end
  1068. };
  1069.  
  1070. EffectTemplate = {
  1071.  
  1072. };
  1073. }
  1074.  
  1075.  
  1076. shoot = function(mouse, aoe , partt, SpreadAmount, multiply)
  1077.  
  1078. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1079. local MainPos = partt.Position
  1080. local MainPos2 = mouse.Hit.p + SpreadVectors
  1081. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1082. local speed = 100
  1083. local num = 500
  1084. coroutine.resume(coroutine.create(function()
  1085.  
  1086. repeat
  1087. swait()
  1088. local hit, pos = RayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1089. local mag = (MainPos - pos).magnitude
  1090. Laser(BrickColor.new("Gold"), 0, CFrame.new((MainPos + pos)/2, pos) * CFrame.Angles(1.57, 0, 0), 5, mag * (speed / (speed / 2)), .2, .2, 0, .2, 0.1)
  1091. MainPos = MainPos + MouseLook.lookVector * speed
  1092. num = num - 1
  1093. MouseLook = MouseLook * CFrame.Angles(math.rad(-1), 0, 0)
  1094. if hit ~= nil then
  1095. if hit.Name == "Torso" or hit.Name == "Right Leg" or hit.Name == "Left Leg" or hit.Name == "Right Arm" or hit.Name == "Left Arm" then
  1096. num = 0
  1097. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  1098. refpart.Anchored = true
  1099. refpart.CFrame = CFrame.new(pos)
  1100. CFuncs.Sound.Create("255661850", refpart, 1, 1)
  1101. local smonk = Instance.new("ParticleEmitter",refpart)
  1102. smonk.LightEmission = .1
  1103. smonk.Size = NumberSequence.new(0.2)
  1104. smonk.Texture = "http://www.roblox.com/asset/?ID=256293532"
  1105. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1)})
  1106. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1107. smonk.Transparency = bbb
  1108. smonk.Size = aaa
  1109. smonk.ZOffset = 0
  1110. smonk.Acceleration = Vector3.new(0, -5, 0)
  1111. smonk.LockedToPart = false
  1112. smonk.EmissionDirection = "Back"
  1113. smonk.Lifetime = NumberRange.new(.1, .5)
  1114. smonk.Rate = 50
  1115. smonk.Rotation = NumberRange.new(-100, 100)
  1116. smonk.RotSpeed = NumberRange.new(-100, 100)
  1117. smonk.Speed = NumberRange.new(4)
  1118. smonk.VelocitySpread = 50
  1119. smonk.Enabled=true
  1120. game:GetService("Debris"):AddItem(smonk, .3)
  1121. elseif hit.Name == "Head" then
  1122. num = 0
  1123. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  1124. refpart.Anchored = true
  1125. refpart.CFrame = CFrame.new(pos)
  1126. CFuncs.Sound.Create("296102734", refpart, 1, 1)
  1127. game:GetService("Debris"):AddItem(refpart, 2)
  1128. local smonk = Instance.new("ParticleEmitter",refpart)
  1129. smonk.LightEmission = .1
  1130. smonk.Size = NumberSequence.new(0.2)
  1131. smonk.Texture = "http://www.roblox.com/asset/?ID=256293532"
  1132. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1.5)})
  1133. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1134. smonk.Transparency = bbb
  1135. smonk.Size = aaa
  1136. smonk.ZOffset = 0
  1137. smonk.Acceleration = Vector3.new(0, -5, 0)
  1138. smonk.LockedToPart = false
  1139. smonk.EmissionDirection = "Back"
  1140. smonk.Lifetime = NumberRange.new(.1, .5)
  1141. smonk.Rate = 50
  1142. smonk.Rotation = NumberRange.new(-100, 100)
  1143. smonk.RotSpeed = NumberRange.new(-100, 100)
  1144. smonk.Speed = NumberRange.new(4)
  1145. smonk.VelocitySpread = 100
  1146. smonk.Enabled=true
  1147. game:GetService("Debris"):AddItem(smonk, .3)
  1148. else
  1149. num = 0
  1150. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  1151. refpart.Anchored = true
  1152. refpart.CFrame = CFrame.new(pos)
  1153. CFuncs.Sound.Create("341519743", prt, 1, 1)
  1154. game:GetService("Debris"):AddItem(refpart, .2)
  1155. end
  1156. end
  1157. do
  1158. if num <= 0 then
  1159. local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  1160. refpart.Anchored = true
  1161. refpart.CFrame = CFrame.new(pos)
  1162. Effects.Block.Create(BrickColor.new("Flame reddish orange"), refpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
  1163. if hit ~= nil then
  1164. MagnitudeDamage(refpart, aoe, 2 * multiply, 2 * multiply, 0, "Normal", "233856154", 1)
  1165. end
  1166. game:GetService("Debris"):AddItem(refpart, 0)
  1167. end
  1168. end
  1169. until num <= 0
  1170. end
  1171. ))
  1172. end
  1173.  
  1174.  
  1175.  
  1176.  
  1177. local Grabbed = false
  1178.  
  1179.  
  1180. function smear()
  1181. Attack = true
  1182.  
  1183. Humanoid.AutoRotate = false
  1184. Humanoid.JumpPower = 0
  1185. Humanoid.WalkSpeed = 0
  1186. local grab = nil
  1187. executing = true
  1188. for i = 0, 1, 0.1 do
  1189. swait()
  1190. PlayAnimationFromTable({
  1191. CFrame.new(0.0246932413, -0.0966757834, -0.0092370566, 0.713696778, 5.59592329e-22, 0.700454772, -9.27150216e-22, 1, 1.45779223e-22, -0.700454772, -7.53468894e-22, 0.713696778) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1192. CFrame.new(0.098094359, 1.53651738, -0.281765848, 0.593379974, 0.280785412, -0.754360616, -0.0276839901, 0.943748772, 0.329502523, 0.804446399, -0.174636483, 0.567774832) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1193. CFrame.new(1.58677018, 0.143787161, 0.0495693758, 0.968102753, -0.250522822, -0.00394502282, 0.250228018, 0.965921044, 0.0662006512, -0.0127741396, -0.0650762022, 0.997798622) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1194. CFrame.new(-1.74332106, 0.446618229, -0.859300971, 0.795205951, 0.606264353, -0.0095520094, -0.0538869984, 0.0549720451, -0.997032762, -0.603940368, 0.793361068, 0.0763838589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1195. CFrame.new(0.648194611, -1.97843742, -0.088139981, 0.954304218, -0.129303336, -0.269414723, 0.107585981, 0.989748061, -0.0939367935, 0.278798997, 0.0606590137, 0.958431959) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1196. CFrame.new(-0.671899676, -2.02211809, 0.00866907835, 0.94230175, 0.108399026, -0.316728801, -0.108764999, 0.993929207, 0.0165804606, 0.316603303, 0.0188252106, 0.948371291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1197. }, .2, false)
  1198. for i, v in pairs(FindNearestHead(Head.CFrame.p, 10)) do
  1199. if v:FindFirstChild('Head') then
  1200. Grabbed = true
  1201. grab = v
  1202. end
  1203. if Grabbed == true then
  1204. targetted = nil
  1205. grab.Humanoid.PlatformStand = true
  1206. end
  1207. end
  1208. end
  1209.  
  1210. local grab = nil
  1211.  
  1212. for i = 0, .5, 0.1 do
  1213. swait()
  1214. PlayAnimationFromTable({
  1215. CFrame.new(-0, -0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1216. CFrame.new(0, 1.52020586, -0.279066354, 1, 0, 0, 0, 0.866024911, 0.500000954, 0, -0.500000954, 0.866024852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1217. CFrame.new(1.70777297, 0.0838996619, 0.338782728, 0.939692616, -0.342020124, 1.00488698e-07, 0.296197832, 0.813797116, 0.500001192, -0.171010554, -0.469847381, 0.866024733) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1218. CFrame.new(-0.786648035, 0.607858896, -1.09360671, 0.866025388, -0.500000238, 0, -0.171010032, -0.296197921, -0.939692736, 0.469846606, 0.813797772, -0.342019886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1219. CFrame.new(0.500007629, -2.07035375, 0.196404651, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1220. CFrame.new(-0.499992371, -1.8793813, -0.684038281, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1221. }, .3, false)
  1222. for i, v in pairs(FindNearestHead(Head.CFrame.p, 10)) do
  1223. if v:FindFirstChild('Head') then
  1224. Grabbed = true
  1225. grab = v
  1226. end
  1227. lockcam.CameraType = "Scriptable"
  1228. if Grabbed == true then
  1229. targetted = nil
  1230. grab.Humanoid.PlatformStand = true
  1231. grab.Head.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
  1232. end
  1233. end
  1234. Torso.Velocity=RootPart.CFrame.lookVector*100
  1235. end
  1236.  
  1237. if Grabbed == true and grab ~= nil then
  1238. targetted = nil
  1239. grab.Humanoid.PlatformStand = true
  1240. grab.Head.CFrame = Handle2.CFrame
  1241. grab.Head.CanCollide = false
  1242. local ow = CFuncs.Sound.Create("393884633", grab.Head, 2, 1)
  1243. for i = 0, .5, 0.1 do
  1244. swait()
  1245. PlayAnimationFromTable({
  1246. CFrame.new(0, 0.0116673782, -0.230620712, 1, 0, 0, 0, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1247. CFrame.new(0, 1.52020407, -0.279065013, 1, 0, 0, 0, 0.866025746, 0.499999493, 0, -0.499999493, 0.866025746) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1248. CFrame.new(1.76213956, 0.181882262, 0.169026196, 0.939693749, -0.342016995, -3.97785186e-07, 0.296195716, 0.813798964, 0.499999344, -0.171007916, -0.469846368, 0.866025805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1249. CFrame.new(-0.795767486, 0.409343213, -1.44306374, 0.973481894, -0.226395503, 0.0328332447, 0.000464975834, -0.141566098, -0.989928722, 0.228763461, 0.963693023, -0.137706786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1250. CFrame.new(0.500007629, -1.95507848, 0.396064222, 1, 0, 0, 0, 0.866025746, 0.499999493, 0, -0.499999493, 0.866025746) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1251. CFrame.new(-0.499992371, -1.69905818, -0.869703174, 1, 0, 0, 0, 0.766043782, -0.64278847, 0, 0.64278847, 0.766043782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1252. }, .3, false)
  1253. lockcam:Interpolate(RootPart.CFrame*CFrame.new(2,2,5),grab.Head.CFrame,.1)
  1254. grab.Head.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
  1255. moter.C0 = clerp(moter.C0, CFrame.new(0.0111928731, -1.63769662, -0.318741947, -0.0172089636, 8.2552433e-06, -0.999852061, 0.999852061, 7.4505806e-07, -0.0172089189, 5.66244125e-07, -1.00000012, -8.2552433e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1256. end
  1257. CFuncs.Sound.Create("307379917", grab.Torso, 2, 1)
  1258. for i = 0, 4, 0.1 do
  1259. swait()
  1260. PlayAnimationFromTable({
  1261. CFrame.new(0, -0.554424644, -0.230621904, 1, 0, 0, 0, 0.173647001, 0.984807968, 0, -0.984807968, 0.173647001) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1262. CFrame.new(0, 1.26466095, -0.540713072, 1, 0, 0, 0, 0.866026163, 0.499998748, 0, -0.499998748, 0.866026163) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1263. CFrame.new(1.76214743, 0.0730022341, 0.237322643, 0.939693749, -0.342016995, -3.97785186e-07, 0.342016965, 0.939693809, -1.1920929e-06, 7.74860382e-07, 9.68575478e-07, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1264. CFrame.new(-0.848383009, 0.642179489, -1.0361222, 0.973482251, -0.194533557, -0.120370619, -0.113977194, 0.043772921, -0.992518663, 0.198347136, 0.979918718, 0.0204397887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1265. CFrame.new(0.500007629, -1.24131715, -0.550035954, 1, 0, 0, 0, 0.939693153, 0.342018843, 0, -0.342018843, 0.939693153) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1266. CFrame.new(-0.499992371, -0.981758952, -1.45210898, 1, 0, 0, 0, 0.64278692, -0.766045153, 0, 0.766045153, 0.64278692) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1267. }, .3, false)
  1268. lockcam:Interpolate(RootPart.CFrame*CFrame.new(2,2,5),grab.Head.CFrame,.1)
  1269. local smonk = Instance.new("ParticleEmitter",grab.Head)
  1270. smonk.LightEmission = .1
  1271. smonk.Size = NumberSequence.new(0.2)
  1272. smonk.Texture = "http://www.roblox.com/asset/?ID=552389687"
  1273. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .1),NumberSequenceKeypoint.new(1, .5)})
  1274. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1275. smonk.Transparency = bbb
  1276. smonk.Size = aaa
  1277. smonk.ZOffset = -1
  1278. smonk.Acceleration = Vector3.new(0, -5, 0)
  1279. smonk.LockedToPart = false
  1280. smonk.EmissionDirection = "Bottom"
  1281. smonk.Lifetime = NumberRange.new(.2, 5)
  1282. smonk.Rate = 10
  1283. smonk.Rotation = NumberRange.new(-100, 100)
  1284. smonk.RotSpeed = NumberRange.new(-100, 100)
  1285. smonk.Speed = NumberRange.new(-.3)
  1286. smonk.VelocitySpread = 10
  1287. smonk.Enabled=true
  1288. game:GetService("Debris"):AddItem(smonk, 1)
  1289. Torso.Velocity=RootPart.CFrame.lookVector*40
  1290. grab.Head.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
  1291. end
  1292. grab.Torso.Velocity=RootPart.CFrame.lookVector*0
  1293. Torso.Velocity=RootPart.CFrame.lookVector*0
  1294. grab.Torso.CanCollide = false
  1295. --smashy
  1296. for i = 0, .7, 0.1 do
  1297. for i = 0, .4, 0.1 do
  1298. swait()
  1299. PlayAnimationFromTable({
  1300. CFrame.new(-2.62260437e-06, -0.554422975, -0.230619952, 0.642787039, -3.83130924e-07, 0.766044974, -0.754407108, 0.173647448, 0.633021772, -0.13302201, -0.984807909, 0.111618027) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1301. CFrame.new(0.165599957, 1.45203376, -0.1389575, 0.888377428, 0.383021414, -0.253140748, -0.249999091, 0.866026103, 0.433011889, 0.385079265, -0.321393013, 0.86511302) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1302. CFrame.new(1.639135, 0.378064632, -0.171392277, 0.584366381, -0.700027764, 0.410459995, 0.671396554, 0.132976457, -0.729070723, 0.455788136, 0.701625764, 0.547703087) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1303. CFrame.new(-1.37148404, 0.736055136, -0.588378668, 0.84817493, -0.521483123, -0.093031399, -0.120593652, -0.019078508, -0.992518544, 0.515806735, 0.853048444, -0.0790694579) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1304. CFrame.new(1.04601848, -1.78701377, -0.224999949, 0.642787039, -0.262003303, -0.719846725, -3.83130924e-07, 0.939692438, -0.342021108, 0.766044974, 0.219846994, 0.604021966) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1305. CFrame.new(0.479837954, -1.03251898, -1.26565886, 0.642787039, -0.586824656, -0.492404163, -3.83130924e-07, 0.642787278, -0.766044915, 0.766044974, 0.492403895, 0.413175076) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1306. }, .3, false)
  1307. lockcam:Interpolate(Head.CFrame*CFrame.new(2,2,0),grab.Head.CFrame,.1)
  1308. grab.Head.CFrame = LeftArm.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(-90),0)
  1309. end
  1310. local smonk = Instance.new("ParticleEmitter",grab.Head)
  1311. smonk.LightEmission = .1
  1312. smonk.Size = NumberSequence.new(0.2)
  1313. smonk.Texture = "http://www.roblox.com/asset/?ID=122022304"
  1314. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 3)})
  1315. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1316. smonk.Transparency = bbb
  1317. smonk.Size = aaa
  1318. smonk.ZOffset = 1
  1319. smonk.Acceleration = Vector3.new(0,.3, 0)
  1320. smonk.LockedToPart = false
  1321. smonk.EmissionDirection = "Back"
  1322. smonk.Lifetime = NumberRange.new(.2, 5)
  1323. smonk.Rate = 100
  1324. smonk.Rotation = NumberRange.new(-10, 10)
  1325. smonk.RotSpeed = NumberRange.new(-10, 10)
  1326. smonk.Speed = NumberRange.new(2)
  1327. smonk.VelocitySpread = 1000
  1328. smonk.Enabled=true
  1329. game:GetService("Debris"):AddItem(smonk, .5)
  1330. for i = 0, .4, 0.1 do
  1331. swait()
  1332. PlayAnimationFromTable({
  1333. CFrame.new(-1.78813934e-06, -0.554422975, -0.230621129, 0.766044021, -9.53147946e-07, -0.642788172, 0.633023024, 0.173646212, 0.754406333, 0.111616999, -0.984808087, 0.133021265) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1334. CFrame.new(-0.347562611, 1.26466119, -0.414210379, 0.766044021, -0.321392179, 0.556671917, -9.53147946e-07, 0.866026521, 0.499998033, -0.642788172, -0.383021086, 0.66341424) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1335. CFrame.new(1.65797925, -0.0622069128, -0.187585682, 0.944800258, -0.261999041, 0.196745977, 0.296194345, 0.939693809, -0.17101036, -0.140076444, 0.219845727, 0.96542567) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1336. CFrame.new(-1.72933996, 0.531819761, -0.983813822, 0.873225331, 0.487284154, 0.00563029945, -0.11397732, 0.215456128, -0.969839096, -0.473800451, 0.846246302, 0.243681118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1337. CFrame.new(-0.173988, -1.20138502, -1.24044585, 0.766044021, 0.604024172, 0.219843864, -9.53147946e-07, 0.342017144, -0.939693689, -0.642788172, 0.719846606, 0.262000799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1338. CFrame.new(-1.31641626, -0.981757283, -0.790990889, 0.766044021, 0.111620195, 0.633022487, -9.53147946e-07, 0.98480767, -0.173648924, -0.642788172, 0.133022159, 0.754406214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1339. }, .3, false)
  1340. grab.Head.CFrame = LeftArm.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(-90),0)
  1341. lockcam:Interpolate(Head.CFrame*CFrame.new(2,2,0),grab.Head.CFrame,.1)
  1342. end
  1343. CFuncs.Sound.Create("710036613", grab.Torso, 1, 1)
  1344. end
  1345. for i = 0, 3, 0.1 do
  1346. swait()
  1347. PlayAnimationFromTable({
  1348. CFrame.new(-2.62260437e-06, -0.554422975, -0.230619952, 0.642787039, -3.83130924e-07, 0.766044974, -0.754407108, 0.173647448, 0.633021772, -0.13302201, -0.984807909, 0.111618027) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1349. CFrame.new(0.165599957, 1.45203376, -0.1389575, 0.888377428, 0.383021414, -0.253140748, -0.249999091, 0.866026103, 0.433011889, 0.385079265, -0.321393013, 0.86511302) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1350. CFrame.new(1.639135, 0.378064632, -0.171392277, 0.584366381, -0.700027764, 0.410459995, 0.671396554, 0.132976457, -0.729070723, 0.455788136, 0.701625764, 0.547703087) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1351. CFrame.new(-1.37148404, 0.736055136, -0.588378668, 0.84817493, -0.521483123, -0.093031399, -0.120593652, -0.019078508, -0.992518544, 0.515806735, 0.853048444, -0.0790694579) * CFrame.new(0 + 0.1 * math.cos(Sine/15), .5 + 0.1 * math.cos(Sine/30), 0) * CFrame.Angles(0 + 0.1 * math.cos(Sine/15), 0, 0),
  1352. CFrame.new(1.04601848, -1.78701377, -0.224999949, 0.642787039, -0.262003303, -0.719846725, -3.83130924e-07, 0.939692438, -0.342021108, 0.766044974, 0.219846994, 0.604021966) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1353. CFrame.new(0.479837954, -1.03251898, -1.26565886, 0.642787039, -0.586824656, -0.492404163, -3.83130924e-07, 0.642787278, -0.766044915, 0.766044974, 0.492403895, 0.413175076) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1354. }, .3, false)
  1355. grab.Head.CFrame = LeftArm.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(-90),0)
  1356. lockcam:Interpolate(Head.CFrame*CFrame.new(2,2,8),grab.Head.CFrame,.8)
  1357. end
  1358. local smonk = Instance.new("ParticleEmitter",grab.Head)
  1359. smonk.LightEmission = .1
  1360. smonk.Size = NumberSequence.new(0.2)
  1361. smonk.Texture = "http://www.roblox.com/asset/?ID=122022304"
  1362. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 3)})
  1363. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1364. smonk.Transparency = bbb
  1365. smonk.Size = aaa
  1366. smonk.ZOffset = 1
  1367. smonk.Acceleration = Vector3.new(0,5, 0)
  1368. smonk.LockedToPart = false
  1369. smonk.EmissionDirection = "Back"
  1370. smonk.Lifetime = NumberRange.new(.2, 5)
  1371. smonk.Rate = 1000
  1372. smonk.Rotation = NumberRange.new(-10, 10)
  1373. smonk.RotSpeed = NumberRange.new(-10, 10)
  1374. smonk.Speed = NumberRange.new(5)
  1375. smonk.VelocitySpread = 1000
  1376. smonk.Enabled=true
  1377. game:GetService("Debris"):AddItem(smonk, .8)
  1378. CFuncs.Sound.Create("429400881", grab.Torso, 5, .8)
  1379. for i = 0, 3, 0.1 do
  1380. swait()
  1381. PlayAnimationFromTable({
  1382. CFrame.new(-1.78813934e-06, -0.554422975, -0.230621129, 0.766044021, -9.53147946e-07, -0.642788172, 0.633023024, 0.173646212, 0.754406333, 0.111616999, -0.984808087, 0.133021265) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1383. CFrame.new(-0.347562611, 1.26466119, -0.414210379, 0.766044021, -0.321392179, 0.556671917, -9.53147946e-07, 0.866026521, 0.499998033, -0.642788172, -0.383021086, 0.66341424) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1384. CFrame.new(1.65797925, -0.0622069128, -0.187585682, 0.944800258, -0.261999041, 0.196745977, 0.296194345, 0.939693809, -0.17101036, -0.140076444, 0.219845727, 0.96542567) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1385. CFrame.new(-1.72933996, 0.531819761, -0.983813822, 0.873225331, 0.487284154, 0.00563029945, -0.11397732, 0.215456128, -0.969839096, -0.473800451, 0.846246302, 0.243681118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1386. CFrame.new(-0.173988, -1.20138502, -1.24044585, 0.766044021, 0.604024172, 0.219843864, -9.53147946e-07, 0.342017144, -0.939693689, -0.642788172, 0.719846606, 0.262000799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1387. CFrame.new(-1.31641626, -0.981757283, -0.790990889, 0.766044021, 0.111620195, 0.633022487, -9.53147946e-07, 0.98480767, -0.173648924, -0.642788172, 0.133022159, 0.754406214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1388. }, .3, false)
  1389. grab.Head.CFrame = LeftArm.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(-90),0)
  1390. lockcam:Interpolate(Head.CFrame*CFrame.new(2,2,0),grab.Head.CFrame,.5)
  1391. end
  1392. grab.Head.Anchored = false
  1393. end
  1394. if grab ~= nil then
  1395. grab.Head:Destroy()
  1396. end
  1397. grab=nil
  1398. Grabbed = false
  1399. executing = false
  1400. Humanoid.AutoRotate = true
  1401. Humanoid.JumpPower = 100
  1402. Humanoid.WalkSpeed = 25
  1403. Attack = false
  1404. lockcam.CameraType = "Custom"
  1405. end
  1406.  
  1407.  
  1408. crosshair = Instance.new("BillboardGui",Character)
  1409. crosshair.Size = UDim2.new(10,0,10,0)
  1410. crosshair.Enabled = false
  1411. crosshair.AlwaysOnTop = true
  1412. crosshair2 = Instance.new("BillboardGui",Character)
  1413. crosshair2.Size = UDim2.new(10,0,10,0)
  1414. crosshair2.Enabled = false
  1415. crosshair2.AlwaysOnTop = true
  1416.  
  1417. imgl = Instance.new("ImageLabel",crosshair)
  1418. imgl.Position = UDim2.new(0,0,0,0)
  1419. imgl.Size = UDim2.new(1,0,1,0)
  1420. imgl.Image = "rbxassetid://1122662303"
  1421. imgl.BackgroundTransparency = 1
  1422. imgl.ImageColor3 = Color3.new(.5,0,0)
  1423.  
  1424.  
  1425. crosshair3 = Instance.new("BillboardGui",Character)
  1426. crosshair3.Size = UDim2.new(10,0,10,0)
  1427. crosshair3.Enabled = false
  1428. crosshair3.AlwaysOnTop = true
  1429.  
  1430. imgl3 = Instance.new("ImageLabel",crosshair3)
  1431. imgl3.Position = UDim2.new(0,0,0,0)
  1432. imgl3.Size = UDim2.new(1,0,1,0)
  1433. imgl3.Image = "rbxassetid://18006519"
  1434. imgl3.BackgroundTransparency = 1
  1435. imgl3.ImageColor3 = Color3.new(0,0,0)
  1436.  
  1437. imgl2 = Instance.new("ImageLabel",crosshair)
  1438. imgl2.Position = UDim2.new(0,0,0,0)
  1439. imgl2.Size = UDim2.new(1,0,1,0)
  1440. imgl2.Image = "rbxassetid://1122660386"
  1441. imgl2.BackgroundTransparency = 1
  1442. imgl2.ImageColor3 = Color3.new(0,0,0)
  1443.  
  1444. --Credit to CKBackup for his targeting system.--
  1445.  
  1446. targetted = nil
  1447.  
  1448. function TargetSelect(person)
  1449. local dd=coroutine.wrap(function()
  1450. if targetted ~= person then
  1451. targetted = person
  1452. for i = 0,8,1 do
  1453. crosshair.Size = UDim2.new(0+i,0,0+i,0)
  1454. crosshair2.Size = UDim2.new(.1+i,0,.1+i,0)
  1455. crosshair3.Size = UDim2.new(0+i,0,0+i,0)
  1456. wait(.05)
  1457. end
  1458. end
  1459. end)
  1460. dd()
  1461. end
  1462.  
  1463. function LockOn()
  1464. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Head") ~= nil then
  1465. TargetSelect(Mouse.Target.Parent.Head)
  1466. print(Mouse.Target)
  1467. CFuncs.Sound.Create("376178316", Mouse.Target.Parent.Head, 2, .8)
  1468. else end
  1469. end
  1470.  
  1471.  
  1472.  
  1473. function pepper()
  1474. Attack = true
  1475. Humanoid.AutoRotate = false
  1476. Humanoid.JumpPower = 0
  1477. Humanoid.WalkSpeed = 0
  1478.  
  1479. local grab = nil
  1480. executing = true
  1481. for i = 0, 1, 0.1 do
  1482. swait()
  1483. PlayAnimationFromTable({
  1484. CFrame.new(0.0246932413, -0.0966757834, -0.0092370566, 0.713696778, 5.59592329e-22, 0.700454772, -9.27150216e-22, 1, 1.45779223e-22, -0.700454772, -7.53468894e-22, 0.713696778) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1485. CFrame.new(0.098094359, 1.53651738, -0.281765848, 0.593379974, 0.280785412, -0.754360616, -0.0276839901, 0.943748772, 0.329502523, 0.804446399, -0.174636483, 0.567774832) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1486. CFrame.new(1.58677018, 0.143787161, 0.0495693758, 0.968102753, -0.250522822, -0.00394502282, 0.250228018, 0.965921044, 0.0662006512, -0.0127741396, -0.0650762022, 0.997798622) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1487. CFrame.new(-1.74332106, 0.446618229, -0.859300971, 0.795205951, 0.606264353, -0.0095520094, -0.0538869984, 0.0549720451, -0.997032762, -0.603940368, 0.793361068, 0.0763838589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1488. CFrame.new(0.648194611, -1.97843742, -0.088139981, 0.954304218, -0.129303336, -0.269414723, 0.107585981, 0.989748061, -0.0939367935, 0.278798997, 0.0606590137, 0.958431959) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1489. CFrame.new(-0.671899676, -2.02211809, 0.00866907835, 0.94230175, 0.108399026, -0.316728801, -0.108764999, 0.993929207, 0.0165804606, 0.316603303, 0.0188252106, 0.948371291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1490. }, .2, false)
  1491. end
  1492.  
  1493. local grab = nil
  1494.  
  1495. for i = 0, 1, 0.1 do
  1496. swait()
  1497. PlayAnimationFromTable({
  1498. CFrame.new(-0, -0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1499. CFrame.new(0, 1.52020586, -0.279066354, 1, 0, 0, 0, 0.866024911, 0.500000954, 0, -0.500000954, 0.866024852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1500. CFrame.new(1.70777297, 0.0838996619, 0.338782728, 0.939692616, -0.342020124, 1.00488698e-07, 0.296197832, 0.813797116, 0.500001192, -0.171010554, -0.469847381, 0.866024733) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1501. CFrame.new(-0.786648035, 0.607858896, -1.09360671, 0.866025388, -0.500000238, 0, -0.171010032, -0.296197921, -0.939692736, 0.469846606, 0.813797772, -0.342019886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1502. CFrame.new(0.500007629, -2.07035375, 0.196404651, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1503. CFrame.new(-0.499992371, -1.8793813, -0.684038281, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1504. }, .3, false)
  1505. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 10)) do
  1506. if v:FindFirstChild('Torso') and Grabbed ~= true then
  1507. Grabbed = true
  1508.  
  1509. grab = v
  1510. end
  1511. if Grabbed == true then
  1512. targetted = nil
  1513. grab.Humanoid.PlatformStand = true
  1514. grab.Torso.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
  1515. end
  1516. end
  1517. Torso.Velocity=RootPart.CFrame.lookVector*100
  1518. end
  1519.  
  1520.  
  1521.  
  1522. if Grabbed == true and grab ~= nil then
  1523. targetted = nil
  1524. grab.Humanoid.PlatformStand = true
  1525. grab.Torso.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
  1526. grab.Torso.CanCollide = false
  1527. --grab here
  1528. for i = 0, .3, 0.1 do
  1529. swait()
  1530. PlayAnimationFromTable({
  1531. CFrame.new(0, 0.0116673782, -0.230620712, 1, 0, 0, 0, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1532. CFrame.new(0, 1.52020407, -0.279065013, 1, 0, 0, 0, 0.866025746, 0.499999493, 0, -0.499999493, 0.866025746) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1533. CFrame.new(1.76213956, 0.181882262, 0.169026196, 0.939693749, -0.342016995, -3.97785186e-07, 0.296195716, 0.813798964, 0.499999344, -0.171007916, -0.469846368, 0.866025805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1534. CFrame.new(-0.795767486, 0.409343213, -1.44306374, 0.973481894, -0.226395503, 0.0328332447, 0.000464975834, -0.141566098, -0.989928722, 0.228763461, 0.963693023, -0.137706786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1535. CFrame.new(0.500007629, -1.95507848, 0.396064222, 1, 0, 0, 0, 0.866025746, 0.499999493, 0, -0.499999493, 0.866025746) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1536. CFrame.new(-0.499992371, -1.69905818, -0.869703174, 1, 0, 0, 0, 0.766043782, -0.64278847, 0, 0.64278847, 0.766043782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1537. }, .3, false)
  1538. grab.Torso.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
  1539. moter.C0 = clerp(moter.C0, CFrame.new(0.0111928731, -1.63769662, -0.318741947, -0.0172089636, 8.2552433e-06, -0.999852061, 0.999852061, 7.4505806e-07, -0.0172089189, 5.66244125e-07, -1.00000012, -8.2552433e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1540. end
  1541.  
  1542. for i = 0, 1, 0.1 do
  1543. swait()
  1544. PlayAnimationFromTable({
  1545. CFrame.new(0, -0.554424644, -0.230621904, 1, 0, 0, 0, 0.173647001, 0.984807968, 0, -0.984807968, 0.173647001) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1546. CFrame.new(0, 1.26466095, -0.540713072, 1, 0, 0, 0, 0.866026163, 0.499998748, 0, -0.499998748, 0.866026163) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1547. CFrame.new(1.76214743, 0.0730022341, 0.237322643, 0.939693749, -0.342016995, -3.97785186e-07, 0.342016965, 0.939693809, -1.1920929e-06, 7.74860382e-07, 9.68575478e-07, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1548. CFrame.new(-0.848383009, 0.642179489, -1.0361222, 0.973482251, -0.194533557, -0.120370619, -0.113977194, 0.043772921, -0.992518663, 0.198347136, 0.979918718, 0.0204397887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1549. CFrame.new(0.500007629, -1.24131715, -0.550035954, 1, 0, 0, 0, 0.939693153, 0.342018843, 0, -0.342018843, 0.939693153) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1550. CFrame.new(-0.499992371, -0.981758952, -1.45210898, 1, 0, 0, 0, 0.64278692, -0.766045153, 0, 0.766045153, 0.64278692) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1551. }, .3, false)
  1552. grab.Torso.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
  1553. end
  1554. lockcam.CameraType = "Scriptable"
  1555. --release here
  1556. for i = 0, .3, 0.1 do
  1557. swait()
  1558. PlayAnimationFromTable({
  1559. CFrame.new(-0, -0.790954828, 0.162615269, 1, 0, 0, 0, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1560. CFrame.new(0, 1.55287015, 0.135475516, 1, 0, 0, 0, 0.939691961, -0.342022002, 0, 0.342022002, 0.939691961) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1561. CFrame.new(0.965891123, 0.600056291, -0.939134777, 0.984807968, 0.173647299, 6.93650236e-07, 1.01327896e-06, -1.7285347e-06, -1.00000012, -0.173647314, 0.984807849, -1.81794167e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1562. CFrame.new(-0.848382771, 0.642180681, -1.03612173, 0.973482251, -0.194533288, -0.120371334, -0.113977998, 0.0437724888, -0.992518544, 0.198346853, 0.979918897, 0.0204392672) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1563. CFrame.new(0.500007629, -0.797153175, -0.95421052, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1564. CFrame.new(-0.499992371, -0.700443864, -1.01739883, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1565. }, .3, false)
  1566. grab.Torso.Velocity= Vector3.new(0,0,0)
  1567. end
  1568. grab.Torso.Anchored = true
  1569. Humanoid.JumpPower = 100
  1570. Humanoid.Jump = true
  1571. Torso.Velocity=RootPart.CFrame.upVector*150
  1572. CFuncs.Sound.Create("158149887", Torso, 1, 1)
  1573. wait(.1)
  1574. for i = 0, .3, 0.1 do
  1575. Torso.Velocity=RootPart.CFrame.lookVector*40
  1576. swait()
  1577. PlayAnimationFromTable({
  1578. CFrame.new(-0, -0.486727536, -0.199950755, 1, 0, 0, 0, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1579. CFrame.new(0.0483627319, 1.54976475, 0.0516630113, 1, 0, 0, 0, 0.939691961, -0.342022002, 0, 0.342022002, 0.939691961) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1580. CFrame.new(1.38765192, 1.19624639, -0.26731497, 0.98480922, 0.0301625114, -0.171000317, 1.10268593e-05, -0.984808326, -0.173645556, -0.173640087, 0.171005875, -0.969848573) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1581. CFrame.new(-1.319543, 1.38152361, -0.336561173, 0.973482132, -0.120370626, 0.194534108, -0.113977373, -0.992518663, -0.0437721014, 0.198347583, 0.0204388499, -0.979918599) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1582. CFrame.new(0.500007629, -1.27044821, -0.954210758, 1, 0, 0, 0, 0.939692497, -0.34202078, 0, 0.34202078, 0.939692497) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1583. CFrame.new(-0.499992371, -1.1737386, -1.01739967, 1, 0, 0, 0, 0.939692497, -0.34202078, 0, 0.34202078, 0.939692497) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1584. }, .3, false)
  1585. grab.Torso.Velocity= Vector3.new(0,0,0)
  1586. end
  1587. grab.Torso.Anchored = false
  1588. grab.Torso.CanCollide = true
  1589. Humanoid.JumpPower = 0
  1590. RootPart.CFrame=RootPart.CFrame*CFrame.new(0,0,5)
  1591. for i = 0, .3, 0.1 do
  1592. swait()
  1593. PlayAnimationFromTable({
  1594. CFrame.new(0.428418577, -0.671607018, -0.504335344, 0.279453993, -0.262003154, 0.923720658, -0.663414001, 0.642787337, 0.383022666, -0.694109023, -0.719846487, 0.0058129211) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1595. CFrame.new(0.0483628362, 1.549775, 0.0516622961, 1, 5.96046448e-08, -2.98023224e-08, -2.98023224e-08, 0.939693034, -0.342019409, 4.61004674e-08, 0.342019379, 0.939692855) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1596. CFrame.new(1.37295699, 1.17039251, -0.337434739, 0.975084543, -0.109461486, -0.192946702, -0.170998245, -0.924961448, -0.339420587, -0.141314715, 0.363957286, -0.920633197) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1597. CFrame.new(-1.36459041, 0.411512792, -0.67284143, 0.973482847, -0.071649164, -0.21724999, -0.113974214, 0.671512127, -0.732176006, 0.198345765, 0.737521529, 0.645539343) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1598. CFrame.new(0.499992371, -1.23907411, -0.86791718, 1, 0, 0, -2.98023224e-08, 0.939692259, 0.342021227, 4.61004674e-08, -0.342021227, 0.939692259) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1599. CFrame.new(-0.49999243, -1.17373872, -1.01739335, 1, 5.96046448e-08, -2.98023224e-08, -2.98023224e-08, 0.939693034, -0.342019409, 4.61004674e-08, 0.342019379, 0.939692855) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1600. }, .3, false)
  1601. grab.Torso.Velocity= Vector3.new(0,0,0)
  1602. lockcam:Interpolate(Torso.CFrame*CFrame.new(3,3,5),grab.Torso.CFrame,.03)
  1603. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(grab.Torso.Position.X, RootPart.Position.Y, RootPart.Position.Y))
  1604. Torso.Velocity=RootPart.CFrame.lookVector*20
  1605. end
  1606. for i = 0, .3, 0.1 do
  1607. swait()
  1608. PlayAnimationFromTable({
  1609. CFrame.new(-0.672757447, -0.735233426, -0.293752909, -0.962360024, 0.00164131995, 0.271772951, -0.0779609978, 0.956289232, -0.281838685, -0.260356098, -0.292417973, -0.920166552) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1610. CFrame.new(0.0483631641, 1.42946541, -0.278911769, 1, -1.93715096e-07, 3.12924385e-06, -8.86619091e-07, 0.93969202, 0.342022359, -3.05473804e-06, -0.342022389, 0.939691842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1611. CFrame.new(1.37296712, 1.17040694, -0.337452441, 0.975084305, -0.109462924, -0.192946956, -0.17099987, -0.924960554, -0.3394216, -0.141314253, 0.363958538, -0.92063278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1612. CFrame.new(-1.36458802, 0.411512852, -0.672853589, 0.973482966, -0.0716485977, -0.217249781, -0.113973796, 0.671514273, -0.73217392, 0.198345542, 0.737519622, 0.645541549) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1613. CFrame.new(0.499996156, -1.23906803, -0.8679353, 1, 6.51925802e-09, 2.98023224e-08, -7.4505806e-09, 0.93969214, 0.342021704, -2.98023224e-08, -0.342021674, 0.93969214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1614. CFrame.new(-0.499984771, -1.17374265, -1.01740098, 1, 1.49011612e-08, 1.49011612e-08, -7.4505806e-09, 0.939693391, -0.342018157, -2.98023224e-08, 0.342018127, 0.939693391) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1615. }, .3, false)
  1616. grab.Torso.Velocity= Vector3.new(0,0,0)
  1617. lockcam:Interpolate(Torso.CFrame*CFrame.new(3,3,5),grab.Torso.CFrame,.03)
  1618. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(grab.Torso.Position.X, RootPart.Position.Y, RootPart.Position.Y))
  1619. Torso.Velocity=RootPart.CFrame.lookVector*30
  1620. end
  1621. for i = 0, 1, 0.1 do
  1622. swait()
  1623. PlayAnimationFromTable({
  1624. CFrame.new(-0.672760248, -0.525442183, -0.31977427, -0.962360263, 0.00164178992, 0.271772176, 0.0157880038, 0.998630762, 0.0498734191, -0.271318138, 0.0522869304, -0.961068571) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1625. CFrame.new(0.0483647995, 1.42946613, -0.278905123, 1, 9.983778e-07, 2.77161598e-06, -1.89431012e-06, 0.939691663, 0.342023015, -2.29477882e-06, -0.342023104, 0.939691663) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1626. CFrame.new(1.09112859, 0.115017235, -1.0051564, 0.975084007, 0.192946017, -0.109467886, -0.171004131, 0.339421302, -0.924959898, -0.141311631, 0.920633078, 0.363958895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1627. CFrame.new(-0.0609193072, 0.338854641, -0.991647899, 0.297654182, -0.872375369, -0.387767076, -0.132688791, 0.364431024, -0.921728671, 0.945407808, 0.325808793, -0.00728001073) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1628. CFrame.new(0.500003815, -1.88333619, -0.430999637, 1, 7.4505806e-09, 0, 0, 0.93969208, 0.342021674, 0, -0.342021674, 0.939692259) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1629. CFrame.new(-0.499977082, -1.17373788, -1.01740336, 1, 0, -2.98023224e-08, 0, 0.939693451, -0.342018157, 0, 0.342018187, 0.939693511) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1630. }, .3, false)
  1631. grab.Torso.Velocity= Vector3.new(0,0,0)
  1632. lockcam:Interpolate(Torso.CFrame*CFrame.new(3,3,5),grab.Torso.CFrame,.03)
  1633. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(grab.Torso.Position.X, RootPart.Position.Y, RootPart.Position.Y))
  1634. Torso.Velocity=RootPart.CFrame.lookVector*40
  1635. end
  1636. --pew here
  1637. for i = 0, 1, 0.1 do
  1638. swait()
  1639. PlayAnimationFromTable({
  1640. CFrame.new(-0.672760248, -0.525442183, -0.31977427, -0.962360263, 0.00164178992, 0.271772176, 0.0157880038, 0.998630762, 0.0498734191, -0.271318138, 0.0522869304, -0.961068571) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1641. CFrame.new(0.0483647995, 1.42946613, -0.278905123, 1, 9.983778e-07, 2.77161598e-06, -1.89431012e-06, 0.939691663, 0.342023015, -2.29477882e-06, -0.342023104, 0.939691663) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1642. CFrame.new(1.09112859, 0.115017235, -1.0051564, 0.975084007, 0.192946017, -0.109467886, -0.171004131, 0.339421302, -0.924959898, -0.141311631, 0.920633078, 0.363958895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1643. CFrame.new(-0.0609193072, 0.338854641, -0.991647899, 0.297654182, -0.872375369, -0.387767076, -0.132688791, 0.364431024, -0.921728671, 0.945407808, 0.325808793, -0.00728001073) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1644. CFrame.new(0.500003815, -1.88333619, -0.430999637, 1, 7.4505806e-09, 0, 0, 0.93969208, 0.342021674, 0, -0.342021674, 0.939692259) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1645. CFrame.new(-0.499977082, -1.17373788, -1.01740336, 1, 0, -2.98023224e-08, 0, 0.939693451, -0.342018157, 0, 0.342018187, 0.939693511) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1646. }, .3, false)
  1647. grab.Torso.Velocity= Vector3.new(0,0,0)
  1648. lockcam:Interpolate(Torso.CFrame*CFrame.new(3,3,5),grab.Torso.CFrame,.03)
  1649. RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(grab.Torso.Position.X, RootPart.Position.Y, RootPart.Position.Y))
  1650. Effects.Block.Create(BrickColor.new("Gold"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
  1651. Effects.Block.Create(BrickColor.new("Flame reddish orange"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
  1652. local shell = CFuncs.Part.Create(EffectModel, "SmoothPlastic", .1, 0, "Gold", "Effect", Vector3.new(.5,.8,.5))
  1653. local shllmsh = CFuncs.Mesh.Create("CylinderMesh", shell, "", "", Vector3.new(0, 0, 0), Vector3.new(.3, .4, .3))
  1654. shell.Anchored = false
  1655. shell.Position = barrelcore.Position
  1656. shell.CanCollide = true
  1657. shell.Velocity=RootPart.CFrame.rightVector*10
  1658. CFuncs.Sound.Create("1456344653", shell, 1, 1)
  1659. game:GetService("Debris"):AddItem(shell, 2)
  1660. CFuncs.Sound.Create("356911785", bulletpart, .5, 1)
  1661. local smonk2 = Instance.new("ParticleEmitter",bulletpart)
  1662. smonk2.LightEmission = .1
  1663. smonk2.Size = NumberSequence.new(0.2)
  1664. smonk2.Texture = "http://www.roblox.com/asset/?ID=476778304"
  1665. aaa2 = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1.1)})
  1666. bbb2 = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1667. smonk2.Transparency = bbb2
  1668. smonk2.Size = aaa2
  1669. smonk2.ZOffset = 0
  1670. smonk2.Acceleration = Vector3.new(0, -5, 0)
  1671. smonk2.LockedToPart = false
  1672. smonk2.EmissionDirection = "Back"
  1673. smonk2.Lifetime = NumberRange.new(.1, .5)
  1674. smonk2.Rate = 1000
  1675. smonk2.Rotation = NumberRange.new(-100, 100)
  1676. smonk2.RotSpeed = NumberRange.new(-100, 100)
  1677. smonk2.Speed = NumberRange.new(4)
  1678. smonk2.VelocitySpread = 100
  1679. smonk2.Enabled=true
  1680. game:GetService("Debris"):AddItem(smonk2, .1)
  1681. Torso.Velocity=RootPart.CFrame.lookVector*50
  1682. end
  1683. CFuncs.Sound.Create("521472140", grab.Torso, 5, 1)
  1684. ShowDamage((grab.Torso.CFrame * CFrame.new(0, 0, (grab.Torso.Size.Z / 2)).p + Vector3.new(0, 3, 0)), "Crit!", 2, BrickColor.new(Torso.Color).Color)
  1685. grab.Torso:BreakJoints()
  1686. end
  1687. lockcam.CameraType = "Custom"
  1688. grab=nil
  1689. Grabbed = false
  1690. executing = false
  1691. Humanoid.AutoRotate = true
  1692. Humanoid.JumpPower = 100
  1693. Humanoid.WalkSpeed = 25
  1694. Attack = false
  1695. end
  1696.  
  1697.  
  1698.  
  1699.  
  1700. function righthop()
  1701. Attack = true
  1702. CFuncs.Sound.Create("158149887", Torso, 1, 1)
  1703. Humanoid.Jump = true
  1704. for i = 0, .5, 0.1 do
  1705. swait()
  1706. PlayAnimationFromTable({
  1707. CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1708. CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1709. CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1710. CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1711. CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1712. CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1713. }, .3, false)
  1714. end
  1715. Torso.Velocity=RootPart.CFrame.rightVector*200
  1716. for i = 0, 1, 0.1 do
  1717. swait()
  1718. PlayAnimationFromTable({
  1719. CFrame.new(0.708232701, 0.127894983, 0.246774122, 0.76604414, -0.111618884, 0.633022666, 0, 0.984807849, 0.173648044, -0.642788053, -0.13302207, 0.754406214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1720. CFrame.new(0.0324593484, 1.43977821, -0.119624585, 0.995960355, -0.0868238062, -0.0229113102, 0.0894833133, 0.938373625, 0.333838284, -0.00748568773, -0.334539831, 0.942351937) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1721. CFrame.new(1.69410944, 0.329396009, -0.667013586, 0.977326989, -0.133022755, 0.164733544, 0.196574897, 0.280932605, -0.939380229, 0.0786799788, 0.95046401, 0.30071193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1722. CFrame.new(-1.50714529, 0.0157378055, -0.431941032, 0.884520769, 0.235685706, -0.402585804, -0.362369925, 0.890611291, -0.274772465, 0.29378742, 0.388926923, 0.873169541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1723. CFrame.new(0.618915975, -1.85825384, -0.515439391, 0.98480773, 0.173648864, -1.81794167e-06, -0.17101045, 0.969846725, 0.173646331, 0.0301553011, -0.171007901, 0.984808087) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1724. CFrame.new(-0.523646474, -1.39458823, -0.171092927, 0.939692676, 0.342020273, 3.57627869e-07, -0.262003183, 0.719847083, 0.642786682, 0.219845772, -0.604022026, 0.766045213) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1725. }, .3, false)
  1726. end
  1727. Attack = false
  1728. end
  1729.  
  1730.  
  1731.  
  1732. function backhop()
  1733. Attack = true
  1734. CFuncs.Sound.Create("158149887", Torso, 1, 1)
  1735. Humanoid.Jump = true
  1736. for i = 0, .5, 0.1 do
  1737. swait()
  1738. PlayAnimationFromTable({
  1739. CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1740. CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1741. CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1742. CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1743. CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1744. CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1745. }, .3, false)
  1746. end
  1747. Torso.Velocity=RootPart.CFrame.lookVector*-200
  1748. for i = 0, 1, 0.1 do
  1749. swait()
  1750. PlayAnimationFromTable({
  1751. CFrame.new(-0.0724115372, 0.127895057, 0.313171744, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1752. CFrame.new(0.0169060901, 1.6077503, -0.180746168, 0.995960236, -0.0868240073, -0.0229110774, 0.089483425, 0.938373208, 0.333839238, -0.00748612173, -0.334540784, 0.94235158) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1753. CFrame.new(1.70837259, 0.360651702, -0.922262371, 0.97732687, -0.133022964, 0.16473335, 0.196574748, 0.280932844, -0.939380288, 0.0786801279, 0.95046401, 0.300712109) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1754. CFrame.new(-1.48861361, 0.317329109, -0.925790071, 0.994410336, -0.000923748419, -0.105581462, -0.100659929, 0.293561995, -0.950625718, 0.0318728462, 0.955939651, 0.291828096) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1755. CFrame.new(0.604445279, -1.94474173, -0.43701914, 0.94886601, -0.0119064255, -0.315454632, -0.0935085714, 0.943841219, -0.316891491, 0.301512092, 0.330185235, 0.894465506) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1756. CFrame.new(-0.577895403, -1.96714401, -0.475817055, 0.982055664, -0.0277231932, 0.186542824, 0.0885364786, 0.941134036, -0.326233506, -0.166517526, 0.336895287, 0.926700354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1757. }, .3, false)
  1758. end
  1759. Attack = false
  1760. end
  1761.  
  1762.  
  1763.  
  1764.  
  1765. function lefthop()
  1766. Attack = true
  1767. Humanoid.Jump = true
  1768. CFuncs.Sound.Create("158149887", Torso, 1, 1)
  1769. for i = 0, .5, 0.1 do
  1770. swait()
  1771. PlayAnimationFromTable({
  1772. CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1773. CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1774. CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1775. CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1776. CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1777. CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1778. }, .3, false)
  1779. end
  1780. Torso.Velocity=RootPart.CFrame.rightVector*-200
  1781. for i = 0, 1, 0.1 do
  1782. swait()
  1783. PlayAnimationFromTable({
  1784. CFrame.new(-0.0850991905, 0.127894506, -0.50492847, 0.866025388, 0.0868241936, -0.492404073, 0, 0.98480773, 0.173648342, 0.500000238, -0.150383845, 0.852868438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1785. CFrame.new(0.0324628651, 1.43977714, -0.119621098, 0.928060651, -0.0868241191, -0.362167478, 0.198266238, 0.938373506, 0.283100247, 0.315268338, -0.334539741, 0.888081789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1786. CFrame.new(1.82837343, 0.425938904, -0.29435727, 0.642787039, -0.663414657, 0.383022308, 0.754407167, 0.635036588, -0.166127652, -0.133021653, 0.395739436, 0.908677995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1787. CFrame.new(-0.822531939, 0.843190134, -1.47252464, 0.884521008, -0.355543315, -0.30201298, -0.362369865, -0.115946069, -0.924794376, 0.293787181, 0.927440405, -0.231394917) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1788. CFrame.new(0.63746208, -1.78279781, -0.693231404, 0.984807849, -0.173648208, -1.1920929e-07, 0.171010107, 0.969846427, 0.173647493, -0.0301534832, -0.171009362, 0.984807909) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1789. CFrame.new(-0.471737981, -1.40906096, -0.158949912, 1.00000012, 7.15255737e-07, -5.96046448e-07, -1.56462193e-07, 0.766044557, 0.642787457, 8.64267349e-07, -0.642787457, 0.766044617) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1790. }, .3, false)
  1791. end
  1792. Attack = false
  1793. end
  1794.  
  1795.  
  1796.  
  1797. focused = false
  1798.  
  1799.  
  1800.  
  1801. function fire()
  1802. Attack = true
  1803. Humanoid.WalkSpeed = 8
  1804. Humanoid.JumpPower = 0
  1805. Humanoid.AutoRotate = false
  1806. bodygyro = Instance.new("BodyGyro",RootPart)
  1807. bodygyro.MaxTorque = Vector3.new(50000,50000,50000)
  1808. bodygyro.D = 2500
  1809. bodygyro.P = 80000
  1810. for i = 0, .5, 0.1 do
  1811. swait()
  1812. PlayAnimationFromTable({
  1813. CFrame.new(-0.285053253, 0, 0.000710010529, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1814. CFrame.new(1.62422657e-06, 1.4772042, 0.113299504, 0.984807789, -2.16066837e-07, -0.173648417, 2.38418579e-07, 1, 2.98023224e-08, 0.173648387, -7.4505806e-08, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1815. CFrame.new(0.934092045, 0.617779732, -0.808870494, 0.958027482, -0.264440954, -0.110700212, -0.158811927, -0.168076277, -0.972897351, 0.238667816, 0.949642777, -0.203018084) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1816. CFrame.new(-0.00781965256, 0.58910501, -0.971779227, 0.754009128, -0.616460741, 0.226818621, 0.069166556, -0.268873394, -0.960689008, 0.653212428, 0.740056396, -0.160094544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1817. CFrame.new(0.597427905, -1.81130469, -0.378196716, 0.984808087, -1.49011612e-08, -0.173647672, 0.0301536024, 0.98480773, 0.171010017, 0.17100957, -0.173648089, 0.969846487) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1818. CFrame.new(-0.500000119, -1.96961212, -0.0941648632, 1.00000024, 7.4505806e-09, 2.98023224e-08, 7.4505806e-09, 1, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1819. }, .3, false)
  1820. bodygyro.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
  1821. end
  1822.  
  1823. local smonk = Instance.new("ParticleEmitter",bulletpart)
  1824. smonk.LightEmission = .1
  1825. smonk.Size = NumberSequence.new(0.2)
  1826. smonk.Texture = "http://www.roblox.com/asset/?ID=476778304"
  1827. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1)})
  1828. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1829. smonk.Transparency = bbb
  1830. smonk.Size = aaa
  1831. smonk.ZOffset = 0
  1832. smonk.Acceleration = Vector3.new(0, -5, 0)
  1833. smonk.LockedToPart = false
  1834. smonk.EmissionDirection = "Back"
  1835. smonk.Lifetime = NumberRange.new(.1, .3)
  1836. smonk.Rate = 50
  1837. smonk.Rotation = NumberRange.new(-100, 100)
  1838. smonk.RotSpeed = NumberRange.new(-100, 100)
  1839. smonk.Speed = NumberRange.new(4)
  1840. smonk.VelocitySpread = 100
  1841. smonk.Enabled=true
  1842.  
  1843.  
  1844. Effects.Block.Create(BrickColor.new("Gold"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
  1845. Effects.Block.Create(BrickColor.new("Flame reddish orange"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
  1846. local shell = CFuncs.Part.Create(EffectModel, "SmoothPlastic", .1, 0, "Gold", "Effect", Vector3.new(.5,.8,.5))
  1847. local shllmsh = CFuncs.Mesh.Create("CylinderMesh", shell, "", "", Vector3.new(0, 0, 0), Vector3.new(.3, .4, .3))
  1848. shell.Anchored = false
  1849. shell.Position = barrelcore.Position
  1850. shell.CanCollide = true
  1851. shell.Velocity=RootPart.CFrame.rightVector*10
  1852. CFuncs.Sound.Create("1456344653", shell, 1, 1)
  1853. game:GetService("Debris"):AddItem(shell, 2)
  1854. shoot(Mouse,3,bulletpart,0,10)
  1855. CFuncs.Sound.Create("356911785", bulletpart, .5, 1)
  1856. Torso.Velocity=RootPart.CFrame.lookVector*-5
  1857. for i = 0, 1, 0.1 do
  1858. swait()
  1859. PlayAnimationFromTable({
  1860. CFrame.new(-0.285053253, 0, 0.000710010529, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1861. CFrame.new(-0.0369947627, 1.48165417, 0.0668118149, 0.984807968, -0.0593912825, -0.163174778, 0.0301539991, 0.983905494, -0.176127136, 0.171009004, 0.16853103, 0.970748782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1862. CFrame.new(0.950688183, 0.676530004, -0.873103976, 0.997509122, 0.0604504608, 0.0363512188, 0.062037006, -0.506553113, -0.859974027, -0.0335720032, 0.860087097, -0.509041429) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1863. CFrame.new(-0.151879251, 0.598398328, -1.02295005, 0.881140769, -0.420461625, 0.216339961, -0.0945639759, -0.604967773, -0.790614784, 0.463301867, 0.676184893, -0.572822273) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1864. CFrame.new(0.612729192, -1.76533437, -0.18090108, 0.984807968, -0.0593911, -0.163174957, 0.0593909994, 0.998222888, -0.00488329167, 0.163175002, -0.00488201762, 0.98658514) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1865. CFrame.new(-0.514649093, -2.02197218, -0.350653172, 0.984807849, 3.4669165e-07, -0.173648134, -0.0301539954, 0.984807849, -0.171009868, 0.171009988, 0.173648044, 0.969846368) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1866. }, .3, false)
  1867. bodygyro.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
  1868. end
  1869. Attack = false
  1870. Humanoid.WalkSpeed = 25
  1871. smonk.Enabled=false
  1872. bodygyro:Destroy()
  1873. Humanoid.AutoRotate = true
  1874. Humanoid.JumpPower = 100
  1875. end
  1876.  
  1877.  
  1878.  
  1879.  
  1880. function autofire()
  1881. Attack = true
  1882. Humanoid.WalkSpeed = 0
  1883. Humanoid.JumpPower = 0
  1884. Humanoid.AutoRotate = false
  1885. focused = true
  1886. for i = 0, .5, 0.1 do
  1887. swait()
  1888. PlayAnimationFromTable({
  1889. CFrame.new(-0.285053253, 0, 0.000710010529, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1890. CFrame.new(1.62422657e-06, 1.4772042, 0.113299504, 0.984807789, -2.16066837e-07, -0.173648417, 2.38418579e-07, 1, 2.98023224e-08, 0.173648387, -7.4505806e-08, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1891. CFrame.new(0.934092045, 0.617779732, -0.808870494, 0.958027482, -0.264440954, -0.110700212, -0.158811927, -0.168076277, -0.972897351, 0.238667816, 0.949642777, -0.203018084) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1892. CFrame.new(-0.00781965256, 0.58910501, -0.971779227, 0.754009128, -0.616460741, 0.226818621, 0.069166556, -0.268873394, -0.960689008, 0.653212428, 0.740056396, -0.160094544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1893. CFrame.new(0.597427905, -1.81130469, -0.378196716, 0.984808087, -1.49011612e-08, -0.173647672, 0.0301536024, 0.98480773, 0.171010017, 0.17100957, -0.173648089, 0.969846487) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1894. CFrame.new(-0.500000119, -1.96961212, -0.0941648632, 1.00000024, 7.4505806e-09, 2.98023224e-08, 7.4505806e-09, 1, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1895. }, .3, false)
  1896. end
  1897.  
  1898. local smonk = Instance.new("ParticleEmitter",bulletpart)
  1899. smonk.LightEmission = .1
  1900. smonk.Size = NumberSequence.new(0.2)
  1901. smonk.Texture = "http://www.roblox.com/asset/?ID=476778304"
  1902. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1)})
  1903. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1904. smonk.Transparency = bbb
  1905. smonk.Size = aaa
  1906. smonk.ZOffset = 0
  1907. smonk.Acceleration = Vector3.new(0, -5, 0)
  1908. smonk.LockedToPart = false
  1909. smonk.EmissionDirection = "Back"
  1910. smonk.Lifetime = NumberRange.new(.1, .3)
  1911. smonk.Rate = 50
  1912. smonk.Rotation = NumberRange.new(-100, 100)
  1913. smonk.RotSpeed = NumberRange.new(-100, 100)
  1914. smonk.Speed = NumberRange.new(4)
  1915. smonk.VelocitySpread = 100
  1916. smonk.Enabled=true
  1917.  
  1918.  
  1919. Effects.Block.Create(BrickColor.new("Gold"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
  1920. Effects.Block.Create(BrickColor.new("Flame reddish orange"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
  1921. local shell = CFuncs.Part.Create(EffectModel, "SmoothPlastic", .1, 0, "Gold", "Effect", Vector3.new(.5,.8,.5))
  1922. local shllmsh = CFuncs.Mesh.Create("CylinderMesh", shell, "", "", Vector3.new(0, 0, 0), Vector3.new(.3, .4, .3))
  1923. shell.Anchored = false
  1924. shell.Position = barrelcore.Position
  1925. shell.CanCollide = true
  1926. shell.Velocity=RootPart.CFrame.rightVector*10
  1927. CFuncs.Sound.Create("1456344653", shell, 1, 1)
  1928. game:GetService("Debris"):AddItem(shell, 2)
  1929. if targetted.Parent.Humanoid.Health > 100 then
  1930. targetted.Parent.Humanoid.Health = 0
  1931. ShowDamage((targetted.Parent.Torso.CFrame * CFrame.new(0, 0, (targetted.Parent.Torso.Size.Z / 2)).p + Vector3.new(0, 3, 0)), "[Health fixed]", 2, BrickColor.new("Really red").Color)
  1932. elseif targetted.Parent.Humanoid.Health <= 100 then
  1933. targetted.Parent.Humanoid.Health = targetted.Parent.Humanoid.Health - 30
  1934. ShowDamage((targetted.Parent.Torso.CFrame * CFrame.new(0, 0, (targetted.Parent.Torso.Size.Z / 2)).p + Vector3.new(0, 3, 0)), "-30", 2, BrickColor.new(Torso.Color).Color)
  1935. elseif targetted.Parent.Humanoid.Health <= 30 then
  1936.  
  1937. end
  1938.  
  1939. CFuncs.Sound.Create("356911785", bulletpart, .5, 1)
  1940. for i = 0, .5, 0.1 do
  1941. swait()
  1942. PlayAnimationFromTable({
  1943. CFrame.new(-0.285053253, 0, 0.000710010529, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1944. CFrame.new(-0.0369947627, 1.48165417, 0.0668118149, 0.984807968, -0.0593912825, -0.163174778, 0.0301539991, 0.983905494, -0.176127136, 0.171009004, 0.16853103, 0.970748782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1945. CFrame.new(0.950688183, 0.676530004, -0.873103976, 0.997509122, 0.0604504608, 0.0363512188, 0.062037006, -0.506553113, -0.859974027, -0.0335720032, 0.860087097, -0.509041429) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1946. CFrame.new(-0.151879251, 0.598398328, -1.02295005, 0.881140769, -0.420461625, 0.216339961, -0.0945639759, -0.604967773, -0.790614784, 0.463301867, 0.676184893, -0.572822273) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1947. CFrame.new(0.612729192, -1.76533437, -0.18090108, 0.984807968, -0.0593911, -0.163174957, 0.0593909994, 0.998222888, -0.00488329167, 0.163175002, -0.00488201762, 0.98658514) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1948. CFrame.new(-0.514649093, -2.02197218, -0.350653172, 0.984807849, 3.4669165e-07, -0.173648134, -0.0301539954, 0.984807849, -0.171009868, 0.171009988, 0.173648044, 0.969846368) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1949. }, .3, false)
  1950. end
  1951. Attack = false
  1952. focused = false
  1953. Humanoid.WalkSpeed = 25
  1954. smonk.Enabled=false
  1955. Humanoid.AutoRotate = true
  1956. Humanoid.JumpPower = 100
  1957. end
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965. Mouse.Button1Up:connect(function()
  1966. if Attack == false and Anim ~= "Fall" and Anim ~= "Jump" and targetted == nil then
  1967. fire()
  1968. elseif Attack == false and Anim ~= "Fall" and Anim ~= "Jump" and targetted ~= nil then
  1969. autofire()
  1970. end
  1971. end)
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978. Mouse.KeyDown:connect(function(Key)
  1979. Key = Key:lower()
  1980. if Attack == false and Anim ~= "Fall" and Anim ~= "Jump" and Key == 'e' then
  1981. righthop()
  1982. elseif Attack == false and Anim ~= "Fall" and Anim ~= "Jump" and Key == 'q' then
  1983. lefthop()
  1984. elseif Attack == false and Anim ~= "Fall" and Anim ~= "Jump" and Key == 'r' then
  1985. backhop()
  1986. elseif Attack == false and Key == 'z' and Anim ~= "Fall" and Anim ~= "Jump" then
  1987. pepper()
  1988. elseif Attack == false and Key == 'x' and Anim ~= "Fall" and Anim ~= "Jump" then
  1989. smear()
  1990. elseif Attack == false and Key == 'f' and Anim ~= "Fall" and Anim ~= "Jump" and targetted == nil then
  1991. LockOn()
  1992. elseif Attack == false and Key == 'f' and targetted ~= nil then
  1993. targetted = nil
  1994. bodygyroo:Destroy()
  1995.  
  1996. end
  1997. end)
  1998.  
  1999.  
  2000. executing = false
  2001.  
  2002. local function OnHumanoidStateChange(oldState, newState) --last thing humanoid was doing, current thing humanoid is doing
  2003. if newState == Enum.HumanoidStateType.Landed and oldState == Enum.HumanoidStateType.Freefall and executing ~= true then --if they were falling and just landed then
  2004. if Attack == false then
  2005. Attack = true
  2006. Humanoid.AutoRotate = false
  2007. Humanoid.WalkSpeed = 0
  2008. Humanoid.JumpPower = 0
  2009. Torso.Velocity=RootPart.CFrame.lookVector*0
  2010. CFuncs.Sound.Create("608350178", Torso, 3, 1)
  2011. for i = 0, 1, 0.1 do
  2012. swait()
  2013. PlayAnimationFromTable({
  2014. CFrame.new(-0, -1.01481593, 2.98023224e-08, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2015. CFrame.new(0, 1.49999499, 1.11760201e-08, 1, 0, 0, 0, 0.999998331, -7.45067918e-09, 0, 7.45069251e-09, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2016. CFrame.new(1.50000763, -0.131187856, 0.26789096, 1, 0, 0, 0, 0.984807849, 0.173648536, 0, -0.173648536, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2017. CFrame.new(-0.934591651, -0.108145729, -0.566749334, 0.984807849, 0.173647985, 0, -0.150383562, 0.852868617, -0.500000238, -0.0868240371, 0.492404163, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2018. CFrame.new(0.5, -0.643755913, -0.994426787, 1, 0, 0, 0, 0.984807789, -0.173648715, 0, 0.173648685, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2019. CFrame.new(-0.5, -1.78364873, 0.343712032, 1, 0, 0, 0, 0.642787695, 0.766044557, 0, -0.766044557, 0.642787695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2020. }, .3, false)
  2021. end
  2022.  
  2023. end
  2024. Humanoid.AutoRotate = true
  2025. Humanoid.WalkSpeed = 25
  2026. Humanoid.JumpPower = 100
  2027. Attack = false
  2028. end
  2029. end
  2030.  
  2031.  
  2032. Humanoid.StateChanged:connect(OnHumanoidStateChange)
  2033.  
  2034.  
  2035. destroyable = false
  2036.  
  2037. spawn(function()
  2038. while true do
  2039. if targetted ~= nil and targetted.Parent.Head ~= nil then
  2040. print("ghay")
  2041. bodygyroo = Instance.new("BodyGyro",RootPart)
  2042. bodygyroo.MaxTorque = Vector3.new(50000,50000,50000)
  2043. bodygyroo.D = 2500
  2044. bodygyroo.P = 50000
  2045. while targetted ~= nil do
  2046. bodygyroo.CFrame = CFrame.new(RootPart.Position, Vector3.new(targetted.Parent.Head.Position.X,RootPart.Position,targetted.Parent.Head.Position.Z))
  2047. wait(.01)
  2048. end
  2049. elseif targetted == nil and destroyable == true then
  2050. bodygyroo:Destroy()
  2051. wait(.01)
  2052. elseif targetted ~= nil and Attack ~= true and focused ~= true then
  2053. bodygyroo:Destroy()
  2054. end
  2055. wait(.001)
  2056. end
  2057. end)
  2058.  
  2059.  
  2060.  
  2061.  
  2062. while true do
  2063. swait()
  2064. for i, v in pairs(Character:GetChildren()) do
  2065. if v:IsA("Part") then
  2066. v.Material = "SmoothPlastic"
  2067. elseif v:IsA("Accessory") then
  2068. v:WaitForChild("Handle").Material = "SmoothPlastic"
  2069. end
  2070. end
  2071. for i, v in pairs(Character:GetChildren()) do
  2072. if v:IsA'Model' then
  2073. for _, c in pairs(v:GetChildren()) do
  2074. if c:IsA'Part' then
  2075. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2076. end
  2077. end
  2078. end
  2079. end
  2080. TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2081. Velocity = RootPart.Velocity.y
  2082. Sine = Sine + Change
  2083. local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  2084. if RootPart.Velocity.y > 1 and hit == nil then
  2085. Anim = "Jump"
  2086. if Attack == false then
  2087. Change = 1
  2088. PlayAnimationFromTable({
  2089. CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2090. CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2091. CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2092. CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2093. CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2094. CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2095. }, .3, false)
  2096. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -.1, .8) * CFrame.Angles(math.rad(80), math.rad(0), math.rad(0)), 0.3)
  2097.  
  2098. end
  2099. elseif RootPart.Velocity.y < -1 and hit == nil then
  2100. Anim = "Fall"
  2101. if Attack == false then
  2102. Change = 1
  2103. PlayAnimationFromTable({
  2104. CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2105. CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2106. CFrame.new(1.53209591, 0.16416876, 0.0263971146, 0.98480773, -0.173648164, -1.55591565e-07, 0.171010092, 0.969846427, 0.173648164, -0.0301535316, -0.171010077, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2107. CFrame.new(-1.64498818, 0.287739754, -0.209731221, 0.86602509, 0.500000656, 7.92254752e-07, -0.433013529, 0.750000894, -0.499998152, -0.25, 0.433010578, 0.86602664) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2108. CFrame.new(0.5, -1.26449406, -1.10387921, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2109. CFrame.new(-0.5, -1.24956489, -0.292783707, 1, 0, 0, 0, 0.642787695, 0.766044557, 0, -0.766044557, 0.642787695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2110. }, .3, false)
  2111. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -.1, .8) * CFrame.Angles(math.rad(80), math.rad(0), math.rad(0)), 0.3)
  2112. end
  2113. elseif TorsoVelocity < 1 and hit ~= nil then
  2114. Anim = "Idle"
  2115. if Attack == false then
  2116. Change = 1
  2117. PlayAnimationFromTable({
  2118. CFrame.new(-0.00794177782, -7.4505806e-09, 0.0224991869, 0.76604414, 0.111618884, 0.633022666, 0, 0.984807849, -0.173648044, -0.642788053, 0.13302207, 0.754406214) * CFrame.new(0, 0 + 0.05 * math.cos(Sine/30), 0) * CFrame.Angles(0, 0, 0),
  2119. CFrame.new(-0.0413136631, 1.49691474, -0.148686588, 0.767336428, 0.138277978, -0.626158178, 0.0824353173, 0.947098911, 0.310174853, 0.635923922, -0.289626002, 0.715344429) * CFrame.new(0, 0 + 0.05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  2120. CFrame.new(0.825092554, 0.0104905069, -0.775937021, 0.866025388, 0.433013171, -0.249999434, -0.433012217, 0.399518192, -0.808013439, -0.250001132, 0.808012903, 0.533492804) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2121. CFrame.new(-0.241498172, 0.0799458325, -0.802346468, 0.866025567, -0.469846159, 0.171009794, 0.383021832, 0.40355885, -0.830923855, 0.321393847, 0.785101831, 0.529453576) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2122. CFrame.new(0.62906158, -2.01587725, 0.0849169493, 0.939692438, 0, -0.342020959, 0.0593912601, 0.984807849, 0.163175747, 0.336824834, -0.173648044, 0.92541641) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2123. CFrame.new(-0.43440938, -2.03143525, -0.00331869721, 0.98480773, 0, 0.173648447, -0.0301537216, 0.984807849, 0.171009928, -0.171010375, -0.173648044, 0.969846368) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2124. }, .3, false)
  2125. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -.1, .8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  2126. end
  2127. elseif TorsoVelocity > 2 and hit ~= nil then
  2128. Anim = "Walk"
  2129. if Attack == false then
  2130. PlayAnimationFromTable({
  2131. CFrame.new(-0, -0, 0, 1, 0, 0, 0, 0.996187985, 0.0871556774, 0, -0.0871556699, 0.996194661) * CFrame.new(0, 0 + .1 * math.cos(Sine/35), 0) * CFrame.Angles(-.3 + 0.05 * math.cos(Sine/30), 0, 0),
  2132. CFrame.new(0, 1.49999499, 1.11760201e-08, 1, 0, 0, 0, 0.999998331, -7.45067918e-09, 0, 7.45069251e-09, 1) * CFrame.new(0, 0 + 0.05 * math.cos(Sine/15), 0) * CFrame.Angles(0 + 0.05 * math.cos(Sine/15), 0, 0),
  2133. CFrame.new(0.825092554, 0.0104905069, -0.775937021, 0.866025388, 0.433013171, -0.249999434, -0.433012217, 0.399518192, -0.808013439, -0.250001132, 0.808012903, 0.533492804) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2134. CFrame.new(-0.241498172, 0.0799458325, -0.802346468, 0.866025567, -0.469846159, 0.171009794, 0.383021832, 0.40355885, -0.830923855, 0.321393847, 0.785101831, 0.529453576) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  2135. CFrame.new(0.5, -2.00000334, 2.67028881e-005, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, .4 + .8 * math.cos((Sine) / 2), -.1 + 1 * math.cos((Sine) / 4)) * CFrame.Angles(math.rad(1.8 - 50 * math.cos((Sine) / 4)), math.rad(0), math.rad(0)),
  2136. CFrame.new(-0.5, -2.00000334, 2.67028881e-005, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, .4 + .8 * math.cos((Sine) / 2), .1 - 1 * math.cos((Sine) / 4)) * CFrame.Angles(math.rad(-1.8 + 50 * math.cos((Sine) / 4)), math.rad(0), math.rad(0)),
  2137. }, .3, false)
  2138. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -.1, .8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  2139.  
  2140. end
  2141. end
  2142. if #Effects > 0 then
  2143. for e = 1, #Effects do
  2144. if Effects[e] ~= nil then
  2145. local Thing = Effects[e]
  2146. if Thing ~= nil then
  2147. local Part = Thing[1]
  2148. local Mode = Thing[2]
  2149. local Delay = Thing[3]
  2150. local IncX = Thing[4]
  2151. local IncY = Thing[5]
  2152. if Thing[1].Transparency <= 1 then
  2153. if Thing[2] == "Block1" then
  2154. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2155. Mesh = Thing[7]
  2156. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2157. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2158. elseif Thing[2] == "Ice" then
  2159. if Thing[6] <= Thing[5] then
  2160. Thing[6] = Thing[6] + .05
  2161. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
  2162. else
  2163. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2164. end
  2165. elseif Thing[2] == "Shatter" then
  2166. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2167. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2168. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2169. Thing[6] = Thing[6] + Thing[5]
  2170. elseif Thing[2] == "Block2" then
  2171. Thing[1].CFrame = Thing[1].CFrame
  2172. Mesh = Thing[7]
  2173. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2174. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2175. elseif Thing[2] == "Block3" then
  2176. Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2177. Mesh = Thing[7]
  2178. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2179. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2180. elseif Thing[2] == "Block4" then
  2181. Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  2182. Mesh = Thing[7]
  2183. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2184. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2185. elseif Thing[2] == "Block2Fire" then
  2186. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2187. Mesh = Thing[7]
  2188. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2189. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2190. if Thing[1].Transparency >= .3 then
  2191. Thing[1].BrickColor = BrickColor.new("Bright red")
  2192. else
  2193. Thing[1].BrickColor = BrickColor.new("Bright yellow")
  2194. end
  2195. elseif Thing[2] == "Cylinder" then
  2196. Mesh = Thing[7]
  2197. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2198. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2199. elseif Thing[2] == "Blood" then
  2200. Mesh = Thing[7]
  2201. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
  2202. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2203. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2204. elseif Thing[2] == "Elec" then
  2205. Mesh = Thing[10]
  2206. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2207. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2208. Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
  2209. Thing[1].Rotation = Vector3.new(0, 0, 0)
  2210. elseif Thing[2] == "Disappear" then
  2211. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2212. end
  2213. else
  2214. Part.Parent = nil
  2215. table.remove(Effects, e)
  2216. end
  2217. end
  2218. end
  2219. end
  2220. end
  2221. if Humanoid.PlatformStand == true then
  2222. Humanoid.PlatformStand = false
  2223. end
  2224. if targetted ~= nil then
  2225. destroyable = true
  2226. Humanoid.AutoRotate = false
  2227. crosshair.Adornee = targetted.Parent.Head
  2228. crosshair.Enabled = true
  2229. crosshair2.Adornee = targetted.Parent.Head
  2230. crosshair2.Enabled = true
  2231. crosshair3.Adornee = targetted.Parent.Head
  2232. crosshair3.Enabled = true
  2233. lockcam.CameraType = "Scriptable"
  2234. lockcam:Interpolate(RootPart.CFrame*CFrame.new(2,2,8),targetted.Parent.Head.CFrame,.1)
  2235. elseif targetted == nil and executing == false then
  2236. lockcam.CameraType = "Custom"
  2237. crosshair.Adornee = nil
  2238. crosshair.Enabled = false
  2239. crosshair2.Adornee = nil
  2240. crosshair2.Enabled = false
  2241. crosshair3.Adornee = nil
  2242. crosshair3.Enabled = false
  2243. Humanoid.AutoRotate = true
  2244. end
  2245. Humanoid.Health = math.huge
  2246. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement