Advertisement
TheUnknownDiscord

ray cats sord?/1/1!11!1

Mar 12th, 2022 (edited)
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.38 KB | None | 0 0
  1. tool = Instance.new("Tool",owner.Backpack)
  2. part = Instance.new("Part",tool)
  3. part.Name = "Handle"
  4. local billboard = Instance.new("BillboardGui", owner.Character.Head)
  5. billboard.StudsOffset = Vector3.new(0, 3.5, 0)
  6. billboard.Size = UDim2.new(6,0,1.5,0)
  7. billboard.Enabled = false
  8. cloakmeter = Instance.new("Frame",billboard)
  9. cloakmeter.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  10. cloakmeter.Size = UDim2.new(1,0,1,0)
  11. cloakmeter.AnchorPoint = Vector2.new(0.5, 0)
  12. cloakmeter.Position = UDim2.new(0.5, 0, 0, 0)
  13. cloakmeter.Active = true
  14. cloakmeter2 = Instance.new("Frame",cloakmeter)
  15. cloakmeter2.Size = UDim2.new(1,0,1,0)
  16. cloakmeter2.BackgroundColor3 = Color3.fromRGB(235, 146, 52)
  17. local tl = Instance.new("TextBox", cloakmeter)
  18. tl.Size = UDim2.new(1, 0, 1, 0)
  19. tl.BackgroundTransparency = 1
  20. tl.Text = "Stun Locked"
  21. tl.TextSize = 25
  22. tl.TextColor3 = Color3.new(0.75, 0.75, 0.75)
  23. tl.TextEditable = false
  24. local round = Instance.new("UICorner",cloakmeter)
  25. round.CornerRadius = UDim.new(0.95)
  26. local round2 = Instance.new("UICorner",cloakmeter2)
  27. round2.CornerRadius = UDim.new(0.95)
  28. local musictable = {"9091902925","9091904058"}
  29. local swong = Instance.new("Sound")
  30. swong.SoundId = "rbxassetid://"..musictable[math.random(1,#musictable)]
  31. swong.Volume = 8
  32. swong.PlayOnRemove = true
  33. local tweenService = game:GetService("TweenService")
  34. local timeToFade = 0.0825
  35. local object = tool
  36. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
  37. local goal3 = {}
  38. goal3.Grip = CFrame.Angles(0,math.rad(90),math.rad(0)) * CFrame.Angles(math.rad(90),0,math.rad(10)) * CFrame.new(1.5,-0.5,0)
  39. local tween3 = tweenService:Create(object, tweenInfo, goal3)
  40. blocking = false
  41. local blockdb = false
  42. local stunlocked = false
  43. local hitcount = 0
  44. local unstuntime = 20
  45. local lastmovedir = Vector3.new(0,0,0)
  46. local active2 = false
  47. local trail = Instance.new("Trail",part)
  48. Mesh = Instance.new("SpecialMesh")
  49. Mesh.Parent = part
  50. Mesh.MeshId = "http://www.roblox.com/asset/?id=12221720"
  51. Mesh.TextureId = "http://www.roblox.com/asset/?id=12224218"
  52. Mesh.Scale = Vector3.new(1, 1, 1)
  53. part.Size = Vector3.new(0.25,4,0.25)
  54. tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) * CFrame.new(0,-1.75,0)
  55. local lastcfs = {}
  56. local parts = {}
  57. rayblacklist = {}
  58. part2 = Instance.new("Part",part)
  59. part2.Transparency = 1
  60. part2.CanCollide = false
  61. part2.Size = Vector3.new(0.25,0.25,0.25)
  62. local weld = Instance.new("Weld",part)
  63. weld.Part0 = part2
  64. weld.Part1 = part
  65. weld.C0 = CFrame.new(0,0,-1.85)
  66. part3 = Instance.new("Part",part)
  67. part3.Transparency = 1
  68. part3.CanCollide = false
  69. part3.Size = Vector3.new(0.25,0.25,0.25)
  70. local weld2 = Instance.new("Weld",part)
  71. weld2.Part0 = part3
  72. weld2.Part1 = part
  73. weld2.C0 = CFrame.new(0,0,-1.425)
  74. part4 = Instance.new("Part",part)
  75. part4.Transparency = 1
  76. part4.CanCollide = false
  77. part4.Size = Vector3.new(0.25,0.25,0.25)
  78. local weld3 = Instance.new("Weld",part)
  79. weld3.Part0 = part4
  80. weld3.Part1 = part
  81. weld3.C0 = CFrame.new(0,0,-0.925)
  82. part5 = Instance.new("Part",part)
  83. part5.Transparency = 1
  84. part5.CanCollide = false
  85. part5.Size = Vector3.new(0.25,0.25,0.25)
  86. local weld4 = Instance.new("Weld",part)
  87. weld4.Part0 = part5
  88. weld4.Part1 = part
  89. weld4.C0 = CFrame.new(0,0,-0.4625)
  90. table.insert(parts,part2)
  91. table.insert(parts,part3)
  92. table.insert(parts,part)
  93. table.insert(parts,part4)
  94. table.insert(parts,part5)
  95. table.insert(lastcfs,part2.Position)
  96. table.insert(lastcfs,part3.Position)
  97. table.insert(lastcfs,part.Position)
  98. table.insert(lastcfs,part4.Position)
  99. table.insert(lastcfs,part5.Position)
  100. local attach1 = Instance.new("Attachment", part2)
  101. local attach2 = Instance.new("Attachment", part)
  102. attach1.CFrame = CFrame.new(0,0,0.5)
  103. trail.Attachment0 = attach1
  104. trail.Attachment1 = attach2
  105. trail.LightInfluence = 1
  106. trail.Transparency = NumberSequence.new(0.8125,1)
  107. trail.Lifetime = 0.15
  108. local goal = {}
  109. goal.Grip = CFrame.Angles(0,math.rad(180),math.rad(90)) * CFrame.new(0,0,2)
  110. local tween = tweenService:Create(object, tweenInfo, goal)
  111. local goal2 = {}
  112. goal2.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) * CFrame.new(0,-1.75,0)
  113. local active = false
  114. local tween2 = tweenService:Create(object, tweenInfo, goal2)
  115. function stunlock()
  116. tween2:Play()
  117. tool.Parent = owner.Backpack
  118. owner.Character.Humanoid.WalkSpeed = 0.0125
  119. owner.Character.Humanoid.AutoRotate = false
  120. owner.Character.Humanoid.JumpPower = 0
  121. unstuntime = math.clamp(unstuntime + 1.25,-20,20)
  122. if owner.Character.Humanoid.MoveDirection ~= lastmovedir then
  123. lastmovedir = owner.Character.Humanoid.MoveDirection
  124. unstuntime -= 2
  125. end
  126. local goal = {}
  127. goal.Size = UDim2.new(unstuntime/20,0,1,0)
  128. local tween = tweenService:Create(cloakmeter2, tweenInfo, goal)
  129. tween:Play()
  130. round2.CornerRadius = UDim.new((20/unstuntime) - 0.125)
  131. if unstuntime <= 0 then
  132. stunlocked = false
  133. owner.Character.Humanoid.WalkSpeed = 16
  134. owner.Character.Humanoid.AutoRotate = true
  135. owner.Character.Humanoid.JumpPower = 50
  136. billboard.Enabled = false
  137. else
  138. wait(0.0625)
  139. stunlock()
  140. end
  141. end
  142. local curhealth = owner.Character.Humanoid.Health
  143. owner.Character.Humanoid.HealthChanged:Connect(function(newHealth)
  144. if blocking and not stunlocked then
  145. if curhealth > newHealth and not blockdb then
  146. hitcount += 1
  147. local lasthit = hitcount
  148. delay(0.5, function()
  149. if lasthit ~= hitcount then
  150. if hitcount > 4 then
  151. hitcount = 0
  152. lasthit = 0
  153. billboard.Enabled = true
  154. stunlocked = true
  155. unstuntime = 20
  156. blocking = false
  157. stunlock()
  158. end
  159. end
  160. end)
  161. blockdb = true
  162. owner.Character.Humanoid.Health += (curhealth - newHealth) * 0.75
  163. curhealth = owner.Character.Humanoid.Health
  164. swong.SoundId = "rbxassetid://9091957400"
  165. swong.Parent = part
  166. swong.Parent = nil
  167. coroutine.wrap(function()
  168. for i = 1, 6 do
  169. wait()
  170. local Flame3 = Instance.new("SpawnLocation", script)
  171. Flame3.Size = Vector3.new(0.35,0.35,0.35)
  172. Flame3.Neutral = false
  173. Flame3.Enabled = false
  174. Flame3.CFrame = part.CFrame
  175. Flame3.CanCollide = false
  176. Flame3.Color = Color3.fromRGB(227, 220, 7)
  177. Flame3.Material = "Neon"
  178. Flame3.Anchored = true
  179. Flame3.Name = "Flameslol"
  180. game:GetService("Debris"):AddItem(Flame3,0.5)
  181. local timeToFade6 = 0.5
  182. local object6 = Flame3
  183. local tweenInfo6 = TweenInfo.new(timeToFade6)
  184. local goal8 = {}
  185. goal8.CFrame = Flame3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  186. goal8.Size = Vector3.new()
  187. goal8.Color = Color3.fromRGB(250, 242, 7)
  188. local tween8 = tweenService:Create(object6, tweenInfo6, goal8)
  189. tween8:Play()
  190. end
  191. end)()
  192. coroutine.wrap(function()
  193. wait(0.125)
  194. blockdb = false
  195. end)()
  196. else
  197. curhealth = newHealth
  198. end
  199. end
  200. end)
  201. local e = Instance.new("RemoteEvent",tool)
  202. e.OnServerEvent:Connect(function(_,action)
  203. if action == "block" and not stunlocked then
  204. blocking = true
  205. tween3:Play()
  206. elseif action == "stop" then
  207. blocking = false
  208. tween2:Play()
  209. end
  210. end)
  211. tool.Activated:Connect(function()
  212. if not blocking then
  213. if not stunlocked then
  214. if not active2 then
  215. tween:Play()
  216. swong.SoundId = "rbxassetid://"..musictable[math.random(1,#musictable)]
  217. swong.Parent = part
  218. swong.Parent = nil
  219. active = true
  220. active2 = true
  221. end
  222. end
  223. end
  224. end)
  225. tween.Completed:Connect(function()
  226. repeat
  227. wait()
  228. until owner.Character.Humanoid.FloorMaterial ~= Enum.Material.Air
  229. wait(0.0625)
  230. tween2:Play()
  231. active = false
  232. end)
  233. tween2.Completed:Connect(function()
  234. active2 = false
  235. end)
  236. local donthit = {owner.Character.Humanoid}
  237. NLS([[
  238. local e = script.Parent
  239. mouse = owner:GetMouse()
  240. mouse.KeyDown:Connect(function(key)
  241. key = key:lower()
  242. if key == "q" then
  243. e:FireServer("block")
  244. end
  245. end)
  246. mouse.KeyUp:Connect(function(key)
  247. key = key:lower()
  248. if key == "q" then
  249. e:FireServer("stop")
  250. end
  251. end)
  252. ]],e)
  253. print("q = blocc")
  254. print("if hit 4+ times in a row u get stun locked spam ur wasd like hell to get out of it")
  255. while wait(0.0125) do
  256. if active then
  257. for i,v in pairs(lastcfs) do
  258. coroutine.wrap(function()
  259. local params = RaycastParams.new()
  260. params.FilterDescendantsInstances = {rayblacklist}
  261. params.FilterType = Enum.RaycastFilterType.Blacklist
  262. local result = workspace:Raycast(v, parts[i].Position - v, params)
  263. if result then
  264. local hum = result.Instance.Parent:FindFirstChildWhichIsA("Humanoid") or result.Instance.Parent.Parent:FindFirstChildWhichIsA("Humanoid")
  265. if hum and not table.find(donthit,hum) then
  266. table.insert(donthit,hum)
  267. hum.Health -= 22
  268. end
  269. end
  270. lastcfs[i] = parts[i].Position
  271. end)()
  272. end
  273. donthit = {owner.Character.Humanoid}
  274. end
  275. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement