Guest User

3DMG

a guest
Jul 31st, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. wait(0.03)
  2. local ply = game.Players.LocalPlayer
  3. local part = function(name,cframe,smooth,cancollide)
  4. local make = Instance.new("Part",ply.Character)
  5. make.Name = name
  6. make.FormFactor = Enum.FormFactor.Custom
  7. make.Size = Vector3.new(0.8,1,3)
  8. make.CFrame = ply.Character.Torso.CFrame
  9. make.FrontSurface = 2
  10. make.BackSurface = 2
  11. if cframe then
  12. local weld = Instance.new("Weld",ply.Character[name.." Leg"])
  13. weld.Part0 = weld.Parent
  14. weld.Part1 = make
  15. weld.C0 = cframe
  16. end
  17. if smooth then
  18. make.BottomSurface = Enum.SurfaceType.Smooth
  19. make.TopSurface = Enum.SurfaceType.Smooth
  20. end
  21. if cancollide == "f" then
  22. make.CanCollide = false
  23. end
  24. return make
  25. end
  26.  
  27. parta = part("Left",CFrame.new(-0.8,0.2,0.5),"smooth","f")--(-1.4,-1,0.5)
  28. partb = part("Right",CFrame.new(0.8,0.2,0.5),"smooth","f")--(1.4,-1,0.5)
  29. local parsethis = "xm-0.300000072, 0, -1.45000005, 1, 0, 0, 0, 1, 0, 0, 0, 1v0.200000003, 0.449999988, 0.200000003xm-0.200000048, 0, -1.45000005, 1, 0, 0, 0, 1, 0, 0, 0, 1v0.200000003, 0.449999988, 0.200000003xm0.200000048, 0, -1.45000005, 1, 0, 0, 0, 1, 0, 0, 0, 1v0.200000003, 0.449999988, 0.200000003xm0.300000072, 0, -1.45000005, 1, 0, 0, 0, 1, 0, 0, 0, 1v0.200000003, 0.449999988, 0.200000003xh1.1920929e-007, 0.749992371, 0.150000036, 1, 0, 0, 0, -4.37113883e-008, 1, 0, -1, -4.37113883e-008v0.5, 2.5, 0.5xn0, 0.199989319, 0.99999994, 1, 0, 0, 0, 1, 0, 0, 0, 1v0.810000002, 1.64999998, 0.200000003xn0, 0.199996948, 0.100000024, 1, 0, 0, 0, 1, 0, 0, 0, 1v0.810000002, 1.64999998, 0.200000003xn0, -0.0300292969, -0.700000048, 1, 0, 0, 0, 1, 0, 0, 0, 1v0.810000002, 1.10000002, 0.200000003"
  30. for v in parsethis:gmatch("[^x]+") do
  31. local part = Instance.new("Part",parta)
  32. part.BottomSurface = Enum.SurfaceType.Smooth
  33. part.TopSurface = Enum.SurfaceType.Smooth
  34. part.CanCollide = false
  35. part.FormFactor = Enum.FormFactor.Custom
  36. part.Position = ply.Character.Head.Position
  37. part.BrickColor = BrickColor.new("Dark stone grey")
  38. local weld = Instance.new("Weld",part.Parent)
  39. if v:sub(1,1) == "m" then
  40. local mesh = Instance.new("SpecialMesh",part)
  41. mesh.MeshType = Enum.MeshType.Brick
  42. mesh.Scale = Vector3.new(0.1,1,1)
  43. elseif v:sub(1,1) == "h" then
  44. local mesh = Instance.new("SpecialMesh",part)
  45. part.BrickColor = BrickColor.new("Really black")
  46. part.Name = "gas"..part.Parent.Name
  47. weld.Name = "gas"
  48. end
  49. local placeofv = v:find("v")
  50. part.Size = Vector3.new((v:sub(placeofv+1,-1)):match("([^,]+),([^,]+),([^,]+)"))
  51. weld.Part0 = part.Parent
  52. weld.Part1 = part
  53. weld.C0 =CFrame.new((v:sub(2,placeofv-1)):match("([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+)"))
  54. end
  55. for v in parsethis:gmatch("[^x]+") do
  56. local part = Instance.new("Part",partb)
  57. part.BottomSurface = Enum.SurfaceType.Smooth
  58. part.TopSurface = Enum.SurfaceType.Smooth
  59. part.CanCollide = false
  60. part.FormFactor = Enum.FormFactor.Custom
  61. part.Position = ply.Character.Head.Position
  62. part.BrickColor = BrickColor.new("Dark stone grey")
  63. local weld = Instance.new("Weld",part.Parent)
  64. if v:sub(1,1) == "m" then
  65. local mesh = Instance.new("SpecialMesh",part)
  66. mesh.MeshType = Enum.MeshType.Brick
  67. mesh.Scale = Vector3.new(0.1,1,1)
  68. elseif v:sub(1,1) == "h" then
  69. local mesh = Instance.new("SpecialMesh",part)
  70. part.BrickColor = BrickColor.new("Really black")
  71. part.Name = "gas"..part.Parent.Name
  72. weld.Name = "gas"
  73. end
  74. local placeofv = v:find("v")
  75. part.Size = Vector3.new((v:sub(placeofv+1,-1)):match("([^,]+),([^,]+),([^,]+)"))
  76. weld.Part0 = part.Parent
  77. weld.Part1 = part
  78. weld.C0 =CFrame.new((v:sub(2,placeofv-1)):match("([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+)"))
  79. end
  80. ply.Character:MoveTo(ply.Character:GetModelCFrame().p)
Add Comment
Please, Sign In to add comment