Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Decal3 = Instance.new("Decal")
- Weld4 = Instance.new("Weld")
- Humanoid5 = Instance.new("Humanoid")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Pants11 = Instance.new("Pants")
- Shirt12 = Instance.new("Shirt")
- Part13 = Instance.new("Part")
- Hat14 = Instance.new("Hat")
- Part15 = Instance.new("Part")
- SpecialMesh16 = Instance.new("SpecialMesh")
- Script17 = Instance.new("Script")
- Part18 = Instance.new("Part")
- SpecialMesh19 = Instance.new("SpecialMesh")
- Weld20 = Instance.new("Weld")
- Model0.Name = "BossNPC"
- Model0.Parent = mas
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(23, 4.5, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(23, 4.5, -79.5)
- Part1.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Part1.Size = Vector3.new(2, 1, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Light orange")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Light orange")
- SpecialMesh2.Parent = Part1
- SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal3.Name = "Monster Smile"
- Decal3.Parent = Part1
- Decal3.Texture = "http://www.roblox.com/asset/?id=1117061264"
- Weld4.Name = "HeadWeld"
- Weld4.Parent = Part1
- Weld4.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld4.C1 = CFrame.new(0, -0.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld4.Part0 = Part1
- Weld4.Part1 = Part15
- Weld4.part1 = Part15
- Humanoid5.Parent = Model0
- Humanoid5.LeftLeg = Part8
- Humanoid5.RightLeg = Part7
- Humanoid5.Torso = Part13
- Humanoid5.MaxHealth = 1000
- Humanoid5.Health = 1000
- Part6.Name = "Torso"
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(23, 3, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part6.Position = Vector3.new(23, 3, -79.5)
- Part6.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part6.Size = Vector3.new(2, 2, 1)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Black")
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Black")
- Part7.Name = "Right Leg"
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(23.5, 1, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.Position = Vector3.new(23.5, 1, -79.5)
- Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part7.Size = Vector3.new(1, 2, 1)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Black")
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Black")
- Part8.Name = "Left Leg"
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(22.5, 1, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(22.5, 1, -79.5)
- Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part8.Size = Vector3.new(1, 2, 1)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Black")
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Black")
- Part9.Name = "Left Arm"
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(21.5, 3, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part9.Position = Vector3.new(21.5, 3, -79.5)
- Part9.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Part9.Size = Vector3.new(1, 2, 1)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Light orange")
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Light orange")
- Part10.Name = "Right Arm"
- Part10.Parent = Model0
- Part10.CFrame = CFrame.new(24.5, 3, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.Position = Vector3.new(24.5, 3, -79.5)
- Part10.Color = Color3.new(0.917647, 0.721569, 0.572549)
- Part10.Size = Vector3.new(1, 2, 1)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Light orange")
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Light orange")
- Pants11.Name = "Pants"
- Pants11.Parent = Model0
- Shirt12.Name = "Shirt"
- Shirt12.Parent = Model0
- Shirt12.ShirtTemplate = "rbxassetid://1932690596"
- Part13.Name = "HumanoidRootPart"
- Part13.Parent = Model0
- Part13.CFrame = CFrame.new(23, 3, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part13.Position = Vector3.new(23, 3, -79.5)
- Part13.Color = Color3.new(0.152941, 0.27451, 0.176471)
- Part13.Transparency = 1
- Part13.Size = Vector3.new(2, 2, 1)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Earth green")
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.brickColor = BrickColor.new("Earth green")
- Hat14.Parent = Model0
- Hat14.AttachmentPoint = CFrame.new(0, -0.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Hat14.AttachmentPos = Vector3.new(0, -0.25, 0)
- Part15.Name = "Handle"
- Part15.Parent = Hat14
- Part15.CFrame = CFrame.new(23, 5.25, -79.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part15.Position = Vector3.new(23, 5.25, -79.5)
- Part15.Size = Vector3.new(1, 1, 1)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.CanCollide = false
- Part15.Locked = true
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part15.FormFactor = Enum.FormFactor.Symmetric
- Part15.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh16.Parent = Part15
- SpecialMesh16.MeshId = "http://www.roblox.com/asset/?id=1028713"
- SpecialMesh16.TextureId = "http://www.roblox.com/asset/?id=46356615"
- SpecialMesh16.MeshType = Enum.MeshType.FileMesh
- Script17.Name = "BOSS"
- Script17.Parent = Model0
- table.insert(cors,sandbox(Script17,function()
- --youngmacka123s boss script--
- local char = script.Parent
- local tors = char.Torso
- local ra = char["Right Arm"]
- local la = char["Left Arm"]
- local rl = char["Right Leg"]
- local ll = char["Left Leg"]
- local hed = char.Head
- local root = char.HumanoidRootPart
- root.CFrame = CFrame.new(0, 15, 0)
- --motors--
- local rootj = Instance.new("Motor6D",root)
- rootj.Name = "RootJoint"
- rootj.Part0 = tors
- rootj.Part1 = root
- local neck = Instance.new("Motor6D",tors)
- neck.Name = "Neck"
- neck.Part0 = hed
- neck.Part1 = tors
- neck.C0 = CFrame.new(0, -1.5, 0)
- local rs = Instance.new("Motor6D",tors)
- rs.Name = "Right Shoulder"
- rs.Part0 = ra
- rs.Part1 = tors
- rs.C0 = CFrame.new(1.5, 0, 0)
- local ls = Instance.new("Motor6D",tors)
- ls.Name = "Left Shoulder"
- ls.Part0 = la
- ls.Part1 = tors
- ls.C0 = CFrame.new(-1.5, 0, 0)
- local rh = Instance.new("Motor6D",tors)
- rh.Name = "Right Hip"
- rh.Part0 = rl
- rh.Part1 = tors
- rh.C0 = CFrame.new(0.5, 2, 0)
- local lh = Instance.new("Motor6D",tors)
- lh.Name = "Left Hip"
- lh.Part0 = ll
- lh.Part1 = tors
- lh.C0 = CFrame.new(-0.5, 2, 0)
- --attacks--
- attack = false
- function bomb()
- attack = true
- root.Anchored = true
- local bomb1 = char.Bomb:Clone()
- bomb1.Weld:Destroy()
- bomb1.Parent = workspace
- local bomb2 = char.Bomb:Clone()
- bomb2.Weld:Destroy()
- bomb2.Parent = workspace
- for i = 1, 15 do
- game:GetService("RunService").Heartbeat:Wait()
- rs.C0 = rs.C0:Lerp(CFrame.Angles(1.75, 0, -0.5) * CFrame.new(1.5, -1, -1), 0.1)
- end
- rs.C0 = CFrame.new(1.5, 0, 0)
- wait(2)
- local ff = Instance.new("ForceField",char)
- ff.Visible = false
- local ex1 = Instance.new("Explosion",bomb1)
- ex1.Position = bomb1.Position
- local ex2 = Instance.new("Explosion",bomb2)
- ex2.Position = bomb2.Position
- wait(0.5)
- bomb1:Destroy()
- bomb2:Destroy()
- ff:Destroy()
- attack = false
- root.Anchored = false
- end
- --randomly use attacks--
- char.Humanoid.Died:connect(function()
- attack = true
- end)
- while true do
- wait(2)
- decide = math.random(1, 1)
- if decide == 1 and attack == false then
- bomb()
- end
- end
- end))
- Part18.Name = "Bomb"
- Part18.Parent = Model0
- Part18.CFrame = CFrame.new(21.5, 1.50000095, -79.5, 1, 0, 0, 0, 1.19248806e-08, 1, 0, -1, 1.19248806e-08)
- Part18.Orientation = Vector3.new(-90, 0, 0)
- Part18.Position = Vector3.new(21.5, 1.50000095, -79.5)
- Part18.Rotation = Vector3.new(-90, 0, 0)
- Part18.Size = Vector3.new(1, 1, 1)
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh19.Parent = Part18
- SpecialMesh19.MeshId = "rbxassetid://11563093"
- SpecialMesh19.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- SpecialMesh19.TextureId = "rbxassetid://11563076"
- SpecialMesh19.MeshType = Enum.MeshType.FileMesh
- Weld20.Parent = Part18
- Weld20.C1 = CFrame.new(0, -1.49999905, 0, 1, 0, 0, 0, 1.19248806e-08, 1, 0, -1, 1.19248806e-08)
- Weld20.Part0 = Part18
- Weld20.Part1 = Part9
- Weld20.part1 = Part9
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement