TheProNoob2004

Rock / Poop Shield

Aug 12th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. script.Parent = nil
  2.  
  3. person = "TheProNoob2004"
  4.  
  5. me = Workspace[person]
  6.  
  7. me.Humanoid.MaxHealth = math.huge
  8.  
  9. me.Humanoid.Health = math.huge
  10.  
  11. torso = me.Torso
  12.  
  13. local mat = "Plastic"
  14.  
  15. t = 0.1
  16.  
  17. m = Instance.new("Model",me)
  18.  
  19. m.Name = "Suit"
  20.  
  21. function make(a)
  22.  
  23. c = Instance.new("Part",m)
  24.  
  25. c.formFactor = "Custom"
  26.  
  27. c.Position = a.Position
  28.  
  29. c.Size = Vector3.new(a.Size.x,a.Size.y,t)
  30.  
  31. c.TopSurface = 0
  32.  
  33. c.BottomSurface = 0
  34.  
  35. c.Material = "Concrete"
  36.  
  37. c.BrickColor = BrickColor.new("Brown")
  38.  
  39. w = Instance.new("Weld",m)
  40.  
  41. w.Part0 = c
  42.  
  43. w.Part1 = a
  44.  
  45. w.C1 = CFrame.new(0,0,a.Size.z/2)
  46.  
  47. c2 = c:Clone()
  48.  
  49. c2.Parent = m
  50.  
  51. w = Instance.new("Weld",m)
  52.  
  53. w.Part0 = c2
  54.  
  55. w.Part1 = a
  56.  
  57. w.C1 = CFrame.new(0,0,-a.Size.z/2)
  58.  
  59. c3 = c:Clone()
  60.  
  61. c3.Parent = m
  62.  
  63. c3.Size = Vector3.new(t,a.Size.y,a.Size.z)
  64.  
  65. w = Instance.new("Weld",m)
  66.  
  67. w.Part0 = c3
  68.  
  69. w.Part1 = a
  70.  
  71. w.C1 = CFrame.new(a.Size.x/2,0,0)
  72.  
  73. c4 = c3:Clone()
  74.  
  75. c4.Parent = m
  76.  
  77. w = Instance.new("Weld",m)
  78.  
  79. w.Part0 = c4
  80.  
  81. w.Part1 = a
  82.  
  83. w.C1 = CFrame.new(-a.Size.x/2,0,0)
  84.  
  85. c5 = c:Clone()
  86.  
  87. c5.Parent = m
  88.  
  89. c5.Size = Vector3.new(a.Size.x,0,a.Size.z)
  90.  
  91. w = Instance.new("Weld",m)
  92.  
  93. w.Part0 = c5
  94.  
  95. w.Part1 = a
  96.  
  97. w.C1 = CFrame.new(0,a.Size.y/2,0)
  98.  
  99. c6 = c5:Clone()
  100.  
  101. c6.Parent = m
  102.  
  103. w = Instance.new("Weld",m)
  104.  
  105. w.Part0 = c6
  106.  
  107. w.Part1 = a
  108.  
  109. w.C1 = CFrame.new(0,-a.Size.y/2,0)
  110.  
  111. end
  112.  
  113. for i,v in pairs(me:GetChildren()) do
  114.  
  115. if v:IsA("BasePart") then
  116.  
  117. if v.Name ~= "Head" then
  118.  
  119. make(v)
  120.  
  121. end
  122.  
  123. end
  124.  
  125. end
  126.  
  127. me.Head.Color = c.Color
  128.  
  129. ---------PART 2-------
  130.  
  131. function bounch(hit)
  132.  
  133. for i,v in pairs (hit.Parent:GetChildren()) do
  134.  
  135. if v:IsA("Humanoid") then
  136.  
  137. v.Sit = true
  138.  
  139. v.Torso.Velocity = CFrame.new(v.Torso.Position,torso.Position).lookVector * -500
  140.  
  141. end
  142.  
  143. end
  144.  
  145. end
  146.  
  147. rad = 5
  148.  
  149. r = 30
  150.  
  151. p = Instance.new("Part",m)
  152.  
  153. p.formFactor = "Custom"
  154.  
  155. p.Size = Vector3.new(0.5,0.5,0.5)
  156.  
  157. p.Position = torso.Position
  158.  
  159. p.TopSurface = 0
  160.  
  161. p.BottomSurface = 0
  162.  
  163. p.BrickColor = BrickColor.new("New Yeller")
  164.  
  165. p.Transparency = 0.5
  166.  
  167. ww = Instance.new("Weld",p)
  168.  
  169. ww.Part0 = p
  170.  
  171. ww.Part1 = torso
  172.  
  173. p2 = p:Clone()
  174.  
  175. p2.Parent = m
  176.  
  177. p3 = p:Clone()
  178.  
  179. p3.Parent = m
  180.  
  181. ww2 = Instance.new("Weld",p2)
  182.  
  183. ww2.Part0 = p2
  184.  
  185. ww2.Part1 = torso
  186.  
  187. ww3 = Instance.new("Weld",p3)
  188.  
  189. ww3.Part0 = p3
  190.  
  191. ww3.Part1 = torso
  192.  
  193. ww3.C1 = CFrame.Angles(0,math.pi/2,0)
  194.  
  195. -----------------
  196.  
  197. for i = 1,360,r do
  198.  
  199. wait()
  200.  
  201. c = Instance.new("Part",m)
  202.  
  203. c.Size = Vector3.new(1,1,1)
  204.  
  205. c.TopSurface = 0
  206.  
  207. c.BottomSurface = 0
  208.  
  209. c.CanCollide = false
  210.  
  211. c.Position = torso.Position
  212.  
  213. c.Shape = 0
  214.  
  215. c.Material = "Concrete"
  216.  
  217. c.Touched:connect(bounch)
  218.  
  219. c.BrickColor = BrickColor.new("Brown")
  220.  
  221. mesh = Instance.new("FileMesh",c)
  222.  
  223. mesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  224.  
  225. w = Instance.new("Weld",c)
  226.  
  227. w.Part0 = c
  228.  
  229. w.Part1 = p
  230.  
  231. w.C1 = CFrame.new(math.cos(math.rad(i))*rad,0,math.sin(math.rad(i))*rad)
  232.  
  233. end
  234.  
  235. ------------
  236.  
  237. for i = 1,360,r do
  238.  
  239. wait()
  240.  
  241. c2 = c:Clone()
  242.  
  243. c2.Parent = m
  244.  
  245. c2.Touched:connect(bounch)
  246.  
  247. w = Instance.new("Weld",c)
  248.  
  249. w.Part0 = c
  250.  
  251. w.Part1 = p
  252.  
  253. w.C1 = CFrame.new(math.cos(math.rad(i))*rad,0,math.sin(math.rad(i))*rad)
  254.  
  255. end
  256.  
  257. ------------
  258.  
  259. for i = 1,360,r do
  260.  
  261. wait()
  262.  
  263. c2 = c:Clone()
  264.  
  265. c2.Parent = m
  266.  
  267. c2.Touched:connect(bounch)
  268.  
  269. w = Instance.new("Weld",c2)
  270.  
  271. w.Part0 = c2
  272.  
  273. w.Part1 = p2
  274.  
  275. w.C1 = CFrame.new(math.cos(math.rad(i))*rad,math.sin(math.rad(i))*rad,0)
  276.  
  277. end
  278.  
  279. -----------
  280.  
  281. for i = 1,360,r do
  282.  
  283. wait()
  284.  
  285. c2 = c:Clone()
  286.  
  287. c2.Parent = m
  288.  
  289. c2.Touched:connect(bounch)
  290.  
  291. w = Instance.new("Weld",c2)
  292.  
  293. w.Part0 = c2
  294.  
  295. w.Part1 = p3
  296.  
  297. w.C1 = CFrame.new(math.cos(math.rad(i))*rad,math.sin(math.rad(i))*rad,0)
  298.  
  299. end
  300.  
  301. while true do
  302.  
  303. wait()
  304.  
  305. ww.C1 = ww.C1 * CFrame.Angles(0,0.1,0)
  306.  
  307. ww2.C1 = ww2.C1 * CFrame.Angles(0,0,0.1)
  308.  
  309. ww3.C1 = ww3.C1 * CFrame.Angles(0,0,-0.1)
  310.  
  311. end
Add Comment
Please, Sign In to add comment