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"))
- Sound0 = Instance.new("Sound")
- Backpack1 = Instance.new("Backpack")
- Model2 = Instance.new("Model")
- Part3 = Instance.new("Part")
- Model4 = Instance.new("Model")
- Seat5 = Instance.new("Seat")
- Model6 = Instance.new("Model")
- Part7 = Instance.new("Part")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Attachment9 = Instance.new("Attachment")
- Attachment10 = Instance.new("Attachment")
- Attachment11 = Instance.new("Attachment")
- Attachment12 = Instance.new("Attachment")
- Attachment13 = Instance.new("Attachment")
- Attachment14 = Instance.new("Attachment")
- Vector3Value15 = Instance.new("Vector3Value")
- Motor6D16 = Instance.new("Motor6D")
- ParticleEmitter17 = Instance.new("ParticleEmitter")
- ParticleEmitter18 = Instance.new("ParticleEmitter")
- Script19 = Instance.new("Script")
- Script20 = Instance.new("Script")
- BillboardGui21 = Instance.new("BillboardGui")
- Script22 = Instance.new("Script")
- BillboardGui23 = Instance.new("BillboardGui")
- TextLabel24 = Instance.new("TextLabel")
- Frame25 = Instance.new("Frame")
- Frame26 = Instance.new("Frame")
- TextLabel27 = Instance.new("TextLabel")
- TextLabel28 = Instance.new("TextLabel")
- ObjectValue29 = Instance.new("ObjectValue")
- Frame30 = Instance.new("Frame")
- TextLabel31 = Instance.new("TextLabel")
- Animation32 = Instance.new("Animation")
- Script33 = Instance.new("Script")
- Script34 = Instance.new("Script")
- Part35 = Instance.new("Part")
- Attachment36 = Instance.new("Attachment")
- Vector3Value37 = Instance.new("Vector3Value")
- ParticleEmitter38 = Instance.new("ParticleEmitter")
- BodyColors39 = Instance.new("BodyColors")
- Attachment40 = Instance.new("Attachment")
- Attachment41 = Instance.new("Attachment")
- Attachment42 = Instance.new("Attachment")
- Attachment43 = Instance.new("Attachment")
- Attachment44 = Instance.new("Attachment")
- Attachment45 = Instance.new("Attachment")
- Attachment46 = Instance.new("Attachment")
- Attachment47 = Instance.new("Attachment")
- Vector3Value48 = Instance.new("Vector3Value")
- Motor6D49 = Instance.new("Motor6D")
- ParticleEmitter50 = Instance.new("ParticleEmitter")
- Sound51 = Instance.new("Sound")
- Sound52 = Instance.new("Sound")
- Attachment53 = Instance.new("Attachment")
- Attachment54 = Instance.new("Attachment")
- Attachment55 = Instance.new("Attachment")
- Attachment56 = Instance.new("Attachment")
- Attachment57 = Instance.new("Attachment")
- Attachment58 = Instance.new("Attachment")
- Attachment59 = Instance.new("Attachment")
- Attachment60 = Instance.new("Attachment")
- Vector3Value61 = Instance.new("Vector3Value")
- Motor6D62 = Instance.new("Motor6D")
- ParticleEmitter63 = Instance.new("ParticleEmitter")
- Attachment64 = Instance.new("Attachment")
- Vector3Value65 = Instance.new("Vector3Value")
- Motor6D66 = Instance.new("Motor6D")
- ParticleEmitter67 = Instance.new("ParticleEmitter")
- Script68 = Instance.new("Script")
- Script69 = Instance.new("Script")
- NumberValue70 = Instance.new("NumberValue")
- Configuration71 = Instance.new("Configuration")
- IntValue72 = Instance.new("IntValue")
- IntValue73 = Instance.new("IntValue")
- NumberValue74 = Instance.new("NumberValue")
- BrickColorValue75 = Instance.new("BrickColorValue")
- IntValue76 = Instance.new("IntValue")
- IntValue77 = Instance.new("IntValue")
- NumberValue78 = Instance.new("NumberValue")
- BoolValue79 = Instance.new("BoolValue")
- NumberValue80 = Instance.new("NumberValue")
- StringValue81 = Instance.new("StringValue")
- Attachment82 = Instance.new("Attachment")
- Attachment83 = Instance.new("Attachment")
- Vector3Value84 = Instance.new("Vector3Value")
- Motor6D85 = Instance.new("Motor6D")
- ParticleEmitter86 = Instance.new("ParticleEmitter")
- Attachment87 = Instance.new("Attachment")
- Attachment88 = Instance.new("Attachment")
- Attachment89 = Instance.new("Attachment")
- Vector3Value90 = Instance.new("Vector3Value")
- Motor6D91 = Instance.new("Motor6D")
- ParticleEmitter92 = Instance.new("ParticleEmitter")
- Attachment93 = Instance.new("Attachment")
- Attachment94 = Instance.new("Attachment")
- Vector3Value95 = Instance.new("Vector3Value")
- Motor6D96 = Instance.new("Motor6D")
- ParticleEmitter97 = Instance.new("ParticleEmitter")
- Attachment98 = Instance.new("Attachment")
- Attachment99 = Instance.new("Attachment")
- Vector3Value100 = Instance.new("Vector3Value")
- Motor6D101 = Instance.new("Motor6D")
- ParticleEmitter102 = Instance.new("ParticleEmitter")
- Attachment103 = Instance.new("Attachment")
- Attachment104 = Instance.new("Attachment")
- Vector3Value105 = Instance.new("Vector3Value")
- Motor6D106 = Instance.new("Motor6D")
- ParticleEmitter107 = Instance.new("ParticleEmitter")
- Attachment108 = Instance.new("Attachment")
- Vector3Value109 = Instance.new("Vector3Value")
- Motor6D110 = Instance.new("Motor6D")
- ParticleEmitter111 = Instance.new("ParticleEmitter")
- Attachment112 = Instance.new("Attachment")
- Attachment113 = Instance.new("Attachment")
- Attachment114 = Instance.new("Attachment")
- Attachment115 = Instance.new("Attachment")
- Attachment116 = Instance.new("Attachment")
- Attachment117 = Instance.new("Attachment")
- Attachment118 = Instance.new("Attachment")
- Vector3Value119 = Instance.new("Vector3Value")
- Motor6D120 = Instance.new("Motor6D")
- ParticleEmitter121 = Instance.new("ParticleEmitter")
- Attachment122 = Instance.new("Attachment")
- Attachment123 = Instance.new("Attachment")
- Vector3Value124 = Instance.new("Vector3Value")
- Motor6D125 = Instance.new("Motor6D")
- ParticleEmitter126 = Instance.new("ParticleEmitter")
- Attachment127 = Instance.new("Attachment")
- Attachment128 = Instance.new("Attachment")
- Attachment129 = Instance.new("Attachment")
- Vector3Value130 = Instance.new("Vector3Value")
- Motor6D131 = Instance.new("Motor6D")
- ParticleEmitter132 = Instance.new("ParticleEmitter")
- Attachment133 = Instance.new("Attachment")
- Attachment134 = Instance.new("Attachment")
- Vector3Value135 = Instance.new("Vector3Value")
- Motor6D136 = Instance.new("Motor6D")
- ParticleEmitter137 = Instance.new("ParticleEmitter")
- Attachment138 = Instance.new("Attachment")
- Attachment139 = Instance.new("Attachment")
- Vector3Value140 = Instance.new("Vector3Value")
- Motor6D141 = Instance.new("Motor6D")
- ParticleEmitter142 = Instance.new("ParticleEmitter")
- Script143 = Instance.new("Script")
- Configuration144 = Instance.new("Configuration")
- IntValue145 = Instance.new("IntValue")
- IntValue146 = Instance.new("IntValue")
- NumberValue147 = Instance.new("NumberValue")
- BrickColorValue148 = Instance.new("BrickColorValue")
- IntValue149 = Instance.new("IntValue")
- IntValue150 = Instance.new("IntValue")
- NumberValue151 = Instance.new("NumberValue")
- BoolValue152 = Instance.new("BoolValue")
- NumberValue153 = Instance.new("NumberValue")
- StringValue154 = Instance.new("StringValue")
- NumberValue155 = Instance.new("NumberValue")
- Script156 = Instance.new("Script")
- Attachment157 = Instance.new("Attachment")
- Attachment158 = Instance.new("Attachment")
- Vector3Value159 = Instance.new("Vector3Value")
- Motor6D160 = Instance.new("Motor6D")
- ParticleEmitter161 = Instance.new("ParticleEmitter")
- Script162 = Instance.new("Script")
- Script163 = Instance.new("Script")
- NumberValue164 = Instance.new("NumberValue")
- Configuration165 = Instance.new("Configuration")
- IntValue166 = Instance.new("IntValue")
- IntValue167 = Instance.new("IntValue")
- NumberValue168 = Instance.new("NumberValue")
- BrickColorValue169 = Instance.new("BrickColorValue")
- IntValue170 = Instance.new("IntValue")
- IntValue171 = Instance.new("IntValue")
- NumberValue172 = Instance.new("NumberValue")
- BoolValue173 = Instance.new("BoolValue")
- NumberValue174 = Instance.new("NumberValue")
- StringValue175 = Instance.new("StringValue")
- Script176 = Instance.new("Script")
- StringValue177 = Instance.new("StringValue")
- StringValue178 = Instance.new("StringValue")
- Animation179 = Instance.new("Animation")
- StringValue180 = Instance.new("StringValue")
- Animation181 = Instance.new("Animation")
- StringValue182 = Instance.new("StringValue")
- Animation183 = Instance.new("Animation")
- NumberValue184 = Instance.new("NumberValue")
- Animation185 = Instance.new("Animation")
- NumberValue186 = Instance.new("NumberValue")
- StringValue187 = Instance.new("StringValue")
- Animation188 = Instance.new("Animation")
- StringValue189 = Instance.new("StringValue")
- Animation190 = Instance.new("Animation")
- StringValue191 = Instance.new("StringValue")
- Animation192 = Instance.new("Animation")
- StringValue193 = Instance.new("StringValue")
- Animation194 = Instance.new("Animation")
- StringValue195 = Instance.new("StringValue")
- Animation196 = Instance.new("Animation")
- StringValue197 = Instance.new("StringValue")
- Animation198 = Instance.new("Animation")
- StringValue199 = Instance.new("StringValue")
- Animation200 = Instance.new("Animation")
- ParticleEmitter201 = Instance.new("ParticleEmitter")
- Script202 = Instance.new("Script")
- Script203 = Instance.new("Script")
- NumberValue204 = Instance.new("NumberValue")
- Configuration205 = Instance.new("Configuration")
- IntValue206 = Instance.new("IntValue")
- IntValue207 = Instance.new("IntValue")
- NumberValue208 = Instance.new("NumberValue")
- BrickColorValue209 = Instance.new("BrickColorValue")
- IntValue210 = Instance.new("IntValue")
- IntValue211 = Instance.new("IntValue")
- NumberValue212 = Instance.new("NumberValue")
- BoolValue213 = Instance.new("BoolValue")
- NumberValue214 = Instance.new("NumberValue")
- StringValue215 = Instance.new("StringValue")
- ParticleEmitter216 = Instance.new("ParticleEmitter")
- Humanoid217 = Instance.new("Humanoid")
- BoolValue218 = Instance.new("BoolValue")
- ObjectValue219 = Instance.new("ObjectValue")
- Script220 = Instance.new("Script")
- Script221 = Instance.new("Script")
- ForceField222 = Instance.new("ForceField")
- Script223 = Instance.new("Script")
- BoolValue224 = Instance.new("BoolValue")
- Script225 = Instance.new("Script")
- Tool226 = Instance.new("Tool")
- Part227 = Instance.new("Part")
- Sound228 = Instance.new("Sound")
- Script229 = Instance.new("Script")
- Script230 = Instance.new("Script")
- Sound231 = Instance.new("Sound")
- Sound232 = Instance.new("Sound")
- SpecialMesh233 = Instance.new("SpecialMesh")
- Script234 = Instance.new("Script")
- SpecialMesh235 = Instance.new("SpecialMesh")
- Script236 = Instance.new("Script")
- Script237 = Instance.new("Script")
- Script238 = Instance.new("Script")
- LocalScript239 = Instance.new("LocalScript")
- Script240 = Instance.new("Script")
- Sound241 = Instance.new("Sound")
- Script242 = Instance.new("Script")
- Part243 = Instance.new("Part")
- Attachment244 = Instance.new("Attachment")
- ManualWeld245 = Instance.new("ManualWeld")
- ManualWeld246 = Instance.new("ManualWeld")
- ManualWeld247 = Instance.new("ManualWeld")
- Sound0.Parent = mas
- Sound0.SoundId = "rbxassetid://470060466"
- Sound0.Volume = 10
- Backpack1.Name = "_CPData"
- Backpack1.Parent = mas
- Model2.Name = "Glass Table"
- Model2.Parent = mas
- Part3.Parent = Model2
- Part3.Material = Enum.Material.Glass
- Part3.BrickColor = BrickColor.new("Institutional white")
- Part3.Transparency = 0.5
- Part3.Size = Vector3.new(8.00000858, 0.200000018, 5.27000046)
- Part3.CFrame = CFrame.new(-203.079834, 5.06008434, -264.353973, 1.00000846, 0, 0, 0, 1, 0, 0, 0, 1.00000846)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part3.Position = Vector3.new(-203.079834, 5.06008434, -264.353973)
- Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Model4.Parent = mas
- Seat5.Parent = Model4
- Seat5.Material = Enum.Material.Fabric
- Seat5.BrickColor = BrickColor.new("Black")
- Seat5.Transparency = 1
- Seat5.Rotation = Vector3.new(-180, 0, -180)
- Seat5.Anchored = true
- Seat5.CanCollide = false
- Seat5.Size = Vector3.new(0.960000992, 0.0500000007, 1.69000018)
- Seat5.CFrame = CFrame.new(-202.407227, 3.79302144, -267.525452, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Seat5.BottomSurface = Enum.SurfaceType.Smooth
- Seat5.TopSurface = Enum.SurfaceType.Smooth
- Seat5.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Seat5.Position = Vector3.new(-202.407227, 3.79302144, -267.525452)
- Seat5.Orientation = Vector3.new(0, 180, 0)
- Seat5.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Model6.Name = "Water"
- Model6.Parent = mas
- Part7.Name = "Head"
- Part7.Parent = Model6
- Part7.BrickColor = BrickColor.new("Medium green")
- Part7.Transparency = 0.99000000953674
- Part7.Rotation = Vector3.new(180, -0.0299999993, 180)
- Part7.FormFactor = Enum.FormFactor.Custom
- Part7.Size = Vector3.new(1.48765063, 1.48765063, 1.48765063)
- Part7.CFrame = CFrame.new(5.54536676, 6.79134989, -30.2487926, -0.999999881, -1.59059965e-08, -0.000481999945, 0, 1, -3.29999966e-05, 0.000481999945, -3.2999993e-05, -0.999999881)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part7.Position = Vector3.new(5.54536676, 6.79134989, -30.2487926)
- Part7.Orientation = Vector3.new(0, -179.970001, 0)
- Part7.Color = Color3.new(0.631373, 0.768628, 0.54902)
- SpecialMesh8.Parent = Part7
- SpecialMesh8.MeshId = "http://www.roblox.com/asset?id=419776358"
- SpecialMesh8.Scale = Vector3.new(1.48765087, 1.48765087, 1.48765087)
- SpecialMesh8.MeshType = Enum.MeshType.FileMesh
- SpecialMesh8.Scale = Vector3.new(1.48765087, 1.48765087, 1.48765087)
- Attachment9.Name = "FaceCenterAttachment"
- Attachment9.Parent = Part7
- Attachment9.Rotation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
- Attachment9.CFrame = CFrame.new(4.43354509e-08, 0.000572104589, 0.0057525211, 1, 1.6054104e-16, -1.21432539e-15, -1.6054104e-16, 1, 6.9388939e-17, 1.21432539e-15, -6.9388939e-17, 1)
- Attachment9.Position = Vector3.new(4.43354509e-08, 0.000572104589, 0.0057525211)
- Attachment9.Axis = Vector3.new(1, -1.6054104e-16, 1.21432539e-15)
- Attachment9.Orientation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
- Attachment10.Name = "NeckRigAttachment"
- Attachment10.Parent = Part7
- Attachment10.CFrame = CFrame.new(-4.04782622e-05, -0.841438174, 0.00575252436, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment10.Position = Vector3.new(-4.04782622e-05, -0.841438174, 0.00575252436)
- Attachment11.Name = "FaceFrontAttachment"
- Attachment11.Parent = Part7
- Attachment11.Rotation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
- Attachment11.CFrame = CFrame.new(2.54907229e-09, 7.51929038e-05, -0.882740915, 1, 1.6054104e-16, -1.21432539e-15, -1.6054104e-16, 1, 6.9388939e-17, 1.21432539e-15, -6.9388939e-17, 1)
- Attachment11.Position = Vector3.new(2.54907229e-09, 7.51929038e-05, -0.882740915)
- Attachment11.Axis = Vector3.new(1, -1.6054104e-16, 1.21432539e-15)
- Attachment11.Orientation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
- Attachment12.Name = "HairAttachment"
- Attachment12.Parent = Part7
- Attachment12.Rotation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
- Attachment12.CFrame = CFrame.new(2.54907229e-09, 0.891290128, 0.00575252576, 1, 1.6054104e-16, -1.21432539e-15, -1.6054104e-16, 1, 6.9388939e-17, 1.21432539e-15, -6.9388939e-17, 1)
- Attachment12.Position = Vector3.new(2.54907229e-09, 0.891290128, 0.00575252576)
- Attachment12.Axis = Vector3.new(1, -1.6054104e-16, 1.21432539e-15)
- Attachment12.Orientation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
- Attachment13.Name = "HatAttachment"
- Attachment13.Parent = Part7
- Attachment13.Rotation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
- Attachment13.CFrame = CFrame.new(2.54907229e-09, 0.891290128, 0.00575252576, 1, 1.6054104e-16, -1.21432539e-15, -1.6054104e-16, 1, 6.9388939e-17, 1.21432539e-15, -6.9388939e-17, 1)
- Attachment13.Position = Vector3.new(2.54907229e-09, 0.891290128, 0.00575252576)
- Attachment13.Axis = Vector3.new(1, -1.6054104e-16, 1.21432539e-15)
- Attachment13.Orientation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
- Attachment14.Name = "NeckAttachment"
- Attachment14.Parent = Part7
- Attachment14.Rotation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
- Attachment14.CFrame = CFrame.new(-4.04782622e-05, -0.859161079, 0.00575252436, 1, 1.6054104e-16, -1.21432539e-15, -1.6054104e-16, 1, 6.9388939e-17, 1.21432539e-15, -6.9388939e-17, 1)
- Attachment14.Position = Vector3.new(-4.04782622e-05, -0.859161079, 0.00575252436)
- Attachment14.Axis = Vector3.new(1, -1.6054104e-16, 1.21432539e-15)
- Attachment14.Orientation = Vector3.new(-3.97569356e-15, -6.957572e-14, -9.1983238e-15)
- Vector3Value15.Name = "OriginalSize"
- Vector3Value15.Parent = Part7
- Vector3Value15.Value = Vector3.new(1, 1, 1)
- Motor6D16.Name = "Neck"
- Motor6D16.Parent = Part7
- Motor6D16.C0 = CFrame.new(0.000502985611, 1.19909418, -0.0231492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D16.C1 = CFrame.new(-4.04782586e-05, -0.841438293, 0.0057525239, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D16.Part0 = nil
- Motor6D16.Part1 = Part7
- ParticleEmitter17.Parent = Part7
- ParticleEmitter17.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter17.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter17.Texture = "rbxassetid://501546182"
- ParticleEmitter17.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter17.Rate = 250
- ParticleEmitter17.Speed = NumberRange.new(2.5, 2.5)
- ParticleEmitter18.Name = "Fire"
- ParticleEmitter18.Parent = Part7
- ParticleEmitter18.Transparency = NumberSequence.new(1,0,0.94375002384186,0.099999964237213,0.73124998807907,0.27499997615814,0.71249997615814,0.22499996423721,1)
- ParticleEmitter18.Size = NumberSequence.new(0.25,0)
- ParticleEmitter18.Color = ColorSequence.new(Color3.new(0, 0.666667, 1),Color3.new(0, 0.666667, 1))
- ParticleEmitter18.Texture = "rbxassetid://603193846"
- ParticleEmitter18.ZOffset = 1
- ParticleEmitter18.Acceleration = Vector3.new(0, 10, 0)
- ParticleEmitter18.Lifetime = NumberRange.new(0.5, 1)
- ParticleEmitter18.Rate = 300
- ParticleEmitter18.Speed = NumberRange.new(0, 0)
- ParticleEmitter18.VelocitySpread = 15
- ParticleEmitter18.Color = ColorSequence.new(Color3.new(0, 0.666667, 1),Color3.new(0, 0.666667, 1))
- Script19.Parent = Part7
- table.insert(cors,sandbox(Script19,function()
- function TOUCH ()
- wait(1)
- workspace.Sound:Play()
- script.Parent.Parent.Zombie.Health = script.Parent.Parent.Zombie.Health - 3
- script.Disabled = true
- script.Parent.timer.Disabled = false
- end
- script.Parent.Touched:Connect(TOUCH)
- end))
- Script20.Name = "timer"
- Script20.Parent = Part7
- Script20.Disabled = true
- table.insert(cors,sandbox(Script20,function()
- wait(6)
- script.Parent.Script.Disabled = false
- script.Disabled = true
- end))
- BillboardGui21.Parent = Part7
- BillboardGui21.Size = UDim2.new(0, 200, 0, 50)
- Script22.Parent = BillboardGui21
- table.insert(cors,sandbox(Script22,function()
- sp = script.Parent
- Frame = sp:WaitForChild("Frame")
- Boss = Frame:WaitForChild("Boss")
- Health = Frame:WaitForChild("Health")
- Red = Frame:WaitForChild("Red")
- HealthCount = Frame:WaitForChild("HealthCount")
- BossName = Frame:WaitForChild("BossName")
- Humanoid = nil
- while true do
- if Boss.Value ~= nil then
- if Boss.Value:FindFirstChild("UpperTorso") then
- sp.BossGui.Adornee = Boss.Value.UpperTorso
- sp.BossGui.Enabled = true
- end
- Frame.Visible = true
- BossName.Text = Boss.Value.Name
- Humanoid = Boss.Value:FindFirstChild("Zombie")
- if Humanoid then
- Health.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0)
- if Red.Size.X.Scale > Health.Size.X.Scale then
- Red:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0), 1, 1, (Red.Size.X.Scale-Health.Size.X.Scale)*10, true)
- else
- Red.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0)
- end
- HealthCount.Text = math.floor(Humanoid.Health).." | "..Humanoid.MaxHealth
- --Health.BackgroundColor3 = Color3.new(1-(Humanoid.Health/Humanoid.MaxHealth),Humanoid.Health/Humanoid.MaxHealth,0)
- else
- sp.BossGui.Adornee = nil
- sp.BossGui.Enabled = false
- Frame.Visible = false
- end
- if Boss.Value.Parent == nil then
- Boss.Value = nil
- sp.BossGui.Adornee = nil
- sp.BossGui.Enabled = false
- Frame.Visible = false
- end
- else
- sp.BossGui.Adornee = nil
- sp.BossGui.Enabled = false
- Frame.Visible = false
- end
- wait()
- end
- end))
- BillboardGui23.Name = "BossGui"
- BillboardGui23.Parent = BillboardGui21
- BillboardGui23.Size = UDim2.new(5, 0, 5, 0)
- BillboardGui23.AlwaysOnTop = true
- BillboardGui23.StudsOffset = Vector3.new(0, 10, 0)
- TextLabel24.Parent = BillboardGui23
- TextLabel24.Transparency = 1
- TextLabel24.Size = UDim2.new(1, 0, 1, 0)
- TextLabel24.Text = "BOSS"
- TextLabel24.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel24.BackgroundTransparency = 1
- TextLabel24.Font = Enum.Font.ArialBold
- TextLabel24.FontSize = Enum.FontSize.Size12
- TextLabel24.TextColor3 = Color3.new(1, 0, 0)
- TextLabel24.TextStrokeColor3 = Color3.new(0.784314, 0, 0)
- TextLabel24.TextStrokeTransparency = 0
- Frame25.Parent = BillboardGui21
- Frame25.Size = UDim2.new(0, 500, 0, 30)
- Frame25.Style = Enum.FrameStyle.DropShadow
- Frame25.Position = UDim2.new(0.5, -250, 0.75, -10)
- Frame25.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame26.Name = "Health"
- Frame26.Parent = Frame25
- Frame26.Size = UDim2.new(1, 0, 1, 0)
- Frame26.BackgroundColor3 = Color3.new(0, 1, 0)
- Frame26.BorderColor3 = Color3.new(0, 0, 0)
- Frame26.BorderSizePixel = 0
- Frame26.ZIndex = 2
- TextLabel27.Name = "HealthCount"
- TextLabel27.Parent = Frame25
- TextLabel27.Text = "0 | 0"
- TextLabel27.Position = UDim2.new(0.5, 0, 0.5, 0)
- TextLabel27.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel27.ZIndex = 2
- TextLabel27.Font = Enum.Font.ArialBold
- TextLabel27.FontSize = Enum.FontSize.Size18
- TextLabel27.TextColor3 = Color3.new(1, 1, 1)
- TextLabel27.TextStrokeTransparency = 0
- TextLabel28.Name = "BossName"
- TextLabel28.Parent = Frame25
- TextLabel28.Text = "BossName"
- TextLabel28.Position = UDim2.new(0, 0, 0, -10)
- TextLabel28.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel28.Font = Enum.Font.ArialBold
- TextLabel28.FontSize = Enum.FontSize.Size18
- TextLabel28.TextColor3 = Color3.new(1, 1, 1)
- TextLabel28.TextStrokeTransparency = 0
- TextLabel28.TextXAlignment = Enum.TextXAlignment.Left
- ObjectValue29.Name = "Boss"
- ObjectValue29.Parent = Frame25
- Frame30.Name = "Red"
- Frame30.Parent = Frame25
- Frame30.Size = UDim2.new(1, 0, 1, 0)
- Frame30.BackgroundColor3 = Color3.new(1, 0, 0)
- Frame30.BorderColor3 = Color3.new(0, 0, 0)
- Frame30.BorderSizePixel = 0
- TextLabel31.Name = "Credit"
- TextLabel31.Parent = Frame25
- TextLabel31.Text = "Credit to SuperEvilAzmil for Boss Health Meter GUI"
- TextLabel31.Position = UDim2.new(1, -5, 1, 10)
- TextLabel31.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel31.Font = Enum.Font.ArialBold
- TextLabel31.FontSize = Enum.FontSize.Size11
- TextLabel31.TextColor3 = Color3.new(1, 1, 1)
- TextLabel31.TextStrokeTransparency = 0
- TextLabel31.TextXAlignment = Enum.TextXAlignment.Right
- Animation32.Name = "Dance3"
- Animation32.Parent = Part7
- Animation32.AnimationId = "rbxassetid://1490854290"
- Script33.Name = "RocketScript"
- Script33.Parent = Part7
- Script33.Disabled = true
- table.insert(cors,sandbox(Script33,function()
- r = game:service("RunService")
- shaft = script.Parent
- position = shaft.Position
- function fly()
- direction = shaft.CFrame.lookVector
- position = position + direction * 3
- error = position - shaft.Position
- shaft.Velocity = 7*error
- end
- function blow()
- explosion = Instance.new("Explosion")
- explosion.Position = shaft.Position
- -- find instigator tag
- local creator = script.Parent:findFirstChild("creator")
- if creator ~= nil then
- explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end)
- end
- explosion.Parent = game.Workspace
- connection:disconnect()
- wait(.1)
- shaft:remove()
- end
- function onPlayerBlownUp(part, distance, creator)
- if part.Name == "Head" then
- local humanoid = part.Parent.Humanoid
- tagHumanoid(humanoid, creator)
- end
- end
- function tagHumanoid(humanoid, creator)
- -- tag does not need to expire iff all explosions lethal
- if creator ~= nil then
- local new_tag = creator:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- t, s = r.Stepped:wait()
- d = t + 10.0 - s
- connection = shaft.Touched:connect(blow)
- while t < d do
- fly()
- t = r.Stepped:wait()
- end
- -- at max range
- shaft:remove()
- end))
- Script34.Name = "Server Launcher"
- Script34.Parent = Part7
- table.insert(cors,sandbox(Script34,function()
- local Rocket = Instance.new("Part")
- local Tool = script.Parent
- Rocket.Locked = true
- Rocket.BackSurface = 3
- Rocket.BottomSurface = 3
- Rocket.FrontSurface = 3
- Rocket.LeftSurface = 3
- Rocket.RightSurface = 3
- Rocket.TopSurface = 3
- Rocket.Size = Vector3.new(1,1,4)
- Rocket.BrickColor = BrickColor.new(23)
- Tool.RocketScript:clone().Parent = Rocket
- function fire(vTarget)
- vHandle=script.Parent
- local dir = vTarget - vHandle.Position
- dir = computeDirection(dir)
- local missile = Rocket:clone()
- local pos = vHandle.Position + (dir * 6)
- missile.CFrame = CFrame.new(pos, pos + dir)
- local creator_tag = Instance.new("ObjectValue")
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- if vPlayer ~= nil then
- if (vPlayer.Neutral == false) then -- nice touch
- missile.BrickColor = vPlayer.TeamColor
- end
- end
- creator_tag.Value =vPlayer
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- missile.RocketScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- while true do
- fire(script.Parent.CFrame.lookVector*1000)
- wait(4)
- end
- end))
- Part35.Name = "HumanoidRootPart"
- Part35.Parent = Model6
- Part35.BrickColor = BrickColor.new("Khaki")
- Part35.Transparency = 1
- Part35.Rotation = Vector3.new(180, -0.0299999993, 180)
- Part35.CanCollide = false
- Part35.Size = Vector3.new(2.97530127, 2.97530127, 1.48765063)
- Part35.CFrame = CFrame.new(5.54540443, 3.46017599, -30.2544365, -0.999999881, -1.59059965e-08, -0.000481999945, 0, 1, -3.29999966e-05, 0.000481999945, -3.2999993e-05, -0.999999881)
- Part35.Color = Color3.new(0.886275, 0.862745, 0.737255)
- Part35.Position = Vector3.new(5.54540443, 3.46017599, -30.2544365)
- Part35.Orientation = Vector3.new(0, -179.970001, 0)
- Part35.Color = Color3.new(0.886275, 0.862745, 0.737255)
- Attachment36.Name = "RootRigAttachment"
- Attachment36.Parent = Part35
- Vector3Value37.Name = "OriginalSize"
- Vector3Value37.Parent = Part35
- Vector3Value37.Value = Vector3.new(2, 2, 1)
- ParticleEmitter38.Parent = Part35
- ParticleEmitter38.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter38.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter38.Texture = "rbxassetid://501546182"
- ParticleEmitter38.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter38.Rate = 250
- ParticleEmitter38.Speed = NumberRange.new(2.5, 2.5)
- BodyColors39.Parent = Model6
- BodyColors39.HeadColor = BrickColor.new("Medium green")
- BodyColors39.LeftArmColor = BrickColor.new("Medium green")
- BodyColors39.LeftLegColor = BrickColor.new("Black")
- BodyColors39.RightArmColor = BrickColor.new("Medium green")
- BodyColors39.RightLegColor = BrickColor.new("Black")
- BodyColors39.TorsoColor = BrickColor.new("Reddish brown")
- Attachment40.Name = "WaistRigAttachment"
- Attachment40.Parent = mas
- Attachment40.CFrame = CFrame.new(0.000502985669, -0.689472198, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment40.Position = Vector3.new(0.000502985669, -0.689472198, -0.0231492221)
- Attachment41.Name = "NeckRigAttachment"
- Attachment41.Parent = mas
- Attachment41.CFrame = CFrame.new(0.000502985669, 1.1990943, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment41.Position = Vector3.new(0.000502985669, 1.1990943, -0.0231492221)
- Attachment42.Name = "LeftShoulderRigAttachment"
- Attachment42.Parent = mas
- Attachment42.CFrame = CFrame.new(-1.85889852, 0.827741623, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment42.Position = Vector3.new(-1.85889852, 0.827741623, -0.0231492221)
- Attachment43.Name = "RightShoulderRigAttachment"
- Attachment43.Parent = mas
- Attachment43.CFrame = CFrame.new(1.86003709, 0.827957928, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment43.Position = Vector3.new(1.86003709, 0.827957928, -0.0231492221)
- Attachment44.Name = "LeftCollarAttachment"
- Attachment44.Parent = mas
- Attachment44.CFrame = CFrame.new(-1.48714733, 1.19651484, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment44.Position = Vector3.new(-1.48714733, 1.19651484, -0.0231492221)
- Attachment45.Name = "RightCollarAttachment"
- Attachment45.Parent = mas
- Attachment45.CFrame = CFrame.new(1.48815346, 1.19651484, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment45.Position = Vector3.new(1.48815346, 1.19651484, -0.0231492221)
- Attachment46.Name = "BodyBackAttachment"
- Attachment46.Parent = mas
- Attachment46.CFrame = CFrame.new(0.000502985669, -0.333346367, 0.778308928, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment46.Position = Vector3.new(0.000502985669, -0.333346367, 0.778308928)
- Attachment47.Name = "BodyFrontAttachment"
- Attachment47.Parent = mas
- Attachment47.CFrame = CFrame.new(0.000502985669, -0.333346367, -0.741851985, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment47.Position = Vector3.new(0.000502985669, -0.333346367, -0.741851985)
- Vector3Value48.Name = "OriginalSize"
- Vector3Value48.Parent = mas
- Vector3Value48.Value = Vector3.new(2.00029206, 1.60093355, 1.0005368)
- Motor6D49.Name = "Waist"
- Motor6D49.Parent = mas
- Motor6D49.C0 = CFrame.new(0.000416797498, 0.799082518, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D49.C1 = CFrame.new(0.000502985611, -0.689472437, -0.0231492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D49.Part0 = nil
- Motor6D49.Part1 = nil
- ParticleEmitter50.Parent = mas
- ParticleEmitter50.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter50.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter50.Texture = "rbxassetid://501546182"
- ParticleEmitter50.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter50.Rate = 250
- ParticleEmitter50.Speed = NumberRange.new(2.5, 2.5)
- Sound51.Name = "FireSound"
- Sound51.Parent = mas
- Sound51.SoundId = "http://www.roblox.com/Asset?ID=132456187"
- Sound51.Volume = 1
- Sound52.Name = "ReloadSound"
- Sound52.Parent = mas
- Sound52.Pitch = 1.1000000238419
- Sound52.SoundId = "http://www.roblox.com/Asset?ID=132456167"
- Sound52.Volume = 1
- Attachment53.Name = "WaistRigAttachment"
- Attachment53.Parent = mas
- Attachment53.CFrame = CFrame.new(0.000502985669, -0.689472198, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment53.Position = Vector3.new(0.000502985669, -0.689472198, -0.0231492221)
- Attachment54.Name = "NeckRigAttachment"
- Attachment54.Parent = mas
- Attachment54.CFrame = CFrame.new(0.000502985669, 1.1990943, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment54.Position = Vector3.new(0.000502985669, 1.1990943, -0.0231492221)
- Attachment55.Name = "LeftShoulderRigAttachment"
- Attachment55.Parent = mas
- Attachment55.CFrame = CFrame.new(-1.85889852, 0.827741623, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment55.Position = Vector3.new(-1.85889852, 0.827741623, -0.0231492221)
- Attachment56.Name = "RightShoulderRigAttachment"
- Attachment56.Parent = mas
- Attachment56.CFrame = CFrame.new(1.86003709, 0.827957928, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment56.Position = Vector3.new(1.86003709, 0.827957928, -0.0231492221)
- Attachment57.Name = "LeftCollarAttachment"
- Attachment57.Parent = mas
- Attachment57.CFrame = CFrame.new(-1.48714733, 1.19651484, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment57.Position = Vector3.new(-1.48714733, 1.19651484, -0.0231492221)
- Attachment58.Name = "RightCollarAttachment"
- Attachment58.Parent = mas
- Attachment58.CFrame = CFrame.new(1.48815346, 1.19651484, -0.0231492221, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment58.Position = Vector3.new(1.48815346, 1.19651484, -0.0231492221)
- Attachment59.Name = "BodyBackAttachment"
- Attachment59.Parent = mas
- Attachment59.CFrame = CFrame.new(0.000502985669, -0.333346367, 0.778308928, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment59.Position = Vector3.new(0.000502985669, -0.333346367, 0.778308928)
- Attachment60.Name = "BodyFrontAttachment"
- Attachment60.Parent = mas
- Attachment60.CFrame = CFrame.new(0.000502985669, -0.333346367, -0.741851985, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment60.Position = Vector3.new(0.000502985669, -0.333346367, -0.741851985)
- Vector3Value61.Name = "OriginalSize"
- Vector3Value61.Parent = mas
- Vector3Value61.Value = Vector3.new(2.00029206, 1.60093355, 1.0005368)
- Motor6D62.Name = "Waist"
- Motor6D62.Parent = mas
- Motor6D62.C0 = CFrame.new(0.000416797498, 0.799082518, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D62.C1 = CFrame.new(0.000502985611, -0.689472437, -0.0231492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D62.Part0 = nil
- Motor6D62.Part1 = nil
- ParticleEmitter63.Parent = mas
- ParticleEmitter63.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter63.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter63.Texture = "rbxassetid://501546182"
- ParticleEmitter63.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter63.Rate = 250
- ParticleEmitter63.Speed = NumberRange.new(2.5, 2.5)
- Attachment64.Name = "LeftAnkleRigAttachment"
- Attachment64.Parent = mas
- Attachment64.CFrame = CFrame.new(-0.0134138651, 0.0482642688, 0.000264161616, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment64.Position = Vector3.new(-0.0134138651, 0.0482642688, 0.000264161616)
- Vector3Value65.Name = "OriginalSize"
- Vector3Value65.Parent = mas
- Vector3Value65.Value = Vector3.new(1.00063133, 0.335407257, 1.00020337)
- Motor6D66.Name = "LeftAnkle"
- Motor6D66.Parent = mas
- Motor6D66.C0 = CFrame.new(-0.00569205033, -1.05642748, 0.000454538065, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D66.C1 = CFrame.new(-0.0134138661, 0.0482642725, 0.000264161645, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D66.Part0 = nil
- Motor6D66.Part1 = nil
- ParticleEmitter67.Parent = mas
- ParticleEmitter67.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter67.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter67.Texture = "rbxassetid://501546182"
- ParticleEmitter67.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter67.Rate = 250
- ParticleEmitter67.Speed = NumberRange.new(2.5, 2.5)
- Script68.Name = "Respawn"
- Script68.Parent = mas
- table.insert(cors,sandbox(Script68,function()
- while true do
- wait(1)
- if script.Parent.ElectricAmmo.Value<1 then
- wait(2)
- script.Parent.TeslaScript:Destroy()
- script.Parent:remove()
- end
- end
- end))
- Script69.Name = "TeslaScript"
- Script69.Parent = mas
- table.insert(cors,sandbox(Script69,function()
- -- Made by Stickmasterluke
- -- Modified by ScripterTutorials
- wait(100)
- sp=script.Parent
- segmentlength = 5
- segmentwidth = 0.35
- varience = 1.5
- timetofade=sp.Configuration.FadeTime.Value
- function raycast(spos,vec,currentdist)
- local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*currentdist),sp)
- if hit2~=nil and pos2 then
- if hit2.Transparency>=.5 or hit2.Name=="Handle" then
- local currentdist=currentdist-(pos2-spos).magnitude
- return raycast(pos2,vec,currentdist)
- end
- end
- return hit2,pos2
- end
- function zap(targetpos)
- if targetpos then
- local m=Instance.new("Model")
- m.Name="Lightning"
- local lastpos=sp.Position
- local totalsegments=math.ceil(sp.Configuration.Range.Value/segmentlength)
- local direction=(targetpos-sp.Position).unit
- local struck = false
- for i=1,totalsegments do
- if not struck then
- local entropy=Vector3.new(varience*((math.random()*2)-1),varience*((math.random()*2)-1),varience*((math.random()*2)-1))
- local newpos=sp.Position+(direction*(sp.Configuration.Range.Value*(i/totalsegments)))+entropy
- local hit,endpos=raycast(lastpos,(newpos-lastpos).unit,(lastpos-newpos).magnitude)
- local l=Instance.new("Part")
- l.Material = sp.Configuration.Material.Value
- l.CanCollide=false
- l.Anchored=true
- l.BrickColor=sp.Configuration.Color.Value
- l.formFactor="Custom"
- l.Size=Vector3.new(2,2,2)
- l.CFrame=CFrame.new(lastpos,endpos)*CFrame.Angles(math.pi/2,0,0)*CFrame.new(0,-(lastpos-endpos).magnitude/2,0)
- local mesh=Instance.new("CylinderMesh")
- mesh.Scale=Vector3.new(segmentwidth,(lastpos-endpos).magnitude,segmentwidth)*5
- mesh.Parent=l
- delay(0,function()
- for i=1,timetofade/(.1) do
- wait(.1)
- l.Transparency=i/(timetofade/(.1))
- end
- end)
- if hit and hit.Parent~=nil then
- struck=true
- local h=hit.Parent:FindFirstChild("Humanoid")
- if h then
- script.Parent.ElectricAmmo.Value = script.Parent.ElectricAmmo.Value - 1
- h:TakeDamage(sp.Configuration.Damage.Value)
- end
- end
- l.Parent=m
- lastpos=endpos
- end
- end
- m.Parent=game.Workspace
- game:GetService("Debris"):AddItem(m,1.5)
- end
- end
- local humanoids
- function populatehumanoids(mdl)
- for _, v in pairs(mdl:GetChildren()) do
- if v:FindFirstChild("Humanoid") then
- if not sp.Configuration.DamagePlayers.Value then
- if not game.Players:GetPlayerFromCharacter(v) then
- table.insert(humanoids, v.Humanoid)
- end
- else
- table.insert(humanoids, v.Humanoid)
- end
- end
- end
- end
- wait(3)
- while script.Parent.Parent do
- for i = 1, sp.Configuration.BurstAmount.Value do
- oldclosedist = {}
- closedist = {}
- oldclosepos = {}
- closepos = {}
- humanoids = {}
- populatehumanoids(workspace)
- for _, v in pairs(humanoids) do
- if v and v.Parent:FindFirstChild("Head") and v.Health > 0 then
- local t = v.Parent.Head
- local dist=(t.Position-sp.Position).magnitude
- if dist<=sp.Configuration.Range.Value then
- table.insert(oldclosedist, dist)
- table.insert(closedist, dist)
- table.insert(oldclosepos, t.Position)
- end
- end
- end
- table.sort(closedist)
- for _, v in pairs(oldclosedist) do
- for i = 1, #closedist do
- if closedist[i] == v then
- table.insert(closepos, oldclosepos[i])
- end
- end
- end
- if #closepos > 0 then
- local max = math.min(#closepos, sp.Configuration.MaxTargets.Value)
- for i = 1, max do
- spawn(function()
- zap(closepos[i])
- end)
- end
- end
- wait(sp.Configuration.BurstWait.Value)
- end
- wait(sp.Configuration.Frequency.Value)
- end
- end))
- NumberValue70.Name = "ElectricAmmo"
- NumberValue70.Parent = mas
- NumberValue70.Value = 10
- Configuration71.Parent = mas
- IntValue72.Name = "Damage"
- IntValue72.Parent = Configuration71
- IntValue72.Value = 20
- IntValue73.Name = "Range"
- IntValue73.Parent = Configuration71
- IntValue73.Value = 100
- NumberValue74.Name = "Frequency"
- NumberValue74.Parent = Configuration71
- NumberValue74.Value = 1
- BrickColorValue75.Name = "Color"
- BrickColorValue75.Parent = Configuration71
- BrickColorValue75.Value = BrickColor.new("Toothpaste")
- IntValue76.Name = "MaxTargets"
- IntValue76.Parent = Configuration71
- IntValue76.Value = 1
- IntValue77.Name = "BurstAmount"
- IntValue77.Parent = Configuration71
- IntValue77.Value = 23
- NumberValue78.Name = "BurstWait"
- NumberValue78.Parent = Configuration71
- NumberValue78.Value = 2
- BoolValue79.Name = "DamagePlayers"
- BoolValue79.Parent = Configuration71
- BoolValue79.Value = true
- NumberValue80.Name = "FadeTime"
- NumberValue80.Parent = Configuration71
- NumberValue80.Value = 0.5
- StringValue81.Name = "Material"
- StringValue81.Parent = Configuration71
- StringValue81.Value = "Neon"
- Attachment82.Name = "RightHipRigAttachment"
- Attachment82.Parent = mas
- Attachment82.CFrame = CFrame.new(0.00569204986, 0.72138238, 0.000724211161, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment82.Position = Vector3.new(0.00569204986, 0.72138238, 0.000724211161)
- Attachment83.Name = "RightKneeRigAttachment"
- Attachment83.Parent = mas
- Attachment83.CFrame = CFrame.new(0.00569204986, -0.394355595, 0.000635214732, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment83.Position = Vector3.new(0.00569204986, -0.394355595, 0.000635214732)
- Vector3Value84.Name = "OriginalSize"
- Vector3Value84.Parent = mas
- Vector3Value84.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
- Motor6D85.Name = "RightHip"
- Motor6D85.Parent = mas
- Motor6D85.C0 = CFrame.new(0.751382887, -0.361889243, 0.00152914331, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D85.C1 = CFrame.new(0.00569205033, 0.72138232, 0.000724211161, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D85.Part0 = nil
- Motor6D85.Part1 = nil
- ParticleEmitter86.Parent = mas
- ParticleEmitter86.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter86.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter86.Texture = "rbxassetid://501546182"
- ParticleEmitter86.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter86.Rate = 250
- ParticleEmitter86.Speed = NumberRange.new(2.5, 2.5)
- Attachment87.Name = "RightShoulderRigAttachment"
- Attachment87.Parent = mas
- Attachment87.CFrame = CFrame.new(-0.36875245, 0.679675281, -0.0140436068, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment87.Position = Vector3.new(-0.36875245, 0.679675281, -0.0140436068)
- Attachment88.Name = "RightElbowRigAttachment"
- Attachment88.Parent = mas
- Attachment88.CFrame = CFrame.new(0.00318949297, -0.391459733, -0.0140436068, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment88.Position = Vector3.new(0.00318949297, -0.391459733, -0.0140436068)
- Attachment89.Name = "RightShoulderAttachment"
- Attachment89.Parent = mas
- Attachment89.CFrame = CFrame.new(0.0180658046, 1.05591035, -0.0140436068, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment89.Position = Vector3.new(0.0180658046, 1.05591035, -0.0140436068)
- Vector3Value90.Name = "OriginalSize"
- Vector3Value90.Parent = mas
- Vector3Value90.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
- Motor6D91.Name = "RightShoulder"
- Motor6D91.Parent = mas
- Motor6D91.C0 = CFrame.new(1.86003721, 0.827957749, -0.0231492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D91.C1 = CFrame.new(-0.36875242, 0.679675281, -0.0140436068, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D91.Part0 = nil
- Motor6D91.Part1 = nil
- ParticleEmitter92.Parent = mas
- ParticleEmitter92.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter92.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter92.Texture = "rbxassetid://501546182"
- ParticleEmitter92.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter92.Rate = 250
- ParticleEmitter92.Speed = NumberRange.new(2.5, 2.5)
- Attachment93.Name = "RightKneeRigAttachment"
- Attachment93.Parent = mas
- Attachment93.CFrame = CFrame.new(0.00569204986, 0.430330634, 0.000216976288, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment93.Position = Vector3.new(0.00569204986, 0.430330634, 0.000216976288)
- Attachment94.Name = "RightAnkleRigAttachment"
- Attachment94.Parent = mas
- Attachment94.CFrame = CFrame.new(0.00569204986, -1.05732036, 0.00042162725, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment94.Position = Vector3.new(0.00569204986, -1.05732036, 0.00042162725)
- Vector3Value95.Name = "OriginalSize"
- Vector3Value95.Parent = mas
- Vector3Value95.Value = Vector3.new(1.00027585, 1.48964536, 1.00032854)
- Motor6D96.Name = "RightKnee"
- Motor6D96.Parent = mas
- Motor6D96.C0 = CFrame.new(0.00569205033, -0.394355625, 0.000635214674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D96.C1 = CFrame.new(0.00569205033, 0.430330634, 0.000216976274, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D96.Part0 = nil
- Motor6D96.Part1 = nil
- ParticleEmitter97.Parent = mas
- ParticleEmitter97.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter97.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter97.Texture = "rbxassetid://501546182"
- ParticleEmitter97.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter97.Rate = 250
- ParticleEmitter97.Speed = NumberRange.new(2.5, 2.5)
- Attachment98.Name = "RightWristRigAttachment"
- Attachment98.Parent = mas
- Attachment98.CFrame = CFrame.new(0.00319037843, -1.01465142, -0.0147217168, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment98.Position = Vector3.new(0.00319037843, -1.01465142, -0.0147217168)
- Attachment99.Name = "RightElbowRigAttachment"
- Attachment99.Parent = mas
- Attachment99.CFrame = CFrame.new(0.00319037843, 0.182907447, -0.0147217168, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment99.Position = Vector3.new(0.00319037843, 0.182907447, -0.0147217168)
- Vector3Value100.Name = "OriginalSize"
- Vector3Value100.Parent = mas
- Vector3Value100.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
- Motor6D101.Name = "RightElbow"
- Motor6D101.Parent = mas
- Motor6D101.C0 = CFrame.new(0.00318949181, -0.391459703, -0.0140436068, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D101.C1 = CFrame.new(0.00319037843, 0.182907462, -0.0147217168, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D101.Part0 = nil
- Motor6D101.Part1 = nil
- ParticleEmitter102.Parent = mas
- ParticleEmitter102.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter102.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter102.Texture = "rbxassetid://501546182"
- ParticleEmitter102.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter102.Rate = 250
- ParticleEmitter102.Speed = NumberRange.new(2.5, 2.5)
- Attachment103.Name = "RightWristRigAttachment"
- Attachment103.Parent = mas
- Attachment103.CFrame = CFrame.new(0.0012869694, 0.0864428356, -0.0229678899, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment103.Position = Vector3.new(0.0012869694, 0.0864428356, -0.0229678899)
- Attachment104.Name = "RightGripAttachment"
- Attachment104.Parent = mas
- Attachment104.Rotation = Vector3.new(-90, -0, -0)
- Attachment104.CFrame = CFrame.new(0.0161634628, -0.250913799, -0.0229677539, 1, 0, -0, 0, 6.12323426e-17, 1, 0, -1, 6.12323426e-17)
- Attachment104.Position = Vector3.new(0.0161634628, -0.250913799, -0.0229677539)
- Attachment104.Orientation = Vector3.new(-90, -0, 0)
- Vector3Value105.Name = "OriginalSize"
- Vector3Value105.Parent = mas
- Vector3Value105.Value = Vector3.new(0.999299049, 0.335255772, 1.00029743)
- Motor6D106.Name = "RightWrist"
- Motor6D106.Parent = mas
- Motor6D106.C0 = CFrame.new(0.00319037843, -1.01465142, -0.0147217168, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D106.C1 = CFrame.new(0.00128696929, 0.0864428356, -0.022967888, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D106.Part0 = nil
- Motor6D106.Part1 = nil
- ParticleEmitter107.Parent = mas
- ParticleEmitter107.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter107.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter107.Texture = "rbxassetid://501546182"
- ParticleEmitter107.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter107.Rate = 250
- ParticleEmitter107.Speed = NumberRange.new(2.5, 2.5)
- Attachment108.Name = "RightAnkleRigAttachment"
- Attachment108.Parent = mas
- Attachment108.CFrame = CFrame.new(0.0134138651, 0.0473715439, 0.000231406069, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment108.Position = Vector3.new(0.0134138651, 0.0473715439, 0.000231406069)
- Vector3Value109.Name = "OriginalSize"
- Vector3Value109.Parent = mas
- Vector3Value109.Value = Vector3.new(1.00063133, 0.335407376, 1.00020337)
- Motor6D110.Name = "RightAnkle"
- Motor6D110.Parent = mas
- Motor6D110.C0 = CFrame.new(0.00569205033, -1.05732012, 0.000421627308, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D110.C1 = CFrame.new(0.0134138661, 0.0473715365, 0.000231406084, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D110.Part0 = nil
- Motor6D110.Part1 = nil
- ParticleEmitter111.Parent = mas
- ParticleEmitter111.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter111.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter111.Texture = "rbxassetid://501546182"
- ParticleEmitter111.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter111.Rate = 250
- ParticleEmitter111.Speed = NumberRange.new(2.5, 2.5)
- Attachment112.Name = "RootRigAttachment"
- Attachment112.Parent = mas
- Attachment112.CFrame = CFrame.new(0.000416797498, 0.197913736, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment112.Position = Vector3.new(0.000416797498, 0.197913736, -0.0212319121)
- Attachment113.Name = "WaistRigAttachment"
- Attachment113.Parent = mas
- Attachment113.CFrame = CFrame.new(0.000416797498, 0.799082518, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment113.Position = Vector3.new(0.000416797498, 0.799082518, -0.0212319121)
- Attachment114.Name = "LeftHipRigAttachment"
- Attachment114.Parent = mas
- Attachment114.CFrame = CFrame.new(-0.750549316, -0.361591637, 0.00182667281, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment114.Position = Vector3.new(-0.750549316, -0.361591637, 0.00182667281)
- Attachment115.Name = "RightHipRigAttachment"
- Attachment115.Parent = mas
- Attachment115.CFrame = CFrame.new(0.751382887, -0.361889243, 0.00152914331, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment115.Position = Vector3.new(0.751382887, -0.361889243, 0.00152914331)
- Attachment116.Name = "WaistFrontAttachment"
- Attachment116.Parent = mas
- Attachment116.CFrame = CFrame.new(0.000416797498, -0.099423185, -0.745699525, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment116.Position = Vector3.new(0.000416797498, -0.099423185, -0.745699525)
- Attachment117.Name = "WaistCenterAttachment"
- Attachment117.Parent = mas
- Attachment117.CFrame = CFrame.new(0.000416797498, -0.099423185, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment117.Position = Vector3.new(0.000416797498, -0.099423185, -0.0212319121)
- Attachment118.Name = "WaistBackAttachment"
- Attachment118.Parent = mas
- Attachment118.CFrame = CFrame.new(0.000416797498, -0.099423185, 0.730230987, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment118.Position = Vector3.new(0.000416797498, -0.099423185, 0.730230987)
- Vector3Value119.Name = "OriginalSize"
- Vector3Value119.Parent = mas
- Vector3Value119.Value = Vector3.new(2.00017595, 0.400037616, 1.00021255)
- Motor6D120.Name = "Root"
- Motor6D120.Parent = mas
- Motor6D120.C1 = CFrame.new(0.000416797498, 0.197913706, -0.0212319121, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D120.Part0 = Part35
- Motor6D120.Part1 = nil
- ParticleEmitter121.Parent = mas
- ParticleEmitter121.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter121.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter121.Texture = "rbxassetid://501546182"
- ParticleEmitter121.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter121.Rate = 250
- ParticleEmitter121.Speed = NumberRange.new(2.5, 2.5)
- Attachment122.Name = "LeftHipRigAttachment"
- Attachment122.Parent = mas
- Attachment122.CFrame = CFrame.new(-0.00569204986, 0.721679807, 0.00102163001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment122.Position = Vector3.new(-0.00569204986, 0.721679807, 0.00102163001)
- Attachment123.Name = "LeftKneeRigAttachment"
- Attachment123.Parent = mas
- Attachment123.CFrame = CFrame.new(-0.00569204986, -0.393463045, 0.000872865261, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment123.Position = Vector3.new(-0.00569204986, -0.393463045, 0.000872865261)
- Vector3Value124.Name = "OriginalSize"
- Vector3Value124.Parent = mas
- Vector3Value124.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
- Motor6D125.Name = "LeftHip"
- Motor6D125.Parent = mas
- Motor6D125.C0 = CFrame.new(-0.750549257, -0.361591697, 0.00182667293, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D125.C1 = CFrame.new(-0.00569205033, 0.721679866, 0.0010216299, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D125.Part0 = nil
- Motor6D125.Part1 = nil
- ParticleEmitter126.Parent = mas
- ParticleEmitter126.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter126.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter126.Texture = "rbxassetid://501546182"
- ParticleEmitter126.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter126.Rate = 250
- ParticleEmitter126.Speed = NumberRange.new(2.5, 2.5)
- Attachment127.Name = "LeftShoulderRigAttachment"
- Attachment127.Parent = mas
- Attachment127.CFrame = CFrame.new(0.368885309, 0.679459095, -0.0140432967, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment127.Position = Vector3.new(0.368885309, 0.679459095, -0.0140432967)
- Attachment128.Name = "LeftElbowRigAttachment"
- Attachment128.Parent = mas
- Attachment128.CFrame = CFrame.new(-0.0024771092, -0.391459733, -0.0140432967, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment128.Position = Vector3.new(-0.0024771092, -0.391459733, -0.0140432967)
- Attachment129.Name = "LeftShoulderAttachment"
- Attachment129.Parent = mas
- Attachment129.CFrame = CFrame.new(-0.0179773103, 1.05591047, -0.0140432967, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment129.Position = Vector3.new(-0.0179773103, 1.05591047, -0.0140432967)
- Vector3Value130.Name = "OriginalSize"
- Vector3Value130.Parent = mas
- Vector3Value130.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
- Motor6D131.Name = "LeftShoulder"
- Motor6D131.Parent = mas
- Motor6D131.C0 = CFrame.new(-1.8588984, 0.827741563, -0.0231492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D131.C1 = CFrame.new(0.368885249, 0.679459095, -0.0140432958, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D131.Part0 = nil
- Motor6D131.Part1 = nil
- ParticleEmitter132.Parent = mas
- ParticleEmitter132.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter132.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter132.Texture = "rbxassetid://501546182"
- ParticleEmitter132.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter132.Rate = 250
- ParticleEmitter132.Speed = NumberRange.new(2.5, 2.5)
- Attachment133.Name = "LeftKneeRigAttachment"
- Attachment133.Parent = mas
- Attachment133.CFrame = CFrame.new(-0.00569204986, 0.431223273, 0.000454538123, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment133.Position = Vector3.new(-0.00569204986, 0.431223273, 0.000454538123)
- Attachment134.Name = "LeftAnkleRigAttachment"
- Attachment134.Parent = mas
- Attachment134.CFrame = CFrame.new(-0.00569204986, -1.05642736, 0.000454538123, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment134.Position = Vector3.new(-0.00569204986, -1.05642736, 0.000454538123)
- Vector3Value135.Name = "OriginalSize"
- Vector3Value135.Parent = mas
- Vector3Value135.Value = Vector3.new(1.00027585, 1.48964536, 1.00032866)
- Motor6D136.Name = "LeftKnee"
- Motor6D136.Parent = mas
- Motor6D136.C0 = CFrame.new(-0.00569205033, -0.393463045, 0.000872865145, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D136.C1 = CFrame.new(-0.00569205033, 0.431223184, 0.000454538065, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D136.Part0 = nil
- Motor6D136.Part1 = nil
- ParticleEmitter137.Parent = mas
- ParticleEmitter137.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter137.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter137.Texture = "rbxassetid://501546182"
- ParticleEmitter137.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter137.Rate = 250
- ParticleEmitter137.Speed = NumberRange.new(2.5, 2.5)
- Attachment138.Name = "LeftElbowRigAttachment"
- Attachment138.Parent = mas
- Attachment138.CFrame = CFrame.new(-0.00247799675, 0.182907447, -0.014721673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment138.Position = Vector3.new(-0.00247799675, 0.182907447, -0.014721673)
- Attachment139.Name = "LeftWristRigAttachment"
- Attachment139.Parent = mas
- Attachment139.CFrame = CFrame.new(-0.00247799675, -1.01495802, -0.014721673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment139.Position = Vector3.new(-0.00247799675, -1.01495802, -0.014721673)
- Vector3Value140.Name = "OriginalSize"
- Vector3Value140.Parent = mas
- Vector3Value140.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
- Motor6D141.Name = "LeftElbow"
- Motor6D141.Parent = mas
- Motor6D141.C0 = CFrame.new(-0.0024771099, -0.391459703, -0.0140432958, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D141.C1 = CFrame.new(-0.00247799652, 0.182907462, -0.014721673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D141.Part0 = nil
- Motor6D141.Part1 = nil
- ParticleEmitter142.Parent = mas
- ParticleEmitter142.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter142.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter142.Texture = "rbxassetid://501546182"
- ParticleEmitter142.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter142.Rate = 250
- ParticleEmitter142.Speed = NumberRange.new(2.5, 2.5)
- Script143.Name = "TeslaScript"
- Script143.Parent = mas
- table.insert(cors,sandbox(Script143,function()
- -- Made by Stickmasterluke
- -- Modified by ScripterTutorials
- wait(100)
- sp=script.Parent
- segmentlength = 5
- segmentwidth = 0.35
- varience = 1.5
- timetofade=sp.Configuration.FadeTime.Value
- function raycast(spos,vec,currentdist)
- local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*currentdist),sp)
- if hit2~=nil and pos2 then
- if hit2.Transparency>=.5 or hit2.Name=="Handle" then
- local currentdist=currentdist-(pos2-spos).magnitude
- return raycast(pos2,vec,currentdist)
- end
- end
- return hit2,pos2
- end
- function zap(targetpos)
- if targetpos then
- local m=Instance.new("Model")
- m.Name="Lightning"
- local lastpos=sp.Position
- local totalsegments=math.ceil(sp.Configuration.Range.Value/segmentlength)
- local direction=(targetpos-sp.Position).unit
- local struck = false
- for i=1,totalsegments do
- if not struck then
- local entropy=Vector3.new(varience*((math.random()*2)-1),varience*((math.random()*2)-1),varience*((math.random()*2)-1))
- local newpos=sp.Position+(direction*(sp.Configuration.Range.Value*(i/totalsegments)))+entropy
- local hit,endpos=raycast(lastpos,(newpos-lastpos).unit,(lastpos-newpos).magnitude)
- local l=Instance.new("Part")
- l.Material = sp.Configuration.Material.Value
- l.CanCollide=false
- l.Anchored=true
- l.BrickColor=sp.Configuration.Color.Value
- l.formFactor="Custom"
- l.Size=Vector3.new(2,2,2)
- l.CFrame=CFrame.new(lastpos,endpos)*CFrame.Angles(math.pi/2,0,0)*CFrame.new(0,-(lastpos-endpos).magnitude/2,0)
- local mesh=Instance.new("CylinderMesh")
- mesh.Scale=Vector3.new(segmentwidth,(lastpos-endpos).magnitude,segmentwidth)*5
- mesh.Parent=l
- delay(0,function()
- for i=1,timetofade/(.1) do
- wait(.1)
- l.Transparency=i/(timetofade/(.1))
- end
- end)
- if hit and hit.Parent~=nil then
- struck=true
- local h=hit.Parent:FindFirstChild("Humanoid")
- if h then
- script.Parent.ElectricAmmo.Value = script.Parent.ElectricAmmo.Value - 1
- h:TakeDamage(sp.Configuration.Damage.Value)
- end
- end
- l.Parent=m
- lastpos=endpos
- end
- end
- m.Parent=game.Workspace
- game:GetService("Debris"):AddItem(m,1.5)
- end
- end
- local humanoids
- function populatehumanoids(mdl)
- for _, v in pairs(mdl:GetChildren()) do
- if v:FindFirstChild("Humanoid") then
- if not sp.Configuration.DamagePlayers.Value then
- if not game.Players:GetPlayerFromCharacter(v) then
- table.insert(humanoids, v.Humanoid)
- end
- else
- table.insert(humanoids, v.Humanoid)
- end
- end
- end
- end
- wait(3)
- while script.Parent.Parent do
- for i = 1, sp.Configuration.BurstAmount.Value do
- oldclosedist = {}
- closedist = {}
- oldclosepos = {}
- closepos = {}
- humanoids = {}
- populatehumanoids(workspace)
- for _, v in pairs(humanoids) do
- if v and v.Parent:FindFirstChild("Head") and v.Health > 0 then
- local t = v.Parent.Head
- local dist=(t.Position-sp.Position).magnitude
- if dist<=sp.Configuration.Range.Value then
- table.insert(oldclosedist, dist)
- table.insert(closedist, dist)
- table.insert(oldclosepos, t.Position)
- end
- end
- end
- table.sort(closedist)
- for _, v in pairs(oldclosedist) do
- for i = 1, #closedist do
- if closedist[i] == v then
- table.insert(closepos, oldclosepos[i])
- end
- end
- end
- if #closepos > 0 then
- local max = math.min(#closepos, sp.Configuration.MaxTargets.Value)
- for i = 1, max do
- spawn(function()
- zap(closepos[i])
- end)
- end
- end
- wait(sp.Configuration.BurstWait.Value)
- end
- wait(sp.Configuration.Frequency.Value)
- end
- end))
- Configuration144.Parent = mas
- IntValue145.Name = "Damage"
- IntValue145.Parent = Configuration144
- IntValue145.Value = 20
- IntValue146.Name = "Range"
- IntValue146.Parent = Configuration144
- IntValue146.Value = 100
- NumberValue147.Name = "Frequency"
- NumberValue147.Parent = Configuration144
- NumberValue147.Value = 1
- BrickColorValue148.Name = "Color"
- BrickColorValue148.Parent = Configuration144
- BrickColorValue148.Value = BrickColor.new("Toothpaste")
- IntValue149.Name = "MaxTargets"
- IntValue149.Parent = Configuration144
- IntValue149.Value = 1
- IntValue150.Name = "BurstAmount"
- IntValue150.Parent = Configuration144
- IntValue150.Value = 23
- NumberValue151.Name = "BurstWait"
- NumberValue151.Parent = Configuration144
- NumberValue151.Value = 2
- BoolValue152.Name = "DamagePlayers"
- BoolValue152.Parent = Configuration144
- BoolValue152.Value = true
- NumberValue153.Name = "FadeTime"
- NumberValue153.Parent = Configuration144
- NumberValue153.Value = 0.5
- StringValue154.Name = "Material"
- StringValue154.Parent = Configuration144
- StringValue154.Value = "Neon"
- NumberValue155.Name = "ElectricAmmo"
- NumberValue155.Parent = mas
- NumberValue155.Value = 10
- Script156.Name = "Respawn"
- Script156.Parent = mas
- table.insert(cors,sandbox(Script156,function()
- while true do
- wait(1)
- if script.Parent.ElectricAmmo.Value<1 then
- wait(2)
- script.Parent.TeslaScript:Destroy()
- script.Parent:remove()
- end
- end
- end))
- Attachment157.Name = "LeftWristRigAttachment"
- Attachment157.Parent = mas
- Attachment157.CFrame = CFrame.new(-0.000574587379, 0.0861361995, -0.0229678899, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment157.Position = Vector3.new(-0.000574587379, 0.0861361995, -0.0229678899)
- Attachment158.Name = "LeftGripAttachment"
- Attachment158.Parent = mas
- Attachment158.Rotation = Vector3.new(-90, -0, -0)
- Attachment158.CFrame = CFrame.new(-0.0160747897, -0.25091368, -0.0229677539, 1, 0, -0, 0, 6.12323426e-17, 1, 0, -1, 6.12323426e-17)
- Attachment158.Position = Vector3.new(-0.0160747897, -0.25091368, -0.0229677539)
- Attachment158.Orientation = Vector3.new(-90, -0, 0)
- Vector3Value159.Name = "OriginalSize"
- Vector3Value159.Parent = mas
- Vector3Value159.Value = Vector3.new(0.999299049, 0.335255831, 1.00029743)
- Motor6D160.Name = "LeftWrist"
- Motor6D160.Parent = mas
- Motor6D160.C0 = CFrame.new(-0.00247799652, -1.01495802, -0.014721673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D160.C1 = CFrame.new(-0.000574587379, 0.086136207, -0.022967888, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D160.Part0 = nil
- Motor6D160.Part1 = nil
- ParticleEmitter161.Parent = mas
- ParticleEmitter161.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter161.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter161.Texture = "rbxassetid://501546182"
- ParticleEmitter161.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter161.Rate = 250
- ParticleEmitter161.Speed = NumberRange.new(2.5, 2.5)
- Script162.Name = "Respawn"
- Script162.Parent = mas
- table.insert(cors,sandbox(Script162,function()
- while true do
- wait(1)
- if script.Parent.ElectricAmmo.Value<1 then
- wait(2)
- script.Parent.TeslaScript:Destroy()
- script.Parent:remove()
- end
- end
- end))
- Script163.Name = "TeslaScript"
- Script163.Parent = mas
- table.insert(cors,sandbox(Script163,function()
- -- Made by Stickmasterluke
- -- Modified by ScripterTutorials
- wait(100)
- sp=script.Parent
- segmentlength = 5
- segmentwidth = 0.35
- varience = 1.5
- timetofade=sp.Configuration.FadeTime.Value
- function raycast(spos,vec,currentdist)
- local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*currentdist),sp)
- if hit2~=nil and pos2 then
- if hit2.Transparency>=.5 or hit2.Name=="Handle" then
- local currentdist=currentdist-(pos2-spos).magnitude
- return raycast(pos2,vec,currentdist)
- end
- end
- return hit2,pos2
- end
- function zap(targetpos)
- if targetpos then
- local m=Instance.new("Model")
- m.Name="Lightning"
- local lastpos=sp.Position
- local totalsegments=math.ceil(sp.Configuration.Range.Value/segmentlength)
- local direction=(targetpos-sp.Position).unit
- local struck = false
- for i=1,totalsegments do
- if not struck then
- local entropy=Vector3.new(varience*((math.random()*2)-1),varience*((math.random()*2)-1),varience*((math.random()*2)-1))
- local newpos=sp.Position+(direction*(sp.Configuration.Range.Value*(i/totalsegments)))+entropy
- local hit,endpos=raycast(lastpos,(newpos-lastpos).unit,(lastpos-newpos).magnitude)
- local l=Instance.new("Part")
- l.Material = sp.Configuration.Material.Value
- l.CanCollide=false
- l.Anchored=true
- l.BrickColor=sp.Configuration.Color.Value
- l.formFactor="Custom"
- l.Size=Vector3.new(2,2,2)
- l.CFrame=CFrame.new(lastpos,endpos)*CFrame.Angles(math.pi/2,0,0)*CFrame.new(0,-(lastpos-endpos).magnitude/2,0)
- local mesh=Instance.new("CylinderMesh")
- mesh.Scale=Vector3.new(segmentwidth,(lastpos-endpos).magnitude,segmentwidth)*5
- mesh.Parent=l
- delay(0,function()
- for i=1,timetofade/(.1) do
- wait(.1)
- l.Transparency=i/(timetofade/(.1))
- end
- end)
- if hit and hit.Parent~=nil then
- struck=true
- local h=hit.Parent:FindFirstChild("Humanoid")
- if h then
- script.Parent.ElectricAmmo.Value = script.Parent.ElectricAmmo.Value - 1
- h:TakeDamage(sp.Configuration.Damage.Value)
- end
- end
- l.Parent=m
- lastpos=endpos
- end
- end
- m.Parent=game.Workspace
- game:GetService("Debris"):AddItem(m,1.5)
- end
- end
- local humanoids
- function populatehumanoids(mdl)
- for _, v in pairs(mdl:GetChildren()) do
- if v:FindFirstChild("Humanoid") then
- if not sp.Configuration.DamagePlayers.Value then
- if not game.Players:GetPlayerFromCharacter(v) then
- table.insert(humanoids, v.Humanoid)
- end
- else
- table.insert(humanoids, v.Humanoid)
- end
- end
- end
- end
- wait(3)
- while script.Parent.Parent do
- for i = 1, sp.Configuration.BurstAmount.Value do
- oldclosedist = {}
- closedist = {}
- oldclosepos = {}
- closepos = {}
- humanoids = {}
- populatehumanoids(workspace)
- for _, v in pairs(humanoids) do
- if v and v.Parent:FindFirstChild("Head") and v.Health > 0 then
- local t = v.Parent.Head
- local dist=(t.Position-sp.Position).magnitude
- if dist<=sp.Configuration.Range.Value then
- table.insert(oldclosedist, dist)
- table.insert(closedist, dist)
- table.insert(oldclosepos, t.Position)
- end
- end
- end
- table.sort(closedist)
- for _, v in pairs(oldclosedist) do
- for i = 1, #closedist do
- if closedist[i] == v then
- table.insert(closepos, oldclosepos[i])
- end
- end
- end
- if #closepos > 0 then
- local max = math.min(#closepos, sp.Configuration.MaxTargets.Value)
- for i = 1, max do
- spawn(function()
- zap(closepos[i])
- end)
- end
- end
- wait(sp.Configuration.BurstWait.Value)
- end
- wait(sp.Configuration.Frequency.Value)
- end
- end))
- NumberValue164.Name = "ElectricAmmo"
- NumberValue164.Parent = mas
- NumberValue164.Value = 10
- Configuration165.Parent = mas
- IntValue166.Name = "Damage"
- IntValue166.Parent = Configuration165
- IntValue166.Value = 20
- IntValue167.Name = "Range"
- IntValue167.Parent = Configuration165
- IntValue167.Value = 100
- NumberValue168.Name = "Frequency"
- NumberValue168.Parent = Configuration165
- NumberValue168.Value = 1
- BrickColorValue169.Name = "Color"
- BrickColorValue169.Parent = Configuration165
- BrickColorValue169.Value = BrickColor.new("Toothpaste")
- IntValue170.Name = "MaxTargets"
- IntValue170.Parent = Configuration165
- IntValue170.Value = 1
- IntValue171.Name = "BurstAmount"
- IntValue171.Parent = Configuration165
- IntValue171.Value = 23
- NumberValue172.Name = "BurstWait"
- NumberValue172.Parent = Configuration165
- NumberValue172.Value = 2
- BoolValue173.Name = "DamagePlayers"
- BoolValue173.Parent = Configuration165
- BoolValue173.Value = true
- NumberValue174.Name = "FadeTime"
- NumberValue174.Parent = Configuration165
- NumberValue174.Value = 0.5
- StringValue175.Name = "Material"
- StringValue175.Parent = Configuration165
- StringValue175.Value = "Neon"
- Script176.Name = "Animate"
- Script176.Parent = Model6
- table.insert(cors,sandbox(Script176,function()
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- local Figure = script.Parent
- local Humanoid = waitForChild(Figure, "Zombie")
- local pose = "Standing"
- local currentAnim = ""
- local currentAnimInstance = nil
- local currentAnimTrack = nil
- local currentAnimKeyframeHandler = nil
- local currentAnimSpeed = 1.0
- local animTable = {}
- local animNames = {
- idle = {
- { id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
- { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
- { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
- },
- run = {
- { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
- },
- swim = {
- { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
- },
- swimidle = {
- { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
- },
- jump = {
- { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
- },
- fall = {
- { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=507765644", weight = 10 }
- },
- sit = {
- { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
- },
- toolslash = {
- { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
- -- { id = "slash.xml", weight = 10 }
- },
- toollunge = {
- { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
- },
- wave = {
- { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
- },
- point = {
- { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
- },
- dance = {
- { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
- },
- dance2 = {
- { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
- },
- dance3 = {
- { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
- },
- }
- -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
- local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
- math.randomseed(tick())
- function configureAnimationSet(name, fileList)
- if (animTable[name] ~= nil) then
- for _, connection in pairs(animTable[name].connections) do
- connection:disconnect()
- end
- end
- animTable[name] = {}
- animTable[name].count = 0
- animTable[name].totalWeight = 0
- animTable[name].connections = {}
- -- check for config values
- local config = script:FindFirstChild(name)
- if (config ~= nil) then
- -- print("Loading anims " .. name)
- table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
- table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
- local idx = 1
- for _, childPart in pairs(config:GetChildren()) do
- if (childPart:IsA("Animation")) then
- table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
- animTable[name][idx] = {}
- animTable[name][idx].anim = childPart
- local weightObject = childPart:FindFirstChild("Weight")
- if (weightObject == nil) then
- animTable[name][idx].weight = 1
- else
- animTable[name][idx].weight = weightObject.Value
- end
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
- -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
- idx = idx + 1
- end
- end
- end
- -- fallback to defaults
- if (animTable[name].count <= 0) then
- for idx, anim in pairs(fileList) do
- animTable[name][idx] = {}
- animTable[name][idx].anim = Instance.new("Animation")
- animTable[name][idx].anim.Name = name
- animTable[name][idx].anim.AnimationId = anim.id
- animTable[name][idx].weight = anim.weight
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
- -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
- end
- end
- end
- -- Setup animation objects
- function scriptChildModified(child)
- local fileList = animNames[child.Name]
- if (fileList ~= nil) then
- configureAnimationSet(child.Name, fileList)
- end
- end
- script.ChildAdded:connect(scriptChildModified)
- script.ChildRemoved:connect(scriptChildModified)
- for name, fileList in pairs(animNames) do
- configureAnimationSet(name, fileList)
- end
- -- ANIMATION
- -- declarations
- local toolAnim = "None"
- local toolAnimTime = 0
- local jumpAnimTime = 0
- local jumpAnimDuration = 0.31
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.2
- -- functions
- function stopAllAnimations()
- local oldAnim = currentAnim
- -- return to idle if finishing an emote
- if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
- oldAnim = "idle"
- end
- currentAnim = ""
- currentAnimInstance = nil
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop()
- currentAnimTrack:Destroy()
- currentAnimTrack = nil
- end
- return oldAnim
- end
- function setAnimationSpeed(speed)
- if speed ~= currentAnimSpeed then
- currentAnimSpeed = speed
- currentAnimTrack:AdjustSpeed(currentAnimSpeed)
- end
- end
- function keyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- local repeatAnim = currentAnim
- -- return to idle if finishing an emote
- if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
- repeatAnim = "idle"
- end
- local animSpeed = currentAnimSpeed
- playAnimation(repeatAnim, 0.15, Humanoid)
- setAnimationSpeed(animSpeed)
- end
- end
- -- Preload animations
- function playAnimation(animName, transitionTime, humanoid)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- -- switch animation
- if (anim ~= currentAnimInstance) then
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop(transitionTime)
- currentAnimTrack:Destroy()
- end
- currentAnimSpeed = 1.0
- -- load it to the humanoid; get AnimationTrack
- currentAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- currentAnimTrack:Play(transitionTime)
- currentAnim = animName
- currentAnimInstance = anim
- -- set up keyframe name triggers
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
- end
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- local toolAnimName = ""
- local toolAnimTrack = nil
- local toolAnimInstance = nil
- local currentToolAnimKeyframeHandler = nil
- function toolKeyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- playToolAnimation(toolAnimName, 0.0, Humanoid)
- end
- end
- function playToolAnimation(animName, transitionTime, humanoid)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- if (toolAnimInstance ~= anim) then
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- transitionTime = 0
- end
- -- load it to the humanoid; get AnimationTrack
- toolAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- toolAnimTrack:Play(transitionTime)
- toolAnimName = animName
- toolAnimInstance = anim
- currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
- end
- end
- function stopToolAnimations()
- local oldAnim = toolAnimName
- if (currentToolAnimKeyframeHandler ~= nil) then
- currentToolAnimKeyframeHandler:disconnect()
- end
- toolAnimName = ""
- toolAnimInstance = nil
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- toolAnimTrack = nil
- end
- return oldAnim
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- function onRunning(speed)
- if speed > 0.01 then
- local scale = 15.0
- playAnimation("walk", 0.1, Humanoid)
- setAnimationSpeed(speed / scale)
- pose = "Running"
- else
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- playAnimation("jump", 0.1, Humanoid)
- jumpAnimTime = jumpAnimDuration
- pose = "Jumping"
- end
- function onClimbing(speed)
- local scale = 5.0
- playAnimation("climb", 0.1, Humanoid)
- setAnimationSpeed(speed / scale)
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- if (jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- end
- pose = "FreeFall"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- pose = "Seated"
- end
- function onPlatformStanding()
- pose = "PlatformStanding"
- end
- function onSwimming(speed)
- if speed > 1.00 then
- local scale = 10.0
- playAnimation("swim", 0.4, Humanoid)
- setAnimationSpeed(speed / scale)
- pose = "Swimming"
- else
- playAnimation("swimidle", 0.4, Humanoid)
- pose = "Standing"
- end
- end
- function getTool()
- for _, kid in ipairs(Figure:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- function getToolAnim(tool)
- for _, c in ipairs(tool:GetChildren()) do
- if c.Name == "toolanim" and c.className == "StringValue" then
- return c
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- playToolAnimation("toolnone", toolTransitionTime, Humanoid)
- return
- end
- if (toolAnim == "Slash") then
- playToolAnimation("toolslash", 0, Humanoid)
- return
- end
- if (toolAnim == "Lunge") then
- playToolAnimation("toollunge", 0, Humanoid)
- return
- end
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder:SetDesiredAngle(3.14 /2)
- LeftShoulder:SetDesiredAngle(-3.14 /2)
- RightHip:SetDesiredAngle(3.14 /2)
- LeftHip:SetDesiredAngle(-3.14 /2)
- end
- local lastTick = 0
- function move(time)
- local amplitude = 1
- local frequency = 1
- local deltaTime = time - lastTick
- lastTick = time
- local climbFudge = 0
- local setAngles = false
- if (jumpAnimTime > 0) then
- jumpAnimTime = jumpAnimTime - deltaTime
- end
- if (pose == "FreeFall" and jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- elseif (pose == "Seated") then
- playAnimation("sit", 0.5, Humanoid)
- return
- elseif (pose == "Running") then
- playAnimation("walk", 0.1, Humanoid)
- elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
- stopAllAnimations()
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- -- Tool Animation handling
- local tool = getTool()
- if tool then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject 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
- stopToolAnimations()
- toolAnim = "None"
- toolAnimInstance = nil
- toolAnimTime = 0
- end
- end
- -- connect events
- 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)
- Humanoid.PlatformStanding:connect(onPlatformStanding)
- Humanoid.Swimming:connect(onSwimming)
- -- setup emote chat hook
- script.msg.Changed:connect(function(msg)
- script.msg.Value = ""
- local emote = ""
- if (string.sub(msg, 1, 3) == "/e ") then
- emote = string.sub(msg, 4)
- elseif (string.sub(msg, 1, 7) == "/emote ") then
- emote = string.sub(msg, 8)
- end
- if (pose == "Standing" and emoteNames[emote] ~= nil) then
- playAnimation(emote, 0.1, Humanoid)
- end
- -- print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
- end)
- -- main program
- local runService = game:service("RunService");
- -- print("bottom")
- -- initialize to idle
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue177.Name = "msg"
- StringValue177.Parent = Script176
- StringValue178.Name = "climb"
- StringValue178.Parent = Script176
- Animation179.Name = "ClimbAnim"
- Animation179.Parent = StringValue178
- Animation179.AnimationId = "http://www.roblox.com/asset/?id=507765644"
- StringValue180.Name = "fall"
- StringValue180.Parent = Script176
- Animation181.Name = "FallAnim"
- Animation181.Parent = StringValue180
- Animation181.AnimationId = "http://www.roblox.com/asset/?id=507767968"
- StringValue182.Name = "idle"
- StringValue182.Parent = Script176
- Animation183.Name = "Animation1"
- Animation183.Parent = StringValue182
- Animation183.AnimationId = "http://www.roblox.com/asset/?id=507766388"
- NumberValue184.Name = "Weight"
- NumberValue184.Parent = Animation183
- NumberValue184.Value = 9
- Animation185.Name = "Animation2"
- Animation185.Parent = StringValue182
- Animation185.AnimationId = "http://www.roblox.com/asset/?id=507766666"
- NumberValue186.Name = "Weight"
- NumberValue186.Parent = Animation185
- NumberValue186.Value = 1
- StringValue187.Name = "jump"
- StringValue187.Parent = Script176
- Animation188.Name = "JumpAnim"
- Animation188.Parent = StringValue187
- Animation188.AnimationId = "http://www.roblox.com/asset/?id=507765000"
- StringValue189.Name = "run"
- StringValue189.Parent = Script176
- Animation190.Name = "RunAnim"
- Animation190.Parent = StringValue189
- Animation190.AnimationId = "http://www.roblox.com/asset/?id=5077677142"
- StringValue191.Name = "sit"
- StringValue191.Parent = Script176
- Animation192.Name = "SitAnim"
- Animation192.Parent = StringValue191
- Animation192.AnimationId = "http://www.roblox.com/asset/?id=507768133"
- StringValue193.Name = "swim"
- StringValue193.Parent = Script176
- Animation194.Name = "Swim"
- Animation194.Parent = StringValue193
- Animation194.AnimationId = "http://www.roblox.com/asset/?id=507784897"
- StringValue195.Name = "swimidle"
- StringValue195.Parent = Script176
- Animation196.Name = "SwimIdle"
- Animation196.Parent = StringValue195
- Animation196.AnimationId = "http://www.roblox.com/asset/?id=481825862"
- StringValue197.Name = "toolnone"
- StringValue197.Parent = Script176
- Animation198.Name = "ToolNoneAnim"
- Animation198.Parent = StringValue197
- Animation198.AnimationId = "http://www.roblox.com/asset/?id=507768375"
- StringValue199.Name = "walk"
- StringValue199.Parent = Script176
- Animation200.Name = "RunAnim"
- Animation200.Parent = StringValue199
- Animation200.AnimationId = "http://www.roblox.com/asset/?id=507777826"
- ParticleEmitter201.Parent = mas
- ParticleEmitter201.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter201.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter201.Texture = "rbxassetid://501546182"
- ParticleEmitter201.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter201.Rate = 250
- ParticleEmitter201.Speed = NumberRange.new(2.5, 2.5)
- Script202.Name = "Respawn"
- Script202.Parent = mas
- table.insert(cors,sandbox(Script202,function()
- while true do
- wait(1)
- if script.Parent.ElectricAmmo.Value<1 then
- wait(2)
- script.Parent.TeslaScript:Destroy()
- script.Parent:remove()
- end
- end
- end))
- Script203.Name = "TeslaScript"
- Script203.Parent = mas
- table.insert(cors,sandbox(Script203,function()
- -- Made by Stickmasterluke
- -- Modified by ScripterTutorials
- wait(100)
- sp=script.Parent
- segmentlength = 5
- segmentwidth = 0.35
- varience = 1.5
- timetofade=sp.Configuration.FadeTime.Value
- function raycast(spos,vec,currentdist)
- local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*currentdist),sp)
- if hit2~=nil and pos2 then
- if hit2.Transparency>=.5 or hit2.Name=="Handle" then
- local currentdist=currentdist-(pos2-spos).magnitude
- return raycast(pos2,vec,currentdist)
- end
- end
- return hit2,pos2
- end
- function zap(targetpos)
- if targetpos then
- local m=Instance.new("Model")
- m.Name="Lightning"
- local lastpos=sp.Position
- local totalsegments=math.ceil(sp.Configuration.Range.Value/segmentlength)
- local direction=(targetpos-sp.Position).unit
- local struck = false
- for i=1,totalsegments do
- if not struck then
- local entropy=Vector3.new(varience*((math.random()*2)-1),varience*((math.random()*2)-1),varience*((math.random()*2)-1))
- local newpos=sp.Position+(direction*(sp.Configuration.Range.Value*(i/totalsegments)))+entropy
- local hit,endpos=raycast(lastpos,(newpos-lastpos).unit,(lastpos-newpos).magnitude)
- local l=Instance.new("Part")
- l.Material = sp.Configuration.Material.Value
- l.CanCollide=false
- l.Anchored=true
- l.BrickColor=sp.Configuration.Color.Value
- l.formFactor="Custom"
- l.Size=Vector3.new(2,2,2)
- l.CFrame=CFrame.new(lastpos,endpos)*CFrame.Angles(math.pi/2,0,0)*CFrame.new(0,-(lastpos-endpos).magnitude/2,0)
- local mesh=Instance.new("CylinderMesh")
- mesh.Scale=Vector3.new(segmentwidth,(lastpos-endpos).magnitude,segmentwidth)*5
- mesh.Parent=l
- delay(0,function()
- for i=1,timetofade/(.1) do
- wait(.1)
- l.Transparency=i/(timetofade/(.1))
- end
- end)
- if hit and hit.Parent~=nil then
- struck=true
- local h=hit.Parent:FindFirstChild("Humanoid")
- if h then
- script.Parent.ElectricAmmo.Value = script.Parent.ElectricAmmo.Value - 1
- h:TakeDamage(sp.Configuration.Damage.Value)
- end
- end
- l.Parent=m
- lastpos=endpos
- end
- end
- m.Parent=game.Workspace
- game:GetService("Debris"):AddItem(m,1.5)
- end
- end
- local humanoids
- function populatehumanoids(mdl)
- for _, v in pairs(mdl:GetChildren()) do
- if v:FindFirstChild("Humanoid") then
- if not sp.Configuration.DamagePlayers.Value then
- if not game.Players:GetPlayerFromCharacter(v) then
- table.insert(humanoids, v.Humanoid)
- end
- else
- table.insert(humanoids, v.Humanoid)
- end
- end
- end
- end
- wait(3)
- while script.Parent.Parent do
- for i = 1, sp.Configuration.BurstAmount.Value do
- oldclosedist = {}
- closedist = {}
- oldclosepos = {}
- closepos = {}
- humanoids = {}
- populatehumanoids(workspace)
- for _, v in pairs(humanoids) do
- if v and v.Parent:FindFirstChild("Head") and v.Health > 0 then
- local t = v.Parent.Head
- local dist=(t.Position-sp.Position).magnitude
- if dist<=sp.Configuration.Range.Value then
- table.insert(oldclosedist, dist)
- table.insert(closedist, dist)
- table.insert(oldclosepos, t.Position)
- end
- end
- end
- table.sort(closedist)
- for _, v in pairs(oldclosedist) do
- for i = 1, #closedist do
- if closedist[i] == v then
- table.insert(closepos, oldclosepos[i])
- end
- end
- end
- if #closepos > 0 then
- local max = math.min(#closepos, sp.Configuration.MaxTargets.Value)
- for i = 1, max do
- spawn(function()
- zap(closepos[i])
- end)
- end
- end
- wait(sp.Configuration.BurstWait.Value)
- end
- wait(sp.Configuration.Frequency.Value)
- end
- end))
- NumberValue204.Name = "ElectricAmmo"
- NumberValue204.Parent = mas
- NumberValue204.Value = 10
- Configuration205.Parent = mas
- IntValue206.Name = "Damage"
- IntValue206.Parent = Configuration205
- IntValue206.Value = 20
- IntValue207.Name = "Range"
- IntValue207.Parent = Configuration205
- IntValue207.Value = 100
- NumberValue208.Name = "Frequency"
- NumberValue208.Parent = Configuration205
- NumberValue208.Value = 1
- BrickColorValue209.Name = "Color"
- BrickColorValue209.Parent = Configuration205
- BrickColorValue209.Value = BrickColor.new("Toothpaste")
- IntValue210.Name = "MaxTargets"
- IntValue210.Parent = Configuration205
- IntValue210.Value = 1
- IntValue211.Name = "BurstAmount"
- IntValue211.Parent = Configuration205
- IntValue211.Value = 23
- NumberValue212.Name = "BurstWait"
- NumberValue212.Parent = Configuration205
- NumberValue212.Value = 2
- BoolValue213.Name = "DamagePlayers"
- BoolValue213.Parent = Configuration205
- BoolValue213.Value = true
- NumberValue214.Name = "FadeTime"
- NumberValue214.Parent = Configuration205
- NumberValue214.Value = 0.5
- StringValue215.Name = "Material"
- StringValue215.Parent = Configuration205
- StringValue215.Value = "Neon"
- ParticleEmitter216.Parent = mas
- ParticleEmitter216.Transparency = NumberSequence.new(0.5,0.5)
- ParticleEmitter216.Size = NumberSequence.new(0.25,0.25)
- ParticleEmitter216.Texture = "rbxassetid://501546182"
- ParticleEmitter216.Lifetime = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter216.Rate = 250
- ParticleEmitter216.Speed = NumberRange.new(2.5, 2.5)
- Humanoid217.Name = "Zombie"
- Humanoid217.Parent = Model6
- Humanoid217.Torso = Part35
- Humanoid217.Health = 75
- Humanoid217.MaxHealth = 75
- BoolValue218.Name = "Attack"
- BoolValue218.Parent = Model6
- ObjectValue219.Name = "Target"
- ObjectValue219.Parent = Model6
- Script220.Name = "ChaseScript"
- Script220.Parent = Model6
- table.insert(cors,sandbox(Script220,function()
- wait(1)
- zombieParent = false
- while zombieParent == false do
- wait()
- if script.Parent.Name == "Water" then
- zombieParent = true
- end
- end
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- local waitTimer = 0
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 110
- 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("HumanoidRootPart")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- script.Parent.Target.Value = temp
- dist = (temp.Position - pos).magnitude
- if human.Health >= 1 then
- script.Parent.Range.Value = true
- else
- script.Parent.Range.Value = false
- end
- end
- end
- if dist < 75 then
- script.Parent.Attack.Value = true
- script.Parent.Zombie.WalkSpeed = 0.05
- else
- script.Parent.Attack.Value = false
- script.Parent.Zombie.WalkSpeed = 16
- end
- end
- end
- return torso
- end
- function Sit()
- if script.Parent.Zombie.Sit == false then
- script.Parent.Zombie.Jump = false
- print("Anti Seat Putter!!!")
- end
- end
- script.Parent.Zombie.Changed:connect(Sit)
- while true do
- wait()
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- rx = 0
- ry = 0
- rz = 0
- script.Parent.Zombie:MoveTo(target.Position+Vector3.new(rx,ry,rz), target)
- else
- script.Parent.Range.Value = false
- script.Parent.Attack.Value = false
- end
- end
- end))
- Script221.Name = "Die"
- Script221.Parent = Model6
- table.insert(cors,sandbox(Script221,function()
- human = script.Parent.Zombie
- tool = script.Parent.Blunderbuss
- function Die()
- if tool ~= nil then tool:remove() end
- wait(4.5)
- parts = script.Parent:children()
- for i = 1,5 do
- for i = 1,#parts do
- if parts[i].className == "Part" and parts[i].Name ~= "Part" then
- parts[i].Transparency = 1
- end
- end
- wait(0.05)
- for i = 1,#parts do
- if parts[i].className == "Part" and parts[i].Name ~= "Part" then
- parts[i].Transparency = 0
- end
- end
- wait(0.05)
- warn("Water Had Been Defeated")
- end
- script.Parent:remove()
- end
- human.Died:connect(Die)
- end))
- ForceField222.Parent = Model6
- ForceField222.Visible = false
- Script223.Name = "Ragdoll"
- Script223.Parent = Model6
- table.insert(cors,sandbox(Script223,function()
- print("Hello world!")
- Character = script.Parent
- Humanoid = Character.Zombie
- 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))
- BoolValue224.Name = "Range"
- BoolValue224.Parent = Model6
- Script225.Name = "Sound"
- Script225.Parent = Model6
- table.insert(cors,sandbox(Script225,function()
- -- util
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.archivable = false
- sound.Parent = script.Parent.Head
- return sound
- end
- -- declarations
- local sDied = newSound("rbxasset://sounds/uuhhh.wav")
- sDied.Pitch = 0.75
- 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, "Zombie")
- -- functions
- 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
- -- connect up
- 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)
- end))
- Tool226.Name = "Blunderbuss"
- Tool226.Parent = Model6
- Tool226.TextureId = "http://www.roblox.com/asset/?id=29328651"
- Tool226.GripForward = Vector3.new(-0, 1, -0)
- Tool226.GripPos = Vector3.new(-0.00999999978, -0.5, -0.5)
- Tool226.GripUp = Vector3.new(0, 0, 1)
- Part227.Name = "Handle"
- Part227.Parent = Tool226
- Part227.Transparency = 0.80000001192093
- Part227.Rotation = Vector3.new(0, 0, -180)
- Part227.FormFactor = Enum.FormFactor.Plate
- Part227.Size = Vector3.new(1.48765063, 1.48765063, 1.48765063)
- Part227.CFrame = CFrame.new(3.28380466, 2.23160315, -30.1726036, -1, 0, 1.76275789e-05, 1.77635684e-15, -1, 0, 1.76275789e-05, 0, 1)
- Part227.BottomSurface = Enum.SurfaceType.Weld
- Part227.TopSurface = Enum.SurfaceType.Smooth
- Part227.Position = Vector3.new(3.28380466, 2.23160315, -30.1726036)
- Part227.Orientation = Vector3.new(0, 0, 180)
- Sound228.Name = "SlingshotSound"
- Sound228.Parent = Part227
- Sound228.SoundId = "rbxassetid://135249156"
- Sound228.Volume = 2
- Script229.Name = "PelletScript"
- Script229.Parent = Part227
- Script229.Disabled = true
- table.insert(cors,sandbox(Script229,function()
- local debris = game:service("Debris")
- pellet = script.Parent
- damage = 10
- function onTouched(hit)
- humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- tagHumanoid(humanoid)
- humanoid:TakeDamage(damage)
- else
- damage = damage / 10
- if damage < 1 then
- connection:disconnect()
- pellet.Parent = nil
- end
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = pellet:findFirstChild("creator")
- if tag ~= nil then
- -- kill all other tags
- while(humanoid:findFirstChild("creator") ~= nil) do
- humanoid:findFirstChild("creator").Parent = nil
- end
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- debris:AddItem(new_tag, 1)
- end
- end
- connection = pellet.Touched:connect(onTouched)
- r = game:service("RunService")
- t, s = r.Stepped:wait()
- d = t + 2.0 - s
- while t < d do
- t = r.Stepped:wait()
- end
- pellet.Parent = nil
- end))
- Script230.Name = "Slingshot"
- Script230.Parent = Part227
- table.insert(cors,sandbox(Script230,function()
- VELOCITY = 200 -- constant
- function findTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 2000
- 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
- local Pellet = Instance.new("Part")
- Pellet.Locked = true
- Pellet.BackSurface = 0
- Pellet.BottomSurface = 0
- Pellet.FrontSurface = 0
- Pellet.LeftSurface = 0
- Pellet.RightSurface = 0
- Pellet.TopSurface = 0
- Pellet.Shape = 0
- Pellet.CanCollide = false
- Pellet.Size = Vector3.new(2,2,2)
- Pellet.BrickColor = BrickColor.new(9,137,207)
- Pellet.Material = ("Neon")
- script.Parent.PelletScript:clone().Parent = Pellet
- function fire(target)
- script.Parent.SlingshotSound:play()
- local dir = target.Position - script.Parent.Position
- dir = computeDirection(dir)
- local launch = script.Parent.Position + 5 * dir
- local delta = target.Position - launch
- local dy = delta.y
- local new_delta = Vector3.new(delta.x, 0, delta.z)
- delta = new_delta
- local dx = delta.magnitude
- local unit_delta = delta.unit
- -- acceleration due to gravity in RBX units
- local g = (-9.81 * 20)
- local theta = computeLaunchAngle( dx, dy, g)
- local vy = math.sin(theta)
- local xz = math.cos(theta)
- local vx = unit_delta.x * xz
- local vz = unit_delta.z * xz
- local missile = Pellet:clone()
- missile.Position = launch
- missile.Velocity = Vector3.new(vx,vy,vz) * VELOCITY
- missile.PelletScript.Disabled = false
- missile.Parent = game.Workspace
- end
- function computeLaunchAngle(dx,dy,grav)
- -- arcane
- -- http://en.wikipedia.org/wiki/Trajectory_of_a_projectile
- local g = math.abs(grav)
- local inRoot = (VELOCITY*VELOCITY*VELOCITY*VELOCITY) - (g * ((g*dx*dx) + (2*dy*VELOCITY*VELOCITY)))
- if inRoot <= 0 then
- return .25 * math.pi
- end
- local root = math.sqrt(inRoot)
- local inATan1 = ((VELOCITY*VELOCITY) + root) / (g*dx)
- local inATan2 = ((VELOCITY*VELOCITY) - root) / (g*dx)
- local answer1 = math.atan(inATan1)
- local answer2 = math.atan(inATan2)
- if answer1 < answer2 then return answer1 end
- return answer2
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- while true do
- local torso = findTorso(script.Parent.Position)
- if torso ~= nil then
- fire(torso)
- end
- wait(1.1)
- end
- end))
- Sound231.Name = "ReloadSound"
- Sound231.Parent = Part227
- Sound231.Pitch = 1.1000000238419
- Sound231.SoundId = "http://www.roblox.com/Asset?ID=132456167"
- Sound231.Volume = 1
- Sound232.Name = "FireSound"
- Sound232.Parent = Part227
- Sound232.SoundId = "http://www.roblox.com/Asset?ID=132456187"
- Sound232.Volume = 1
- SpecialMesh233.Parent = Part227
- SpecialMesh233.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- SpecialMesh233.Scale = Vector3.new(1.25, 3, 1.25)
- SpecialMesh233.MeshType = Enum.MeshType.FileMesh
- SpecialMesh233.Scale = Vector3.new(1.25, 3, 1.25)
- Script234.Name = "LaserBlast"
- Script234.Parent = Tool226
- Script234.Disabled = true
- table.insert(cors,sandbox(Script234,function()
- -- 42672473 is sorry sound
- -- 42672581 is wind-knocked-out sound
- ball = script.Parent
- damage = 5
- HitSound = Instance.new("Sound")
- HitSound.Name = "HitSound"
- HitSound.SoundId = "http://www.roblox.com/asset/?id=11945266"
- HitSound.Parent = ball
- HitSound.Volume = 1
- PersonHitSound = Instance.new("Sound")
- PersonHitSound.Name = "PersonHitSound"
- --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=42672473"
- PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=42672581" -- grunt sound
- PersonHitSound.Volume = .5
- PersonHitSound.Pitch = 1
- PersonHitSound.Parent = ball
- db = false
- target = ball:findFirstChild("Target")
- if target ~= nil then
- if db == false then
- local humanoid = target.Value:findFirstChild("Humanoid")
- if humanoid ~= nil then
- humanoid:TakeDamage(damage)
- PersonHitSound:Play()
- end
- ball.Anchored = true
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- connection = ball.Touched:connect(onTouched)
- for i = 1,5 do
- ball.Transparency = ball.Transparency + 0.2
- ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(4,4,4)
- wait(0.1)
- end
- --ball.SparkSound.Looped = false
- --ball.SparkSound:Stop()
- ball.Parent = nil
- end))
- SpecialMesh235.Parent = Tool226
- SpecialMesh235.Scale = Vector3.new(0.25, 0.25, 0.25)
- SpecialMesh235.MeshType = Enum.MeshType.Sphere
- SpecialMesh235.Scale = Vector3.new(0.25, 0.25, 0.25)
- Script236.Name = "ProjectileTimeLife"
- Script236.Parent = Tool226
- Script236.Disabled = true
- table.insert(cors,sandbox(Script236,function()
- script.Parent.Transparency = 0.2
- wait(0.025)
- script.Parent.Transparency = 0.4
- wait(0.025)
- script.Parent.Transparency = 0.6
- wait(0.025)
- script.Parent.Transparency = 0.8
- wait(0.025)
- script.Parent:remove()
- end))
- Script237.Name = "RayGun"
- Script237.Parent = Tool226
- table.insert(cors,sandbox(Script237,function()
- local Tool = script.Parent;
- enabled = true
- --local spark = Instance.new("Sparkles")
- --spark.Color = Color3.new(0,1,0)
- function fire(v)
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local missile = Instance.new("Part")
- --spark:Clone().Parent = missile
- local spawnPos = Tool.Parent.Target.Value.Position
- --spawnPos = spawnPos + (v * 10)
- missile.Position = spawnPos
- missile.Size = Vector3.new(.2,.2,.2)
- --missile.Velocity = v * 100
- missile.Color = Color3.fromRGB(0, 170, 255)
- missile.Shape = 0
- missile.Material = "Neon"
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.Name = "Spark"
- missile.Reflectance = 0
- missile.Elasticity = 1
- missile.Anchored = true
- missile.CanCollide = false
- Tool.Mesh:clone().Parent = missile
- local missile2 = Instance.new("Part")
- missile2.Position = spawnPos
- missile2.Size = Vector3.new(.2,.2,.2)
- --missile.Velocity = v * 100
- missile2.Color = Color3.fromRGB(255, 0, 0)
- missile2.Shape = 0
- missile2.Material = "Neon"
- missile2.BottomSurface = 0
- missile2.TopSurface = 0
- missile2.Name = "Spark"
- missile2.Reflectance = 0
- missile2.Elasticity = 1
- missile2.Anchored = true
- missile2.CanCollide = false
- Tool.Mesh:clone().Parent = missile2
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,99,0)
- force.Parent = missile
- local force2 = Instance.new("BodyForce")
- force2.force = Vector3.new(0,99,0)
- force2.Parent = missile2
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = vPlayer
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- local creator_tag2 = Instance.new("ObjectValue")
- creator_tag2.Value = vPlayer
- creator_tag2.Name = "creator"
- creator_tag2.Parent = missile2
- local new_script = script.Parent.LaserBlast:clone()
- new_script.Disabled = false
- new_script.Parent = missile
- local target = Instance.new("ObjectValue")
- target.Name = "Target"
- target.Value = Tool.Parent.Target.Value.Parent
- target.Parent = missile
- local target2 = Instance.new("ObjectValue")
- target2.Name = "Target"
- target2.Value = Tool.Parent.Target.Value.Parent
- target2.Parent = missile2
- Hit = missile.CFrame
- Hit = missile2.CFrame
- local Projectile = Instance.new("Part")
- local Projectile2 = Instance.new("Part")
- Projectile.Name = "Trail"
- local Place0 = Tool["Handle"].CFrame
- Projectile.formFactor = 0
- Projectile.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
- Projectile.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- Projectile.Material = missile.Material
- Projectile.Parent = Workspace
- Projectile.BrickColor = missile.BrickColor
- Projectile.Anchored = true
- Projectile.CanCollide = false
- Projectile2.formFactor = 0
- Projectile2.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
- Projectile2.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- Projectile2.Material = missile.Material
- Projectile2.Parent = Workspace
- Projectile2.Transparency = 0.7
- Projectile2.BrickColor = BrickColor.Red()
- Projectile2.Anchored = true
- Projectile2.CanCollide = false
- local new_script2 = script.Parent.ProjectileTimeLife:clone()
- new_script2.Disabled = false
- new_script2.Parent = Projectile
- local new_script3 = script.Parent.ProjectileTimeLife:clone()
- new_script3.Disabled = false
- new_script3.Parent = Projectile2
- me2 = Instance.new("BlockMesh")
- me2.Scale = Vector3.new(0.15,0.15,1)
- me2.Parent = Projectile
- --Tool.Handle.GruntSound:Clone().Parent = missile
- missile.Parent = Workspace
- -- wait(.15)
- --PewPew:Stop()
- end
- function gunUp()
- Tool.GripPos = Vector3.new(0,-0.5,0.5)
- end
- function gunOut()
- Tool.GripPos = Vector3.new(0,-0.5,0.75)
- end
- function isTurbo(character)
- return character:FindFirstChild("BoltHelm") ~= nil
- end
- function onActivated()
- if not enabled then
- return
- end
- enabled = false
- local character = Tool.Parent;
- local humanoid = character.Zombie
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- local targetPos = Tool.Parent.Target.Value.Position
- local lookAt = (targetPos - character.Head.Position).unit
- local reload = .05
- --if (isTurbo(character)) then
- -- reload = .25
- -- print("turbo")
- --end
- local PewPew = Tool.Handle:FindFirstChild("PewPew")
- if (PewPew == nil) then
- PewPew = Instance.new("Sound")
- PewPew.Name = "PewPew"
- PewPew.SoundId = "http://www.roblox.com/asset/?id=30324676"
- PewPew.Parent = Tool.Handle
- PewPew.Volume = 1
- --PewPew.Pitch = 1.2
- end
- PewPew:Play()
- local spark = Instance.new("Fire")
- spark.Color = Color3.new(1,1,0)
- spark.SecondaryColor = Color3.new(1,1,0)
- spark.Size = 2.5
- spark.Heat = 0
- spark.Parent = Tool.Handle
- --gunUp()
- fire(lookAt,humanoid)
- wait(reload)
- --gunOut()
- wait(reload)
- spark:remove()
- wait(0.9)
- enabled = true
- end
- function onEquipped()
- Tool.Handle.EquipSound:play()
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- while true do
- if Tool.Parent.Attack.Value == true then
- onActivated()
- end
- wait()
- end
- local char = script.Parent.Parent
- local humanoid = char.Humanoid
- local head = char.Head
- local w = humanoid:LoadAnimation(head.Dance3)
- w:Play()
- end))
- Script238.Name = "Welding"
- Script238.Parent = Tool226
- table.insert(cors,sandbox(Script238,function()
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = x
- end
- function Get(A)
- if A.className == "Part" then
- Weld(script.Parent.Handle, A)
- A.Anchored = false
- else
- local C = A:GetChildren()
- for i=1, #C do
- Get(C[i])
- end
- end
- end
- function Finale()
- Get(script.Parent)
- end
- script.Parent.Equipped:connect(Finale)
- script.Parent.Unequipped:connect(Finale)
- Finale()
- end))
- LocalScript239.Name = "Local Gui"
- LocalScript239.Parent = Tool226
- table.insert(cors,sandbox(LocalScript239,function()
- local Tool = script.Parent;
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- enabled = false
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- wait(0.2)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- enabled = true
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- Tool.Equipped:connect(onEquippedLocal)
- end))
- Script240.Name = "LaserBlast2"
- Script240.Parent = Tool226
- Script240.Disabled = true
- table.insert(cors,sandbox(Script240,function()
- -- 42672473 is sorry sound
- -- 42672581 is wind-knocked-out sound
- ball = script.Parent
- damage = 5
- HitSound = Instance.new("Sound")
- HitSound.Name = "HitSound"
- HitSound.SoundId = "http://www.roblox.com/asset/?id=11945266"
- HitSound.Parent = ball
- HitSound.Volume = 1
- PersonHitSound = Instance.new("Sound")
- PersonHitSound.Name = "PersonHitSound"
- --PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=42672473"
- PersonHitSound.SoundId = "http://www.roblox.com/asset/?id=42672581" -- grunt sound
- PersonHitSound.Volume = .5
- PersonHitSound.Pitch = 1
- PersonHitSound.Parent = ball
- db = false
- function onTouched(hit)
- if db == false then
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid ~= nil then
- --tagHumanoid(humanoid)
- humanoid:TakeDamage(damage)
- db = true
- --untagHumanoid(humanoid)
- --soundSelector = math.random()*100
- PersonHitSound:Play()
- end
- ball.Anchored = true
- --[[
- local spark = Instance.new("Fire")
- spark.Color = Color3.new(1,1,0)
- spark.SecondaryColor = Color3.new(1,1,0)
- spark.Size = 7.5
- spark.Heat = 0
- spark.Parent = ball
- HitSound:Play()
- wait(0.05)
- ball.Parent = nil
- ]]
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- connection = ball.Touched:connect(onTouched)
- for i = 1,5 do
- ball.Transparency = ball.Transparency + 0.2
- ball.Mesh.Scale = ball.Mesh.Scale + Vector3.new(5,5,5)
- wait(0.1)
- end
- --ball.SparkSound.Looped = false
- --ball.SparkSound:Stop()
- ball.Parent = nil
- end))
- Sound241.Parent = Model6
- Sound241.SoundId = "rbxassetid://461968371"
- Sound241.Volume = 4
- Sound241.Looped = true
- Script242.Name = "Put this in Boss's Humanoid"
- Script242.Parent = Model6
- table.insert(cors,sandbox(Script242,function()
- while true do
- for _, Players in pairs(game.Players:GetChildren()) do
- local BossBattleHealthGui = workspace.Water.Head
- if BossBattleHealthGui then
- BossBattleHealthGui.Frame.Boss.Value = script.Parent.Parent
- end
- end
- wait()
- end
- end))
- Part243.Parent = mas
- Part243.Anchored = true
- Part243.Size = Vector3.new(597.309937, 1, 601.960083)
- Part243.CFrame = CFrame.new(26.2390747, -0.499909878, -6.97071838, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part243.BottomSurface = Enum.SurfaceType.Smooth
- Part243.TopSurface = Enum.SurfaceType.Smooth
- Part243.Position = Vector3.new(26.2390747, -0.499909878, -6.97071838)
- Attachment244.Name = "WaistFrontAttachment"
- Attachment244.Parent = Part243
- Attachment244.CFrame = CFrame.new(-22.3599987, 0.5, 1.22000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment244.Position = Vector3.new(-22.3599987, 0.5, 1.22000003)
- ManualWeld245.Name = "Part-to-Union Strong Joint"
- ManualWeld245.Parent = Part243
- ManualWeld245.C0 = CFrame.new(-298.654968, 0.5, 300.980042, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- ManualWeld245.C1 = CFrame.new(-69.4329681, -2.59995699, 558.346924, -1.00000858, 0, 0, 0, 0, 1, 0, 1.00000858, 0)
- ManualWeld245.Part0 = Part243
- ManualWeld245.Part1 = nil
- ManualWeld246.Name = "Part-to-Union Strong Joint"
- ManualWeld246.Parent = Part243
- ManualWeld246.C0 = CFrame.new(-298.654968, 0.5, 300.980042, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- ManualWeld246.C1 = CFrame.new(70.038681, -3.90734076, -561.913635, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- ManualWeld246.Part0 = Part243
- ManualWeld246.Part1 = nil
- ManualWeld247.Name = "Part-to-Part Strong Joint"
- ManualWeld247.Parent = Part243
- ManualWeld247.C0 = CFrame.new(-298.654968, 0.5, 300.980042, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- ManualWeld247.C1 = CFrame.new(-272.415894, -2.10001183, 299.009338, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- ManualWeld247.Part0 = Part243
- 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