SebTDZ

AP Test

Apr 10th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. -- Functions
  2. function AP(Char, M6Name, o1, o2, o3, p1, p2, p3)
  3.     local o = CFrame.fromOrientation(tonumber(o1), tonumber(o2), tonumber(o3))
  4.     local p = Vector3.new(tonumber(p1), tonumber(p2), tonumber(p3))
  5.     if Char:FindFirstChild("Torso") then
  6.         if Char.Torso:FindFirstChild(M6Name) then
  7.             Char.Torso:FindFirstChild(M6Name).C1 = o + p
  8.         end
  9.     end
  10. end
  11.  
  12. -- Run
  13. while true do
  14.     for i, Player in pairs(game.Players:GetChildren()) do
  15.         if game.Workspace:FindFirstChild(Player.Name) then
  16.             AP(game.Workspace:FindFirstChild(Player.Name), 'Left Hip', -2.5, 135, 0, 0, -0.5, 0)
  17.             AP(game.Workspace:FindFirstChild(Player.Name), 'Left Shoulder', -2.5, 135, 0, 0, -0.5, 0)
  18.             AP(game.Workspace:FindFirstChild(Player.Name), 'Right Shoulder', -2.5, 135, 0, 0, -0.5, 0)
  19.             AP(game.Workspace:FindFirstChild(Player.Name), 'Right Hip', -2.5, 135, 0, 0, -0.5, 0)
  20.         end
  21.     end
  22.     wait(0.05)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment