TheUnknownDiscord

pericer

Nov 22nd, 2022 (edited)
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.40 KB | None | 0 0
  1. local billboard = Instance.new("ScreenGui", owner.PlayerGui)
  2. local cloakmeter = Instance.new("Frame",billboard)
  3. cloakmeter.BackgroundColor3 = Color3.fromRGB(130, 130, 130)
  4. cloakmeter.Size = UDim2.new(0.25,0,0.075,0)
  5. cloakmeter.AnchorPoint = Vector2.new(0.15, 0.95)
  6. cloakmeter.Position = UDim2.new(0.15, 0, 0.95, 0)
  7. cloakmeter.Active = true
  8. cloakmeter.Transparency = 0.4
  9. local cloakmeter2 = Instance.new("Frame",cloakmeter)
  10. cloakmeter2.Size = UDim2.new(1,0,1,0)
  11. cloakmeter2.BackgroundColor3 = Color3.fromRGB(10,240,10)
  12. cloakmeter2.Transparency = 0.4
  13. local cloakmeter3 = Instance.new("Frame",cloakmeter)
  14. cloakmeter3.Size = UDim2.new(0,0,1,0)
  15. cloakmeter3.BackgroundColor3 = Color3.fromRGB(50,50,50)
  16. cloakmeter3.AnchorPoint = Vector2.new(1, 0)
  17. cloakmeter3.Position = UDim2.new(1, 0, 0, 0)
  18. cloakmeter3.Transparency = 0.4
  19. local round = Instance.new("UICorner",cloakmeter)
  20. round.CornerRadius = UDim.new(0.1)
  21. local round = Instance.new("UICorner",cloakmeter2)
  22. round.CornerRadius = UDim.new(0.1)
  23. local round = Instance.new("UICorner",cloakmeter3)
  24. round.CornerRadius = UDim.new(0.1)
  25. local old = owner.Character.Humanoid.Health
  26. local harddamage = 0
  27. local time = 10
  28. coroutine.wrap(function()
  29. while task.wait() do
  30. pcall(function()
  31. cloakmeter3.Size = UDim2.new(math.clamp(harddamage,0.1,99)/100,0,1,0)
  32. cloakmeter2.Size = UDim2.new(owner.Character.Humanoid.Health/owner.Character.Humanoid.MaxHealth,0,1,0)
  33. end)
  34. end
  35. end)()
  36. coroutine.wrap(function()
  37. pcall(function()
  38. while owner.Character.Humanoid.Health > 0 do
  39. repeat
  40. wait(0.1)
  41. time -= 0.1
  42. until time <= 0
  43. harddamage = math.clamp(harddamage - (5),0,99)
  44. time = time + 0.1
  45. end
  46. end)
  47. end)()
  48. owner.Character.Humanoid:GetPropertyChangedSignal("MaxHealth"):Connect(function(wha)
  49. if wha ~= 100 then
  50. harddamage = math.clamp(harddamage + (100 - wha),0,99)
  51. owner.Character.Humanoid.MaxHealth = 100
  52. end
  53. end)
  54. owner.Character.Humanoid.HealthChanged:Connect(function(newhealth)
  55. pcall(function()
  56. if newhealth < old then
  57. time = 10
  58. harddamage = math.clamp(harddamage + ((old - newhealth) * 0.2),0,99)
  59. old = newhealth
  60. elseif newhealth > old then
  61. old = newhealth
  62. end
  63. end)
  64. end)
  65. if owner.Character:FindFirstChild("Health") then
  66. owner.Character:FindFirstChild("Health"):Destroy()
  67. end
  68. local rayblacklist = {}
  69. local p = Instance.new("SpawnLocation")
  70. p.Enabled = false
  71. p.Transparency = 1
  72. p.Size = Vector3.new(0.25,0.25,0.25)
  73. p.Name = "bloodyhujijahuyugtfvfyh"
  74. local attachment0 = Instance.new("Attachment",p)
  75. local attachment1 = Instance.new("Attachment",p)
  76. attachment1.CFrame = CFrame.new(-0.1,0.1,0.1)
  77. attachment0.CFrame = CFrame.new(0.1,-0.1,-0.1)
  78. local trail = Instance.new("Trail",p)
  79. trail.Attachment0 = attachment0
  80. trail.Attachment1 = attachment1
  81. trail.Lifetime = 0.15
  82. trail.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 1)}
  83. trail.WidthScale = NumberSequence.new{NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 0)}
  84. trail.MaxLength = 0
  85. trail.LightEmission = 0
  86. trail.LightInfluence = 1
  87. trail.TextureLength = 1
  88. trail.TextureMode = "Stretch"
  89. trail.Color = ColorSequence.new(Color3.fromRGB(85,0,0))
  90. trail.MinLength = 0.1
  91. trail.FaceCamera = true
  92. local min = -15
  93. local max = 15
  94. function splat(whatpart,times)
  95. pcall(function()
  96. for i = 1,(2 * times) do
  97. wait()
  98. coroutine.wrap(function()
  99. local b = p:Clone()
  100. b.Parent = script
  101. b.Position = whatpart.Position
  102. b.Velocity = Vector3.new(Random.new():NextNumber(min,max),Random.new():NextNumber(min,max) + 30,Random.new():NextNumber(min,max))
  103. table.insert(rayblacklist,b)
  104. b.Touched:Connect(function(what)
  105. if not (what:FindFirstAncestorWhichIsA("Model") and what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) and not table.find(rayblacklist,what) and what.CanCollide == true then
  106. local params = RaycastParams.new()
  107. params.FilterDescendantsInstances = {rayblacklist,whatpart:FindFirstAncestorWhichIsA("Model"):GetDescendants()}
  108. params.FilterType = Enum.RaycastFilterType.Blacklist
  109. local result = workspace:Raycast(b.Position,b.Velocity + Vector3.new(0,-3,0), params)
  110. if result then
  111. if result.Instance.Name ~= "imbloodaaaa" then
  112. local bloodpartfloor = Instance.new("SpawnLocation")
  113. bloodpartfloor.Enabled = false
  114. bloodpartfloor.CanCollide = false
  115. bloodpartfloor.Anchored = true
  116. bloodpartfloor.Name = "imbloodaaaa"
  117. bloodpartfloor.Size = Vector3.new(0.05,0.005,0.005)
  118. bloodpartfloor.CanCollide = false
  119. bloodpartfloor.Material = "Ice"
  120. bloodpartfloor.Transparency = 0.3
  121. local s = Instance.new("SpecialMesh",bloodpartfloor)
  122. s.MeshType = "Sphere"
  123. b:Destroy()
  124. bloodpartfloor.Position = result.Position
  125. local whathit = result.Instance
  126. local currentRightVector = whathit.CFrame.RightVector
  127. local upVector = result.Normal
  128. local newFacialVector = currentRightVector:Cross(upVector)
  129. bloodpartfloor.CFrame = CFrame.fromMatrix(bloodpartfloor.Position, currentRightVector, upVector, newFacialVector) * CFrame.Angles(0,0,math.rad(90))
  130. bloodpartfloor.Color = Color3.fromRGB(85, 0,0)
  131. game:GetService("Debris"):AddItem(bloodpartfloor,15)
  132. bloodpartfloor.Parent = workspace
  133. local random = Random.new():NextNumber(0.25,3)
  134. local tweenService = game:GetService("TweenService")
  135. local timeToFade = random/3
  136. local object = bloodpartfloor
  137. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  138. local goal = {}
  139. goal.Size = Vector3.new(random/20,random,random)
  140. goal.Transparency = 0.3 + random/10
  141. local groww = tweenService:Create(object, tweenInfo, goal)
  142. groww:Play()
  143. local tweenService = game:GetService("TweenService")
  144. local timeToFade = 5
  145. local object = bloodpartfloor
  146. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  147. local goal = {}
  148. goal.Transparency = 1
  149. local gone = tweenService:Create(object, tweenInfo, goal)
  150. delay(10,function()
  151. gone:Play()
  152. end)
  153. else
  154. local random = Random.new():NextNumber(0.25,3)/10
  155. local tweenService = game:GetService("TweenService")
  156. local timeToFade = random/3
  157. local object = result.Instance
  158. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  159. local goal = {}
  160. goal.Size = object.Size + Vector3.new(random/20,random,random)
  161. local groww = tweenService:Create(object, tweenInfo, goal)
  162. groww:Play()
  163. end
  164. end
  165. end
  166. end)
  167. end)()
  168. end
  169. end)
  170. end
  171. local pppp = Instance.new("Part",script)
  172. pppp.CanQuery = false
  173. pppp.Anchored = true
  174. pppp.CanCollide = false
  175. pppp.Size = Vector3.new()
  176. pppp.Transparency = 1
  177. local s = Instance.new("Sound")
  178. s.PlayOnRemove = true
  179. s.Volume = 1.6
  180. s.SoundId = "rbxassetid://6828928602"
  181. e = Instance.new("RemoteEvent",owner.Character)
  182. local hed = Instance.new("Weld",owner.Character.Torso)
  183. hed.Part0 = owner.Character.Head
  184. hed.Part1 = hed.Parent
  185. hed.C0 = CFrame.new(0,-0.5,0)
  186. hed.C1 = CFrame.new(0,1,0)
  187. hed.Enabled = false
  188. local tool = Instance.new("Tool",owner.Backpack)
  189. tool.RequiresHandle = false
  190. tool.Name = "i have an obsession with ultrakill weapons please help im begging you"
  191. tool.ToolTip = "i have an obsession with ultrakill weapons please help im begging you save me from this i beg i need help please help im begging you please"
  192. tool.TextureId = "rbxassetid://11541198228"
  193. tool.Grip = CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,-0.5,0.5)
  194. local part = Instance.new("Part",tool)
  195. part.CanCollide = false
  196. part.Size = Vector3.new(0.28355,0.781,2.24625)
  197. local m = Instance.new("SpecialMesh",part)
  198. m.MeshId = "rbxassetid://10522798832"
  199. m.TextureId = "rbxassetid://10522947294"
  200. m.Scale = Vector3.new(0.065,0.065,0.065)
  201. local part2 = Instance.new("Part",tool)
  202. part2.CanCollide = false
  203. part2.Size = Vector3.new(0.28355,0.781,0.6134)
  204. local m2 = Instance.new("SpecialMesh",part2)
  205. m2.MeshId = "rbxassetid://10522797895"
  206. m2.TextureId = "rbxassetid://10522947294"
  207. m2.Scale = Vector3.new(0.065,0.065,0.065)
  208. local part3 = Instance.new("Part",tool)
  209. part3.CanCollide = false
  210. part3.Size = Vector3.new(0.6134,0.6134,0.6134)
  211. local m3 = Instance.new("SpecialMesh",part3)
  212. m3.MeshId = "rbxassetid://10522797442"
  213. m3.TextureId = "rbxassetid://10522947294"
  214. m3.Scale = Vector3.new(0.065,0.065,0.065)
  215. local part4 = Instance.new("Part",tool)
  216. part4.CanCollide = false
  217. part4.Size = Vector3.new(0.28355,0.781,0.6134)
  218. local m4 = Instance.new("SpecialMesh",part4)
  219. m4.MeshId = "rbxassetid://10522799754"
  220. m4.TextureId = "rbxassetid://10522947294"
  221. m4.Scale = Vector3.new(0.065,0.065,0.065)
  222. local weld = Instance.new("Weld",tool)
  223. weld.Part0 = part2
  224. weld.Part1 = part
  225. weld.C1 = CFrame.new(0,-(0.37 + 0.125),(1.09 + 0.3) - 0.05)
  226. local weld3 = Instance.new("Weld",tool)
  227. weld3.Part0 = part3
  228. weld3.Part1 = part
  229. weld3.C1 = CFrame.new(0,0.07 + 0.075,0.5 + 0.1875)
  230. local weld = Instance.new("Weld",owner.Character["Right Arm"])
  231. weld.Part0 = part
  232. weld.Part1 = owner.Character["Right Arm"]
  233. weld.C1 = CFrame.Angles(math.rad(-90),0,0) * CFrame.new(0,0.5,-2) * CFrame.Angles(math.rad(2),math.rad(2),0)
  234. local armw = Instance.new("Weld",owner.Character.Torso)
  235. armw.Part0 = owner.Character["Right Arm"]
  236. armw.Part1 = owner.Character.Torso
  237. armw.C1 = CFrame.new(1.5,0.4,0.25)
  238. armw.Enabled = false
  239. armw.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,0)
  240. local tweenService = game:GetService("TweenService")
  241. local tweenInfo = TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
  242. local goal = {}
  243. goal.C0 = CFrame.Angles(math.rad(-120),0,0)
  244. local tween = tweenService:Create(weld, tweenInfo, goal)
  245. local goal4 = {}
  246. goal4.C1 = CFrame.Angles(math.rad(-90),0,0) * CFrame.new(0,1,-2) * CFrame.Angles(math.rad(2),math.rad(2),0)
  247. local tween4 = tweenService:Create(weld, tweenInfo, goal4)
  248. local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
  249. local goal2 = {}
  250. goal2.C0 = CFrame.Angles(math.rad(-240),0,0)
  251. local tween2 = tweenService:Create(weld, tweenInfo, goal2)
  252. local goal5 = {}
  253. goal5.C1 = CFrame.Angles(math.rad(-90),0,0) * CFrame.new(0,1.5,-1.9) * CFrame.Angles(math.rad(2),math.rad(2),0)
  254. local tween5 = tweenService:Create(weld, tweenInfo, goal5)
  255. local tweenInfo = TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.In)
  256. local goal3 = {}
  257. goal3.C0 = CFrame.Angles(math.rad(-360),0,0)
  258. local tween3 = tweenService:Create(weld, tweenInfo, goal3)
  259. local goal6 = {}
  260. goal6.C1 = CFrame.Angles(math.rad(-90),0,0) * CFrame.new(0,0.5,-2) * CFrame.Angles(math.rad(2),math.rad(2),0)
  261. local tween6 = tweenService:Create(weld, tweenInfo, goal6)
  262. local tweenService = game:GetService("TweenService")
  263. local tweenInfo = TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,true)
  264. local goal = {}
  265. goal.C0 = CFrame.new(0,0.5,0.2) * CFrame.Angles(math.rad(-100),0,0)
  266. local twee = tweenService:Create(armw, tweenInfo, goal)
  267. local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,true)
  268. local goal = {}
  269. goal.C0 = CFrame.new(0,-0.1,0.2) * CFrame.Angles(math.rad(-110),0,0)
  270. local tweee = tweenService:Create(armw, tweenInfo, goal)
  271. local goal = {}
  272. goal.C1 = CFrame.Angles(math.rad(-90),0,0) * CFrame.new(0,0.75,-1.65) * CFrame.Angles(math.rad(14),math.rad(2),0)
  273. local tweeee = tweenService:Create(weld, tweenInfo, goal)
  274. local welll = Instance.new("Weld",owner.Character.HumanoidRootPart)
  275. welll.Part0 = owner.Character.Torso
  276. welll.Part1 = owner.Character.HumanoidRootPart
  277. welll.Enabled = false
  278. local tweenInfo = TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,true)
  279. local goa = {}
  280. goa.C1 = welll.C1 * CFrame.Angles(math.rad(5),0,0)
  281. local tweee3 = tweenService:Create(welll, tweenInfo, goa)
  282. local equip = Instance.new("Sound")
  283. equip.PlayOnRemove = true
  284. equip.Volume = 1
  285. local m = Instance.new("Sound",part)
  286. m.Volume = 0.7
  287. m.SoundId = "rbxassetid://1838457617"
  288. m.Looped = true
  289. local shotcount = 24
  290. equip.SoundId = "rbxassetid://6870002623"
  291. local reload = false
  292. tween.Completed:Connect(function()
  293. tween2:Play()
  294. tween5:Play()
  295. end)
  296. tween2.Completed:Connect(function()
  297. tween3:Play()
  298. tween6:Play()
  299. end)
  300. tween6.Completed:Connect(function()
  301. wait(0.05)
  302. reload = false
  303. shotcount = 0
  304. end)
  305. tool.Equipped:Connect(function()
  306. equip.Parent = part
  307. equip.Parent = nil
  308. m:Play()
  309. end)
  310. tool.Equipped:Connect(function()
  311. owner.Character.Humanoid.WalkSpeed += 2
  312. reload = true
  313. armw.Enabled = true
  314. hed.Enabled = true
  315. tween:Play()
  316. tween4:Play()
  317. twee:Play()
  318. welll.Enabled = true
  319. end)
  320. tool.Unequipped:Connect(function()
  321. owner.Character.Humanoid.WalkSpeed -= 2
  322. armw.Enabled = false
  323. hed.Enabled = false
  324. welll.Enabled = false
  325. shotcount = 24
  326. m:Pause()
  327. end)
  328. thepew = false
  329. tool.Activated:Connect(function()
  330. if not reload then
  331. thepew = true
  332. end
  333. end)
  334. tool.Deactivated:Connect(function()
  335. thepew = false
  336. end)
  337. e.OnServerEvent:Connect(function(_,cam,c1,alpha,hitcf,sw,wcs,shift,dt)
  338. local lookvector = owner.Character.HumanoidRootPart.CFrame:toObjectSpace(cam).lookVector.unit
  339. local y = lookvector.y
  340. local x = 0
  341. hed.C0 = hed.C0:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(-y,0,0),dt*15)
  342. hed.C0 = hed.C0 * CFrame.Angles(sw.y,0,0)
  343. if shift then
  344. if y > 0 then
  345. armw.C1 = armw.C1:Lerp(CFrame.new(1.5,0.4,0) * CFrame.Angles(y + sw.y,-(x * 0.25) + sw.x,0) * CFrame.new(0,-0.5 * (y * 0.75),-0.5 * (y * 0.75)),dt*15)
  346. armw.C1 = armw.C1:Lerp(armw.C1 * CFrame.new(wcs.y / 3, wcs.x / 3,0),dt*15)
  347. else
  348. armw.C1 = armw.C1:Lerp(CFrame.new(1.5,0.4,0) * CFrame.Angles((y) + sw.y,-(x * 0.25) + sw.x,0) * CFrame.new(0,0.5 * (y * 0.75),-0.5 * (y * 0.75)),dt*15)
  349. armw.C1 = armw.C1:Lerp(armw.C1 * CFrame.new(wcs.y / 3, wcs.x / 3,0),dt*15)
  350. end
  351. else
  352. if y > 0 then
  353. armw.C1 = armw.C1:Lerp(CFrame.new(1.5,0.4,0) * CFrame.Angles((y) + sw.y,-(x * 0.25) + sw.x,0) * CFrame.new(0,-0.5 * (y * 0.75),-0.5 * (y * 0.75)),dt*15)
  354. armw.C1 = armw.C1:Lerp(armw.C1 * CFrame.new(wcs.y / 3, wcs.x / 3,0),dt*15)
  355. else
  356. armw.C1 = armw.C1:Lerp(CFrame.new(1.5,0.4,0) * CFrame.Angles((y) + sw.y,-(x * 0.25) + sw.x,0) * CFrame.new(0,0.5 * (y * 0.75),-0.5 * (y * 0.75)),dt*15)
  357. armw.C1 = armw.C1:Lerp(armw.C1 * CFrame.new(wcs.y / 3, wcs.x / 3,0),dt*15)
  358. end
  359. end
  360. end)
  361. NLS([[
  362. e = script.Parent
  363. local tool = owner.Backpack:WaitForChild("i have an obsession with ultrakill weapons please help im begging you")
  364. local ITERATIONS = 8
  365. local SPRING = {}
  366. function SPRING.create(self, mass, force, damping, speed)
  367. local spring = {
  368. Target = Vector3.new();
  369. Position = Vector3.new();
  370. Velocity = Vector3.new();
  371. Mass = mass or 5;
  372. Force = force or 50;
  373. Damping = damping or 4;
  374. Speed = speed or 4;
  375. }
  376. function spring.shove(self, force)
  377. local x, y, z = force.X, force.Y, force.Z
  378. if x ~= x or x == math.huge or x == -math.huge then
  379. x = 0
  380. end
  381. if y ~= y or y == math.huge or y == -math.huge then
  382. y = 0
  383. end
  384. if z ~= z or z == math.huge or z == -math.huge then
  385. z = 0
  386. end
  387. self.Velocity = self.Velocity + Vector3.new(x, y, z)
  388. end
  389. function spring.update(self, dt)
  390. local scaledDeltaTime = math.min(dt,1) * self.Speed / ITERATIONS
  391. for i = 1, ITERATIONS do
  392. local iterationForce = self.Target - self.Position
  393. local acceleration = (iterationForce * self.Force) / self.Mass
  394. acceleration = acceleration - (self.Velocity * self.Damping)
  395. self.Velocity = self.Velocity + (acceleration * scaledDeltaTime)
  396. self.Position = self.Position + (self.Velocity * scaledDeltaTime)
  397. end
  398. return self.Position
  399. end
  400. return spring
  401. end
  402. local wc = SPRING.create()
  403. local sway = SPRING.create()
  404. local bobspeed = 1
  405. local bobmod = .1
  406. local alpha = .25
  407. local hitcf = CFrame.new()
  408. local function gb(addition, speed, modifier)
  409. return math.sin(tick() * addition * speed) * modifier
  410. end
  411. c1 = CFrame.new(0,0,0)
  412. c2 = CFrame.new(0,0,0)
  413. local UIS = game:GetService("UserInputService")
  414. shift = false
  415. UIS:GetPropertyChangedSignal("MouseBehavior"):Connect(function()
  416. if UIS.MouseBehavior == Enum.MouseBehavior.LockCenter then
  417. shift = true
  418. elseif UIS.MouseBehavior ~= Enum.MouseBehavior.LockCenter then
  419. shift = false
  420. end
  421. end)
  422. local mouse = owner:GetMouse()
  423. local part = Instance.new("Part",owner.Character.Head)
  424. part.Size = Vector3.new()
  425. part.CanCollide = false
  426. part.Transparency = 1
  427. local weld = Instance.new("Weld", owner.Character.Head)
  428. weld.Part0 = part
  429. weld.Part1 = owner.Character.Head
  430. weld.C0 = CFrame.new(0,-0.5,0.5)
  431. game:GetService("RunService").RenderStepped:Connect(function(dt)
  432. delta = game:GetService("UserInputService"):GetMouseDelta()
  433. local vel = owner.Character.HumanoidRootPart.Velocity
  434. local msway = Vector3.new(gb(10, bobspeed, bobmod), gb(5, bobspeed, bobmod), gb(5, bobspeed, bobmod))
  435. sway:shove(Vector3.new(delta.X / 500, delta.Y / 500))
  436. wc:shove((msway / 25) * dt * 60 * math.clamp(vel.Magnitude,0,30))
  437. local sw = sway:update(dt)
  438. local wcs = wc:update(dt)
  439. if shift == true and (owner.Character.Head.CFrame.Position - workspace.CurrentCamera.CFrame.Position).Magnitude < 1.5 then
  440. local x,_,z = owner.Character.HumanoidRootPart.CFrame:ToOrientation()
  441. local _,y,_ = workspace.CurrentCamera.CFrame:ToOrientation()
  442. owner.Character.HumanoidRootPart.CFrame = CFrame.new(owner.Character.HumanoidRootPart.Position) * CFrame.Angles(x,y,z)
  443. workspace.CurrentCamera.FieldOfView = 100
  444. for i,v in pairs(owner.Character:GetDescendants()) do
  445. if v:IsA("Part") or v:IsA("MeshPart") and v.Name ~= "Head" then
  446. v.LocalTransparencyModifier = 0
  447. end
  448. if v:IsA("Accessory") and (v.AccessoryType == Enum.AccessoryType.Hat or v.AccessoryType == Enum.AccessoryType.Hair or v.AccessoryType == Enum.AccessoryType.Face or v.AccessoryType == Enum.AccessoryType.Neck) and v.Handle ~= nil then
  449. v.Handle.Transparency = 1
  450. end
  451. end
  452. if owner.Character.Head.face ~= nil then
  453. owner.Character.Head.face.Transparency = 1
  454. end
  455. owner.Character.Head.Transparency = 1
  456. workspace.CurrentCamera.CameraSubject = part
  457. else
  458. workspace.CurrentCamera.FieldOfView = 70
  459. workspace.CurrentCamera.CameraSubject = owner.Character
  460. owner.Character.Head.Transparency = 0
  461. for i,v in pairs(owner.Character:GetDescendants()) do
  462. if v:FindFirstChildWhichIsA("SpecialMesh") then
  463. v.Transparency = 0
  464. end
  465. end
  466. if owner.Character.Head.face ~= nil then
  467. owner.Character.Head.face.Transparency = 0
  468. end
  469. end
  470. local laststate = owner.Character.Humanoid.AutoRotate
  471. if not shift and tool.Parent == owner.Character then
  472. if laststate ~= false then
  473. owner.Character.Humanoid.AutoRotate = false
  474. end
  475. owner.Character.HumanoidRootPart.CFrame = owner.Character.HumanoidRootPart.CFrame:lerp(CFrame.new(owner.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.p.x,owner.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z)),dt*15)
  476. e:FireServer(CFrame.new((owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,1.5,0)).Position) * CFrame.Angles(CFrame.new((owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,1.5,0)).Position,mouse.Hit.Position):ToEulerAnglesXYZ()) * CFrame.new(0,0,3),c1,alpha,hitcf,sw,wcs,shift,dt)
  477. else
  478. owner.Character.Humanoid.AutoRotate = true
  479. e:FireServer(workspace.CurrentCamera.CFrame,c1,alpha,hitcf,sw,wcs,shift,dt)
  480. end
  481. end)
  482. ]],e)
  483. coroutine.wrap(function()
  484. while game:GetService("RunService").Stepped:Wait() do
  485. if thepew and shotcount ~= 24 then
  486. shotcount += 1
  487. local muzzle = Instance.new("Part",script)
  488. muzzle.CanCollide = false
  489. muzzle.CanQuery = false
  490. muzzle.Anchored = true
  491. local c0 = weld3.C0
  492. coroutine.wrap(function()
  493. for i = 1,20 do
  494. weld3.C0 = weld3.C0:Lerp(c0 * CFrame.Angles(0,0,math.rad(60)),0.05)
  495. task.wait()
  496. end
  497. weld3.C0 = CFrame.new()
  498. end)()
  499. s.Parent = muzzle
  500. s.Parent = nil
  501. if shotcount >= 22 then
  502. s.PlaybackSpeed = Random.new():NextNumber(0.95,1.05) + (0.15 * (shotcount - 21))
  503. else
  504. s.PlaybackSpeed = Random.new():NextNumber(0.95,1.05)
  505. end
  506. tweee3:Play()
  507. muzzle.CFrame = part.CFrame * CFrame.new(0,0.25,-1.6)
  508. muzzle.Position = muzzle.Position + part.Velocity * owner:GetNetworkPing()
  509. tweee:Play()
  510. tweeee:Play()
  511. muzzle.Transparency = 1
  512. local attachment0 = Instance.new("Attachment")
  513. attachment0.Parent = muzzle
  514. local attachment1 = Instance.new("Attachment")
  515. attachment1.Parent = workspace.Terrain
  516. attachment1.WorldCFrame = attachment0.WorldCFrame
  517. local params = RaycastParams.new()
  518. params.FilterDescendantsInstances = {owner.Character,script}
  519. params.FilterType = Enum.RaycastFilterType.Blacklist
  520. local res = workspace:Raycast((owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,1.5,0)).Position + owner.Character.Head.Velocity * owner:GetNetworkPing(),owner.Character.Head.CFrame.lookVector * 5000, params)
  521. local muzzle2 = Instance.new("Part",script)
  522. muzzle2.CanQuery = false
  523. muzzle2.CanCollide = false
  524. muzzle2.Size = Vector3.new(0.1,0.1,0.1)
  525. muzzle2.Anchored = true
  526. muzzle2.Transparency = 1
  527. local pe = Instance.new("ParticleEmitter",muzzle2)
  528. pe.Texture = "rbxassetid://13191594"
  529. pe.Enabled = false
  530. pe.Speed = NumberRange.new(5,10)
  531. pe.Shape = "Cylinder"
  532. pe.ShapeStyle = "Volume"
  533. pe.ShapeInOut = "Outward"
  534. pe.LightEmission = 0.2
  535. pe.LightInfluence = 0.5
  536. pe.Size = NumberSequence.new{NumberSequenceKeypoint.new(0, 0.125),NumberSequenceKeypoint.new(1, 0.0625)}
  537. pe.Lifetime = NumberRange.new(0.5, 0.75)
  538. pe.Rate = 500
  539. pe.Drag = 2
  540. pe.LockedToPart = true
  541. pe.RotSpeed = NumberRange.new(0,0)
  542. pe.Color = ColorSequence.new(Color3.fromRGB(242, 191, 24))
  543. pe.SpreadAngle = Vector2.new(-20, 20)
  544. pe.EmissionDirection = Enum.NormalId.Back
  545. pe.Acceleration = Vector3.new(0,-50,0)
  546. game:GetService("Debris"):AddItem(muzzle2,1)
  547. local beam = Instance.new("Beam")
  548. beam.Width0 = 0.25
  549. beam.Width1 = 0.2
  550. local p = nil
  551. if res then
  552. p = CFrame.new(res.Position)
  553. if res.Instance:FindFirstAncestorWhichIsA("Model") and res.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid") then
  554. coroutine.wrap(function()
  555. pcall(function()
  556. local he = res.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid").Health
  557. local he2 = (res.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid").Health) - 15 * 2
  558. for h = 1, 20 do
  559. if (owner.Character.Head.Position - res.Instance.Position).Magnitude <= 14 then
  560. owner.Character.Humanoid.Health = math.clamp((owner.Character.Humanoid.Health + (he - he2)/20),0,(owner.Character.Humanoid.MaxHealth - harddamage))
  561. end
  562. wait(0.025)
  563. end
  564. end)
  565. end)()
  566. res.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid").Health -= 15 * 2
  567. coroutine.wrap(function()
  568. splat(res.Instance,math.random(2,3))
  569. end)()
  570. muzzle2.CFrame = CFrame.new(res.Position) * CFrame.Angles(CFrame.new(muzzle.Position,res.Position):ToEulerAnglesXYZ()) * CFrame.Angles(0,math.rad(90),0)
  571. pe.Color = ColorSequence.new(Color3.fromRGB(222, 10, 7))
  572. else
  573. muzzle2.CFrame = CFrame.new(res.Position) * CFrame.Angles(CFrame.new(muzzle.Position,res.Position):ToEulerAnglesXYZ()) * CFrame.Angles(0,math.rad(90),0)
  574. pe.Color = ColorSequence.new(Color3.fromRGB(242, 191, 24))
  575. end
  576. else
  577. p = owner.Character.Head.CFrame * CFrame.new(0,0,-7000)
  578. muzzle2:Destroy()
  579. beam.Width1 = 0.125
  580. end
  581. beam.Attachment0 = attachment0
  582. beam.Attachment1 = attachment1
  583. beam.CurveSize0 = 0
  584. beam.CurveSize1 = 0
  585. beam.FaceCamera = true
  586. beam.LightInfluence = 0
  587. beam.Segments = 10
  588. beam.LightEmission = 1
  589. beam.Brightness = 0.8
  590. beam.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(242, 191, 24)),ColorSequenceKeypoint.new(1, Color3.fromRGB(252, 227, 0))}
  591. beam.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0, 0.9),NumberSequenceKeypoint.new(1, 0.9)}
  592. local billboard = Instance.new("BillboardGui", muzzle)
  593. billboard.Size = UDim2.new(2.5,0,2.5,0)
  594. local frame = Instance.new("ImageLabel", billboard)
  595. frame.BackgroundTransparency = 1
  596. frame.ImageTransparency = 0
  597. frame.Image = "http://www.roblox.com/asset/?id=11467328624"
  598. frame.Size = UDim2.new(1,0,1,0)
  599. local gg = {}
  600. gg.WorldCFrame = p
  601. local tweenInfoo = TweenInfo.new(0.13,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  602. local tttt = tweenService:Create(attachment1, tweenInfoo, gg)
  603. tttt:Play()
  604. coroutine.wrap(function()
  605. tttt.Completed:Wait()
  606. if pe ~= nil then
  607. pe:Emit(20)
  608. end
  609. end)()
  610. local gg = {}
  611. gg.Rotation = math.random(-50,50)
  612. gg.ImageTransparency = 1
  613. local tweenInfoo = TweenInfo.new(0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  614. local ttttt = tweenService:Create(frame, tweenInfoo, gg)
  615. ttttt:Play()
  616. local g = {}
  617. g.Width0 = 0.1
  618. g.Width1 = 0.1
  619. g.Brightness = 0.2
  620. local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  621. local t = tweenService:Create(beam, tweenInfo, g)
  622. coroutine.wrap(function()
  623. for i = -1,100,1 do
  624. wait(0.001)
  625. beam.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0, (0.072 * i)),NumberSequenceKeypoint.new(1, (0.072 * i))}
  626. end
  627. end)()
  628. beam.Parent = muzzle
  629. coroutine.wrap(function()
  630. local gg = {}
  631. gg.CFrame = CFrame.new()
  632. local waittt = TweenInfo.new(0.3 * 1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  633. local waitt = tweenService:Create(pppp, waittt, gg)
  634. waitt:Play()
  635. waitt.Completed:Wait()
  636. lr = not lr
  637. end)()
  638. local gg = {}
  639. gg.CFrame = CFrame.new()
  640. local waittt = TweenInfo.new(0.15 * 1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  641. local waitt = tweenService:Create(pppp, waittt, gg)
  642. waitt:Play()
  643. waitt.Completed:Wait()
  644. t:Play()
  645. local gg = {}
  646. gg.CFrame = CFrame.new()
  647. local waittt = TweenInfo.new(0.15 * 1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  648. local waitt = tweenService:Create(pppp, waittt, gg)
  649. waitt:Play()
  650. waitt.Completed:Wait()
  651. game:GetService("Debris"):AddItem(muzzle,0.3)
  652. elseif thepew and shotcount == 24 and not reload then
  653. reload = true
  654. tween:Play()
  655. tween4:Play()
  656. twee:Play()
  657. end
  658. end
  659. end)()
Add Comment
Please, Sign In to add comment