Advertisement
Jaden11

Untitled

Feb 18th, 2015
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. local Tablets = Instance.new('Model', workspace)
  2. local p = Instance.new('Part', Tablets)
  3. p.Anchored = true
  4. local p = Instance.new('Part', Tablets)
  5. p.Anchored = true
  6. local p = Instance.new('Part', Tablets)
  7. p.Anchored = true
  8. local p = Instance.new('Part', Tablets)
  9. p.Anchored = true
  10. local Player = game.Players.GravityTeam
  11.  
  12.  
  13. game:GetService("RunService").Heartbeat:connect(function()
  14. if Player then
  15. if Player.Character:FindFirstChild("Torso") then
  16. for i,v in pairs(Tablets:GetChildren()) do
  17. local WSP
  18. local radius = 6 + (0.5 / #Tablets:GetChildren())
  19. local x = math.cos((i / #Tablets:GetChildren() - (0.5 / #Tablets:GetChildren())) * math.pi * 2) * radius
  20. local y = 0.5;
  21. local z = math.sin((i / #Tablets:GetChildren() - (0.5 / #Tablets:GetChildren())) * math.pi * 2) * radius
  22. --pcall(function()
  23. local pos = Player.Character.Torso
  24. local WSP = CFrame.new(Player.Character.Torso.CFrame.X, Player.Character.Torso.CFrame.Y, Player.Character.Torso.CFrame.Z):toWorldSpace(CFrame.new(x,y,z):inverse())
  25. --end)
  26. local LerpedCF = v.CFrame.p:lerp(Vector3.new(WSP.X, WSP.Y, WSP.Z),0.2)
  27. local CF = CFrame.new(LerpedCF.X, LerpedCF.Y, LerpedCF.Z)
  28. v.CFrame = CFrame.new(CF.p, Player.Character.Torso.CFrame.p)
  29. end
  30. end
  31. end
  32. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement