Advertisement
KnightZoro

construct

Aug 4th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. --[[{--{{[]Soul Constructor[]}}--}]]--
  2.  
  3. Meh = "Zororion"
  4. me = game:service("Players")[Meh]
  5. char = me.Character
  6.  
  7. if script.Parent.className ~= "HopperBin" then
  8. h = Instance.new("HopperBin",me.Backpack)
  9. h.Name = "Construct"
  10. script.Parent = h
  11. end
  12.  
  13. bin = script.Parent
  14.  
  15. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  16. part.Parent = parent
  17. part.formFactor = form
  18. part.CanCollide = collide
  19. part.Transparency = tran
  20. part.Reflectance = ref
  21. part.Size = Vector3.new(x,y,z)
  22. part.BrickColor = BrickColor.new(color)
  23. part.TopSurface = 0
  24. part.BottomSurface = 0
  25. part.Anchored = anchor
  26. part:BreakJoints()
  27. end
  28.  
  29. function weld(w, p, p0, p1, a, b, c, x, y, z)
  30. w.Parent = p
  31. w.Part0 = p0
  32. w.Part1 = p1
  33. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  34. end
  35.  
  36. function mesh(mesh, parent, x, y, z, type)
  37. mesh.Parent = parent
  38. mesh.Scale = Vector3.new(x, y, z)
  39. mesh.MeshType = type
  40. end
  41.  
  42. function removerob()
  43. local lol = char:GetChildren()
  44. for _,v in pairs(lol) do
  45. if v.Name == "Constructor" then
  46. v:remove()
  47. end
  48. end
  49. end
  50.  
  51.  
  52. function makerob(maus)
  53. local mod = Instance.new("Model",char)
  54. mod.Name = "Constructor"
  55. local main = Instance.new("Part")
  56. prop(main,mod,true,0,0,2.4,1.3,4,"Navy blue",false,"Custom")
  57. main.Name = "MainPart"
  58. main.Position = char.Head.Position
  59. for i=-1, 1, 2 do
  60. local fir = Instance.new("Part")
  61. prop(fir,mod,true,0,0,1,1.8,1,"Black",false,"Custom")
  62. local wel = Instance.new("Weld")
  63. weld(wel,main,main,fir,(0.4+math.pi),0,i/2.5,i,1,-1.7)
  64. local fira = Instance.new("Fire",fir)
  65. fira.Color = Color3.new(0.1,1,0.1)
  66. fira.SecondaryColor = fira.Color
  67. fira.Size = 1
  68. fira.Heat = 25
  69. end
  70. for i=-1, 1, 2 do
  71. local fir = Instance.new("Part")
  72. prop(fir,mod,true,0,0,1,1.8,1,"Black",false,"Custom")
  73. local wel = Instance.new("Weld")
  74. weld(wel,main,main,fir,(-0.4+math.pi),0,i/2.5,i,1,1.7)
  75. local fira = Instance.new("Fire",fir)
  76. fira.Color = Color3.new(0.1,1,0.1)
  77. fira.SecondaryColor = fira.Color
  78. fira.Size = 1
  79. fira.Heat = 25
  80. end
  81. for i = -0.6, 0.65, 1.2 do
  82. local pip = Instance.new("Part")
  83. prop(pip,mod,true,0,0,0.6,2,0.6,"Black",false,"Custom")
  84. local mes = Instance.new("SpecialMesh")
  85. mesh(mes,pip,1,1,1,"Head")
  86. local we = Instance.new("Weld")
  87. weld(we,main,main,pip,math.pi/2,-i/3,0,i,-0.3,2.2)
  88. end
  89. local bal = Instance.new("Part")
  90. prop(bal,mod,true,0,0,2.2,1,3.6,"Black",false,"Custom")
  91. local mf = Instance.new("SpecialMesh")
  92. mesh(mf,bal,1,1,1,"Sphere")
  93. local weg = Instance.new("Weld")
  94. weld(weg,main,main,bal,0,0,0,0,-0.6,0)
  95. local pos = Instance.new("BodyPosition",main)
  96. pos.position = maus.Hit.p + Vector3.new(0,25,0)
  97. pos.maxForce = Vector3.new(7500,7500,7500)
  98. pos.Name = "BP"
  99. local bg = Instance.new("BodyGyro",main)
  100. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  101. bg.cframe = CFrame.new(main.Position, maus.Hit.p)
  102. bg.Name = "BG"
  103. while true do
  104. wait()
  105. if maus then
  106. if maus.Target then
  107. bg.cframe = CFrame.new(main.Position, maus.Hit.p)
  108. local heh = math.random(1,35)
  109. if heh == 1 then
  110. pos.position = maus.Hit.p + Vector3.new(math.random(-24,24),math.random(10,25),math.random(-24,24))
  111. end
  112. end
  113. end
  114. end
  115. end
  116.  
  117. sizes = {"Small", "Medium", "Large"}
  118.  
  119. function makegui()
  120. local sc = Instance.new("ScreenGui",me.PlayerGui)
  121. sc.Name = "Construct"
  122. local pog = 0.24
  123. for i=2,6,2 do
  124. local txt = Instance.new("TextButton",sc)
  125. txt.Text = sizes[i/2]
  126. txt.Size = UDim2.new(0.1,0,0.02,0)
  127. txt.Position = UDim2.new(0,0,pog,0)
  128. txt.BackgroundColor3 = Color3.new(0,0.7,0)
  129. txt.BackgroundTransparency = 0.3
  130. txt.MouseButton1Down:connect(function()
  131. size = i
  132. end)
  133. pog = pog + 0.02
  134. end
  135. end
  136.  
  137. function remgui()
  138. for _,v in pairs(me.PlayerGui:GetChildren()) do
  139. if v.Name == "Construct" then
  140. v:remove()
  141. end
  142. end
  143. end
  144.  
  145. function checkrob()
  146. local ok = nil
  147. local temp = char:findFirstChild("Constructor")
  148. if temp then
  149. ok = temp
  150. end
  151. return ok
  152. end
  153.  
  154. function checkmain()
  155. local kay = checkrob()
  156. local ok = nil
  157. if kay then
  158. local temp = kay:findFirstChild("MainPart")
  159. if temp then
  160. ok = temp
  161. end
  162. end
  163. return ok
  164. end
  165.  
  166. size = 2
  167. mode = "wall"
  168. hold = false
  169. gui = false
  170.  
  171. function wall(maz, rob)
  172. local posx = -size*4
  173. local posz = posx
  174. local posxd = maz.Hit.p
  175. repeat
  176. wait()
  177. local p = Instance.new("Part")
  178. prop(p,workspace,true,0,0,size*2,size*1,size*2,"Earth green",true,"Custom")
  179. p.CFrame = CFrame.new(posxd) * CFrame.new(posx,0,posz) * CFrame.Angles(math.random(-60,60)/100,math.random(-320,320)/100,math.random(-60,60)/100)
  180. posx = posx + size*1.6
  181. if posx > size*4 then
  182. posx = -size*4
  183. posz = posz + size*1.6
  184. end
  185. until posz > size*4
  186. end
  187.  
  188. bin.Selected:connect(function(mouse)
  189. mouse.KeyDown:connect(function(key)
  190. key = key:lower()
  191. if key == "e" then
  192. removerob()
  193. wait(0.1)
  194. makerob(mouse)
  195. elseif key == "q" then
  196. if gui == false then
  197. makegui()
  198. gui = true
  199. else
  200. remgui()
  201. gui = false
  202. end
  203. end
  204. end)
  205. mouse.Button1Down:connect(function()
  206. local bot = checkrob()
  207. if bot then
  208. if mode == "wall" then
  209. hold = true
  210. wall(mouse, bot)
  211. end
  212. end
  213. end)
  214. mouse.Button1Up:connect(function()
  215. hold = false
  216. end)
  217. end)
  218.  
  219. bin.Deselected:connect(function()
  220. removerob()
  221. remgui()
  222. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement