Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local plr = game.Players.LocalPlayer
- local char = plr.Character or plr.CharacterAdded:Wait()
- for _, npc in pairs(game.Workspace.NPCs:GetChildren()) do
- local tool = char:FindFirstChild("ToolName") or plr.Backpack:FindFirstChild("ToolName")
- if tool and npc:FindFirstChild("HumanoidRootPart") then
- tool.Parent = char
- tool:Activate()
- npc.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 0, -5)
- end
- end
- wait(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement