View difference between Paste ID: 8EEJXu7N and 07zCkKyn
SHOW: | | - or go back to the newest paste.
1
Tool = Instance.new("Tool")
2
Tool.Name = "Gun"
3
Gun = Instance.new("Part")
4
Gun.Name = "Handle"
5
Gun.Parent = Tool
6-
Tool.Parent = owner.Character
6+
Tool.Parent = workspace.Lucas_YT111 
7
Gun.Size = Vector3.new(0.82325, 2.1545, 6.25)
8
Gun.Massless = true
9
Gun.CanCollide = true
10
local Pow = Instance.new("Sound", owner.character.Head)
11
Pow.SoundId = "rbxassetid://5339941902"
12
Pow.Volume = 1
13
islunging = false
14
Mesh = Instance.new("SpecialMesh")
15
Mesh.Parent = Gun
16
Mesh.MeshId = "http://www.roblox.com/asset/?id=868963093"
17
Mesh.TextureId = "http://www.roblox.com/asset/?id=868963099"
18
Mesh.Scale = Vector3.new(0.01, 0.01, 0.01)
19
toolout = false
20-
owner = nil
20+
21-
local E = Instance.new("RemoteEvent",Tool.Parent)
21+
22-
local gunlocal = [[ 
22+
23
end)
24-
local E = Tool.Parent:FindFirstChildWhichIsA("RemoteEvent")
24+
25-
        local Mouse = owner:GetMouse()
25+
26-
        function ButtonDown()
26+
27-
        if Mouse.Target ~= nil then
27+
28-
        E:FireServer("Down",Mouse.Target)
28+
29-
        end
29+
30-
        end
30+
31-
        Mouse.Button1Down:Connect(ButtonDown)
31+
NLS([[
32-
        ]]
32+
Mouse = owner:GetMouse()
33
Players = game:GetService("Players")
34-
pcall(function()
34+
35
Tool.Activated:connect(function(part)
36-
if game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent) ~= owner then
36+
if Mouse.Target ~= nil then
37-
owner = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
37+
local Model = Mouse.Target.Parent:FindFirstAncestorOfClass("Model")
38-
NLS(gunlocal,owner.PlayerGui)
38+
if Model then
39
local PC = Players:GetPlayerFromCharacter(Model)
40
if PC then
41
PC:Kick("Bru")
42
end
43
end
44
end
45
end)
46
        ]],owner.PlayerGui)
47-
Tool.Activated:connect(function()
47+
48-
islunging = true
48+