Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- mouse.Button1Down:Connect(function()
- if mouse.Target.Parent:FindFirstChild("Humanoid") then
- local tag = Instance.new("StringValue",mouse.Target.Parent)
- tag.Name = "GetDrag"
- while true do
- for _,v in pairs (tag.Parent:GetChildren()) do
- if mouse.Target ~= v then
- tag.Parent:moveTo(mouse.Hit.p)
- end
- if v:IsA("Part") then
- v.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Character.Name then
- hit:Destroy()
- end
- end)
- end
- end
- wait(0.01)
- end
- end
- end)
- mouse.KeyDown:Connect(function(key)
- if key == "r" then
- print("Script Deleted")
- script:Destroy()
- end
- end)
Add Comment
Please, Sign In to add comment