Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Sound3 = Instance.new("Sound")
- Sound4 = Instance.new("Sound")
- Sound5 = Instance.new("Sound")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Sound8 = Instance.new("Sound")
- Sound9 = Instance.new("Sound")
- Sound10 = Instance.new("Sound")
- Sound11 = Instance.new("Sound")
- Sound12 = Instance.new("Sound")
- Sound13 = Instance.new("Sound")
- Sound14 = Instance.new("Sound")
- Sound15 = Instance.new("Sound")
- Sound16 = Instance.new("Sound")
- Sound17 = Instance.new("Sound")
- Sound18 = Instance.new("Sound")
- Sound19 = Instance.new("Sound")
- Sound20 = Instance.new("Sound")
- Sound21 = Instance.new("Sound")
- Sound22 = Instance.new("Sound")
- Sound23 = Instance.new("Sound")
- Sound24 = Instance.new("Sound")
- Sound25 = Instance.new("Sound")
- Sound26 = Instance.new("Sound")
- Sound27 = Instance.new("Sound")
- Sound28 = Instance.new("Sound")
- Sound29 = Instance.new("Sound")
- Sound30 = Instance.new("Sound")
- Sound31 = Instance.new("Sound")
- Sound32 = Instance.new("Sound")
- Sound33 = Instance.new("Sound")
- Sound34 = Instance.new("Sound")
- Sound35 = Instance.new("Sound")
- Sound36 = Instance.new("Sound")
- Sound37 = Instance.new("Sound")
- Sound38 = Instance.new("Sound")
- Sound39 = Instance.new("Sound")
- Sound40 = Instance.new("Sound")
- Sound41 = Instance.new("Sound")
- Sound42 = Instance.new("Sound")
- Sound43 = Instance.new("Sound")
- Sound44 = Instance.new("Sound")
- Sound45 = Instance.new("Sound")
- Sound46 = Instance.new("Sound")
- Sound47 = Instance.new("Sound")
- Sound48 = Instance.new("Sound")
- Sound49 = Instance.new("Sound")
- Sound50 = Instance.new("Sound")
- Sound51 = Instance.new("Sound")
- Sound52 = Instance.new("Sound")
- Sound53 = Instance.new("Sound")
- Sound54 = Instance.new("Sound")
- Sound55 = Instance.new("Sound")
- Sound56 = Instance.new("Sound")
- Sound57 = Instance.new("Sound")
- Sound58 = Instance.new("Sound")
- Sound59 = Instance.new("Sound")
- Sound60 = Instance.new("Sound")
- Sound61 = Instance.new("Sound")
- Sound62 = Instance.new("Sound")
- Sound63 = Instance.new("Sound")
- Sound64 = Instance.new("Sound")
- Sound65 = Instance.new("Sound")
- Sound66 = Instance.new("Sound")
- Sound67 = Instance.new("Sound")
- Sound68 = Instance.new("Sound")
- Sound69 = Instance.new("Sound")
- Sound70 = Instance.new("Sound")
- Sound71 = Instance.new("Sound")
- Sound72 = Instance.new("Sound")
- Sound73 = Instance.new("Sound")
- Sound74 = Instance.new("Sound")
- Sound75 = Instance.new("Sound")
- Sound76 = Instance.new("Sound")
- Sound77 = Instance.new("Sound")
- Sound78 = Instance.new("Sound")
- Sound79 = Instance.new("Sound")
- Sound80 = Instance.new("Sound")
- Sound81 = Instance.new("Sound")
- Sound82 = Instance.new("Sound")
- Sound83 = Instance.new("Sound")
- Sound84 = Instance.new("Sound")
- Sound85 = Instance.new("Sound")
- Sound86 = Instance.new("Sound")
- Sound87 = Instance.new("Sound")
- Sound88 = Instance.new("Sound")
- 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")
- Part147 = Instance.new("Part")
- Motor148 = Instance.new("Motor")
- Snap149 = Instance.new("Snap")
- Motor150 = Instance.new("Motor")
- Motor151 = Instance.new("Motor")
- Motor152 = Instance.new("Motor")
- BlockMesh153 = Instance.new("BlockMesh")
- Decal154 = Instance.new("Decal")
- Decal155 = Instance.new("Decal")
- Part156 = Instance.new("Part")
- Part157 = Instance.new("Part")
- Humanoid158 = Instance.new("Humanoid")
- BodyColors159 = Instance.new("BodyColors")
- IntValue160 = Instance.new("IntValue")
- Part161 = Instance.new("Part")
- Part162 = Instance.new("Part")
- Script163 = Instance.new("Script")
- Script164 = Instance.new("Script")
- Script165 = Instance.new("Script")
- Script166 = Instance.new("Script")
- Sound167 = Instance.new("Sound")
- Model0.Name = "sanic"
- Model0.Parent = mas
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(140, 6.00000906, -142.500015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part1.Orientation = Vector3.new(0, -90, 0)
- Part1.Position = Vector3.new(140, 6.00000906, -142.500015)
- Part1.Rotation = Vector3.new(0, -90, 0)
- Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part1.Transparency = 0.98000001907349
- Part1.Size = Vector3.new(2, 2, 1)
- Part1.BrickColor = BrickColor.new("Bright yellow")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Bright yellow")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh2.Parent = Part1
- SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
- Sound3.Parent = Part1
- Sound3.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound4.Parent = Part1
- Sound4.SoundId = "rbxasset://sounds/splat.wav"
- Sound5.Parent = Part1
- Sound5.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound6.Parent = Part1
- Sound6.SoundId = "rbxasset://sounds/hit.wav"
- Sound7.Parent = Part1
- Sound7.SoundId = "rbxasset://sounds/button.wav"
- Sound8.Parent = Part1
- Sound8.Looped = true
- Sound8.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound9.Parent = Part1
- Sound9.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound10.Parent = Part1
- Sound10.SoundId = "rbxasset://sounds/splat.wav"
- Sound11.Parent = Part1
- Sound11.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound12.Parent = Part1
- Sound12.SoundId = "rbxasset://sounds/hit.wav"
- Sound13.Parent = Part1
- Sound13.SoundId = "rbxasset://sounds/button.wav"
- Sound14.Parent = Part1
- Sound14.Looped = true
- Sound14.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound15.Parent = Part1
- Sound15.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound16.Parent = Part1
- Sound16.SoundId = "rbxasset://sounds/splat.wav"
- Sound17.Parent = Part1
- Sound17.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound18.Parent = Part1
- Sound18.SoundId = "rbxasset://sounds/hit.wav"
- Sound19.Parent = Part1
- Sound19.SoundId = "rbxasset://sounds/button.wav"
- Sound20.Parent = Part1
- Sound20.Looped = true
- Sound20.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound21.Parent = Part1
- Sound21.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound22.Parent = Part1
- Sound22.SoundId = "rbxasset://sounds/splat.wav"
- Sound23.Parent = Part1
- Sound23.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound24.Parent = Part1
- Sound24.SoundId = "rbxasset://sounds/hit.wav"
- Sound25.Parent = Part1
- Sound25.SoundId = "rbxasset://sounds/button.wav"
- Sound26.Parent = Part1
- Sound26.Looped = true
- Sound26.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound27.Parent = Part1
- Sound27.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound28.Parent = Part1
- Sound28.SoundId = "rbxasset://sounds/splat.wav"
- Sound29.Parent = Part1
- Sound29.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound30.Parent = Part1
- Sound30.SoundId = "rbxasset://sounds/hit.wav"
- Sound31.Parent = Part1
- Sound31.SoundId = "rbxasset://sounds/button.wav"
- Sound32.Parent = Part1
- Sound32.Looped = true
- Sound32.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound33.Parent = Part1
- Sound33.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound34.Parent = Part1
- Sound34.SoundId = "rbxasset://sounds/splat.wav"
- Sound35.Parent = Part1
- Sound35.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound36.Parent = Part1
- Sound36.SoundId = "rbxasset://sounds/hit.wav"
- Sound37.Parent = Part1
- Sound37.SoundId = "rbxasset://sounds/button.wav"
- Sound38.Parent = Part1
- Sound38.Looped = true
- Sound38.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound39.Parent = Part1
- Sound39.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound40.Parent = Part1
- Sound40.SoundId = "rbxasset://sounds/splat.wav"
- Sound41.Parent = Part1
- Sound41.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound42.Parent = Part1
- Sound42.SoundId = "rbxasset://sounds/hit.wav"
- Sound43.Parent = Part1
- Sound43.SoundId = "rbxasset://sounds/button.wav"
- Sound44.Parent = Part1
- Sound44.Looped = true
- Sound44.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound45.Parent = Part1
- Sound45.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound46.Parent = Part1
- Sound46.SoundId = "rbxasset://sounds/splat.wav"
- Sound47.Parent = Part1
- Sound47.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound48.Parent = Part1
- Sound48.SoundId = "rbxasset://sounds/hit.wav"
- Sound49.Parent = Part1
- Sound49.SoundId = "rbxasset://sounds/button.wav"
- Sound50.Parent = Part1
- Sound50.Looped = true
- Sound50.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound51.Parent = Part1
- Sound51.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound52.Parent = Part1
- Sound52.SoundId = "rbxasset://sounds/splat.wav"
- Sound53.Parent = Part1
- Sound53.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound54.Parent = Part1
- Sound54.SoundId = "rbxasset://sounds/hit.wav"
- Sound55.Parent = Part1
- Sound55.SoundId = "rbxasset://sounds/button.wav"
- Sound56.Parent = Part1
- Sound56.Looped = true
- Sound56.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound57.Parent = Part1
- Sound57.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound58.Parent = Part1
- Sound58.SoundId = "rbxasset://sounds/splat.wav"
- Sound59.Parent = Part1
- Sound59.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound60.Parent = Part1
- Sound60.SoundId = "rbxasset://sounds/hit.wav"
- Sound61.Parent = Part1
- Sound61.SoundId = "rbxasset://sounds/button.wav"
- Sound62.Parent = Part1
- Sound62.Looped = true
- Sound62.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound63.Parent = Part1
- Sound63.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound64.Parent = Part1
- Sound64.SoundId = "rbxasset://sounds/splat.wav"
- Sound65.Parent = Part1
- Sound65.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound66.Parent = Part1
- Sound66.SoundId = "rbxasset://sounds/hit.wav"
- Sound67.Parent = Part1
- Sound67.SoundId = "rbxasset://sounds/button.wav"
- Sound68.Parent = Part1
- Sound68.Looped = true
- Sound68.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound69.Parent = Part1
- Sound69.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound70.Parent = Part1
- Sound70.SoundId = "rbxasset://sounds/splat.wav"
- Sound71.Parent = Part1
- Sound71.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound72.Parent = Part1
- Sound72.SoundId = "rbxasset://sounds/hit.wav"
- Sound73.Parent = Part1
- Sound73.SoundId = "rbxasset://sounds/button.wav"
- Sound74.Parent = Part1
- Sound74.Looped = true
- Sound74.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound75.Parent = Part1
- Sound75.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound76.Parent = Part1
- Sound76.SoundId = "rbxasset://sounds/splat.wav"
- Sound77.Parent = Part1
- Sound77.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound78.Parent = Part1
- Sound78.SoundId = "rbxasset://sounds/hit.wav"
- Sound79.Parent = Part1
- Sound79.SoundId = "rbxasset://sounds/button.wav"
- Sound80.Parent = Part1
- Sound80.Looped = true
- Sound80.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound81.Parent = Part1
- Sound81.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound82.Parent = Part1
- Sound82.SoundId = "rbxasset://sounds/splat.wav"
- Sound83.Parent = Part1
- Sound83.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound84.Parent = Part1
- Sound84.SoundId = "rbxasset://sounds/hit.wav"
- Sound85.Parent = Part1
- Sound85.SoundId = "rbxasset://sounds/button.wav"
- Sound86.Parent = Part1
- Sound86.Looped = true
- Sound86.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound87.Parent = Part1
- Sound87.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound88.Parent = Part1
- Sound88.SoundId = "rbxasset://sounds/splat.wav"
- Sound89.Parent = Part1
- Sound89.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound90.Parent = Part1
- Sound90.SoundId = "rbxasset://sounds/hit.wav"
- Sound91.Parent = Part1
- Sound91.SoundId = "rbxasset://sounds/button.wav"
- Sound92.Parent = Part1
- Sound92.Looped = true
- Sound92.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound93.Parent = Part1
- Sound93.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound94.Parent = Part1
- Sound94.SoundId = "rbxasset://sounds/splat.wav"
- Sound95.Parent = Part1
- Sound95.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound96.Parent = Part1
- Sound96.SoundId = "rbxasset://sounds/hit.wav"
- Sound97.Parent = Part1
- Sound97.SoundId = "rbxasset://sounds/button.wav"
- Sound98.Parent = Part1
- Sound98.Looped = true
- Sound98.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound99.Parent = Part1
- Sound99.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound100.Parent = Part1
- Sound100.SoundId = "rbxasset://sounds/splat.wav"
- Sound101.Parent = Part1
- Sound101.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound102.Parent = Part1
- Sound102.SoundId = "rbxasset://sounds/hit.wav"
- Sound103.Parent = Part1
- Sound103.SoundId = "rbxasset://sounds/button.wav"
- Sound104.Parent = Part1
- Sound104.Looped = true
- Sound104.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound105.Parent = Part1
- Sound105.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound106.Parent = Part1
- Sound106.SoundId = "rbxasset://sounds/splat.wav"
- Sound107.Parent = Part1
- Sound107.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound108.Parent = Part1
- Sound108.SoundId = "rbxasset://sounds/hit.wav"
- Sound109.Parent = Part1
- Sound109.SoundId = "rbxasset://sounds/button.wav"
- Sound110.Parent = Part1
- Sound110.Looped = true
- Sound110.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound111.Parent = Part1
- Sound111.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound112.Parent = Part1
- Sound112.SoundId = "rbxasset://sounds/splat.wav"
- Sound113.Parent = Part1
- Sound113.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound114.Parent = Part1
- Sound114.SoundId = "rbxasset://sounds/hit.wav"
- Sound115.Parent = Part1
- Sound115.SoundId = "rbxasset://sounds/button.wav"
- Sound116.Parent = Part1
- Sound116.Looped = true
- Sound116.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound117.Parent = Part1
- Sound117.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound118.Parent = Part1
- Sound118.SoundId = "rbxasset://sounds/splat.wav"
- Sound119.Parent = Part1
- Sound119.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound120.Parent = Part1
- Sound120.SoundId = "rbxasset://sounds/hit.wav"
- Sound121.Parent = Part1
- Sound121.SoundId = "rbxasset://sounds/button.wav"
- Sound122.Parent = Part1
- Sound122.Looped = true
- Sound122.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound123.Parent = Part1
- Sound123.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound124.Parent = Part1
- Sound124.SoundId = "rbxasset://sounds/splat.wav"
- Sound125.Parent = Part1
- Sound125.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound126.Parent = Part1
- Sound126.SoundId = "rbxasset://sounds/hit.wav"
- Sound127.Parent = Part1
- Sound127.SoundId = "rbxasset://sounds/button.wav"
- Sound128.Parent = Part1
- Sound128.Looped = true
- Sound128.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound129.Parent = Part1
- Sound129.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound130.Parent = Part1
- Sound130.SoundId = "rbxasset://sounds/splat.wav"
- Sound131.Parent = Part1
- Sound131.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound132.Parent = Part1
- Sound132.SoundId = "rbxasset://sounds/hit.wav"
- Sound133.Parent = Part1
- Sound133.SoundId = "rbxasset://sounds/button.wav"
- Sound134.Parent = Part1
- Sound134.Looped = true
- Sound134.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound135.Parent = Part1
- Sound135.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound136.Parent = Part1
- Sound136.SoundId = "rbxasset://sounds/splat.wav"
- Sound137.Parent = Part1
- Sound137.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound138.Parent = Part1
- Sound138.SoundId = "rbxasset://sounds/hit.wav"
- Sound139.Parent = Part1
- Sound139.SoundId = "rbxasset://sounds/button.wav"
- Sound140.Parent = Part1
- Sound140.Looped = true
- Sound140.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Sound141.Parent = Part1
- Sound141.SoundId = "rbxasset://sounds/uuhhh.wav"
- Sound142.Parent = Part1
- Sound142.SoundId = "rbxasset://sounds/splat.wav"
- Sound143.Parent = Part1
- Sound143.SoundId = "rbxasset://sounds/swoosh.wav"
- Sound144.Parent = Part1
- Sound144.SoundId = "rbxasset://sounds/hit.wav"
- Sound145.Parent = Part1
- Sound145.SoundId = "rbxasset://sounds/button.wav"
- Sound146.Parent = Part1
- Sound146.Looped = true
- Sound146.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- Part147.Name = "Torso"
- Part147.Parent = Model0
- Part147.CFrame = CFrame.new(140, 4.00000906, -142.500015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part147.Orientation = Vector3.new(0, -90, 0)
- Part147.Position = Vector3.new(140, 4.00000906, -142.500015)
- Part147.Rotation = Vector3.new(0, -90, 0)
- Part147.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part147.Transparency = 1
- Part147.Size = Vector3.new(2, 2, 1)
- Part147.BrickColor = BrickColor.new("Bright red")
- Part147.LeftParamA = 0
- Part147.LeftParamB = 0
- Part147.RightParamA = 0
- Part147.RightParamB = 0
- Part147.brickColor = BrickColor.new("Bright red")
- Part147.FormFactor = Enum.FormFactor.Symmetric
- Part147.formFactor = Enum.FormFactor.Symmetric
- Motor148.Name = "Left Hip"
- Motor148.Parent = Part147
- Motor148.MaxVelocity = 0.10000000149012
- Motor148.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor148.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor148.DesiredAngle = 0.60447072982788
- Snap149.Name = "Neck"
- Snap149.Parent = Part147
- Snap149.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Snap149.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor150.Name = "Right Hip"
- Motor150.Parent = Part147
- Motor150.MaxVelocity = 0.10000000149012
- Motor150.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor150.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor150.DesiredAngle = 0.60447072982788
- Motor151.Name = "Right Shoulder"
- Motor151.Parent = Part147
- Motor151.MaxVelocity = 0.15000000596046
- Motor151.C0 = CFrame.new(-2, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor151.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor151.DesiredAngle = 0.60447072982788
- Motor152.Name = "Left Shoulder"
- Motor152.Parent = Part147
- Motor152.MaxVelocity = 0.15000000596046
- Motor152.C0 = CFrame.new(2, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor152.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor152.DesiredAngle = -0.60447072982788
- BlockMesh153.Parent = Part147
- BlockMesh153.Scale = Vector3.new(3, 3, 0.100000001)
- Decal154.Parent = Part147
- Decal154.Texture = "http://www.roblox.com/asset/?id=589089911"
- Decal155.Parent = Part147
- Decal155.Texture = "http://www.roblox.com/asset/?id=589089911"
- Decal155.Face = Enum.NormalId.Back
- Part156.Name = "Left Leg"
- Part156.Parent = Model0
- Part156.CFrame = CFrame.new(140, 1.50000906, -143.500015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part156.Orientation = Vector3.new(0, -90, 0)
- Part156.Position = Vector3.new(140, 1.50000906, -143.500015)
- Part156.Rotation = Vector3.new(0, -90, 0)
- Part156.Color = Color3.new(0.843137, 0.772549, 0.603922)
- Part156.Transparency = 1
- Part156.Size = Vector3.new(2, 3, 1)
- Part156.BottomSurface = Enum.SurfaceType.Smooth
- Part156.BrickColor = BrickColor.new("Brick yellow")
- Part156.CanCollide = false
- Part156.brickColor = BrickColor.new("Brick yellow")
- Part156.FormFactor = Enum.FormFactor.Symmetric
- Part156.formFactor = Enum.FormFactor.Symmetric
- Part157.Name = "Right Leg"
- Part157.Parent = Model0
- Part157.CFrame = CFrame.new(140, 1.50000906, -141.500015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part157.Orientation = Vector3.new(0, -90, 0)
- Part157.Position = Vector3.new(140, 1.50000906, -141.500015)
- Part157.Rotation = Vector3.new(0, -90, 0)
- Part157.Color = Color3.new(0.843137, 0.772549, 0.603922)
- Part157.Transparency = 1
- Part157.Size = Vector3.new(2, 3, 1)
- Part157.BottomSurface = Enum.SurfaceType.Smooth
- Part157.BrickColor = BrickColor.new("Brick yellow")
- Part157.CanCollide = false
- Part157.brickColor = BrickColor.new("Brick yellow")
- Part157.FormFactor = Enum.FormFactor.Symmetric
- Part157.formFactor = Enum.FormFactor.Symmetric
- Humanoid158.Name = "Zombie"
- Humanoid158.Parent = Model0
- Humanoid158.Health = 70
- Humanoid158.LeftLeg = Part156
- Humanoid158.MaxHealth = 70
- Humanoid158.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid158.RightLeg = Part157
- Humanoid158.Torso = Part147
- Humanoid158.WalkSpeed = 80
- Humanoid158.maxHealth = 70
- BodyColors159.Parent = Model0
- BodyColors159.HeadColor = BrickColor.new("Bright yellow")
- BodyColors159.HeadColor3 = Color3.new(0.960784, 0.803922, 0.188235)
- BodyColors159.LeftArmColor = BrickColor.new("Medium stone grey")
- BodyColors159.LeftArmColor3 = Color3.new(0.639216, 0.635294, 0.647059)
- BodyColors159.LeftLegColor = BrickColor.new("Brick yellow")
- BodyColors159.LeftLegColor3 = Color3.new(0.843137, 0.772549, 0.603922)
- BodyColors159.RightArmColor = BrickColor.new("Medium stone grey")
- BodyColors159.RightArmColor3 = Color3.new(0.639216, 0.635294, 0.647059)
- BodyColors159.RightLegColor = BrickColor.new("Brick yellow")
- BodyColors159.RightLegColor3 = Color3.new(0.843137, 0.772549, 0.603922)
- BodyColors159.TorsoColor = BrickColor.new("Bright red")
- BodyColors159.TorsoColor3 = Color3.new(0.768628, 0.156863, 0.109804)
- IntValue160.Name = "Mode"
- IntValue160.Parent = Model0
- Part161.Name = "Right Arm"
- Part161.Parent = Model0
- Part161.CFrame = CFrame.new(140, 5.00000906, -141.000015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part161.Orientation = Vector3.new(0, -90, 0)
- Part161.Position = Vector3.new(140, 5.00000906, -141.000015)
- Part161.Rotation = Vector3.new(0, -90, 0)
- Part161.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part161.Transparency = 1
- Part161.Size = Vector3.new(1, 4, 1)
- Part161.BrickColor = BrickColor.new("Cool yellow")
- Part161.CanCollide = false
- Part161.brickColor = BrickColor.new("Cool yellow")
- Part161.FormFactor = Enum.FormFactor.Symmetric
- Part161.formFactor = Enum.FormFactor.Symmetric
- Part162.Name = "Left Arm"
- Part162.Parent = Model0
- Part162.CFrame = CFrame.new(140, 5.00000906, -144.000015, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part162.Orientation = Vector3.new(0, -90, 0)
- Part162.Position = Vector3.new(140, 5.00000906, -144.000015)
- Part162.Rotation = Vector3.new(0, -90, 0)
- Part162.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part162.Transparency = 1
- Part162.Size = Vector3.new(1, 4, 1)
- Part162.BrickColor = BrickColor.new("Cool yellow")
- Part162.CanCollide = false
- Part162.brickColor = BrickColor.new("Cool yellow")
- Part162.FormFactor = Enum.FormFactor.Symmetric
- Part162.formFactor = Enum.FormFactor.Symmetric
- Script163.Parent = Model0
- table.insert(cors,sandbox(Script163,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 -15
- 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))
- Script164.Name = "Robot"
- Script164.Parent = Model0
- table.insert(cors,sandbox(Script164,function()
- model = script.Parent
- backup = model:Clone()
- regentime = 5 --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))
- Script165.Name = "Death"
- Script165.Parent = Model0
- table.insert(cors,sandbox(Script165,function()
- player = script.Parent
- if player.Zombie.Health == 0 then
- player.Torso.Anchored = true
- player.Torso.Front.Script:Remove()
- wait(0.1)
- player.Torso.Front.Texture = "http://www.roblox.com/asset/?id=17715389"
- end
- end))
- Script166.Name = "Health"
- Script166.Parent = Model0
- table.insert(cors,sandbox(Script166,function()
- script.Parent.Zombie.MaxHealth = 220
- wait()
- script.Parent.Zombie.Health = 220 -- That's how much health it has in the game :P
- end))
- Sound167.Parent = Model0
- Sound167.Looped = true
- Sound167.Playing = true
- Sound167.SoundId = "rbxassetid://217976249"
- Sound167.Volume = 0.20000000298023
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement