Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if loaded then
- game.Players.LocalPlayer:Kick("Restart")
- local TeleportService = game:GetService("TeleportService")
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local Rejoin = coroutine.create(function()
- local Success, ErrorMessage = pcall(function()
- TeleportService:Teleport(game.PlaceId, LocalPlayer)
- end)
- if ErrorMessage and not Success then
- warn(ErrorMessage)
- end
- end)
- coroutine.resume(Rejoin)
- end
- pcall(function()
- getgenv().loaded = true
- game:GetObjects("rbxassetid://15507196763")[1].Parent = game.Workspace
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-11, 906.978, 200.854)
- local View = Instance.new("ColorCorrectionEffect")
- View.Parent = game.Lighting
- local CameraPart = Instance.new("Part")
- CameraPart.Parent = workspace
- CameraPart.Anchored = true
- CameraPart.Size = Vector3.new(4, 1, 2)
- CameraPart.CanCollide = false
- CameraPart.Rotation = Vector3.new(0, 180, 0)
- CameraPart.Position = Vector3.new(-12.463, 909.978, 198.854)
- CameraPart.Transparency = 1
- local player = game.Players.LocalPlayer
- local character = player.Character
- local cam = workspace.CurrentCamera
- local EyeSound = Instance.new("Sound")
- local Id = "4474746611"
- EyeSound.Parent = game.Workspace
- EyeSound.SoundId = "rbxassetid://"..Id
- EyeSound.Playing = true
- EyeSound.Looped = false
- EyeSound.Volume = 1
- EyeSound:Stop()
- local IntroMusic = Instance.new("Sound")
- local Id = "1837127229"
- IntroMusic.Parent = game.Workspace
- IntroMusic.SoundId = "rbxassetid://"..Id
- IntroMusic.Playing = true
- IntroMusic.Looped = false
- IntroMusic.Volume = 1
- local SafeFromNightmare = Instance.new("Part")
- SafeFromNightmare.Parent = workspace
- SafeFromNightmare.Anchored = true
- SafeFromNightmare.Size = Vector3.new(6, 8, 2)
- SafeFromNightmare.CanCollide = true
- SafeFromNightmare.Position = Vector3.new(-11.423, 909.478, 203.419)
- SafeFromNightmare.Transparency = 1
- local ScreenGui = Instance.new("ScreenGui")
- local RunLabel = Instance.new("TextLabel")
- local HeartBeat = Instance.new("Sound")
- local Id = "9116795681"
- HeartBeat.Parent = game.Workspace
- HeartBeat.SoundId = "rbxassetid://"..Id
- HeartBeat.Playing = true
- HeartBeat.Looped = false
- HeartBeat.Volume = 1
- HeartBeat:Stop()
- ScreenGui.Parent = game.CoreGui
- function createZombie()
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Script1 = Instance.new("Script")
- Part1AA = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Vector3Value3 = Instance.new("Vector3Value")
- Motor6D4 = Instance.new("Motor6D")
- Decal5 = Instance.new("Decal")
- Decal5A = Instance.new("Decal")
- Decal5B = Instance.new("Decal")
- Decal5C = Instance.new("Decal")
- Decal5D = Instance.new("Decal")
- Decal5E = Instance.new("Decal")
- Decal5F = Instance.new("Decal")
- Decal5G = Instance.new("Decal")
- Decal5H = Instance.new("Decal")
- Decal6H = Instance.new("Decal")
- Decal7H = Instance.new("Decal")
- Decal8H = Instance.new("Decal")
- Decal9H = Instance.new("Decal")
- Decal10H = Instance.new("Decal")
- Decal11H = Instance.new("Decal")
- Decal12H = Instance.new("Decal")
- Decal13H = Instance.new("Decal")
- Decal14H = Instance.new("Decal")
- Decal15H = Instance.new("Decal")
- Decal16H = Instance.new("Decal")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Sound8 = Instance.new("Sound")
- Sound9 = Instance.new("Sound")
- Sound10 = Instance.new("Sound")
- Part11 = Instance.new("Part")
- Vector3Value12 = Instance.new("Vector3Value")
- BodyColors13 = Instance.new("BodyColors")
- MeshPart14 = Instance.new("MeshPart")
- Vector3Value15 = Instance.new("Vector3Value")
- Motor6D16 = Instance.new("Motor6D")
- Script17 = Instance.new("Script")
- Humanoid18 = Instance.new("Humanoid")
- Script19 = Instance.new("Script")
- MeshPart20 = Instance.new("MeshPart")
- Vector3Value21 = Instance.new("Vector3Value")
- Motor6D22 = Instance.new("Motor6D")
- MeshPart23 = Instance.new("MeshPart")
- Vector3Value24 = Instance.new("Vector3Value")
- Motor6D25 = Instance.new("Motor6D")
- MeshPart26 = Instance.new("MeshPart")
- Vector3Value27 = Instance.new("Vector3Value")
- Motor6D28 = Instance.new("Motor6D")
- MeshPart29 = Instance.new("MeshPart")
- Vector3Value30 = Instance.new("Vector3Value")
- Motor6D31 = Instance.new("Motor6D")
- MeshPart32 = Instance.new("MeshPart")
- Vector3Value33 = Instance.new("Vector3Value")
- Motor6D34 = Instance.new("Motor6D")
- MeshPart35 = Instance.new("MeshPart")
- Vector3Value36 = Instance.new("Vector3Value")
- Motor6D37 = Instance.new("Motor6D")
- MeshPart38 = Instance.new("MeshPart")
- Vector3Value39 = Instance.new("Vector3Value")
- Motor6D40 = Instance.new("Motor6D")
- MeshPart41 = Instance.new("MeshPart")
- Vector3Value42 = Instance.new("Vector3Value")
- Motor6D43 = Instance.new("Motor6D")
- Script44 = Instance.new("Script")
- MeshPart45 = Instance.new("MeshPart")
- Vector3Value46 = Instance.new("Vector3Value")
- Motor6D47 = Instance.new("Motor6D")
- MeshPart48 = Instance.new("MeshPart")
- Vector3Value49 = Instance.new("Vector3Value")
- Motor6D50 = Instance.new("Motor6D")
- MeshPart51 = Instance.new("MeshPart")
- Vector3Value52 = Instance.new("Vector3Value")
- Motor6D53 = Instance.new("Motor6D")
- MeshPart54 = Instance.new("MeshPart")
- Vector3Value55 = Instance.new("Vector3Value")
- Motor6D56 = Instance.new("Motor6D")
- MeshPart57 = Instance.new("MeshPart")
- Vector3Value58 = Instance.new("Vector3Value")
- Motor6D59 = Instance.new("Motor6D")
- Script60 = Instance.new("Script")
- Script61 = Instance.new("Script")
- Script62 = Instance.new("Script")
- StringValue63 = Instance.new("StringValue")
- StringValue64 = Instance.new("StringValue")
- Animation65 = Instance.new("Animation")
- StringValue66 = Instance.new("StringValue")
- Animation67 = Instance.new("Animation")
- StringValue68 = Instance.new("StringValue")
- Animation69 = Instance.new("Animation")
- NumberValue70 = Instance.new("NumberValue")
- Animation71 = Instance.new("Animation")
- NumberValue72 = Instance.new("NumberValue")
- StringValue73 = Instance.new("StringValue")
- Animation74 = Instance.new("Animation")
- StringValue75 = Instance.new("StringValue")
- Animation76 = Instance.new("Animation")
- StringValue77 = Instance.new("StringValue")
- Animation78 = Instance.new("Animation")
- StringValue79 = Instance.new("StringValue")
- Animation80 = Instance.new("Animation")
- StringValue81 = Instance.new("StringValue")
- Animation82 = Instance.new("Animation")
- StringValue83 = Instance.new("StringValue")
- Animation84 = Instance.new("Animation")
- Script85 = Instance.new("Script")
- Model0.Name = "Nightmare"
- Model0.Parent = mas
- Part1AA.Name = "Head"
- Part1AA.Parent = Model0
- Part1AA.CFrame = CFrame.new(-0.695644557, 4.56509781, -2.19861078, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- Part1AA.Orientation = Vector3.new(0, 90.1399994, 0)
- Part1AA.Position = Vector3.new(-0.695644557, 4.56509781, -2.19861078)
- Part1AA.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- Part1AA.Color = Color3.new(0, 0, 0)
- Part1AA.Size = Vector3.new(1, 1, 1)
- Part1AA.BottomSurface = Enum.SurfaceType.Smooth
- Part1AA.BrickColor = BrickColor.new("Artichoke")
- Part1AA.TopSurface = Enum.SurfaceType.Smooth
- Part1AA.brickColor = BrickColor.new("Artichoke")
- Part1AA.FormFactor = Enum.FormFactor.Custom
- Part1AA.formFactor = Enum.FormFactor.Custom
- SpecialMesh2.Parent = Part1AA
- SpecialMesh2.MeshId = "http://www.roblox.com/asset?id=419776358"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Vector3Value3.Name = "OriginalSize"
- Vector3Value3.Parent = Part1AA
- Vector3Value3.Value = Vector3.new(1, 1, 1)
- Motor6D4.Name = "Neck"
- Motor6D4.Parent = Part1AA
- Motor6D4.C0 = CFrame.new(0.000338107347, 0.806032121, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D4.C1 = CFrame.new(-2.72095203e-05, -0.565615535, 0.00386685133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D4.Part0 = MeshPart14
- Motor6D4.Part1 = Part1AA
- Motor6D4.part1 = Part1AA
- Decal5.Parent = Part1AA
- Decal5.Texture = "http://www.roblox.com/asset/?id=2939749348"
- Sound6.Name = "Moan"
- Sound6.Parent = Part1AA
- Sound6.SoundId = "rbxassetid://8248226944"
- Sound6.Volume = 1
- Sound7.Name = "Moan2"
- Sound7.Parent = Part1AA
- Sound7.SoundId = "rbxassetid://5786242867"
- Sound7.Volume = 1
- Sound8.Name = "Moan3"
- Sound8.Parent = Part1AA
- Sound8.SoundId = "rbxassetid://5721184414"
- Sound8.Volume = 1
- Sound9.Parent = Part1AA
- Sound9.SoundId = "rbxassetid://9067505447"
- Sound9.Volume = 1
- Sound10.Name = "Death"
- Sound10.Parent = Part1AA
- Part11.Name = "HumanoidRootPart"
- Part11.Parent = Model0
- Part11.CFrame = CFrame.new(-0.691856027, 2.32588005, -2.1985929, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- Part11.Orientation = Vector3.new(0, 90.1399994, 0)
- Part11.Position = Vector3.new(-145.023, 910.978, 334.575)
- Part11.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- Part11.Transparency = 1
- Part11.Size = Vector3.new(2, 2, 1)
- Part11.CanCollide = false
- Vector3Value12.Name = "OriginalSize"
- Vector3Value12.Parent = Part11
- Vector3Value12.Value = Vector3.new(2, 2, 1)
- BodyColors13.Parent = Model0
- BodyColors13.HeadColor = BrickColor.new("Really Black")
- BodyColors13.HeadColor3 = Color3.new(0, 0, 0)
- BodyColors13.LeftArmColor = BrickColor.new("Really Black")
- BodyColors13.LeftArmColor3 = Color3.new(0, 0, 0)
- BodyColors13.LeftLegColor = BrickColor.new("Really Black")
- BodyColors13.LeftLegColor3 = Color3.new(0, 0, 0)
- BodyColors13.RightArmColor = BrickColor.new("Really Black")
- BodyColors13.RightArmColor3 = Color3.new(0, 0, 0)
- BodyColors13.RightLegColor = BrickColor.new("Really Black")
- BodyColors13.RightLegColor3 = Color3.new(0, 0, 0)
- BodyColors13.TorsoColor = BrickColor.new("Really Black")
- BodyColors13.TorsoColor3 = Color3.new(0, 0, 0)
- MeshPart14.Name = "UpperTorso"
- MeshPart14.Parent = Model0
- MeshPart14.Transparency = 1
- Decal5A.Parent = MeshPart14
- Decal5A.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart14.CFrame = CFrame.new(-0.676263928, 3.1934495, -2.19829226, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart14.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart14.Position = Vector3.new(-0.676263928, 3.1934495, -2.19829226)
- MeshPart14.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart14.Color = Color3.new(0, 0, 0)
- MeshPart14.Size = Vector3.new(2.00029206, 1.60093355, 1.0005368)
- MeshPart14.BrickColor = BrickColor.new("Dark green")
- MeshPart14.brickColor = BrickColor.new("Dark green")
- Vector3Value15.Name = "OriginalSize"
- Vector3Value15.Parent = MeshPart14
- Vector3Value15.Value = Vector3.new(2.00029206, 1.60093355, 1.0005368)
- Motor6D16.Name = "Waist"
- Motor6D16.Parent = MeshPart14
- Motor6D16.C0 = CFrame.new(0.000280171633, 0.537143946, -0.0142721087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D16.C1 = CFrame.new(0.000338107347, -0.463463932, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D16.Part0 = MeshPart41
- Motor6D16.Part1 = MeshPart14
- Motor6D16.part1 = MeshPart14
- Script17.Name = "Damage Script"
- Script17.Parent = MeshPart14
- table.insert(cors,sandbox(Script17,function()
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 999
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Humanoid18.Name = "Zombie"
- Humanoid18.Parent = Model0
- Humanoid18.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Subject
- Humanoid18.Health = 125
- Humanoid18.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
- Humanoid18.HipHeight = 1.3500000238419
- Humanoid18.LeftLeg = MeshPart45
- Humanoid18.MaxHealth = 125
- Humanoid18.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid18.RigType = Enum.HumanoidRigType.R15
- Humanoid18.RightLeg = MeshPart20
- Humanoid18.Torso = Part11
- Humanoid18.WalkSpeed = 16
- Humanoid18.maxHealth = 125
- Script19.Parent = Model0
- table.insert(cors,sandbox(Script19,function()
- local larm = script.Parent:FindFirstChild("HumanoidRootPart")
- local rarm = script.Parent:FindFirstChild("HumanoidRootPart")
- local char = script.Parent
- local pathFinder = game:GetService("PathfindingService")
- local path = pathFinder:CreatePath()
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 100
- 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()
- local target = findNearestTorso(script.Parent.HumanoidRootPart.Position)
- if target ~= nil then
- path:ComputeAsync(char.HumanoidRootPart.Position, target.Position)
- for i, wayPoint in pairs(path:GetWaypoints()) do
- char.Zombie:MoveTo(wayPoint.Position)
- if wayPoint.Action == Enum.PathWaypointAction.Jump then
- char.Zombie:ChangeState(Enum.HumanoidStateType.Jumping)
- end
- char.Zombie.MoveToFinished:wait()
- end
- end
- end
- end))
- MeshPart20.Name = "RightUpperLeg"
- MeshPart20.Parent = Model0
- MeshPart20.Transparency = 1
- Decal5B.Parent = MeshPart20
- Decal5B.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart20.CFrame = CFrame.new(-0.67828238, 1.46466565, -2.69960117, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart20.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart20.Position = Vector3.new(-0.67828238, 1.46466565, -2.69960117)
- MeshPart20.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart20.Color = Color3.new(0, 0, 0)
- MeshPart20.Size = Vector3.new(1.00027561, 1.5362649, 1.00092912)
- MeshPart20.BrickColor = BrickColor.new("Bright blue")
- MeshPart20.CanCollide = false
- MeshPart20.brickColor = BrickColor.new("Bright blue")
- Vector3Value21.Name = "OriginalSize"
- Vector3Value21.Parent = MeshPart20
- Vector3Value21.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
- Motor6D22.Name = "RightHip"
- Motor6D22.Parent = MeshPart20
- Motor6D22.C0 = CFrame.new(0.505080223, -0.243262246, 0.00102789141, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D22.C1 = CFrame.new(0.00382620096, 0.484913796, 0.000486815348, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D22.Part0 = MeshPart41
- Motor6D22.Part1 = MeshPart20
- Motor6D22.part1 = MeshPart20
- MeshPart23.Name = "RightUpperArm"
- MeshPart23.Parent = Model0
- MeshPart23.Transparency = 1
- MeshPart23.CFrame = CFrame.new(-0.685997844, 3.29312539, -3.69646788, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart23.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart23.Position = Vector3.new(-0.685997844, 3.29312539, -3.69646788)
- MeshPart23.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart23.Color = Color3.new(0, 0, 0)
- MeshPart23.Size = Vector3.new(1.00027633, 1.39554, 1.00025082)
- MeshPart23.BrickColor = BrickColor.new("Cool yellow")
- MeshPart23.CanCollide = false
- Decal5C.Parent = MeshPart23
- Decal5C.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart23.brickColor = BrickColor.new("Cool yellow")
- Vector3Value24.Name = "OriginalSize"
- Vector3Value24.Parent = MeshPart23
- Vector3Value24.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
- Motor6D25.Name = "RightShoulder"
- Motor6D25.Parent = MeshPart23
- Motor6D25.C0 = CFrame.new(1.25031853, 0.5565539, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D25.C1 = CFrame.new(-0.24787569, 0.456878304, -0.00944012403, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D25.Part0 = MeshPart14
- Motor6D25.Part1 = MeshPart23
- Motor6D25.part1 = MeshPart23
- MeshPart26.Name = "RightLowerLeg"
- MeshPart26.Parent = Model0
- MeshPart26.Transparency = 1
- MeshPart26.CFrame = CFrame.new(-0.678020656, 0.910310864, -2.69960189, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart26.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart26.Position = Vector3.new(-0.678020656, 0.910310864, -2.69960189)
- MeshPart26.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart26.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- MeshPart26.Size = Vector3.new(1.00027585, 1.48964536, 1.00032854)
- MeshPart26.BrickColor = BrickColor.new("Bright blue")
- MeshPart26.CanCollide = false
- Decal5D.Parent = MeshPart26
- Decal5D.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart26.brickColor = BrickColor.new("Bright blue")
- Vector3Value27.Name = "OriginalSize"
- Vector3Value27.Parent = MeshPart26
- Vector3Value27.Value = Vector3.new(1.00027585, 1.48964536, 1.00032854)
- Motor6D28.Name = "RightKnee"
- Motor6D28.Parent = MeshPart26
- Motor6D28.C0 = CFrame.new(0.00382620096, -0.265086174, 0.000426991843, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D28.C1 = CFrame.new(0.00382620096, 0.289268613, 0.000145851634, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D28.Part0 = MeshPart20
- Motor6D28.Part1 = MeshPart26
- Motor6D28.part1 = MeshPart26
- MeshPart29.Name = "RightLowerArm"
- MeshPart29.Parent = Model0
- MeshPart29.Transparency = 1
- local RightLowerArmFire = Instance.new("Fire", MeshPart29)
- RightLowerArmFire.Size = 2
- RightLowerArmFire.Color = Color3.new(255,255,255)
- RightLowerArmFire.Heat = 0
- Decal5E.Parent = MeshPart29
- Decal5E.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart29.CFrame = CFrame.new(-0.685555518, 2.90703535, -3.69646835, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart29.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart29.Position = Vector3.new(-0.685555518, 2.90703535, -3.69646835)
- MeshPart29.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart29.Color = Color3.new(0.992157, 0.917647, 0.552941)
- MeshPart29.Size = Vector3.new(1.00027657, 1.26567209, 1.00025082)
- MeshPart29.BrickColor = BrickColor.new("Cool yellow")
- MeshPart29.CanCollide = false
- MeshPart29.brickColor = BrickColor.new("Cool yellow")
- Vector3Value30.Name = "OriginalSize"
- Vector3Value30.Parent = MeshPart29
- Vector3Value30.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
- Motor6D31.Name = "RightElbow"
- Motor6D31.Parent = MeshPart29
- Motor6D31.C0 = CFrame.new(0.00214397907, -0.263139546, -0.00944012403, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D31.C1 = CFrame.new(0.00214457512, 0.122950554, -0.00989595056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D31.Part0 = MeshPart23
- Motor6D31.Part1 = MeshPart29
- Motor6D31.part1 = MeshPart29
- MeshPart32.Name = "RightHand"
- MeshPart32.Parent = Model0
- MeshPart32.Transparency = 1
- Decal5F.Parent = MeshPart32
- Decal5F.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart32.CFrame = CFrame.new(-0.680041432, 2.1668787, -3.69776106, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart32.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart32.Position = Vector3.new(-0.680041432, 2.1668787, -3.69776106)
- MeshPart32.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart32.Color = Color3.new(0.992157, 0.917647, 0.552941)
- MeshPart32.Size = Vector3.new(0.999299049, 0.335255772, 1.00029743)
- MeshPart32.BrickColor = BrickColor.new("Cool yellow")
- MeshPart32.CanCollide = false
- MeshPart32.brickColor = BrickColor.new("Cool yellow")
- Vector3Value33.Name = "OriginalSize"
- Vector3Value33.Parent = MeshPart32
- Vector3Value33.Value = Vector3.new(0.999299049, 0.335255772, 1.00029743)
- Motor6D34.Name = "RightWrist"
- Motor6D34.Parent = MeshPart32
- Motor6D34.C0 = CFrame.new(0.00214457512, -0.682049513, -0.00989595056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D34.C1 = CFrame.new(0.000865101814, 0.058106944, -0.0154390335, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D34.Part0 = MeshPart29
- Motor6D34.Part1 = MeshPart32
- Motor6D34.part1 = MeshPart32
- MeshPart35.Name = "RightFoot"
- MeshPart35.Parent = Model0
- MeshPart35.Transparency = 1
- Decal5G.Parent = MeshPart35
- Decal5G.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart35.CFrame = CFrame.new(-0.677906275, 0.167736173, -2.69441152, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart35.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart35.Position = Vector3.new(-0.677906275, 0.167736173, -2.69441152)
- MeshPart35.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart35.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- MeshPart35.Size = Vector3.new(1.00063133, 0.335407376, 1.00020337)
- MeshPart35.BrickColor = BrickColor.new("Bright blue")
- MeshPart35.CanCollide = false
- MeshPart35.brickColor = BrickColor.new("Bright blue")
- Vector3Value36.Name = "OriginalSize"
- Vector3Value36.Parent = MeshPart35
- Vector3Value36.Value = Vector3.new(1.00063133, 0.335407376, 1.00020337)
- Motor6D37.Name = "RightAnkle"
- Motor6D37.Parent = MeshPart35
- Motor6D37.C0 = CFrame.new(0.00382620096, -0.710731506, 0.000283418223, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D37.C1 = CFrame.new(0.00901681185, 0.0318431854, 0.000155551359, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D37.Part0 = MeshPart26
- Motor6D37.Part1 = MeshPart35
- Motor6D37.part1 = MeshPart35
- MeshPart38.Name = "LeftFoot"
- MeshPart38.Parent = Model0
- MeshPart38.Transparency = 1
- Decal5H.Parent = MeshPart38
- Decal5H.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart38.CFrame = CFrame.new(-0.675512314, 0.167736173, -1.70284736, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart38.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart38.Position = Vector3.new(-0.675512314, 0.167736173, -1.70284736)
- MeshPart38.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart38.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- MeshPart38.Size = Vector3.new(1.00063133, 0.335407257, 1.00020337)
- MeshPart38.BrickColor = BrickColor.new("Bright blue")
- MeshPart38.CanCollide = false
- MeshPart38.brickColor = BrickColor.new("Bright blue")
- Vector3Value39.Name = "OriginalSize"
- Vector3Value39.Parent = MeshPart38
- Vector3Value39.Value = Vector3.new(1.00063133, 0.335407257, 1.00020337)
- Motor6D40.Name = "LeftAnkle"
- Motor6D40.Parent = MeshPart38
- Motor6D40.C0 = CFrame.new(-0.00382620096, -0.710131407, 0.00030554086, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D40.C1 = CFrame.new(-0.00901681185, 0.032443285, 0.000177569687, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D40.Part0 = MeshPart51
- Motor6D40.Part1 = MeshPart38
- Motor6D40.part1 = MeshPart38
- MeshPart41.Name = "LowerTorso"
- MeshPart41.Parent = Model0
- MeshPart41.Transparency = 1
- Decal6H.Parent = MeshPart41
- Decal6H.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart41.CFrame = CFrame.new(-0.677587926, 2.19284177, -2.19834709, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart41.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart41.Position = Vector3.new(-0.677587926, 2.19284177, -2.19834709)
- MeshPart41.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart41.Color = Color3.new(0.156863, 0.498039, 0.278431)
- MeshPart41.Size = Vector3.new(2.00017595, 0.400037616, 1.00021255)
- MeshPart41.BrickColor = BrickColor.new("Dark green")
- MeshPart41.brickColor = BrickColor.new("Dark green")
- Vector3Value42.Name = "OriginalSize"
- Vector3Value42.Parent = MeshPart41
- Vector3Value42.Value = Vector3.new(2.00017595, 0.400037616, 1.00021255)
- Motor6D43.Name = "Root"
- Motor6D43.Parent = MeshPart41
- Motor6D43.C1 = CFrame.new(0.000280171633, 0.133037761, -0.0142721087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D43.Part0 = Part11
- Motor6D43.Part1 = MeshPart41
- Motor6D43.part1 = MeshPart41
- Script44.Name = "Damage Script"
- Script44.Parent = MeshPart41
- table.insert(cors,sandbox(Script44,function()
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 999
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- MeshPart45.Name = "LeftUpperLeg"
- MeshPart45.Parent = Model0
- MeshPart45.Transparency = 1
- Decal7H.Parent = MeshPart45
- Decal7H.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart45.CFrame = CFrame.new(-0.675863564, 1.46466565, -1.69765592, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart45.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart45.Position = Vector3.new(-0.675863564, 1.46466565, -1.69765592)
- MeshPart45.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart45.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- MeshPart45.Size = Vector3.new(1.00027561, 1.5362649, 1.00092912)
- MeshPart45.BrickColor = BrickColor.new("Bright blue")
- MeshPart45.CanCollide = false
- MeshPart45.brickColor = BrickColor.new("Bright blue")
- Vector3Value46.Name = "OriginalSize"
- Vector3Value46.Parent = MeshPart45
- Vector3Value46.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
- Motor6D47.Name = "LeftHip"
- Motor6D47.Parent = MeshPart45
- Motor6D47.C0 = CFrame.new(-0.50451982, -0.243062243, 0.00122789107, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D47.C1 = CFrame.new(-0.00382620096, 0.4851138, 0.000686740503, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D47.Part0 = MeshPart41
- Motor6D47.Part1 = MeshPart45
- Motor6D47.part1 = MeshPart45
- MeshPart48.Name = "LeftUpperArm"
- MeshPart48.Parent = Model0
- MeshPart48.Transparency = 1
- Decal8H.Parent = MeshPart48
- Decal8H.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart48.CFrame = CFrame.new(-0.678766429, 3.29312539, -0.700763106, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart48.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart48.Position = Vector3.new(-0.678766429, 3.29312539, -0.700763106)
- MeshPart48.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart48.Color = Color3.new(0.992157, 0.917647, 0.552941)
- MeshPart48.Size = Vector3.new(1.00027633, 1.39554, 1.00025082)
- MeshPart48.BrickColor = BrickColor.new("Cool yellow")
- MeshPart48.CanCollide = false
- MeshPart48.brickColor = BrickColor.new("Cool yellow")
- Vector3Value49.Name = "OriginalSize"
- Vector3Value49.Parent = MeshPart48
- Vector3Value49.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
- Motor6D50.Name = "LeftShoulder"
- Motor6D50.Parent = MeshPart48
- Motor6D50.C0 = CFrame.new(-1.24955308, 0.556408584, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D50.C1 = CFrame.new(0.247964978, 0.456732988, -0.00943991542, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D50.Part0 = MeshPart14
- Motor6D50.Part1 = MeshPart48
- Motor6D50.part1 = MeshPart48
- MeshPart51.Name = "LeftLowerLeg"
- MeshPart51.Parent = Model0
- MeshPart51.Transparency = 1
- Decal9H.Parent = MeshPart51
- Decal9H.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart51.CFrame = CFrame.new(-0.67560178, 0.910310864, -1.69765651, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart51.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart51.Position = Vector3.new(-0.67560178, 0.910310864, -1.69765651)
- MeshPart51.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart51.Color = Color3.new(0, 0, 0)
- MeshPart51.Size = Vector3.new(1.00027585, 1.48964536, 1.00032866)
- MeshPart51.BrickColor = BrickColor.new("Bright blue")
- MeshPart51.CanCollide = false
- MeshPart51.brickColor = BrickColor.new("Bright blue")
- Vector3Value52.Name = "OriginalSize"
- Vector3Value52.Parent = MeshPart51
- Vector3Value52.Value = Vector3.new(1.00027585, 1.48964536, 1.00032866)
- Motor6D53.Name = "LeftKnee"
- Motor6D53.Parent = MeshPart51
- Motor6D53.C0 = CFrame.new(-0.00382620096, -0.264486194, 0.000586740673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D53.C1 = CFrame.new(-0.00382620096, 0.289868593, 0.00030554086, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D53.Part0 = MeshPart45
- Motor6D53.Part1 = MeshPart51
- Motor6D53.part1 = MeshPart51
- MeshPart54.Name = "LeftLowerArm"
- MeshPart54.Parent = Model0
- MeshPart54.Transparency = 1
- local LeftLowerArmFire = Instance.new("Fire", MeshPart54)
- LeftLowerArmFire.Size = 2
- LeftLowerArmFire.Color = Color3.new(255,255,255)
- LeftLowerArmFire.Heat = 0
- Decal10H.Parent = MeshPart54
- Decal10H.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart54.CFrame = CFrame.new(-0.678323925, 2.90703535, -0.700764775, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart54.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart54.Position = Vector3.new(-0.678323925, 2.90703535, -0.700764775)
- MeshPart54.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart54.Color = Color3.new(0.992157, 0.917647, 0.552941)
- MeshPart54.Size = Vector3.new(1.00027657, 1.26567209, 1.00025082)
- MeshPart54.BrickColor = BrickColor.new("Cool yellow")
- MeshPart54.CanCollide = false
- MeshPart54.brickColor = BrickColor.new("Cool yellow")
- Vector3Value55.Name = "OriginalSize"
- Vector3Value55.Parent = MeshPart54
- Vector3Value55.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
- Motor6D56.Name = "LeftElbow"
- Motor6D56.Parent = MeshPart54
- Motor6D56.C0 = CFrame.new(-0.00166511536, -0.263139546, -0.00943991542, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D56.C1 = CFrame.new(-0.0016657114, 0.122950554, -0.00989592075, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D56.Part0 = MeshPart48
- Motor6D56.Part1 = MeshPart54
- Motor6D56.part1 = MeshPart54
- MeshPart57.Name = "LeftHand"
- MeshPart57.Parent = Model0
- MeshPart57.Transparency = 1
- Decal11H.Parent = MeshPart57
- Decal11H.Texture = "http://www.roblox.com/asset/?id=15507643492"
- MeshPart57.CFrame = CFrame.new(-0.67280364, 2.1668787, -0.699498653, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
- MeshPart57.Orientation = Vector3.new(0, 90.1399994, 0)
- MeshPart57.Position = Vector3.new(-0.67280364, 2.1668787, -0.699498653)
- MeshPart57.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
- MeshPart57.Color = Color3.new(0.992157, 0.917647, 0.552941)
- MeshPart57.Size = Vector3.new(0.999299049, 0.335255831, 1.00029743)
- MeshPart57.BrickColor = BrickColor.new("Cool yellow")
- MeshPart57.CanCollide = false
- MeshPart57.brickColor = BrickColor.new("Cool yellow")
- Vector3Value58.Name = "OriginalSize"
- Vector3Value58.Parent = MeshPart57
- Vector3Value58.Value = Vector3.new(0.999299049, 0.335255831, 1.00029743)
- Motor6D59.Name = "LeftWrist"
- Motor6D59.Parent = MeshPart57
- Motor6D59.C0 = CFrame.new(-0.0016657114, -0.682255626, -0.00989592075, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D59.C1 = CFrame.new(-0.000386238098, 0.0579008311, -0.0154390335, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D59.Part0 = MeshPart54
- Motor6D59.Part1 = MeshPart57
- Motor6D59.part1 = MeshPart57
- Script60.Name = "Respawn"
- Script60.Parent = Model0
- table.insert(cors,sandbox(Script60,function()
- z = Part11
- backup = z:clone()
- while true do
- wait(5)
- if z.Zombie.Health == 0 then
- z:Remove()
- wait(4)
- backup.Parent = game.Workspace
- backup.Head:MakeJoints()
- backup.Torso:MakeJoints()
- end
- if z == nil then
- wait(4)
- backup.Parent = game.Workspace
- backup.Head:MakeJoints()
- backup.Torso:MakeJoints()
- end
- end
- end))
- Script61.Name = "Health"
- Script61.Parent = Model0
- table.insert(cors,sandbox(Script61,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))
- Script62.Name = "Animate"
- Script62.Parent = Model0
- table.insert(cors,sandbox(Script62,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=", weight = 1 },
- { id = "http://www.roblox.com/asset/?id=", weight = 1 },
- { id = "http://www.roblox.com/asset/?id=", weight = 9 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=", weight = 10 }
- },
- run = {
- { id = "http://www.roblox.com/asset/?id=", weight = 10 }
- },
- swim = {
- { id = "http://www.roblox.com/asset/?id=", weight = 10 }
- },
- swimidle = {
- { id = "http://www.roblox.com/asset/?id=", weight = 10 }
- },
- jump = {
- { id = "http://www.roblox.com/asset/?id=", weight = 10 }
- },
- fall = {
- { id = "http://www.roblox.com/asset/?id=", weight = 10 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=", weight = 10 }
- },
- sit = {
- { id = "http://www.roblox.com/asset/?id=", 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
- local anim = animTable[animName][idx].anim
- 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))
- StringValue63.Name = "msg"
- StringValue63.Parent = Script62
- StringValue64.Name = "climb"
- StringValue64.Parent = Script62
- Animation65.Name = "ClimbAnim"
- Animation65.Parent = StringValue64
- Animation65.AnimationId = "http://www.roblox.com/asset/?id="
- StringValue66.Name = "fall"
- StringValue66.Parent = Script62
- Animation67.Name = "FallAnim"
- Animation67.Parent = StringValue66
- Animation67.AnimationId = "http://www.roblox.com/asset/?id="
- StringValue68.Name = "idle"
- StringValue68.Parent = Script62
- Animation69.Name = "Animation1"
- Animation69.Parent = StringValue68
- Animation69.AnimationId = "http://www.roblox.com/asset/?id="
- NumberValue70.Name = "Weight"
- NumberValue70.Parent = Animation69
- NumberValue70.Value = 9
- Animation71.Name = "Animation2"
- Animation71.Parent = StringValue68
- Animation71.AnimationId = "http://www.roblox.com/asset/?id="
- NumberValue72.Name = "Weight"
- NumberValue72.Parent = Animation71
- NumberValue72.Value = 1
- StringValue73.Name = "jump"
- StringValue73.Parent = Script62
- Animation74.Name = "JumpAnim"
- Animation74.Parent = StringValue73
- Animation74.AnimationId = "http://www.roblox.com/asset/?id="
- StringValue75.Name = "sit"
- StringValue75.Parent = Script62
- Animation76.Name = "SitAnim"
- Animation76.Parent = StringValue75
- Animation76.AnimationId = "http://www.roblox.com/asset/?id="
- StringValue77.Name = "swim"
- StringValue77.Parent = Script62
- Animation78.Name = "Swim"
- Animation78.Parent = StringValue77
- Animation78.AnimationId = "http://www.roblox.com/asset/?id="
- StringValue79.Name = "swimidle"
- StringValue79.Parent = Script62
- Animation80.Name = "SwimIdle"
- Animation80.Parent = StringValue79
- Animation80.AnimationId = "http://www.roblox.com/asset/?id="
- StringValue81.Name = "toolnone"
- StringValue81.Parent = Script62
- Animation82.Name = "ToolNoneAnim"
- Animation82.Parent = StringValue81
- Animation82.AnimationId = "http://www.roblox.com/asset/?id="
- StringValue83.Name = "walk"
- StringValue83.Parent = Script62
- Animation84.Name = "RunAnim"
- Animation84.Parent = StringValue83
- Animation84.AnimationId = "http://www.roblox.com/asset/?id="
- Script85.Name = "SoundScript"
- Script85.Parent = Model0
- table.insert(cors,sandbox(Script85,function()
- local moan = script.Parent.Head.Moan
- local moan2 = script.parent.Head.Moan2
- local moan3 = script.parent.Head.Moan3
- local moan4 = script.Parent.Head.Moan4
- while true do
- moan:Play()
- wait(8)
- moan2:Play()
- wait(5)
- moan3:Play()
- wait(7)
- moan4:Play()
- wait(6)
- end
- local death = script.Parent.Head.Death
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end
- for i = 1,1 do
- createZombie()
- end
- RunLabel.Parent = ScreenGui
- RunLabel.BackgroundTransparency = 1
- RunLabel.Size = UDim2.new(2, 0, 2, 0)
- RunLabel.Position = UDim2.new(-0.5, 0, -0.4 ,-255)
- RunLabel.TextXAlignment = Enum.TextXAlignment.Center
- RunLabel.TextScaled = true
- RunLabel.Text = ""
- RunLabel.TextColor3 = Color3.new(155, 0, 0)
- RunLabel.Font = Enum.Font.IndieFlower
- game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
- game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.Classic
- game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
- local EyesLabel = Instance.new("TextLabel")
- local EyeImage = Instance.new("ImageButton")
- local EyeImageUICorner = Instance.new("UICorner")
- local Eye = 9
- EyesLabel.Name = "EyesLabel"
- EyesLabel.Parent = ScreenGui
- EyesLabel.Position = UDim2.new(0.88, 0, 0.2, 0)
- EyesLabel.Size = UDim2.new(0, 155, 0, 95)
- EyesLabel.Font = Enum.Font.IndieFlower
- EyesLabel.Text = "X10"
- EyesLabel.BackgroundTransparency = 1
- EyesLabel.TextColor3 = Color3.new(255, 255, 255)
- EyesLabel.TextSize = 85
- EyeImage.Name = "EyeImage"
- EyeImage.Parent = ScreenGui
- EyeImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- EyeImage.Position = UDim2.new(0.85, 0, 0.25, 0)
- EyeImage.Size = UDim2.new(0, 70, 0, 50)
- EyeImage.BorderSizePixel = 0
- EyeImage.Image = "rbxassetid://15537763305"
- EyeImageUICorner.Parent = EyeImage
- EyeImageUICorner.CornerRadius = UDim.new(0.5, 0)
- EyeImage.MouseButton1Down:connect(function()
- EyeSound:Play()
- View.Saturation = View.Saturation - 2
- View.Contrast = View.Contrast + 2
- cam.CameraSubject = Part1AA
- local HeadLight = Instance.new("PointLight")
- HeadLight.Parent = Part1AA
- HeadLight.Color = Color3.new(255, 255, 255)
- HeadLight.Range = 35
- HeadLight.Brightness = 15
- EyesLabel.Text = "X"..Eye
- Eye = Eye - 1
- wait(5)
- View.Saturation = View.Saturation + 2
- View.Contrast = View.Contrast - 2
- HeadLight.Parent = AA
- cam.CameraSubject = character
- end)
- EyeImage.Visible = false
- EyesLabel.Visible = false
- local SoulsLabel = Instance.new("TextLabel")
- local SoulClickDetector1 = Instance.new("ClickDetector")
- local SoulClickDetector2 = Instance.new("ClickDetector")
- local SoulClickDetector3 = Instance.new("ClickDetector")
- local SoulClickDetector4 = Instance.new("ClickDetector")
- local SoulClickDetector5 = Instance.new("ClickDetector")
- local SoulClickDetector6 = Instance.new("ClickDetector")
- local SoulClickDetector7 = Instance.new("ClickDetector")
- local SoulClickDetector8 = Instance.new("ClickDetector")
- local SoulClickDetector9 = Instance.new("ClickDetector")
- local SoulClickDetector10 = Instance.new("ClickDetector")
- local SoulClickDetector11 = Instance.new("ClickDetector")
- local SoulClickDetector12 = Instance.new("ClickDetector")
- local SoulClickDetector13 = Instance.new("ClickDetector")
- local SoulClickDetector14 = Instance.new("ClickDetector")
- local SoulClickDetector15 = Instance.new("ClickDetector")
- local SoulClickDetector16 = Instance.new("ClickDetector")
- local SoulClickDetector17 = Instance.new("ClickDetector")
- local SoulClickDetector18 = Instance.new("ClickDetector")
- local SoulClickDetector19 = Instance.new("ClickDetector")
- local SoulClickDetector20 = Instance.new("ClickDetector")
- local SoulClickDetector21 = Instance.new("ClickDetector")
- local SoulClickDetector22 = Instance.new("ClickDetector")
- local SoulClickDetector23 = Instance.new("ClickDetector")
- local SoulClickDetector24 = Instance.new("ClickDetector")
- local SoulClickDetector25 = Instance.new("ClickDetector")
- local SoulPart1 = Instance.new("Part")
- local SoulPart2 = Instance.new("Part")
- local SoulPart3 = Instance.new("Part")
- local SoulPart4 = Instance.new("Part")
- local SoulPart5 = Instance.new("Part")
- local SoulPart6 = Instance.new("Part")
- local SoulPart7 = Instance.new("Part")
- local SoulPart8 = Instance.new("Part")
- local SoulPart9 = Instance.new("Part")
- local SoulPart10 = Instance.new("Part")
- local SoulPart11 = Instance.new("Part")
- local SoulPart12 = Instance.new("Part")
- local SoulPart13 = Instance.new("Part")
- local SoulPart14 = Instance.new("Part")
- local SoulPart15 = Instance.new("Part")
- local SoulPart16 = Instance.new("Part")
- local SoulPart17 = Instance.new("Part")
- local SoulPart18 = Instance.new("Part")
- local SoulPart19 = Instance.new("Part")
- local SoulPart20 = Instance.new("Part")
- local SoulPart21 = Instance.new("Part")
- local SoulPart22 = Instance.new("Part")
- local SoulPart23 = Instance.new("Part")
- local SoulPart24 = Instance.new("Part")
- local SoulPart25 = Instance.new("Part")
- local Soul = 1
- local SoulSound = Instance.new("Sound")
- local Id = "297569488"
- SoulSound.Parent = game.Workspace
- SoulSound.SoundId = "rbxassetid://"..Id
- SoulSound.Playing = true
- SoulSound.Looped = false
- SoulSound.Volume = 1
- SoulSound:Stop()
- SoulsLabel.Name = "SoulsLabel"
- SoulsLabel.Parent = ScreenGui
- SoulsLabel.Position = UDim2.new(0.42, 0, 0.7, 0)
- SoulsLabel.Size = UDim2.new(0, 155, 0, 95)
- SoulsLabel.Font = Enum.Font.IndieFlower
- SoulsLabel.BackgroundTransparency = 1
- SoulsLabel.TextColor3 = Color3.new(255, 255, 255)
- SoulsLabel.TextSize = 50
- SoulsLabel.Visible = false
- SoulPart1.Parent = workspace
- SoulPart1.Anchored = true
- SoulPart1.Size = Vector3.new(2, 2, 2)
- SoulPart1.CanCollide = true
- SoulPart1.Position = Vector3.new(-17.272, 910.659, 189.895)
- SoulPart1.BrickColor = BrickColor.new("Institutional white")
- SoulPart1.Material = "ForceField"
- local SoulPart1Mesh = Instance.new("SpecialMesh", SoulPart1)
- SoulPart1Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart1Fire = Instance.new("Fire", SoulPart1)
- SoulPart1Fire.Size = 5
- SoulPart1Fire.Color = Color3.new(255,255,255)
- SoulPart1Fire.Heat = 0
- SoulPart2.Parent = workspace
- SoulPart2.Anchored = true
- SoulPart2.Size = Vector3.new(2, 2, 2)
- SoulPart2.CanCollide = true
- SoulPart2.Position = Vector3.new(-34.207, 906.978, 229.859)
- SoulPart2.BrickColor = BrickColor.new("Institutional white")
- SoulPart2.Material = "ForceField"
- local SoulPart2Mesh = Instance.new("SpecialMesh", SoulPart2)
- SoulPart2Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart2Fire = Instance.new("Fire", SoulPart2)
- SoulPart2Fire.Size = 5
- SoulPart2Fire.Color = Color3.new(255,255,255)
- SoulPart2Fire.Heat = 0
- SoulPart3.Parent = workspace
- SoulPart3.Anchored = true
- SoulPart3.Size = Vector3.new(2, 2, 2)
- SoulPart3.CanCollide = true
- SoulPart3.Position = Vector3.new(-116.122, 908.978, 264.69)
- SoulPart3.BrickColor = BrickColor.new("Institutional white")
- SoulPart3.Material = "ForceField"
- local SoulPart3Mesh = Instance.new("SpecialMesh", SoulPart3)
- SoulPart3Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart3Fire = Instance.new("Fire", SoulPart3)
- SoulPart3Fire.Size = 5
- SoulPart3Fire.Color = Color3.new(255,255,255)
- SoulPart3Fire.Heat = 0
- SoulPart4.Parent = workspace
- SoulPart4.Anchored = true
- SoulPart4.Size = Vector3.new(2, 2, 2)
- SoulPart4.CanCollide = true
- SoulPart4.Position = Vector3.new(-140.741, 908.978, 304.415)
- SoulPart4.BrickColor = BrickColor.new("Institutional white")
- SoulPart4.Material = "ForceField"
- local SoulPart4Mesh = Instance.new("SpecialMesh", SoulPart4)
- SoulPart4Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart4Fire = Instance.new("Fire", SoulPart4)
- SoulPart4Fire.Size = 5
- SoulPart4Fire.Color = Color3.new(255,255,255)
- SoulPart4Fire.Heat = 0
- SoulPart5.Parent = workspace
- SoulPart5.Anchored = true
- SoulPart5.Size = Vector3.new(2, 2, 2)
- SoulPart5.CanCollide = true
- SoulPart5.Position = Vector3.new(-105.639, 907.978, 131.407)
- SoulPart5.BrickColor = BrickColor.new("Institutional white")
- SoulPart5.Material = "ForceField"
- local SoulPart5Mesh = Instance.new("SpecialMesh", SoulPart5)
- SoulPart5Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart5Fire = Instance.new("Fire", SoulPart5)
- SoulPart5Fire.Size = 5
- SoulPart5Fire.Color = Color3.new(255,255,255)
- SoulPart5Fire.Heat = 0
- SoulPart6.Parent = workspace
- SoulPart6.Anchored = true
- SoulPart6.Size = Vector3.new(2, 2, 2)
- SoulPart6.CanCollide = true
- SoulPart6.Position = Vector3.new(38.775, 911.424, 121.79)
- SoulPart6.BrickColor = BrickColor.new("Institutional white")
- SoulPart6.Material = "ForceField"
- local SoulPart6Mesh = Instance.new("SpecialMesh", SoulPart6)
- SoulPart6Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart6Fire = Instance.new("Fire", SoulPart6)
- SoulPart6Fire.Size = 5
- SoulPart6Fire.Color = Color3.new(255,255,255)
- SoulPart6Fire.Heat = 0
- SoulPart7.Parent = workspace
- SoulPart7.Anchored = true
- SoulPart7.Size = Vector3.new(2, 2, 2)
- SoulPart7.CanCollide = true
- SoulPart7.Position = Vector3.new(53.61, 907.978, 195.923)
- SoulPart7.BrickColor = BrickColor.new("Institutional white")
- SoulPart7.Material = "ForceField"
- local SoulPart7Mesh = Instance.new("SpecialMesh", SoulPart7)
- SoulPart7Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart7Fire = Instance.new("Fire", SoulPart7)
- SoulPart7Fire.Size = 5
- SoulPart7Fire.Color = Color3.new(255,255,255)
- SoulPart7Fire.Heat = 0
- SoulPart8.Parent = workspace
- SoulPart8.Anchored = true
- SoulPart8.Size = Vector3.new(2, 2, 2)
- SoulPart8.CanCollide = true
- SoulPart8.Position = Vector3.new(53.84, 907.978, 330.798)
- SoulPart8.BrickColor = BrickColor.new("Institutional white")
- SoulPart8.Material = "ForceField"
- local SoulPart8Mesh = Instance.new("SpecialMesh", SoulPart8)
- SoulPart8Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart8Fire = Instance.new("Fire", SoulPart8)
- SoulPart8Fire.Size = 5
- SoulPart8Fire.Color = Color3.new(255,255,255)
- SoulPart8Fire.Heat = 0
- SoulPart9.Parent = workspace
- SoulPart9.Anchored = true
- SoulPart9.Size = Vector3.new(2, 2, 2)
- SoulPart9.CanCollide = true
- SoulPart9.Position = Vector3.new(16.481, 907.978, 313.223)
- SoulPart9.BrickColor = BrickColor.new("Institutional white")
- SoulPart9.Material = "ForceField"
- local SoulPart9Mesh = Instance.new("SpecialMesh", SoulPart9)
- SoulPart9Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart9Fire = Instance.new("Fire", SoulPart9)
- SoulPart9Fire.Size = 5
- SoulPart9Fire.Color = Color3.new(255,255,255)
- SoulPart9Fire.Heat = 0
- SoulPart10.Parent = workspace
- SoulPart10.Anchored = true
- SoulPart10.Size = Vector3.new(2, 2, 2)
- SoulPart10.CanCollide = true
- SoulPart10.Position = Vector3.new(-20.907, 907.978, 335.521)
- SoulPart10.BrickColor = BrickColor.new("Institutional white")
- SoulPart10.Material = "ForceField"
- local SoulPart10Mesh = Instance.new("SpecialMesh", SoulPart10)
- SoulPart10Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart10Fire = Instance.new("Fire", SoulPart10)
- SoulPart10Fire.Size = 5
- SoulPart10Fire.Color = Color3.new(255,255,255)
- SoulPart10Fire.Heat = 0
- SoulPart11.Parent = workspace
- SoulPart11.Anchored = true
- SoulPart11.Size = Vector3.new(2, 2, 2)
- SoulPart11.CanCollide = true
- SoulPart11.Position = Vector3.new(-35.205, 910.532, 304.006)
- SoulPart11.BrickColor = BrickColor.new("Institutional white")
- SoulPart11.Material = "ForceField"
- local SoulPart11Mesh = Instance.new("SpecialMesh", SoulPart11)
- SoulPart11Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart11Fire = Instance.new("Fire", SoulPart11)
- SoulPart11Fire.Size = 5
- SoulPart11Fire.Color = Color3.new(255,255,255)
- SoulPart11Fire.Heat = 0
- SoulPart12.Parent = workspace
- SoulPart12.Anchored = true
- SoulPart12.Size = Vector3.new(2, 2, 2)
- SoulPart12.CanCollide = true
- SoulPart12.Position = Vector3.new(-60.018, 908.003, 270.883)
- SoulPart12.BrickColor = BrickColor.new("Institutional white")
- SoulPart12.Material = "ForceField"
- local SoulPart12Mesh = Instance.new("SpecialMesh", SoulPart12)
- SoulPart12Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart12Fire = Instance.new("Fire", SoulPart12)
- SoulPart12Fire.Size = 5
- SoulPart12Fire.Color = Color3.new(255,255,255)
- SoulPart12Fire.Heat = 0
- SoulPart13.Parent = workspace
- SoulPart13.Anchored = true
- SoulPart13.Size = Vector3.new(2, 2, 2)
- SoulPart13.CanCollide = true
- SoulPart13.Position = Vector3.new(-146.327, 907.978, 269.73)
- SoulPart13.BrickColor = BrickColor.new("Institutional white")
- SoulPart13.Material = "ForceField"
- local SoulPart13Mesh = Instance.new("SpecialMesh", SoulPart13)
- SoulPart13Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart13Fire = Instance.new("Fire", SoulPart13)
- SoulPart13Fire.Size = 5
- SoulPart13Fire.Color = Color3.new(255,255,255)
- SoulPart13Fire.Heat = 0
- SoulPart14.Parent = workspace
- SoulPart14.Anchored = true
- SoulPart14.Size = Vector3.new(2, 2, 2)
- SoulPart14.CanCollide = true
- SoulPart14.Position = Vector3.new(24.117, 907.978, 205.102)
- SoulPart14.BrickColor = BrickColor.new("Institutional white")
- SoulPart14.Material = "ForceField"
- local SoulPart14Mesh = Instance.new("SpecialMesh", SoulPart14)
- SoulPart14Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart14Fire = Instance.new("Fire", SoulPart14)
- SoulPart14Fire.Size = 5
- SoulPart14Fire.Color = Color3.new(255,255,255)
- SoulPart14Fire.Heat = 0
- SoulPart15.Parent = workspace
- SoulPart15.Anchored = true
- SoulPart15.Size = Vector3.new(2, 2, 2)
- SoulPart15.CanCollide = true
- SoulPart15.Position = Vector3.new(-116.44, 906.978, 207.709)
- SoulPart15.BrickColor = BrickColor.new("Institutional white")
- SoulPart15.Material = "ForceField"
- local SoulPart15Mesh = Instance.new("SpecialMesh", SoulPart15)
- SoulPart15Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart15Fire = Instance.new("Fire", SoulPart15)
- SoulPart15Fire.Size = 5
- SoulPart15Fire.Color = Color3.new(255,255,255)
- SoulPart15Fire.Heat = 0
- SoulPart16.Parent = workspace
- SoulPart16.Anchored = true
- SoulPart16.Size = Vector3.new(2, 2, 2)
- SoulPart16.CanCollide = true
- SoulPart16.Position = Vector3.new(-148.776, 907.978, 167.948)
- SoulPart16.BrickColor = BrickColor.new("Institutional white")
- SoulPart16.Material = "ForceField"
- local SoulPart16Mesh = Instance.new("SpecialMesh", SoulPart16)
- SoulPart16Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart16Fire = Instance.new("Fire", SoulPart16)
- SoulPart16Fire.Size = 5
- SoulPart16Fire.Color = Color3.new(255,255,255)
- SoulPart16Fire.Heat = 0
- SoulPart17.Parent = workspace
- SoulPart17.Anchored = true
- SoulPart17.Size = Vector3.new(2, 2, 2)
- SoulPart17.CanCollide = true
- SoulPart17.Position = Vector3.new(-40.15, 908.003, 103.196)
- SoulPart17.BrickColor = BrickColor.new("Institutional white")
- SoulPart17.Material = "ForceField"
- local SoulPart17Mesh = Instance.new("SpecialMesh", SoulPart17)
- SoulPart17Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart17Fire = Instance.new("Fire", SoulPart17)
- SoulPart17Fire.Size = 5
- SoulPart17Fire.Color = Color3.new(255,255,255)
- SoulPart17Fire.Heat = 0
- SoulPart18.Parent = workspace
- SoulPart18.Anchored = true
- SoulPart18.Size = Vector3.new(2, 2, 2)
- SoulPart18.CanCollide = true
- SoulPart18.Position = Vector3.new(57.8, 908.978, 107.934)
- SoulPart18.BrickColor = BrickColor.new("Institutional white")
- SoulPart18.Material = "ForceField"
- local SoulPart18Mesh = Instance.new("SpecialMesh", SoulPart18)
- SoulPart18Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart18Fire = Instance.new("Fire", SoulPart18)
- SoulPart18Fire.Size = 5
- SoulPart18Fire.Color = Color3.new(255,255,255)
- SoulPart18Fire.Heat = 0
- SoulPart19.Parent = workspace
- SoulPart19.Anchored = true
- SoulPart19.Size = Vector3.new(2, 2, 2)
- SoulPart19.CanCollide = true
- SoulPart19.Position = Vector3.new(-52.715, 907.978, 184.988)
- SoulPart19.BrickColor = BrickColor.new("Institutional white")
- SoulPart19.Material = "ForceField"
- local SoulPart19Mesh = Instance.new("SpecialMesh", SoulPart19)
- SoulPart19Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart19Fire = Instance.new("Fire", SoulPart19)
- SoulPart19Fire.Size = 5
- SoulPart19Fire.Color = Color3.new(255,255,255)
- SoulPart19Fire.Heat = 0
- SoulPart20.Parent = workspace
- SoulPart20.Anchored = true
- SoulPart20.Size = Vector3.new(2, 2, 2)
- SoulPart20.CanCollide = true
- SoulPart20.Position = Vector3.new(-48.748, 910.483, 255.352)
- SoulPart20.BrickColor = BrickColor.new("Institutional white")
- SoulPart20.Material = "ForceField"
- local SoulPart20Mesh = Instance.new("SpecialMesh", SoulPart20)
- SoulPart20Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart20Fire = Instance.new("Fire", SoulPart20)
- SoulPart20Fire.Size = 5
- SoulPart20Fire.Color = Color3.new(255,255,255)
- SoulPart20Fire.Heat = 0
- SoulPart21.Parent = workspace
- SoulPart21.Anchored = true
- SoulPart21.Size = Vector3.new(2, 2, 2)
- SoulPart21.CanCollide = true
- SoulPart21.Position = Vector3.new(-84.419, 908.003, 198.947)
- SoulPart21.BrickColor = BrickColor.new("Institutional white")
- SoulPart21.Material = "ForceField"
- local SoulPart21Mesh = Instance.new("SpecialMesh", SoulPart21)
- SoulPart21Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart21Fire = Instance.new("Fire", SoulPart21)
- SoulPart21Fire.Size = 5
- SoulPart21Fire.Color = Color3.new(255,255,255)
- SoulPart21Fire.Heat = 0
- SoulPart22.Parent = workspace
- SoulPart22.Anchored = true
- SoulPart22.Size = Vector3.new(2, 2, 2)
- SoulPart22.CanCollide = true
- SoulPart22.Position = Vector3.new(58.289, 913.177, 320.731)
- SoulPart22.BrickColor = BrickColor.new("Institutional white")
- SoulPart22.Material = "ForceField"
- local SoulPart22Mesh = Instance.new("SpecialMesh", SoulPart22)
- SoulPart22Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart22Fire = Instance.new("Fire", SoulPart22)
- SoulPart22Fire.Size = 5
- SoulPart22Fire.Color = Color3.new(255,255,255)
- SoulPart22Fire.Heat = 0
- SoulPart23.Parent = workspace
- SoulPart23.Anchored = true
- SoulPart23.Size = Vector3.new(2, 2, 2)
- SoulPart23.CanCollide = true
- SoulPart23.Position = Vector3.new(56.853, 913.149, 151.803)
- SoulPart23.BrickColor = BrickColor.new("Institutional white")
- SoulPart23.Material = "ForceField"
- local SoulPart23Mesh = Instance.new("SpecialMesh", SoulPart23)
- SoulPart23Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart23Fire = Instance.new("Fire", SoulPart23)
- SoulPart23Fire.Size = 5
- SoulPart23Fire.Color = Color3.new(255,255,255)
- SoulPart23Fire.Heat = 0
- SoulPart24.Parent = workspace
- SoulPart24.Anchored = true
- SoulPart24.Size = Vector3.new(2, 2, 2)
- SoulPart24.CanCollide = true
- SoulPart24.Position = Vector3.new(-151.096, 913.862, 338.621)
- SoulPart24.BrickColor = BrickColor.new("Institutional white")
- SoulPart24.Material = "ForceField"
- local SoulPart24Mesh = Instance.new("SpecialMesh", SoulPart24)
- SoulPart24Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart24Fire = Instance.new("Fire", SoulPart24)
- SoulPart24Fire.Size = 5
- SoulPart24Fire.Color = Color3.new(255,255,255)
- SoulPart24Fire.Heat = 0
- SoulPart25.Parent = workspace
- SoulPart25.Anchored = true
- SoulPart25.Size = Vector3.new(2, 2, 2)
- SoulPart25.CanCollide = true
- SoulPart25.Position = Vector3.new(-27.541, 914.076, 204.917)
- SoulPart25.BrickColor = BrickColor.new("Institutional white")
- SoulPart25.Material = "ForceField"
- local SoulPart25Mesh = Instance.new("SpecialMesh", SoulPart25)
- SoulPart25Mesh.MeshType = Enum.MeshType.Sphere
- local SoulPart25Fire = Instance.new("Fire", SoulPart25)
- SoulPart25Fire.Size = 5
- SoulPart25Fire.Color = Color3.new(255,255,255)
- SoulPart25Fire.Heat = 0
- SoulClickDetector1.Parent = SoulPart1
- SoulClickDetector1.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart1.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector2.Parent = SoulPart2
- SoulClickDetector2.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart2.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector3.Parent = SoulPart3
- SoulClickDetector3.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart3.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector4.Parent = SoulPart4
- SoulClickDetector4.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart4.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector5.Parent = SoulPart5
- SoulClickDetector5.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart5.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector6.Parent = SoulPart6
- SoulClickDetector6.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart6.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector7.Parent = SoulPart7
- SoulClickDetector7.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart7.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector8.Parent = SoulPart8
- SoulClickDetector8.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart8.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector9.Parent = SoulPart9
- SoulClickDetector9.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart9.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector10.Parent = SoulPart10
- SoulClickDetector10.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart10.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector11.Parent = SoulPart11
- SoulClickDetector11.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart11.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector12.Parent = SoulPart12
- SoulClickDetector12.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart12.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector13.Parent = SoulPart13
- SoulClickDetector13.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart13.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector14.Parent = SoulPart14
- SoulClickDetector14.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart14.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector15.Parent = SoulPart15
- SoulClickDetector15.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart15.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector16.Parent = SoulPart16
- SoulClickDetector16.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart16.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector17.Parent = SoulPart17
- SoulClickDetector17.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart17.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector18.Parent = SoulPart18
- SoulClickDetector18.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart18.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector19.Parent = SoulPart19
- SoulClickDetector19.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart19.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector20.Parent = SoulPart20
- SoulClickDetector20.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart20.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector21.Parent = SoulPart21
- SoulClickDetector21.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart21.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector22.Parent = SoulPart22
- SoulClickDetector22.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart22.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector23.Parent = SoulPart23
- SoulClickDetector23.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart23.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector24.Parent = SoulPart24
- SoulClickDetector24.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart24.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- SoulClickDetector25.Parent = SoulPart25
- SoulClickDetector25.MouseClick:connect(function()
- SoulSound:Play()
- SoulPart25.Position = Vector3.new(9999, 9999, 9999)
- if SoulsLabel.Visible == true then
- SoulsLabel.Visible = false
- end
- SoulsLabel.Visible = true
- SoulsLabel.Text = "Souls: "..Soul.."/25"
- Soul = Soul + 1
- if SoulsLabel.Visible == true then
- wait(5)
- SoulsLabel.Visible = false
- end
- end)
- local RunButton = Instance.new("ImageButton")
- local Stamina = Instance.new("Frame")
- local RunButtonUICorner = Instance.new("UICorner")
- local StaminaUICorner = Instance.new("UICorner")
- local UserInputService = game:GetService("UserInputService")
- local stamina = 20
- local running = false
- cam.CameraType = Enum.CameraType.Attach
- cam.CameraSubject = CameraPart
- local BreathSound = Instance.new("Sound")
- local Id = "6814463121"
- BreathSound.Parent = game.Workspace
- BreathSound.SoundId = "rbxassetid://"..Id
- BreathSound.Playing = true
- BreathSound.Looped = true
- BreathSound.Volume = 1
- BreathSound:Stop()
- stamina = math.clamp(stamina,0,28)
- Stamina.Name = "Stamina"
- Stamina.Parent = ScreenGui
- Stamina.Position = UDim2.new(0, 0, 0.95, 0)
- Stamina.Size = UDim2.new(stamina/20,0,0.02,0)
- Stamina.BackgroundColor3 = Color3.new(0, 222, 0)
- Stamina.BorderSizePixel = 0
- Stamina.BackgroundTransparency = 0.5
- RunButton.Name = "RunButton"
- RunButton.Parent = ScreenGui
- RunButton.Position = UDim2.new(0.9, 0, 0.7, 0)
- RunButton.Size = UDim2.new(0, 50, 0, 50)
- RunButton.BackgroundColor3 = Color3.new(255, 255, 255)
- RunButton.Image = "rbxassetid://15527612616"
- function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
- local G = 222
- local R = 222
- RunButton.MouseButton1Down:connect(function()
- if RunButton.Image == "rbxassetid://15527612616" then
- RunButton.Image = "rbxassetid://15527570851"
- running = true
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 20
- while stamina > 0 and running do
- stamina = stamina - 0.05
- Stamina.BackgroundColor3 = Color3.new(0, zigzag(G), 0)
- G = G - 0.05
- Stamina:TweenSize(UDim2.new(stamina/ 20,0,0.02,0), "Out","Linear",0)
- wait()
- if stamina < 1 then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10
- end
- end
- if stamina < 8 then
- BreathSound:Play()
- else
- if stamina > 8 then
- BreathSound:Stop()
- end
- end
- else
- if RunButton.Image == "rbxassetid://15527570851" then
- RunButton.Image = "rbxassetid://15527612616"
- running = false
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10
- while stamina < 20 and not running do
- stamina = stamina + 0.05
- Stamina.BackgroundColor3 = Color3.new(zigzag(R), 0, 0)
- R = R - 0.05
- Stamina:TweenSize(UDim2.new(stamina/20,0,0.02,0), "Out","Linear",0)
- wait()
- if stamina < 1 then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10
- Stamina.BackgroundColor3 = Color3.new(222, 0, 0)
- end
- if stamina == 20 and not running then
- Stamina.BackgroundColor3 = Color3.new(0, 222, 0)
- end
- end
- if stamina < 8 then
- BreathSound:Play()
- else
- if stamina > 8 then
- BreathSound:Stop()
- end
- end
- end
- end
- end)
- RunButtonUICorner.Name = "RunButtonUICorner"
- RunButtonUICorner.Parent = RunButton
- RunButtonUICorner.CornerRadius = UDim.new(1, 1)
- StaminaUICorner.Name = "StaminaUICorner"
- StaminaUICorner.Parent = Stamina
- RunButton.Visible = false
- Stamina.Visible = false
- local lighting = game:GetService("Lighting")
- lighting.FogEnd = 30
- lighting.FogColor = Color3.new(0, 0, 0)
- lighting.TimeOfDay = 0
- local PlayButton = Instance.new("TextButton")
- local MenuButton = Instance.new("TextButton")
- local OptionButton = Instance.new("TextButton")
- local LeaveButton = Instance.new("TextButton")
- local EasyButton = Instance.new("TextButton")
- local MediumButton = Instance.new("TextButton")
- local HardButton = Instance.new("TextButton")
- local Chapter = Instance.new("TextLabel")
- local WinLabel = Instance.new("TextLabel")
- local YouDiedLabel = Instance.new("TextLabel")
- local BackButton = Instance.new("TextButton")
- local ClickSound = Instance.new("Sound")
- local Id = "9113651501"
- ClickSound.Parent = game.Workspace
- ClickSound.SoundId = "rbxassetid://"..Id
- ClickSound.Playing = true
- ClickSound.Looped = false
- ClickSound.Volume = 1
- ClickSound:Stop()
- Chapter.Parent = ScreenGui
- Chapter.BackgroundTransparency = 1
- Chapter.Size = UDim2.new(2, 0, 2, 0)
- Chapter.Position = UDim2.new(-3, 0, -0.6 ,0)
- Chapter.TextXAlignment = Enum.TextXAlignment.Center
- Chapter.TextScaled = true
- Chapter.Text = "My nightmare 3"
- Chapter.TextColor3 = Color3.new(255, 255, 255)
- Chapter.Font = Enum.Font.IndieFlower
- PlayButton.Name = "PlayButton"
- PlayButton.Parent = ScreenGui
- PlayButton.BackgroundTransparency = 1
- PlayButton.Position = UDim2.new(-0.8, 0, 0.15, 0)
- PlayButton.Size = UDim2.new(0, 125, 0, 50)
- PlayButton.Font = Enum.Font.IndieFlower
- PlayButton.Text = "Play"
- PlayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- PlayButton.TextSize = 100
- MenuButton.Name = "MenuButton"
- MenuButton.Parent = ScreenGui
- MenuButton.BackgroundTransparency = 1
- MenuButton.Position = UDim2.new(0.85, 0, 0.05, 0)
- MenuButton.Size = UDim2.new(0, 125, 0, 50)
- MenuButton.Font = Enum.Font.IndieFlower
- MenuButton.Text = "Menu"
- MenuButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- MenuButton.TextSize = 55
- MenuButton.Visible = false
- WinLabel.Name = "WinLabel"
- WinLabel.Parent = ScreenGui
- WinLabel.BackgroundTransparency = 1
- WinLabel.Position = UDim2.new(0.45, 0, 1, 0)
- WinLabel.Size = UDim2.new(0, 125, 0, 50)
- WinLabel.Font = Enum.Font.IndieFlower
- WinLabel.Text = "You Won!"
- WinLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
- WinLabel.TextSize = 100
- WinLabel.Visible = false
- YouDiedLabel.Name = "YouDiedLabel"
- YouDiedLabel.Parent = ScreenGui
- YouDiedLabel.BackgroundTransparency = 1
- YouDiedLabel.Position = UDim2.new(0.45, 0, 1, 0)
- YouDiedLabel.Size = UDim2.new(0, 125, 0, 50)
- YouDiedLabel.Font = Enum.Font.IndieFlower
- YouDiedLabel.Text = "You Died"
- YouDiedLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
- YouDiedLabel.TextSize = 100
- YouDiedLabel.Visible = false
- EasyButton.Visible = false
- MediumButton.Visible = false
- HardButton.Visible = false
- BackButton.Visible = false
- OptionButton.Name = "OptionButton"
- OptionButton.Parent = ScreenGui
- OptionButton.BackgroundTransparency = 1
- OptionButton.Position = UDim2.new(-0.8, 0, 0.4, 0)
- OptionButton.Size = UDim2.new(0, 125, 0, 50)
- OptionButton.Font = Enum.Font.IndieFlower
- OptionButton.Text = "Options"
- OptionButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- OptionButton.TextSize = 100
- OptionButton.MouseButton1Down:connect(function()
- ClickSound:Play()
- EasyButton.Visible = true
- MediumButton.Visible = true
- HardButton.Visible = true
- BackButton.Visible = true
- PlayButton:TweenPosition(UDim2.new(-0.8, 0, 0.15, 0), 'Out', 4, true)
- wait(0.1)
- OptionButton:TweenPosition(UDim2.new(-0.8, 0, 0.4, 0), 'Out', 4, true)
- wait(0.1)
- LeaveButton:TweenPosition(UDim2.new(-0.8, 0, 0.65, 0), 'Out', 4, true)
- wait(0.5)
- Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.9 ,0), 'Out', 4, true)
- wait(0.5)
- EasyButton:TweenPosition(UDim2.new(0.1, 0, 0.4, 0), 'Out', 4, true)
- wait(0.1)
- MediumButton:TweenPosition(UDim2.new(0.45, 0, 0.4, 0), 'Out', 4, true)
- wait(0.1)
- HardButton:TweenPosition(UDim2.new(0.75, 0, 0.4, 0), 'Out', 4, true)
- BackButton.Position = UDim2.new(0.45, 0, 0.8, 0)
- end)
- LeaveButton.Name = "LeaveButton"
- LeaveButton.Parent = ScreenGui
- LeaveButton.BackgroundTransparency = 1
- LeaveButton.Position = UDim2.new(-0.8, 0, 0.65, 0)
- LeaveButton.Size = UDim2.new(0, 125, 0, 50)
- LeaveButton.Font = Enum.Font.IndieFlower
- LeaveButton.Text = "Leave"
- LeaveButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- LeaveButton.TextSize = 100
- LeaveButton.MouseButton1Down:connect(function()
- ClickSound:Play()
- game.Players.LocalPlayer:Kick("Game Over")
- end)
- EasyButton.Name = "EasyButton"
- EasyButton.Parent = ScreenGui
- EasyButton.BackgroundTransparency = 1
- EasyButton.Position = UDim2.new(0.1, 0, 1, 0)
- EasyButton.Size = UDim2.new(0, 125, 0, 50)
- EasyButton.Font = Enum.Font.IndieFlower
- EasyButton.Text = ">>Easy<<"
- EasyButton.TextColor3 = Color3.fromRGB(0, 255, 0)
- EasyButton.TextSize = 100
- EasyButton.MouseButton1Down:connect(function()
- ClickSound:Play()
- EasyButton.Text = ">>Easy<<"
- MediumButton.Text = "Medium"
- HardButton.Text = "Hard"
- Humanoid18.WalkSpeed = 16
- end)
- MediumButton.Name = "MediumButton"
- MediumButton.Parent = ScreenGui
- MediumButton.BackgroundTransparency = 1
- MediumButton.Position = UDim2.new(0.45, 0, 1, 0)
- MediumButton.Size = UDim2.new(0, 125, 0, 50)
- MediumButton.Font = Enum.Font.IndieFlower
- MediumButton.Text = "Medium"
- MediumButton.TextColor3 = Color3.fromRGB(255, 155, 0)
- MediumButton.TextSize = 100
- MediumButton.MouseButton1Down:connect(function()
- ClickSound:Play()
- EasyButton.Text = "Easy"
- MediumButton.Text = ">>Medium<<"
- HardButton.Text = "Hard"
- Humanoid18.WalkSpeed = 50
- end)
- HardButton.Name = "HardButton"
- HardButton.Parent = ScreenGui
- HardButton.BackgroundTransparency = 1
- HardButton.Position = UDim2.new(0.75, 0, 1, 0)
- HardButton.Size = UDim2.new(0, 125, 0, 50)
- HardButton.Font = Enum.Font.IndieFlower
- HardButton.Text = "Hard"
- HardButton.TextColor3 = Color3.fromRGB(255, 0, 0)
- HardButton.TextSize = 100
- HardButton.MouseButton1Down:connect(function()
- ClickSound:Play()
- EasyButton.Text = "Easy"
- MediumButton.Text = "Medium"
- HardButton.Text = ">>Hard<<"
- Humanoid18.WalkSpeed = 100
- end)
- BackButton.Name = "BackButton"
- BackButton.Parent = ScreenGui
- BackButton.BackgroundTransparency = 1
- BackButton.Position = UDim2.new(0.45, 0, 1, 0)
- BackButton.Size = UDim2.new(0, 125, 0, 50)
- BackButton.Font = Enum.Font.IndieFlower
- BackButton.Text = "Back"
- BackButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- BackButton.TextSize = 100
- BackButton.MouseButton1Down:connect(function()
- BackButton.Position = UDim2.new(0.45, 0, 1, 0)
- ClickSound:Play()
- HardButton:TweenPosition(UDim2.new(0.75, 0, 1, 0), 'Out', 4, true)
- wait(0.1)
- MediumButton:TweenPosition(UDim2.new(0.45, 0, 1, 0), 'Out', 4, true)
- wait(0.1)
- EasyButton:TweenPosition(UDim2.new(0.1, 0, 1, 0), 'Out', 4, true)
- wait(0.5)
- Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
- wait(0.5)
- PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
- wait(0.1)
- OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
- wait(0.1)
- LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
- wait(0.5)
- EasyButton.Visible = false
- MediumButton.Visible = false
- HardButton.Visible = false
- BackButton.Visible = false
- end)
- PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
- wait(0.1)
- OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
- wait(0.1)
- LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
- wait(0.5)
- Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
- PlayButton.MouseButton1Down:connect(function()
- ClickSound:Play()
- PlayButton:TweenPosition(UDim2.new(-0.8, 0, 0.15, 0), 'Out', 4, true)
- wait(0.1)
- OptionButton:TweenPosition(UDim2.new(-0.8, 0, 0.4, 0), 'Out', 4, true)
- wait(0.1)
- LeaveButton:TweenPosition(UDim2.new(-0.8, 0, 0.65, 0), 'Out', 4, true)
- wait(0.5)
- Chapter:TweenPosition(UDim2.new(-3, 0, -0.6 ,0), 'Out', 4, true)
- SoulPart1.Position = Vector3.new(-17.272, 910.659, 189.895)
- SoulPart2.Position = Vector3.new(-34.207, 906.978, 229.859)
- SoulPart3.Position = Vector3.new(-116.122, 908.978, 264.69)
- SoulPart4.Position = Vector3.new(-140.741, 908.978, 304.415)
- SoulPart5.Position = Vector3.new(-105.639, 907.978, 131.407)
- SoulPart6.Position = Vector3.new(38.775, 911.424, 121.79)
- SoulPart7.Position = Vector3.new(53.61, 907.978, 195.923)
- SoulPart8.Position = Vector3.new(53.84, 907.978, 330.798)
- SoulPart9.Position = Vector3.new(16.481, 907.978, 313.223)
- SoulPart10.Position = Vector3.new(-20.907, 907.978, 335.521)
- SoulPart11.Position = Vector3.new(-35.205, 910.532, 304.006)
- SoulPart12.Position = Vector3.new(-60.018, 908.003, 270.883)
- SoulPart13.Position = Vector3.new(-146.327, 907.978, 269.73)
- SoulPart14.Position = Vector3.new(24.117, 907.978, 205.102)
- SoulPart15.Position = Vector3.new(-116.44, 906.978, 207.709)
- SoulPart16.Position = Vector3.new(-148.776, 907.978, 167.948)
- SoulPart17.Position = Vector3.new(-40.15, 908.003, 103.196)
- SoulPart18.Position = Vector3.new(57.8, 908.978, 107.934)
- SoulPart19.Position = Vector3.new(-52.715, 907.978, 184.988)
- SoulPart20.Position = Vector3.new(-48.748, 910.483, 255.352)
- SoulPart21.Position = Vector3.new(-84.419, 908.003, 198.947)
- SoulPart22.Position = Vector3.new(58.289, 913.177, 320.731)
- SoulPart23.Position = Vector3.new(56.853, 913.149, 151.803)
- SoulPart24.Position = Vector3.new(-151.096, 913.862, 338.621)
- SoulPart25.Position = Vector3.new(-27.541, 914.076, 204.917)
- SoulPart1.Anchored = true
- SoulPart2.Anchored = true
- SoulPart3.Anchored = true
- SoulPart4.Anchored = true
- SoulPart5.Anchored = true
- SoulPart6.Anchored = true
- SoulPart7.Anchored = true
- SoulPart8.Anchored = true
- SoulPart9.Anchored = true
- SoulPart10.Anchored = true
- SoulPart11.Anchored = true
- SoulPart12.Anchored = true
- SoulPart13.Anchored = true
- SoulPart14.Anchored = true
- SoulPart15.Anchored = true
- SoulPart16.Anchored = true
- SoulPart17.Anchored = true
- SoulPart18.Anchored = true
- SoulPart19.Anchored = true
- SoulPart20.Anchored = true
- SoulPart21.Anchored = true
- SoulPart22.Anchored = true
- SoulPart23.Anchored = true
- SoulPart24.Anchored = true
- SoulPart25.Anchored = true
- Soul = 1
- EyeImage.Visible = true
- EyesLabel.Visible = true
- PlayButton.Visible = false
- OptionButton.Visible = false
- LeaveButton.Visible = false
- Chapter.Visible = false
- WinLabel.Visible = false
- YouDiedLabel.Visible = false
- EasyButton.Visible = false
- MediumButton.Visible = false
- HardButton.Visible = false
- BackButton.Visible = false
- RunButton.Visible = true
- Stamina.Visible = true
- MenuButton.Visible = true
- Eye = 9
- EyesLabel.Text = "X10"
- IntroMusic:Stop()
- Part11.Position = Vector3.new(-145.023, -999999999, 334.575)
- for i = 1,1 do
- createZombie()
- Part11.Position = Vector3.new(-145.023, 910.978, 334.575)
- end
- SafeFromNightmare.Position = Vector3.new(-11.423, 9999999999999999999, 203.419)
- cam.CameraType = Enum.CameraType.Track
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10
- cam.CameraSubject = character
- Spawn1 = math.random(1,3)
- if Spawn1 == 1 then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-9.374, 907.978, 192.706)
- end
- if Spawn1 == 2 then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-39.409, 907.978, 239.274)
- end
- if Spawn1 == 3 then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(49.186, 907.978, 134.986)
- end
- local MaterialSounds =
- {
- [Enum.Material.Grass] = "rbxassetid://507863105",
- [Enum.Material.Metal] = "rbxassetid://944089664",
- [Enum.Material.DiamondPlate] = "rbxassetid://944075408",
- [Enum.Material.Pebble] = "rbxassetid://944090255",
- [Enum.Material.Wood] = "rbxassetid://944075408",
- [Enum.Material.WoodPlanks] = "rbxassetid://944075408",
- [Enum.Material.Plastic] = "rbxassetid://944075408",
- [Enum.Material.SmoothPlastic] = "rbxassetid://944075408",
- [Enum.Material.Sand] = "rbxassetid://944090255",
- [Enum.Material.Brick] = "rbxassetid://4981969796",
- [Enum.Material.Cobblestone] = "rbxassetid://4981969796",
- [Enum.Material.Concrete] = "rbxassetid://944075408",
- [Enum.Material.CorrodedMetal] = "rbxassetid://4981969796",
- [Enum.Material.Fabric] = "rbxassetid://4981969796",
- [Enum.Material.Foil] = "rbxassetid://4981969796",
- [Enum.Material.ForceField] = "rbxassetid://4981969796",
- [Enum.Material.Glass] = "rbxassetid://944075408",
- [Enum.Material.Granite] = "rbxassetid://944075408",
- [Enum.Material.Ice] = "rbxassetid://4981969796",
- [Enum.Material.Marble] = "rbxassetid://944075408",
- [Enum.Material.Neon] = "rbxassetid://4981969796",
- [Enum.Material.Slate] = "rbxassetid://944075408",
- }
- local Character = game.Players.LocalPlayer.Character
- local Humanoid = Character:WaitForChild("Humanoid")
- local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
- local FootStepsSound = HumanoidRootPart:WaitForChild("Running")
- Humanoid:GetPropertyChangedSignal("FloorMaterial"):Connect(function()
- local FloorMaterial = Humanoid.FloorMaterial
- local Sound = MaterialSounds[FloorMaterial]
- if Sound then
- FootStepsSound.SoundId = Sound
- else
- FootStepsSound.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
- end
- end)
- local L = game:GetService("Lighting") L.ClockTime = 0
- 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"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- Sound2 = Instance.new("Sound")
- SpecialMesh3 = Instance.new("SpecialMesh")
- SpotLight4 = Instance.new("SpotLight")
- LocalScript5 = Instance.new("LocalScript")
- LocalScript6 = Instance.new("LocalScript")
- ModuleScript7 = Instance.new("ModuleScript")
- Tool0.Name = "Flashlight"
- Tool0.Parent = mas
- Tool0.TextureId = "http://www.roblox.com/asset/?id=115955232"
- Tool0.Grip = CFrame.new(0.100000001, -0.400000006, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Tool0.GripPos = Vector3.new(0.10000000149011612, -0.4000000059604645, 0)
- Tool0.ToolTip = "Flashlight"
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(10.9154053, 0.25, -18.9892578, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part1.Orientation = Vector3.new(0, 90, 0)
- Part1.Position = Vector3.new(10.9154052734375, 0.25, -18.9892578125)
- Part1.Rotation = Vector3.new(0, 90, 0)
- Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part1.Size = Vector3.new(0.5, 0.5, 2)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Bright yellow")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Bright yellow")
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.formFactor = Enum.FormFactor.Custom
- Sound2.Parent = Part1
- Sound2.SoundId = "http://www.roblox.com/asset/?id=115959318"
- Sound2.Volume = 1
- SpecialMesh3.Parent = Part1
- SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=115955313"
- SpecialMesh3.Scale = Vector3.new(0.699999988079071, 0.699999988079071, 0.699999988079071)
- SpecialMesh3.TextureId = "http://www.roblox.com/asset?id=115955343"
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- SpotLight4.Parent = Part1
- SpotLight4.Enabled = false
- SpotLight4.Range = 100
- SpotLight4.Brightness = 50
- SpotLight4.Shadows = true
- LocalScript5.Parent = Tool0
- table.insert(cors,sandbox(LocalScript5,function()
- player = game.Players.LocalPlayer
- tool = script.Parent
- repeat wait() until player
- tool.Equipped:connect(function(mouse)
- mouse.Button1Down:connect(function()
- tool.Handle.SpotLight.Enabled = not tool.Handle.SpotLight.Enabled
- tool.Handle.Sound:Play()
- end)
- end)
- end))
- LocalScript6.Parent = Tool0
- table.insert(cors,sandbox(LocalScript6,function()
- -- Variables for services
- local render = game:GetService("RunService").RenderStepped
- local contextActionService = game:GetService("ContextActionService")
- local userInputService = game:GetService("UserInputService")
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local Tool = script.Parent
- -- Variables for Module Scripts
- local screenSpace = require(Tool:WaitForChild("ScreenSpace"))
- local connection
- local neck, shoulder, oldNeckC0, oldShoulderC0
- local mobileShouldTrack = true
- -- Thourough check to see if a character is sitting
- local function amISitting(character)
- local t = character.Torso
- for _, part in pairs(t:GetConnectedParts(true)) do
- if part:IsA("Seat") or part:IsA("VehicleSeat") then
- return true
- end
- end
- end
- local function frame(mousePosition)
- if not mobileShouldTrack then return end
- if player.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Swimming then
- local torso = player.Character.Torso
- local head = player.Character.Head
- local toMouse = (mousePosition - head.Position).unit
- local angle = math.acos(toMouse:Dot(Vector3.new(0,1,0)))
- local neckAngle = angle
- -- Limit how much the head can tilt down. Too far and the head looks unnatural
- if math.deg(neckAngle) > 110 then
- neckAngle = math.rad(110)
- end
- neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.pi - neckAngle,math.pi,0)
- -- Calculate horizontal rotation
- local arm = player.Character:FindFirstChild("Right Arm")
- local fromArmPos = torso.Position + torso.CFrame:vectorToWorldSpace(Vector3.new(
- torso.Size.X/2 + arm.Size.X/2, torso.Size.Y/2 - arm.Size.Z/2, 0))
- local toMouseArm = ((mousePosition - fromArmPos) * Vector3.new(1,0,1)).unit
- local look = (torso.CFrame.lookVector * Vector3.new(1,0,1)).unit
- local lateralAngle = math.acos(toMouseArm:Dot(look))
- if tostring(lateralAngle) == "-1.#IND" then
- lateralAngle = 0
- end
- if player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then
- local cross = torso.CFrame.lookVector:Cross(toMouseArm)
- if lateralAngle > math.pi/2 then
- lateralAngle = math.pi/2
- end
- if cross.Y < 0 then
- lateralAngle = -lateralAngle
- end
- end
- -- Turn shoulder to point to mouse
- shoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(math.pi/2 - angle,math.pi/2 + lateralAngle,0)
- -- If not sitting then aim torso laterally towards mouse
- if not amISitting(player.Character) then
- torso.CFrame = CFrame.new(torso.Position, torso.Position + (Vector3.new(
- mousePosition.X, torso.Position.Y, mousePosition.Z)-torso.Position).unit)
- end
- end
- end
- -- Function to bind to render stepped if player is on PC
- local function pcFrame()
- frame(mouse.Hit.p)
- end
- -- Function to bind to touch moved if player is on mobile
- local function mobileFrame(touch, processed)
- -- Check to see if the touch was on a UI element. If so, we don't want to update anything
- if not processed then
- -- Calculate touch position in world space. Uses Stravant's ScreenSpace Module script
- -- to create a ray from the camera.
- local test = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1)
- local nearPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1))
- nearPos = game.Workspace.CurrentCamera.CoordinateFrame.p - nearPos
- local farPos = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y,50)
- farPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(farPos) * -1
- if farPos.magnitude > 900 then
- farPos = farPos.unit * 900
- end
- local ray = Ray.new(nearPos, farPos)
- local part, pos = game.Workspace:FindPartOnRay(ray, player.Character)
- -- if a position was found on the ray then update the character's rotation
- if pos then
- frame(pos)
- end
- end
- end
- local function OnActivated()
- local myModel = player.Character
- if Tool.Enabled and myModel and myModel:FindFirstChild('Humanoid') and myModel.Humanoid.Health > 0 then
- Tool.Enabled = false
- game.ReplicatedStorage.ROBLOX_RocketFireEvent:FireServer(mouse.Hit.p)
- wait(2)
- Tool.Enabled = true
- end
- end
- local oldIcon = nil
- -- Function to bind to equip event
- local function equip()
- local torso = player.Character.Torso
- -- Setup joint variables
- neck = torso.Neck
- oldNeckC0 = neck.C0
- shoulder = torso:FindFirstChild("Right Shoulder")
- oldShoulderC0 = shoulder.C0
- -- Remember old mouse icon and update current
- oldIcon = mouse.Icon
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- -- Bind TouchMoved event if on mobile. Otherwise connect to renderstepped
- if userInputService.TouchEnabled then
- connection = userInputService.TouchMoved:connect(mobileFrame)
- else
- connection = render:connect(pcFrame)
- end
- -- Bind TouchStarted and TouchEnded. Used to determine if character should rotate
- -- during touch input
- userInputService.TouchStarted:connect(function(touch, processed)
- mobileShouldTrack = not processed
- end)
- userInputService.TouchEnded:connect(function(touch, processed)
- mobileShouldTrack = false
- end)
- -- If game uses filtering enabled then need to update server while tool is
- -- held by character.
- if workspace.FilteringEnabled then
- while connection do
- wait()
- game.ReplicatedStorage.ROBLOX_RocketUpdateEvent:FireServer(neck.C0, shoulder.C0)
- end
- end
- end
- -- Function to bind to Unequip event
- local function unequip()
- if connection then connection:disconnect() end
- mouse.Icon = oldIcon
- neck.C0 = oldNeckC0
- shoulder.C0 = oldShoulderC0
- end
- -- Bind tool events
- Tool.Equipped:connect(equip)
- Tool.Unequipped:connect(unequip)
- Tool.Activated:connect(OnActivated)
- end))
- ModuleScript7.Name = "ScreenSpace"
- ModuleScript7.Parent = Tool0
- table.insert(cors,sandbox(ModuleScript7,function()
- local PlayerMouse = Game:GetService('Players').LocalPlayer:GetMouse()
- local ScreenSpace = {}
- -- Getter functions, with a couple of hacks for Ipad pre-focus.
- function ScreenSpace.ViewSizeX()
- local x = PlayerMouse.ViewSizeX
- local y = PlayerMouse.ViewSizeY
- if x == 0 then
- return 1024
- else
- if x > y then
- return x
- else
- return y
- end
- end
- end
- function ScreenSpace.ViewSizeY()
- local x = PlayerMouse.ViewSizeX
- local y = PlayerMouse.ViewSizeY
- if y == 0 then
- return 768
- else
- if x > y then
- return y
- else
- return x
- end
- end
- end
- -- Nice getter for aspect ratio. Due to the checks in the ViewSize functions this
- -- will never fail with a divide by zero error.
- function ScreenSpace.AspectRatio()
- return ScreenSpace.ViewSizeX() / ScreenSpace.ViewSizeY()
- end
- -- WorldSpace -> ScreenSpace. Raw function taking a world position and giving you the
- -- screen position.
- function ScreenSpace.WorldToScreen(at)
- local point = Workspace.CurrentCamera.CoordinateFrame:pointToObjectSpace(at)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- --
- local x = (point.x/point.z) / -wfactor
- local y = (point.y/point.z) / hfactor
- --
- return Vector2.new(ScreenSpace.ViewSizeX()*(0.5 + 0.5*x), ScreenSpace.ViewSizeY()*(0.5 + 0.5*y))
- end
- -- ScreenSpace -> WorldSpace. Raw function taking a screen position and a depth and
- -- converting it into a world position.
- function ScreenSpace.ScreenToWorld(x, y, depth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- --
- local xf, yf = x/ScreenSpace.ViewSizeX()*2 - 1, y/ScreenSpace.ViewSizeY()*2 - 1
- local xpos = xf * -wfactor * depth
- local ypos = yf * hfactor * depth
- --
- return Vector3.new(xpos, ypos, depth)
- end
- -- ScreenSize -> WorldSize
- function ScreenSpace.ScreenWidthToWorldWidth(screenWidth, depth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx = ScreenSpace.ViewSizeX()
- --
- return -(screenWidth / sx) * 2 * wfactor * depth
- end
- function ScreenSpace.ScreenHeightToWorldHeight(screenHeight, depth)
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local sy = ScreenSpace.ViewSizeY()
- --
- return -(screenHeight / sy) * 2 * hfactor * depth
- end
- -- WorldSize -> ScreenSize
- function ScreenSpace.WorldWidthToScreenWidth(worldWidth, depth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx = ScreenSpace.ViewSizeX()
- --
- return -(worldWidth * sx) / (2 * wfactor * depth)
- end
- function ScreenSpace.WorldHeightToScreenHeight(worldHeight, depth)
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local sy = ScreenSpace.ViewSizeY()
- --
- return -(worldHeight * sy) / (2 * hfactor * depth)
- end
- -- WorldSize + ScreenSize -> Depth needed
- function ScreenSpace.GetDepthForWidth(screenWidth, worldWidth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
- --
- return -(sx * worldWidth) / (screenWidth * 2 * wfactor)
- end
- function ScreenSpace.GetDepthForHeight(screenHeight, worldHeight)
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local sy = ScreenSpace.ViewSizeY()
- --
- return -(sy * worldHeight) / (screenHeight * 2 * hfactor)
- end
- -- ScreenSpace -> WorldSpace. Taking a screen height, and a depth to put an object
- -- at, and returning a size of how big that object has to be to appear that size
- -- at that depth.
- function ScreenSpace.ScreenToWorldByHeightDepth(x, y, screenHeight, depth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
- --
- local worldHeight = -(screenHeight/sy) * 2 * hfactor * depth
- --
- local xf, yf = x/sx*2 - 1, y/sy*2 - 1
- local xpos = xf * -wfactor * depth
- local ypos = yf * hfactor * depth
- --
- return Vector3.new(xpos, ypos, depth), worldHeight
- end
- -- ScreenSpace -> WorldSpace. Taking a screen width, and a depth to put an object
- -- at, and returning a size of how big that object has to be to appear that size
- -- at that depth.
- function ScreenSpace.ScreenToWorldByWidthDepth(x, y, screenWidth, depth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
- --
- local worldWidth = (screenWidth/sx) * 2 * -wfactor * depth
- --
- local xf, yf = x/sx*2 - 1, y/sy*2 - 1
- local xpos = xf * -wfactor * depth
- local ypos = yf * hfactor * depth
- --
- return Vector3.new(xpos, ypos, depth), worldWidth
- end
- -- ScreenSpace -> WorldSpace. Taking a screen height that you want that object to be
- -- and a world height that is the size of that object, and returning the position to
- -- put that object at to satisfy those.
- function ScreenSpace.ScreenToWorldByHeight(x, y, screenHeight, worldHeight)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
- --
- local depth = - (sy * worldHeight) / (screenHeight * 2 * hfactor)
- --
- local xf, yf = x/sx*2 - 1, y/sy*2 - 1
- local xpos = xf * -wfactor * depth
- local ypos = yf * hfactor * depth
- --
- return Vector3.new(xpos, ypos, depth)
- end
- -- ScreenSpace -> WorldSpace. Taking a screen width that you want that object to be
- -- and a world width that is the size of that object, and returning the position to
- -- put that object at to satisfy those.
- function ScreenSpace.ScreenToWorldByWidth(x, y, screenWidth, worldWidth)
- local aspectRatio = ScreenSpace.AspectRatio()
- local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
- local wfactor = aspectRatio*hfactor
- local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
- --
- local depth = - (sx * worldWidth) / (screenWidth * 2 * wfactor)
- --
- local xf, yf = x/sx*2 - 1, y/sy*2 - 1
- local xpos = xf * -wfactor * depth
- local ypos = yf * hfactor * depth
- --
- return Vector3.new(xpos, ypos, depth)
- end
- return ScreenSpace
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- MenuButton.MouseButton1Down:connect(function()
- cam.CameraType = Enum.CameraType.Attach
- cam.CameraSubject = CameraPart
- EyeImage.Visible = false
- EyesLabel.Visible = false
- ClickSound:Play()
- MenuButton.Visible = false
- Tool0:Remove()
- stamina = 20
- IntroMusic:Play()
- EyeImage.Visible = false
- EyesLabel.Visible = false
- RunButton.Visible = false
- Stamina.Visible = false
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-11, 906.978, 200.854)
- SafeFromNightmare.Position = Vector3.new(-11.423, 909.478, 203.419)
- PlayButton.Visible = true
- OptionButton.Visible = true
- LeaveButton.Visible = true
- Chapter.Visible = true
- PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
- wait(0.1)
- OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
- wait(0.1)
- LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
- wait(0.5)
- Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
- end)
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- Humanoid.MaxHealth = 100
- Humanoid.HealthChanged:connect(function()
- if Humanoid.Health < 5 then
- Humanoid.Health = Humanoid.MaxHealth
- cam.CameraType = Enum.CameraType.Attach
- cam.CameraSubject = CameraPart
- EyeImage.Visible = false
- EyesLabel.Visible = false
- stamina = 20
- MenuButton.Visible = false
- Tool0:Remove()
- IntroMusic:Play()
- RunButton.Visible = false
- Stamina.Visible = false
- EyeImage.Visible = false
- EyesLabel.Visible = false
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-11, 906.978, 200.854)
- SafeFromNightmare.Position = Vector3.new(-11.423, 909.478, 203.419)
- PlayButton.Visible = true
- OptionButton.Visible = true
- LeaveButton.Visible = true
- Chapter.Visible = true
- YouDiedLabel.Visible = true
- PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
- wait(0.1)
- OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
- wait(0.1)
- LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
- wait(0.5)
- Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
- wait(1)
- Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.9 ,0), 'Out', 4, true)
- wait(0.5)
- YouDiedLabel:TweenPosition(UDim2.new(0.45, 0, 0.4, 0), 'Out', 4, true)
- wait(1.5)
- YouDiedLabel:TweenPosition(UDim2.new(0.45, 0, 1, 0), 'Out', 4, true)
- wait(1)
- YouDiedLabel.Visible = false
- Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
- end
- end)
- while wait(1) do
- if EasyButton.Text == ">>Easy<<" then
- Humanoid18.WalkSpeed = 10
- else
- if MediumButton.Text == ">>Medium<<" then
- Humanoid18.WalkSpeed = 50
- else
- if HardButton.Text == ">>Hard<<" then
- Humanoid18.WalkSpeed = 100
- SoulPart1.Anchored = false
- SoulPart2.Anchored = false
- SoulPart3.Anchored = false
- SoulPart4.Anchored = false
- SoulPart5.Anchored = false
- SoulPart6.Anchored = false
- SoulPart7.Anchored = false
- SoulPart8.Anchored = false
- SoulPart9.Anchored = false
- SoulPart10.Anchored = false
- SoulPart11.Anchored = false
- SoulPart12.Anchored = false
- SoulPart13.Anchored = false
- SoulPart14.Anchored = false
- SoulPart15.Anchored = false
- SoulPart16.Anchored = false
- SoulPart17.Anchored = false
- SoulPart18.Anchored = false
- SoulPart19.Anchored = false
- SoulPart20.Anchored = false
- SoulPart21.Anchored = false
- SoulPart22.Anchored = false
- SoulPart23.Anchored = false
- SoulPart24.Anchored = false
- SoulPart25.Anchored = false
- end
- end
- end
- if Eye < 0 then
- EyeImage.Visible = false
- EyesLabel.Visible = false
- end
- if Soul == 26 then
- cam.CameraType = Enum.CameraType.Attach
- cam.CameraSubject = CameraPart
- Humanoid.Health = Humanoid.MaxHealth
- EyeImage.Visible = false
- EyesLabel.Visible = false
- stamina = 20
- MenuButton.Visible = false
- Tool0:Remove()
- IntroMusic:Play()
- RunButton.Visible = false
- Stamina.Visible = false
- EyeImage.Visible = false
- EyesLabel.Visible = false
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-11, 906.978, 200.854)
- SafeFromNightmare.Position = Vector3.new(-11.423, 909.478, 203.419)
- PlayButton.Visible = true
- OptionButton.Visible = true
- LeaveButton.Visible = true
- Chapter.Visible = true
- WinLabel.Visible = true
- PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
- wait(0.1)
- OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
- wait(0.1)
- LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
- wait(0.5)
- Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
- wait(1)
- Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.9 ,0), 'Out', 4, true)
- wait(0.5)
- WinLabel:TweenPosition(UDim2.new(0.45, 0, 0.4, 0), 'Out', 4, true)
- wait(1.5)
- WinLabel:TweenPosition(UDim2.new(0.45, 0, 1, 0), 'Out', 4, true)
- wait(1)
- WinLabel.Visible = false
- Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
- wait(1)
- game.Players.LocalPlayer:Kick("You Win!")
- wait(1)
- game.Players.LocalPlayer:Kick("Chapter 4 Coming Soon")
- wait(999999999999999999999)
- end
- for _,plrs in pairs(game.Players:GetPlayers()) do
- if (Part11.Position - plrs.Character.HumanoidRootPart.Position).magnitude <= 20 then
- HeartBeat:Play()
- RunLabel.Text = "Run!!!"
- else
- HeartBeat:Stop()
- RunLabel.Text = ""
- end
- end
- end
- if Eye == 9 then
- EyeImage.Visible = true
- EyesLabel.Visible = true
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement