SHOW:
|
|
- or go back to the newest paste.
1 | local Player = game.Players:FindFirstChild('ClockworkHorror') | |
2 | local Char = Player.Character | |
3 | local Torso = Char:FindFirstChild('Torso') | |
4 | ||
5 | - | function trail(obj) |
5 | + | |
6 | - | local lastPos = obj.CFrame.p |
6 | + | |
7 | - | coroutine.wrap(function() |
7 | + | |
8 | - | while obj ~= nil do |
8 | + | m.MeshId = "http://www.roblox.com/asset/?id=21057410" |
9 | - | game:service'RunService'.Stepped:wait() |
9 | + | m.TextureId = "http://www.roblox.com/asset/?id=21243140" |
10 | - | local objC = obj:Clone() |
10 | + | Instance.new('Fire', workspace.Part) |
11 | - | objC.Locked = true |
11 | + | |
12 | - | objC.FormFactor = 'Custom' |
12 | + | |
13 | - | objC.Parent = obj.Parent |
13 | + | part.Size = Vector3.new(1,1,1) |
14 | - | objC.Anchored = true |
14 | + | |
15 | - | local distance = (lastPos- obj.CFrame.p).magnitude |
15 | + | |
16 | - | objC.Size = Vector3.new(0.8,0.8,distance) |
16 | + | |
17 | - | objC.CFrame = CFrame.new(lastPos,obj.Position)*CFrame.new(0,0,-distance/2) |
17 | + | part.BrickColor = BrickColor.new('1001') --Instutuional White |
18 | - | coroutine.wrap(function() |
18 | + | |
19 | - | for i = 0,1,.1 do |
19 | + | |
20 | - | wait(.1) |
20 | + | |
21 | - | objC.Transparency = i |
21 | + | |
22 | local loop = coroutine.create(function() | |
23 | - | objC:Destroy() |
23 | + | |
24 | - | end)() |
24 | + | for i=1,360,4 do -- i=1,360,7 |
25 | - | lastPos = obj.CFrame.p |
25 | + | |
26 | point = Player.Character:FindFirstChild("Torso") | |
27 | - | end)() |
27 | + | |
28 | if point.Parent.Name == Player.Character.Name then | |
29 | point = Player.Character:FindFirstChild("Torso") | |
30 | end | |
31 | if part then | |
32 | - | m.MeshId = "http://www.roblox.com/Asset/?id=9756362" |
32 | + | |
33 | - | Instance.new('ParticleEmitter', workspace.Part) |
33 | + | part.CFrame = CFrame.new(point.CFrame.p)*CFrame.fromEulerAnglesXYZ(0.5,math.rad(i),2) * CFrame.new(2,0,-8) --CFrame.new(0,0,-4.75) |
34 | end | |
35 | wait() | |
36 | - | part.Size = Vector3.new(2,2,2) |
36 | + | |
37 | end | |
38 | end) | |
39 | coroutine.resume(loop) |