Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tool = Instance.new("Tool",owner.Backpack)
- part = Instance.new("Part",tool)
- part.Name = "Handle"
- local billboard = Instance.new("BillboardGui", owner.Character.Head)
- billboard.StudsOffset = Vector3.new(0, 3.5, 0)
- billboard.Size = UDim2.new(6,0,1.5,0)
- billboard.Enabled = false
- cloakmeter = Instance.new("Frame",billboard)
- cloakmeter.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- cloakmeter.Size = UDim2.new(1,0,1,0)
- cloakmeter.AnchorPoint = Vector2.new(0.5, 0)
- cloakmeter.Position = UDim2.new(0.5, 0, 0, 0)
- cloakmeter.Active = true
- cloakmeter2 = Instance.new("Frame",cloakmeter)
- cloakmeter2.Size = UDim2.new(1,0,1,0)
- cloakmeter2.BackgroundColor3 = Color3.fromRGB(235, 146, 52)
- local tl = Instance.new("TextBox", cloakmeter)
- tl.Size = UDim2.new(1, 0, 1, 0)
- tl.BackgroundTransparency = 1
- tl.Text = "Stun Locked"
- tl.TextSize = 25
- tl.TextColor3 = Color3.new(0.75, 0.75, 0.75)
- tl.TextEditable = false
- local round = Instance.new("UICorner",cloakmeter)
- round.CornerRadius = UDim.new(0.95)
- local round2 = Instance.new("UICorner",cloakmeter2)
- round2.CornerRadius = UDim.new(0.95)
- local musictable = {"9091902925","9091904058"}
- local swong = Instance.new("Sound")
- swong.SoundId = "rbxassetid://"..musictable[math.random(1,#musictable)]
- swong.Volume = 8
- swong.PlayOnRemove = true
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.0825
- local object = tool
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal3 = {}
- 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)
- local tween3 = tweenService:Create(object, tweenInfo, goal3)
- blocking = false
- local blockdb = false
- local stunlocked = false
- local hitcount = 0
- local unstuntime = 20
- local lastmovedir = Vector3.new(0,0,0)
- local active2 = false
- local trail = Instance.new("Trail",part)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = part
- Mesh.MeshId = "http://www.roblox.com/asset/?id=12221720"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=12224218"
- Mesh.Scale = Vector3.new(1, 1, 1)
- part.Size = Vector3.new(0.25,4,0.25)
- tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) * CFrame.new(0,-1.75,0)
- local lastcfs = {}
- local parts = {}
- rayblacklist = {}
- part2 = Instance.new("Part",part)
- part2.Transparency = 1
- part2.CanCollide = false
- part2.Size = Vector3.new(0.25,0.25,0.25)
- local weld = Instance.new("Weld",part)
- weld.Part0 = part2
- weld.Part1 = part
- weld.C0 = CFrame.new(0,0,-1.85)
- part3 = Instance.new("Part",part)
- part3.Transparency = 1
- part3.CanCollide = false
- part3.Size = Vector3.new(0.25,0.25,0.25)
- local weld2 = Instance.new("Weld",part)
- weld2.Part0 = part3
- weld2.Part1 = part
- weld2.C0 = CFrame.new(0,0,-1.425)
- part4 = Instance.new("Part",part)
- part4.Transparency = 1
- part4.CanCollide = false
- part4.Size = Vector3.new(0.25,0.25,0.25)
- local weld3 = Instance.new("Weld",part)
- weld3.Part0 = part4
- weld3.Part1 = part
- weld3.C0 = CFrame.new(0,0,-0.925)
- part5 = Instance.new("Part",part)
- part5.Transparency = 1
- part5.CanCollide = false
- part5.Size = Vector3.new(0.25,0.25,0.25)
- local weld4 = Instance.new("Weld",part)
- weld4.Part0 = part5
- weld4.Part1 = part
- weld4.C0 = CFrame.new(0,0,-0.4625)
- table.insert(parts,part2)
- table.insert(parts,part3)
- table.insert(parts,part)
- table.insert(parts,part4)
- table.insert(parts,part5)
- table.insert(lastcfs,part2.Position)
- table.insert(lastcfs,part3.Position)
- table.insert(lastcfs,part.Position)
- table.insert(lastcfs,part4.Position)
- table.insert(lastcfs,part5.Position)
- local attach1 = Instance.new("Attachment", part2)
- local attach2 = Instance.new("Attachment", part)
- attach1.CFrame = CFrame.new(0,0,0.5)
- trail.Attachment0 = attach1
- trail.Attachment1 = attach2
- trail.LightInfluence = 1
- trail.Transparency = NumberSequence.new(0.8125,1)
- trail.Lifetime = 0.15
- local goal = {}
- goal.Grip = CFrame.Angles(0,math.rad(180),math.rad(90)) * CFrame.new(0,0,2)
- local tween = tweenService:Create(object, tweenInfo, goal)
- local goal2 = {}
- goal2.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) * CFrame.new(0,-1.75,0)
- local active = false
- local tween2 = tweenService:Create(object, tweenInfo, goal2)
- function stunlock()
- tween2:Play()
- tool.Parent = owner.Backpack
- owner.Character.Humanoid.WalkSpeed = 0.0125
- owner.Character.Humanoid.AutoRotate = false
- owner.Character.Humanoid.JumpPower = 0
- unstuntime = math.clamp(unstuntime + 1.25,-20,20)
- if owner.Character.Humanoid.MoveDirection ~= lastmovedir then
- lastmovedir = owner.Character.Humanoid.MoveDirection
- unstuntime -= 2
- end
- local goal = {}
- goal.Size = UDim2.new(unstuntime/20,0,1,0)
- local tween = tweenService:Create(cloakmeter2, tweenInfo, goal)
- tween:Play()
- round2.CornerRadius = UDim.new((20/unstuntime) - 0.125)
- if unstuntime <= 0 then
- stunlocked = false
- owner.Character.Humanoid.WalkSpeed = 16
- owner.Character.Humanoid.AutoRotate = true
- owner.Character.Humanoid.JumpPower = 50
- billboard.Enabled = false
- else
- wait(0.0625)
- stunlock()
- end
- end
- local curhealth = owner.Character.Humanoid.Health
- owner.Character.Humanoid.HealthChanged:Connect(function(newHealth)
- if blocking and not stunlocked then
- if curhealth > newHealth and not blockdb then
- hitcount += 1
- local lasthit = hitcount
- delay(0.5, function()
- if lasthit ~= hitcount then
- if hitcount > 4 then
- hitcount = 0
- lasthit = 0
- billboard.Enabled = true
- stunlocked = true
- unstuntime = 20
- blocking = false
- stunlock()
- end
- end
- end)
- blockdb = true
- owner.Character.Humanoid.Health += (curhealth - newHealth) * 0.75
- curhealth = owner.Character.Humanoid.Health
- swong.SoundId = "rbxassetid://9091957400"
- swong.Parent = part
- swong.Parent = nil
- coroutine.wrap(function()
- for i = 1, 6 do
- wait()
- local Flame3 = Instance.new("SpawnLocation", script)
- Flame3.Size = Vector3.new(0.35,0.35,0.35)
- Flame3.Neutral = false
- Flame3.Enabled = false
- Flame3.CFrame = part.CFrame
- Flame3.CanCollide = false
- Flame3.Color = Color3.fromRGB(227, 220, 7)
- Flame3.Material = "Neon"
- Flame3.Anchored = true
- Flame3.Name = "Flameslol"
- game:GetService("Debris"):AddItem(Flame3,0.5)
- local timeToFade6 = 0.5
- local object6 = Flame3
- local tweenInfo6 = TweenInfo.new(timeToFade6)
- local goal8 = {}
- 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)))
- goal8.Size = Vector3.new()
- goal8.Color = Color3.fromRGB(250, 242, 7)
- local tween8 = tweenService:Create(object6, tweenInfo6, goal8)
- tween8:Play()
- end
- end)()
- coroutine.wrap(function()
- wait(0.125)
- blockdb = false
- end)()
- else
- curhealth = newHealth
- end
- end
- end)
- local e = Instance.new("RemoteEvent",tool)
- e.OnServerEvent:Connect(function(_,action)
- if action == "block" and not stunlocked then
- blocking = true
- tween3:Play()
- elseif action == "stop" then
- blocking = false
- tween2:Play()
- end
- end)
- tool.Activated:Connect(function()
- if not blocking then
- if not stunlocked then
- if not active2 then
- tween:Play()
- swong.SoundId = "rbxassetid://"..musictable[math.random(1,#musictable)]
- swong.Parent = part
- swong.Parent = nil
- active = true
- active2 = true
- end
- end
- end
- end)
- tween.Completed:Connect(function()
- repeat
- wait()
- until owner.Character.Humanoid.FloorMaterial ~= Enum.Material.Air
- wait(0.0625)
- tween2:Play()
- active = false
- end)
- tween2.Completed:Connect(function()
- active2 = false
- end)
- local donthit = {owner.Character.Humanoid}
- NLS([[
- local e = script.Parent
- mouse = owner:GetMouse()
- mouse.KeyDown:Connect(function(key)
- key = key:lower()
- if key == "q" then
- e:FireServer("block")
- end
- end)
- mouse.KeyUp:Connect(function(key)
- key = key:lower()
- if key == "q" then
- e:FireServer("stop")
- end
- end)
- ]],e)
- print("q = blocc")
- print("if hit 4+ times in a row u get stun locked spam ur wasd like hell to get out of it")
- while wait(0.0125) do
- if active then
- for i,v in pairs(lastcfs) do
- coroutine.wrap(function()
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {rayblacklist}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local result = workspace:Raycast(v, parts[i].Position - v, params)
- if result then
- local hum = result.Instance.Parent:FindFirstChildWhichIsA("Humanoid") or result.Instance.Parent.Parent:FindFirstChildWhichIsA("Humanoid")
- if hum and not table.find(donthit,hum) then
- table.insert(donthit,hum)
- hum.Health -= 22
- end
- end
- lastcfs[i] = parts[i].Position
- end)()
- end
- donthit = {owner.Character.Humanoid}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement