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")
- Script2 = Instance.new("Script")
- Part3 = Instance.new("Part")
- Script4 = Instance.new("Script")
- Part5 = Instance.new("Part")
- Script6 = Instance.new("Script")
- Part7 = Instance.new("Part")
- Script8 = Instance.new("Script")
- Script9 = Instance.new("Script")
- Part10 = Instance.new("Part")
- Script11 = Instance.new("Script")
- Part12 = Instance.new("Part")
- Script13 = Instance.new("Script")
- Script14 = Instance.new("Script")
- Part15 = Instance.new("Part")
- Script16 = Instance.new("Script")
- Model17 = Instance.new("Model")
- Part18 = Instance.new("Part")
- Script19 = Instance.new("Script")
- Part20 = Instance.new("Part")
- Script21 = Instance.new("Script")
- Part22 = Instance.new("Part")
- Script23 = Instance.new("Script")
- Part24 = Instance.new("Part")
- Script25 = Instance.new("Script")
- Script26 = Instance.new("Script")
- Part27 = Instance.new("Part")
- Script28 = Instance.new("Script")
- Part29 = Instance.new("Part")
- Script30 = Instance.new("Script")
- Script31 = Instance.new("Script")
- Part32 = Instance.new("Part")
- Script33 = Instance.new("Script")
- Model0.Parent = mas
- Part1.Name = "Slimey"
- Part1.Parent = Model0
- Part1.Material = Enum.Material.Neon
- Part1.BrickColor = BrickColor.new("Teal")
- Part1.Reflectance = 1
- Part1.Anchored = true
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.Size = Vector3.new(1.18000019, 1.18000019, 1.18000019)
- Part1.CFrame = CFrame.new(-20.1601105, 7.00999737, -16.9701653, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.BackSurface = Enum.SurfaceType.Glue
- Part1.BottomSurface = Enum.SurfaceType.Glue
- Part1.FrontSurface = Enum.SurfaceType.Glue
- Part1.LeftSurface = Enum.SurfaceType.Glue
- Part1.RightSurface = Enum.SurfaceType.Glue
- Part1.TopSurface = Enum.SurfaceType.Glue
- Part1.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Part1.Position = Vector3.new(-20.1601105, 7.00999737, -16.9701653)
- Part1.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Script2.Name = "Electric Brick"
- Script2.Parent = Part1
- table.insert(cors,sandbox(Script2,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part3.Name = "Slimey"
- Part3.Parent = Model0
- Part3.Material = Enum.Material.Neon
- Part3.BrickColor = BrickColor.new("New Yeller")
- Part3.Reflectance = 1
- Part3.Anchored = true
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.Size = Vector3.new(1.18000019, 1.18000019, 1.18000019)
- Part3.CFrame = CFrame.new(-23.7001114, 5.82999706, -18.1501656, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.BackSurface = Enum.SurfaceType.Glue
- Part3.BottomSurface = Enum.SurfaceType.Glue
- Part3.FrontSurface = Enum.SurfaceType.Glue
- Part3.LeftSurface = Enum.SurfaceType.Glue
- Part3.RightSurface = Enum.SurfaceType.Glue
- Part3.TopSurface = Enum.SurfaceType.Glue
- Part3.Color = Color3.new(1, 1, 0)
- Part3.Position = Vector3.new(-23.7001114, 5.82999706, -18.1501656)
- Part3.Color = Color3.new(1, 1, 0)
- Script4.Name = "Electric Brick"
- Script4.Parent = Part3
- table.insert(cors,sandbox(Script4,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part5.Name = "Slimey"
- Part5.Parent = Model0
- Part5.Material = Enum.Material.Neon
- Part5.BrickColor = BrickColor.new("New Yeller")
- Part5.Reflectance = 1
- Part5.Anchored = true
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.Size = Vector3.new(1.18000019, 1.18000019, 1.18000019)
- Part5.CFrame = CFrame.new(-17.8001099, 3.46999884, -18.1501656, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part5.BackSurface = Enum.SurfaceType.Glue
- Part5.BottomSurface = Enum.SurfaceType.Glue
- Part5.FrontSurface = Enum.SurfaceType.Glue
- Part5.LeftSurface = Enum.SurfaceType.Glue
- Part5.RightSurface = Enum.SurfaceType.Glue
- Part5.TopSurface = Enum.SurfaceType.Glue
- Part5.Color = Color3.new(1, 1, 0)
- Part5.Position = Vector3.new(-17.8001099, 3.46999884, -18.1501656)
- Part5.Color = Color3.new(1, 1, 0)
- Script6.Name = "Electric Brick"
- Script6.Parent = Part5
- table.insert(cors,sandbox(Script6,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part7.Name = "Slimey"
- Part7.Parent = Model0
- Part7.Material = Enum.Material.Neon
- Part7.BrickColor = BrickColor.new("New Yeller")
- Part7.Reflectance = 1
- Part7.Anchored = true
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.Size = Vector3.new(1.18000019, 1.18000019, 1.18000019)
- Part7.CFrame = CFrame.new(-22.5201111, 2.28999996, -20.5101662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.BackSurface = Enum.SurfaceType.Glue
- Part7.BottomSurface = Enum.SurfaceType.Glue
- Part7.FrontSurface = Enum.SurfaceType.Glue
- Part7.LeftSurface = Enum.SurfaceType.Glue
- Part7.RightSurface = Enum.SurfaceType.Glue
- Part7.TopSurface = Enum.SurfaceType.Glue
- Part7.Color = Color3.new(1, 1, 0)
- Part7.Position = Vector3.new(-22.5201111, 2.28999996, -20.5101662)
- Part7.Color = Color3.new(1, 1, 0)
- Script8.Name = "Electric Brick"
- Script8.Parent = Part7
- table.insert(cors,sandbox(Script8,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script9.Parent = Model0
- table.insert(cors,sandbox(Script9,function()
- --Particle Slime by renniej--
- -- Particle Slime is an interesting concept of Roblox enemy completely designed and built by
- -- renniej(aka, me). Originally inspired by an episode from Star Treck, I designed this using the
- -- .magnitude as a way to determine which slime particle is closest and farthest away from the target.
- -- To move closer to the target, the slime takes the particle farthest away and puts it in a random
- -- position closer to the target it is chasing. This causes the slime to move slowly, but surely towards it's
- -- prey. Obviously, the slime has no Humanoid, meaning that it can't be killed unless somebody
- -- constructs a specific tool to do so. Remember, I made this first! Enjoy :P
- -------------
- spaces = 2 -- How many spaces it travels per move(1-3 is the best, preferably 2)
- speed = 10000000000000000000000000000000000000--this is how fast the slime moves
- grabslime = true --Whether the slime will grab Slimeys from Workspace or not; it doesn't affect much
- ------------- though. Basically, if there is any bricks in Workspace named "Slimey", it will add them to itself.
- function findTarget() -- Ah, the findTarget() command. This command lets the slime find it's next victem.
- g = game.Workspace:getChildren()
- for i=1, #g do
- if g[i]:findFirstChild("HumanoidRootPart") ~= nil then
- if T == nil then
- T = g[i].HumanoidRootPart
- else
- if (g[i].HumanoidRootPart.Position - script.Parent.Slimey.Position).magnitude < (T.Position - script.Parent.Slimey.Position).magnitude then
- T = g[i].HumanoidRootPart
- end
- end
- end
- if grabslime == true and g[i].Name == "Slimey" and g[i].className == "Part" and g[i].Size == Vector3.new(1,1,1) then
- g[i].Parent = script.Parent
- end
- end
- end
- function fade(b)-- This lets a brick disappear by "fading" into invisibility, but you can't see the effect very
- while b.Transparency < 1 do-- easily unless the slime is at a slow speed.
- b.Transparency = b.Transparency + 0.01*speed*#p/4
- wait(0.001)
- end
- b.Transparency = 1
- end
- function unfade(b) -- This lets a brick appear by "fading" into visibility, but you can't see the effect very
- while b.Transparency > 0 do -- easily unless the slime is at a slow speed.
- b.Transparency = b.Transparency - 0.01*speed*#p/4
- wait(0.001)
- end
- b.Transparency = 0
- end
- while true do
- T = nil -- Erases previous target from memory.
- findTarget() -- Finds the new closest target!
- r = math.random(1,20) --This little bit is supposed to allow the slime to take bigger "steps" every
- if r == 1 or r == 2 or r == 3 then -- once and a while, thus allowing it to travel through thick walls.
- space = spaces + 1
- elseif r == 4 or r == 5 then
- space = spaces + 2
- elseif r == 6 then
- space = spaces + 3
- else
- space = spaces
- end
- if T ~= nil then --If target exists, then attack!
- p = script.Parent:getChildren() -- Makes a list of the slime's "Slimeys"
- for i=1, #p do
- if p[i].Name == "Slimey" then
- if prev == nil then
- prev = p[i]
- prev2 = p[i]
- end
- if (p[i].Position - T.Position).magnitude > (prev.Position - T.Position).magnitude then
- prev = p[i] -- This finds the Slimey closest to the target.
- end
- if (p[i].Position - T.Position).magnitude < (prev2.Position - T.Position).magnitude then
- prev2 = p[i] -- This finds the Slimey farthest away from the target.
- end
- end
- end
- fade(prev) --Make Slimey dissappear. VV- Make Slimey move closer to target.
- prev.Position = Vector3.new(prev2.Position.x+math.random(-space,space), prev2.Position.y-1, prev2.Position.z+math.random(-space,space))
- unfade(prev) -- Make Slimey appear again.
- end
- wait(0.01) -- And then wait... :P
- end -- Repeat!!
- end))
- Part10.Name = "Slimey"
- Part10.Parent = Model0
- Part10.Material = Enum.Material.Neon
- Part10.BrickColor = BrickColor.new("New Yeller")
- Part10.Reflectance = 1
- Part10.Anchored = true
- Part10.FormFactor = Enum.FormFactor.Symmetric
- Part10.Size = Vector3.new(1.18000019, 1.18000019, 1.18000019)
- Part10.CFrame = CFrame.new(-22.5201111, 7.00999737, -18.1501656, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.BackSurface = Enum.SurfaceType.Glue
- Part10.BottomSurface = Enum.SurfaceType.Glue
- Part10.FrontSurface = Enum.SurfaceType.Glue
- Part10.LeftSurface = Enum.SurfaceType.Glue
- Part10.RightSurface = Enum.SurfaceType.Glue
- Part10.TopSurface = Enum.SurfaceType.Glue
- Part10.Color = Color3.new(1, 1, 0)
- Part10.Position = Vector3.new(-22.5201111, 7.00999737, -18.1501656)
- Part10.Color = Color3.new(1, 1, 0)
- Script11.Name = "Electric Brick"
- Script11.Parent = Part10
- table.insert(cors,sandbox(Script11,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part12.Name = "Slimey"
- Part12.Parent = Model0
- Part12.Material = Enum.Material.Neon
- Part12.BrickColor = BrickColor.new("Teal")
- Part12.Reflectance = 1
- Part12.Anchored = true
- Part12.FormFactor = Enum.FormFactor.Symmetric
- Part12.Size = Vector3.new(1.18000019, 1.18000019, 1.18000019)
- Part12.CFrame = CFrame.new(-22.5201111, 5.82999706, -18.1501656, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part12.BackSurface = Enum.SurfaceType.Glue
- Part12.BottomSurface = Enum.SurfaceType.Glue
- Part12.FrontSurface = Enum.SurfaceType.Glue
- Part12.LeftSurface = Enum.SurfaceType.Glue
- Part12.RightSurface = Enum.SurfaceType.Glue
- Part12.TopSurface = Enum.SurfaceType.Glue
- Part12.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Part12.Position = Vector3.new(-22.5201111, 5.82999706, -18.1501656)
- Part12.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Script13.Name = "Electric Brick"
- Script13.Parent = Part12
- table.insert(cors,sandbox(Script13,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script14.Parent = Model0
- table.insert(cors,sandbox(Script14,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestHumanoidRootPart(pos)
- local list = game.Workspace:children()
- local HumanoidRootPart = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- HumanoidRootPart = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return HumanoidRootPart
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestHumanoidRootPart(script.Parent.HumanoidRootPart.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Part15.Name = "Slimey"
- Part15.Parent = Model0
- Part15.Material = Enum.Material.Neon
- Part15.BrickColor = BrickColor.new("New Yeller")
- Part15.Reflectance = 1
- Part15.Anchored = true
- Part15.FormFactor = Enum.FormFactor.Symmetric
- Part15.Size = Vector3.new(1.18000019, 1.18000019, 1.18000019)
- Part15.CFrame = CFrame.new(-18.9801102, 1.11000085, -21.6901665, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part15.BackSurface = Enum.SurfaceType.Glue
- Part15.BottomSurface = Enum.SurfaceType.Glue
- Part15.FrontSurface = Enum.SurfaceType.Glue
- Part15.LeftSurface = Enum.SurfaceType.Glue
- Part15.RightSurface = Enum.SurfaceType.Glue
- Part15.TopSurface = Enum.SurfaceType.Glue
- Part15.Color = Color3.new(1, 1, 0)
- Part15.Position = Vector3.new(-18.9801102, 1.11000085, -21.6901665)
- Part15.Color = Color3.new(1, 1, 0)
- Script16.Name = "Electric Brick"
- Script16.Parent = Part15
- table.insert(cors,sandbox(Script16,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Model17.Parent = mas
- Part18.Name = "Slimey"
- Part18.Parent = Model17
- Part18.Material = Enum.Material.Neon
- Part18.BrickColor = BrickColor.new("Teal")
- Part18.Reflectance = 1
- Part18.Rotation = Vector3.new(0, -40.6699982, 0)
- Part18.Anchored = true
- Part18.FormFactor = Enum.FormFactor.Symmetric
- Part18.Size = Vector3.new(1.68666792, 1.68666792, 1.68666792)
- Part18.CFrame = CFrame.new(-22.2817764, 9.7966671, -16.3870449, 0.758485317, 0, -0.651690245, 0, 1, 0, 0.651690245, 0, 0.758485317)
- Part18.BackSurface = Enum.SurfaceType.Glue
- Part18.BottomSurface = Enum.SurfaceType.Glue
- Part18.FrontSurface = Enum.SurfaceType.Glue
- Part18.LeftSurface = Enum.SurfaceType.Glue
- Part18.RightSurface = Enum.SurfaceType.Glue
- Part18.TopSurface = Enum.SurfaceType.Glue
- Part18.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Part18.Position = Vector3.new(-22.2817764, 9.7966671, -16.3870449)
- Part18.Orientation = Vector3.new(0, -40.6699982, 0)
- Part18.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Script19.Name = "Electric Brick"
- Script19.Parent = Part18
- table.insert(cors,sandbox(Script19,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part20.Name = "Slimey"
- Part20.Parent = Model17
- Part20.Material = Enum.Material.Neon
- Part20.BrickColor = BrickColor.new("New Yeller")
- Part20.Reflectance = 1
- Part20.Rotation = Vector3.new(0, -40.6699982, 0)
- Part20.Anchored = true
- Part20.FormFactor = Enum.FormFactor.Symmetric
- Part20.Size = Vector3.new(1.68666792, 1.68666792, 1.68666792)
- Part20.CFrame = CFrame.new(-25.0205193, 8.10999966, -20.9639244, 0.758485317, 0, -0.651690245, 0, 1, 0, 0.651690245, 0, 0.758485317)
- Part20.BackSurface = Enum.SurfaceType.Glue
- Part20.BottomSurface = Enum.SurfaceType.Glue
- Part20.FrontSurface = Enum.SurfaceType.Glue
- Part20.LeftSurface = Enum.SurfaceType.Glue
- Part20.RightSurface = Enum.SurfaceType.Glue
- Part20.TopSurface = Enum.SurfaceType.Glue
- Part20.Color = Color3.new(1, 1, 0)
- Part20.Position = Vector3.new(-25.0205193, 8.10999966, -20.9639244)
- Part20.Orientation = Vector3.new(0, -40.6699982, 0)
- Part20.Color = Color3.new(1, 1, 0)
- Script21.Name = "Electric Brick"
- Script21.Parent = Part20
- table.insert(cors,sandbox(Script21,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part22.Name = "Slimey"
- Part22.Parent = Model17
- Part22.Material = Enum.Material.Neon
- Part22.BrickColor = BrickColor.new("New Yeller")
- Part22.Reflectance = 1
- Part22.Rotation = Vector3.new(0, -40.6699982, 0)
- Part22.Anchored = true
- Part22.FormFactor = Enum.FormFactor.Symmetric
- Part22.Size = Vector3.new(1.68666792, 1.68666792, 1.68666792)
- Part22.CFrame = CFrame.new(-18.6239586, 4.73666716, -15.4679813, 0.758485317, 0, -0.651690245, 0, 1, 0, 0.651690245, 0, 0.758485317)
- Part22.BackSurface = Enum.SurfaceType.Glue
- Part22.BottomSurface = Enum.SurfaceType.Glue
- Part22.FrontSurface = Enum.SurfaceType.Glue
- Part22.LeftSurface = Enum.SurfaceType.Glue
- Part22.RightSurface = Enum.SurfaceType.Glue
- Part22.TopSurface = Enum.SurfaceType.Glue
- Part22.Color = Color3.new(1, 1, 0)
- Part22.Position = Vector3.new(-18.6239586, 4.73666716, -15.4679813)
- Part22.Orientation = Vector3.new(0, -40.6699982, 0)
- Part22.Color = Color3.new(1, 1, 0)
- Script23.Name = "Electric Brick"
- Script23.Parent = Part22
- table.insert(cors,sandbox(Script23,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part24.Name = "Slimey"
- Part24.Parent = Model17
- Part24.Material = Enum.Material.Neon
- Part24.BrickColor = BrickColor.new("New Yeller")
- Part24.Reflectance = 1
- Part24.Rotation = Vector3.new(0, -40.6699982, 0)
- Part24.Anchored = true
- Part24.FormFactor = Enum.FormFactor.Symmetric
- Part24.Size = Vector3.new(1.68666792, 1.68666792, 1.68666792)
- Part24.CFrame = CFrame.new(-21.5428333, 3.05000091, -22.4233532, 0.758485317, 0, -0.651690245, 0, 1, 0, 0.651690245, 0, 0.758485317)
- Part24.BackSurface = Enum.SurfaceType.Glue
- Part24.BottomSurface = Enum.SurfaceType.Glue
- Part24.FrontSurface = Enum.SurfaceType.Glue
- Part24.LeftSurface = Enum.SurfaceType.Glue
- Part24.RightSurface = Enum.SurfaceType.Glue
- Part24.TopSurface = Enum.SurfaceType.Glue
- Part24.Color = Color3.new(1, 1, 0)
- Part24.Position = Vector3.new(-21.5428333, 3.05000091, -22.4233532)
- Part24.Orientation = Vector3.new(0, -40.6699982, 0)
- Part24.Color = Color3.new(1, 1, 0)
- Script25.Name = "Electric Brick"
- Script25.Parent = Part24
- table.insert(cors,sandbox(Script25,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script26.Parent = Model17
- table.insert(cors,sandbox(Script26,function()
- --Particle Slime by renniej--
- -- Particle Slime is an interesting concept of Roblox enemy completely designed and built by
- -- renniej(aka, me). Originally inspired by an episode from Star Treck, I designed this using the
- -- .magnitude as a way to determine which slime particle is closest and farthest away from the target.
- -- To move closer to the target, the slime takes the particle farthest away and puts it in a random
- -- position closer to the target it is chasing. This causes the slime to move slowly, but surely towards it's
- -- prey. Obviously, the slime has no Humanoid, meaning that it can't be killed unless somebody
- -- constructs a specific tool to do so. Remember, I made this first! Enjoy :P
- -------------
- spaces = 2 -- How many spaces it travels per move(1-3 is the best, preferably 2)
- speed = 10000000000000000000000000000000000000--this is how fast the slime moves
- grabslime = true --Whether the slime will grab Slimeys from Workspace or not; it doesn't affect much
- ------------- though. Basically, if there is any bricks in Workspace named "Slimey", it will add them to itself.
- function findTarget() -- Ah, the findTarget() command. This command lets the slime find it's next victem.
- g = game.Workspace:getChildren()
- for i=1, #g do
- if g[i]:findFirstChild("HumanoidRootPart") ~= nil then
- if T == nil then
- T = g[i].HumanoidRootPart
- else
- if (g[i].HumanoidRootPart.Position - script.Parent.Slimey.Position).magnitude < (T.Position - script.Parent.Slimey.Position).magnitude then
- T = g[i].HumanoidRootPart
- end
- end
- end
- if grabslime == true and g[i].Name == "Slimey" and g[i].className == "Part" and g[i].Size == Vector3.new(1,1,1) then
- g[i].Parent = script.Parent
- end
- end
- end
- function fade(b)-- This lets a brick disappear by "fading" into invisibility, but you can't see the effect very
- while b.Transparency < 1 do-- easily unless the slime is at a slow speed.
- b.Transparency = b.Transparency + 0.01*speed*#p/4
- wait(0.001)
- end
- b.Transparency = 1
- end
- function unfade(b) -- This lets a brick appear by "fading" into visibility, but you can't see the effect very
- while b.Transparency > 0 do -- easily unless the slime is at a slow speed.
- b.Transparency = b.Transparency - 0.01*speed*#p/4
- wait(0.001)
- end
- b.Transparency = 0
- end
- while true do
- T = nil -- Erases previous target from memory.
- findTarget() -- Finds the new closest target!
- r = math.random(1,20) --This little bit is supposed to allow the slime to take bigger "steps" every
- if r == 1 or r == 2 or r == 3 then -- once and a while, thus allowing it to travel through thick walls.
- space = spaces + 1
- elseif r == 4 or r == 5 then
- space = spaces + 2
- elseif r == 6 then
- space = spaces + 3
- else
- space = spaces
- end
- if T ~= nil then --If target exists, then attack!
- p = script.Parent:getChildren() -- Makes a list of the slime's "Slimeys"
- for i=1, #p do
- if p[i].Name == "Slimey" then
- if prev == nil then
- prev = p[i]
- prev2 = p[i]
- end
- if (p[i].Position - T.Position).magnitude > (prev.Position - T.Position).magnitude then
- prev = p[i] -- This finds the Slimey closest to the target.
- end
- if (p[i].Position - T.Position).magnitude < (prev2.Position - T.Position).magnitude then
- prev2 = p[i] -- This finds the Slimey farthest away from the target.
- end
- end
- end
- fade(prev) --Make Slimey dissappear. VV- Make Slimey move closer to target.
- prev.Position = Vector3.new(prev2.Position.x+math.random(-space,space), prev2.Position.y-1, prev2.Position.z+math.random(-space,space))
- unfade(prev) -- Make Slimey appear again.
- end
- wait(0.01) -- And then wait... :P
- end -- Repeat!!
- end))
- Part27.Name = "Slimey"
- Part27.Parent = Model17
- Part27.Material = Enum.Material.Neon
- Part27.BrickColor = BrickColor.new("New Yeller")
- Part27.Reflectance = 1
- Part27.Rotation = Vector3.new(0, -40.6699982, 0)
- Part27.Anchored = true
- Part27.FormFactor = Enum.FormFactor.Symmetric
- Part27.Size = Vector3.new(1.68666792, 1.68666792, 1.68666792)
- Part27.CFrame = CFrame.new(-23.7412071, 9.7966671, -19.8647327, 0.758485317, 0, -0.651690245, 0, 1, 0, 0.651690245, 0, 0.758485317)
- Part27.BackSurface = Enum.SurfaceType.Glue
- Part27.BottomSurface = Enum.SurfaceType.Glue
- Part27.FrontSurface = Enum.SurfaceType.Glue
- Part27.LeftSurface = Enum.SurfaceType.Glue
- Part27.RightSurface = Enum.SurfaceType.Glue
- Part27.TopSurface = Enum.SurfaceType.Glue
- Part27.Color = Color3.new(1, 1, 0)
- Part27.Position = Vector3.new(-23.7412071, 9.7966671, -19.8647327)
- Part27.Orientation = Vector3.new(0, -40.6699982, 0)
- Part27.Color = Color3.new(1, 1, 0)
- Script28.Name = "Electric Brick"
- Script28.Parent = Part27
- table.insert(cors,sandbox(Script28,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part29.Name = "Slimey"
- Part29.Parent = Model17
- Part29.Material = Enum.Material.Neon
- Part29.BrickColor = BrickColor.new("Teal")
- Part29.Reflectance = 1
- Part29.Rotation = Vector3.new(0, -40.6699982, 0)
- Part29.Anchored = true
- Part29.FormFactor = Enum.FormFactor.Symmetric
- Part29.Size = Vector3.new(1.68666792, 1.68666792, 1.68666792)
- Part29.CFrame = CFrame.new(-23.7412071, 8.10999966, -19.8647327, 0.758485317, 0, -0.651690245, 0, 1, 0, 0.651690245, 0, 0.758485317)
- Part29.BackSurface = Enum.SurfaceType.Glue
- Part29.BottomSurface = Enum.SurfaceType.Glue
- Part29.FrontSurface = Enum.SurfaceType.Glue
- Part29.LeftSurface = Enum.SurfaceType.Glue
- Part29.RightSurface = Enum.SurfaceType.Glue
- Part29.TopSurface = Enum.SurfaceType.Glue
- Part29.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Part29.Position = Vector3.new(-23.7412071, 8.10999966, -19.8647327)
- Part29.Orientation = Vector3.new(0, -40.6699982, 0)
- Part29.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Script30.Name = "Electric Brick"
- Script30.Parent = Part29
- table.insert(cors,sandbox(Script30,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script31.Parent = Model17
- table.insert(cors,sandbox(Script31,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestHumanoidRootPart(pos)
- local list = game.Workspace:children()
- local HumanoidRootPart = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- HumanoidRootPart = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return HumanoidRootPart
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestHumanoidRootPart(script.Parent.HumanoidRootPart.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Part32.Name = "Slimey"
- Part32.Parent = Model17
- Part32.Material = Enum.Material.Neon
- Part32.BrickColor = BrickColor.new("New Yeller")
- Part32.Reflectance = 1
- Part32.Rotation = Vector3.new(0, -40.6699982, 0)
- Part32.Anchored = true
- Part32.FormFactor = Enum.FormFactor.Symmetric
- Part32.Size = Vector3.new(1.68666792, 1.68666792, 1.68666792)
- Part32.CFrame = CFrame.new(-16.6057148, 1.36333466, -20.4050941, 0.758485317, 0, -0.651690245, 0, 1, 0, 0.651690245, 0, 0.758485317)
- Part32.BackSurface = Enum.SurfaceType.Glue
- Part32.BottomSurface = Enum.SurfaceType.Glue
- Part32.FrontSurface = Enum.SurfaceType.Glue
- Part32.LeftSurface = Enum.SurfaceType.Glue
- Part32.RightSurface = Enum.SurfaceType.Glue
- Part32.TopSurface = Enum.SurfaceType.Glue
- Part32.Color = Color3.new(1, 1, 0)
- Part32.Position = Vector3.new(-16.6057148, 1.36333466, -20.4050941)
- Part32.Orientation = Vector3.new(0, -40.6699982, 0)
- Part32.Color = Color3.new(1, 1, 0)
- Script33.Name = "Electric Brick"
- Script33.Parent = Part32
- table.insert(cors,sandbox(Script33,function()
- function stick(x, y)
- weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function onTouched(part)
- local h = part.Parent:findFirstChild("Humanoid") or part.Parent:findFirstChild("Zombie")
- if h~=nil then
- wait(0.001)
- h.Health = 0
- children = h.Parent:children()
- part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("HumanoidRootPart").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(26)
- part.Parent:findFirstChild("Head").Anchored = true
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = true
- part.Parent:findFirstChild("Left Arm").Anchored = true
- part.Parent:findFirstChild("Right Arm").Anchored = true
- part.Parent:findFirstChild("Left Leg").Anchored = true
- part.Parent:findFirstChild("Right Leg").Anchored = true
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 1
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 1
- part.Parent:findFirstChild("Left Arm").Reflectance = 1
- part.Parent:findFirstChild("Right Arm").Reflectance = 1
- part.Parent:findFirstChild("Left Leg").Reflectance = 1
- part.Parent:findFirstChild("Right Leg").Reflectance = 1
- wait(0.1)
- part.Parent:findFirstChild("Head").Reflectance = 0
- part.Parent:findFirstChild("HumanoidRootPart").Reflectance = 0
- part.Parent:findFirstChild("Left Arm").Reflectance = 0
- part.Parent:findFirstChild("Right Arm").Reflectance = 0
- part.Parent:findFirstChild("Left Leg").Reflectance = 0
- part.Parent:findFirstChild("Right Leg").Reflectance = 0
- wait(0.1)
- part.Parent:findFirstChild("Head").Anchored = false
- part.Parent:findFirstChild("HumanoidRootPart").Anchored = false
- part.Parent:findFirstChild("Left Arm").Anchored = false
- part.Parent:findFirstChild("Right Arm").Anchored = false
- part.Parent:findFirstChild("Left Leg").Anchored = false
- part.Parent:findFirstChild("Right Leg").Anchored = false
- for i=1,#children do
- if(children[i].className == "Part" and children[i].Name ~= "HumanoidRootPart") then stick(children[i], h.Parent.HumanoidRootPart) end
- if(children[i].className == "Hat") then stick(children[i].Handle, h.Parent.HumanoidRootPart) end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- 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