Advertisement
memberhero

Untitled

Jul 19th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. t = workspace.memberhero.Torso
  2. pos = CFrame.new(t.Position.X, 1, t.Position.Z) * CFrame.Angles(t.CFrame:toEulerAnglesXYZ()) * CFrame.new(0, 0, -140)
  3.  
  4. Cols = {"Black", "White", "Black", "White", "Black", "White", "Black", "Bright red"}
  5.  
  6. CN = CFrame.new
  7. CA = CFrame.Angles
  8. MR = math.rad
  9. MP = math.pi
  10.  
  11. function Part(P, Anch, Coll, Tran, Ref, Col, X, Y, Z)
  12. local p = Instance.new("Part")
  13. p.TopSurface = 0
  14. p.BottomSurface = 0
  15. p.Transparency = Tran
  16. p.Reflectance = Ref
  17. p.CanCollide = Coll
  18. p.Anchored = Anch
  19. p.BrickColor = BrickColor.new(Col)
  20. p.formFactor = "Custom"
  21. p.Size = Vector3.new(X,Y,Z)
  22. p.Parent = P
  23. p.Locked = true
  24. p:BreakJoints()
  25. return p
  26. end
  27.  
  28. for i,v in pairs(workspace.Base:children()) do if v.Name == "Target" then v:remove() end end
  29.  
  30. Mod = Instance.new("Model")
  31. Mod.Name = "Target"
  32.  
  33. for i = -2, 2, 4 do
  34. local p = Part(Mod, true, true, 0, 0, "Brown", 0.4, 6, 0.4)
  35. p.CFrame = pos * CN(i, 3, -1)
  36. end
  37.  
  38. for i = -2, 2, 4 do
  39. local p = Part(Mod, true, true, 0, 0, "Brown", 0.4, 1.5, 0.4)
  40. p.CFrame = pos * CN(i, 0.75, 1.2)
  41. end
  42.  
  43. for i = 1, #Cols do
  44. local s = #Cols+1-i
  45. local p = Part(Mod, true, true, 0, 0, Cols[i], s*0.75, 0.5, s*0.75)
  46. local cf = pos * CN(0, 3.9, 0.25) * CA(MR(65), 0, 0)
  47. p.CFrame = cf * CN(0, i/40, 0)
  48. Instance.new("CylinderMesh",p)
  49. end
  50.  
  51. Mod.Parent = workspace.Base
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement