Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local billboard = Instance.new("ScreenGui", owner.PlayerGui)
- cloakmeter = Instance.new("Frame",billboard)
- cloakmeter.BackgroundColor3 = Color3.fromRGB(100,100,200)
- cloakmeter.Size = UDim2.new(0.25,0,0.0625,0)
- cloakmeter.AnchorPoint = Vector2.new(0.5, 0)
- cloakmeter.Position = UDim2.new(0.5, 0, 0, 0)
- cloakmeter.Active = true
- cloakmeter.BackgroundTransparency = 0
- cloakmeter2 = Instance.new("Frame",cloakmeter)
- cloakmeter2.Size = UDim2.new(1,0,1,0)
- cloakmeter2.BackgroundColor3 = Color3.fromRGB(0,0,200)
- Tool = Instance.new("Tool")
- Cloak = Instance.new("Tool")
- Sapper = Instance.new("Tool")
- Tool.Name = "ButterFly Knife"
- Cloak.Name = "Cloak"
- Sapper.Name = "Sapper lol"
- Knife = Instance.new("Part")
- sapperlmao = Instance.new("Part")
- sapperlmao.Name = "Handle"
- sapperlmao.CFrame = CFrame.Angles(0, math.rad(180), 0)
- sapperlmao.Parent = Sapper
- Sapper.Grip = CFrame.new(0.75,0,0)
- Inviswatch = Instance.new("Part")
- Inviswatch.Name = "Handle"
- Inviswatch.Parent = Cloak
- Inviswatch.Size = Vector3.new(1.0625,1.0625,0.75)
- Cloak.GripPos = Vector3.new(0,0,-0.5)
- Knife.Name = "Handle"
- Knife.Parent = Tool
- Cloak.Parent = workspace.Lucas_YT111
- Tool.Parent = workspace.Lucas_YT111
- Sapper.Parent = workspace.Lucas_YT111
- Tool.GripPos = Vector3.new(0,-0.5,0.25)
- Mesh = Instance.new("SpecialMesh")
- Knife.Size = Vector3.new(1, 2, 1)
- Mesh.Parent = Knife
- Mesh.MeshId = "http://www.roblox.com/asset/?id=531813581"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=531813594"
- Mesh.Scale = Vector3.new(0.35, 0.35, 0.35)
- myhum = owner.Character.Humanoid
- local cloaked = Instance.new("Sound", owner.character.Head)
- cloaked.SoundId = "rbxassetid://195575792"
- local stab = Instance.new("Sound", owner.character.Head)
- stab.SoundId = "rbxassetid://6405267300"
- stab.Volume = 1.5
- cloaked.Volume = 1.5
- local death = Instance.new("Sound", owner.character.Head)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = sapperlmao
- Mesh.MeshId = "http://www.roblox.com/asset/?id=450814674"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=450814682"
- local tased = Instance.new("Sound", owner.character.Head)
- tased.SoundId = "rbxassetid://82273261"
- tased.Volume = 1.5
- candamage = false
- toolout = false
- Tool.Activated:connect(function()
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Slash"
- Anim.Parent = Tool
- candamage = true
- wait(0.5)
- candamage = false
- end)
- local isTouched = false
- local function damagePlayer(otherPart)
- if candamage then
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- local headdude = partParent:findFirstChild("HumanoidRootPart") or partParent:findFirstChild("Head")
- if humanoid ~= "myhum" and humanoid then
- if not isTouched then
- isTouched = true
- coroutine.wrap(function()
- wait(0.65)
- isTouched = false
- end)()
- local ObjectSpace = headdude.CFrame:inverse() * owner.Character.Head.CFrame
- if ObjectSpace.Z > 0.35 or ObjectSpace.Z > -0.35 then
- stab.SoundId = "rbxassetid://6405267300"
- stab:Play()
- humanoid.Health = 0
- humanoid.BreakJointsOnDeath = false
- coroutine.wrap(function()
- local billboard = Instance.new("BillboardGui", headdude)
- billboard.Adornee = headdude
- billboard.StudsOffset = Vector3.new(-1, 2.5, 0)
- billboard.Size = UDim2.new(2,0,2,0)
- billboard.Name = "gaming"
- local frame = Instance.new("ImageLabel", billboard)
- frame.BackgroundTransparency = 1
- frame.Image = "http://www.roblox.com/asset/?id=283011882"
- frame.Size = billboard.Size
- local deathrandom = math.random(1,4)
- if deathrandom == 1 then
- death.SoundId = "rbxassetid://1080611063"
- death.Volume = 2
- death:Play()
- elseif deathrandom == 2 then
- death.SoundId = "rbxassetid://565424468"
- death.Volume = 2
- death:Play()
- elseif deathrandom == 3 then
- death.SoundId = "rbxassetid://1080625252"
- death.Volume = 2
- death:Play()
- end
- wait(1.5)
- billboard:Destroy()
- end)()
- else
- humanoid.Health = humanoid.Health - 40
- stab.SoundId = "rbxassetid://7122602098"
- stab:Play()
- end
- end
- end
- end
- end
- local time = 1
- Knife.Touched:Connect(damagePlayer)
- recharge = true
- Cloak.Unequipped:Connect(function()
- recharge = true
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("BasePart") or v:IsA("Decal") then
- if v.Name ~= "HumanoidRootPart" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.5
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Transparency = 0
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- owner.Character.HumanoidRootPart.Transparency = 1
- cloaked:Play()
- toolout = false
- end
- end
- end
- end)
- Cloak.Equipped:Connect(function()
- if time ~= 0 then
- recharge = false
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("BasePart") or v:IsA("Decal") then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.5
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Transparency = 1
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- cloaked:Play()
- toolout = true
- end
- end
- end
- end)
- Tool.Equipped:Connect(function()
- toolout = true
- end)
- Tool.Unequipped:Connect(function()
- toolout = false
- end)
- sapped = false
- Sapper.Activated:connect(function()
- sapped = true
- wait(3)
- sapped = false
- end)
- local issapped = false
- local function hahasapped(otherPart)
- if sapped then
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if humanoid ~= "myhum" and humanoid then
- if not issapped then
- issapped = true
- tased:Play()
- humanoid.PlatformStand = true
- wait(3)
- humanoid.PlatformStand = false
- wait(0.5)
- issapped = false
- end
- end
- end
- end
- sapperlmao.Touched:Connect(hahasapped)
- Sapper.Equipped:Connect(function()
- toolout = true
- end)
- Sapper.Unequipped:Connect(function()
- toolout = false
- end)
- coroutine.wrap(function()
- while true do
- task.wait()
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.5
- local object = cloakmeter2
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Size = UDim2.new(time,0,1,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- if recharge then
- wait(1.75)
- if owner.Character.Humanoid.MoveDirection ~= Vector3.new() then
- time = math.clamp(time + .05,0,1)
- else
- time = math.clamp(time + .1,0,1)
- end
- elseif not recharge then
- wait(1)
- if owner.Character.Humanoid.MoveDirection ~= Vector3.new() then
- time = math.clamp(time - .05,0,1)
- else
- time = math.clamp(time - .025,0,1)
- end
- if time == 0 then
- wait(1.5)
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("BasePart") or v:IsA("Decal") then
- if v.Name ~= "HumanoidRootPart" then
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.5
- local object = v
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Transparency = 0
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- owner.Character.HumanoidRootPart.Transparency = 1
- end
- end
- end
- cloaked:Play()
- toolout = false
- recharge = true
- end
- end
- end
- end)()
- function CreateRegion3FromLocAndSize(Position, Size)
- local SizeOffset = Size / 2
- local Point1 = Position - SizeOffset
- local Point2 = Position + SizeOffset
- return Region3.new(Point1, Point2)
- end
- game:GetService("RunService").Heartbeat:Connect(function()
- pcall(function()
- for i,v in pairs(workspace:GetDescendants()) do
- if v:IsA("Model") and v ~= owner.Character then
- local headdude = v:findFirstChild("HumanoidRootPart") or v:findFirstChild("Head")
- if headdude then
- local hum = v:findFirstChild("Humanoid")
- if hum then
- if hum.Health ~= 0 then
- local ObjectSpace = headdude.CFrame:inverse() * owner.Character.Head.CFrame
- if ObjectSpace.Z > 0.35 or ObjectSpace.Z > -0.35 then
- if (owner.Character.Head.CFrame.Position - headdude.CFrame.Position).magnitude <= 6 then
- Tool.Grip = CFrame.Angles(math.rad(180),0,0)
- Tool.GripPos = Vector3.new(0,-0.5,-0.25)
- else
- Tool.Grip = CFrame.Angles(math.rad(0),0,0)
- Tool.GripPos = Vector3.new(0,-0.5,0.25)
- end
- end
- elseif (owner.Character.Head.CFrame.Position - headdude.CFrame.Position).magnitude >= 6 then
- Tool.Grip = CFrame.Angles(math.rad(0),0,0)
- Tool.GripPos = Vector3.new(0,-0.5,0.25)
- end
- end
- end
- end
- end
- end)
- end)
Add Comment
Please, Sign In to add comment