Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tool = Instance.new("Tool")
- Tool.Name = "Sword"
- Knife = Instance.new("Part")
- Knife.Name = "Handle"
- Knife.Parent = Tool
- Tool.Parent = workspace.Lucas_YT111
- Knife.Size = Vector3.new(1, 1, 1)
- Knife.Massless = true
- Knife.CanCollide = true
- myhum = owner.Character.Humanoid
- local stab = Instance.new("Sound", owner.character.Head)
- stab.SoundId = "rbxassetid://199607491"
- stab.Volume = 0.5
- islunging = false
- Tool.Activated:connect(function()
- islunging = true
- stab.PlaybackSpeed = math.random(80, 125)/100
- stab:Stop()
- stab:Play()
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Lunge"
- Anim.Parent = Tool
- wait(0.5)
- islunging = false
- end)
- part = Instance.new("Part",game.Workspace)
- part.Anchored = true
- part.CFrame = CFrame.new(0,1000,0)
- part.Size = Vector3.new(0.05,0.05,0.05)
- part.Transparency = 1
- roped = false
- function thinghere(plr,action,hit, target)
- if roped then
- alignposition:Destroy()
- roped = false
- else
- if islunging then
- part.Anchored = true
- roped = true
- part.CFrame = hit
- local attachment0 = Instance.new("Attachment")
- attachment0.Parent = part
- local attachment1 = Instance.new("Attachment")
- attachment1.Parent = Knife
- alignposition = Instance.new("RopeConstraint")
- alignposition.Parent = Knife
- alignposition.Attachment0 = attachment0
- alignposition.Attachment1 = attachment1
- alignposition.Visible = true
- local distance = (owner.Character.Torso.CFrame.Position - part.CFrame.Position).magnitude - 1
- alignposition.Length = distance
- alignposition.Thickness = 0.25
- alignposition.Restitution = 0.25
- local weld = Instance.new("WeldConstraint")
- weld.Part0 = target
- weld.Part1 = part
- weld.Parent = part
- end
- end
- end
- local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
- count = 0
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Hit ~= nil then
- target = Mouse.Target
- E:FireServer("Down",Mouse.Hit, target)
- count = count + 1
- if count == 1 then
- owner.Character.Humanoid.PlatformStand = true
- bodygyro = Instance.new('BodyGyro', owner.Character.HumanoidRootPart)
- bodygyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bodygyro.P = 10000
- fly = Instance.new("BodyVelocity",owner.Character.HumanoidRootPart)
- fly.MaxForce = Vector3.new(0,0,0)
- coroutine.wrap(function()
- while count == 1 do
- task.wait()
- bodygyro.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position,owner.Character.HumanoidRootPart.CFrame.Position)
- if owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then
- fly.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- fly.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * math.huge
- elseif owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
- fly.MaxForce = Vector3.new(0,0,0)
- end
- end
- end)()
- elseif count == 2 then
- bodygyro:Destroy()
- fly:Destroy()
- owner.Character.Humanoid.PlatformStand = false
- count = 0
- end
- end
- end
- Mouse.Button1Down:Connect(ButtonDown)
- ]],owner.PlayerGui))
- E.OnServerEvent:Connect(thinghere)
Add Comment
Please, Sign In to add comment