dlard707

Virtual pet

Dec 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. local LocalPlayer = game:GetService("Players").LocalPlayer
  2. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  3.  
  4. local Orb = Instance.new("Part", Character)
  5. Orb.Name = "Orb"
  6. Orb.Shape = Enum.PartType.Ball
  7. Orb.CanCollide = false
  8. Orb.BrickColor = BrickColor.new("Bright green")
  9. Orb.Transparency = 0.25
  10. Orb.Size = Vector3.new(2, 2, 2)
  11. Orb.TopSurface = Enum.SurfaceType.Smooth
  12. Orb.BottomSurface = Enum.SurfaceType.Smooth
  13.  
  14. local BodyPosition = Instance.new("BodyPosition", Orb)
  15.  
  16. while wait(0) do
  17.     BodyPosition.Position = Character.Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0))
  18. end
Add Comment
Please, Sign In to add comment