Advertisement
AALTTz

23

Nov 23rd, 2022
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. -- Settings
  2. local Settings = {
  3. Target = ChosenVariable
  4. }
  5.  
  6. -- Objects
  7. local Players = game:GetService("Players")
  8. local RunService = game:GetService("RunService")
  9.  
  10. local LocalPlayer = Players.LocalPlayer
  11. local Target = Players:FindFirstChild(Settings.Target)
  12.  
  13. local BodyAngularVelocity = Instance.new("BodyAngularVelocity")
  14. BodyAngularVelocity.AngularVelocity = Vector3.new(10^6, 10^6, 10^6)
  15. BodyAngularVelocity.MaxTorque = Vector3.new(10^6, 10^6, 10^6)
  16. BodyAngularVelocity.P = 10^6
  17.  
  18. -- Start
  19. if not Target then return end
  20. BodyAngularVelocity.Parent = LocalPlayer.Character.HumanoidRootPart
  21.  
  22. while Target.Character.HumanoidRootPart and LocalPlayer.Character.HumanoidRootPart do
  23. RunService.RenderStepped:Wait()
  24. LocalPlayer.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame * LocalPlayer.Character.HumanoidRootPart.CFrame.Rotation
  25. LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new()
  26. end
  27.  
  28. BodyAngularVelocity.Parent = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement