Advertisement
ClockworkHorror

Brick Test [V1]

Jul 1st, 2015
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. local Player = game.Players:FindFirstChild('ClockworkHorror')
  2. local Char = Player.Character
  3. local Torso = Char:FindFirstChild('Torso')
  4.  
  5. function trail(obj)
  6. local lastPos = obj.CFrame.p
  7. coroutine.wrap(function()
  8. while obj ~= nil do
  9. game:service'RunService'.Stepped:wait()
  10. local objC = obj:Clone()
  11. objC.Locked = true
  12. objC.FormFactor = 'Custom'
  13. objC.Parent = obj.Parent
  14. objC.Anchored = true
  15. local distance = (lastPos- obj.CFrame.p).magnitude
  16. objC.Size = Vector3.new(0.8,0.8,distance)
  17. objC.CFrame = CFrame.new(lastPos,obj.Position)*CFrame.new(0,0,-distance/2)
  18. coroutine.wrap(function()
  19. for i = 0,1,.1 do
  20. wait(.1)
  21. objC.Transparency = i
  22. end
  23. objC:Destroy()
  24. end)()
  25. lastPos = obj.CFrame.p
  26. end
  27. end)()
  28. end
  29. local part = Instance.new('Part', workspace)
  30. Instance.new('Fire', workspace.Part)
  31. Instance.new('PointLight', part)
  32. part.FormFactor = Enum.FormFactor.Custom
  33. part.Size = Vector3.new(2,2,2)
  34. part.Anchored = true
  35. part.Locked = true
  36. part.CanCollide = false
  37. part.BrickColor = BrickColor.new('1003') --Really black
  38. part.TopSurface,part.BottomSurface=0,0
  39. trail(part)
  40. local point
  41.  
  42. local loop = coroutine.create(function()
  43. while true do
  44. for i=1,360,8 do -- i=1,360,8
  45. if Player.Character and not point then
  46. point = Player.Character:FindFirstChild("Torso")
  47. end
  48. if point.Parent.Name == Player.Character.Name then
  49. point = Player.Character:FindFirstChild("Torso")
  50. end
  51. if part then
  52. --Full_Loop = math.rad(i)
  53. part.CFrame = CFrame.new(point.CFrame.p)*CFrame.fromEulerAnglesXYZ(0.3,math.rad(i),0.5) * CFrame.new(0,0,-4) --CFrame.new(0,0,-4.75)
  54. end
  55. wait()
  56. end
  57. end
  58. end)
  59. coroutine.resume(loop)
  60.  
  61. local Player = game.Players:FindFirstChild('ClockworkHorror')
  62. local Char = Player.Character
  63. local Torso = Char:FindFirstChild('Torso')
  64.  
  65. function trail(obj)
  66. local lastPos = obj.CFrame.p
  67. coroutine.wrap(function()
  68. while obj ~= nil do
  69. game:service'RunService'.Stepped:wait()
  70. local objC = obj:Clone()
  71. objC.Locked = true
  72. objC.FormFactor = 'Custom'
  73. objC.Parent = obj.Parent
  74. objC.Anchored = true
  75. local distance = (lastPos- obj.CFrame.p).magnitude
  76. objC.Size = Vector3.new(0.8,0.8,distance)
  77. objC.CFrame = CFrame.new(lastPos,obj.Position)*CFrame.new(0,0,-distance/2)
  78. coroutine.wrap(function()
  79. for i = 0,1,.1 do
  80. wait(.1)
  81. objC.Transparency = i
  82. end
  83. objC:Destroy()
  84. end)()
  85. lastPos = obj.CFrame.p
  86. end
  87. end)()
  88. end
  89. local part = Instance.new('Part', workspace)
  90. Instance.new('PointLight', part)
  91. part.FormFactor = Enum.FormFactor.Custom
  92. part.Size = Vector3.new(2,2,2)
  93. part.Anchored = true
  94. part.Locked = true
  95. part.CanCollide = false
  96. trail(part)
  97. part.BrickColor = BrickColor.new('1003') --Really black
  98. part.TopSurface,part.BottomSurface=0,0
  99. local point
  100.  
  101. local loop = coroutine.create(function()
  102. while true do
  103. for i=1,360,8 do -- i=1,360,0
  104. if Player.Character and not point then
  105. point = Player.Character:FindFirstChild("Torso")
  106. end
  107. if point.Parent.Name == Player.Character.Name then
  108. point = Player.Character:FindFirstChild("Torso")
  109. end
  110. if part then
  111. --Full_Loop = math.rad(i)
  112. part.CFrame = CFrame.new(point.CFrame.p)*CFrame.fromEulerAnglesXYZ(0.3,math.rad(i),0.5) * CFrame.new(2,0,-8) --CFrame.new(0,0,-4.75)
  113. end
  114. wait()
  115. end
  116. end
  117. end)
  118. coroutine.resume(loop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement