Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Model1 = Instance.new("Model")
- Part2 = Instance.new("Part")
- SpecialMesh3 = Instance.new("SpecialMesh")
- Sound4 = Instance.new("Sound")
- Decal5 = Instance.new("Decal")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Weld8 = Instance.new("Weld")
- Part9 = Instance.new("Part")
- Decal10 = Instance.new("Decal")
- Motor6D11 = Instance.new("Motor6D")
- Motor6D12 = Instance.new("Motor6D")
- Motor6D13 = Instance.new("Motor6D")
- Motor6D14 = Instance.new("Motor6D")
- Motor6D15 = Instance.new("Motor6D")
- Part16 = Instance.new("Part")
- Part17 = Instance.new("Part")
- Weld18 = Instance.new("Weld")
- Part19 = Instance.new("Part")
- Part20 = Instance.new("Part")
- Humanoid21 = Instance.new("Humanoid")
- Model22 = Instance.new("Model")
- Model23 = Instance.new("Model")
- Part24 = Instance.new("Part")
- Motor6D25 = Instance.new("Motor6D")
- Sound26 = Instance.new("Sound")
- CharacterMesh27 = Instance.new("CharacterMesh")
- Script28 = Instance.new("Script")
- Script29 = Instance.new("Script")
- StringValue30 = Instance.new("StringValue")
- Animation31 = Instance.new("Animation")
- StringValue32 = Instance.new("StringValue")
- Animation33 = Instance.new("Animation")
- StringValue34 = Instance.new("StringValue")
- Animation35 = Instance.new("Animation")
- NumberValue36 = Instance.new("NumberValue")
- Animation37 = Instance.new("Animation")
- NumberValue38 = Instance.new("NumberValue")
- StringValue39 = Instance.new("StringValue")
- Animation40 = Instance.new("Animation")
- StringValue41 = Instance.new("StringValue")
- Animation42 = Instance.new("Animation")
- StringValue43 = Instance.new("StringValue")
- Animation44 = Instance.new("Animation")
- StringValue45 = Instance.new("StringValue")
- Animation46 = Instance.new("Animation")
- StringValue47 = Instance.new("StringValue")
- Animation48 = Instance.new("Animation")
- Animation49 = Instance.new("Animation")
- Part50 = Instance.new("Part")
- SpecialMesh51 = Instance.new("SpecialMesh")
- Sound52 = Instance.new("Sound")
- Sound53 = Instance.new("Sound")
- Sound54 = Instance.new("Sound")
- Sound55 = Instance.new("Sound")
- Pants56 = Instance.new("Pants")
- BodyColors57 = Instance.new("BodyColors")
- Hat58 = Instance.new("Hat")
- Part59 = Instance.new("Part")
- SpecialMesh60 = Instance.new("SpecialMesh")
- Script61 = Instance.new("Script")
- CharacterMesh62 = Instance.new("CharacterMesh")
- CharacterMesh63 = Instance.new("CharacterMesh")
- Script64 = Instance.new("Script")
- CharacterMesh65 = Instance.new("CharacterMesh")
- CharacterMesh66 = Instance.new("CharacterMesh")
- Model0.Name = "Laina"
- Model0.Parent = mas
- Model1.Name = "Laina The Killer"
- Model1.Parent = Model0
- Model1.PrimaryPart = Part2
- Part2.Name = "Head"
- Part2.Parent = Model1
- Part2.Material = Enum.Material.SmoothPlastic
- Part2.BrickColor = BrickColor.new("Institutional white")
- Part2.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part2.CanCollide = false
- Part2.Elasticity = 0
- Part2.FormFactor = Enum.FormFactor.Symmetric
- Part2.Friction = 0
- Part2.Size = Vector3.new(2, 1, 1)
- Part2.CFrame = CFrame.new(-69.1565018, 4.56325722, -6.80384684, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
- Part2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part2.Position = Vector3.new(-69.1565018, 4.56325722, -6.80384684)
- Part2.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
- SpecialMesh3.Parent = Part2
- SpecialMesh3.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh3.Scale = Vector3.new(1.25, 1.25, 1.25)
- Sound4.Name = "laina_Susto2"
- Sound4.Parent = Part2
- Sound4.Pitch = 2
- Sound4.SoundId = "rbxassetid://488485589"
- Sound4.Volume = 1
- Decal5.Name = "face"
- Decal5.Parent = Part2
- Decal5.Texture = "rbxassetid://116690930"
- Sound6.Name = "laina_Step"
- Sound6.Parent = Part2
- Sound6.Pitch = 1.7000000476837
- Sound6.SoundId = "rbxassetid://379611235"
- Sound6.Volume = 1
- Sound7.Name = "laina_Laugh"
- Sound7.Parent = Part2
- Sound7.Pitch = 1.3999999761581
- Sound7.Volume = 0
- Sound7.Looped = true
- Weld8.Name = "HeadWeld"
- Weld8.Parent = Part2
- Weld8.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld8.C1 = CFrame.new(0, 0.899999976, 0, 1, 0, 0, 0, 0.995037198, 0.0995037183, 0, -0.0995037183, 0.995037198)
- Weld8.Part0 = Part2
- Weld8.Part1 = Part59
- Part9.Name = "Torso"
- Part9.Parent = Model1
- Part9.Material = Enum.Material.SmoothPlastic
- Part9.BrickColor = BrickColor.new("Institutional white")
- Part9.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part9.CanCollide = false
- Part9.Elasticity = 0
- Part9.FormFactor = Enum.FormFactor.Symmetric
- Part9.Friction = 2
- Part9.Size = Vector3.new(2, 2, 1)
- Part9.CFrame = CFrame.new(-69.1565857, 3.06325698, -6.80367994, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
- Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part9.Position = Vector3.new(-69.1565857, 3.06325698, -6.80367994)
- Part9.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Decal10.Name = "roblox"
- Decal10.Parent = Part9
- Motor6D11.Name = "Right Shoulder"
- Motor6D11.Parent = Part9
- Motor6D11.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D11.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D11.Part0 = Part9
- Motor6D11.Part1 = Part17
- Motor6D11.MaxVelocity = 0.10000000149012
- Motor6D12.Name = "Left Shoulder"
- Motor6D12.Parent = Part9
- Motor6D12.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D12.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D12.Part0 = Part9
- Motor6D12.Part1 = Part16
- Motor6D12.MaxVelocity = 0.10000000149012
- Motor6D13.Name = "Right Hip"
- Motor6D13.Parent = Part9
- Motor6D13.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D13.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D13.Part0 = Part9
- Motor6D13.Part1 = Part20
- Motor6D13.MaxVelocity = 0.10000000149012
- Motor6D14.Name = "Left Hip"
- Motor6D14.Parent = Part9
- Motor6D14.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D14.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D14.Part0 = Part9
- Motor6D14.Part1 = Part19
- Motor6D14.MaxVelocity = 0.10000000149012
- Motor6D15.Name = "Neck"
- Motor6D15.Parent = Part9
- Motor6D15.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D15.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D15.Part0 = Part9
- Motor6D15.Part1 = Part2
- Motor6D15.MaxVelocity = 0.10000000149012
- Part16.Name = "Left Arm"
- Part16.Parent = Model1
- Part16.Material = Enum.Material.SmoothPlastic
- Part16.BrickColor = BrickColor.new("Institutional white")
- Part16.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part16.CanCollide = false
- Part16.Elasticity = 0
- Part16.FormFactor = Enum.FormFactor.Symmetric
- Part16.Friction = 2
- Part16.Size = Vector3.new(1, 2, 1)
- Part16.CFrame = CFrame.new(-70.656456, 3.06333923, -6.82315302, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
- Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part16.Position = Vector3.new(-70.656456, 3.06333923, -6.82315302)
- Part16.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part16.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part17.Name = "Right Arm"
- Part17.Parent = Model1
- Part17.Material = Enum.Material.SmoothPlastic
- Part17.BrickColor = BrickColor.new("Institutional white")
- Part17.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part17.CanCollide = false
- Part17.Elasticity = 0
- Part17.FormFactor = Enum.FormFactor.Symmetric
- Part17.Friction = 2
- Part17.Size = Vector3.new(1, 2, 1)
- Part17.CFrame = CFrame.new(-67.6567154, 3.06317472, -6.78420687, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
- Part17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part17.Position = Vector3.new(-67.6567154, 3.06317472, -6.78420687)
- Part17.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Weld18.Name = "RightGripWeld"
- Weld18.Parent = Part17
- Weld18.C0 = CFrame.new(-1.29999995, 1.16840947, 0.750634551, 1, 0, 0, 0, 0.968409479, 0.249365434, 0, -0.249365434, 0.968409479)
- Weld18.C1 = CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld18.Part0 = Part50
- Weld18.Part1 = Part17
- Part19.Name = "Left Leg"
- Part19.Parent = Model1
- Part19.Material = Enum.Material.SmoothPlastic
- Part19.BrickColor = BrickColor.new("Really black")
- Part19.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part19.CanCollide = false
- Part19.Elasticity = 0
- Part19.FormFactor = Enum.FormFactor.Symmetric
- Part19.Friction = 2
- Part19.Size = Vector3.new(1, 2, 1)
- Part19.CFrame = CFrame.new(-69.6566544, 1.0632844, -6.80994892, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
- Part19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part19.Position = Vector3.new(-69.6566544, 1.0632844, -6.80994892)
- Part19.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part20.Name = "Right Leg"
- Part20.Parent = Model1
- Part20.Material = Enum.Material.SmoothPlastic
- Part20.BrickColor = BrickColor.new("Really black")
- Part20.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part20.CanCollide = false
- Part20.Elasticity = 0
- Part20.FormFactor = Enum.FormFactor.Symmetric
- Part20.Friction = 2
- Part20.Size = Vector3.new(1, 2, 1)
- Part20.CFrame = CFrame.new(-68.6567383, 1.06322956, -6.79696655, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
- Part20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part20.Position = Vector3.new(-68.6567383, 1.06322956, -6.79696655)
- Part20.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Humanoid21.Name = "ColdBloodedKiller"
- Humanoid21.Parent = Model1
- Humanoid21.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- Humanoid21.HealthDisplayDistance = 0
- Humanoid21.NameDisplayDistance = 0
- Humanoid21.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
- Humanoid21.RightLeg = Part20
- Humanoid21.LeftLeg = Part19
- Humanoid21.Torso = Part24
- Humanoid21.Health = 500
- Humanoid21.MaxHealth = 5000
- Model22.Name = "Status"
- Model22.Parent = Humanoid21
- Model23.Name = "AvalibleSpawns"
- Model23.Parent = Model22
- Part24.Name = "HumanoidRootPart"
- Part24.Parent = Model1
- Part24.Material = Enum.Material.SmoothPlastic
- Part24.BrickColor = BrickColor.new("Bright blue")
- Part24.Transparency = 1
- Part24.Rotation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part24.CanCollide = false
- Part24.Elasticity = 0
- Part24.FormFactor = Enum.FormFactor.Symmetric
- Part24.Friction = 0
- Part24.Size = Vector3.new(2, 2, 1)
- Part24.CFrame = CFrame.new(-69.1565857, 3.06325698, -6.80367994, 0.999915779, 5.62754358e-05, -0.0129821077, -5.48280223e-05, 1, 0.000111848916, 0.0129821151, -0.000111127709, 0.999915719)
- Part24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part24.Position = Vector3.new(-69.1565857, 3.06325698, -6.80367994)
- Part24.Orientation = Vector3.new(-0.00999999978, -0.74000001, 0)
- Part24.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Motor6D25.Name = "RootJoint"
- Motor6D25.Parent = Part24
- Motor6D25.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D25.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D25.Part0 = Part24
- Motor6D25.Part1 = Part9
- Motor6D25.MaxVelocity = 0.10000000149012
- Sound26.Name = "Laina_Scene_Sound1"
- Sound26.Parent = Model1
- Sound26.SoundId = "rbxassetid://1372257"
- Sound26.Looped = true
- CharacterMesh27.Name = "3.0 Female Right Leg"
- CharacterMesh27.Parent = Model1
- CharacterMesh27.MeshId = 81628308
- CharacterMesh27.BodyPart = Enum.BodyPart.RightLeg
- Script28.Name = "Health"
- Script28.Parent = Model1
- table.insert(cors,sandbox(Script28,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)
- end))
- Script29.Name = "AnimateSauce"
- Script29.Parent = Model1
- table.insert(cors,sandbox(Script29,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
- end))
- StringValue30.Name = "climb"
- StringValue30.Parent = Script29
- Animation31.Name = "ClimbAnim"
- Animation31.Parent = StringValue30
- Animation31.AnimationId = "http://www.roblox.com/asset/?id=180436334"
- StringValue32.Name = "fall"
- StringValue32.Parent = Script29
- Animation33.Name = "FallAnim"
- Animation33.Parent = StringValue32
- Animation33.AnimationId = "http://www.roblox.com/asset/?id=180436148"
- StringValue34.Name = "idle"
- StringValue34.Parent = Script29
- Animation35.Name = "Animation1"
- Animation35.Parent = StringValue34
- Animation35.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- NumberValue36.Name = "Weight"
- NumberValue36.Parent = Animation35
- NumberValue36.Value = 9
- Animation37.Name = "Animation2"
- Animation37.Parent = StringValue34
- Animation37.AnimationId = "http://www.roblox.com/asset/?id=180435792"
- NumberValue38.Name = "Weight"
- NumberValue38.Parent = Animation37
- NumberValue38.Value = 1
- StringValue39.Name = "jump"
- StringValue39.Parent = Script29
- Animation40.Name = "JumpAnim"
- Animation40.Parent = StringValue39
- Animation40.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue41.Name = "run"
- StringValue41.Parent = Script29
- Animation42.Name = "RunAnim"
- Animation42.Parent = StringValue41
- Animation42.AnimationId = "http://www.roblox.com/asset/?id=252557606"
- StringValue43.Name = "sit"
- StringValue43.Parent = Script29
- Animation44.Name = "SitAnim"
- Animation44.Parent = StringValue43
- Animation44.AnimationId = "http://www.roblox.com/asset/?id=178130996"
- StringValue45.Name = "toolnone"
- StringValue45.Parent = Script29
- Animation46.Name = "ToolNoneAnim"
- Animation46.Parent = StringValue45
- Animation46.AnimationId = "http://www.roblox.com/asset/?id=182393478"
- StringValue47.Name = "walk"
- StringValue47.Parent = Script29
- Animation48.Name = "WalkAnim"
- Animation48.Parent = StringValue47
- Animation48.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- Animation49.Name = "Swing"
- Animation49.Parent = Model1
- Animation49.AnimationId = "rbxassetid://54584713"
- Part50.Name = "Knife"
- Part50.Parent = Model1
- Part50.Material = Enum.Material.Metal
- Part50.BrickColor = BrickColor.new("Mid gray")
- Part50.Rotation = Vector3.new(14.4299994, -0.719999969, 0.179999992)
- Part50.CanCollide = false
- Part50.Elasticity = 0
- Part50.FormFactor = Enum.FormFactor.Custom
- Part50.Friction = 2
- Part50.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part50.CFrame = CFrame.new(-67.8435287, 2.11875534, -7.80489492, 0.999915779, -0.00318279117, -0.0125860292, -5.48280223e-05, 0.968437374, -0.249257118, 0.0129821151, 0.249236807, 0.968355596)
- Part50.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part50.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part50.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part50.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part50.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part50.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part50.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part50.Position = Vector3.new(-67.8435287, 2.11875534, -7.80489492)
- Part50.Orientation = Vector3.new(14.4299994, -0.74000001, 0)
- Part50.Color = Color3.new(0.803922, 0.803922, 0.803922)
- SpecialMesh51.Name = "KnifeMesh"
- SpecialMesh51.Parent = Part50
- SpecialMesh51.MeshId = "rbxassetid://165710339"
- SpecialMesh51.Scale = Vector3.new(0.5, 0.5, 0.699999988)
- SpecialMesh51.TextureId = "rbxassetid://381626146"
- SpecialMesh51.MeshType = Enum.MeshType.FileMesh
- SpecialMesh51.Scale = Vector3.new(0.5, 0.5, 0.699999988)
- Sound52.Name = "Hit1"
- Sound52.Parent = Part50
- Sound52.Pitch = 1.0225422382355
- Sound52.SoundId = "rbxassetid://91154909"
- Sound52.Volume = 1
- Sound53.Name = "Hit2"
- Sound53.Parent = Part50
- Sound53.Pitch = 1.0092434883118
- Sound53.SoundId = "rbxassetid://91154932"
- Sound53.Volume = 1
- Sound54.Name = "Hit3"
- Sound54.Parent = Part50
- Sound54.Pitch = 1.0101846456528
- Sound54.SoundId = "rbxassetid://91154954"
- Sound54.Volume = 1
- Sound55.Name = "Swing"
- Sound55.Parent = Part50
- Sound55.SoundId = "rbxassetid://148196278"
- Sound55.Volume = 1
- Pants56.Name = "Pants"
- Pants56.Parent = Model1
- Pants56.PantsTemplate = "rbxassetid://36299419"
- BodyColors57.Parent = Model1
- BodyColors57.HeadColor = BrickColor.new("Institutional white")
- BodyColors57.LeftArmColor = BrickColor.new("Institutional white")
- BodyColors57.LeftLegColor = BrickColor.new("Really black")
- BodyColors57.RightArmColor = BrickColor.new("Institutional white")
- BodyColors57.RightLegColor = BrickColor.new("Really black")
- BodyColors57.TorsoColor = BrickColor.new("Institutional white")
- Hat58.Name = "LongHairHeadBand Black"
- Hat58.Parent = Model1
- Hat58.AttachmentForward = Vector3.new(-0, -0.0995037183, -0.995037198)
- Hat58.AttachmentPos = Vector3.new(0, 0.899999976, 0)
- Hat58.AttachmentUp = Vector3.new(0, 0.995037198, -0.0995037183)
- Part59.Name = "Handle"
- Part59.Parent = Hat58
- Part59.Rotation = Vector3.new(5.69999981, -0.74000001, 0.0700000003)
- Part59.CanCollide = false
- Part59.FormFactor = Enum.FormFactor.Plate
- Part59.Size = Vector3.new(1, 2.4000001, 2)
- Part59.CFrame = CFrame.new(-69.155365, 4.16771364, -6.89334869, 0.999915779, -0.00123577192, -0.0129232798, -5.48280223e-05, 0.995048344, -0.0993924215, 0.0129821151, 0.0993847549, 0.994964421)
- Part59.BottomSurface = Enum.SurfaceType.Smooth
- Part59.TopSurface = Enum.SurfaceType.Smooth
- Part59.Position = Vector3.new(-69.155365, 4.16771364, -6.89334869)
- Part59.Orientation = Vector3.new(5.69999981, -0.74000001, 0)
- SpecialMesh60.Parent = Part59
- SpecialMesh60.MeshId = "rbxassetid://13070796"
- SpecialMesh60.TextureId = "rbxassetid://14765363"
- SpecialMesh60.MeshType = Enum.MeshType.FileMesh
- Script61.Name = "Respawn"
- Script61.Parent = Model1
- table.insert(cors,sandbox(Script61,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))
- CharacterMesh62.Name = "3.0 Female Right Arm"
- CharacterMesh62.Parent = Model1
- CharacterMesh62.MeshId = 83001181
- CharacterMesh62.BodyPart = Enum.BodyPart.RightArm
- CharacterMesh63.Name = "3.0 Female Torso"
- CharacterMesh63.Parent = Model1
- CharacterMesh63.MeshId = 82987757
- CharacterMesh63.BodyPart = Enum.BodyPart.Torso
- Script64.Name = "LainaTheKillerMain"
- Script64.Parent = Model1
- table.insert(cors,sandbox(Script64,function()
- --[[ By: iidog_omg. ]]--
- local LainaTheKillerScript=script;
- repeat Wait(0)until LainaTheKillerScript and LainaTheKillerScript.Parent and LainaTheKillerScript.Parent.ClassName=="Model"and LainaTheKillerScript.Parent:FindFirstChild("Head")and LainaTheKillerScript.Parent:FindFirstChild("Torso");
- local LainaTheKiller=LainaTheKillerScript.Parent;
- function raycast(Spos,vec,currentdist)
- local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),LainaTheKiller);
- 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]]--
- --[[LainaTheKiller:FindFirstChild("Thumbnail"):Destroy();]]--
- --[[end;]]--
- local LainaTheKillerHumanoid;
- for _,Child in pairs(LainaTheKiller:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
- LainaTheKillerHumanoid=Child;
- end;
- end;
- local AttackDebounce=false;
- local LainaTheKillerKnife=LainaTheKiller:FindFirstChild("Knife");
- local LainaTheKillerHead=LainaTheKiller:FindFirstChild("Head");
- local LainaTheKillerHumanoidRootPart=LainaTheKiller:FindFirstChild("HumanoidRootPart");
- local WalkDebounce=false;
- local Notice=false;
- local JeffLaughDebounce=false;
- local MusicDebounce=false;
- local NoticeDebounce=false;
- local ChosenMusic;
- LainaTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
- local OriginalC0=LainaTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0;
- function FindNearestBae()
- local NoticeDistance=9999e9999;
- local TargetMain;
- for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and TargetModel.className=="Model"and TargetModel~=LainaTheKiller and TargetModel.Name~=LainaTheKiller.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-LainaTheKillerHumanoidRootPart.Position).magnitude<NoticeDistance then
- TargetMain=TargetPart;
- NoticeDistance=(TargetPart.Position-LainaTheKillerHumanoidRootPart.Position).magnitude;
- local hit,pos=raycast(LainaTheKillerHumanoidRootPart.Position,(TargetPart.Position-LainaTheKillerHumanoidRootPart.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-LainaTheKillerHumanoidRootPart.Position).magnitude<9 and not AttackDebounce then
- Spawn(function()
- AttackDebounce=true;
- local SwingAnimation=LainaTheKillerHumanoid:LoadAnimation(LainaTheKiller: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 LainaTheKillerScript and LainaTheKiller and LainaTheKillerKnife and LainaTheKillerKnife:FindFirstChild("Swing")then
- local SwingSound=LainaTheKillerKnife: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-LainaTheKillerHumanoidRootPart.Position).magnitude<8 then
- FoundHumanoid:TakeDamage(30);
- if HitChoice==1 and LainaTheKillerScript and LainaTheKiller and LainaTheKillerKnife and LainaTheKillerKnife:FindFirstChild("Hit1")then
- local HitSound=LainaTheKillerKnife:FindFirstChild("Hit1");
- HitSound.Pitch=1+(math.random()*0.04);
- HitSound:Play();
- elseif HitChoice==2 and LainaTheKillerScript and LainaTheKiller and LainaTheKillerKnife and LainaTheKillerKnife:FindFirstChild("Hit2")then
- local HitSound=LainaTheKillerKnife:FindFirstChild("Hit2");
- HitSound.Pitch=1+(math.random()*0.04);
- HitSound:Play();
- elseif HitChoice==3 and LainaTheKillerScript and LainaTheKiller and LainaTheKillerKnife and LainaTheKillerKnife:FindFirstChild("Hit3")then
- local HitSound=LainaTheKillerKnife: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=LainaTheKillerHumanoid.TargetPoint;
- local Blockage,BlockagePos=RayCast((LainaTheKillerHumanoidRootPart.CFrame+CFrame.new(LainaTheKillerHumanoidRootPart.Position,Vector3.new(TargetPoint.X,LainaTheKillerHumanoidRootPart.Position.Y,TargetPoint.Z)).lookVector*(LainaTheKillerHumanoidRootPart.Size.Z/2)).p,LainaTheKillerHumanoidRootPart.CFrame.lookVector,(LainaTheKillerHumanoidRootPart.Size.Z*2.5),{LainaTheKiller,LainaTheKiller})
- 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 LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and not LainaTheKillerHumanoid.Sit and Jumpable then
- LainaTheKillerHumanoid.Jump=true;
- end;
- end;
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHumanoidRootPart and LainaTheKillerHead:FindFirstChild("Jeff_Step")and (LainaTheKillerHumanoidRootPart.Velocity-Vector3.new(0,LainaTheKillerHumanoidRootPart.Velocity.y,0)).magnitude>=5 and not WalkDebounce and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 then
- Spawn(function()
- WalkDebounce=true;
- local FiredRay=Ray.new(LainaTheKillerHumanoidRootPart.Position,Vector3.new(0,-4,0));
- local RayTarget,endPoint=Game:GetService("Workspace"):FindPartOnRay(FiredRay,LainaTheKiller);
- if RayTarget then
- local LainaTheKillerHeadFootStepClone=LainaTheKillerHead:FindFirstChild("Jeff_Step"):Clone();
- LainaTheKillerHeadFootStepClone.Parent=LainaTheKillerHead;
- LainaTheKillerHeadFootStepClone:Play();
- LainaTheKillerHeadFootStepClone:Destroy();
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and LainaTheKillerHumanoid.WalkSpeed<17 then
- Wait(0.4);
- elseif LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and LainaTheKillerHumanoid.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 LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and MainTarget and MainTarget.Parent and FoundHumanoid and FoundHumanoid.Jump then
- LainaTheKillerHumanoid.Jump=true;
- end;
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude<25 then
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHead:FindFirstChild("Laina_Laugh")and not LainaTheKillerHead:FindFirstChild("Laina_Laugh").IsPlaying then
- LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume=1;
- LainaTheKillerHead:FindFirstChild("Laina_Laugh"):Play();
- end;
- elseif LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude>25 then
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHead:FindFirstChild("Laina_Laugh")and LainaTheKillerHead:FindFirstChild("Laina_Laugh").IsPlaying then
- if not JeffLaughDebounce then
- Spawn(function()
- JeffLaughDebounce=true;
- repeat Wait(0);if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHead:FindFirstChild("Jeff_Laugh")then LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume=LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume-0.1;else break;end;until LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume==0 or LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume<0;
- LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume=0;
- LainaTheKillerHead:FindFirstChild("Laina_Laugh"):Stop();
- JeffLaughDebounce=false;
- end);
- end;
- end;
- end;
- if not ChosenMusic and LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude<50 then
- local MusicChoice=math.random(1,2);
- if MusicChoice==1 and LainaTheKillerScript and LainaTheKiller and LainaTheKiller:FindFirstChild("Laina_Scene_Sound1")then
- ChosenMusic=LainaTheKiller:FindFirstChild("Laina_Scene_Sound1");
- end;
- if LainaTheKillerScript and LainaTheKiller and ChosenMusic and not ChosenMusic.IsPlaying then
- ChosenMusic.Volume=0.5;
- ChosenMusic:Play();
- end;
- elseif LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude>50 then
- if LainaTheKillerScript and LainaTheKiller and ChosenMusic and ChosenMusic.IsPlaying then
- if not MusicDebounce then
- Spawn(function()
- MusicDebounce=true;
- repeat Wait(0);if LainaTheKillerScript and LainaTheKiller 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 LainaLaughDebounce then
- Spawn(function()
- LainaLaughDebounce=true;
- repeat Wait(0);if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHead:FindFirstChild("Laina_Laugh")then LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume=LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume-0.1;else break;end;until LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume==0 or LainaTheKillerHead:FindFirstChild("Laina_Laugh").Volume<0;
- LainaTheKillerHead:FindFirstChild("laina_Laugh").Volume=0;
- LainaTheKillerHead:FindFirstChild("laina_Laugh"):Stop();
- LainaLaughDebounce=false;
- end);
- end;
- if not MainTarget and not MusicDebounce then
- Spawn(function()
- MusicDebounce=true;
- repeat Wait(0);if LainaTheKillerScript and LainaTheKiller 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 LainaTheKillerScript and LainaTheKiller and LainaTheKillerHead and LainaTheKillerHead:FindFirstChild("Laina_Susto2")then
- LainaTheKillerHead:FindFirstChild("Laina_Susto2"):Play();
- NoticeDebounce=true;
- end
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 then
- if MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude>5 then
- LainaTheKillerHumanoid.WalkSpeed=30;
- elseif MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).magnitude<5 then
- LainaTheKillerHumanoid.WalkSpeed=0.004;
- end;
- LainaTheKillerHumanoid:MoveTo(MainTarget.Position+(MainTarget.Position-LainaTheKillerHumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
- local NeckRotation=(LainaTheKiller:FindFirstChild("Torso").Position.Y-MainTarget.Parent:FindFirstChild("Head").Position.Y)/10;
- if NeckRotation>-1.5 and NeckRotation<1.5 then
- LainaTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=OriginalC0*CFrame.fromEulerAnglesXYZ(NeckRotation,0,0);
- end;
- if NeckRotation<-1.5 then
- LainaTheKiller: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
- LainaTheKiller: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;
- LainaTheKiller: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 LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Health~=0 then
- LainaTheKillerHumanoid.WalkSpeed=12;
- if RandomWalk==1 then
- LainaTheKillerHumanoid: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 LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid then
- LainaTheKillerHumanoid.DisplayDistanceType="None";
- LainaTheKillerHumanoid.HealthDisplayDistance=0;
- LainaTheKillerHumanoid.Name="ColdBloodedKiller";
- LainaTheKillerHumanoid.NameDisplayDistance=0;
- LainaTheKillerHumanoid.NameOcclusion="EnemyOcclusion";
- LainaTheKillerHumanoid.AutoJumpEnabled=true;
- LainaTheKillerHumanoid.AutoRotate=true;
- LainaTheKillerHumanoid.MaxHealth=5000;
- LainaTheKillerHumanoid.JumpPower=65;
- LainaTheKillerHumanoid.MaxSlopeAngle=89.9;
- end;
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and not LainaTheKillerHumanoid.AutoJumpEnabled then
- LainaTheKillerHumanoid.AutoJumpEnabled=true;
- end;
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and not LainaTheKillerHumanoid.AutoRotate then
- LainaTheKillerHumanoid.AutoRotate=true;
- end;
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.PlatformStand then
- LainaTheKillerHumanoid.PlatformStand=false;
- end;
- if LainaTheKillerScript and LainaTheKiller and LainaTheKillerHumanoid and LainaTheKillerHumanoid.Sit then
- LainaTheKillerHumanoid.Sit=false;
- end;
- end;
- --[[ By: iidog_omg. ]]--
- end))
- CharacterMesh65.Name = "3.0 Female Left Arm"
- CharacterMesh65.Parent = Model1
- CharacterMesh65.MeshId = 83001137
- CharacterMesh65.BodyPart = Enum.BodyPart.LeftArm
- CharacterMesh66.Name = "3.0 Female Left Leg"
- CharacterMesh66.Parent = Model1
- CharacterMesh66.MeshId = 81628361
- CharacterMesh66.BodyPart = Enum.BodyPart.LeftLeg
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement