Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Thanks for using Mod2S by NopeUsername
- local functions = {}
- function sandbox(script, func)
- local oldEnv = getfenv(func)
- local newEnv = setmetatable({}, {
- __index = function(self,k)
- if k == "script" then
- return script
- else
- return oldEnv[k]
- end
- end,
- })
- return setfenv(func, newEnv)
- end
- local mas = Instance.new("Model", game:GetService("Lighting"))
- -- DECLARING VARIABLES
- local Door = Instance.new("Model")
- local Door_1 = Instance.new("Part")
- local Mesh = Instance.new("BlockMesh")
- local Snap = Instance.new("Snap")
- local Frame = Instance.new("Model")
- local Part = Instance.new("Part")
- local Mesh_1 = Instance.new("BlockMesh")
- local Snap_1 = Instance.new("Snap")
- local Part_1 = Instance.new("Part")
- local Mesh_2 = Instance.new("BlockMesh")
- local Snap_2 = Instance.new("Snap")
- local Part_2 = Instance.new("Part")
- local Mesh_3 = Instance.new("BlockMesh")
- local Open1 = Instance.new("Part")
- local Script = Instance.new("Script")
- local ClickDetector = Instance.new("ClickDetector")
- local Open2 = Instance.new("Part")
- local Script_1 = Instance.new("Script")
- local ClickDetector_1 = Instance.new("ClickDetector")
- local Close2 = Instance.new("Part")
- local Script_2 = Instance.new("Script")
- local ClickDetector_2 = Instance.new("ClickDetector")
- local Close1 = Instance.new("Part")
- local Script_3 = Instance.new("Script")
- local ClickDetector_3 = Instance.new("ClickDetector")
- local Part_3 = Instance.new("Part")
- local Part_4 = Instance.new("Part")
- local Part_5 = Instance.new("Part")
- local Part_6 = Instance.new("Part")
- local Part_7 = Instance.new("Part")
- local GrannyKiller = Instance.new("Model")
- local Part_8 = Instance.new("Part")
- local Mesh_4 = Instance.new("SpecialMesh")
- local WeldConstraint = Instance.new("WeldConstraint")
- local Script_4 = Instance.new("Script")
- local Respawn = Instance.new("Script")
- local ROBLOXBoyLeftArm = Instance.new("CharacterMesh")
- local Head = Instance.new("Part")
- local Mesh_5 = Instance.new("SpecialMesh")
- local Script_5 = Instance.new("Script")
- local q = Instance.new("Sound")
- local e = Instance.new("Sound")
- local r = Instance.new("Sound")
- local w = Instance.new("Sound")
- local t = Instance.new("Sound")
- local Sing = Instance.new("Script")
- local Script_6 = Instance.new("Script")
- local HumanoidRootPart = Instance.new("Part")
- local RootJoint = Instance.new("Motor6D")
- local Script_7 = Instance.new("Script")
- local LeftArm = Instance.new("Part")
- local Script_8 = Instance.new("Script")
- local LeftLeg = Instance.new("Part")
- local Script_9 = Instance.new("Script")
- local RightArm = Instance.new("Part")
- local Script_10 = Instance.new("Script")
- local RightLeg = Instance.new("Part")
- local Weld = Instance.new("Script")
- local Torso = Instance.new("Part")
- local RightShoulder = Instance.new("Motor6D")
- local LeftShoulder = Instance.new("Motor6D")
- local RightHip = Instance.new("Motor6D")
- local LeftHip = Instance.new("Motor6D")
- local Neck = Instance.new("Motor6D")
- local Weld_1 = Instance.new("Script")
- local GhostTorso = Instance.new("CharacterMesh")
- local ROBLOXBoyRightArm = Instance.new("CharacterMesh")
- local headquils = Instance.new("Part")
- local Mesh_6 = Instance.new("SpecialMesh")
- local WeldConstraint_1 = Instance.new("WeldConstraint")
- local Script_11 = Instance.new("Script")
- local AnimateSauce = Instance.new("Script")
- local climb = Instance.new("StringValue")
- local ClimbAnim = Instance.new("Animation")
- local fall = Instance.new("StringValue")
- local FallAnim = Instance.new("Animation")
- local idle = Instance.new("StringValue")
- local Animation1 = Instance.new("Animation")
- local Weight = Instance.new("NumberValue")
- local Animation2 = Instance.new("Animation")
- local Weight_1 = Instance.new("NumberValue")
- local jump = Instance.new("StringValue")
- local JumpAnim = Instance.new("Animation")
- local run = Instance.new("StringValue")
- local RunAnim = Instance.new("Animation")
- local sit = Instance.new("StringValue")
- local SitAnim = Instance.new("Animation")
- local toolnone = Instance.new("StringValue")
- local ToolNoneAnim = Instance.new("Animation")
- local walk = Instance.new("StringValue")
- local WalkAnim = Instance.new("Animation")
- local Humanoid = Instance.new("Humanoid")
- local Animator = Instance.new("Animator")
- local Status = Instance.new("Model")
- local AvalibleSpawns = Instance.new("Model")
- local GarnnyMain = Instance.new("Script")
- local Health = Instance.new("Script")
- local Respawn_1 = Instance.new("Script")
- local Swing = Instance.new("Animation")
- local ThumbnailCamera = Instance.new("Camera")
- local Sign = Instance.new("Model")
- local Part_9 = Instance.new("Part")
- local ParttoPartStrongJoint = Instance.new("ManualWeld")
- local PartTerrainJoint = Instance.new("ManualWeld")
- local Part_10 = Instance.new("Part")
- local ParttoTextStrongJoint = Instance.new("ManualWeld")
- local Text = Instance.new("Part")
- local SurfaceGui = Instance.new("SurfaceGui")
- local TextLabel = Instance.new("TextLabel")
- -- SETTING PROPERTIES
- Door.Name = "Door"
- Door.Parent = mas
- Door_1.Anchored = true
- Door_1.CFrame = CFrame.new(21.364,3.293,-30.022,0,0,1,0,1,0,-1,0,0)
- Door_1.Color = Color3.new(0.388,0.373,0.384)
- Door_1.Size = Vector3.new(4.117,6.587,0.686)
- Door_1.Name = "Door"
- Door_1.Parent = Door
- Mesh.Offset = Vector3.new(0,0.05,0)
- Mesh.Parent = Door_1
- Snap.C0 = CFrame.new(0,3.293,0,-1,0,0,0,0,1,0,1,0)
- Snap.C1 = CFrame.new(0,-0.412,0,-1,0,0,0,0,1,0,1,0)
- Snap.Part0 = Door_1
- Snap.Part1 = Part_2
- Snap.Parent = Door_1
- Frame.Name = "Frame"
- Frame.Parent = Door
- Part.Anchored = true
- Part.CFrame = CFrame.new(21.364,3.293,-27.621,0,0,1,0,1,0,-1,0,0)
- Part.RotVelocity = Vector3.new(-0.002,0,0)
- Part.Size = Vector3.new(0.686,6.587,0.686)
- Part.Velocity = Vector3.new(-0.004,0.007,-0.013)
- Part.Parent = Frame
- Mesh_1.Offset = Vector3.new(0,0.05,0)
- Mesh_1.Parent = Part
- Snap_1.C0 = CFrame.new(0,3.293,0,-1,0,0,0,0,1,0,1,0)
- Snap_1.C1 = CFrame.new(-2.401,-0.412,0,-1,0,0,0,0,1,0,1,0)
- Snap_1.Part0 = Part
- Snap_1.Part1 = Part_2
- Snap_1.Parent = Part
- Part_1.Anchored = true
- Part_1.CFrame = CFrame.new(21.364,3.293,-32.424,0,0,1,0,1,0,-1,0,0)
- Part_1.Size = Vector3.new(0.686,6.587,0.686)
- Part_1.Parent = Frame
- Mesh_2.Offset = Vector3.new(0,0.05,0)
- Mesh_2.Parent = Part_1
- Snap_2.C0 = CFrame.new(0,3.293,0,-1,0,0,0,0,1,0,1,0)
- Snap_2.C1 = CFrame.new(2.401,-0.412,0,-1,0,0,0,0,1,0,1,0)
- Snap_2.Part0 = Part_1
- Snap_2.Part1 = Part_2
- Snap_2.Parent = Part_1
- Part_2.Anchored = true
- Part_2.CFrame = CFrame.new(21.364,6.998,-30.022,0,0,1,0,1,0,-1,0,0)
- Part_2.RotVelocity = Vector3.new(-0.002,0,0)
- Part_2.Size = Vector3.new(5.489,0.823,0.686)
- Part_2.Velocity = Vector3.new(-0.005,0.006,-0.025)
- Part_2.Parent = Frame
- Mesh_3.Offset = Vector3.new(0,0.05,0)
- Mesh_3.Parent = Part_2
- Open1.Anchored = true
- Open1.BottomSurface = Enum.SurfaceType.Smooth
- Open1.CFrame = CFrame.new(20.884,3.769,-27.621,0,1,0,0,0,-1,-1,0,0)
- Open1.Color = Color3.new(0.294,0.592,0.294)
- Open1.Size = Vector3.new(0.686,0.274,0.686)
- Open1.TopSurface = Enum.SurfaceType.Smooth
- Open1.Name = "Open1"
- Open1.Parent = Door
- table.insert(functions,sandbox(Script,function()
- function myfunction()
- script.Parent.Parent.Door.Transparency = 0.7 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
- script.Parent.Parent.Door.CanCollide = false --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
- --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
- -- So the 2 times Parent means: The Parent, Of the Parent.
- end
- script.Parent.ClickDetector.MouseClick:connect(myfunction)
- end))
- Script.Parent = Open1
- ClickDetector.Parent = Open1
- Open2.Anchored = true
- Open2.BottomSurface = Enum.SurfaceType.Smooth
- Open2.CFrame = CFrame.new(21.845,3.774,-32.424,0,1,0,0,0,-1,-1,0,0)
- Open2.Color = Color3.new(0.294,0.592,0.294)
- Open2.Size = Vector3.new(0.686,0.274,0.686)
- Open2.TopSurface = Enum.SurfaceType.Smooth
- Open2.Name = "Open2"
- Open2.Parent = Door
- table.insert(functions,sandbox(Script_1,function()
- function myfunction()
- script.Parent.Parent.Door.Transparency = 0.7 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
- script.Parent.Parent.Door.CanCollide = false --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
- --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
- -- So the 2 times Parent means: The Parent, Of the Parent.
- end
- script.Parent.ClickDetector.MouseClick:connect(myfunction)
- end))
- Script_1.Parent = Open2
- ClickDetector_1.Parent = Open2
- Close2.Anchored = true
- Close2.BottomSurface = Enum.SurfaceType.Smooth
- Close2.CFrame = CFrame.new(20.884,3.088,-27.621,0,-1,0,0,0,-1,1,0,0)
- Close2.Color = Color3.new(0.769,0.157,0.11)
- Close2.Size = Vector3.new(0.686,0.274,0.686)
- Close2.TopSurface = Enum.SurfaceType.Smooth
- Close2.Name = "Close2"
- Close2.Parent = Door
- table.insert(functions,sandbox(Script_2,function()
- function myfunction()
- script.Parent.Parent.Door.Transparency = 0 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
- script.Parent.Parent.Door.CanCollide = true --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
- --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
- -- So the 2 times Parent means: The Parent, Of the Parent.
- end
- script.Parent.ClickDetector.MouseClick:connect(myfunction)
- end))
- Script_2.Parent = Close2
- ClickDetector_2.Parent = Close2
- Close1.Anchored = true
- Close1.BottomSurface = Enum.SurfaceType.Smooth
- Close1.CFrame = CFrame.new(21.845,3.088,-32.424,0,1,0,0,0,-1,-1,0,0)
- Close1.Color = Color3.new(0.769,0.157,0.11)
- Close1.Size = Vector3.new(0.686,0.274,0.686)
- Close1.TopSurface = Enum.SurfaceType.Smooth
- Close1.Name = "Close1"
- Close1.Parent = Door
- table.insert(functions,sandbox(Script_3,function()
- function myfunction()
- script.Parent.Parent.Door.Transparency = 0 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
- script.Parent.Parent.Door.CanCollide = true --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
- --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
- -- So the 2 times Parent means: The Parent, Of the Parent.
- end
- script.Parent.ClickDetector.MouseClick:connect(myfunction)
- end))
- Script_3.Parent = Close1
- ClickDetector_3.Parent = Close1
- Part_3.Anchored = true
- Part_3.BottomSurface = Enum.SurfaceType.Smooth
- Part_3.CFrame = CFrame.new(21.4,3.8,-25.2,0,0,1,0,1,0,-1,0,0)
- Part_3.Size = Vector3.new(4,7.6,0.8)
- Part_3.TopSurface = Enum.SurfaceType.Smooth
- Part_3.Parent = Door
- Part_4.Anchored = true
- Part_4.BottomSurface = Enum.SurfaceType.Smooth
- Part_4.CFrame = CFrame.new(15.4,3.8,-23.1,0,0,1,0,1,0,-1,0,0)
- Part_4.Size = Vector3.new(1,7.6,12.8)
- Part_4.TopSurface = Enum.SurfaceType.Smooth
- Part_4.Parent = Door
- Part_5.Anchored = true
- Part_5.BottomSurface = Enum.SurfaceType.Smooth
- Part_5.CFrame = CFrame.new(15.4,3.8,-33.3,0,0,1,0,1,0,-1,0,0)
- Part_5.Size = Vector3.new(1,7.6,12.8)
- Part_5.TopSurface = Enum.SurfaceType.Smooth
- Part_5.Parent = Door
- Part_6.Anchored = true
- Part_6.BottomSurface = Enum.SurfaceType.Smooth
- Part_6.CFrame = CFrame.new(15.4,7.4,-28.2,0,0,1,0,1,0,-1,0,0)
- Part_6.Size = Vector3.new(11.2,0.4,12.8)
- Part_6.TopSurface = Enum.SurfaceType.Smooth
- Part_6.Parent = Door
- Part_7.Anchored = true
- Part_7.BottomSurface = Enum.SurfaceType.Smooth
- Part_7.CFrame = CFrame.new(9.4,3.8,-28.2,0,0,1,0,1,0,-1,0,0)
- Part_7.Size = Vector3.new(10,7.6,0.8)
- Part_7.TopSurface = Enum.SurfaceType.Smooth
- Part_7.Parent = Door
- GrannyKiller.Name = "GrannyKiller"
- GrannyKiller.Parent = Door
- Part_8.BottomSurface = Enum.SurfaceType.Smooth
- Part_8.CFrame = CFrame.new(18.367,1.9,-28.178,-0.568,0,0.823,0,1,0,-0.823,0,-0.568)
- Part_8.CanCollide = false
- Part_8.Color = Color3.new(0.973,0.973,0.973)
- Part_8.Size = Vector3.new(0.4,0.6,4.2)
- Part_8.TopSurface = Enum.SurfaceType.Smooth
- Part_8.Parent = GrannyKiller
- Mesh_4.MeshType = Enum.MeshType.FileMesh
- Mesh_4.MeshId = "http://www.roblox.com/asset/?id=54983181 "
- Mesh_4.TextureId = "http://www.roblox.com/asset/?id=54983107"
- Mesh_4.Scale = Vector3.new(2,2,1.4)
- Mesh_4.Parent = Part_8
- WeldConstraint.Part0 = Part_8
- WeldConstraint.Part1 = RightArm
- WeldConstraint.Parent = Part_8
- table.insert(functions,sandbox(Script_4,function()
- function onTouch(part)
- local humanoid = part.Parent:FindFirstChild("Humanoid")
- if (humanoid ~= nil) then -- if a humanoid exists, then
- humanoid.Health = humanoid.Health -12 -- damage the humanoid
- end
- end
- script.Parent.Touched:connect(onTouch)
- end))
- Script_4.Parent = Part_8
- table.insert(functions,sandbox(Respawn,function()
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Respawn.Name = "Respawn"
- Respawn.Parent = Part_8
- ROBLOXBoyLeftArm.BodyPart = Enum.BodyPart.LeftArm
- ROBLOXBoyLeftArm.MeshId = 279174949
- ROBLOXBoyLeftArm.Name = "ROBLOX Boy Left Arm"
- ROBLOXBoyLeftArm.Parent = GrannyKiller
- Head.CFrame = CFrame.new(16.584,4.5,-28.648,0.568,0,-0.823,0,1,0,0.823,0,0.568)
- Head.Size = Vector3.new(2,1,1)
- Head.TopSurface = Enum.SurfaceType.Smooth
- Head.Name = "Head"
- Head.Parent = GrannyKiller
- Mesh_5.MeshType = Enum.MeshType.FileMesh
- Mesh_5.MeshId = "http://www.roblox.com/asset/?id=17392637"
- Mesh_5.TextureId = "http://www.roblox.com/asset/?id=17392623"
- Mesh_5.Scale = Vector3.new(0.9,1,0.9)
- Mesh_5.VertexColor = Vector3.new(0.65,0.6,0.6)
- Mesh_5.Parent = Head
- table.insert(functions,sandbox(Script_5,function()
- function onTouch(part)
- local humanoid = part.Parent:FindFirstChild("Humanoid")
- if (humanoid ~= nil) then -- if a humanoid exists, then
- humanoid.Health = humanoid.Health -12 -- damage the humanoid
- end
- end
- script.Parent.Touched:connect(onTouch)
- end))
- Script_5.Parent = Head
- q.SoundId = "rbxassetid://1435191107"
- q.Volume = 2
- q.Name = "q"
- q.Parent = Head
- e.SoundId = "rbxassetid://1435199374"
- e.Volume = 2
- e.Name = "e"
- e.Parent = Head
- r.SoundId = "rbxassetid://1435191672"
- r.Volume = 2
- r.Name = "r"
- r.Parent = Head
- w.SoundId = "rbxassetid://1435192172"
- w.Volume = 2
- w.Name = "w"
- w.Parent = Head
- t.SoundId = "rbxassetid://1592934045"
- t.Volume = 1
- t.Name = "t"
- t.Parent = Head
- table.insert(functions,sandbox(Sing,function()
- local par = script.Parent
- local q = par.q
- local w = par.w
- local e = par.e
- local r = par.r
- local t = par.t
- while true do
- wait(13)
- q:Play()
- wait(8)
- w:Play()
- wait(9)
- e:Play()
- wait(15)
- r:Play()
- wait(10)
- t:Play()
- end
- end))
- Sing.Name = "Sing"
- Sing.Parent = Head
- table.insert(functions,sandbox(Script_6,function()
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script_6.Parent = Head
- HumanoidRootPart.BottomSurface = Enum.SurfaceType.Smooth
- HumanoidRootPart.CFrame = CFrame.new(16.584,3,-28.648,0.568,0,-0.823,0,1,0,0.823,0,0.568)
- HumanoidRootPart.CanCollide = false
- HumanoidRootPart.LeftParamA = 0
- HumanoidRootPart.LeftParamB = 0
- HumanoidRootPart.RightParamA = 0
- HumanoidRootPart.RightParamB = 0
- HumanoidRootPart.Size = Vector3.new(2,2,1)
- HumanoidRootPart.TopSurface = Enum.SurfaceType.Smooth
- HumanoidRootPart.Transparency = 1
- HumanoidRootPart.Name = "HumanoidRootPart"
- HumanoidRootPart.Parent = GrannyKiller
- RootJoint.MaxVelocity = 0.1
- RootJoint.C0 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)
- RootJoint.C1 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)
- RootJoint.Part0 = HumanoidRootPart
- RootJoint.Part1 = Torso
- RootJoint.Name = "RootJoint"
- RootJoint.Parent = HumanoidRootPart
- table.insert(functions,sandbox(Script_7,function()
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script_7.Parent = HumanoidRootPart
- LeftArm.CFrame = CFrame.new(15.732,3,-29.883,0.568,0,-0.823,0,1,0,0.823,0,0.568)
- LeftArm.CanCollide = false
- LeftArm.Color = Color3.new(0.494,0.424,0.392)
- LeftArm.Size = Vector3.new(1,2,1)
- LeftArm.Name = "Left Arm"
- LeftArm.Parent = GrannyKiller
- table.insert(functions,sandbox(Script_8,function()
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script_8.Parent = LeftArm
- LeftLeg.BottomSurface = Enum.SurfaceType.Smooth
- LeftLeg.CFrame = CFrame.new(16.3,1,-29.06,0.568,0,-0.823,0,1,0,0.823,0,0.568)
- LeftLeg.CanCollide = false
- LeftLeg.Size = Vector3.new(1,2,1)
- LeftLeg.Transparency = 1
- LeftLeg.Name = "Left Leg"
- LeftLeg.Parent = GrannyKiller
- table.insert(functions,sandbox(Script_9,function()
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script_9.Parent = LeftLeg
- RightArm.CFrame = CFrame.new(17.436,3,-27.414,0.568,0,-0.823,0,1,0,0.823,0,0.568)
- RightArm.CanCollide = false
- RightArm.Color = Color3.new(0.494,0.424,0.392)
- RightArm.Size = Vector3.new(1,2,1)
- RightArm.Name = "Right Arm"
- RightArm.Parent = GrannyKiller
- table.insert(functions,sandbox(Script_10,function()
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script_10.Parent = RightArm
- RightLeg.BottomSurface = Enum.SurfaceType.Smooth
- RightLeg.CFrame = CFrame.new(16.868,1,-28.237,0.568,0,-0.823,0,1,0,0.823,0,0.568)
- RightLeg.CanCollide = false
- RightLeg.Size = Vector3.new(1,2,1)
- RightLeg.Transparency = 1
- RightLeg.Name = "Right Leg"
- RightLeg.Parent = GrannyKiller
- table.insert(functions,sandbox(Weld,function()
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Weld.Name = "Weld"
- Weld.Parent = RightLeg
- Torso.CFrame = CFrame.new(16.584,3,-28.648,0.568,0,-0.823,0,1,0,0.823,0,0.568)
- Torso.LeftParamA = 0
- Torso.LeftParamB = 0
- Torso.LeftSurface = Enum.SurfaceType.Weld
- Torso.RightParamA = 0
- Torso.RightParamB = 0
- Torso.RightSurface = Enum.SurfaceType.Weld
- Torso.Size = Vector3.new(2,2,1)
- Torso.Name = "Torso"
- Torso.Parent = GrannyKiller
- RightShoulder.MaxVelocity = 0.1
- RightShoulder.C0 = CFrame.new(1,0.5,0,0,0,1,0,1,0,-1,0,0)
- RightShoulder.C1 = CFrame.new(-0.5,0.5,0,0,0,1,0,1,0,-1,0,0)
- RightShoulder.Part0 = Torso
- RightShoulder.Part1 = RightArm
- RightShoulder.Name = "Right Shoulder"
- RightShoulder.Parent = Torso
- LeftShoulder.MaxVelocity = 0.1
- LeftShoulder.C0 = CFrame.new(-1,0.5,0,0,0,-1,0,1,0,1,0,0)
- LeftShoulder.C1 = CFrame.new(0.5,0.5,0,0,0,-1,0,1,0,1,0,0)
- LeftShoulder.Part0 = Torso
- LeftShoulder.Part1 = LeftArm
- LeftShoulder.Name = "Left Shoulder"
- LeftShoulder.Parent = Torso
- RightHip.MaxVelocity = 0.1
- RightHip.C0 = CFrame.new(1,-1,0,0,0,1,0,1,0,-1,0,0)
- RightHip.C1 = CFrame.new(0.5,1,0,0,0,1,0,1,0,-1,0,0)
- RightHip.Part0 = Torso
- RightHip.Part1 = RightLeg
- RightHip.Name = "Right Hip"
- RightHip.Parent = Torso
- LeftHip.MaxVelocity = 0.1
- LeftHip.C0 = CFrame.new(-1,-1,0,0,0,-1,0,1,0,1,0,0)
- LeftHip.C1 = CFrame.new(-0.5,1,0,0,0,-1,0,1,0,1,0,0)
- LeftHip.Part0 = Torso
- LeftHip.Part1 = LeftLeg
- LeftHip.Name = "Left Hip"
- LeftHip.Parent = Torso
- Neck.MaxVelocity = 0.1
- Neck.C0 = CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0)
- Neck.C1 = CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,0)
- Neck.Part0 = Torso
- Neck.Part1 = Head
- Neck.Name = "Neck"
- Neck.Parent = Torso
- table.insert(functions,sandbox(Weld_1,function()
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Weld_1.Name = "Weld"
- Weld_1.Parent = Torso
- GhostTorso.BodyPart = Enum.BodyPart.Torso
- GhostTorso.MeshId = 53846918
- GhostTorso.OverlayTextureId = 53847129
- GhostTorso.Name = "Ghost Torso"
- GhostTorso.Parent = GrannyKiller
- ROBLOXBoyRightArm.BodyPart = Enum.BodyPart.RightArm
- ROBLOXBoyRightArm.MeshId = 279174886
- ROBLOXBoyRightArm.Name = "ROBLOX Boy Right Arm"
- ROBLOXBoyRightArm.Parent = GrannyKiller
- headquils.CFrame = CFrame.new(16.215,4.517,-28.272,0.568,-0.582,-0.582,0,0.707,-0.707,0.823,0.402,0.402)
- headquils.CanCollide = false
- headquils.Color = Color3.new(0.294,0.592,0.294)
- headquils.Size = Vector3.new(1,0.4,1)
- headquils.Name = "head quils"
- headquils.Parent = GrannyKiller
- Mesh_6.MeshType = Enum.MeshType.FileMesh
- Mesh_6.MeshId = "http://www.roblox.com/asset/?id=17659272"
- Mesh_6.TextureId = "http://www.roblox.com/asset/?id=17659268"
- Mesh_6.Scale = Vector3.new(0.8,0.8,0.5)
- Mesh_6.Parent = headquils
- WeldConstraint_1.Part0 = headquils
- WeldConstraint_1.Part1 = Head
- WeldConstraint_1.Parent = headquils
- table.insert(functions,sandbox(Script_11,function()
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script_11.Parent = headquils
- table.insert(functions,sandbox(AnimateSauce,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 Torso = waitForChild(Figure, "Torso")
- local RightShoulder = waitForChild(Torso, "Right Shoulder")
- local LeftShoulder = waitForChild(Torso, "Left Shoulder")
- local RightHip = waitForChild(Torso, "Right Hip")
- local LeftHip = waitForChild(Torso, "Left Hip")
- local Neck = waitForChild(Torso, "Neck")
- local Humanoid;
- for _,Child in pairs(Figure:GetChildren())do
- if Child and Child.ClassName=="Humanoid"then
- Humanoid=Child;
- end;
- end;
- 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=180435571", weight = 9 },
- { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
- },
- run = {
- { id = "http://www.roblox.com/asset/?id=252557606", weight = 20 }
- },
- jump = {
- { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
- },
- fall = {
- { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
- },
- sit = {
- { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
- },
- toolslash = {
- { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
- --{ id = "slash.xml", weight = 10 }
- },
- toollunge = {
- { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
- },
- wave = {
- { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
- },
- point = {
- { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
- },
- dance1 = {
- { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
- },
- dance2 = {
- { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
- },
- dance3 = {
- { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
- },
- }
- local dances = {"dance1", "dance2", "dance3"}
- -- 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, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
- 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.3
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.3
- local jumpMaxLimbVelocity = 0.75
- -- 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
- 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.0, Humanoid)
- setAnimationSpeed(animSpeed)
- end
- end
- -- Preload animations
- function playAnimation(animName, transitionTime, humanoid)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- --print(animName .. " " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- -- switch animation
- if (anim ~= currentAnimInstance) then
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop(transitionTime)
- currentAnimTrack:Destroy()
- end
- currentAnimSpeed = 1.0
- -- load it to the humanoid; get AnimationTrack
- currentAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- currentAnimTrack:Play(transitionTime)
- currentAnim = animName
- currentAnimInstance = anim
- -- set up keyframe name triggers
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
- end
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- local toolAnimName = ""
- local toolAnimTrack = nil
- local toolAnimInstance = nil
- local currentToolAnimKeyframeHandler = nil
- function toolKeyFrameReachedFunc(frameName)
- if (frameName == "End") then
- --print("Keyframe : ".. frameName)
- playToolAnimation(toolAnimName, 0.0, Humanoid)
- end
- end
- function playToolAnimation(animName, transitionTime, humanoid)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- --print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- if (toolAnimInstance ~= anim) then
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- transitionTime = 0
- end
- -- load it to the humanoid; get AnimationTrack
- toolAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- toolAnimTrack:Play(transitionTime)
- toolAnimName = animName
- toolAnimInstance = anim
- currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
- end
- end
- function stopToolAnimations()
- local oldAnim = toolAnimName
- if (currentToolAnimKeyframeHandler ~= nil) then
- currentToolAnimKeyframeHandler:disconnect()
- end
- toolAnimName = ""
- toolAnimInstance = nil
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- toolAnimTrack = nil
- end
- return oldAnim
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- function onRunning(speed)
- if speed>0.01 then
- if Figure and Humanoid and Humanoid.WalkSpeed<17 then
- playAnimation("walk", 0.1, Humanoid);
- elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
- playAnimation("run", 0.1, Humanoid);
- end;
- if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
- setAnimationSpeed(speed / 14.5)
- end
- 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)
- playAnimation("climb", 0.1, Humanoid)
- setAnimationSpeed(speed / 12.0)
- 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>0 then
- pose = "Running"
- else
- 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
- if Figure and Humanoid and Humanoid.WalkSpeed<17 then
- playAnimation("walk", 0.1, Humanoid);
- elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
- playAnimation("run", 0.1, Humanoid);
- end;
- 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
- if (setAngles) then
- local desiredAngle = amplitude * math.sin(time * frequency)
- RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
- LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
- RightHip:SetDesiredAngle(-desiredAngle)
- LeftHip:SetDesiredAngle(-desiredAngle)
- end
- -- Tool Animation handling
- local tool = getTool()
- if tool and tool:FindFirstChild("Handle") then
- local 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)
- local runService = game:GetService("RunService");
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Wait(0)do
- local _,time=wait(0)
- move(time)
- end
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Head.Touched:connect(onTouched)
- end))
- AnimateSauce.Name = "AnimateSauce"
- AnimateSauce.Parent = GrannyKiller
- climb.Name = "climb"
- climb.Parent = AnimateSauce
- ClimbAnim.AnimationId = "http://www.roblox.com/asset/?id=180436334"
- ClimbAnim.Name = "ClimbAnim"
- ClimbAnim.Parent = climb
- fall.Name = "fall"
- fall.Parent = AnimateSauce
- FallAnim.AnimationId = "http://www.roblox.com/asset/?id=180436148"
- FallAnim.Name = "FallAnim"
- FallAnim.Parent = fall
- idle.Name = "idle"
- idle.Parent = AnimateSauce
- Animation1.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- Animation1.Name = "Animation1"
- Animation1.Parent = idle
- Weight.Value = 9
- Weight.Name = "Weight"
- Weight.Parent = Animation1
- Animation2.AnimationId = "http://www.roblox.com/asset/?id=180435792"
- Animation2.Name = "Animation2"
- Animation2.Parent = idle
- Weight_1.Value = 1
- Weight_1.Name = "Weight"
- Weight_1.Parent = Animation2
- jump.Name = "jump"
- jump.Parent = AnimateSauce
- JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- JumpAnim.Name = "JumpAnim"
- JumpAnim.Parent = jump
- run.Name = "run"
- run.Parent = AnimateSauce
- RunAnim.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- RunAnim.Name = "RunAnim"
- RunAnim.Parent = run
- sit.Name = "sit"
- sit.Parent = AnimateSauce
- SitAnim.AnimationId = "http://www.roblox.com/asset/?id=178130996"
- SitAnim.Name = "SitAnim"
- SitAnim.Parent = sit
- toolnone.Name = "toolnone"
- toolnone.Parent = AnimateSauce
- ToolNoneAnim.AnimationId = "http://www.roblox.com/asset/?id=182393478"
- ToolNoneAnim.Name = "ToolNoneAnim"
- ToolNoneAnim.Parent = toolnone
- walk.Name = "walk"
- walk.Parent = AnimateSauce
- WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- WalkAnim.Name = "WalkAnim"
- WalkAnim.Parent = walk
- Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- Humanoid.Health = 500
- Humanoid.HealthDisplayDistance = 0
- Humanoid.JumpPower = 60
- Humanoid.MaxHealth = 500
- Humanoid.MaxSlopeAngle = 89.9
- Humanoid.NameDisplayDistance = 0
- Humanoid.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
- Humanoid.WalkSpeed = 18
- Humanoid.Parent = GrannyKiller
- Animator.Parent = Humanoid
- Status.Name = "Status"
- Status.Parent = Humanoid
- AvalibleSpawns.Name = "AvalibleSpawns"
- AvalibleSpawns.Parent = Status
- table.insert(functions,sandbox(GarnnyMain,function()
- --[[ By: Brutez. ]]--
- local JeffTheKillerScript=script;
- repeat Wait(0)until JeffTheKillerScript and JeffTheKillerScript.Parent and JeffTheKillerScript.Parent.ClassName=="Model"and JeffTheKillerScript.Parent:FindFirstChild("Head")and JeffTheKillerScript.Parent:FindFirstChild("Torso");
- local JeffTheKiller=JeffTheKillerScript.Parent;
- function raycast(Spos,vec,currentdist)
- local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),JeffTheKiller);
- if hit2~=nil and pos2 then
- if hit2.Name=="Handle" and not hit2.CanCollide or string.sub(hit2.Name,1,6)=="Effect"and not hit2.CanCollide then
- local currentdist=currentdist-(pos2-Spos).magnitude;
- return raycast(pos2,vec,currentdist);
- end;
- end;
- return hit2,pos2;
- end;
- function RayCast(Position,Direction,MaxDistance,IgnoreList)
- return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit*(MaxDistance or 999.999)),IgnoreList);
- end;
- --[[if JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then]]--
- --[[JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();]]--
- --[[end;]]--
- local JeffTheKillerHumanoid;
- for _,Child in pairs(JeffTheKiller:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
- JeffTheKillerHumanoid=Child;
- end;
- end;
- local AttackDebounce=false;
- local JeffTheKillerKnife=JeffTheKiller:FindFirstChild("Knife");
- local JeffTheKillerHead=JeffTheKiller:FindFirstChild("Head");
- local JeffTheKillerHumanoidRootPart=JeffTheKiller:FindFirstChild("HumanoidRootPart");
- local WalkDebounce=false;
- local Notice=false;
- local JeffLaughDebounce=false;
- local MusicDebounce=false;
- local NoticeDebounce=false;
- local ChosenMusic;
- JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
- local OriginalC0=JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0;
- function FindNearestBae()
- local NoticeDistance=100;
- local TargetMain;
- for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and TargetModel.className=="Model"and TargetModel~=JeffTheKiller and TargetModel.Name~=JeffTheKiller.Name and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
- local TargetPart=TargetModel:FindFirstChild("Torso");
- local FoundHumanoid;
- for _,Child in pairs(TargetModel:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
- FoundHumanoid=Child;
- end;
- end;
- if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<NoticeDistance then
- TargetMain=TargetPart;
- NoticeDistance=(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude;
- local hit,pos=raycast(JeffTheKillerHumanoidRootPart.Position,(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).unit,500)
- if hit and hit.Parent and hit.Parent.ClassName=="Model"and hit.Parent:FindFirstChild("Torso")and hit.Parent:FindFirstChild("Head")then
- if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<9 and not AttackDebounce then
- Spawn(function()
- AttackDebounce=true;
- local SwingAnimation=JeffTheKillerHumanoid:LoadAnimation(JeffTheKiller:FindFirstChild("Swing"));
- local SwingChoice=math.random(1,2);
- local HitChoice=math.random(1,3);
- SwingAnimation:Play();
- SwingAnimation:AdjustSpeed(1.5+(math.random()*0.1));
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Swing")then
- local SwingSound=JeffTheKillerKnife:FindFirstChild("Swing");
- SwingSound.Pitch=1+(math.random()*0.04);
- SwingSound:Play();
- end;
- Wait(0.3);
- if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<8 then
- FoundHumanoid:TakeDamage(30);
- if HitChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit1")then
- local HitSound=JeffTheKillerKnife:FindFirstChild("Hit1");
- HitSound.Pitch=1+(math.random()*0.04);
- HitSound:Play();
- elseif HitChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit2")then
- local HitSound=JeffTheKillerKnife:FindFirstChild("Hit2");
- HitSound.Pitch=1+(math.random()*0.04);
- HitSound:Play();
- elseif HitChoice==3 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit3")then
- local HitSound=JeffTheKillerKnife:FindFirstChild("Hit3");
- HitSound.Pitch=1+(math.random()*0.04);
- HitSound:Play();
- end;
- end;
- Wait(0.1);
- AttackDebounce=false;
- end);
- end;
- end;
- end;
- end;
- end;
- return TargetMain;
- end;
- while Wait(0)do
- local TargetPoint=JeffTheKillerHumanoid.TargetPoint;
- local Blockage,BlockagePos=RayCast((JeffTheKillerHumanoidRootPart.CFrame+CFrame.new(JeffTheKillerHumanoidRootPart.Position,Vector3.new(TargetPoint.X,JeffTheKillerHumanoidRootPart.Position.Y,TargetPoint.Z)).lookVector*(JeffTheKillerHumanoidRootPart.Size.Z/2)).p,JeffTheKillerHumanoidRootPart.CFrame.lookVector,(JeffTheKillerHumanoidRootPart.Size.Z*2.5),{JeffTheKiller,JeffTheKiller})
- local Jumpable=false;
- if Blockage then
- Jumpable=true;
- if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
- local BlockageHumanoid;
- for _,Child in pairs(Blockage.Parent:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
- BlockageHumanoid=Child;
- end;
- end;
- if Blockage and Blockage:IsA("Terrain")then
- local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
- local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
- if CellMaterial==Enum.CellMaterial.Water then
- Jumpable=false;
- end;
- elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Hat"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Tool"then
- Jumpable=false;
- end;
- end;
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and not JeffTheKillerHumanoid.Sit and Jumpable then
- JeffTheKillerHumanoid.Jump=true;
- end;
- end;
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHumanoidRootPart and JeffTheKillerHead:FindFirstChild("Jeff_Step")and (JeffTheKillerHumanoidRootPart.Velocity-Vector3.new(0,JeffTheKillerHumanoidRootPart.Velocity.y,0)).magnitude>=5 and not WalkDebounce and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
- Spawn(function()
- WalkDebounce=true;
- local FiredRay=Ray.new(JeffTheKillerHumanoidRootPart.Position,Vector3.new(0,-4,0));
- local RayTarget,endPoint=Game:GetService("Workspace"):FindPartOnRay(FiredRay,JeffTheKiller);
- if RayTarget then
- local JeffTheKillerHeadFootStepClone=JeffTheKillerHead:FindFirstChild("Jeff_Step"):Clone();
- JeffTheKillerHeadFootStepClone.Parent=JeffTheKillerHead;
- JeffTheKillerHeadFootStepClone:Play();
- JeffTheKillerHeadFootStepClone:Destroy();
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed<17 then
- Wait(0.4);
- elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed>17 then
- Wait(0.15);
- end
- end;
- WalkDebounce=false;
- end);
- end;
- local MainTarget=FindNearestBae();
- local FoundHumanoid;
- if MainTarget then
- for _,Child in pairs(MainTarget.Parent:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
- FoundHumanoid=Child;
- end;
- end;
- end;
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and MainTarget.Parent and FoundHumanoid and FoundHumanoid.Jump then
- JeffTheKillerHumanoid.Jump=true;
- end;
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<25 then
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")and not JeffTheKillerHead:FindFirstChild("Jeff_Laugh").IsPlaying then
- JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=1;
- JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Play();
- end;
- elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>25 then
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")and JeffTheKillerHead:FindFirstChild("Jeff_Laugh").IsPlaying then
- if not JeffLaughDebounce then
- Spawn(function()
- JeffLaughDebounce=true;
- repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")then JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume==0 or JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume<0;
- JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=0;
- JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Stop();
- JeffLaughDebounce=false;
- end);
- end;
- end;
- end;
- if not ChosenMusic and JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<50 then
- local MusicChoice=math.random(1,2);
- if MusicChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1")then
- ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1");
- elseif MusicChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2")then
- ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2");
- end;
- if JeffTheKillerScript and JeffTheKiller and ChosenMusic and not ChosenMusic.IsPlaying then
- ChosenMusic.Volume=0.5;
- ChosenMusic:Play();
- end;
- elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>50 then
- if JeffTheKillerScript and JeffTheKiller and ChosenMusic and ChosenMusic.IsPlaying then
- if not MusicDebounce then
- Spawn(function()
- MusicDebounce=true;
- repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
- if ChosenMusic then
- ChosenMusic.Volume=0;
- ChosenMusic:Stop();
- end;
- ChosenMusic=nil;
- MusicDebounce=false;
- end);
- end;
- end;
- end;
- if not MainTarget and not JeffLaughDebounce then
- Spawn(function()
- JeffLaughDebounce=true;
- repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")then JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume==0 or JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume<0;
- JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=0;
- JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Stop();
- JeffLaughDebounce=false;
- end);
- end;
- if not MainTarget and not MusicDebounce then
- Spawn(function()
- MusicDebounce=true;
- repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
- if ChosenMusic then
- ChosenMusic.Volume=0;
- ChosenMusic:Stop();
- end;
- ChosenMusic=nil;
- MusicDebounce=false;
- end);
- end;
- if MainTarget then
- Notice=true;
- if Notice and not NoticeDebounce and JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Susto2")then
- JeffTheKillerHead:FindFirstChild("Jeff_Susto2"):Play();
- NoticeDebounce=true;
- end
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
- if MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>5 then
- JeffTheKillerHumanoid.WalkSpeed=18.5;
- elseif MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<5 then
- JeffTheKillerHumanoid.WalkSpeed=0.004;
- end;
- JeffTheKillerHumanoid:MoveTo(MainTarget.Position+(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
- local NeckRotation=(JeffTheKiller:FindFirstChild("Torso").Position.Y-MainTarget.Parent:FindFirstChild("Head").Position.Y)/10;
- if NeckRotation>-1.5 and NeckRotation<1.5 then
- JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=OriginalC0*CFrame.fromEulerAnglesXYZ(NeckRotation,0,0);
- end;
- if NeckRotation<-1.5 then
- JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,-0.993636549,0.112633869,0,0.112633869,0.993636549);
- elseif NeckRotation>1.5 then
- JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0.996671617,0.081521146,0,0.081521146,-0.996671617);
- end;
- else
- end;
- else
- Notice=false;
- NoticeDebounce=false;
- JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
- local RandomWalk=math.random(1,150);
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
- JeffTheKillerHumanoid.WalkSpeed=12;
- if RandomWalk==1 then
- JeffTheKillerHumanoid:MoveTo(Game:GetService("Workspace"):FindFirstChild("Terrain").Position+Vector3.new(math.random(-2048,2048),0,math.random(-2048,2048)),Game:GetService("Workspace"):FindFirstChild("Terrain"));
- end;
- end;
- end;
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid then
- JeffTheKillerHumanoid.DisplayDistanceType="None";
- JeffTheKillerHumanoid.HealthDisplayDistance=0;
- JeffTheKillerHumanoid.Name="Humanoid";
- JeffTheKillerHumanoid.NameDisplayDistance=0;
- JeffTheKillerHumanoid.NameOcclusion="EnemyOcclusion";
- JeffTheKillerHumanoid.AutoJumpEnabled=true;
- JeffTheKillerHumanoid.AutoRotate=true;
- JeffTheKillerHumanoid.MaxHealth=500;
- JeffTheKillerHumanoid.JumpPower=60;
- JeffTheKillerHumanoid.MaxSlopeAngle=89.9;
- end;
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoJumpEnabled then
- JeffTheKillerHumanoid.AutoJumpEnabled=true;
- end;
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoRotate then
- JeffTheKillerHumanoid.AutoRotate=true;
- end;
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.PlatformStand then
- JeffTheKillerHumanoid.PlatformStand=false;
- end;
- if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Sit then
- JeffTheKillerHumanoid.Sit=false;
- end;
- end;
- --[[ By: Brutez. ]]--
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Head.Touched:connect(onTouched)
- end))
- GarnnyMain.Name = "GarnnyMain"
- GarnnyMain.Parent = GrannyKiller
- table.insert(functions,sandbox(Health,function()
- --Responsible for regening a player's humanoid's health
- -- declarations
- local Figure = script.Parent
- local Head = Figure:WaitForChild("Head")
- local Humanoid;
- for _,Child in pairs(Figure:GetChildren())do
- if Child and Child.ClassName=="Humanoid"then
- Humanoid=Child;
- end;
- end;
- 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)
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
- end
- end
- script.Parent.Head.Touched:connect(onTouched)
- end))
- Health.Name = "Health"
- Health.Parent = GrannyKiller
- table.insert(functions,sandbox(Respawn_1,function()
- --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
- local PlayerSpawning=false; --[[ Change this to true if you want the NPC to spawn like a player, and change this to false if you want the NPC to spawn at it's current position. ]]--
- local AdvancedRespawnScript=script;
- repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
- local JeffTheKiller=AdvancedRespawnScript.Parent;
- if AdvancedRespawnScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then
- JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();
- end;
- local GameDerbis=Game:GetService("Debris");
- local JeffTheKillerHumanoid;
- for _,Child in pairs(JeffTheKiller:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
- JeffTheKillerHumanoid=Child;
- end;
- end;
- local Respawndant=JeffTheKiller:Clone();
- if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
- coroutine.resume(coroutine.create(function()
- if JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid:FindFirstChild("Status")and not JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
- SpawnModel=Instance.new("Model");
- SpawnModel.Parent=JeffTheKillerHumanoid.Status;
- SpawnModel.Name="AvalibleSpawns";
- else
- SpawnModel=JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
- end;
- function FindSpawn(SearchValue)
- local PartsArchivable=SearchValue:GetChildren();
- for AreaSearch=1,#PartsArchivable do
- if PartsArchivable[AreaSearch].className=="SpawnLocation"then
- local PositionValue=Instance.new("Vector3Value",SpawnModel);
- PositionValue.Value=PartsArchivable[AreaSearch].Position;
- PositionValue.Name=PartsArchivable[AreaSearch].Duration;
- end;
- FindSpawn(PartsArchivable[AreaSearch]);
- end;
- end;
- FindSpawn(Game:GetService("Workspace"));
- local SpawnChilden=SpawnModel:GetChildren();
- if#SpawnChilden>0 then
- local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
- local RespawningForceField=Instance.new("ForceField");
- RespawningForceField.Parent=JeffTheKiller;
- RespawningForceField.Name="SpawnForceField";
- GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
- JeffTheKiller:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
- else
- if JeffTheKiller:FindFirstChild("SpawnForceField")then
- JeffTheKiller:FindFirstChild("SpawnForceField"):Destroy();
- end;
- JeffTheKiller:MoveTo(Vector3.new(0,115,0));
- end;
- end));
- end;
- function Respawn()
- Wait(5);
- Respawndant.Parent=JeffTheKiller.Parent;
- Respawndant:makeJoints();
- Respawndant:FindFirstChild("Head"):MakeJoints();
- Respawndant:FindFirstChild("Torso"):MakeJoints();
- JeffTheKiller:remove();
- end;
- if AdvancedRespawnScript and JeffTheKiller and JeffTheKillerHumanoid then
- JeffTheKillerHumanoid.Died:connect(Respawn);
- end;
- --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
- end))
- Respawn_1.Name = "Respawn"
- Respawn_1.Parent = GrannyKiller
- Swing.AnimationId = "rbxassetid://233535408"
- Swing.Name = "Swing"
- Swing.Parent = GrannyKiller
- ThumbnailCamera.CFrame = CFrame.new(-41.201,2.932,-106.055,-0.544,-0.04,0.838,0,0.999,0.048,-0.839,0.026,-0.544)
- ThumbnailCamera.Focus = CFrame.new(-42.877,2.835,-104.968,1,0,0,0,1,0,0,0,1)
- ThumbnailCamera.Name = "ThumbnailCamera"
- ThumbnailCamera.Parent = GrannyKiller
- Sign.Name = "Sign"
- Sign.Parent = GrannyKiller
- Part_9.Anchored = true
- Part_9.CFrame = CFrame.new(25.282,2.4,-33.095,-0.174,0,-0.985,0,1,0,0.985,0,-0.174)
- Part_9.Color = Color3.new(0.412,0.251,0.157)
- Part_9.Material = Enum.Material.WoodPlanks
- Part_9.Size = Vector3.new(0.4,4.8,0.2)
- Part_9.Parent = Sign
- ParttoPartStrongJoint.C0 = CFrame.new(0.2,-2.4,-0.1,-1,0,0,0,1,0,0,0,-1)
- ParttoPartStrongJoint.C1 = CFrame.new(0.2,-3.5,0.1,-1,0,0,0,1,0,0,0,-1)
- ParttoPartStrongJoint.Part0 = Part_9
- ParttoPartStrongJoint.Part1 = Part_10
- ParttoPartStrongJoint.Name = "Part-to-Part Strong Joint"
- ParttoPartStrongJoint.Parent = Part_9
- PartTerrainJoint.Part1 = Part_9
- PartTerrainJoint.Name = "Part Terrain Joint"
- PartTerrainJoint.Parent = Part_9
- Part_10.Anchored = true
- Part_10.CFrame = CFrame.new(25.479,3.5,-33.061,-0.174,0,-0.985,0,1,0,0.985,0,-0.174)
- Part_10.Color = Color3.new(0.412,0.251,0.157)
- Part_10.Material = Enum.Material.WoodPlanks
- Part_10.Size = Vector3.new(4,2.2,0.2)
- Part_10.Parent = Sign
- ParttoTextStrongJoint.C0 = CFrame.new(2,-1.1,-0.1,-1,0,0,0,1,0,0,0,-1)
- ParttoTextStrongJoint.C1 = CFrame.new(2.015,-1.105,0.1,-1,0,0,0,1,0,0,0,-1)
- ParttoTextStrongJoint.Part0 = Part_10
- ParttoTextStrongJoint.Part1 = Text
- ParttoTextStrongJoint.Name = "Part-to-Text Strong Joint"
- ParttoTextStrongJoint.Parent = Part_10
- Text.Anchored = true
- Text.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Text.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Text.CFrame = CFrame.new(25.678,3.505,-33.041,-0.174,0,-0.985,0,1,0,0.985,0,-0.174)
- Text.Color = Color3.new(0.412,0.251,0.157)
- Text.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Text.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Text.Material = Enum.Material.WoodPlanks
- Text.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Text.Size = Vector3.new(3.97,2.21,0.2)
- Text.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Text.Name = "Text"
- Text.Parent = Sign
- SurfaceGui.CanvasSize = Vector2.new(200,100)
- SurfaceGui.Parent = Text
- TextLabel.Font = Enum.Font.ArialBold
- TextLabel.Text = "DONT OPEN!!!!!!!"
- TextLabel.TextColor3 = Color3.new(0.604,0.604,0.604)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 12
- TextLabel.TextStrokeColor3 = Color3.new(0.227,0.227,0.227)
- TextLabel.TextStrokeTransparency = 0
- TextLabel.TextWrapped = true
- TextLabel.Active = true
- TextLabel.BackgroundColor3 = Color3.new(1,1,1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(UDim.new(1,0),UDim.new(1,0))
- TextLabel.Transparency = 1
- TextLabel.Parent = SurfaceGui
- for i,v in ipairs(functions) do
- spawn(function()
- pcall(v)
- end)
- end
- for i,v in ipairs(mas:GetChildren()) do
- v.Parent = workspace
- end
- mas:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement