Advertisement
Nosssa

UNIVERSAL Reveal Velocity

Dec 28th, 2022 (edited)
1,820
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 1 0
  1. --[[
  2.  
  3.     Created By Nosssa supports, all hood games!
  4.  
  5.     Roblox Group ( TeamNosss! ): https://www.roblox.com/groups/16003304/TeamNosss#!/about
  6.  
  7. --]]
  8.  
  9.  
  10. local Prediction = .18 -- Standard Prediction Value ( Don't recommend to change this since its accurate 95% )
  11.  
  12. local RunService = game:GetService("RunService")
  13. local PlayersService = game:GetService("Players")
  14. local LocalPlayer = PlayersService.LocalPlayer
  15. local Mouse = LocalPlayer:GetMouse()
  16.  
  17. Drawing = Drawing
  18.  
  19. local Square = Drawing.new("Circle")
  20. Square.Visible = true
  21. Square.Filled = true
  22. Square.Thickness = 1
  23. Square.Transparency = 1
  24. Square.Color = Color3.new(0.65, 0.65, 1)
  25. Square.Radius = 5
  26.  
  27. function ShowVelocityOf(User)
  28.     local Camera = game:GetService("Workspace").CurrentCamera
  29.     local Vector, OnScreen = Camera:WorldToViewportPoint(User.Character:FindFirstChild("HumanoidRootPart").Position + (User.Character:FindFirstChild("HumanoidRootPart").AssemblyLinearVelocity * Prediction))
  30.     if OnScreen then
  31.         Square.Radius = 5
  32.         Square.Position = Vector2.new(Vector.X,Vector.Y)
  33.     else
  34.         Square.Radius = 0
  35.     end
  36. end
  37.  
  38. local Stapel = nil
  39. Stapel = RunService.Heartbeat:Connect(function()
  40.     pcall(function()
  41.         ShowVelocityOf(LocalPlayer)
  42.     end)
  43. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement