Advertisement
HenloMyDude

BossNPC

Aug 14th, 2019
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.88 KB | None | 0 0
  1.  
  2.  
  3. --Converted with ttyyuu12345's model to script plugin v4
  4. function sandbox(var,func)
  5. local env = getfenv(func)
  6. local newenv = setmetatable({},{
  7. __index = function(self,k)
  8. if k=="script" then
  9. return var
  10. else
  11. return env[k]
  12. end
  13. end,
  14. })
  15. setfenv(func,newenv)
  16. return func
  17. end
  18. cors = {}
  19. mas = Instance.new("Model",game:GetService("Lighting"))
  20. Model0 = Instance.new("Model")
  21. Part1 = Instance.new("Part")
  22. SpecialMesh2 = Instance.new("SpecialMesh")
  23. Decal3 = Instance.new("Decal")
  24. Weld4 = Instance.new("Weld")
  25. Humanoid5 = Instance.new("Humanoid")
  26. Part6 = Instance.new("Part")
  27. Part7 = Instance.new("Part")
  28. Part8 = Instance.new("Part")
  29. Part9 = Instance.new("Part")
  30. Part10 = Instance.new("Part")
  31. Pants11 = Instance.new("Pants")
  32. Shirt12 = Instance.new("Shirt")
  33. Part13 = Instance.new("Part")
  34. Hat14 = Instance.new("Hat")
  35. Part15 = Instance.new("Part")
  36. SpecialMesh16 = Instance.new("SpecialMesh")
  37. Script17 = Instance.new("Script")
  38. Part18 = Instance.new("Part")
  39. SpecialMesh19 = Instance.new("SpecialMesh")
  40. Weld20 = Instance.new("Weld")
  41. Model0.Name = "BossNPC"
  42. Model0.Parent = mas
  43. Part1.Name = "Head"
  44. Part1.Parent = Model0
  45. Part1.CFrame = CFrame.new(23, 4.5, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  46. Part1.Position = Vector3.new(23, 4.5, -79.5)
  47. Part1.Color = Color3.new(0.917647, 0.721569, 0.572549)
  48. Part1.Size = Vector3.new(2, 1, 1)
  49. Part1.BottomSurface = Enum.SurfaceType.Smooth
  50. Part1.BrickColor = BrickColor.new("Light orange")
  51. Part1.TopSurface = Enum.SurfaceType.Smooth
  52. Part1.brickColor = BrickColor.new("Light orange")
  53. SpecialMesh2.Parent = Part1
  54. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  55. Decal3.Name = "Monster Smile"
  56. Decal3.Parent = Part1
  57. Decal3.Texture = "http://www.roblox.com/asset/?id=1117061264"
  58. Weld4.Name = "HeadWeld"
  59. Weld4.Parent = Part1
  60. Weld4.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  61. Weld4.C1 = CFrame.new(0, -0.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  62. Weld4.Part0 = Part1
  63. Weld4.Part1 = Part15
  64. Weld4.part1 = Part15
  65. Humanoid5.Parent = Model0
  66. Humanoid5.LeftLeg = Part8
  67. Humanoid5.RightLeg = Part7
  68. Humanoid5.Torso = Part13
  69. Humanoid5.MaxHealth = 1000
  70. Humanoid5.Health = 1000
  71. Part6.Name = "Torso"
  72. Part6.Parent = Model0
  73. Part6.CFrame = CFrame.new(23, 3, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  74. Part6.Position = Vector3.new(23, 3, -79.5)
  75. Part6.Color = Color3.new(0.105882, 0.164706, 0.207843)
  76. Part6.Size = Vector3.new(2, 2, 1)
  77. Part6.BottomSurface = Enum.SurfaceType.Smooth
  78. Part6.BrickColor = BrickColor.new("Black")
  79. Part6.TopSurface = Enum.SurfaceType.Smooth
  80. Part6.brickColor = BrickColor.new("Black")
  81. Part7.Name = "Right Leg"
  82. Part7.Parent = Model0
  83. Part7.CFrame = CFrame.new(23.5, 1, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  84. Part7.Position = Vector3.new(23.5, 1, -79.5)
  85. Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
  86. Part7.Size = Vector3.new(1, 2, 1)
  87. Part7.BottomSurface = Enum.SurfaceType.Smooth
  88. Part7.BrickColor = BrickColor.new("Black")
  89. Part7.TopSurface = Enum.SurfaceType.Smooth
  90. Part7.brickColor = BrickColor.new("Black")
  91. Part8.Name = "Left Leg"
  92. Part8.Parent = Model0
  93. Part8.CFrame = CFrame.new(22.5, 1, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  94. Part8.Position = Vector3.new(22.5, 1, -79.5)
  95. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  96. Part8.Size = Vector3.new(1, 2, 1)
  97. Part8.BottomSurface = Enum.SurfaceType.Smooth
  98. Part8.BrickColor = BrickColor.new("Black")
  99. Part8.TopSurface = Enum.SurfaceType.Smooth
  100. Part8.brickColor = BrickColor.new("Black")
  101. Part9.Name = "Left Arm"
  102. Part9.Parent = Model0
  103. Part9.CFrame = CFrame.new(21.5, 3, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  104. Part9.Position = Vector3.new(21.5, 3, -79.5)
  105. Part9.Color = Color3.new(0.917647, 0.721569, 0.572549)
  106. Part9.Size = Vector3.new(1, 2, 1)
  107. Part9.BottomSurface = Enum.SurfaceType.Smooth
  108. Part9.BrickColor = BrickColor.new("Light orange")
  109. Part9.TopSurface = Enum.SurfaceType.Smooth
  110. Part9.brickColor = BrickColor.new("Light orange")
  111. Part10.Name = "Right Arm"
  112. Part10.Parent = Model0
  113. Part10.CFrame = CFrame.new(24.5, 3, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  114. Part10.Position = Vector3.new(24.5, 3, -79.5)
  115. Part10.Color = Color3.new(0.917647, 0.721569, 0.572549)
  116. Part10.Size = Vector3.new(1, 2, 1)
  117. Part10.BottomSurface = Enum.SurfaceType.Smooth
  118. Part10.BrickColor = BrickColor.new("Light orange")
  119. Part10.TopSurface = Enum.SurfaceType.Smooth
  120. Part10.brickColor = BrickColor.new("Light orange")
  121. Pants11.Name = "Pants"
  122. Pants11.Parent = Model0
  123. Shirt12.Name = "Shirt"
  124. Shirt12.Parent = Model0
  125. Shirt12.ShirtTemplate = "rbxassetid://1932690596"
  126. Part13.Name = "HumanoidRootPart"
  127. Part13.Parent = Model0
  128. Part13.CFrame = CFrame.new(23, 3, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  129. Part13.Position = Vector3.new(23, 3, -79.5)
  130. Part13.Color = Color3.new(0.152941, 0.27451, 0.176471)
  131. Part13.Transparency = 1
  132. Part13.Size = Vector3.new(2, 2, 1)
  133. Part13.BottomSurface = Enum.SurfaceType.Smooth
  134. Part13.BrickColor = BrickColor.new("Earth green")
  135. Part13.TopSurface = Enum.SurfaceType.Smooth
  136. Part13.brickColor = BrickColor.new("Earth green")
  137. Hat14.Parent = Model0
  138. Hat14.AttachmentPoint = CFrame.new(0, -0.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  139. Hat14.AttachmentPos = Vector3.new(0, -0.25, 0)
  140. Part15.Name = "Handle"
  141. Part15.Parent = Hat14
  142. Part15.CFrame = CFrame.new(23, 5.25, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  143. Part15.Position = Vector3.new(23, 5.25, -79.5)
  144. Part15.Size = Vector3.new(1, 1, 1)
  145. Part15.BottomSurface = Enum.SurfaceType.Smooth
  146. Part15.CanCollide = false
  147. Part15.Locked = true
  148. Part15.TopSurface = Enum.SurfaceType.Smooth
  149. Part15.FormFactor = Enum.FormFactor.Symmetric
  150. Part15.formFactor = Enum.FormFactor.Symmetric
  151. SpecialMesh16.Parent = Part15
  152. SpecialMesh16.MeshId = "http://www.roblox.com/asset/?id=1028713"
  153. SpecialMesh16.TextureId = "http://www.roblox.com/asset/?id=46356615"
  154. SpecialMesh16.MeshType = Enum.MeshType.FileMesh
  155. Script17.Name = "BOSS"
  156. Script17.Parent = Model0
  157. table.insert(cors,sandbox(Script17,function()
  158.  
  159.  
  160. --youngmacka123s boss script--
  161.  
  162. local char = script.Parent
  163. local tors = char.Torso
  164. local ra = char["Right Arm"]
  165. local la = char["Left Arm"]
  166. local rl = char["Right Leg"]
  167. local ll = char["Left Leg"]
  168. local hed = char.Head
  169. local root = char.HumanoidRootPart
  170.  
  171. root.CFrame = CFrame.new(0, 15, 0)
  172.  
  173. --motors--
  174.  
  175. local rootj = Instance.new("Motor6D",root)
  176. rootj.Name = "RootJoint"
  177. rootj.Part0 = tors
  178. rootj.Part1 = root
  179.  
  180. local neck = Instance.new("Motor6D",tors)
  181. neck.Name = "Neck"
  182. neck.Part0 = hed
  183. neck.Part1 = tors
  184. neck.C0 = CFrame.new(0, -1.5, 0)
  185.  
  186. local rs = Instance.new("Motor6D",tors)
  187. rs.Name = "Right Shoulder"
  188. rs.Part0 = ra
  189. rs.Part1 = tors
  190. rs.C0 = CFrame.new(1.5, 0, 0)
  191.  
  192. local ls = Instance.new("Motor6D",tors)
  193. ls.Name = "Left Shoulder"
  194. ls.Part0 = la
  195. ls.Part1 = tors
  196. ls.C0 = CFrame.new(-1.5, 0, 0)
  197.  
  198. local rh = Instance.new("Motor6D",tors)
  199. rh.Name = "Right Hip"
  200. rh.Part0 = rl
  201. rh.Part1 = tors
  202. rh.C0 = CFrame.new(0.5, 2, 0)
  203.  
  204. local lh = Instance.new("Motor6D",tors)
  205. lh.Name = "Left Hip"
  206. lh.Part0 = ll
  207. lh.Part1 = tors
  208. lh.C0 = CFrame.new(-0.5, 2, 0)
  209.  
  210. --attacks--
  211.  
  212. attack = false
  213.  
  214. function bomb()
  215. attack = true
  216. root.Anchored = true
  217. local bomb1 = char.Bomb:Clone()
  218. bomb1.Weld:Destroy()
  219. bomb1.Parent = workspace
  220. local bomb2 = char.Bomb:Clone()
  221. bomb2.Weld:Destroy()
  222. bomb2.Parent = workspace
  223.  
  224. for i = 1, 15 do
  225. game:GetService("RunService").Heartbeat:Wait()
  226. rs.C0 = rs.C0:Lerp(CFrame.Angles(1.75, 0, -0.5) * CFrame.new(1.5, -1, -1), 0.1)
  227. end
  228. rs.C0 = CFrame.new(1.5, 0, 0)
  229. wait(2)
  230. local ff = Instance.new("ForceField",char)
  231. ff.Visible = false
  232. local ex1 = Instance.new("Explosion",bomb1)
  233. ex1.Position = bomb1.Position
  234. local ex2 = Instance.new("Explosion",bomb2)
  235. ex2.Position = bomb2.Position
  236. wait(0.5)
  237. bomb1:Destroy()
  238. bomb2:Destroy()
  239. ff:Destroy()
  240. attack = false
  241. root.Anchored = false
  242. end
  243.  
  244. --randomly use attacks--
  245.  
  246. char.Humanoid.Died:connect(function()
  247. attack = true
  248. end)
  249.  
  250. while true do
  251. wait(2)
  252. decide = math.random(1, 1)
  253. if decide == 1 and attack == false then
  254. bomb()
  255. end
  256. end
  257. end))
  258. Part18.Name = "Bomb"
  259. Part18.Parent = Model0
  260. Part18.CFrame = CFrame.new(21.5, 1.50000095, -79.5, 1, 0, 0, 0, 1.19248806e-08, 1, 0, -1, 1.19248806e-08)
  261. Part18.Orientation = Vector3.new(-90, 0, 0)
  262. Part18.Position = Vector3.new(21.5, 1.50000095, -79.5)
  263. Part18.Rotation = Vector3.new(-90, 0, 0)
  264. Part18.Size = Vector3.new(1, 1, 1)
  265. Part18.BottomSurface = Enum.SurfaceType.Smooth
  266. Part18.TopSurface = Enum.SurfaceType.Smooth
  267. SpecialMesh19.Parent = Part18
  268. SpecialMesh19.MeshId = "rbxassetid://11563093"
  269. SpecialMesh19.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  270. SpecialMesh19.TextureId = "rbxassetid://11563076"
  271. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  272. Weld20.Parent = Part18
  273. Weld20.C1 = CFrame.new(0, -1.49999905, 0, 1, 0, 0, 0, 1.19248806e-08, 1, 0, -1, 1.19248806e-08)
  274. Weld20.Part0 = Part18
  275. Weld20.Part1 = Part9
  276. Weld20.part1 = Part9
  277. for i,v in pairs(mas:GetChildren()) do
  278. v.Parent = workspace
  279. pcall(function() v:MakeJoints() end)
  280. end
  281. mas:Destroy()
  282. for i,v in pairs(cors) do
  283. spawn(function()
  284. pcall(v)
  285. end)
  286. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement