View difference between Paste ID: Z8QsxgYk and 3kkc2JT8
SHOW: | | - or go back to the newest paste.
1
Tool = Instance.new("Tool")
2
Part = Instance.new("Part")
3
Part.Name = "Handle"
4-
local function touch(part)
4+
Tool.Name = "Photograph"
5-
local s, f = pcall(function()
5+
Part.Parent = Tool
6-
for i,v in pairs(owner.Character:GetDescendants()) do
6+
Part.Size = Vector3.new(5,5,5)
7-
if v:IsA("BasePart") then
7+
Tool.Parent = owner.Character
8-
if v.Name ~= owner.Character then
8+
Part.BottomSurface = Enum.SurfaceType.Smooth
9
Part.TopSurface = Enum.SurfaceType.Smooth
10
Tool.GripPos = Vector3.new(0,0,2.5)
11
local GLUUUUUUUUE = Instance.new("Sound", owner.character.Head)
12
GLUUUUUUUUE.SoundId = "rbxassetid://7056720271"
13-
weld.Part0 = v
13+
14
function touch(part)
15
if part.Name ~= owner.Character then
16-
wait(0.1)
16+
17-
part.Parent = owner.Character
17+
18
local weld = Instance.new("WeldConstraint")
19
weld.Parent = workspace
20
weld.Part0 = Part
21
weld.Part1 = part
22-
end)
22+
23
end
24-
while true do
24+
25-
task.wait()
25+
26-
for i,v in pairs(owner.Character:GetDescendants()) do
26+
Part.Touched:Connect(touch)