local sweep = script.Parent
sweep.Touched:connect(function(player)
local t = player.Parent.Torso
if player:IsA("Part") and player.Name == "Torso" then
local w = Instance.new("Weld")
w.Parent = sweep
w.Part0 = t
w.Part1 = sweep
w.C0 = t.CFrame:toObjectSpace(sweep.CFrame)
wait(5)
w:Destroy()
wait(2)
end
end)
I'm kind of new to this whole thing, but I'm not sure whether I'm using the CFrame wrong or I should use something different altogether.
What I want to do is make a sweeper that, when touched, grabs and holds the player at the point they touched it. Like if I touched it on the end of the sweeper, they would get stuck there.
Now, it instead moves the torso to the middle of the sweeper part. What do?
