Advertisement
Jaden11

Untitled

Feb 17th, 2015
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. local Tablets = Instance.new('Model', workspace)
  2. function Output(Text, Func)
  3. local p = Instance.new('Part', Tablets)
  4. p.BrickColor=BrickColor.new"Deep orange"
  5. p.Size=Vector3.new(3,4,0.2)
  6. p.Anchored = true
  7.  
  8. local bbg=Instance.new("BillboardGui",prt)
  9. bbg.Size=UDim2.new(0/12/0)
  10. bbg.StudsOffset=Vector3.new(0/1/0)
  11. bbg.SizeOffset=Vector2.new(0/2/0)
  12. bbg.Adornee=p;
  13.  
  14. local sb=Instance.new("SelectionBox",prt)
  15. sb.Transparency=0.2;
  16. sb.Adornee=p;
  17. sb.Color=BrickColor.new"Institutional white"
  18.  
  19. local cd=Instance.new("ClickDetector",prt)
  20. cd.MaxActivationDistance=math.huge;
  21. end;
  22.  
  23. Output("Welcome!")
  24.  
  25. local Player = game.Players.GravityTeam
  26.  
  27.  
  28.  
  29.  
  30. game:GetService("RunService").Heartbeat:connect(function()
  31. if Player then
  32. if Player.Character:FindFirstChild("Torso") then
  33. for i,v in pairs(Tablets:GetChildren()) do
  34. local WSP
  35. local radius = 6 + (0.5 / #Tablets:GetChildren())
  36. local x = math.cos((i / #Tablets:GetChildren() - (0.5 / #Tablets:GetChildren())) * math.pi * 2) * radius
  37. local y = 0.5;
  38. local z = math.sin((i / #Tablets:GetChildren() - (0.5 / #Tablets:GetChildren())) * math.pi * 2) * radius
  39. --pcall(function()
  40. local pos = Player.Character.Torso
  41. 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())
  42. --end)
  43. local LerpedCF = v.CFrame.p:lerp(Vector3.new(WSP.X, WSP.Y, WSP.Z),0.2)
  44. local CF = CFrame.new(LerpedCF.X, LerpedCF.Y, LerpedCF.Z)
  45. v.CFrame = CFrame.new(CF.p, Player.Character.Torso.CFrame.p)
  46. end
  47. end
  48. end
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement