View difference between Paste ID: ccBvKrVq and QSvNsues
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 
7-
Knife.Size = Vector3.new(4, 4, 1)
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://663369157"
12+
stab.SoundId = "rbxassetid://199607491"
13-
stab.Volume = 1
13+
stab.Volume = 0.5
14-
stab.Looped = true
14+
15
16
Tool.Activated:connect(function()
17
islunging = true
18
stab.PlaybackSpeed = math.random(80, 125)/100
19
stab:Stop()
20
stab:Play()
21
    local Anim = Instance.new("StringValue")
22
    Anim.Name = "toolanim"
23
    Anim.Value = "Lunge"
24
    Anim.Parent = Tool
25
wait(0.25)
26
islunging = false
27
wait(0.40)
28-
function thinghere(plr,action,part)
28+
29
30-
if part.Name ~= "Base" then
30+
function thinghere(plr,action,hit)
31-
if part.Name ~= "Lucas_YT111" then
31+
32
owner.Character.Torso.CFrame = hit
33-
part.Name = "Handle"
33+
34-
part.Parent = Tool
34+
35-
Tool.Parent = owner.Character
35+
36-
part.Anchored = false
36+
37
local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
38
        local Mouse = owner:GetMouse()
39
        function ButtonDown()
40
        if Mouse.Hit ~= nil then
41
        E:FireServer("Down",Mouse.Hit)
42
        end
43
        end
44
        Mouse.Button1Down:Connect(ButtonDown)
45
        ]],owner.PlayerGui))
46-
        if Mouse.Target ~= nil then
46+
E.OnServerEvent:Connect(thinghere)