Advertisement
KINGOFCOOL

Untitled

Jan 17th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 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("Navy blue")
  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("Royal purple")
  22. Part.Transparency = .5
  23.  
  24. local BodyPosition = Instance.new("BodyPosition", Part)
  25. Spawn(function()
  26. while Part and Part.Parent do
  27. BodyPosition.position = LocalPlayer.Character.Head.Position + Vector3.new(2, 1, 0)
  28. end
  29. end)
  30. local LocalPlayer = game.Players.LocalPlayer
  31.  
  32. local Character = LocalPlayer.CharacterAdded:wait()
  33.  
  34. local Part = Instance.new("Part", workspace)
  35. Part.Size = Vector3.new(1,1,1)
  36. Part.CanCollide = false
  37. Part.Position = Character.Head.Position
  38. Part.Shape = 0
  39. Part.BrickColor = BrickColor.new("Navy blue")
  40. Part.Transparency = .5
  41.  
  42. local BodyPosition = Instance.new("BodyPosition", Part)
  43.  
  44. Spawn(function()
  45. while Part and Part.Parent do -- Error?
  46. BodyPosition.position = Character.Head.Position + Vector3.new(2, 1, 0)
  47. end
  48. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement