Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- mouse = player:GetMouse()
- rotationtarget = nil
- targetposition = nil
- function click()
- if mouse.Target ~= nil then
- if mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
- if mouse.Target.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
- rotationtarget = mouse.Target.Parent.HumanoidRootPart
- targetposition = mouse.Target.Parent.HumanoidRootPart.CFrame + Vector3.new(0, 5, 0)
- --local p = Instance.new("BodyPosition")
- --p.Parent = mouse.Target.Parent.HumanoidRootPart
- --p.Position = mouse.Target.Parent.HumanoidRootPart.Position + Vector3.new(0, 50, 0)
- --p.MaxForce = Vector3.new(100000, 100000, 100000)
- --p.P = 100000
- end
- end
- end
- end
- mouse.Button1Down:Connect(click)
- while true do
- print(rotationtarget)
- wait(0.25)
- if rotationtarget ~= nil then
- print(2)
- rotationtarget.Orientation = Vector3.new(math.random(1, 360), math.random(1, 360), math.random(1,360))
- rotationtarget.Position = targetposition
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement