Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print[[
- click = attack
- hold ctrl = run
- double jump = high jump
- q = eat near person
- ]]
- plr = game.Players.LocalPlayer char = plr.Character mouse = plr:GetMouse()
- id = char.Head.face.Texture
- attacking = false
- enabled = false
- faces = {0}
- speed = 5
- speed2 = 10
- tool = Instance.new('HopperBin',plr.Backpack) tool.Name = 'Tendril'
- tool.Selected:connect(function() char.Head.face.Texture = 'rbxassetid://417365650' enabled = true end)
- tool.Deselected:connect(function() char.Head.face.Texture = id enabled = false char.Humanoid.WalkSpeed = 16 end)
- mouse.KeyDown:connect(function(key)
- if key == '2' and enabled then
- char.Humanoid.WalkSpeed = 150
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == '2' then
- char.Humanoid.WalkSpeed = 16
- end
- end)
- eat = Instance.new('Sound',char.Head) eat.SoundId = 'rbxassetid://422622480'
- function blood(a)
- for i=1,3,1 do
- local b = Instance.new('Part',workspace)
- b.Material = 'SmoothPlastic' b.BrickColor = BrickColor.new('Crimson')
- b.Size = Vector3.new(.3,.3,.3)
- b.CFrame = a.CFrame
- local done = false game:GetService'RunService'.Stepped:connect(function() if done == false then done = true
- wait(1)
- b:Destroy()
- end end)
- wait()
- end
- end
- function asd()
- for i=1,1,1 do
- local done = false game:GetService'RunService'.Stepped:connect(function() if done == false then done = true
- local target = mouse.hit * CFrame.new(math.random(-4,4),math.random(-4,4),math.random(-4,4))
- local parts = {}
- local cf = char.Torso.CFrame * CFrame.new(0,-.3,0) * CFrame.Angles(0,math.rad(faces[i]),0)
- local count = 0
- local prev = char.Torso.CFrame * CFrame.new(0,-.3,0)
- char.Torso.Anchored = true
- repeat
- if #parts % speed == 0 then wait() end
- count = count + 1
- local a = Instance.new('Part',script) a.Anchored = true
- a.Material = 'Pebble' a.BrickColor = BrickColor.new'Crimson'
- prev = cf
- cf = cf:lerp(CFrame.new(cf.p,target.p) * CFrame.Angles(0,math.rad(180),0),.5) * CFrame.new(0,0,10)
- local magnitude = (cf.p - prev.p).magnitude
- a.Size = Vector3.new(1,1,magnitude)
- a.CFrame = CFrame.new((prev * CFrame.new(math.random(-0,0),math.random(-0,0),0)).p,cf.p) * CFrame.new(0,0,-magnitude / 2)
- table.insert(parts,a)
- local sound = Instance.new('Sound',a) sound.SoundId = 'rbxassetid://314390675'
- local descendants = {}
- local function getdescendants(instance)
- for _, child in ipairs(instance:GetChildren()) do
- table.insert(descendants, child)
- getdescendants(child)
- end
- end
- getdescendants(workspace)
- for i=1,#descendants,1 do
- local b = descendants[i]
- if b.Name == 'Torso' and b:IsDescendantOf(char) == false then
- if (b.Position - a.Position).magnitude < 10 then
- b.Parent.Humanoid.Health = b.Parent.Humanoid.Health - 2 sound:Play()
- char.Humanoid.Health = char.Humanoid.Health + 5
- end
- end
- end
- until count > 50 --[[or (cf.p - target.p).magnitude < 5]]-- or attacking == false
- for i=#parts,1,-1 do
- if i % speed2 == 0 then wait() end
- parts[i]:Destroy()
- end
- enabled = true
- attacking = false
- if #script:GetChildren() == 0 then
- char.Torso.Anchored = false
- end
- end end)
- end
- end
- mouse.Button1Down:connect(function()
- if enabled == true then
- if attacking == false then
- asd()
- end
- end
- end)
- dj = false
- eating = false
- mouse.KeyDown:connect(function(key)
- if enabled == true and key == 'q' and eating == false then
- local target = mouse.Target
- if target then
- if target.Parent:FindFirstChild('Humanoid') and (target.Position - char.Torso.Position).magnitude < 5 and not target:IsDescendantOf(char) then
- if target.Name ~= 'Torso' and target.Name ~= 'Head' then
- target:BreakJoints()
- end
- eating = true
- wait()
- target.CanCollide = false
- local weld = Instance.new('Weld',target)
- weld.Part0 = char.Head weld.Part1 = target
- weld.C0 = CFrame.new(0,0,-1.5)
- char.Humanoid.Health = char.Humanoid.Health + 16
- blood(target)
- eat:Play()
- target.Parent.Humanoid.Health = target.Parent.Humanoid.Health - 16
- wait(.3)
- weld:Destroy()
- eating = false
- if target.Name ~= 'Torso' and target.Name ~= 'Head' then
- target:Destroy()
- end
- if target.Parent.Humanoid.Health == 0 then
- target:Destroy()
- end
- end
- end
- end
- if enabled == true and key == ' ' and char.Torso.Velocity.Y > -150 then
- if dj == true then
- char.Torso.Velocity = char.Torso.Velocity + Vector3.new(0,300,0)
- end
- dj = true
- wait(.5)
- dj = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement