Advertisement
KINGOFCOOL

Untitled

Jan 16th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. local LocalPlayer = game.Players.LocalPlayer
  2.  
  3. local Character = LocalPlayer.CharacterAdded:wait()
  4.  
  5. local Part = Instance.new("Part", workspace)
  6. Part.Size = Vector3.new(1,1,1)
  7. Part.CanCollide = false
  8. Part.Position = Character.Head.Position
  9. Part.Shape = 0
  10. Part.BrickColor = BrickColor.new("Bright red")
  11. Part.Transparency = .5
  12. local LocalPlayer = game.Players.LocalPlayer
  13.  
  14. local Character = LocalPlayer.CharacterAdded:wait()
  15.  
  16. local Part = Instance.new("Part", workspace)
  17. Part.Size = Vector3.new(1,1,1)
  18. Part.CanCollide = false
  19. Part.Position = Character.Head.Position
  20. Part.Shape = 0
  21. Part.BrickColor = BrickColor.new("Bright red")
  22. Part.Transparency = .5
  23.  
  24. local BodyPosition = Instance.new("BodyPosition", Part)
  25. Spawn(function()
  26. while Part and Part.Parent do -- While the part exists, do make it float
  27. BodyPosition.position = LocalPlayer.Character.Head.Position + Vector3.new(2, 1, 2) --Add a bit of distance
  28. end
  29. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement