Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Model")
- o2 = Instance.new("Model")
- o3 = Instance.new("Part")
- o5 = Instance.new("Humanoid")
- o7 = Instance.new("Part")
- o8 = Instance.new("SpecialMesh")
- o14 = Instance.new("SpecialMesh")
- o15 = Instance.new("Motor6D")
- o16 = Instance.new("Sound")
- o17 = Instance.new("Sound")
- o18 = Instance.new("Sound")
- o19 = Instance.new("Sound")
- o20 = Instance.new("Sound")
- o21 = Instance.new("Sound")
- o22 = Instance.new("Sound")
- o23 = Instance.new("Sound")
- o24 = Instance.new("Sound")
- o25 = Instance.new("Motor6D")
- o26 = Instance.new("Motor6D")
- o27 = Instance.new("Sound")
- o28 = Instance.new("Script")
- o29 = Instance.new("BodyColors")
- o30 = Instance.new("Script")
- o31 = Instance.new("Script")
- o32 = Instance.new("Script")
- o33 = Instance.new("Script")
- o34 = Instance.new("Script")
- o35 = Instance.new("Script")
- o38 = Instance.new("Vector3Value")
- o39 = Instance.new("Motor6D")
- o48 = Instance.new("Vector3Value")
- o49 = Instance.new("Motor6D")
- o60 = Instance.new("Vector3Value")
- o61 = Instance.new("Motor6D")
- o66 = Instance.new("Vector3Value")
- o67 = Instance.new("Motor6D")
- o71 = Instance.new("Vector3Value")
- o72 = Instance.new("Motor6D")
- o77 = Instance.new("Vector3Value")
- o78 = Instance.new("Motor6D")
- o82 = Instance.new("Vector3Value")
- o83 = Instance.new("Motor6D")
- o87 = Instance.new("Vector3Value")
- o88 = Instance.new("Motor6D")
- o92 = Instance.new("Vector3Value")
- o93 = Instance.new("Motor6D")
- o97 = Instance.new("Vector3Value")
- o98 = Instance.new("Motor6D")
- o101 = Instance.new("Vector3Value")
- o102 = Instance.new("Motor6D")
- o106 = Instance.new("Vector3Value")
- o107 = Instance.new("Motor6D")
- o111 = Instance.new("Vector3Value")
- o112 = Instance.new("Motor6D")
- o113 = Instance.new("Script")
- o117 = Instance.new("Vector3Value")
- o118 = Instance.new("Motor6D")
- o119 = Instance.new("Script")
- o120 = Instance.new("Script")
- o121 = Instance.new("Script")
- o122 = Instance.new("Script")
- o123 = Instance.new("Part")
- o124 = Instance.new("Part")
- o125 = Instance.new("Script")
- o126 = Instance.new("StringValue")
- o127 = Instance.new("StringValue")
- o128 = Instance.new("Animation")
- o129 = Instance.new("StringValue")
- o130 = Instance.new("StringValue")
- o131 = Instance.new("Animation")
- o132 = Instance.new("StringValue")
- o133 = Instance.new("Animation")
- o134 = Instance.new("StringValue")
- o135 = Instance.new("Animation")
- o136 = Instance.new("StringValue")
- o137 = Instance.new("Animation")
- o138 = Instance.new("StringValue")
- o139 = Instance.new("StringValue")
- o140 = Instance.new("Animation")
- o141 = Instance.new("StringValue")
- o142 = Instance.new("Animation")
- o143 = Instance.new("Script")
- o1.Name = "Shadow runner"
- o1.Parent = mas
- o2.Name = "Shadow"
- o2.Parent = o1
- o2.PrimaryPart = o3
- o3.Name = "HumanoidRootPart"
- o3.Parent = o2
- o3.Transparency = 1
- o3.Position = Vector3.new(-6.20944214, 2.32397389, -11.42136)
- o3.Rotation = Vector3.new(-180, -77.4799957, -180)
- o3.CanCollide = false
- o3.Size = Vector3.new(2, 2, 1)
- o3.CFrame = CFrame.new(-6.20944214, 2.32397389, -11.42136, -0.216782376, 0, -0.976219952, 0, 1, 0, 0.976219952, 0, -0.216782376)
- o3.Position = Vector3.new(-6.20944214, 2.32397389, -11.42136)
- o5.Parent = o2
- o5.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- o5.Torso = o3
- o5.Health = 1000
- o5.MaxHealth = 1000
- o5.WalkSpeed = 25
- o7.Name = "Head"
- o7.Parent = o2
- o7.Material = Enum.Material.SmoothPlastic
- o7.BrickColor = BrickColor.new("Really black")
- o7.Position = Vector3.new(-6.20970821, 4.47397423, -11.4214191)
- o7.Rotation = Vector3.new(-180, -77.4799957, -180)
- o7.Size = Vector3.new(2, 1, 1)
- o7.CFrame = CFrame.new(-6.20970821, 4.47397423, -11.4214191, -0.216782376, 0, -0.976219952, 0, 1, 0, 0.976219952, 0, -0.216782376)
- o7.BottomSurface = Enum.SurfaceType.Smooth
- o7.TopSurface = Enum.SurfaceType.Smooth
- o7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o7.Position = Vector3.new(-6.20970821, 4.47397423, -11.4214191)
- o8.Parent = o7
- o8.Scale = Vector3.new(1.25, 1.25, 1.25)
- o14.Parent = o7
- o14.MeshId = "http://www.roblox.com/asset/?id=83001675"
- o14.Scale = Vector3.new(1.25, 1.25, 1.25)
- o14.MeshType = Enum.MeshType.FileMesh
- o15.Name = "Neck"
- o15.Parent = o7
- o15.C0 = CFrame.new(-4.17232513e-07, 0.834590554, 0.0607423484, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o15.C1 = CFrame.new(0, -0.500000119, -0.000272244215, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o15.Part0 = mas
- o15.Part1 = o7
- o16.Name = "GettingUp"
- o16.Parent = o7
- o16.SoundId = "rbxasset://sounds/action_get_up.mp3"
- o16.Volume = 0.64999997615814
- o17.Name = "Died"
- o17.Parent = o7
- o17.SoundId = "rbxasset://sounds/uuhhh.mp3"
- o17.Volume = 0.64999997615814
- o18.Name = "FreeFalling"
- o18.Parent = o7
- o18.SoundId = "rbxasset://sounds/action_falling.mp3"
- o18.Volume = 0.64999997615814
- o18.Looped = true
- o19.Name = "Jumping"
- o19.Parent = o7
- o19.SoundId = "rbxasset://sounds/action_jump.mp3"
- o19.Volume = 0.64999997615814
- o20.Name = "Landing"
- o20.Parent = o7
- o20.SoundId = "rbxasset://sounds/action_jump_land.mp3"
- o20.Volume = 0.64999997615814
- o21.Name = "Splash"
- o21.Parent = o7
- o21.SoundId = "rbxasset://sounds/impact_water.mp3"
- o21.Volume = 0.64999997615814
- o22.Name = "Running"
- o22.Parent = o7
- o22.Pitch = 1.8500000238419
- o22.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
- o22.Volume = 0.64999997615814
- o22.Looped = true
- o23.Name = "Swimming"
- o23.Parent = o7
- o23.Pitch = 1.6000000238419
- o23.SoundId = "rbxasset://sounds/action_swim.mp3"
- o23.Volume = 0.64999997615814
- o23.Looped = true
- o24.Name = "Climbing"
- o24.Parent = o7
- o24.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
- o24.Volume = 0.64999997615814
- o24.Looped = true
- o25.Parent = o7
- o25.C1 = CFrame.new(-0.519638062, -0.206021309, 0.0883045197, -0.216782376, 0, -0.976219952, 0, 1, 0, 0.976219952, 0, -0.216782376)
- o25.Part0 = o7
- o25.Part1 = o124
- o26.Parent = o7
- o26.C1 = CFrame.new(-0.43963623, -0.206021309, -0.291698456, -0.216782376, 0, -0.976219952, 0, 1, 0, 0.976219952, 0, -0.216782376)
- o26.Part0 = o7
- o26.Part1 = o123
- o27.Name = "Idle"
- o27.Parent = o7
- o27.SoundId = "rbxassetid://257345390"
- o27.Volume = 1
- o27.Looped = true
- o28.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local larm = script.Parent:FindFirstChild("HumanoidRootPart")
- local rarm = script.Parent:FindFirstChild("HumanoidRootPart")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 400000
- 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
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.HumanoidRootPart.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end,o28)
- end))
- o29.Parent = o2
- o29.HeadColor = BrickColor.new("Really black")
- o29.LeftArmColor = BrickColor.new("Really black")
- o29.LeftLegColor = BrickColor.new("Really black")
- o29.RightArmColor = BrickColor.new("Really black")
- o29.RightLegColor = BrickColor.new("Really black")
- o29.TorsoColor = BrickColor.new("Really black")
- o30.Name = "Health"
- o30.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --Responsible for regening a player's humanoid's health
- -- declarations
- local Figure = script.Parent
- local Head = Figure:WaitForChild("Head")
- local Humanoid = Figure:WaitForChild("Humanoid")
- local regening = false
- -- regeneration
- function regenHealth()
- if regening then return end
- regening = true
- while Humanoid.Health < Humanoid.MaxHealth do
- local s = wait(1)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
- health = health + newHealthDelta
- Humanoid.Health = math.min(health,Humanoid.MaxHealth)
- end
- end
- if Humanoid.Health > Humanoid.MaxHealth then
- Humanoid.Health = Humanoid.MaxHealth
- end
- regening = false
- end
- Humanoid.HealthChanged:connect(regenHealth)
- end,o30)
- end))
- o31.Name = "Core"
- o31.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- print("Hello world!")
- Character = script.Parent
- Humanoid = Character.Humanoid
- Torso = Character.Torso
- function OnDeath()
- print("Death")
- x=Character:GetChildren()
- for i=1,#x do
- if (x[i].className=="Tool") then
- x[i].Parent = nil
- end
- end
- mode = Instance.new("Model")
- mode.Name = ""
- mode.Parent = Workspace
- wait()
- Humanoid.Parent = nil
- THIS = script.Cleaner:clone()
- THIS.Parent = mode
- THIS.Disabled = false
- bland=Instance.new("Humanoid")
- bland.Health=0
- bland.MaxHealth=0
- bland.Parent=mode
- --bland.Name = "Ragdoll"
- x=Character:GetChildren()
- for i=1,#x do
- if (x[i].className=="Hat") then
- x[i].Handle.Anchored = true
- end
- if (x[i].className =="Part") then
- x[i].Anchored = true
- end
- end
- if Torso then
- --Torso.Velocity = Vector3.new(0, 0, 0)
- --Torso.RotVelocity = Vector3.new(0, 0, 0)
- zam=Torso:Clone()
- zam.Parent=mode
- zam.Elasticity = 0
- zam.Friction = 1
- x=Character:GetChildren()
- for i=1,#x do
- if ((x[i].Name=="Shirt") or (x[i].Name=="Pants") or (x[i].className=="CharacterMesh") or (x[i].className=="Hat") or (x[i].className=="Decal") or (x[i].className=="ShirtGraphic") or (x[i].className=="Model")) then
- local zor=x[i]:Clone()
- zor.Parent=mode
- end
- if x[i].Name=="Head" then
- --x[i].Velocity = Vector3.new(0, 0, 0)
- --x[i].RotVelocity = Vector3.new(0, 0, 0)
- local zem=x[i]:Clone()
- zem.Parent=mode
- zem.Name="Head"
- zem.Elasticity = 0
- zem.Friction = 1
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = zam
- Neck.Part1 = zem
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = zam
- end
- if x[i].Name=="Right Arm" then
- --x[i].Velocity = Vector3.new(0, 0, 0)
- --x[i].RotVelocity = Vector3.new(0, 0, 0)
- local Limb=x[i]:Clone()
- Limb.Parent=mode
- Limb.CFrame = zam.CFrame * CFrame.new(1.5, 0, 0)
- Limb.Elasticity = 0
- Limb.Friction = 1
- local Joint = Instance.new("Rotate")
- Joint.Name = "RightShoulder"
- Joint.Part0 = zam
- 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 = zam
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.Elasticity = 0
- B.Friction = 1
- 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 = mode
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- if x[i].Name=="Left Arm" then
- --x[i].Velocity = Vector3.new(0, 0, 0)
- --x[i].RotVelocity = Vector3.new(0, 0, 0)
- local Limb=x[i]:Clone()
- Limb.Parent=mode
- Limb.CFrame = zam.CFrame * CFrame.new(-1.5, 0, 0)
- Limb.Elasticity = 0
- Limb.Friction = 1
- local Joint = Instance.new("Rotate")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = zam
- 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 = zam
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.Elasticity = 0
- B.Friction = 1
- 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 = mode
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- if x[i].Name=="Right Leg" then
- --x[i].Velocity = Vector3.new(0, 0, 0)
- --x[i].RotVelocity = Vector3.new(0, 0, 0)
- local Limb=x[i]:Clone()
- Limb.Parent=mode
- Limb.CFrame = zam.CFrame * CFrame.new(0.5, -2, 0)
- Limb.Elasticity = 0
- Limb.Friction = 1
- local Joint = Instance.new("Rotate")
- Joint.Name = "RightHip"
- Joint.Part0 = zam
- 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 = zam
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.Elasticity = 0
- B.Friction = 1
- 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 = mode
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- if x[i].Name=="Left Leg" then
- --x[i].Velocity = Vector3.new(0, 0, 0)
- --x[i].RotVelocity = Vector3.new(0, 0, 0)
- local Limb=x[i]:Clone()
- Limb.Parent=mode
- Limb.CFrame = zam.CFrame * CFrame.new(-0.5, -2, 0)
- Limb.Elasticity = 0
- Limb.Friction = 1
- local Joint = Instance.new("Rotate")
- Joint.Name = "LeftHip"
- Joint.Part0 = zam
- 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 = zam
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.Elasticity = 0
- B.Friction = 1
- 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 = mode
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- end
- local Bar = Instance.new("Part")
- Bar.TopSurface = 0
- Bar.BottomSurface = 0
- Bar.Elasticity = 0
- Bar.Friction = 1
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = zam.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = mode
- local Weld = Instance.new("Weld")
- Weld.Part0 = zam
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = zam
- end
- wait()
- Character:remove()
- mode:FindFirstChild("Head").Velocity = Vector3.new(0,0,0)
- mode:FindFirstChild("Left Arm").Velocity = Vector3.new(0,0,0)
- mode:FindFirstChild("Left Leg").Velocity = Vector3.new(0,0,0)
- mode:FindFirstChild("Right Arm").Velocity = Vector3.new(0,0,0)
- mode:FindFirstChild("Right Leg").Velocity = Vector3.new(0,0,0)
- mode:FindFirstChild("Torso").Velocity = Vector3.new(0,0,0)
- x=mode:GetChildren()
- for i=1,#x do
- if (x[i].className=="Hat") then
- if x[i]:findFirstChild("Handle") then
- x[i].Handle.Anchored = false
- end
- end
- if (x[i].className =="Part") then
- x[i].Anchored = false
- end
- end
- local b = Instance.new("BodyPosition")
- b.maxForce = Vector3.new(0, 3000, 0)
- b.position = mode:findFirstChild("Torso").Position - Vector3.new(0, 25, 0)
- b.Parent = mode:findFirstChild("Torso")
- wait(5)
- for i=1,#x do
- if (x[i].className=="Hat") then
- if x[i]:findFirstChild("Handle") then
- x[i].Handle.Anchored = true
- end
- end
- if (x[i].className =="Part") then
- x[i].Anchored = true
- end
- end
- end
- Humanoid.Died:connect(OnDeath)
- end,o31)
- end))
- o32.Name = "Cleaner"
- o32.Parent = o31
- o32.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- wait(30) -- removes the raggy in 10 seconds.
- script.Parent:Destroy()
- end,o32)
- end))
- o33.Name = "Sound"
- o33.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --[[
- Author: @spotco
- This script creates sounds which are placed under the character head.
- These sounds are used by the "LocalSound" script.
- To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
- The default Sound script loaded for every character will then be replaced with your copy of the script.
- ]]--
- function CreateNewSound(name, id, looped, pitch, parent)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.Name = name
- sound.archivable = false
- sound.Parent = parent
- sound.Pitch = pitch
- sound.Looped = looped
- sound.MinDistance = 5
- sound.MaxDistance = 150
- sound.Volume = 0.65
- return sound
- end
- local head = script.Parent:FindFirstChild("Head")
- if head == nil then
- error("Sound script parent has no child Head.")
- return
- end
- CreateNewSound("GettingUp", "rbxasset://sounds/action_get_up.mp3", false, 1, head)
- CreateNewSound("Died", "rbxasset://sounds/uuhhh.mp3", false, 1, head)
- CreateNewSound("FreeFalling", "rbxasset://sounds/action_falling.mp3", true, 1, head)
- CreateNewSound("Jumping", "rbxasset://sounds/action_jump.mp3", false, 1, head)
- CreateNewSound("Landing", "rbxasset://sounds/action_jump_land.mp3", false, 1, head)
- CreateNewSound("Splash", "rbxasset://sounds/impact_water.mp3", false, 1, head)
- CreateNewSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1.85, head)
- CreateNewSound("Swimming", "rbxasset://sounds/action_swim.mp3", true, 1.6, head)
- CreateNewSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3", true, 1, head)
- end,o33)
- end))
- o34.Name = "LocalSound"
- o34.Parent = o33
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --[[
- Author: @spotco
- This script runs locally for the player of the given humanoid.
- This script triggers humanoid sound play/pause actions locally.
- The Playing/TimePosition properties of Sound objects bypass FilteringEnabled, so this triggers the sound
- immediately for the player and is replicated to all other players.
- This script is optimized to reduce network traffic through minimizing the amount of property replication.
- ]]--
- --All sounds are referenced by this ID
- local SFX = {
- Died = 0;
- Running = 1;
- Swimming = 2;
- Climbing = 3,
- Jumping = 4;
- GettingUp = 5;
- FreeFalling = 6;
- FallingDown = 7;
- Landing = 8;
- Splash = 9;
- }
- local Humanoid = nil
- local Head = nil
- --SFX ID to Sound object
- local Sounds = {}
- do
- local Figure = script.Parent.Parent
- Head = Figure:WaitForChild("Head")
- while not Humanoid do
- for _,NewHumanoid in pairs(Figure:GetChildren()) do
- if NewHumanoid:IsA("Humanoid") then
- Humanoid = NewHumanoid
- break
- end
- end
- Figure.ChildAdded:wait()
- end
- Sounds[SFX.Died] = Head:WaitForChild("Died")
- Sounds[SFX.Running] = Head:WaitForChild("Running")
- Sounds[SFX.Swimming] = Head:WaitForChild("Swimming")
- Sounds[SFX.Climbing] = Head:WaitForChild("Climbing")
- Sounds[SFX.Jumping] = Head:WaitForChild("Jumping")
- Sounds[SFX.GettingUp] = Head:WaitForChild("GettingUp")
- Sounds[SFX.FreeFalling] = Head:WaitForChild("FreeFalling")
- Sounds[SFX.Landing] = Head:WaitForChild("Landing")
- Sounds[SFX.Splash] = Head:WaitForChild("Splash")
- end
- local Util
- Util = {
- --Define linear relationship between (pt1x,pt2x) and (pt2x,pt2y). Evaluate this at x.
- YForLineGivenXAndTwoPts = function(x,pt1x,pt1y,pt2x,pt2y)
- --(y - y1)/(x - x1) = m
- local m = (pt1y - pt2y) / (pt1x - pt2x)
- --float b = pt1.y - m * pt1.x;
- local b = (pt1y - m * pt1x)
- return m * x + b
- end;
- --Clamps the value of "val" between the "min" and "max"
- Clamp = function(val,min,max)
- return math.min(max,math.max(min,val))
- end;
- --Gets the horizontal (x,z) velocity magnitude of the given part
- HorizontalSpeed = function(Head)
- local hVel = Head.Velocity + Vector3.new(0,-Head.Velocity.Y,0)
- return hVel.magnitude
- end;
- --Gets the vertical (y) velocity magnitude of the given part
- VerticalSpeed = function(Head)
- return math.abs(Head.Velocity.Y)
- end;
- --Setting Playing/TimePosition values directly result in less network traffic than Play/Pause/Resume/Stop
- --If these properties are enabled, use them.
- Play = function(sound)
- if sound.TimePosition ~= 0 then
- sound.TimePosition = 0
- end
- if not sound.IsPlaying then
- sound.Playing = true
- end
- end;
- Pause = function(sound)
- if sound.IsPlaying then
- sound.Playing = false
- end
- end;
- Resume = function(sound)
- if not sound.IsPlaying then
- sound.Playing = true
- end
- end;
- Stop = function(sound)
- if sound.IsPlaying then
- sound.Playing = false
- end
- if sound.TimePosition ~= 0 then
- sound.TimePosition = 0
- end
- end;
- }
- do
- -- List of all active Looped sounds
- local playingLoopedSounds = {}
- -- Last seen Enum.HumanoidStateType
- local activeState = nil
- -- Verify and set that "sound" is in "playingLoopedSounds".
- function setSoundInPlayingLoopedSounds(sound)
- for i=1, #playingLoopedSounds do
- if playingLoopedSounds[i] == sound then
- return
- end
- end
- table.insert(playingLoopedSounds,sound)
- end
- -- Stop all active looped sounds except parameter "except". If "except" is not passed, all looped sounds will be stopped.
- function stopPlayingLoopedSoundsExcept(except)
- for i=#playingLoopedSounds,1,-1 do
- if playingLoopedSounds[i] ~= except then
- Util.Pause(playingLoopedSounds[i])
- table.remove(playingLoopedSounds,i)
- end
- end
- end
- -- Table of Enum.HumanoidStateType to handling function
- local stateUpdateHandler = {
- [Enum.HumanoidStateType.Dead] = function()
- stopPlayingLoopedSoundsExcept()
- local sound = Sounds[SFX.Died]
- Util.Play(sound)
- end;
- [Enum.HumanoidStateType.RunningNoPhysics] = function()
- stateUpdated(Enum.HumanoidStateType.Running)
- end;
- [Enum.HumanoidStateType.Running] = function()
- local sound = Sounds[SFX.Running]
- stopPlayingLoopedSoundsExcept(sound)
- if Util.HorizontalSpeed(Head) > 0.5 then
- Util.Resume(sound)
- setSoundInPlayingLoopedSounds(sound)
- else
- stopPlayingLoopedSoundsExcept()
- end
- end;
- [Enum.HumanoidStateType.Swimming] = function()
- if activeState ~= Enum.HumanoidStateType.Swimming and Util.VerticalSpeed(Head) > 0.1 then
- local splashSound = Sounds[SFX.Splash]
- splashSound.Volume = Util.Clamp(
- Util.YForLineGivenXAndTwoPts(
- Util.VerticalSpeed(Head),
- 100, 0.28,
- 350, 1),
- 0,1)
- Util.Play(splashSound)
- end
- do
- local sound = Sounds[SFX.Swimming]
- stopPlayingLoopedSoundsExcept(sound)
- Util.Resume(sound)
- setSoundInPlayingLoopedSounds(sound)
- end
- end;
- [Enum.HumanoidStateType.Climbing] = function()
- local sound = Sounds[SFX.Climbing]
- if Util.VerticalSpeed(Head) > 0.1 then
- Util.Resume(sound)
- stopPlayingLoopedSoundsExcept(sound)
- else
- stopPlayingLoopedSoundsExcept()
- end
- setSoundInPlayingLoopedSounds(sound)
- end;
- [Enum.HumanoidStateType.Jumping] = function()
- if activeState == Enum.HumanoidStateType.Jumping then
- return
- end
- stopPlayingLoopedSoundsExcept()
- local sound = Sounds[SFX.Jumping]
- Util.Play(sound)
- end;
- [Enum.HumanoidStateType.GettingUp] = function()
- stopPlayingLoopedSoundsExcept()
- local sound = Sounds[SFX.GettingUp]
- Util.Play(sound)
- end;
- [Enum.HumanoidStateType.Freefall] = function()
- if activeState == Enum.HumanoidStateType.Freefall then
- return
- end
- local sound = Sounds[SFX.FreeFalling]
- sound.Volume = 0
- stopPlayingLoopedSoundsExcept()
- end;
- [Enum.HumanoidStateType.FallingDown] = function()
- stopPlayingLoopedSoundsExcept()
- end;
- [Enum.HumanoidStateType.Landed] = function()
- stopPlayingLoopedSoundsExcept()
- if Util.VerticalSpeed(Head) > 75 then
- local landingSound = Sounds[SFX.Landing]
- landingSound.Volume = Util.Clamp(
- Util.YForLineGivenXAndTwoPts(
- Util.VerticalSpeed(Head),
- 50, 0,
- 100, 1),
- 0,1)
- Util.Play(landingSound)
- end
- end
- }
- -- Handle state event fired or OnChange fired
- function stateUpdated(state)
- if stateUpdateHandler[state] ~= nil then
- stateUpdateHandler[state]()
- end
- activeState = state
- end
- Humanoid.Died:connect( function() stateUpdated(Enum.HumanoidStateType.Dead) end)
- Humanoid.Running:connect( function() stateUpdated(Enum.HumanoidStateType.Running) end)
- Humanoid.Swimming:connect( function() stateUpdated(Enum.HumanoidStateType.Swimming) end)
- Humanoid.Climbing:connect( function() stateUpdated(Enum.HumanoidStateType.Climbing) end)
- Humanoid.Jumping:connect( function() stateUpdated(Enum.HumanoidStateType.Jumping) end)
- Humanoid.GettingUp:connect( function() stateUpdated(Enum.HumanoidStateType.GettingUp) end)
- Humanoid.FreeFalling:connect( function() stateUpdated(Enum.HumanoidStateType.Freefall) end)
- Humanoid.FallingDown:connect( function() stateUpdated(Enum.HumanoidStateType.FallingDown) end)
- -- required for proper handling of Landed event
- Humanoid.StateChanged:connect(function(old, new)
- stateUpdated(new)
- end)
- function onUpdate(stepDeltaSeconds, tickSpeedSeconds)
- local stepScale = stepDeltaSeconds / tickSpeedSeconds
- do
- local sound = Sounds[SFX.FreeFalling]
- if activeState == Enum.HumanoidStateType.Freefall then
- if Head.Velocity.Y < 0 and Util.VerticalSpeed(Head) > 75 then
- Util.Resume(sound)
- --Volume takes 1.1 seconds to go from volume 0 to 1
- local ANIMATION_LENGTH_SECONDS = 1.1
- local normalizedIncrement = tickSpeedSeconds / ANIMATION_LENGTH_SECONDS
- sound.Volume = Util.Clamp(sound.Volume + normalizedIncrement * stepScale, 0, 1)
- else
- sound.Volume = 0
- end
- else
- Util.Pause(sound)
- end
- end
- do
- local sound = Sounds[SFX.Running]
- if activeState == Enum.HumanoidStateType.Running then
- if Util.HorizontalSpeed(Head) < 0.5 then
- Util.Pause(sound)
- end
- end
- end
- end
- local lastTick = tick()
- local TICK_SPEED_SECONDS = 0.25
- while true do
- onUpdate(tick() - lastTick,TICK_SPEED_SECONDS)
- lastTick = tick()
- wait(TICK_SPEED_SECONDS)
- end
- end
- end,o34)
- end))
- o35.Name = "Respawn"
- o35.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(30)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end,o35)
- end))
- o38.Name = "OriginalSize"
- o38.Parent = mas
- o38.Value = Vector3.new(0.804975927, 0.45631969, 1.21525145)
- o39.Name = "LeftAnkle"
- o39.Parent = mas
- o39.C0 = CFrame.new(-0.0572988987, -0.554775834, 0.00460058777, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o39.C1 = CFrame.new(-0.0572988093, -0.0541849136, 0.102052271, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o39.Part0 = mas
- o39.Part1 = mas
- o48.Name = "OriginalSize"
- o48.Parent = mas
- o48.Value = Vector3.new(1.68052888, 0.508752942, 1.01567388)
- o49.Name = "Root"
- o49.Parent = mas
- o49.C1 = CFrame.new(-5.66244125e-07, 0.0325828269, 0.0487938523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o49.Part0 = o3
- o49.Part1 = mas
- o60.Name = "OriginalSize"
- o60.Parent = mas
- o60.Value = Vector3.new(2.03200006, 1.86928844, 1.12989664)
- o61.Name = "Waist"
- o61.Parent = mas
- o61.C0 = CFrame.new(-5.66244125e-07, 0.432582825, 0.0487938523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o61.C1 = CFrame.new(-4.17232513e-07, -0.415409416, 0.0607423484, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o61.Part0 = mas
- o61.Part1 = mas
- o66.Name = "OriginalSize"
- o66.Parent = mas
- o66.Value = Vector3.new(0.675612688, 1.12489867, 0.826949)
- o67.Name = "LeftShoulder"
- o67.Parent = mas
- o67.C0 = CFrame.new(-1.24989152, 0.584590554, 0.0607423484, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o67.C1 = CFrame.new(0.0625219345, 0.288986444, -0.0245017558, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o67.Part0 = mas
- o67.Part1 = mas
- o71.Name = "OriginalSize"
- o71.Parent = mas
- o71.Value = Vector3.new(0.678933978, 1.34023976, 0.838257849)
- o72.Name = "RightHip"
- o72.Parent = mas
- o72.C0 = CFrame.new(0.499999434, -0.317417175, 0.0487938523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o72.C1 = CFrame.new(0.0572995543, 0.406759053, 0.0292846859, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o72.Part0 = mas
- o72.Part1 = mas
- o77.Name = "OriginalSize"
- o77.Parent = mas
- o77.Value = Vector3.new(0.675612688, 1.12489867, 0.826949239)
- o78.Name = "RightShoulder"
- o78.Parent = mas
- o78.C0 = CFrame.new(1.24997997, 0.584590554, 0.0607423484, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o78.C1 = CFrame.new(-0.0624326468, 0.288986444, -0.0245021135, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o78.Part0 = mas
- o78.Part1 = mas
- o82.Name = "OriginalSize"
- o82.Parent = mas
- o82.Value = Vector3.new(0.827857256, 0.925159216, 0.877025485)
- o83.Name = "RightElbow"
- o83.Parent = mas
- o83.C0 = CFrame.new(0.187587023, -0.361013532, -0.0245021135, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o83.C1 = CFrame.new(0.0363556147, 0.403800189, -0.00020223856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o83.Part0 = mas
- o83.Part1 = mas
- o87.Name = "OriginalSize"
- o87.Parent = mas
- o87.Value = Vector3.new(0.722899377, 0.919740558, 0.897220731)
- o88.Name = "RightKnee"
- o88.Parent = mas
- o88.C0 = CFrame.new(0.0572995543, -0.393240929, 0.029328391, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o88.C1 = CFrame.new(0.0572987497, 0.445221305, 0.00464349939, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o88.Part0 = mas
- o88.Part1 = mas
- o92.Name = "OriginalSize"
- o92.Parent = mas
- o92.Value = Vector3.new(0.678933918, 1.34023976, 0.83825773)
- o93.Name = "LeftHip"
- o93.Parent = mas
- o93.C0 = CFrame.new(-0.500000596, -0.317417175, 0.0487938523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o93.C1 = CFrame.new(-0.0572995245, 0.406759053, 0.0292848647, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o93.Part0 = mas
- o93.Part1 = mas
- o97.Name = "OriginalSize"
- o97.Parent = mas
- o97.Value = Vector3.new(0.722899318, 0.919740438, 0.897220731)
- o98.Name = "LeftKnee"
- o98.Parent = mas
- o98.C0 = CFrame.new(-0.0572995245, -0.393240929, 0.0292848647, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o98.C1 = CFrame.new(-0.0572987199, 0.445221424, 0.00459977984, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o98.Part0 = mas
- o98.Part1 = mas
- o101.Name = "OriginalSize"
- o101.Parent = mas
- o101.Value = Vector3.new(0.804975271, 0.456319809, 1.21525121)
- o102.Name = "RightAnkle"
- o102.Parent = mas
- o102.C0 = CFrame.new(0.0572987497, -0.554778814, 0.00469824811, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o102.C1 = CFrame.new(0.0572986603, -0.0541877747, 0.102150455, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o102.Part0 = mas
- o102.Part1 = mas
- o106.Name = "OriginalSize"
- o106.Parent = mas
- o106.Value = Vector3.new(0.827857256, 0.925159276, 0.877025366)
- o107.Name = "LeftElbow"
- o107.Parent = mas
- o107.C0 = CFrame.new(-0.187108159, -0.361013532, -0.0245017558, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o107.C1 = CFrame.new(-0.0358767509, 0.40380016, -0.000202059746, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o107.Part0 = mas
- o107.Part1 = mas
- o111.Name = "OriginalSize"
- o111.Parent = mas
- o111.Value = Vector3.new(0.775964022, 0.955060005, 0.760477781)
- o112.Name = "LeftWrist"
- o112.Parent = mas
- o112.C0 = CFrame.new(-0.0358767509, -0.396199822, -0.000202059746, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o112.C1 = CFrame.new(0.0106925964, 0.110724702, -0.0063508749, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o112.Part0 = mas
- o112.Part1 = mas
- o113.Name = "Damage Script"
- o113.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 50 -- Change the amount to change the damage.
- end
- end
- script.Parent.Touched:connect(onTouched)
- end,o113)
- end))
- o117.Name = "OriginalSize"
- o117.Parent = mas
- o117.Value = Vector3.new(0.775964022, 0.955060005, 0.760477781)
- o118.Name = "RightWrist"
- o118.Parent = mas
- o118.C0 = CFrame.new(0.0363556147, -0.396199793, -0.00020223856, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o118.C1 = CFrame.new(-0.0102137327, 0.110724702, -0.00635111332, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o118.Part0 = mas
- o118.Part1 = mas
- o119.Name = "Damage Script"
- o119.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 50 -- Change the amount to change the damage.
- end
- end
- script.Parent.Touched:connect(onTouched)
- end,o119)
- end))
- o120.Name = "Core"
- o120.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- print("Hello world!")
- Character = script.Parent
- Humanoid = Character.Humanoid
- Torso = Character.Torso
- function OnDeath()
- print("Death")
- x=Character:GetChildren()
- for i=1,#x do
- if (x[i].className=="Tool") then
- x[i].Parent = nil
- end
- end
- mode = Instance.new("Model")
- mode.Name = ""
- mode.Parent = Workspace
- wait()
- Humanoid.Parent = nil
- THIS = script.Cleaner:clone()
- THIS.Parent = mode
- THIS.Disabled = false
- bland=Instance.new("Humanoid")
- bland.Health=0
- bland.MaxHealth=0
- bland.Parent=mode
- --bland.Name = "Ragdoll"
- x=Character:GetChildren()
- for i=1,#x do
- if (x[i].className=="Hat") then
- x[i].Handle.Anchored = true
- end
- if (x[i].className =="Part") then
- x[i].Anchored = true
- end
- end
- if Torso then
- --Torso.Velocity = Vector3.new(0, 0, 0)
- --Torso.RotVelocity = Vector3.new(0, 0, 0)
- zam=Torso:Clone()
- zam.Parent=mode
- zam.Elasticity = 0
- zam.Friction = 1
- x=Character:GetChildren()
- for i=1,#x do
- if ((x[i].Name=="Shirt") or (x[i].Name=="Pants") or (x[i].className=="CharacterMesh") or (x[i].className=="Hat") or (x[i].className=="Decal") or (x[i].className=="ShirtGraphic") or (x[i].className=="Model")) then
- local zor=x[i]:Clone()
- zor.Parent=mode
- end
- if x[i].Name=="Head" then
- --x[i].Velocity = Vector3.new(0, 0, 0)
- --x[i].RotVelocity = Vector3.new(0, 0, 0)
- local zem=x[i]:Clone()
- zem.Parent=mode
- zem.Name="Head"
- zem.Elasticity = 0
- zem.Friction = 1
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = zam
- Neck.Part1 = zem
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = zam
- end
- if x[i].Name=="Right Arm" then
- --x[i].Velocity = Vector3.new(0, 0, 0)
- --x[i].RotVelocity = Vector3.new(0, 0, 0)
- local Limb=x[i]:Clone()
- Limb.Parent=mode
- Limb.CFrame = zam.CFrame * CFrame.new(1.5, 0, 0)
- Limb.Elasticity = 0
- Limb.Friction = 1
- local Joint = Instance.new("Rotate")
- Joint.Name = "RightShoulder"
- Joint.Part0 = zam
- 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 = zam
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.Elasticity = 0
- B.Friction = 1
- 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 = mode
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- if x[i].Name=="Left Arm" then
- --x[i].Velocity = Vector3.new(0, 0, 0)
- --x[i].RotVelocity = Vector3.new(0, 0, 0)
- local Limb=x[i]:Clone()
- Limb.Parent=mode
- Limb.CFrame = zam.CFrame * CFrame.new(-1.5, 0, 0)
- Limb.Elasticity = 0
- Limb.Friction = 1
- local Joint = Instance.new("Rotate")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = zam
- 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 = zam
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.Elasticity = 0
- B.Friction = 1
- 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 = mode
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- if x[i].Name=="Right Leg" then
- --x[i].Velocity = Vector3.new(0, 0, 0)
- --x[i].RotVelocity = Vector3.new(0, 0, 0)
- local Limb=x[i]:Clone()
- Limb.Parent=mode
- Limb.CFrame = zam.CFrame * CFrame.new(0.5, -2, 0)
- Limb.Elasticity = 0
- Limb.Friction = 1
- local Joint = Instance.new("Rotate")
- Joint.Name = "RightHip"
- Joint.Part0 = zam
- 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 = zam
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.Elasticity = 0
- B.Friction = 1
- 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 = mode
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- if x[i].Name=="Left Leg" then
- --x[i].Velocity = Vector3.new(0, 0, 0)
- --x[i].RotVelocity = Vector3.new(0, 0, 0)
- local Limb=x[i]:Clone()
- Limb.Parent=mode
- Limb.CFrame = zam.CFrame * CFrame.new(-0.5, -2, 0)
- Limb.Elasticity = 0
- Limb.Friction = 1
- local Joint = Instance.new("Rotate")
- Joint.Name = "LeftHip"
- Joint.Part0 = zam
- 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 = zam
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.Elasticity = 0
- B.Friction = 1
- 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 = mode
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- end
- local Bar = Instance.new("Part")
- Bar.TopSurface = 0
- Bar.BottomSurface = 0
- Bar.Elasticity = 0
- Bar.Friction = 1
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = zam.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = mode
- local Weld = Instance.new("Weld")
- Weld.Part0 = zam
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = zam
- end
- wait()
- Character:remove()
- mode:FindFirstChild("Head").Velocity = Vector3.new(0,0,0)
- mode:FindFirstChild("Left Arm").Velocity = Vector3.new(0,0,0)
- mode:FindFirstChild("Left Leg").Velocity = Vector3.new(0,0,0)
- mode:FindFirstChild("Right Arm").Velocity = Vector3.new(0,0,0)
- mode:FindFirstChild("Right Leg").Velocity = Vector3.new(0,0,0)
- mode:FindFirstChild("Torso").Velocity = Vector3.new(0,0,0)
- x=mode:GetChildren()
- for i=1,#x do
- if (x[i].className=="Hat") then
- if x[i]:findFirstChild("Handle") then
- x[i].Handle.Anchored = false
- end
- end
- if (x[i].className =="Part") then
- x[i].Anchored = false
- end
- end
- local b = Instance.new("BodyPosition")
- b.maxForce = Vector3.new(0, 3000, 0)
- b.position = mode:findFirstChild("Torso").Position - Vector3.new(0, 25, 0)
- b.Parent = mode:findFirstChild("Torso")
- wait(5)
- for i=1,#x do
- if (x[i].className=="Hat") then
- if x[i]:findFirstChild("Handle") then
- x[i].Handle.Anchored = true
- end
- end
- if (x[i].className =="Part") then
- x[i].Anchored = true
- end
- end
- end
- Humanoid.Died:connect(OnDeath)
- end,o120)
- end))
- o121.Name = "Cleaner"
- o121.Parent = o120
- o121.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- wait(30) -- removes the raggy in 10 seconds.
- script.Parent:Destroy()
- end,o121)
- end))
- o122.Name = "Read me"
- o122.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --| Help for R15 model Zombie |--
- --
- -- To edit the zombie's damage go to LeftLowerArm/RightLowerArm > Damage Script > human.Health = human.Health - 5
- -- Edit the number to whatever you'd like
- -- The player will recieve damage from the LeftLowerArm and RightLowerArm
- -- To edit the walkspeed go to Humanoid > Scroll to the bottom > Edit the number shown after WalkSpeed
- -- You can also edit max health and spawn health under Humanoid > game
- --
- -- Have fun!
- --
- -- ImFarAway
- end,o122)
- end))
- o123.Parent = o2
- o123.Material = Enum.Material.Neon
- o123.BrickColor = BrickColor.new("Really red")
- o123.Position = Vector3.new(-5.77007198, 4.67999554, -11.1297207)
- o123.CanCollide = false
- o123.Shape = Enum.PartType.Ball
- o123.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o123.CFrame = CFrame.new(-5.77007198, 4.67999554, -11.1297207, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o123.BottomSurface = Enum.SurfaceType.Smooth
- o123.TopSurface = Enum.SurfaceType.Smooth
- o123.Color = Color3.new(1, 0, 0)
- o123.Position = Vector3.new(-5.77007198, 4.67999554, -11.1297207)
- o124.Parent = o2
- o124.Material = Enum.Material.Neon
- o124.BrickColor = BrickColor.new("Really red")
- o124.Position = Vector3.new(-5.69007015, 4.67999554, -11.5097237)
- o124.CanCollide = false
- o124.Shape = Enum.PartType.Ball
- o124.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o124.CFrame = CFrame.new(-5.69007015, 4.67999554, -11.5097237, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o124.BottomSurface = Enum.SurfaceType.Smooth
- o124.TopSurface = Enum.SurfaceType.Smooth
- o124.Color = Color3.new(1, 0, 0)
- o124.Position = Vector3.new(-5.69007015, 4.67999554, -11.5097237)
- o125.Name = "Animate"
- o125.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(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, "Humanoid")
- local pose = "Standing"
- local currentAnim = ""
- local currentAnimInstance = nil
- local currentAnimTrack = nil
- local currentAnimKeyframeHandler = nil
- local currentAnimSpeed = 0.5
- local animTable = {}
- local animNames = {
- idle = {
- { id = "http://www.roblox.com/asset/?id=865721441", weight = 1 },
- { id = "http://www.roblox.com/asset/?id=865721441", weight = 9 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=865719063", weight = 5 }
- },
- run = {
- { id = "http://www.roblox.com/asset/?id=865719063", weight = 5 }
- },
- 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,o125)
- end))
- o126.Name = "msg"
- o126.Parent = o125
- o127.Name = "climb"
- o127.Parent = o125
- o128.Name = "ClimbAnim"
- o128.Parent = o127
- o128.AnimationId = "http://www.roblox.com/asset/?id=507765644"
- o129.Name = "idle"
- o129.Parent = o125
- o130.Name = "sit"
- o130.Parent = o125
- o131.Name = "SitAnim"
- o131.Parent = o130
- o131.AnimationId = "http://www.roblox.com/asset/?id=507768133"
- o132.Name = "swim"
- o132.Parent = o125
- o133.Name = "Swim"
- o133.Parent = o132
- o133.AnimationId = "http://www.roblox.com/asset/?id=507784897"
- o134.Name = "swimidle"
- o134.Parent = o125
- o135.Name = "SwimIdle"
- o135.Parent = o134
- o135.AnimationId = "http://www.roblox.com/asset/?id=481825862"
- o136.Name = "toolnone"
- o136.Parent = o125
- o137.Name = "ToolNoneAnim"
- o137.Parent = o136
- o137.AnimationId = "http://www.roblox.com/asset/?id=507768375"
- o138.Name = "walk"
- o138.Parent = o125
- o139.Name = "fall"
- o139.Parent = o125
- o140.Name = "FallAnim"
- o140.Parent = o139
- o140.AnimationId = "http://www.roblox.com/asset/?id=616157476"
- o141.Name = "jump"
- o141.Parent = o125
- o142.Name = "JumpAnim"
- o142.Parent = o141
- o142.AnimationId = "http://www.roblox.com/asset/?id=616161997"
- o143.Name = "Read Me"
- o143.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --(This Enemy can pass through soild object and will pass through the ground you can change it if you want, also it
- --kill any thing that it touch)it only dose 50 damage but it still kills like that you can change the damage
- --by going to the left ans right hands
- --
- end,o143)
- end))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
- game:GetService("Lighting").Brightness = 1
- game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
- game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
- game:GetService("Lighting").GlobalShadows = true
- game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
- game:GetService("Lighting").Outlines = false
- game:GetService("Lighting").GeographicLatitude = 41.733299255371
- game:GetService("Lighting").TimeOfDay = "14:00:00"
- game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
- game:GetService("Lighting").FogEnd = 100000
- game:GetService("Lighting").FogStart = 0
Add Comment
Please, Sign In to add comment