How do I make this part get destroyed on my death, or come back to me when i respawn?
So, I made this cloud that basically levitates and follows me but when I reset, it just stays there and does nothing, like it broke. So, when I die, I want it to come back to me, or get destroyed, thanks!
01 | b = Vector 3. new( 0 , 19 , 0 ) |
02 | a = Vector 3. new( 0 , 20 , 0 ) |
03 | c = Vector 3. new( 0 , 10 , 0 ) |
04 | puff = game.Workspace.puffscocofeafea.Torso |
05 | humanoid = game.Workspace.puffscocofeafea.Humanoid |
06 | brick = Instance.new( "Part" , game.Workspace) |
08 | brick.Size = Vector 3. new( 6 , 4.58 , 1.57 ) |
09 | brick.BottomSurface = "Smooth" |
10 | brick.TopSurface = "Smooth" |
11 | puffposition = puff.Position |
13 | mesh = Instance.new( "SpecialMesh" ,brick) |
14 | mesh.Scale = Vector 3. new( 10 , 10 , 10 ) |
16 | mesh.MeshType = "FileMesh" |
18 | mesh.VertexColor = Vector 3. new( 1 , 1 , 1 ) |
20 | lasso = Instance.new( "SelectionPartLasso" , brick) |
21 | lasso.Humanoid = humanoid |
24 | force = Instance.new( "BodyPosition" ,brick) |
25 | force.maxForce = Vector 3. new( 50000 , 50000 , 50000 ) |
29 | force.position = puff.Position + c |