Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:service("Players").LocalPlayer
- local userinputservice = game:service("UserInputService")
- local zombies = workspace.Characters.Zombies
- _G.distance = 4.5
- userinputservice.InputBegan:connect(function(inp)
- if inp.KeyCode == Enum.KeyCode.T then
- while wait() do
- for _,v in next, zombies:GetChildren() do
- v.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.X,plr.Character.HumanoidRootPart.CFrame.Y,plr.Character.HumanoidRootPart.CFrame.Z - _G.distance)
- v.HumanoidRootPart.Anchored = true
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment