View difference between Paste ID: 2jHnYpPL and TdmgpqVv
SHOW: | | - or go back to the newest paste.
1
Tool = Instance.new("Tool")
2
Tool.Name = "Sword"
3
Knife = Instance.new("Part")
4
Knife.Name = "Handle"
5
Knife.Parent = Tool
6-
Tool.Parent = workspace.Lucas_YT111 
6+
Tool.Parent = owner.Character
7
Knife.Size = Vector3.new(1, 1, 1)
8
Knife.Massless = true
9
Knife.CanCollide = true
10
myhum = owner.Character.Humanoid
11
local stab = Instance.new("Sound", owner.character.Head)
12
stab.SoundId = "rbxassetid://199607491"
13
stab.Volume = 0.5
14
islunging = false
15
Tool.Activated:connect(function()
16
islunging = true
17
stab.PlaybackSpeed = math.random(80, 125)/100
18
stab:Stop()
19
stab:Play()
20
    local Anim = Instance.new("StringValue")
21
    Anim.Name = "toolanim"
22
    Anim.Value = "Lunge"
23
    Anim.Parent = Tool
24
wait(0.5)
25
islunging = false
26
end)
27-
part = Instance.new("Part",game.Workspace)
27+
28-
part.Anchored = true
28+
function thinghere(plr,action,hit,target)
29-
part.CFrame = CFrame.new(0,1000,0)
29+
30-
part.Size = Vector3.new(0.05,0.05,0.05)
30+
31-
part.Transparency = 1
31+
32
else
33-
function thinghere(plr,action,hit, target)
33+
34
roped = true
35
  local attachment0 = Instance.new("Attachment")
36
                attachment0.Parent = hit
37
                local attachment1 = Instance.new("Attachment")
38
                attachment1.Parent = Knife
39-
part.Anchored = true
39+
                alignposition = Instance.new("AlignPosition")
40
                alignposition.Parent = Knife
41-
part.CFrame = hit
41+
42
                alignposition.Attachment1 = attachment1
43-
                attachment0.Parent = part
43+
alignposition.RigidityEnabled = true
44
attachment0.WorldCFrame = target
45
end
46-
                alignposition = Instance.new("RopeConstraint")
46+
47
end
48
local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
49
on = false
50-
alignposition.Visible = true
50+
function onoff()
51-
local distance = (owner.Character.Torso.CFrame.Position - part.CFrame.Position).magnitude - 1
51+
if not on then
52-
alignposition.Length = distance
52+
on = true
53-
alignposition.Thickness = 0.25
53+
elseif on then
54-
alignposition.Restitution = 0.25
54+
on = false
55-
local weld = Instance.new("WeldConstraint") 
55+
56-
weld.Part0 = target
56+
57-
weld.Part1 = part
57+
58-
weld.Parent = part
58+
59
        if Mouse.Hit ~= nil then
60
        target = Mouse.Target
61
        onoff()
62
        E:FireServer("Down",Mouse.Target, Mouse.Hit)
63-
count = 0
63+
        while on do
64
        task.wait()
65
        E:FireServer("Down", nil, Mouse.Hit) 
66
        end
67
        end
68-
        E:FireServer("Down",Mouse.Hit, target)
68+
69-
count = count + 1
69+
70-
if count == 1 then
70+
71-
owner.Character.Humanoid.PlatformStand = true
71+
72-
bodygyro = Instance.new('BodyGyro', owner.Character.HumanoidRootPart)
72+