Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made By Bartus2009_Bro/GabeTheDog
- --Discord: Gabe#2408
- --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")
- Model1 = Instance.new("Model")
- Humanoid2 = Instance.new("Humanoid")
- BodyColors3 = Instance.new("BodyColors")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- SpecialMesh6 = Instance.new("SpecialMesh")
- Decal7 = Instance.new("Decal")
- Weld8 = Instance.new("Weld")
- Weld9 = Instance.new("Weld")
- Weld10 = Instance.new("Weld")
- Weld11 = Instance.new("Weld")
- Weld12 = Instance.new("Weld")
- Weld13 = Instance.new("Weld")
- Weld14 = Instance.new("Weld")
- Weld15 = Instance.new("Weld")
- Weld16 = Instance.new("Weld")
- Script17 = Instance.new("Script")
- IntValue18 = Instance.new("IntValue")
- Script19 = Instance.new("Script")
- Script20 = Instance.new("Script")
- Part21 = Instance.new("Part")
- Part22 = Instance.new("Part")
- Attachment23 = Instance.new("Attachment")
- Attachment24 = Instance.new("Attachment")
- RodConstraint25 = Instance.new("RodConstraint")
- Part26 = Instance.new("Part")
- Decal27 = Instance.new("Decal")
- Motor28 = Instance.new("Motor")
- Motor29 = Instance.new("Motor")
- Motor30 = Instance.new("Motor")
- Motor31 = Instance.new("Motor")
- Snap32 = Instance.new("Snap")
- Part33 = Instance.new("Part")
- Script34 = Instance.new("Script")
- Script35 = Instance.new("Script")
- Model36 = Instance.new("Model")
- Humanoid37 = Instance.new("Humanoid")
- BodyColors38 = Instance.new("BodyColors")
- Part39 = Instance.new("Part")
- Attachment40 = Instance.new("Attachment")
- Part41 = Instance.new("Part")
- SpecialMesh42 = Instance.new("SpecialMesh")
- Decal43 = Instance.new("Decal")
- Weld44 = Instance.new("Weld")
- Weld45 = Instance.new("Weld")
- Weld46 = Instance.new("Weld")
- Weld47 = Instance.new("Weld")
- Weld48 = Instance.new("Weld")
- Weld49 = Instance.new("Weld")
- Weld50 = Instance.new("Weld")
- Weld51 = Instance.new("Weld")
- Weld52 = Instance.new("Weld")
- Script53 = Instance.new("Script")
- IntValue54 = Instance.new("IntValue")
- Script55 = Instance.new("Script")
- Script56 = Instance.new("Script")
- Part57 = Instance.new("Part")
- Part58 = Instance.new("Part")
- Attachment59 = Instance.new("Attachment")
- RodConstraint60 = Instance.new("RodConstraint")
- Part61 = Instance.new("Part")
- Decal62 = Instance.new("Decal")
- Motor63 = Instance.new("Motor")
- Motor64 = Instance.new("Motor")
- Motor65 = Instance.new("Motor")
- Motor66 = Instance.new("Motor")
- Snap67 = Instance.new("Snap")
- Part68 = Instance.new("Part")
- Script69 = Instance.new("Script")
- Script70 = Instance.new("Script")
- Part71 = Instance.new("Part")
- Part72 = Instance.new("Part")
- Part73 = Instance.new("Part")
- Attachment74 = Instance.new("Attachment")
- Part75 = Instance.new("Part")
- Part76 = Instance.new("Part")
- Attachment77 = Instance.new("Attachment")
- Part78 = Instance.new("Part")
- Part79 = Instance.new("Part")
- Part80 = Instance.new("Part")
- Part81 = Instance.new("Part")
- Part82 = Instance.new("Part")
- Part83 = Instance.new("Part")
- Part84 = Instance.new("Part")
- Part85 = Instance.new("Part")
- Model86 = Instance.new("Model")
- Part87 = Instance.new("Part")
- SpecialMesh88 = Instance.new("SpecialMesh")
- Sound89 = Instance.new("Sound")
- Sound90 = Instance.new("Sound")
- Sound91 = Instance.new("Sound")
- Sound92 = Instance.new("Sound")
- Sound93 = Instance.new("Sound")
- Sound94 = Instance.new("Sound")
- Sound95 = Instance.new("Sound")
- Sound96 = Instance.new("Sound")
- Sound97 = Instance.new("Sound")
- Sound98 = Instance.new("Sound")
- Sound99 = Instance.new("Sound")
- Sound100 = Instance.new("Sound")
- Sound101 = Instance.new("Sound")
- Sound102 = Instance.new("Sound")
- Sound103 = Instance.new("Sound")
- Sound104 = Instance.new("Sound")
- Sound105 = Instance.new("Sound")
- Sound106 = Instance.new("Sound")
- Sound107 = Instance.new("Sound")
- Sound108 = Instance.new("Sound")
- Sound109 = Instance.new("Sound")
- Sound110 = Instance.new("Sound")
- Sound111 = Instance.new("Sound")
- Sound112 = Instance.new("Sound")
- Sound113 = Instance.new("Sound")
- Sound114 = Instance.new("Sound")
- Sound115 = Instance.new("Sound")
- Sound116 = Instance.new("Sound")
- Sound117 = Instance.new("Sound")
- Sound118 = Instance.new("Sound")
- Sound119 = Instance.new("Sound")
- Sound120 = Instance.new("Sound")
- Sound121 = Instance.new("Sound")
- Sound122 = Instance.new("Sound")
- Sound123 = Instance.new("Sound")
- Sound124 = Instance.new("Sound")
- Sound125 = Instance.new("Sound")
- Sound126 = Instance.new("Sound")
- Sound127 = Instance.new("Sound")
- Sound128 = Instance.new("Sound")
- Sound129 = Instance.new("Sound")
- Sound130 = Instance.new("Sound")
- Sound131 = Instance.new("Sound")
- Sound132 = Instance.new("Sound")
- Sound133 = Instance.new("Sound")
- Sound134 = Instance.new("Sound")
- Sound135 = Instance.new("Sound")
- Sound136 = Instance.new("Sound")
- Sound137 = Instance.new("Sound")
- Sound138 = Instance.new("Sound")
- Sound139 = Instance.new("Sound")
- Sound140 = Instance.new("Sound")
- Sound141 = Instance.new("Sound")
- Sound142 = Instance.new("Sound")
- Sound143 = Instance.new("Sound")
- Sound144 = Instance.new("Sound")
- Sound145 = Instance.new("Sound")
- Sound146 = Instance.new("Sound")
- Sound147 = Instance.new("Sound")
- Sound148 = Instance.new("Sound")
- Sound149 = Instance.new("Sound")
- Sound150 = Instance.new("Sound")
- Sound151 = Instance.new("Sound")
- Sound152 = Instance.new("Sound")
- Sound153 = Instance.new("Sound")
- Sound154 = Instance.new("Sound")
- Sound155 = Instance.new("Sound")
- Sound156 = Instance.new("Sound")
- Sound157 = Instance.new("Sound")
- Sound158 = Instance.new("Sound")
- Sound159 = Instance.new("Sound")
- Sound160 = Instance.new("Sound")
- Sound161 = Instance.new("Sound")
- Sound162 = Instance.new("Sound")
- Sound163 = Instance.new("Sound")
- Sound164 = Instance.new("Sound")
- Sound165 = Instance.new("Sound")
- Sound166 = Instance.new("Sound")
- Sound167 = Instance.new("Sound")
- Sound168 = Instance.new("Sound")
- Sound169 = Instance.new("Sound")
- Sound170 = Instance.new("Sound")
- Sound171 = Instance.new("Sound")
- Sound172 = Instance.new("Sound")
- Sound173 = Instance.new("Sound")
- Sound174 = Instance.new("Sound")
- Sound175 = Instance.new("Sound")
- Sound176 = Instance.new("Sound")
- Sound177 = Instance.new("Sound")
- Sound178 = Instance.new("Sound")
- Sound179 = Instance.new("Sound")
- Sound180 = Instance.new("Sound")
- Sound181 = Instance.new("Sound")
- Sound182 = Instance.new("Sound")
- Sound183 = Instance.new("Sound")
- Sound184 = Instance.new("Sound")
- Sound185 = Instance.new("Sound")
- Sound186 = Instance.new("Sound")
- Sound187 = Instance.new("Sound")
- Sound188 = Instance.new("Sound")
- Sound189 = Instance.new("Sound")
- Sound190 = Instance.new("Sound")
- Sound191 = Instance.new("Sound")
- Sound192 = Instance.new("Sound")
- Sound193 = Instance.new("Sound")
- Sound194 = Instance.new("Sound")
- Sound195 = Instance.new("Sound")
- Sound196 = Instance.new("Sound")
- Sound197 = Instance.new("Sound")
- Sound198 = Instance.new("Sound")
- Sound199 = Instance.new("Sound")
- Sound200 = Instance.new("Sound")
- Sound201 = Instance.new("Sound")
- Sound202 = Instance.new("Sound")
- Sound203 = Instance.new("Sound")
- Sound204 = Instance.new("Sound")
- Sound205 = Instance.new("Sound")
- Sound206 = Instance.new("Sound")
- Sound207 = Instance.new("Sound")
- Sound208 = Instance.new("Sound")
- Sound209 = Instance.new("Sound")
- Sound210 = Instance.new("Sound")
- Sound211 = Instance.new("Sound")
- Sound212 = Instance.new("Sound")
- Sound213 = Instance.new("Sound")
- Sound214 = Instance.new("Sound")
- Sound215 = Instance.new("Sound")
- Sound216 = Instance.new("Sound")
- Sound217 = Instance.new("Sound")
- Sound218 = Instance.new("Sound")
- Sound219 = Instance.new("Sound")
- Sound220 = Instance.new("Sound")
- Sound221 = Instance.new("Sound")
- Sound222 = Instance.new("Sound")
- Sound223 = Instance.new("Sound")
- Sound224 = Instance.new("Sound")
- Sound225 = Instance.new("Sound")
- Sound226 = Instance.new("Sound")
- Sound227 = Instance.new("Sound")
- Sound228 = Instance.new("Sound")
- Sound229 = Instance.new("Sound")
- Sound230 = Instance.new("Sound")
- Sound231 = Instance.new("Sound")
- Sound232 = Instance.new("Sound")
- Decal233 = Instance.new("Decal")
- Part234 = Instance.new("Part")
- Motor235 = Instance.new("Motor")
- Snap236 = Instance.new("Snap")
- Motor237 = Instance.new("Motor")
- Motor238 = Instance.new("Motor")
- Motor239 = Instance.new("Motor")
- Part240 = Instance.new("Part")
- Part241 = Instance.new("Part")
- Humanoid242 = Instance.new("Humanoid")
- BodyColors243 = Instance.new("BodyColors")
- IntValue244 = Instance.new("IntValue")
- Part245 = Instance.new("Part")
- Weld246 = Instance.new("Weld")
- Part247 = Instance.new("Part")
- Script248 = Instance.new("Script")
- Script249 = Instance.new("Script")
- Script250 = Instance.new("Script")
- Tool251 = Instance.new("Tool")
- Script252 = Instance.new("Script")
- Animation253 = Instance.new("Animation")
- BindableEvent254 = Instance.new("BindableEvent")
- LocalScript255 = Instance.new("LocalScript")
- Animation256 = Instance.new("Animation")
- Animation257 = Instance.new("Animation")
- Sound258 = Instance.new("Sound")
- Sound259 = Instance.new("Sound")
- Part260 = Instance.new("Part")
- Part261 = Instance.new("Part")
- Part262 = Instance.new("Part")
- Part263 = Instance.new("Part")
- Attachment264 = Instance.new("Attachment")
- Part265 = Instance.new("Part")
- Attachment266 = Instance.new("Attachment")
- Model267 = Instance.new("Model")
- Part268 = Instance.new("Part")
- Part269 = Instance.new("Part")
- Part270 = Instance.new("Part")
- Part271 = Instance.new("Part")
- Part272 = Instance.new("Part")
- Part273 = Instance.new("Part")
- Part274 = Instance.new("Part")
- Part275 = Instance.new("Part")
- Part276 = Instance.new("Part")
- Part277 = Instance.new("Part")
- Part278 = Instance.new("Part")
- Part279 = Instance.new("Part")
- Part280 = Instance.new("Part")
- Attachment281 = Instance.new("Attachment")
- Seat282 = Instance.new("Seat")
- Configuration283 = Instance.new("Configuration")
- NumberValue284 = Instance.new("NumberValue")
- NumberValue285 = Instance.new("NumberValue")
- NumberValue286 = Instance.new("NumberValue")
- NumberValue287 = Instance.new("NumberValue")
- Vector3Value288 = Instance.new("Vector3Value")
- Script289 = Instance.new("Script")
- Seat290 = Instance.new("Seat")
- Configuration291 = Instance.new("Configuration")
- NumberValue292 = Instance.new("NumberValue")
- NumberValue293 = Instance.new("NumberValue")
- NumberValue294 = Instance.new("NumberValue")
- NumberValue295 = Instance.new("NumberValue")
- Vector3Value296 = Instance.new("Vector3Value")
- Script297 = Instance.new("Script")
- Model298 = Instance.new("Model")
- Part299 = Instance.new("Part")
- ClickDetector300 = Instance.new("ClickDetector")
- Script301 = Instance.new("Script")
- TrussPart302 = Instance.new("TrussPart")
- Part303 = Instance.new("Part")
- ClickDetector304 = Instance.new("ClickDetector")
- Script305 = Instance.new("Script")
- Part306 = Instance.new("Part")
- TrussPart307 = Instance.new("TrussPart")
- TrussPart308 = Instance.new("TrussPart")
- Part309 = Instance.new("Part")
- Part310 = Instance.new("Part")
- Part311 = Instance.new("Part")
- Attachment312 = Instance.new("Attachment")
- Part313 = Instance.new("Part")
- Attachment314 = Instance.new("Attachment")
- Part315 = Instance.new("Part")
- Attachment316 = Instance.new("Attachment")
- Part317 = Instance.new("Part")
- Part318 = Instance.new("Part")
- Part319 = Instance.new("Part")
- Attachment320 = Instance.new("Attachment")
- Model321 = Instance.new("Model")
- Part322 = Instance.new("Part")
- Script323 = Instance.new("Script")
- ClickDetector324 = Instance.new("ClickDetector")
- Part325 = Instance.new("Part")
- Script326 = Instance.new("Script")
- ClickDetector327 = Instance.new("ClickDetector")
- Part328 = Instance.new("Part")
- BlockMesh329 = Instance.new("BlockMesh")
- Part330 = Instance.new("Part")
- Part331 = Instance.new("Part")
- Part332 = Instance.new("Part")
- Model0.Name = "Chamber"
- Model0.Parent = mas
- Model1.Name = "Victim1"
- Model1.Parent = Model0
- Humanoid2.Parent = Model1
- Humanoid2.RightLeg = Part4
- Humanoid2.LeftLeg = Part22
- Humanoid2.Torso = Part26
- BodyColors3.Parent = Model1
- BodyColors3.HeadColor = BrickColor.new("Bright yellow")
- BodyColors3.LeftArmColor = BrickColor.new("Medium stone grey")
- BodyColors3.LeftLegColor = BrickColor.new("Brick yellow")
- BodyColors3.RightArmColor = BrickColor.new("Medium stone grey")
- BodyColors3.RightLegColor = BrickColor.new("Brick yellow")
- BodyColors3.TorsoColor = BrickColor.new("Bright red")
- Part4.Name = "Right Leg"
- Part4.Parent = Model1
- Part4.BrickColor = BrickColor.new("Bright blue")
- Part4.Rotation = Vector3.new(6.76999998, 39.7999992, -4.33999968)
- Part4.CanCollide = false
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.Size = Vector3.new(1, 2, 1)
- Part4.CFrame = CFrame.new(-8.88785839, 2.04116559, 32.7734909, 0.766044974, 0.0581791401, 0.640148759, -1.63239989e-07, 0.995895445, -0.0905115604, -0.64278698, 0.0693353713, 0.762900829)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part4.Position = Vector3.new(-8.88785839, 2.04116559, 32.7734909)
- Part4.Orientation = Vector3.new(5.19000006, 40, 0)
- Part4.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part5.Name = "Head"
- Part5.Parent = Model1
- Part5.BrickColor = BrickColor.new("Cool yellow")
- Part5.Rotation = Vector3.new(0, 40, 0)
- Part5.CanCollide = false
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.Size = Vector3.new(2, 1, 1)
- Part5.CFrame = CFrame.new(-9.21270561, 5.53708839, 33.1642189, 0.766044974, -3.20374966e-07, 0.642787099, -1.63239989e-07, 1, -3.12924385e-07, -0.64278698, -3.20374966e-07, 0.766045094)
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part5.Position = Vector3.new(-9.21270561, 5.53708839, 33.1642189)
- Part5.Orientation = Vector3.new(0, 40, 0)
- Part5.Color = Color3.new(0.992157, 0.917647, 0.552941)
- SpecialMesh6.Parent = Part5
- SpecialMesh6.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh6.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal7.Name = "face"
- Decal7.Parent = Part5
- Decal7.Texture = "rbxasset://textures/face.png"
- Weld8.Name = "HeadWeld"
- Weld8.Parent = Part5
- Weld8.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld8.C1 = CFrame.new(1.5, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld9.Name = "HeadWeld"
- Weld9.Parent = Part5
- Weld9.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld9.C1 = CFrame.new(-1.5, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld10.Name = "HeadWeld"
- Weld10.Parent = Part5
- Weld10.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld10.C1 = CFrame.new(-1.5, -0.600000024, 0.699999988, 0.0163912401, -0.999865651, 0, 0.999865651, 0.0163912401, -0, 0, 0, 1)
- Weld11.Name = "HeadWeld"
- Weld11.Parent = Part5
- Weld11.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld11.C1 = CFrame.new(1.5, -0.5, 0.699999988, 0.0163912401, 0.999865651, 0, -0.999865651, 0.0163912401, 0, 0, 0, 1)
- Weld12.Name = "HeadWeld"
- Weld12.Parent = Part5
- Weld12.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld12.C1 = CFrame.new(2, -0.5, 0.699999988, 0, 1, 0, 1, -0, 0, 0, 0, -1)
- Weld13.Name = "HeadWeld"
- Weld13.Parent = Part5
- Weld13.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld13.C1 = CFrame.new(-1, -1, 1, 0.707106769, -0.707106769, 0, -0.707106769, -0.707106769, 0, 0, -0, -1)
- Weld14.Name = "HeadWeld"
- Weld14.Parent = Part5
- Weld14.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld14.C1 = CFrame.new(0, 0.400000006, 0.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld15.Name = "HeadWeld"
- Weld15.Parent = Part5
- Weld15.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld15.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld16.Name = "HeadWeld"
- Weld16.Parent = Part5
- Weld16.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld16.C1 = CFrame.new(0, 0.0500000007, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Script17.Name = "Health"
- Script17.Parent = Model1
- table.insert(cors,sandbox(Script17,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- --[[
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- --]]
- end))
- IntValue18.Name = "Mode"
- IntValue18.Parent = Model1
- Script19.Parent = Model1
- table.insert(cors,sandbox(Script19,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = 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("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- --local target = findNearestTorso(script.Parent.Torso.Position)
- --if target ~= nil then
- -- script.Parent.Zombie:MoveTo(target.Position, target)
- --end
- script.Parent.Humanoid:MoveTo(Vector3.new(math.random(-100,100),0,math.random(-100,100)), game.Workspace.Base)
- end
- end))
- Script20.Name = "Robot"
- Script20.Parent = Model1
- table.insert(cors,sandbox(Script20,function()
- ------------------
- --SPAWNING--
- ------------------
- miked=script.Parent
- itlh=miked.Torso:findFirstChild("Left Hip")
- itlh.Part0=miked.Torso
- itlh.Part1=miked:findFirstChild("Left Leg")
- itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- itrh=miked.Torso:findFirstChild("Right Hip")
- itrh.Part0=miked.Torso
- itrh.Part1=miked:findFirstChild("Right Leg")
- itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- itls=miked.Torso:findFirstChild("Left Shoulder")
- itls.Part1=miked.Torso
- itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- itls.Part0=miked:findFirstChild("Left Arm")
- itrs=miked.Torso:findFirstChild("Right Shoulder")
- itrs.Part1=miked.Torso
- itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- itrs.Part0=miked:findFirstChild("Right Arm")
- miked.Head:makeJoints()
- ------------------
- ------------------
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- local Figure = script.Parent
- local Torso = waitForChild(Figure, "Torso")
- local RightShoulder = waitForChild(Torso, "Right Shoulder")
- local LeftShoulder = waitForChild(Torso, "Left Shoulder")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local toolAnim = "None"
- local toolAnimTime = 0
- local isSeated = false
- function onRunning(speed)
- if isSeated then return end
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- local parts = Figure:GetChildren()
- for i=1,#parts do
- if parts.className == "Part" then
- Debris.AddItem(parts[i], 60)
- end
- end
- end
- function onJumping()
- isSeated = false
- pose = "Jumping"
- end
- function onClimbing()
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- pose = "FreeFall"
- end
- function onDancing()
- pose = "Dancing"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- isSeated = true
- pose = "Seated"
- end
- function moveJump()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -3.14
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveFreeFall()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1
- LeftShoulder.DesiredAngle = -1
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveFloat()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 1.57
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = -1.57
- end
- function moveBoogy()
- while pose=="Boogy" do
- wait(.5)
- RightShoulder.MaxVelocity = 1
- LeftShoulder.MaxVelocity = 1
- RightShoulder.DesiredAngle = -3.14
- LeftShoulder.DesiredAngle = 0
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 0
- wait(.5)
- RightShoulder.MaxVelocity = 1
- LeftShoulder.MaxVelocity = 1
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 1.57
- end
- end
- function moveZombie()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 1.57
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function movePunch()
- script.Parent.Torso.Anchored=true
- RightShoulder.MaxVelocity = 60
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 0
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- wait(1)
- script.Parent.Torso.Anchored=false
- pose="Standing"
- end
- function moveKick()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = 0
- RightHip.MaxVelocity = 40
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 0
- wait(1)
- pose="Standing"
- end
- function moveFly()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = 0
- RightHip.MaxVelocity = 40
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 0
- wait(1)
- pose="Standing"
- end
- function moveClimb()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -3.14
- LeftShoulder.DesiredAngle = 3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder.DesiredAngle = -3.14 /2
- LeftShoulder.DesiredAngle = -3.14 /2
- RightHip.DesiredAngle = 3.14 /2
- LeftHip.DesiredAngle = -3.14 /2
- end
- function getTool()
- kidTable = Figure:children()
- if (kidTable ~= nil) then
- numKids = #kidTable
- for i=1,numKids do
- if (kidTable[i].className == "Tool") then return kidTable[i] end
- end
- end
- return nil
- end
- function getToolAnim(tool)
- c = tool:children()
- for i=1,#c do
- if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
- return c[i]
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- RightShoulder.DesiredAngle = -1.57
- return
- end
- if (toolAnim == "Slash") then
- RightShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- return
- end
- if (toolAnim == "Lunge") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightHip.MaxVelocity = 0.5
- LeftHip.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 1.0
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 1.0
- return
- end
- end
- function move(time)
- local amplitude
- local frequency
- if (pose == "Jumping") then
- moveJump()
- return
- end
- if (pose == "Zombie") then
- moveZombie()
- return
- end
- if (pose == "Boogy") then
- moveBoogy()
- return
- end
- if (pose == "Float") then
- moveFloat()
- return
- end
- if (pose == "Punch") then
- movePunch()
- return
- end
- if (pose == "Kick") then
- moveKick()
- return
- end
- if (pose == "Fly") then
- moveFly()
- return
- end
- if (pose == "FreeFall") then
- moveFreeFall()
- return
- end
- if (pose == "Climbing") then
- moveClimb()
- return
- end
- if (pose == "Seated") then
- moveSit()
- return
- end
- amplitude = 0.1
- frequency = 1
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- if (pose == "Running") then
- amplitude = 1
- frequency = 9
- elseif (pose == "Dancing") then
- amplitude = 2
- frequency = 16
- end
- desiredAngle = amplitude * math.sin(time*frequency)
- if pose~="Dancing" then
- RightShoulder.DesiredAngle = -desiredAngle
- LeftShoulder.DesiredAngle = desiredAngle
- RightHip.DesiredAngle = -desiredAngle
- LeftHip.DesiredAngle = -desiredAngle
- else
- RightShoulder.DesiredAngle = -desiredAngle
- LeftShoulder.DesiredAngle = desiredAngle
- RightHip.DesiredAngle = -desiredAngle
- LeftHip.DesiredAngle = -desiredAngle
- end
- local tool = getTool()
- if tool ~= nil then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject ~= nil then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- toolAnim = "None"
- toolAnimTime = 0
- end
- end
- -- connect events
- -----------------------------------------------------------------------------------------------------------------------
- function unequip()
- local items=script.Parent:children()
- for i=1, #items do
- if items[i].className=="Tool" then items[i]:remove() end
- end
- end
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- dist=20
- function followany()
- following=true
- while following==true do
- local ch=game.Players:children()
- for i=1, #ch do
- local l=game.Workspace:findFirstChild(ch[i].Name)
- if l~=nil then
- local s=l.Torso
- local p=l.Torso.Position
- local q=script.Parent.Torso.Position
- local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
- if smallest==nil then
- smallest=d
- target=s
- elseif d<smallest then
- smallest=d
- target=s
- end
- end
- end
- if smallest==nil then stopmoving() return end
- if smallest>6*dist then return end
- script.Parent.Humanoid:MoveTo(target.Position, target)
- wait(0.5)
- for i=1, 6 do
- if target.Parent.Humanoid.Health<1 then stopmoving() else wait(0.5) end
- end
- end
- end
- function gohome()
- script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0), game.Workspace.Bases.Base)
- end
- function stopmoving()
- script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position, script.Parent.Torso)
- end
- function follow(name)
- following=true
- local p=game.Workspace:findFirstChild(name)
- if p==nil then return end
- while following==true do
- script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
- wait(0.5)
- for i=1, 3 do
- if p.Humanoid.Health<1 then following=false; stopmoving() return end
- wait(0.5)
- end
- end
- end
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- --[[
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.Parent = script.Parent.Head
- return sound
- end
- local sDied = newSound("rbxasset://sounds/uuhhh.wav")
- local sFallingDown = newSound("rbxasset://sounds/splat.wav")
- local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
- local sGettingUp = newSound("rbxasset://sounds/hit.wav")
- local sJumping = newSound("rbxasset://sounds/button.wav")
- local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
- sRunning.Looped = true
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- function onDied()
- sDied:play()
- end
- function onState(state, sound)
- if state then
- sound:play()
- else
- sound:pause()
- end
- end
- function onRunning(speed)
- if speed>0 then
- sRunning:play()
- else
- sRunning:pause()
- end
- end
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
- --]]
- local nextTime = 0
- local runService = game:service("RunService");
- while Figure.Parent~=nil do
- time = runService.Stepped:wait()
- if time > nextTime then
- move(time)
- nextTime = time + 0.1
- end
- end
- end))
- Part21.Name = "Left Arm"
- Part21.Parent = Model1
- Part21.BrickColor = BrickColor.new("Cool yellow")
- Part21.Rotation = Vector3.new(6.76999998, 39.7999992, -4.33999968)
- Part21.CanCollide = false
- Part21.FormFactor = Enum.FormFactor.Symmetric
- Part21.Size = Vector3.new(1, 2, 1)
- Part21.CFrame = CFrame.new(-10.3908567, 4.03909683, 34.0937347, 0.766044974, 0.0581791401, 0.640148759, -1.63239989e-07, 0.995895445, -0.0905115604, -0.64278698, 0.0693353713, 0.762900829)
- Part21.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part21.Position = Vector3.new(-10.3908567, 4.03909683, 34.0937347)
- Part21.Orientation = Vector3.new(5.19000006, 40, 0)
- Part21.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part22.Name = "Left Leg"
- Part22.Parent = Model1
- Part22.BrickColor = BrickColor.new("Bright blue")
- Part22.Rotation = Vector3.new(-6.76999998, 39.7999992, 4.33999968)
- Part22.CanCollide = false
- Part22.FormFactor = Enum.FormFactor.Symmetric
- Part22.Size = Vector3.new(1, 2, 1)
- Part22.CFrame = CFrame.new(-9.53754139, 2.04116583, 33.5549507, 0.766044974, -0.0581797734, 0.64014864, -1.63239989e-07, 0.995895445, 0.0905109048, -0.64278698, -0.0693360046, 0.76290071)
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part22.Position = Vector3.new(-9.53754139, 2.04116583, 33.5549507)
- Part22.Orientation = Vector3.new(-5.19000006, 40, 0)
- Part22.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Attachment23.Name = "Attachment1"
- Attachment23.Parent = Part22
- Attachment23.Rotation = Vector3.new(5.19298887, 50.0000572, 4.18714044e-05)
- Attachment23.CFrame = CFrame.new(0, -0.25, 0.5, 0.64278698, -4.69744748e-07, 0.766045094, 0.0693360046, 0.995895505, -0.058179114, -0.76290071, 0.0905112773, 0.640148699)
- Attachment23.Position = Vector3.new(0, -0.25, 0.5)
- Attachment23.Axis = Vector3.new(0.64278698, 0.0693360046, -0.76290071)
- Attachment23.Orientation = Vector3.new(3.33530116, 50.1160469, 3.98260689)
- Attachment24.Name = "Attachment0"
- Attachment24.Parent = Part22
- Attachment24.Rotation = Vector3.new(-0, -90, 0)
- Attachment24.CFrame = CFrame.new(0, -0.289999992, 0.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Attachment24.Position = Vector3.new(0, -0.289999992, 0.5)
- Attachment24.Axis = Vector3.new(0, 0, 1)
- Attachment24.Orientation = Vector3.new(-0, -90, 0)
- RodConstraint25.Parent = Part22
- RodConstraint25.Visible = true
- RodConstraint25.Attachment0 = Attachment24
- RodConstraint25.Attachment1 = Attachment264
- RodConstraint25.Length = 4.043511390686
- Part26.Name = "Torso"
- Part26.Parent = Model1
- Part26.BrickColor = BrickColor.new("Dark green")
- Part26.Rotation = Vector3.new(0, 40, 0)
- Part26.CanCollide = false
- Part26.FormFactor = Enum.FormFactor.Symmetric
- Part26.Size = Vector3.new(2, 2, 1)
- Part26.CFrame = CFrame.new(-9.21270466, 4.03708839, 33.1642189, 0.766044974, -3.20374966e-07, 0.642787099, -1.63239989e-07, 1, -3.12924385e-07, -0.64278698, -3.20374966e-07, 0.766045094)
- Part26.LeftSurface = Enum.SurfaceType.Weld
- Part26.RightSurface = Enum.SurfaceType.Weld
- Part26.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part26.Position = Vector3.new(-9.21270466, 4.03708839, 33.1642189)
- Part26.Orientation = Vector3.new(0, 40, 0)
- Part26.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Decal27.Name = "roblox"
- Decal27.Parent = Part26
- Motor28.Name = "Right Shoulder"
- Motor28.Parent = Part26
- Motor28.C0 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Motor28.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor28.DesiredAngle = 0.09063521027565
- Motor28.MaxVelocity = 0.15000000596046
- Motor29.Name = "Left Shoulder"
- Motor29.Parent = Part26
- Motor29.C0 = CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor29.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor29.DesiredAngle = -0.09063521027565
- Motor29.MaxVelocity = 0.15000000596046
- Motor30.Name = "Right Hip"
- Motor30.Parent = Part26
- Motor30.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor30.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor30.DesiredAngle = 0.09063521027565
- Motor30.MaxVelocity = 0.10000000149012
- Motor31.Name = "Left Hip"
- Motor31.Parent = Part26
- Motor31.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor31.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor31.DesiredAngle = 0.09063521027565
- Motor31.MaxVelocity = 0.10000000149012
- Snap32.Name = "Neck"
- Snap32.Parent = Part26
- Snap32.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Snap32.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Part33.Name = "Right Arm"
- Part33.Parent = Model1
- Part33.BrickColor = BrickColor.new("Cool yellow")
- Part33.Rotation = Vector3.new(6.76999998, 39.7999992, -4.33999968)
- Part33.CanCollide = false
- Part33.FormFactor = Enum.FormFactor.Symmetric
- Part33.Size = Vector3.new(1, 2, 1)
- Part33.CFrame = CFrame.new(-8.0927248, 4.03909683, 32.1653748, 0.766044974, 0.0581791401, 0.640148759, -1.63239989e-07, 0.995895445, -0.0905115604, -0.64278698, 0.0693353713, 0.762900829)
- Part33.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part33.Position = Vector3.new(-8.0927248, 4.03909683, 32.1653748)
- Part33.Orientation = Vector3.new(5.19000006, 40, 0)
- Part33.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Script34.Name = "Ragdoll"
- Script34.Parent = Model1
- table.insert(cors,sandbox(Script34,function()
- print("Hello world!")
- Character = script.Parent
- Humanoid = Character.Humanoid
- Torso = Character.Torso
- function OnDeath()
- print("Death")
- Humanoid.Parent = nil
- if Torso then
- local Head = Character:FindFirstChild("Head")
- if Head then
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = Torso
- Neck.Part1 = Head
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = Torso
- end
- local Limb = Character:FindFirstChild("Right Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Right Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- --[
- local Bar = Instance.new("Part")
- Bar.TopSurface = 0
- Bar.BottomSurface = 0
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = Character
- local Weld = Instance.new("Weld")
- Weld.Part0 = Torso
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = Torso
- --]]
- end
- end
- Humanoid.Died:connect(OnDeath)
- end))
- Script35.Name = "BloodS"
- Script35.Parent = Model1
- table.insert(cors,sandbox(Script35,function()
- function MakeBlood()
- local blood = Instance.new("Part")
- blood.formFactor = "Plate"
- blood.Size = Vector3.new(1,0.4,1)
- blood.Name = "Blood"
- blood.Reflectance = 0.2
- blood.Transparency = 0.1
- blood.BrickColor = BrickColor.new("Really red")
- blood.Locked = true
- blood.BackSurface = "Smooth"
- blood.TopSurface = "Smooth"
- local CC = math.random(1,2)
- if CC == 1 then
- blood.CanCollide = true
- elseif CC == 2 then
- blood.CanCollide = false
- end
- blood.Position = script.Parent.Torso.Position
- blood.Parent = script.Parent
- end
- humanoid = script.Parent.Humanoid
- lhh = humanoid.Health
- while true do
- if humanoid.Health < lhh then
- howmuch = math.random(7,20)
- lhh = humanoid.Health
- for i = 1 , howmuch do
- MakeBlood()
- end
- end
- wait(0.1)
- end
- end))
- Model36.Name = "Victim2"
- Model36.Parent = Model0
- Humanoid37.Parent = Model36
- Humanoid37.RightLeg = Part39
- Humanoid37.LeftLeg = Part58
- Humanoid37.Torso = Part61
- BodyColors38.Parent = Model36
- BodyColors38.HeadColor = BrickColor.new("Bright yellow")
- BodyColors38.LeftArmColor = BrickColor.new("Medium stone grey")
- BodyColors38.LeftLegColor = BrickColor.new("Brick yellow")
- BodyColors38.RightArmColor = BrickColor.new("Medium stone grey")
- BodyColors38.RightLegColor = BrickColor.new("Brick yellow")
- BodyColors38.TorsoColor = BrickColor.new("Bright red")
- Part39.Name = "Right Leg"
- Part39.Parent = Model36
- Part39.BrickColor = BrickColor.new("Bright blue")
- Part39.Rotation = Vector3.new(171.949997, 49.7199974, -173.839996)
- Part39.CanCollide = false
- Part39.FormFactor = Enum.FormFactor.Symmetric
- Part39.Size = Vector3.new(1, 2, 1)
- Part39.CFrame = CFrame.new(-10.0507269, 2.04117894, -8.21483803, -0.64278698, 0.0693350285, 0.76290077, 0, 0.995895505, -0.0905103832, -0.766044974, -0.0581789017, -0.64014864)
- Part39.BottomSurface = Enum.SurfaceType.Smooth
- Part39.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part39.Position = Vector3.new(-10.0507269, 2.04117894, -8.21483803)
- Part39.Orientation = Vector3.new(5.19000006, 130, 0)
- Part39.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Attachment40.Name = "Attachment0"
- Attachment40.Parent = Part39
- Attachment40.Rotation = Vector3.new(-0, -90, 0)
- Attachment40.CFrame = CFrame.new(0.0199999996, -0.0899999961, 0.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Attachment40.Position = Vector3.new(0.0199999996, -0.0899999961, 0.5)
- Attachment40.Axis = Vector3.new(0, 0, 1)
- Attachment40.Orientation = Vector3.new(-0, -90, 0)
- Part41.Name = "Head"
- Part41.Parent = Model36
- Part41.BrickColor = BrickColor.new("Cool yellow")
- Part41.Rotation = Vector3.new(-180, 50, -180)
- Part41.CanCollide = false
- Part41.FormFactor = Enum.FormFactor.Symmetric
- Part41.Size = Vector3.new(2, 1, 1)
- Part41.CFrame = CFrame.new(-9.65999794, 5.53709984, -7.88999605, -0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, -0.64278698)
- Part41.TopSurface = Enum.SurfaceType.Smooth
- Part41.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part41.Position = Vector3.new(-9.65999794, 5.53709984, -7.88999605)
- Part41.Orientation = Vector3.new(0, 130, 0)
- Part41.Color = Color3.new(0.992157, 0.917647, 0.552941)
- SpecialMesh42.Parent = Part41
- SpecialMesh42.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh42.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal43.Name = "face"
- Decal43.Parent = Part41
- Decal43.Texture = "rbxasset://textures/face.png"
- Weld44.Name = "HeadWeld"
- Weld44.Parent = Part41
- Weld44.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld44.C1 = CFrame.new(1.5, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld45.Name = "HeadWeld"
- Weld45.Parent = Part41
- Weld45.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld45.C1 = CFrame.new(-1.5, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld46.Name = "HeadWeld"
- Weld46.Parent = Part41
- Weld46.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld46.C1 = CFrame.new(-1.5, -0.600000024, 0.699999988, 0.0163912401, -0.999865651, 0, 0.999865651, 0.0163912401, -0, 0, 0, 1)
- Weld47.Name = "HeadWeld"
- Weld47.Parent = Part41
- Weld47.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld47.C1 = CFrame.new(1.5, -0.5, 0.699999988, 0.0163912401, 0.999865651, 0, -0.999865651, 0.0163912401, 0, 0, 0, 1)
- Weld48.Name = "HeadWeld"
- Weld48.Parent = Part41
- Weld48.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld48.C1 = CFrame.new(2, -0.5, 0.699999988, 0, 1, 0, 1, -0, 0, 0, 0, -1)
- Weld49.Name = "HeadWeld"
- Weld49.Parent = Part41
- Weld49.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld49.C1 = CFrame.new(-1, -1, 1, 0.707106769, -0.707106769, 0, -0.707106769, -0.707106769, 0, 0, -0, -1)
- Weld50.Name = "HeadWeld"
- Weld50.Parent = Part41
- Weld50.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld50.C1 = CFrame.new(0, 0.400000006, 0.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld51.Name = "HeadWeld"
- Weld51.Parent = Part41
- Weld51.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld51.C1 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld52.Name = "HeadWeld"
- Weld52.Parent = Part41
- Weld52.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld52.C1 = CFrame.new(0, 0.0500000007, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Script53.Name = "Health"
- Script53.Parent = Model36
- table.insert(cors,sandbox(Script53,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- --[[
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- --]]
- end))
- IntValue54.Name = "Mode"
- IntValue54.Parent = Model36
- Script55.Parent = Model36
- table.insert(cors,sandbox(Script55,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = 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("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- --local target = findNearestTorso(script.Parent.Torso.Position)
- --if target ~= nil then
- -- script.Parent.Zombie:MoveTo(target.Position, target)
- --end
- script.Parent.Humanoid:MoveTo(Vector3.new(math.random(-100,100),0,math.random(-100,100)), game.Workspace.Base)
- end
- end))
- Script56.Name = "Robot"
- Script56.Parent = Model36
- table.insert(cors,sandbox(Script56,function()
- ------------------
- --SPAWNING--
- ------------------
- miked=script.Parent
- itlh=miked.Torso:findFirstChild("Left Hip")
- itlh.Part0=miked.Torso
- itlh.Part1=miked:findFirstChild("Left Leg")
- itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- itrh=miked.Torso:findFirstChild("Right Hip")
- itrh.Part0=miked.Torso
- itrh.Part1=miked:findFirstChild("Right Leg")
- itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- itls=miked.Torso:findFirstChild("Left Shoulder")
- itls.Part1=miked.Torso
- itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- itls.Part0=miked:findFirstChild("Left Arm")
- itrs=miked.Torso:findFirstChild("Right Shoulder")
- itrs.Part1=miked.Torso
- itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- itrs.Part0=miked:findFirstChild("Right Arm")
- miked.Head:makeJoints()
- ------------------
- ------------------
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- local Figure = script.Parent
- local Torso = waitForChild(Figure, "Torso")
- local RightShoulder = waitForChild(Torso, "Right Shoulder")
- local LeftShoulder = waitForChild(Torso, "Left Shoulder")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local toolAnim = "None"
- local toolAnimTime = 0
- local isSeated = false
- function onRunning(speed)
- if isSeated then return end
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- local parts = Figure:GetChildren()
- for i=1,#parts do
- if parts.className == "Part" then
- Debris.AddItem(parts[i], 60)
- end
- end
- end
- function onJumping()
- isSeated = false
- pose = "Jumping"
- end
- function onClimbing()
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- pose = "FreeFall"
- end
- function onDancing()
- pose = "Dancing"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- isSeated = true
- pose = "Seated"
- end
- function moveJump()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -3.14
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveFreeFall()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1
- LeftShoulder.DesiredAngle = -1
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveFloat()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 1.57
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = -1.57
- end
- function moveBoogy()
- while pose=="Boogy" do
- wait(.5)
- RightShoulder.MaxVelocity = 1
- LeftShoulder.MaxVelocity = 1
- RightShoulder.DesiredAngle = -3.14
- LeftShoulder.DesiredAngle = 0
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 0
- wait(.5)
- RightShoulder.MaxVelocity = 1
- LeftShoulder.MaxVelocity = 1
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 1.57
- end
- end
- function moveZombie()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 1.57
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function movePunch()
- script.Parent.Torso.Anchored=true
- RightShoulder.MaxVelocity = 60
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 0
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- wait(1)
- script.Parent.Torso.Anchored=false
- pose="Standing"
- end
- function moveKick()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = 0
- RightHip.MaxVelocity = 40
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 0
- wait(1)
- pose="Standing"
- end
- function moveFly()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = 0
- RightHip.MaxVelocity = 40
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 0
- wait(1)
- pose="Standing"
- end
- function moveClimb()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -3.14
- LeftShoulder.DesiredAngle = 3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder.DesiredAngle = -3.14 /2
- LeftShoulder.DesiredAngle = -3.14 /2
- RightHip.DesiredAngle = 3.14 /2
- LeftHip.DesiredAngle = -3.14 /2
- end
- function getTool()
- kidTable = Figure:children()
- if (kidTable ~= nil) then
- numKids = #kidTable
- for i=1,numKids do
- if (kidTable[i].className == "Tool") then return kidTable[i] end
- end
- end
- return nil
- end
- function getToolAnim(tool)
- c = tool:children()
- for i=1,#c do
- if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
- return c[i]
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- RightShoulder.DesiredAngle = -1.57
- return
- end
- if (toolAnim == "Slash") then
- RightShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- return
- end
- if (toolAnim == "Lunge") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightHip.MaxVelocity = 0.5
- LeftHip.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 1.0
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 1.0
- return
- end
- end
- function move(time)
- local amplitude
- local frequency
- if (pose == "Jumping") then
- moveJump()
- return
- end
- if (pose == "Zombie") then
- moveZombie()
- return
- end
- if (pose == "Boogy") then
- moveBoogy()
- return
- end
- if (pose == "Float") then
- moveFloat()
- return
- end
- if (pose == "Punch") then
- movePunch()
- return
- end
- if (pose == "Kick") then
- moveKick()
- return
- end
- if (pose == "Fly") then
- moveFly()
- return
- end
- if (pose == "FreeFall") then
- moveFreeFall()
- return
- end
- if (pose == "Climbing") then
- moveClimb()
- return
- end
- if (pose == "Seated") then
- moveSit()
- return
- end
- amplitude = 0.1
- frequency = 1
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- if (pose == "Running") then
- amplitude = 1
- frequency = 9
- elseif (pose == "Dancing") then
- amplitude = 2
- frequency = 16
- end
- desiredAngle = amplitude * math.sin(time*frequency)
- if pose~="Dancing" then
- RightShoulder.DesiredAngle = -desiredAngle
- LeftShoulder.DesiredAngle = desiredAngle
- RightHip.DesiredAngle = -desiredAngle
- LeftHip.DesiredAngle = -desiredAngle
- else
- RightShoulder.DesiredAngle = -desiredAngle
- LeftShoulder.DesiredAngle = desiredAngle
- RightHip.DesiredAngle = -desiredAngle
- LeftHip.DesiredAngle = -desiredAngle
- end
- local tool = getTool()
- if tool ~= nil then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject ~= nil then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- toolAnim = "None"
- toolAnimTime = 0
- end
- end
- -- connect events
- -----------------------------------------------------------------------------------------------------------------------
- function unequip()
- local items=script.Parent:children()
- for i=1, #items do
- if items[i].className=="Tool" then items[i]:remove() end
- end
- end
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- dist=20
- function followany()
- following=true
- while following==true do
- local ch=game.Players:children()
- for i=1, #ch do
- local l=game.Workspace:findFirstChild(ch[i].Name)
- if l~=nil then
- local s=l.Torso
- local p=l.Torso.Position
- local q=script.Parent.Torso.Position
- local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
- if smallest==nil then
- smallest=d
- target=s
- elseif d<smallest then
- smallest=d
- target=s
- end
- end
- end
- if smallest==nil then stopmoving() return end
- if smallest>6*dist then return end
- script.Parent.Humanoid:MoveTo(target.Position, target)
- wait(0.5)
- for i=1, 6 do
- if target.Parent.Humanoid.Health<1 then stopmoving() else wait(0.5) end
- end
- end
- end
- function gohome()
- script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0), game.Workspace.Bases.Base)
- end
- function stopmoving()
- script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position, script.Parent.Torso)
- end
- function follow(name)
- following=true
- local p=game.Workspace:findFirstChild(name)
- if p==nil then return end
- while following==true do
- script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
- wait(0.5)
- for i=1, 3 do
- if p.Humanoid.Health<1 then following=false; stopmoving() return end
- wait(0.5)
- end
- end
- end
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- --[[
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.Parent = script.Parent.Head
- return sound
- end
- local sDied = newSound("rbxasset://sounds/uuhhh.wav")
- local sFallingDown = newSound("rbxasset://sounds/splat.wav")
- local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
- local sGettingUp = newSound("rbxasset://sounds/hit.wav")
- local sJumping = newSound("rbxasset://sounds/button.wav")
- local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
- sRunning.Looped = true
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- function onDied()
- sDied:play()
- end
- function onState(state, sound)
- if state then
- sound:play()
- else
- sound:pause()
- end
- end
- function onRunning(speed)
- if speed>0 then
- sRunning:play()
- else
- sRunning:pause()
- end
- end
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
- --]]
- local nextTime = 0
- local runService = game:service("RunService");
- while Figure.Parent~=nil do
- time = runService.Stepped:wait()
- if time > nextTime then
- move(time)
- nextTime = time + 0.1
- end
- end
- end))
- Part57.Name = "Left Arm"
- Part57.Parent = Model36
- Part57.BrickColor = BrickColor.new("Cool yellow")
- Part57.Rotation = Vector3.new(171.949997, 49.7199974, -173.839996)
- Part57.CanCollide = false
- Part57.FormFactor = Enum.FormFactor.Symmetric
- Part57.Size = Vector3.new(1, 2, 1)
- Part57.CFrame = CFrame.new(-8.73048306, 4.03910875, -6.71183872, -0.64278698, 0.0693350285, 0.76290077, 0, 0.995895505, -0.0905103832, -0.766044974, -0.0581789017, -0.64014864)
- Part57.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part57.Position = Vector3.new(-8.73048306, 4.03910875, -6.71183872)
- Part57.Orientation = Vector3.new(5.19000006, 130, 0)
- Part57.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part58.Name = "Left Leg"
- Part58.Parent = Model36
- Part58.BrickColor = BrickColor.new("Bright blue")
- Part58.Rotation = Vector3.new(-171.949997, 49.7199974, 173.839996)
- Part58.CanCollide = false
- Part58.FormFactor = Enum.FormFactor.Symmetric
- Part58.Size = Vector3.new(1, 2, 1)
- Part58.CFrame = CFrame.new(-9.26926613, 2.04117894, -7.56515265, -0.64278698, -0.0693350285, 0.76290077, 0, 0.995895505, 0.0905103832, -0.766044974, 0.0581789017, -0.64014864)
- Part58.BottomSurface = Enum.SurfaceType.Smooth
- Part58.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part58.Position = Vector3.new(-9.26926613, 2.04117894, -7.56515265)
- Part58.Orientation = Vector3.new(-5.19000006, 130, 0)
- Part58.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Attachment59.Name = "Attachment0"
- Attachment59.Parent = Part58
- Attachment59.Rotation = Vector3.new(-0, -90, 0)
- Attachment59.CFrame = CFrame.new(0.0199999996, -0.589999974, 0.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Attachment59.Position = Vector3.new(0.0199999996, -0.589999974, 0.5)
- Attachment59.Axis = Vector3.new(0, 0, 1)
- Attachment59.Orientation = Vector3.new(-0, -90, 0)
- RodConstraint60.Parent = Part58
- RodConstraint60.Visible = true
- RodConstraint60.Attachment0 = Attachment59
- RodConstraint60.Attachment1 = Attachment320
- RodConstraint60.Length = 3.4937551021576
- Part61.Name = "Torso"
- Part61.Parent = Model36
- Part61.BrickColor = BrickColor.new("Dark green")
- Part61.Rotation = Vector3.new(-180, 50, -180)
- Part61.CanCollide = false
- Part61.FormFactor = Enum.FormFactor.Symmetric
- Part61.Size = Vector3.new(2, 2, 1)
- Part61.CFrame = CFrame.new(-9.65999794, 4.03709984, -7.88999605, -0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, -0.64278698)
- Part61.LeftSurface = Enum.SurfaceType.Weld
- Part61.RightSurface = Enum.SurfaceType.Weld
- Part61.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part61.Position = Vector3.new(-9.65999794, 4.03709984, -7.88999605)
- Part61.Orientation = Vector3.new(0, 130, 0)
- Part61.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Decal62.Name = "roblox"
- Decal62.Parent = Part61
- Motor63.Name = "Right Shoulder"
- Motor63.Parent = Part61
- Motor63.C0 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Motor63.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor63.DesiredAngle = 0.09063521027565
- Motor63.MaxVelocity = 0.15000000596046
- Motor64.Name = "Left Shoulder"
- Motor64.Parent = Part61
- Motor64.C0 = CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor64.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor64.DesiredAngle = -0.09063521027565
- Motor64.MaxVelocity = 0.15000000596046
- Motor65.Name = "Right Hip"
- Motor65.Parent = Part61
- Motor65.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor65.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor65.DesiredAngle = 0.09063521027565
- Motor65.MaxVelocity = 0.10000000149012
- Motor66.Name = "Left Hip"
- Motor66.Parent = Part61
- Motor66.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor66.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor66.DesiredAngle = 0.09063521027565
- Motor66.MaxVelocity = 0.10000000149012
- Snap67.Name = "Neck"
- Snap67.Parent = Part61
- Snap67.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Snap67.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Part68.Name = "Right Arm"
- Part68.Parent = Model36
- Part68.BrickColor = BrickColor.new("Cool yellow")
- Part68.Rotation = Vector3.new(171.949997, 49.7199974, -173.839996)
- Part68.CanCollide = false
- Part68.FormFactor = Enum.FormFactor.Symmetric
- Part68.Size = Vector3.new(1, 2, 1)
- Part68.CFrame = CFrame.new(-10.6588459, 4.03910875, -9.00997353, -0.64278698, 0.0693350285, 0.76290077, 0, 0.995895505, -0.0905103832, -0.766044974, -0.0581789017, -0.64014864)
- Part68.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part68.Position = Vector3.new(-10.6588459, 4.03910875, -9.00997353)
- Part68.Orientation = Vector3.new(5.19000006, 130, 0)
- Part68.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Script69.Name = "Ragdoll"
- Script69.Parent = Model36
- table.insert(cors,sandbox(Script69,function()
- print("Hello world!")
- Character = script.Parent
- Humanoid = Character.Humanoid
- Torso = Character.Torso
- function OnDeath()
- print("Death")
- Humanoid.Parent = nil
- if Torso then
- local Head = Character:FindFirstChild("Head")
- if Head then
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = Torso
- Neck.Part1 = Head
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = Torso
- end
- local Limb = Character:FindFirstChild("Right Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Right Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- --[
- local Bar = Instance.new("Part")
- Bar.TopSurface = 0
- Bar.BottomSurface = 0
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = Character
- local Weld = Instance.new("Weld")
- Weld.Part0 = Torso
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = Torso
- --]]
- end
- end
- Humanoid.Died:connect(OnDeath)
- end))
- Script70.Name = "BloodS"
- Script70.Parent = Model36
- table.insert(cors,sandbox(Script70,function()
- function MakeBlood()
- local blood = Instance.new("Part")
- blood.formFactor = "Plate"
- blood.Size = Vector3.new(1,0.4,1)
- blood.Name = "Blood"
- blood.Reflectance = 0.2
- blood.Transparency = 0.1
- blood.BrickColor = BrickColor.new("Really red")
- blood.Locked = true
- blood.BackSurface = "Smooth"
- blood.TopSurface = "Smooth"
- local CC = math.random(1,2)
- if CC == 1 then
- blood.CanCollide = true
- elseif CC == 2 then
- blood.CanCollide = false
- end
- blood.Position = script.Parent.Torso.Position
- blood.Parent = script.Parent
- end
- humanoid = script.Parent.Humanoid
- lhh = humanoid.Health
- while true do
- if humanoid.Health < lhh then
- howmuch = math.random(7,20)
- lhh = humanoid.Health
- for i = 1 , howmuch do
- MakeBlood()
- end
- end
- wait(0.1)
- end
- end))
- Part71.Parent = Model0
- Part71.BrickColor = BrickColor.new("Fossil")
- Part71.Anchored = true
- Part71.Size = Vector3.new(40.5099907, 20.1400013, 0.49999997)
- Part71.CFrame = CFrame.new(-24.9950008, 19.3700104, -12.2271767, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part71.BottomSurface = Enum.SurfaceType.Smooth
- Part71.TopSurface = Enum.SurfaceType.Smooth
- Part71.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part71.Position = Vector3.new(-24.9950008, 19.3700104, -12.2271767)
- Part71.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part72.Parent = Model0
- Part72.Material = Enum.Material.Ice
- Part72.BrickColor = BrickColor.new("Black")
- Part72.Anchored = true
- Part72.Size = Vector3.new(41.5000038, 1, 49.8799934)
- Part72.CFrame = CFrame.new(-24.9400024, 0.500003994, 12.5099983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part72.BottomSurface = Enum.SurfaceType.Smooth
- Part72.TopSurface = Enum.SurfaceType.Smooth
- Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part72.Position = Vector3.new(-24.9400024, 0.500003994, 12.5099983)
- Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part73.Parent = Model0
- Part73.BrickColor = BrickColor.new("Fossil")
- Part73.Anchored = true
- Part73.Size = Vector3.new(41.3700066, 28.4400024, 0.49999997)
- Part73.CFrame = CFrame.new(-24.9450054, 15.220005, 37.1100006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part73.BottomSurface = Enum.SurfaceType.Smooth
- Part73.TopSurface = Enum.SurfaceType.Smooth
- Part73.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part73.Position = Vector3.new(-24.9450054, 15.220005, 37.1100006)
- Part73.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Attachment74.Name = "Attachment0"
- Attachment74.Parent = Part73
- Attachment74.Rotation = Vector3.new(0, 90, 0)
- Attachment74.CFrame = CFrame.new(19.8799992, -12.5199995, -0.249999985, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Attachment74.Position = Vector3.new(19.8799992, -12.5199995, -0.249999985)
- Attachment74.Axis = Vector3.new(0, 0, -1)
- Attachment74.Orientation = Vector3.new(0, 90, 0)
- Part75.Parent = Model0
- Part75.BrickColor = BrickColor.new("Really black")
- Part75.Anchored = true
- Part75.Size = Vector3.new(0.789999843, 1, 13.7299986)
- Part75.CFrame = CFrame.new(-44.6388016, 17.3300037, 9.99782753, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part75.BottomSurface = Enum.SurfaceType.Smooth
- Part75.TopSurface = Enum.SurfaceType.Smooth
- Part75.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part75.Position = Vector3.new(-44.6388016, 17.3300037, 9.99782753)
- Part75.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part76.Parent = Model0
- Part76.BrickColor = BrickColor.new("Fossil")
- Part76.Anchored = true
- Part76.Size = Vector3.new(0.560000062, 28.4400024, 49.4000015)
- Part76.CFrame = CFrame.new(-4.54000425, 15.220005, 12.2228251, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part76.BottomSurface = Enum.SurfaceType.Smooth
- Part76.TopSurface = Enum.SurfaceType.Smooth
- Part76.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part76.Position = Vector3.new(-4.54000425, 15.220005, 12.2228251)
- Part76.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Attachment77.Name = "Attachment1"
- Attachment77.Parent = Part76
- Attachment77.Rotation = Vector3.new(-2.78630381e-07, 39.9999466, -5.19296932)
- Attachment77.CFrame = CFrame.new(-0.280000031, -13.5900002, -24.1599998, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 3.7252903e-09, -0.64014864, -0.0581788942, 0.766044974)
- Attachment77.Position = Vector3.new(-0.280000031, -13.5900002, -24.1599998)
- Attachment77.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
- Attachment77.Orientation = Vector3.new(-2.13443414e-07, 39.9999504, -5.1929698)
- Part78.Parent = Model0
- Part78.BrickColor = BrickColor.new("Fossil")
- Part78.Anchored = true
- Part78.Size = Vector3.new(0.560000062, 16.8600025, 49.2799988)
- Part78.CFrame = CFrame.new(-45.3138046, 9.43000603, 12.1694336, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part78.BottomSurface = Enum.SurfaceType.Smooth
- Part78.TopSurface = Enum.SurfaceType.Smooth
- Part78.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part78.Position = Vector3.new(-45.3138046, 9.43000603, 12.1694336)
- Part78.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part79.Parent = Model0
- Part79.BrickColor = BrickColor.new("Fossil")
- Part79.Anchored = true
- Part79.Size = Vector3.new(0.560000062, 28.4400024, 20.8700008)
- Part79.CFrame = CFrame.new(-45.3138046, 15.220005, 26.3744316, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part79.BottomSurface = Enum.SurfaceType.Smooth
- Part79.TopSurface = Enum.SurfaceType.Smooth
- Part79.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part79.Position = Vector3.new(-45.3138046, 15.220005, 26.3744316)
- Part79.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part80.Parent = Model0
- Part80.BrickColor = BrickColor.new("Fossil")
- Part80.Anchored = true
- Part80.Size = Vector3.new(0.560000062, 6.32000589, 49.390007)
- Part80.CFrame = CFrame.new(-45.3138046, 26.2800083, 12.2178278, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part80.BottomSurface = Enum.SurfaceType.Smooth
- Part80.TopSurface = Enum.SurfaceType.Smooth
- Part80.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part80.Position = Vector3.new(-45.3138046, 26.2800083, 12.2178278)
- Part80.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part81.Parent = Model0
- Part81.BrickColor = BrickColor.new("Really black")
- Part81.Anchored = true
- Part81.Size = Vector3.new(0.789999843, 1, 13.7299986)
- Part81.CFrame = CFrame.new(-44.6388016, 23.4560204, 9.99782753, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part81.BottomSurface = Enum.SurfaceType.Smooth
- Part81.TopSurface = Enum.SurfaceType.Smooth
- Part81.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part81.Position = Vector3.new(-44.6388016, 23.4560204, 9.99782753)
- Part81.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part82.Parent = Model0
- Part82.BrickColor = BrickColor.new("Fossil")
- Part82.Anchored = true
- Part82.Size = Vector3.new(0.560000062, 28.4400024, 16.6300049)
- Part82.CFrame = CFrame.new(-45.3138046, 15.220005, -4.16217327, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part82.BottomSurface = Enum.SurfaceType.Smooth
- Part82.TopSurface = Enum.SurfaceType.Smooth
- Part82.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part82.Position = Vector3.new(-45.3138046, 15.220005, -4.16217327)
- Part82.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part83.Parent = Model0
- Part83.Material = Enum.Material.Ice
- Part83.BrickColor = BrickColor.new("Black")
- Part83.Anchored = true
- Part83.Size = Vector3.new(15.1200132, 1, 17.6899986)
- Part83.CFrame = CFrame.new(-27.1599998, 37.0703468, 9.54500008, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part83.BottomSurface = Enum.SurfaceType.Smooth
- Part83.TopSurface = Enum.SurfaceType.Smooth
- Part83.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part83.Position = Vector3.new(-27.1599998, 37.0703468, 9.54500008)
- Part83.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part84.Parent = Model0
- Part84.BrickColor = BrickColor.new("Fossil")
- Part84.Anchored = true
- Part84.Size = Vector3.new(35.0199928, 28.4400024, 0.49999997)
- Part84.CFrame = CFrame.new(-22.2500019, 15.220005, -12.2271767, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part84.BottomSurface = Enum.SurfaceType.Smooth
- Part84.TopSurface = Enum.SurfaceType.Smooth
- Part84.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part84.Position = Vector3.new(-22.2500019, 15.220005, -12.2271767)
- Part84.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part85.Parent = Model0
- Part85.BrickColor = BrickColor.new("Really black")
- Part85.Anchored = true
- Part85.Size = Vector3.new(0.789999843, 7.13000059, 0.959998429)
- Part85.CFrame = CFrame.new(-44.6388016, 20.3950081, 3.57519531, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part85.BottomSurface = Enum.SurfaceType.Smooth
- Part85.TopSurface = Enum.SurfaceType.Smooth
- Part85.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part85.Position = Vector3.new(-44.6388016, 20.3950081, 3.57519531)
- Part85.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Model86.Name = "Killer"
- Model86.Parent = Model0
- Model86.PrimaryPart = Part234
- Part87.Name = "Head"
- Part87.Parent = Model86
- Part87.BrickColor = BrickColor.new("Bright yellow")
- Part87.Rotation = Vector3.new(0, -90, 0)
- Part87.Velocity = Vector3.new(0, -1, 0)
- Part87.CanCollide = false
- Part87.FormFactor = Enum.FormFactor.Symmetric
- Part87.Size = Vector3.new(2, 1, 1)
- Part87.CFrame = CFrame.new(-27.430006, 34.2830048, 9.9700098, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part87.TopSurface = Enum.SurfaceType.Smooth
- Part87.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part87.Position = Vector3.new(-27.430006, 34.2830048, 9.9700098)
- Part87.Orientation = Vector3.new(0, -90, 0)
- Part87.Color = Color3.new(0.960784, 0.803922, 0.188235)
- SpecialMesh88.Parent = Part87
- SpecialMesh88.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh88.Scale = Vector3.new(1.25, 1.25, 1.25)
- Sound89.Parent = Part87
- Sound89.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound90.Parent = Part87
- Sound90.SoundId = "rbxasset://sounds/splat.wav"
- Sound91.Parent = Part87
- Sound91.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound92.Parent = Part87
- Sound92.SoundId = "rbxasset://sounds/hit.wav"
- Sound93.Parent = Part87
- Sound93.SoundId = "rbxasset://sounds/button.wav"
- Sound94.Parent = Part87
- Sound94.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound94.Looped = true
- Sound95.Parent = Part87
- Sound95.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound96.Parent = Part87
- Sound96.SoundId = "rbxasset://sounds/splat.wav"
- Sound97.Parent = Part87
- Sound97.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound98.Parent = Part87
- Sound98.SoundId = "rbxasset://sounds/hit.wav"
- Sound99.Parent = Part87
- Sound99.SoundId = "rbxasset://sounds/button.wav"
- Sound100.Parent = Part87
- Sound100.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound100.Looped = true
- Sound101.Parent = Part87
- Sound101.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound102.Parent = Part87
- Sound102.SoundId = "rbxasset://sounds/splat.wav"
- Sound103.Parent = Part87
- Sound103.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound104.Parent = Part87
- Sound104.SoundId = "rbxasset://sounds/hit.wav"
- Sound105.Parent = Part87
- Sound105.SoundId = "rbxasset://sounds/button.wav"
- Sound106.Parent = Part87
- Sound106.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound106.Looped = true
- Sound107.Parent = Part87
- Sound107.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound108.Parent = Part87
- Sound108.SoundId = "rbxasset://sounds/splat.wav"
- Sound109.Parent = Part87
- Sound109.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound110.Parent = Part87
- Sound110.SoundId = "rbxasset://sounds/hit.wav"
- Sound111.Parent = Part87
- Sound111.SoundId = "rbxasset://sounds/button.wav"
- Sound112.Parent = Part87
- Sound112.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound112.Looped = true
- Sound113.Parent = Part87
- Sound113.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound114.Parent = Part87
- Sound114.SoundId = "rbxasset://sounds/splat.wav"
- Sound115.Parent = Part87
- Sound115.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound116.Parent = Part87
- Sound116.SoundId = "rbxasset://sounds/hit.wav"
- Sound117.Parent = Part87
- Sound117.SoundId = "rbxasset://sounds/button.wav"
- Sound118.Parent = Part87
- Sound118.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound118.Looped = true
- Sound119.Parent = Part87
- Sound119.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound120.Parent = Part87
- Sound120.SoundId = "rbxasset://sounds/splat.wav"
- Sound121.Parent = Part87
- Sound121.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound122.Parent = Part87
- Sound122.SoundId = "rbxasset://sounds/hit.wav"
- Sound123.Parent = Part87
- Sound123.SoundId = "rbxasset://sounds/button.wav"
- Sound124.Parent = Part87
- Sound124.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound124.Looped = true
- Sound125.Parent = Part87
- Sound125.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound126.Parent = Part87
- Sound126.SoundId = "rbxasset://sounds/splat.wav"
- Sound127.Parent = Part87
- Sound127.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound128.Parent = Part87
- Sound128.SoundId = "rbxasset://sounds/hit.wav"
- Sound129.Parent = Part87
- Sound129.SoundId = "rbxasset://sounds/button.wav"
- Sound130.Parent = Part87
- Sound130.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound130.Looped = true
- Sound131.Parent = Part87
- Sound131.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound132.Parent = Part87
- Sound132.SoundId = "rbxasset://sounds/splat.wav"
- Sound133.Parent = Part87
- Sound133.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound134.Parent = Part87
- Sound134.SoundId = "rbxasset://sounds/hit.wav"
- Sound135.Parent = Part87
- Sound135.SoundId = "rbxasset://sounds/button.wav"
- Sound136.Parent = Part87
- Sound136.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound136.Looped = true
- Sound137.Parent = Part87
- Sound137.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound138.Parent = Part87
- Sound138.SoundId = "rbxasset://sounds/splat.wav"
- Sound139.Parent = Part87
- Sound139.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound140.Parent = Part87
- Sound140.SoundId = "rbxasset://sounds/hit.wav"
- Sound141.Parent = Part87
- Sound141.SoundId = "rbxasset://sounds/button.wav"
- Sound142.Parent = Part87
- Sound142.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound142.Looped = true
- Sound143.Parent = Part87
- Sound143.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound144.Parent = Part87
- Sound144.SoundId = "rbxasset://sounds/splat.wav"
- Sound145.Parent = Part87
- Sound145.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound146.Parent = Part87
- Sound146.SoundId = "rbxasset://sounds/hit.wav"
- Sound147.Parent = Part87
- Sound147.SoundId = "rbxasset://sounds/button.wav"
- Sound148.Parent = Part87
- Sound148.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound148.Looped = true
- Sound149.Parent = Part87
- Sound149.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound150.Parent = Part87
- Sound150.SoundId = "rbxasset://sounds/splat.wav"
- Sound151.Parent = Part87
- Sound151.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound152.Parent = Part87
- Sound152.SoundId = "rbxasset://sounds/hit.wav"
- Sound153.Parent = Part87
- Sound153.SoundId = "rbxasset://sounds/button.wav"
- Sound154.Parent = Part87
- Sound154.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound154.Looped = true
- Sound155.Parent = Part87
- Sound155.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound156.Parent = Part87
- Sound156.SoundId = "rbxasset://sounds/splat.wav"
- Sound157.Parent = Part87
- Sound157.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound158.Parent = Part87
- Sound158.SoundId = "rbxasset://sounds/hit.wav"
- Sound159.Parent = Part87
- Sound159.SoundId = "rbxasset://sounds/button.wav"
- Sound160.Parent = Part87
- Sound160.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound160.Looped = true
- Sound161.Parent = Part87
- Sound161.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound162.Parent = Part87
- Sound162.SoundId = "rbxasset://sounds/splat.wav"
- Sound163.Parent = Part87
- Sound163.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound164.Parent = Part87
- Sound164.SoundId = "rbxasset://sounds/hit.wav"
- Sound165.Parent = Part87
- Sound165.SoundId = "rbxasset://sounds/button.wav"
- Sound166.Parent = Part87
- Sound166.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound166.Looped = true
- Sound167.Parent = Part87
- Sound167.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound168.Parent = Part87
- Sound168.SoundId = "rbxasset://sounds/splat.wav"
- Sound169.Parent = Part87
- Sound169.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound170.Parent = Part87
- Sound170.SoundId = "rbxasset://sounds/hit.wav"
- Sound171.Parent = Part87
- Sound171.SoundId = "rbxasset://sounds/button.wav"
- Sound172.Parent = Part87
- Sound172.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound172.Looped = true
- Sound173.Parent = Part87
- Sound173.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound174.Parent = Part87
- Sound174.SoundId = "rbxasset://sounds/splat.wav"
- Sound175.Parent = Part87
- Sound175.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound176.Parent = Part87
- Sound176.SoundId = "rbxasset://sounds/hit.wav"
- Sound177.Parent = Part87
- Sound177.SoundId = "rbxasset://sounds/button.wav"
- Sound178.Parent = Part87
- Sound178.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound178.Looped = true
- Sound179.Parent = Part87
- Sound179.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound180.Parent = Part87
- Sound180.SoundId = "rbxasset://sounds/splat.wav"
- Sound181.Parent = Part87
- Sound181.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound182.Parent = Part87
- Sound182.SoundId = "rbxasset://sounds/hit.wav"
- Sound183.Parent = Part87
- Sound183.SoundId = "rbxasset://sounds/button.wav"
- Sound184.Parent = Part87
- Sound184.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound184.Looped = true
- Sound185.Parent = Part87
- Sound185.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound186.Parent = Part87
- Sound186.SoundId = "rbxasset://sounds/splat.wav"
- Sound187.Parent = Part87
- Sound187.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound188.Parent = Part87
- Sound188.SoundId = "rbxasset://sounds/hit.wav"
- Sound189.Parent = Part87
- Sound189.SoundId = "rbxasset://sounds/button.wav"
- Sound190.Parent = Part87
- Sound190.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound190.Looped = true
- Sound191.Parent = Part87
- Sound191.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound192.Parent = Part87
- Sound192.SoundId = "rbxasset://sounds/splat.wav"
- Sound193.Parent = Part87
- Sound193.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound194.Parent = Part87
- Sound194.SoundId = "rbxasset://sounds/hit.wav"
- Sound195.Parent = Part87
- Sound195.SoundId = "rbxasset://sounds/button.wav"
- Sound196.Parent = Part87
- Sound196.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound196.Looped = true
- Sound197.Parent = Part87
- Sound197.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound198.Parent = Part87
- Sound198.SoundId = "rbxasset://sounds/splat.wav"
- Sound199.Parent = Part87
- Sound199.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound200.Parent = Part87
- Sound200.SoundId = "rbxasset://sounds/hit.wav"
- Sound201.Parent = Part87
- Sound201.SoundId = "rbxasset://sounds/button.wav"
- Sound202.Parent = Part87
- Sound202.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound202.Looped = true
- Sound203.Parent = Part87
- Sound203.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound204.Parent = Part87
- Sound204.SoundId = "rbxasset://sounds/splat.wav"
- Sound205.Parent = Part87
- Sound205.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound206.Parent = Part87
- Sound206.SoundId = "rbxasset://sounds/hit.wav"
- Sound207.Parent = Part87
- Sound207.SoundId = "rbxasset://sounds/button.wav"
- Sound208.Parent = Part87
- Sound208.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound208.Looped = true
- Sound209.Parent = Part87
- Sound209.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound210.Parent = Part87
- Sound210.SoundId = "rbxasset://sounds/splat.wav"
- Sound211.Parent = Part87
- Sound211.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound212.Parent = Part87
- Sound212.SoundId = "rbxasset://sounds/hit.wav"
- Sound213.Parent = Part87
- Sound213.SoundId = "rbxasset://sounds/button.wav"
- Sound214.Parent = Part87
- Sound214.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound214.Looped = true
- Sound215.Parent = Part87
- Sound215.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound216.Parent = Part87
- Sound216.SoundId = "rbxasset://sounds/splat.wav"
- Sound217.Parent = Part87
- Sound217.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound218.Parent = Part87
- Sound218.SoundId = "rbxasset://sounds/hit.wav"
- Sound219.Parent = Part87
- Sound219.SoundId = "rbxasset://sounds/button.wav"
- Sound220.Parent = Part87
- Sound220.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound220.Looped = true
- Sound221.Parent = Part87
- Sound221.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound222.Parent = Part87
- Sound222.SoundId = "rbxasset://sounds/splat.wav"
- Sound223.Parent = Part87
- Sound223.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound224.Parent = Part87
- Sound224.SoundId = "rbxasset://sounds/hit.wav"
- Sound225.Parent = Part87
- Sound225.SoundId = "rbxasset://sounds/button.wav"
- Sound226.Parent = Part87
- Sound226.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound226.Looped = true
- Sound227.Parent = Part87
- Sound227.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound228.Parent = Part87
- Sound228.SoundId = "rbxasset://sounds/splat.wav"
- Sound229.Parent = Part87
- Sound229.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound230.Parent = Part87
- Sound230.SoundId = "rbxasset://sounds/hit.wav"
- Sound231.Parent = Part87
- Sound231.SoundId = "rbxasset://sounds/button.wav"
- Sound232.Parent = Part87
- Sound232.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound232.Looped = true
- Decal233.Parent = Part87
- Decal233.Texture = "http://www.roblox.com/asset/?id=1220907390"
- Part234.Name = "Torso"
- Part234.Parent = Model86
- Part234.BrickColor = BrickColor.new("Black")
- Part234.Rotation = Vector3.new(0, -90, 0)
- Part234.Velocity = Vector3.new(0, -1, 0)
- Part234.CanCollide = false
- Part234.FormFactor = Enum.FormFactor.Symmetric
- Part234.Size = Vector3.new(2, 2, 1)
- Part234.CFrame = CFrame.new(-27.430006, 32.7830048, 9.9700098, 0, 0, -1, 0, 1, -0, 1, 0, -0)
- Part234.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part234.Position = Vector3.new(-27.430006, 32.7830048, 9.9700098)
- Part234.Orientation = Vector3.new(0, -90, 0)
- Part234.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Motor235.Name = "Left Hip"
- Motor235.Parent = Part234
- Motor235.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor235.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor235.Part0 = Part234
- Motor235.Part1 = Part240
- Motor235.DesiredAngle = -0.068333640694618
- Motor235.MaxVelocity = 0.10000000149012
- Snap236.Name = "Neck"
- Snap236.Parent = Part234
- Snap236.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Snap236.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Motor237.Name = "Right Hip"
- Motor237.Parent = Part234
- Motor237.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Motor237.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor237.Part0 = Part234
- Motor237.Part1 = Part241
- Motor237.DesiredAngle = -0.068333640694618
- Motor237.MaxVelocity = 0.10000000149012
- Motor238.Name = "Right Shoulder"
- Motor238.Parent = Part234
- Motor238.C0 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Motor238.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor238.Part0 = Part245
- Motor238.Part1 = Part234
- Motor238.DesiredAngle = -0.068333640694618
- Motor238.MaxVelocity = 0.15000000596046
- Motor239.Name = "Left Shoulder"
- Motor239.Parent = Part234
- Motor239.C0 = CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor239.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor239.Part0 = Part247
- Motor239.Part1 = Part234
- Motor239.DesiredAngle = 0.068333640694618
- Motor239.MaxVelocity = 0.15000000596046
- Part240.Name = "Left Leg"
- Part240.Parent = Model86
- Part240.BrickColor = BrickColor.new("Black")
- Part240.Rotation = Vector3.new(0, -90, 0)
- Part240.Velocity = Vector3.new(0, -1, 0)
- Part240.CanCollide = false
- Part240.FormFactor = Enum.FormFactor.Symmetric
- Part240.Size = Vector3.new(1, 2, 1)
- Part240.CFrame = CFrame.new(-27.430006, 30.7830048, 9.4700098, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part240.BottomSurface = Enum.SurfaceType.Smooth
- Part240.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part240.Position = Vector3.new(-27.430006, 30.7830048, 9.4700098)
- Part240.Orientation = Vector3.new(0, -90, 0)
- Part240.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part241.Name = "Right Leg"
- Part241.Parent = Model86
- Part241.BrickColor = BrickColor.new("Black")
- Part241.Rotation = Vector3.new(0, -90, 0)
- Part241.Velocity = Vector3.new(0, -1, 0)
- Part241.CanCollide = false
- Part241.FormFactor = Enum.FormFactor.Symmetric
- Part241.Size = Vector3.new(1, 2, 1)
- Part241.CFrame = CFrame.new(-27.430006, 30.7830048, 10.4700098, 0, 0, -1, 0, 1, -0, 1, 0, -0)
- Part241.BottomSurface = Enum.SurfaceType.Smooth
- Part241.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part241.Position = Vector3.new(-27.430006, 30.7830048, 10.4700098)
- Part241.Orientation = Vector3.new(0, -90, 0)
- Part241.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Humanoid242.Name = "Zombie"
- Humanoid242.Parent = Model86
- Humanoid242.RightLeg = Part241
- Humanoid242.LeftLeg = Part240
- Humanoid242.Torso = Part234
- BodyColors243.Parent = Model86
- BodyColors243.HeadColor = BrickColor.new("Bright yellow")
- BodyColors243.LeftArmColor = BrickColor.new("Medium stone grey")
- BodyColors243.LeftLegColor = BrickColor.new("Brick yellow")
- BodyColors243.RightArmColor = BrickColor.new("Medium stone grey")
- BodyColors243.RightLegColor = BrickColor.new("Brick yellow")
- BodyColors243.TorsoColor = BrickColor.new("Bright red")
- IntValue244.Name = "Mode"
- IntValue244.Parent = Model86
- Part245.Name = "Right Arm"
- Part245.Parent = Model86
- Part245.BrickColor = BrickColor.new("Cool yellow")
- Part245.Rotation = Vector3.new(0, -90, 0)
- Part245.Velocity = Vector3.new(0, -1, 0)
- Part245.FormFactor = Enum.FormFactor.Symmetric
- Part245.Size = Vector3.new(1, 2, 1)
- Part245.CFrame = CFrame.new(-27.430006, 32.7830048, 11.4700098, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part245.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part245.Position = Vector3.new(-27.430006, 32.7830048, 11.4700098)
- Part245.Orientation = Vector3.new(0, -90, 0)
- Part245.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Weld246.Name = "RightGrip"
- Weld246.Parent = Part245
- Weld246.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
- Weld246.C1 = CFrame.new(0.652674198, -0.0821215212, 0.0751298293, -0.0274157617, 0.991445243, 0.127611369, -0.0517252237, 0.126081318, -0.990670502, -0.998284876, -0.0337607116, 0.047826115)
- Weld246.Part0 = Part245
- Weld246.Part1 = nil
- Part247.Name = "Left Arm"
- Part247.Parent = Model86
- Part247.BrickColor = BrickColor.new("Cool yellow")
- Part247.Rotation = Vector3.new(0, -90, 0)
- Part247.Velocity = Vector3.new(0, -1, 0)
- Part247.FormFactor = Enum.FormFactor.Symmetric
- Part247.Size = Vector3.new(1, 2, 1)
- Part247.CFrame = CFrame.new(-27.430006, 32.7830048, 8.4700098, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part247.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part247.Position = Vector3.new(-27.430006, 32.7830048, 8.4700098)
- Part247.Orientation = Vector3.new(0, -90, 0)
- Part247.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Script248.Name = "README"
- Script248.Parent = Model86
- Script248.Disabled = true
- table.insert(cors,sandbox(Script248,function()
- --[[
- ROBOTS v1
- User Manual
- ---------------------------------------------------------------------
- Before you start:
- 1. If you want to let the robot use weapons then get the Robot Weapon Hub from the toolbox.
- 2. Look at the list of names in commander. Change these names to change who can command
- your robot. Delete "Commander" if you want everyone to be able to control it.
- 3. Delete the robot spawn pad if you dont want the robot to come back when dead.
- The robot is only half done, I was going to add the ability to fire rockets, patrol set points, kill
- one team only and so on. I got fed up of making stuff for it, and Im only releasing it now as
- so many people have patiently been waiting for it. Its likely Ill update it in the future.
- HOW TO USE IT:
- It listens to what you type (if you are one of the people it is listening to)
- Change the name of the robot to whatever you want, and it will do what you say when you say its name.
- Commands:
- {Zombue} dance
- go home
- run
- climb
- jump
- zombie
- disco
- float
- punch
- kick
- fly
- heal
- defend
- stop
- follow {rebel234}
- follow all
- kill {rebel234}
- kill all
- equip sword
- rocket
- slingshot
- pbg
- superball
- trowel
- bomb
- unequip
- e.g.:
- Yellow kill miked
- Also you can type it however you like, just include the keywords:
- e.g.:
- Yellow my best friend in the world, can you do me a favour and kill that miked guy?
- Its not case sensitive too:
- e.g.:
- YelLOW KiLl MiKeD
- Also if you have lots of robots do this to get al their attention:
- Everyone kill miked
- --]]
- end))
- Script249.Parent = Model86
- table.insert(cors,sandbox(Script249,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = 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("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- function Hit(hit)
- local human = hit.Parent:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Health = human.Health -8
- end
- end
- larm.Touched:connect(Hit)
- rarm.Touched:connect(Hit)
- while true do
- wait(0.1)
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Zombie:MoveTo(target.Position, target)
- end
- end
- end))
- Script250.Name = "Robot"
- Script250.Parent = Model86
- table.insert(cors,sandbox(Script250,function()
- model = script.Parent
- backup = model:Clone()
- regentime = 1 --5 minutes
- ------------------
- --SPAWNING--
- ------------------
- miked=script.Parent
- itlh=miked.Torso:findFirstChild("Left Hip")
- itlh.Part0=miked.Torso
- itlh.Part1=miked:findFirstChild("Left Leg")
- itlh.C0=CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- itrh=miked.Torso:findFirstChild("Right Hip")
- itrh.Part0=miked.Torso
- itrh.Part1=miked:findFirstChild("Right Leg")
- itrh.C0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- itls=miked.Torso:findFirstChild("Left Shoulder")
- itls.Part1=miked.Torso
- itls.C0=CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- itls.Part0=miked:findFirstChild("Left Arm")
- itrs=miked.Torso:findFirstChild("Right Shoulder")
- itrs.Part1=miked.Torso
- itrs.C0=CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- itrs.Part0=miked:findFirstChild("Right Arm")
- miked.Head:makeJoints()
- ------------------
- ------------------
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- local Figure = script.Parent
- local Torso = waitForChild(Figure, "Torso")
- local RightShoulder = waitForChild(Torso, "Right Shoulder")
- local LeftShoulder = waitForChild(Torso, "Left Shoulder")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid = waitForChild(Figure, "Zombie")
- local pose = "Standing"
- local toolAnim = "None"
- local toolAnimTime = 0
- local isSeated = false
- function onRunning(speed)
- if isSeated then return end
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- wait(regentime)
- wait(1)
- model:remove()
- model = backup:Clone()
- wait(3)
- model.Parent = game.Workspace
- model:MakeJoints()
- end
- function onJumping()
- isSeated = false
- pose = "Jumping"
- end
- function onClimbing()
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- pose = "FreeFall"
- end
- function onDancing()
- pose = "Dancing"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- isSeated = true
- pose = "Seated"
- end
- function moveJump()
- RightShoulder.MaxVelocity = 1
- LeftShoulder.MaxVelocity = 1
- RightShoulder.DesiredAngle = -3.14
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveFreeFall()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1
- LeftShoulder.DesiredAngle = -1
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveFloat()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 1.57
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = -1.57
- end
- function moveBoogy()
- while pose=="Boogy" do
- wait(.5)
- RightShoulder.MaxVelocity = 1
- LeftShoulder.MaxVelocity = 1
- RightShoulder.DesiredAngle = -3.14
- LeftShoulder.DesiredAngle = 0
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 0
- wait(.5)
- RightShoulder.MaxVelocity = 1
- LeftShoulder.MaxVelocity = 1
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 1.57
- end
- end
- function moveZombie()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 1.57
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function movePunch()
- script.Parent.Torso.Anchored=true
- RightShoulder.MaxVelocity = 60
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 0
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- wait(1)
- script.Parent.Torso.Anchored=false
- pose="Standing"
- end
- function moveKick()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = 0
- RightHip.MaxVelocity = 40
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 0
- wait(1)
- pose="Standing"
- end
- function moveFly()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = 0
- RightHip.MaxVelocity = 40
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 0
- wait(1)
- pose="Standing"
- end
- function moveClimb()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -3.14
- LeftShoulder.DesiredAngle = 3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder.DesiredAngle = -3.14 /2
- LeftShoulder.DesiredAngle = -3.14 /2
- RightHip.DesiredAngle = 3.14 /2
- LeftHip.DesiredAngle = -3.14 /2
- end
- function getTool()
- kidTable = Figure:children()
- if (kidTable ~= nil) then
- numKids = #kidTable
- for i=1,numKids do
- if (kidTable[i].className == "Tool") then return kidTable[i] end
- end
- end
- return nil
- end
- function getToolAnim(tool)
- c = tool:children()
- for i=1,#c do
- if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
- return c[i]
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- RightShoulder.DesiredAngle = -1.57
- return
- end
- if (toolAnim == "Slash") then
- RightShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- return
- end
- if (toolAnim == "Lunge") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightHip.MaxVelocity = 0.5
- LeftHip.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = -1.57
- LeftShoulder.DesiredAngle = 1.0
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 1.0
- return
- end
- end
- function move(time)
- local amplitude
- local frequency
- if (pose == "Jumping") then
- moveJump()
- return
- end
- if (pose == "Zombie") then
- moveZombie()
- return
- end
- if (pose == "Boogy") then
- moveBoogy()
- return
- end
- if (pose == "Float") then
- moveFloat()
- return
- end
- if (pose == "Punch") then
- movePunch()
- return
- end
- if (pose == "Kick") then
- moveKick()
- return
- end
- if (pose == "Fly") then
- moveFly()
- return
- end
- if (pose == "FreeFall") then
- moveFreeFall()
- return
- end
- if (pose == "Climbing") then
- moveClimb()
- return
- end
- if (pose == "Seated") then
- moveSit()
- return
- end
- amplitude = 0.1
- frequency = 1
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- if (pose == "Running") then
- amplitude = 1
- frequency = 9
- elseif (pose == "Dancing") then
- amplitude = 2
- frequency = 16
- end
- desiredAngle = amplitude * math.sin(time*frequency)
- if pose~="Dancing" then
- RightShoulder.DesiredAngle = -desiredAngle
- LeftShoulder.DesiredAngle = desiredAngle
- RightHip.DesiredAngle = -desiredAngle
- LeftHip.DesiredAngle = -desiredAngle
- else
- RightShoulder.DesiredAngle = desiredAngle
- LeftShoulder.DesiredAngle = desiredAngle
- RightHip.DesiredAngle = -desiredAngle
- LeftHip.DesiredAngle = -desiredAngle
- end
- local tool = getTool()
- if tool ~= nil then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject ~= nil then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- toolAnim = "None"
- toolAnimTime = 0
- end
- end
- -- connect events
- -----------------------------------------------------------------------------------------------------------------------
- function unequip()
- local items=script.Parent:children()
- for i=1, #items do
- if items[i].className=="Tool" then items[i]:remove() end
- end
- end
- function onChatted(msg, recipient)
- msg = string.lower(msg)
- if string.match(msg, string.lower(script.Parent.Name))~=nil or string.match(msg, "everyone") then
- if string.match(msg, "equip") then
- if game.Workspace:findFirstChild("Hub") then
- if string.match(msg, "rocket") then unequip()
- game.Workspace.Hub.Rocket:clone().Parent=script.Parent
- elseif string.match(msg, "slingshot") then unequip()
- game.Workspace.Hub.Slingshot:clone().Parent=script.Parent
- elseif string.match(msg, "sword") then unequip()
- game.Workspace.Hub.Sword:clone().Parent=script.Parent
- elseif string.match(msg, "pbg") then unequip()
- game.Workspace.Hub.PBG:clone().Parent=script.Parent
- elseif string.match(msg, "superball") then unequip()
- game.Workspace.Hub.Superball:clone().Parent=script.Parent
- elseif string.match(msg, "trowel") then unequip()
- game.Workspace.Hub.Trowel:clone().Parent=script.Parent
- elseif string.match(msg, "bomb") then unequip()
- game.Workspace.Hub.Bomb:clone().Parent=script.Parent
- end
- end
- end
- if string.match(msg, "unequip") then unequip() end
- if string.match(msg, "run") then onRunning(1) end
- if string.match(msg, "climb") then onClimbing() end
- if string.match(msg, "jump") then onJumping() end
- if string.match(msg, "zombie") then pose="Zombie" end
- if string.match(msg, "disco") then pose="Boogy" end
- if string.match(msg, "float") then pose="Float" end
- if string.match(msg, "punch") then pose="Punch" end
- if string.match(msg, "kick") then pose="Kick" end
- if string.match(msg, "fly") then pose="Fly" end
- if string.match(msg, "heal") then script.Parent.Humanoid.Health=script.Parent.Humanoid.MaxHealth end
- if string.match(msg, "defend") then defence() end
- if string.match(msg, "stop") then pose="Standing"; proxkill=false; following=false; stopmoving() end
- if string.match(msg, "go home") then following=false; gohome() end
- if string.match(msg, "follow") then
- if string.match(msg, "all") then
- followany()
- else
- local egg=game.Players:children()
- for i=1, #egg do
- if string.match(msg, string.lower(egg[i].Name)) then
- follow(egg[i].Name)
- return
- end
- end
- end
- end
- if string.match(msg, "kill") then
- if string.match(msg, "all") then
- attackany()
- else
- local egg=game.Players:children()
- for i=1, #egg do
- if string.match(msg, string.lower(egg[i].Name)) then
- attack(egg[i].Name)
- return
- end
- end
- end
- end
- end
- end
- if game.Players.NumPlayers>1 then
- x=game.Players:children()
- for i=1, #x do
- if script.Parent:findFirstChild("Commander")~=nil then
- if script.Parent.Commander:children()~=nil or script.Parent.Commander:children()>0 then
- local ch=script.Parent.Commander:children()
- for i=1, #ch do
- if string.lower(ch[i].Name)==string.lower(x[i].Name) then
- x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
- end
- end
- elseif string.lower(script.Parent.Commander.Value)==string.lower(x[i].Name) then
- x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
- end
- else
- x[i].Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
- end
- end
- end
- function onPlayerEntered(Player)
- while Player.Name==nil do
- wait(2)
- end
- if script.Parent:findFirstChild("Commander")~=nil then
- if script.Parent.Commander:children()~=nil or script.Parent.Commander:children()>0 then
- local ch=script.Parent.Commander:children()
- for i=1, #ch do
- if string.lower(ch[i].Name)==string.lower(Player.Name) then
- Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
- end
- end
- elseif string.lower(script.Parent.Commander.Value)==string.lower(Player.Name) then
- Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
- end
- else
- Player.Chatted:connect(function(msg, recipient) onChatted(msg, recipient) end)
- end
- end
- game.Players.ChildAdded:connect(onPlayerEntered)
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- dist=20
- function followany()
- following=true
- while following==true do
- local ch=game.Players:children()
- for i=1, #ch do
- local l=game.Workspace:findFirstChild(ch[i].Name)
- if l~=nil then
- local s=l.Torso
- local p=l.Torso.Position
- local q=script.Parent.Torso.Position
- local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
- if smallest==nil then
- smallest=d
- target=s
- elseif d<smallest then
- smallest=d
- target=s
- end
- end
- end
- if smallest==nil then stopmoving() return end
- if smallest>6*dist then return end
- script.Parent.Humanoid:MoveTo(target.Position, target)
- wait(0.5)
- for i=1, 6 do
- if target.Parent.Humanoid.Health<1 then stopmoving() else wait(0.5) end
- end
- end
- end
- function gohome()
- script.Parent.Humanoid:MoveTo(Vector3.new(0,0,0), game.Workspace.Bases.Base)
- end
- function stopmoving()
- script.Parent.Humanoid:MoveTo(script.Parent.Torso.Position, script.Parent.Torso)
- end
- function follow(name)
- following=true
- local p=game.Workspace:findFirstChild(name)
- if p==nil then return end
- while following==true do
- script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
- wait(0.5)
- for i=1, 3 do
- if p.Humanoid.Health<1 then following=false; stopmoving() return end
- wait(0.5)
- end
- end
- end
- function attack(name)
- if script.Parent:findFirstChild("Sword")~=nil then
- following=true
- local p=game.Workspace:findFirstChild(name)
- if p==nil then return end
- while following==true do
- script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso)
- wait(0.5)
- for i=1, 3 do
- if p.Humanoid.Health<1 then following=false; stopmoving() return end
- local l=p.Torso.Position
- local q=script.Parent.Torso.Position
- local d=math.sqrt( ((l.x-q.x)^2)+((l.y-q.y)^2)+((l.z-q.z)^2) )
- if d<10 then
- script.Parent.Humanoid:MoveTo(p.Torso.Position, p.Torso); slash()
- if (q.y-l.y)>3 and (q.y-l.y)<7 then
- script.Parent.Humanoid:MoveTo(p.Torso.Position+Vector3.new(math.random(-4,4),0,math.random(-4,4)), p.Torso);
- end
- end
- wait(1)
- end
- end
- end
- end
- function attackany()
- if script.Parent:findFirstChild("Sword")~=nil then
- following=true
- while following==true do
- local ch=game.Players:children()
- for i=1, #ch do
- local l=game.Workspace:findFirstChild(ch[i].Name)
- if l~=nil then
- local s=l.Torso
- local p=l.Torso.Position
- local q=script.Parent.Torso.Position
- local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
- if smallest==nil then
- smallest=d
- target=s
- elseif d<smallest then
- smallest=d
- target=s
- end
- end
- end
- if smallest==nil then stopmoving() return end
- if smallest>6*dist then return end
- script.Parent.Humanoid:MoveTo(target.Position, target)
- if smallest<10 then
- slash()
- end
- if target.Parent==nil then stopmoving() return end
- wait(0.5)
- for i=1, 3 do
- if target.Parent.Humanoid.Health<1 then
- stopmoving()
- else
- local p=target.Position
- local q=script.Parent.Torso.Position
- local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
- if d<10 then
- script.Parent.Humanoid:MoveTo(target.Position, target); slash()
- if (q.y-p.y)>3 and (q.y-p.y)<7 then
- script.Parent.Humanoid:MoveTo(p.Torso.Position+Vector3.new(math.random(-4,4),0,math.random(-4,4)), p.Torso);
- end
- end
- wait(1)
- end
- end
- end
- end
- end
- function patrol()
- if points==nil then
- points=0
- if game.Workspace:findFirstChild("pp1")~=nil then
- pp1=game.Workspace:findFirstChild("pp1")
- local points=points+1
- if game.Workspace:findFirstChild("pp2")~=nil then
- pp2=game.Workspace:findFirstChild("pp2")
- local points=points+1
- if game.Workspace:findFirstChild("pp3")~=nil then
- pp3=game.Workspace:findFirstChild("pp3")
- local points=points+1
- if game.Workspace:findFirstChild("pp4")~=nil then
- pp4=game.Workspace:findFirstChild("pp4")
- local points=points+1
- if game.Workspace:findFirstChild("pp5")~=nil then
- pp5=game.Workspace:findFirstChild("pp5")
- local points=points+1
- if game.Workspace:findFirstChild("pp6")~=nil then
- pp6=game.Workspace:findFirstChild("pp6")
- local points=points+1
- if game.Workspace:findFirstChild("pp7")~=nil then
- pp7=game.Workspace:findFirstChild("pp7")
- local points=points+1
- if game.Workspace:findFirstChild("pp8")~=nil then
- pp8=game.Workspace:findFirstChild("pp8")
- local points=points+1
- if game.Workspace:findFirstChild("pp9")~=nil then
- pp9=game.Workspace:findFirstChild("pp9")
- local points=points+1
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- if points<1 then return end
- patrolling=true
- local time=2
- if points==1 then return end
- if points>1 then
- while patrolling==true do
- script.Parent.Humanoid:MoveTo(pp1.Position, pp1)
- wait(time)
- script.Parent.Humanoid:MoveTo(pp2.Position, pp2)
- wait(time)
- if points>2 then
- script.Parent.Humanoid:MoveTo(pp3.Position, pp3)
- wait(time)
- if points>3 then
- script.Parent.Humanoid:MoveTo(pp4.Position, pp4)
- wait(time)
- if points>4 then
- script.Parent.Humanoid:MoveTo(pp5.Position, pp5)
- wait(time)
- if points>5 then
- script.Parent.Humanoid:MoveTo(pp6.Position, pp6)
- wait(time)
- if points>6 then
- script.Parent.Humanoid:MoveTo(pp7.Position, pp7)
- wait(time)
- if points>7 then
- script.Parent.Humanoid:MoveTo(pp8.Position, pp8)
- wait(time)
- if points>8 then
- script.Parent.Humanoid:MoveTo(pp9.Position, pp9)
- wait(time)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function goto(pos,part)
- while true do
- end
- end
- function slash()
- for i=1, 3 do
- wait(.3)
- RightShoulder.MaxVelocity = 2
- LeftShoulder.MaxVelocity = 1
- RightShoulder.DesiredAngle = -2.14
- LeftShoulder.DesiredAngle = 0
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- wait(.2)
- RightShoulder.MaxVelocity = 2
- LeftShoulder.MaxVelocity = 1
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = 0
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- end
- function defence()
- proxkill=true
- while proxkill==true do
- local ch=game.Players:children()
- for i=1, #ch do
- local p=game.Workspace:findFirstChild(ch[i].Name)
- if p~=nil then
- local p=p.Torso.Position
- local q=script.Parent.Torso.Position
- local d=math.sqrt( ((p.x-q.x)^2)+((p.y-q.y)^2)+((p.z-q.z)^2) )
- if d<dist and d>8 then
- local ex=Instance.new("Explosion")
- ex.Position=p
- ex.Parent=game.Workspace
- end
- end
- end
- wait(1)
- end
- end
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- -----------------------------------------------------------------------------------------------------------------------
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- --[[
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.Parent = script.Parent.Head
- return sound
- end
- local sDied = newSound("rbxasset://sounds/uuhhh.wav")
- local sFallingDown = newSound("rbxasset://sounds/splat.wav")
- local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
- local sGettingUp = newSound("rbxasset://sounds/hit.wav")
- local sJumping = newSound("rbxasset://sounds/button.wav")
- local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
- sRunning.Looped = true
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- function onDied()
- sDied:play()
- end
- function onState(state, sound)
- if state then
- sound:play()
- else
- sound:pause()
- end
- end
- function onRunning(speed)
- if speed>0 then
- sRunning:play()
- else
- sRunning:pause()
- end
- end
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
- --]]
- local nextTime = 0
- local runService = game:service("RunService");
- while Figure.Parent~=nil do
- time = runService.Stepped:wait()
- if time > nextTime then
- move(time)
- nextTime = time + 0.1
- end
- end
- end))
- Tool251.Name = "Combat Knife"
- Tool251.Parent = Model86
- Tool251.GripForward = Vector3.new(-0.127611369, 0.990670502, -0.047826115)
- Tool251.GripPos = Vector3.new(0.652674198, -0.0821215212, 0.0751298293)
- Tool251.GripRight = Vector3.new(-0.0274157617, -0.0517252237, -0.998284876)
- Tool251.GripUp = Vector3.new(0.991445243, 0.126081318, -0.0337607116)
- Tool251.ToolTip = "Made by 12904(Builder/Scripter)"
- Script252.Name = "SwordScript"
- Script252.Parent = Tool251
- table.insert(cors,sandbox(Script252,function()
- -- Made by 12904(Builder/Scripter)
- local Event = script.Parent.SwordEvent
- local Handle = script.Parent.Handle
- local CoolDown = .75
- local Fire = true
- local On = false
- local fire2 = true
- script.Parent.Equipped:connect(function(Mouse)
- Event:Fire(Handle, CoolDown, Mouse)
- end)
- script.Parent.Activated:connect(function()
- if Fire == true then
- Fire = false
- spawn(function()
- On = true
- wait(.3)
- On = false
- end)
- On = false
- Event:Fire(CoolDown, Handle, 2)
- wait(CoolDown)
- Fire = true
- end
- end)
- script.Parent.Unequipped:connect(function(Mouse)
- Event:Fire(2, 6, Mouse)
- end)
- Handle.Touched:connect(function(Hit)
- if not Hit:IsDescendantOf(script.Parent.Parent) then
- if Hit.Parent:FindFirstChild("Humanoid") and Hit.Parent:FindFirstChild("Head") then
- if fire2 == true then
- fire2 = false
- if On == true then
- Hit.Parent.Humanoid:TakeDamage(35)
- end
- wait(CoolDown)
- fire2 = true
- end
- end
- end
- end)
- end))
- Animation253.Name = "Slash"
- Animation253.Parent = Tool251
- Animation253.AnimationId = "http://www.roblox.com/Asset?ID=28090109"
- BindableEvent254.Name = "SwordEvent"
- BindableEvent254.Parent = Tool251
- LocalScript255.Name = "SwordLocalScript"
- LocalScript255.Parent = Tool251
- table.insert(cors,sandbox(LocalScript255,function()
- -- Made by 12904(Builder/Scripter)
- local Event = script.Parent.SwordEvent
- local Anims = {script.Parent.OH}
- local Sound1 = script.Parent.Handle.Hit
- local Sound2 = script.Parent.Handle.Equipped
- Event.Event:connect(function(Tuple1,Tuple2,Tuple3)
- if Tuple1 == script.Parent.Handle and Tuple2 == .75 then
- end
- end)
- Event.Event:connect(function(Tuple1,Tuple2,Tuple3)
- if Tuple2 == script.Parent.Handle and Tuple1 == .75 then
- Sound1:Play()
- local ani = Anims[math.random(1, #Anims)]
- local loadedani = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(ani)
- loadedani:Play()
- end
- end)
- Event.Event:connect(function(Tuple1,Tuple2,Tuple3)
- if Tuple1 == 2 and Tuple2 == 6 then
- Sound2:Play()
- end
- end)
- end))
- Animation256.Name = "Thrust"
- Animation256.Parent = Tool251
- Animation256.AnimationId = "http://www.roblox.com/Asset?ID=94161333"
- Animation257.Name = "OH"
- Animation257.Parent = Tool251
- Animation257.AnimationId = "http://www.roblox.com/Asset?ID=94160738"
- Sound258.Name = "Equipped"
- Sound258.Parent = mas
- Sound258.SoundId = "rbxasset://sounds/unsheath.wav"
- Sound258.Volume = 1
- Sound259.Name = "Hit"
- Sound259.Parent = mas
- Sound259.SoundId = "rbxasset://sounds/swordslash.wav"
- Sound259.Volume = 0.69999998807907
- Part260.Parent = Model0
- Part260.Material = Enum.Material.Glass
- Part260.BrickColor = BrickColor.new("Pastel Blue")
- Part260.Transparency = 0.60000002384186
- Part260.Anchored = true
- Part260.Size = Vector3.new(0.300000012, 5.13000011, 11.8800039)
- Part260.CFrame = CFrame.new(-44.4338036, 20.3950062, 9.95282364, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part260.BottomSurface = Enum.SurfaceType.Smooth
- Part260.TopSurface = Enum.SurfaceType.Smooth
- Part260.Color = Color3.new(0.501961, 0.733333, 0.858824)
- Part260.Position = Vector3.new(-44.4338036, 20.3950062, 9.95282364)
- Part260.Color = Color3.new(0.501961, 0.733333, 0.858824)
- Part261.Parent = Model0
- Part261.BrickColor = BrickColor.new("Really black")
- Part261.Anchored = true
- Part261.Size = Vector3.new(0.789999843, 7.13000059, 0.959998429)
- Part261.CFrame = CFrame.new(-44.6388016, 20.3950081, 16.3828278, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part261.BottomSurface = Enum.SurfaceType.Smooth
- Part261.TopSurface = Enum.SurfaceType.Smooth
- Part261.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part261.Position = Vector3.new(-44.6388016, 20.3950081, 16.3828278)
- Part261.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part262.Parent = Model0
- Part262.BrickColor = BrickColor.new("Fossil")
- Part262.Anchored = true
- Part262.Size = Vector3.new(7.81999636, 15.5399981, 0.680000007)
- Part262.CFrame = CFrame.new(-49.0800018, 21.8499966, -10.6399822, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part262.BottomSurface = Enum.SurfaceType.Smooth
- Part262.TopSurface = Enum.SurfaceType.Smooth
- Part262.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part262.Position = Vector3.new(-49.0800018, 21.8499966, -10.6399822)
- Part262.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part263.Parent = Model0
- Part263.BrickColor = BrickColor.new("Fossil")
- Part263.Anchored = true
- Part263.Size = Vector3.new(0.580000103, 6.75, 5.15000057)
- Part263.CFrame = CFrame.new(-5.1100049, 4.1850028, 33.0346222, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part263.BottomSurface = Enum.SurfaceType.Smooth
- Part263.TopSurface = Enum.SurfaceType.Smooth
- Part263.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part263.Position = Vector3.new(-5.1100049, 4.1850028, 33.0346222)
- Part263.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Attachment264.Name = "Attachment1"
- Attachment264.Parent = Part263
- Attachment264.Rotation = Vector3.new(3.65265237e-06, -50.0000496, 5.19300318)
- Attachment264.CFrame = CFrame.new(-0.290000051, -1.04999995, 0.579999983, 0.64014864, -0.0581792668, -0.766044974, 0.0905109048, 0.995895505, -4.09781933e-08, 0.76290071, -0.0693354011, 0.64278698)
- Attachment264.Position = Vector3.new(-0.290000051, -1.04999995, 0.579999983)
- Attachment264.Axis = Vector3.new(0.64014864, 0.0905109048, 0.76290071)
- Attachment264.Orientation = Vector3.new(2.34787763e-06, -50.0000496, 5.19299984)
- Part265.Parent = Model0
- Part265.BrickColor = BrickColor.new("Fossil")
- Part265.Anchored = true
- Part265.Size = Vector3.new(0.560000062, 28.4400024, 49.4000015)
- Part265.CFrame = CFrame.new(-4.54000425, 15.220005, 12.2228251, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part265.BottomSurface = Enum.SurfaceType.Smooth
- Part265.TopSurface = Enum.SurfaceType.Smooth
- Part265.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part265.Position = Vector3.new(-4.54000425, 15.220005, 12.2228251)
- Part265.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Attachment266.Name = "Attachment1"
- Attachment266.Parent = Part265
- Attachment266.Rotation = Vector3.new(-5.57260762e-07, 39.9999466, -5.19296932)
- Attachment266.CFrame = CFrame.new(-0.280000031, -13.5900002, -24.1599998, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 7.4505806e-09, -0.64014864, -0.0581788979, 0.766044974)
- Attachment266.Position = Vector3.new(-0.280000031, -13.5900002, -24.1599998)
- Attachment266.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
- Attachment266.Orientation = Vector3.new(-4.26886828e-07, 39.9999504, -5.1929698)
- Model267.Parent = Model0
- Part268.Name = "ROFL"
- Part268.Parent = Model267
- Part268.BrickColor = BrickColor.new("Fossil")
- Part268.Anchored = true
- Part268.FormFactor = Enum.FormFactor.Plate
- Part268.Size = Vector3.new(7, 1.20000005, 2)
- Part268.CFrame = CFrame.new(-49.042881, 0.600024223, -9.92998695, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part268.TopSurface = Enum.SurfaceType.Smooth
- Part268.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part268.Position = Vector3.new(-49.042881, 0.600024223, -9.92998695)
- Part268.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part269.Name = "ROFL"
- Part269.Parent = Model267
- Part269.BrickColor = BrickColor.new("Fossil")
- Part269.Anchored = true
- Part269.FormFactor = Enum.FormFactor.Plate
- Part269.Size = Vector3.new(7, 1.20000005, 2)
- Part269.CFrame = CFrame.new(-49.0428734, 1.80002499, -8.92998886, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part269.TopSurface = Enum.SurfaceType.Smooth
- Part269.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part269.Position = Vector3.new(-49.0428734, 1.80002499, -8.92998886)
- Part269.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part270.Name = "ROFL"
- Part270.Parent = Model267
- Part270.BrickColor = BrickColor.new("Fossil")
- Part270.Anchored = true
- Part270.FormFactor = Enum.FormFactor.Plate
- Part270.Size = Vector3.new(7, 1.20000005, 2)
- Part270.CFrame = CFrame.new(-49.042881, 3.00002384, -7.92999268, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part270.TopSurface = Enum.SurfaceType.Smooth
- Part270.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part270.Position = Vector3.new(-49.042881, 3.00002384, -7.92999268)
- Part270.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part271.Name = "ROFL"
- Part271.Parent = Model267
- Part271.BrickColor = BrickColor.new("Fossil")
- Part271.Anchored = true
- Part271.FormFactor = Enum.FormFactor.Plate
- Part271.Size = Vector3.new(7, 1.20000005, 2)
- Part271.CFrame = CFrame.new(-49.0428734, 4.2000246, -6.92999268, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part271.TopSurface = Enum.SurfaceType.Smooth
- Part271.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part271.Position = Vector3.new(-49.0428734, 4.2000246, -6.92999268)
- Part271.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part272.Name = "ROFL"
- Part272.Parent = Model267
- Part272.BrickColor = BrickColor.new("Fossil")
- Part272.Anchored = true
- Part272.FormFactor = Enum.FormFactor.Plate
- Part272.Size = Vector3.new(7, 1.20000005, 2)
- Part272.CFrame = CFrame.new(-49.0428734, 5.40002346, -5.9299984, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part272.TopSurface = Enum.SurfaceType.Smooth
- Part272.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part272.Position = Vector3.new(-49.0428734, 5.40002346, -5.9299984)
- Part272.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part273.Name = "ROFL"
- Part273.Parent = Model267
- Part273.BrickColor = BrickColor.new("Fossil")
- Part273.Anchored = true
- Part273.FormFactor = Enum.FormFactor.Plate
- Part273.Size = Vector3.new(7, 1.20000005, 2)
- Part273.CFrame = CFrame.new(-49.0428848, 6.60002422, -4.93000031, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part273.TopSurface = Enum.SurfaceType.Smooth
- Part273.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part273.Position = Vector3.new(-49.0428848, 6.60002422, -4.93000031)
- Part273.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part274.Name = "ROFL"
- Part274.Parent = Model267
- Part274.BrickColor = BrickColor.new("Fossil")
- Part274.Anchored = true
- Part274.FormFactor = Enum.FormFactor.Plate
- Part274.Size = Vector3.new(7, 1.20000005, 2)
- Part274.CFrame = CFrame.new(-49.0428886, 7.80002499, -3.92999721, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part274.TopSurface = Enum.SurfaceType.Smooth
- Part274.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part274.Position = Vector3.new(-49.0428886, 7.80002499, -3.92999721)
- Part274.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part275.Name = "ROFL"
- Part275.Parent = Model267
- Part275.BrickColor = BrickColor.new("Fossil")
- Part275.Anchored = true
- Part275.FormFactor = Enum.FormFactor.Plate
- Part275.Size = Vector3.new(7, 1.20000005, 2)
- Part275.CFrame = CFrame.new(-49.0428886, 9.00002384, -2.93000007, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part275.TopSurface = Enum.SurfaceType.Smooth
- Part275.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part275.Position = Vector3.new(-49.0428886, 9.00002384, -2.93000007)
- Part275.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part276.Name = "ROFL"
- Part276.Parent = Model267
- Part276.BrickColor = BrickColor.new("Fossil")
- Part276.Anchored = true
- Part276.FormFactor = Enum.FormFactor.Plate
- Part276.Size = Vector3.new(7, 1.20000005, 2)
- Part276.CFrame = CFrame.new(-49.0428963, 10.2000265, -1.93000722, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part276.TopSurface = Enum.SurfaceType.Smooth
- Part276.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part276.Position = Vector3.new(-49.0428963, 10.2000265, -1.93000722)
- Part276.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part277.Name = "ROFL"
- Part277.Parent = Model267
- Part277.BrickColor = BrickColor.new("Fossil")
- Part277.Anchored = true
- Part277.FormFactor = Enum.FormFactor.Plate
- Part277.Size = Vector3.new(7, 1.20000005, 2)
- Part277.CFrame = CFrame.new(-49.0428886, 11.400033, -0.929999352, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part277.TopSurface = Enum.SurfaceType.Smooth
- Part277.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part277.Position = Vector3.new(-49.0428886, 11.400033, -0.929999352)
- Part277.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part278.Name = "ROFL"
- Part278.Parent = Model267
- Part278.BrickColor = BrickColor.new("Fossil")
- Part278.Anchored = true
- Part278.FormFactor = Enum.FormFactor.Plate
- Part278.Size = Vector3.new(7, 0.800000012, 2)
- Part278.CFrame = CFrame.new(-49.0428963, 12.4000292, 0.0699965954, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part278.TopSurface = Enum.SurfaceType.Smooth
- Part278.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part278.Position = Vector3.new(-49.0428963, 12.4000292, 0.0699965954)
- Part278.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part279.Parent = Model0
- Part279.BrickColor = BrickColor.new("Fossil")
- Part279.Anchored = true
- Part279.Size = Vector3.new(7.81999636, 1.05000007, 45.7999916)
- Part279.CFrame = CFrame.new(-49.0800018, 29.0950012, 11.9200153, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part279.BottomSurface = Enum.SurfaceType.Smooth
- Part279.TopSurface = Enum.SurfaceType.Smooth
- Part279.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part279.Position = Vector3.new(-49.0800018, 29.0950012, 11.9200153)
- Part279.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part280.Parent = Model0
- Part280.BrickColor = BrickColor.new("Fossil")
- Part280.Anchored = true
- Part280.Size = Vector3.new(12.4900045, 0.790002763, 49.4000015)
- Part280.CFrame = CFrame.new(-39.8212128, 29.045002, 12.2228251, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part280.BottomSurface = Enum.SurfaceType.Smooth
- Part280.TopSurface = Enum.SurfaceType.Smooth
- Part280.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part280.Position = Vector3.new(-39.8212128, 29.045002, 12.2228251)
- Part280.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Attachment281.Name = "Attachment1"
- Attachment281.Parent = Part280
- Attachment281.Rotation = Vector3.new(-5.57260762e-07, 39.9999466, -5.19296932)
- Attachment281.CFrame = CFrame.new(-6.24500275, -0.37750122, -24.1599998, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 7.4505806e-09, -0.64014864, -0.0581788979, 0.766044974)
- Attachment281.Position = Vector3.new(-6.24500275, -0.37750122, -24.1599998)
- Attachment281.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
- Attachment281.Orientation = Vector3.new(-4.26886828e-07, 39.9999504, -5.1929698)
- Seat282.Parent = mas
- Seat282.Material = Enum.Material.Sand
- Seat282.BrickColor = BrickColor.new("Bright red")
- Seat282.Transparency = 1
- Seat282.Rotation = Vector3.new(88.5899963, -81.8300018, 88.5699997)
- Seat282.Anchored = true
- Seat282.FormFactor = Enum.FormFactor.Custom
- Seat282.Size = Vector3.new(2.56531739, 0.21377641, 2.13776422)
- Seat282.CFrame = CFrame.new(-47.5213432, 16.1666355, 12.8096209, 0.00354599906, -0.142032966, -0.989855647, -5.89999836e-05, 0.989861786, -0.142034069, 0.999993742, 0.000562054105, 0.00350166904)
- Seat282.BottomSurface = Enum.SurfaceType.Smooth
- Seat282.TopSurface = Enum.SurfaceType.Smooth
- Seat282.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Seat282.Position = Vector3.new(-47.5213432, 16.1666355, 12.8096209)
- Seat282.Orientation = Vector3.new(8.17000008, -89.7999954, 0)
- Seat282.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Configuration283.Parent = Seat282
- NumberValue284.Name = "Head Angle"
- NumberValue284.Parent = Configuration283
- NumberValue285.Name = "Legs Angle"
- NumberValue285.Parent = Configuration283
- NumberValue285.Value = -10
- NumberValue286.Name = "Arms Angle"
- NumberValue286.Parent = Configuration283
- NumberValue286.Value = -45
- NumberValue287.Name = "Sitting Angle"
- NumberValue287.Parent = Configuration283
- Vector3Value288.Name = "Sitting Position"
- Vector3Value288.Parent = Configuration283
- Vector3Value288.Value = Vector3.new(0, 0.5, 0.5)
- Script289.Name = "OperationScript"
- Script289.Parent = Seat282
- table.insert(cors,sandbox(Script289,function()
- local WaitFor = (function(parent, child_name)
- local found = parent:FindFirstChild(child_name)
- while found == nil do
- parent.ChildAdded:wait()
- found = parent:FindFirstChild(child_name)
- if found then break end
- end
- return found
- end)
- local last = { neckC1 = nil, rshoC0 = nil, lshoC0 = nil, rhipC0 = nil, lhipC0 = nil }
- local ApplyModifications = (function(weld, char)
- local torso = WaitFor(char, "Torso")
- local neck = WaitFor(torso, "Neck")
- local rsho = WaitFor(torso, "Right Shoulder")
- local lsho = WaitFor(torso, "Left Shoulder")
- local rhip = WaitFor(torso, "Right Hip")
- local lhip = WaitFor(torso, "Left Hip")
- local config = script.Parent.Configuration
- local head_ang = config["Head Angle"].Value
- local legs_ang = config["Legs Angle"].Value
- local arms_ang = config["Arms Angle"].Value
- local sit_ang = config["Sitting Angle"].Value
- local sit_pos = config["Sitting Position"].Value
- --First adjust sitting position and angle
- --Add 90 to the angle because that's what most people will be expecting.
- weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(math.rad((sit_ang) + 90), 0, 0)
- weld.C0 = CFrame.new(sit_pos)
- last.neckC1 = neck.C1
- last.rshoC0 = rsho.C0
- last.lshoC0 = lsho.C0
- last.rhipC0 = rhip.C0
- last.lhipC0 = lhip.C0
- --Now adjust the neck angle.
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(math.rad(head_ang), 0, 0)
- --Now adjust the arms angle.
- rsho.C0 = rsho.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(arms_ang))
- lsho.C0 = lsho.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(-arms_ang))
- --Now the legs
- rhip.C0 = rhip.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(legs_ang))
- lhip.C0 = lhip.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(-legs_ang))
- end)
- local RevertModifications = (function(weld, char)
- --Any modifications done in ApplyModifications have to be reverted here if they
- --change any welds - otherwise people will wonder why their head is pointing the wrong way.
- local torso = WaitFor(char, "Torso")
- local neck = WaitFor(torso, "Neck")
- local rsho = WaitFor(torso, "Right Shoulder")
- local lsho = WaitFor(torso, "Left Shoulder")
- local rhip = WaitFor(torso, "Right Hip")
- local lhip = WaitFor(torso, "Left Hip")
- --Now adjust the neck angle.
- neck.C1 = last.neckC1 or CFrame.new()
- rsho.C0 = last.rshoC0 or CFrame.new()
- lsho.C0 = last.lshoC0 or CFrame.new()
- rhip.C0 = last.rhipC0 or CFrame.new()
- lhip.C0 = last.lhipC0 or CFrame.new()
- weld:Destroy()
- end)
- script.Parent.ChildAdded:connect(function(c)
- if c:IsA("Weld") then
- local character = nil
- if c.Part1 ~= nil and c.Part1.Parent ~= nil and c.Part1.Parent:FindFirstChild("Humanoid") ~= nil then
- character = c.Part1.Parent
- else return end
- ApplyModifications(c, character)
- end
- end)
- script.Parent.ChildRemoved:connect(function(c)
- if c:IsA("Weld") then
- local character = nil
- if c.Part1 ~= nil and c.Part1.Parent ~= nil and c.Part1.Parent:FindFirstChild("Humanoid") ~= nil then
- character = c.Part1.Parent
- else return end
- RevertModifications(c, character)
- end
- end)
- end))
- Seat290.Parent = mas
- Seat290.Material = Enum.Material.Sand
- Seat290.BrickColor = BrickColor.new("Bright red")
- Seat290.Transparency = 1
- Seat290.Rotation = Vector3.new(88.5899963, -81.8300018, 88.5699997)
- Seat290.Anchored = true
- Seat290.FormFactor = Enum.FormFactor.Custom
- Seat290.Size = Vector3.new(2.56531739, 0.21377641, 2.13776422)
- Seat290.CFrame = CFrame.new(-47.5215302, 16.1666393, 7.143466, 0.00354599906, -0.142032966, -0.989855647, -5.89999836e-05, 0.989861786, -0.142034069, 0.999993742, 0.000562054105, 0.00350166904)
- Seat290.BottomSurface = Enum.SurfaceType.Smooth
- Seat290.TopSurface = Enum.SurfaceType.Smooth
- Seat290.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Seat290.Position = Vector3.new(-47.5215302, 16.1666393, 7.143466)
- Seat290.Orientation = Vector3.new(8.17000008, -89.7999954, 0)
- Seat290.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Configuration291.Parent = Seat290
- NumberValue292.Name = "Head Angle"
- NumberValue292.Parent = Configuration291
- NumberValue293.Name = "Legs Angle"
- NumberValue293.Parent = Configuration291
- NumberValue293.Value = -10
- NumberValue294.Name = "Arms Angle"
- NumberValue294.Parent = Configuration291
- NumberValue294.Value = -45
- NumberValue295.Name = "Sitting Angle"
- NumberValue295.Parent = Configuration291
- Vector3Value296.Name = "Sitting Position"
- Vector3Value296.Parent = Configuration291
- Vector3Value296.Value = Vector3.new(0, 0.5, 0.5)
- Script297.Name = "OperationScript"
- Script297.Parent = Seat290
- table.insert(cors,sandbox(Script297,function()
- local WaitFor = (function(parent, child_name)
- local found = parent:FindFirstChild(child_name)
- while found == nil do
- parent.ChildAdded:wait()
- found = parent:FindFirstChild(child_name)
- if found then break end
- end
- return found
- end)
- local last = { neckC1 = nil, rshoC0 = nil, lshoC0 = nil, rhipC0 = nil, lhipC0 = nil }
- local ApplyModifications = (function(weld, char)
- local torso = WaitFor(char, "Torso")
- local neck = WaitFor(torso, "Neck")
- local rsho = WaitFor(torso, "Right Shoulder")
- local lsho = WaitFor(torso, "Left Shoulder")
- local rhip = WaitFor(torso, "Right Hip")
- local lhip = WaitFor(torso, "Left Hip")
- local config = script.Parent.Configuration
- local head_ang = config["Head Angle"].Value
- local legs_ang = config["Legs Angle"].Value
- local arms_ang = config["Arms Angle"].Value
- local sit_ang = config["Sitting Angle"].Value
- local sit_pos = config["Sitting Position"].Value
- --First adjust sitting position and angle
- --Add 90 to the angle because that's what most people will be expecting.
- weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(math.rad((sit_ang) + 90), 0, 0)
- weld.C0 = CFrame.new(sit_pos)
- last.neckC1 = neck.C1
- last.rshoC0 = rsho.C0
- last.lshoC0 = lsho.C0
- last.rhipC0 = rhip.C0
- last.lhipC0 = lhip.C0
- --Now adjust the neck angle.
- neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(math.rad(head_ang), 0, 0)
- --Now adjust the arms angle.
- rsho.C0 = rsho.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(arms_ang))
- lsho.C0 = lsho.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(-arms_ang))
- --Now the legs
- rhip.C0 = rhip.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(legs_ang))
- lhip.C0 = lhip.C0 * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(-legs_ang))
- end)
- local RevertModifications = (function(weld, char)
- --Any modifications done in ApplyModifications have to be reverted here if they
- --change any welds - otherwise people will wonder why their head is pointing the wrong way.
- local torso = WaitFor(char, "Torso")
- local neck = WaitFor(torso, "Neck")
- local rsho = WaitFor(torso, "Right Shoulder")
- local lsho = WaitFor(torso, "Left Shoulder")
- local rhip = WaitFor(torso, "Right Hip")
- local lhip = WaitFor(torso, "Left Hip")
- --Now adjust the neck angle.
- neck.C1 = last.neckC1 or CFrame.new()
- rsho.C0 = last.rshoC0 or CFrame.new()
- lsho.C0 = last.lshoC0 or CFrame.new()
- rhip.C0 = last.rhipC0 or CFrame.new()
- lhip.C0 = last.lhipC0 or CFrame.new()
- weld:Destroy()
- end)
- script.Parent.ChildAdded:connect(function(c)
- if c:IsA("Weld") then
- local character = nil
- if c.Part1 ~= nil and c.Part1.Parent ~= nil and c.Part1.Parent:FindFirstChild("Humanoid") ~= nil then
- character = c.Part1.Parent
- else return end
- ApplyModifications(c, character)
- end
- end)
- script.Parent.ChildRemoved:connect(function(c)
- if c:IsA("Weld") then
- local character = nil
- if c.Part1 ~= nil and c.Part1.Parent ~= nil and c.Part1.Parent:FindFirstChild("Humanoid") ~= nil then
- character = c.Part1.Parent
- else return end
- RevertModifications(c, character)
- end
- end)
- end))
- Model298.Name = "Button Door"
- Model298.Parent = Model0
- Part299.Name = "Open"
- Part299.Parent = Model298
- Part299.BrickColor = BrickColor.new("Bright green")
- Part299.Rotation = Vector3.new(-90, 0, 90)
- Part299.Anchored = true
- Part299.FormFactor = Enum.FormFactor.Plate
- Part299.Size = Vector3.new(2, 0.400000006, 2)
- Part299.CFrame = CFrame.new(-45.7953377, 19.7077999, 28.0808773, 0, -1, 0, 0, 0, 1, -1, 0, 0)
- Part299.BottomSurface = Enum.SurfaceType.Smooth
- Part299.TopSurface = Enum.SurfaceType.Smooth
- Part299.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part299.Position = Vector3.new(-45.7953377, 19.7077999, 28.0808773)
- Part299.Orientation = Vector3.new(-90, 90, 0)
- Part299.Color = Color3.new(0.294118, 0.592157, 0.294118)
- ClickDetector300.Parent = Part299
- Script301.Parent = Part299
- table.insert(cors,sandbox(Script301,function()
- function onClicked()
- script.Parent.Parent.Door.Transparency=0.5
- script.Parent.Parent.Door.CanCollide=false
- end
- script.Parent.ClickDetector.MouseClick:connect(onClicked)
- end))
- TrussPart302.Parent = Model298
- TrussPart302.BrickColor = BrickColor.new("Really black")
- TrussPart302.Rotation = Vector3.new(90, 0, -90)
- TrussPart302.Anchored = true
- TrussPart302.Size = Vector3.new(2, 12, 2)
- TrussPart302.CFrame = CFrame.new(-28.175848, 28.7830029, 2.17000103, 0, 1, 0, 0, 0, -1, -1, 0, 0)
- TrussPart302.BackSurface = Enum.SurfaceType.Smooth
- TrussPart302.FrontSurface = Enum.SurfaceType.Smooth
- TrussPart302.RightSurface = Enum.SurfaceType.Smooth
- TrussPart302.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- TrussPart302.Position = Vector3.new(-28.175848, 28.7830029, 2.17000103)
- TrussPart302.Orientation = Vector3.new(90, 90, 0)
- TrussPart302.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part303.Name = "Close"
- Part303.Parent = Model298
- Part303.BrickColor = BrickColor.new("Bright red")
- Part303.Rotation = Vector3.new(0, 0, 90)
- Part303.Anchored = true
- Part303.FormFactor = Enum.FormFactor.Plate
- Part303.Size = Vector3.new(2, 0.400000006, 2)
- Part303.CFrame = CFrame.new(-45.8077164, 17.7191525, 28.0585632, 0, -1, 0, 1, 0, 0, 0, 0, 1)
- Part303.BottomSurface = Enum.SurfaceType.Smooth
- Part303.TopSurface = Enum.SurfaceType.Smooth
- Part303.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part303.Position = Vector3.new(-45.8077164, 17.7191525, 28.0585632)
- Part303.Orientation = Vector3.new(0, 0, 90)
- Part303.Color = Color3.new(0.768628, 0.156863, 0.109804)
- ClickDetector304.Parent = Part303
- Script305.Parent = Part303
- table.insert(cors,sandbox(Script305,function()
- function onClicked()
- script.Parent.Parent.Door.Transparency=0
- script.Parent.Parent.Door.CanCollide=true
- end
- script.Parent.ClickDetector.MouseClick:connect(onClicked)
- end))
- Part306.Name = "Door"
- Part306.Parent = Model298
- Part306.BrickColor = BrickColor.new("Dark stone grey")
- Part306.Rotation = Vector3.new(90, 0, -90)
- Part306.Anchored = true
- Part306.Size = Vector3.new(12, 12, 2)
- Part306.CFrame = CFrame.new(-28.175848, 28.7830029, 9.17000103, 0, 1, 0, 0, 0, -1, -1, 0, 0)
- Part306.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part306.Position = Vector3.new(-28.175848, 28.7830029, 9.17000103)
- Part306.Orientation = Vector3.new(90, 90, 0)
- Part306.Color = Color3.new(0.388235, 0.372549, 0.384314)
- TrussPart307.Parent = Model298
- TrussPart307.BrickColor = BrickColor.new("Really black")
- TrussPart307.Rotation = Vector3.new(90, 90, 0)
- TrussPart307.Anchored = true
- TrussPart307.Size = Vector3.new(2, 16, 2)
- TrussPart307.CFrame = CFrame.new(-21.1758404, 28.7830029, 9.17000103, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- TrussPart307.BottomSurface = Enum.SurfaceType.Smooth
- TrussPart307.LeftSurface = Enum.SurfaceType.Smooth
- TrussPart307.RightSurface = Enum.SurfaceType.Smooth
- TrussPart307.TopSurface = Enum.SurfaceType.Smooth
- TrussPart307.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- TrussPart307.Position = Vector3.new(-21.1758404, 28.7830029, 9.17000103)
- TrussPart307.Orientation = Vector3.new(0, 90, 90)
- TrussPart307.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- TrussPart308.Parent = Model298
- TrussPart308.BrickColor = BrickColor.new("Really black")
- TrussPart308.Rotation = Vector3.new(90, 0, -90)
- TrussPart308.Anchored = true
- TrussPart308.Size = Vector3.new(2, 12, 2)
- TrussPart308.CFrame = CFrame.new(-28.175848, 28.7830029, 16.1699944, 0, 1, 0, 0, 0, -1, -1, 0, 0)
- TrussPart308.BackSurface = Enum.SurfaceType.Smooth
- TrussPart308.FrontSurface = Enum.SurfaceType.Smooth
- TrussPart308.LeftSurface = Enum.SurfaceType.Smooth
- TrussPart308.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- TrussPart308.Position = Vector3.new(-28.175848, 28.7830029, 16.1699944)
- TrussPart308.Orientation = Vector3.new(90, 90, 0)
- TrussPart308.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part309.Parent = Model0
- Part309.BrickColor = BrickColor.new("Fossil")
- Part309.Anchored = true
- Part309.Size = Vector3.new(0.820000112, 7.16000128, 17.7000008)
- Part309.CFrame = CFrame.new(-34.5722542, 33.0167084, 9.36000252, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part309.BottomSurface = Enum.SurfaceType.Smooth
- Part309.TopSurface = Enum.SurfaceType.Smooth
- Part309.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part309.Position = Vector3.new(-34.5722542, 33.0167084, 9.36000252)
- Part309.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part310.Parent = Model0
- Part310.BrickColor = BrickColor.new("Fossil")
- Part310.Anchored = true
- Part310.Size = Vector3.new(14.8100014, 7.16000128, 2.66000104)
- Part310.CFrame = CFrame.new(-26.7900887, 33.0167084, 1.84000242, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part310.BottomSurface = Enum.SurfaceType.Smooth
- Part310.TopSurface = Enum.SurfaceType.Smooth
- Part310.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part310.Position = Vector3.new(-26.7900887, 33.0167084, 1.84000242)
- Part310.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part311.Parent = Model0
- Part311.BrickColor = BrickColor.new("Fossil")
- Part311.Anchored = true
- Part311.Size = Vector3.new(18.9500046, 0.790002763, 49.4000015)
- Part311.CFrame = CFrame.new(-13.7350111, 29.045002, 12.2228251, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part311.BottomSurface = Enum.SurfaceType.Smooth
- Part311.TopSurface = Enum.SurfaceType.Smooth
- Part311.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part311.Position = Vector3.new(-13.7350111, 29.045002, 12.2228251)
- Part311.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Attachment312.Name = "Attachment1"
- Attachment312.Parent = Part311
- Attachment312.Rotation = Vector3.new(-5.57260762e-07, 39.9999466, -5.19296932)
- Attachment312.CFrame = CFrame.new(-9.47500324, -0.37750122, -24.1599998, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 7.4505806e-09, -0.64014864, -0.0581788979, 0.766044974)
- Attachment312.Position = Vector3.new(-9.47500324, -0.37750122, -24.1599998)
- Attachment312.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
- Attachment312.Orientation = Vector3.new(-4.26886828e-07, 39.9999504, -5.1929698)
- Part313.Parent = Model0
- Part313.BrickColor = BrickColor.new("Fossil")
- Part313.Anchored = true
- Part313.Size = Vector3.new(41.3600044, 0.790002763, 15.0700016)
- Part313.CFrame = CFrame.new(-24.9400082, 29.045002, -4.94217491, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part313.BottomSurface = Enum.SurfaceType.Smooth
- Part313.TopSurface = Enum.SurfaceType.Smooth
- Part313.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part313.Position = Vector3.new(-24.9400082, 29.045002, -4.94217491)
- Part313.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Attachment314.Name = "Attachment1"
- Attachment314.Parent = Part313
- Attachment314.Rotation = Vector3.new(-5.57260762e-07, 39.9999466, -5.19296932)
- Attachment314.CFrame = CFrame.new(-20.6800041, -0.37750122, -7.37026596, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 7.4505806e-09, -0.64014864, -0.0581788979, 0.766044974)
- Attachment314.Position = Vector3.new(-20.6800041, -0.37750122, -7.37026596)
- Attachment314.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
- Attachment314.Orientation = Vector3.new(-4.26886828e-07, 39.9999504, -5.1929698)
- Part315.Parent = Model0
- Part315.BrickColor = BrickColor.new("Fossil")
- Part315.Anchored = true
- Part315.Size = Vector3.new(41.3600044, 0.790002763, 20.4799995)
- Part315.CFrame = CFrame.new(-24.9400082, 29.045002, 26.6933441, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part315.BottomSurface = Enum.SurfaceType.Smooth
- Part315.TopSurface = Enum.SurfaceType.Smooth
- Part315.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part315.Position = Vector3.new(-24.9400082, 29.045002, 26.6933441)
- Part315.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Attachment316.Name = "Attachment1"
- Attachment316.Parent = Part315
- Attachment316.Rotation = Vector3.new(-5.57260762e-07, 39.9999466, -5.19296932)
- Attachment316.CFrame = CFrame.new(-20.6800041, -0.37750122, -10.0161276, 0.76290077, 0.0693350211, 0.64278692, -0.0905103832, 0.995895505, 7.4505806e-09, -0.64014864, -0.0581788979, 0.766044974)
- Attachment316.Position = Vector3.new(-20.6800041, -0.37750122, -10.0161276)
- Attachment316.Axis = Vector3.new(0.76290077, -0.0905103832, -0.64014864)
- Attachment316.Orientation = Vector3.new(-4.26886828e-07, 39.9999504, -5.1929698)
- Part317.Parent = Model0
- Part317.BrickColor = BrickColor.new("Fossil")
- Part317.Anchored = true
- Part317.Size = Vector3.new(2.78999949, 7.16000128, 17.7000008)
- Part317.CFrame = CFrame.new(-20.7800865, 33.0167084, 9.36000252, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part317.BottomSurface = Enum.SurfaceType.Smooth
- Part317.TopSurface = Enum.SurfaceType.Smooth
- Part317.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part317.Position = Vector3.new(-20.7800865, 33.0167084, 9.36000252)
- Part317.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part318.Parent = Model0
- Part318.BrickColor = BrickColor.new("Fossil")
- Part318.Anchored = true
- Part318.Size = Vector3.new(14.8100014, 7.16000128, 3.0300014)
- Part318.CFrame = CFrame.new(-26.7900887, 33.0167084, 16.7029533, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part318.BottomSurface = Enum.SurfaceType.Smooth
- Part318.TopSurface = Enum.SurfaceType.Smooth
- Part318.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part318.Position = Vector3.new(-26.7900887, 33.0167084, 16.7029533)
- Part318.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part319.Parent = Model0
- Part319.BrickColor = BrickColor.new("Fossil")
- Part319.Anchored = true
- Part319.Size = Vector3.new(0.580000103, 6.75, 5.15000057)
- Part319.CFrame = CFrame.new(-5.1100049, 4.1850028, -7.92217493, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part319.BottomSurface = Enum.SurfaceType.Smooth
- Part319.TopSurface = Enum.SurfaceType.Smooth
- Part319.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part319.Position = Vector3.new(-5.1100049, 4.1850028, -7.92217493)
- Part319.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Attachment320.Name = "Attachment1"
- Attachment320.Parent = Part319
- Attachment320.Rotation = Vector3.new(2.78630381e-07, 39.9999466, 5.19296932)
- Attachment320.CFrame = CFrame.new(-0.290000051, -2.20000005, -0.0199999996, 0.76290077, -0.0693350211, 0.64278692, 0.0905103832, 0.995895505, -3.7252903e-09, -0.64014864, 0.0581788942, 0.766044974)
- Attachment320.Position = Vector3.new(-0.290000051, -2.20000005, -0.0199999996)
- Attachment320.Axis = Vector3.new(0.76290077, 0.0905103832, -0.64014864)
- Attachment320.Orientation = Vector3.new(2.13443414e-07, 39.9999504, 5.1929698)
- Model321.Name = "basement door"
- Model321.Parent = Model0
- Part322.Name = "Close2"
- Part322.Parent = Model321
- Part322.BrickColor = BrickColor.new("Bright red")
- Part322.Rotation = Vector3.new(90, 0, 90)
- Part322.Anchored = true
- Part322.FormFactor = Enum.FormFactor.Plate
- Part322.Size = Vector3.new(1, 0.400000006, 1)
- Part322.CFrame = CFrame.new(-45.8042488, 17.5703239, 19.2953262, 0, -1, 0, 0, 0, -1, 1, 0, 0)
- Part322.BottomSurface = Enum.SurfaceType.Smooth
- Part322.TopSurface = Enum.SurfaceType.Smooth
- Part322.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part322.Position = Vector3.new(-45.8042488, 17.5703239, 19.2953262)
- Part322.Orientation = Vector3.new(90, -90, 0)
- Part322.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Script323.Parent = Part322
- table.insert(cors,sandbox(Script323,function()
- function myfunction()
- script.Parent.Parent.Door.Transparency = 0 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
- script.Parent.Parent.Door.CanCollide = true --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
- --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
- -- So the 2 times Parent means: The Parent, Of the Parent.
- end
- script.Parent.ClickDetector.MouseClick:connect(myfunction)
- end))
- ClickDetector324.Parent = Part322
- Part325.Name = "Open1"
- Part325.Parent = Model321
- Part325.BrickColor = BrickColor.new("Bright green")
- Part325.Rotation = Vector3.new(90, 0, -90)
- Part325.Anchored = true
- Part325.FormFactor = Enum.FormFactor.Plate
- Part325.Size = Vector3.new(1, 0.400000006, 1)
- Part325.CFrame = CFrame.new(-45.8160706, 18.5802307, 19.2879162, 0, 1, 0, 0, 0, -1, -1, 0, 0)
- Part325.BottomSurface = Enum.SurfaceType.Smooth
- Part325.TopSurface = Enum.SurfaceType.Smooth
- Part325.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Part325.Position = Vector3.new(-45.8160706, 18.5802307, 19.2879162)
- Part325.Orientation = Vector3.new(90, 90, 0)
- Part325.Color = Color3.new(0.294118, 0.592157, 0.294118)
- Script326.Parent = Part325
- table.insert(cors,sandbox(Script326,function()
- function myfunction()
- script.Parent.Parent.Door.Transparency = 0.7 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
- script.Parent.Parent.Door.CanCollide = false --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
- --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
- -- So the 2 times Parent means: The Parent, Of the Parent.
- end
- script.Parent.ClickDetector.MouseClick:connect(myfunction)
- end))
- ClickDetector327.Parent = Part325
- Part328.Name = "Door"
- Part328.Parent = Model321
- Part328.BrickColor = BrickColor.new("Dark stone grey")
- Part328.Anchored = true
- Part328.Size = Vector3.new(6, 8.40000057, 1)
- Part328.CFrame = CFrame.new(-42.0527992, 5.25653601, -11.8532372, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part328.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part328.Position = Vector3.new(-42.0527992, 5.25653601, -11.8532372)
- Part328.Color = Color3.new(0.388235, 0.372549, 0.384314)
- BlockMesh329.Parent = Part328
- BlockMesh329.Offset = Vector3.new(0, 0.0500000007, 0)
- Part330.Parent = Model0
- Part330.BrickColor = BrickColor.new("Fossil")
- Part330.Anchored = true
- Part330.Size = Vector3.new(6.98999977, 1, 33.8600006)
- Part330.CFrame = CFrame.new(-49.08881, 13.3200045, 17.3694344, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part330.BottomSurface = Enum.SurfaceType.Smooth
- Part330.TopSurface = Enum.SurfaceType.Smooth
- Part330.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part330.Position = Vector3.new(-49.08881, 13.3200045, 17.3694344)
- Part330.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part331.Parent = Model0
- Part331.BrickColor = BrickColor.new("Fossil")
- Part331.Anchored = true
- Part331.Size = Vector3.new(0.400000155, 29.6200008, 45.7999916)
- Part331.CFrame = CFrame.new(-52.7900124, 14.8100004, 11.9200153, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part331.BottomSurface = Enum.SurfaceType.Smooth
- Part331.TopSurface = Enum.SurfaceType.Smooth
- Part331.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part331.Position = Vector3.new(-52.7900124, 14.8100004, 11.9200153)
- Part331.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part332.Parent = Model0
- Part332.BrickColor = BrickColor.new("Fossil")
- Part332.Anchored = true
- Part332.Size = Vector3.new(7.81999636, 29.5499992, 0.570000052)
- Part332.CFrame = CFrame.new(-49.0800018, 14.845005, 34.5350113, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part332.BottomSurface = Enum.SurfaceType.Smooth
- Part332.TopSurface = Enum.SurfaceType.Smooth
- Part332.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part332.Position = Vector3.new(-49.0800018, 14.845005, 34.5350113)
- Part332.Color = Color3.new(0.623529, 0.631373, 0.67451)
- 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
Add Comment
Please, Sign In to add comment