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"))
- local chil = workspace:GetChildren()
- for i,v in pairs(chil) do
- if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
- v:Destroy()
- end
- end
- Camera0 = Instance.new("Camera")
- BlurEffect1 = Instance.new("BlurEffect")
- Model2 = Instance.new("Model")
- Model3 = Instance.new("Model")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Decal6 = Instance.new("Decal")
- ParticleEmitter7 = Instance.new("ParticleEmitter")
- ParticleEmitter8 = Instance.new("ParticleEmitter")
- Weld9 = Instance.new("Weld")
- Part10 = Instance.new("Part")
- Decal11 = Instance.new("Decal")
- Motor6D12 = Instance.new("Motor6D")
- Motor6D13 = Instance.new("Motor6D")
- Motor6D14 = Instance.new("Motor6D")
- Motor6D15 = Instance.new("Motor6D")
- Motor6D16 = Instance.new("Motor6D")
- Part17 = Instance.new("Part")
- Part18 = Instance.new("Part")
- 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")
- Script26 = Instance.new("Script")
- LocalScript27 = Instance.new("LocalScript")
- BodyColors28 = Instance.new("BodyColors")
- 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")
- Pants49 = Instance.new("Pants")
- Script50 = Instance.new("Script")
- Script51 = Instance.new("Script")
- CharacterMesh52 = Instance.new("CharacterMesh")
- CharacterMesh53 = Instance.new("CharacterMesh")
- CharacterMesh54 = Instance.new("CharacterMesh")
- CharacterMesh55 = Instance.new("CharacterMesh")
- CharacterMesh56 = Instance.new("CharacterMesh")
- Hat57 = Instance.new("Hat")
- Part58 = Instance.new("Part")
- SpecialMesh59 = Instance.new("SpecialMesh")
- Script60 = Instance.new("Script")
- LocalScript61 = Instance.new("LocalScript")
- Script62 = Instance.new("Script")
- Camera63 = Instance.new("Camera")
- Camera0.Parent = mas
- Camera0.CFrame = CFrame.new(-12.0368137, 15.9075775, 41.1931038, -0.932319701, 0.250300556, -0.261016876, -0, 0.721768141, 0.692135036, 0.361635417, 0.64529115, -0.672918499)
- Camera0.CoordinateFrame = CFrame.new(-12.0368137, 15.9075775, 41.1931038, -0.932319701, 0.250300556, -0.261016876, -0, 0.721768141, 0.692135036, 0.361635417, 0.64529115, -0.672918499)
- Camera0.Focus = CFrame.new(-7.80986786, 4.69903946, 52.0904465, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(-7.80986786, 4.69903946, 52.0904465, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- BlurEffect1.Parent = Camera0
- BlurEffect1.Size = 0
- Model2.Name = "Laina"
- Model2.Parent = mas
- Model3.Name = "Laina"
- Model3.Parent = Model2
- Model3.PrimaryPart = Part4
- Part4.Name = "Head"
- Part4.Parent = Model3
- Part4.CFrame = CFrame.new(-7.80986786, 6.50003195, 52.1800003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(-7.80986786, 6.50003195, 52.1800003)
- Part4.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part4.Size = Vector3.new(2, 1, 1)
- Part4.BackParamA = -99999
- Part4.BackParamB = 99999
- Part4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.BottomParamA = -99999
- Part4.BottomParamB = 99999
- Part4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.BrickColor = BrickColor.new("Cool yellow")
- Part4.CanCollide = false
- Part4.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
- Part4.Elasticity = 0
- Part4.Friction = 2
- Part4.FrontParamA = -99999
- Part4.FrontParamB = 99999
- Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.LeftParamA = -99999
- Part4.LeftParamB = 99999
- Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.Material = Enum.Material.SmoothPlastic
- Part4.RightParamA = -99999
- Part4.RightParamB = 99999
- Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.TopParamA = -99999
- Part4.TopParamB = 99999
- Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.brickColor = BrickColor.new("Cool yellow")
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh5.Parent = Part4
- SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal6.Name = "face"
- Decal6.Parent = Part4
- Decal6.Texture = "rbxassetid://116690930"
- ParticleEmitter7.Name = "Hearts"
- ParticleEmitter7.Parent = Part4
- ParticleEmitter7.Speed = NumberRange.new(1, 1)
- ParticleEmitter7.Enabled = false
- ParticleEmitter7.Texture = "rbxassetid://332222673"
- ParticleEmitter7.Size = NumberSequence.new(0,0.30000001192093,1,0.30000001192093,0.3125,1.3749998807907,0.30000001192093,0)
- ParticleEmitter7.Lifetime = NumberRange.new(2, 2)
- ParticleEmitter7.Rate = 10
- ParticleEmitter7.RotSpeed = NumberRange.new(-100, 100)
- ParticleEmitter7.SpreadAngle = Vector2.new(50, 50)
- ParticleEmitter7.VelocitySpread = 50
- ParticleEmitter8.Name = "BrokenHearts"
- ParticleEmitter8.Parent = Part4
- ParticleEmitter8.Speed = NumberRange.new(3, 3)
- ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
- ParticleEmitter8.Enabled = false
- ParticleEmitter8.Texture = "rbxassetid://11476663"
- ParticleEmitter8.Size = NumberSequence.new(0,0.30000001192093,1,0.30000001192093,0.30000001192093,0)
- ParticleEmitter8.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter8.Rate = 10
- ParticleEmitter8.RotSpeed = NumberRange.new(-100, 100)
- Weld9.Name = "HeadWeld"
- Weld9.Parent = Part4
- Weld9.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld9.C1 = CFrame.new(0, 0.899999976, 0, 1, 0, 0, 0, 0.995037198, 0.0995037183, 0, -0.0995037183, 0.995037198)
- Weld9.Part0 = Part4
- Weld9.Part1 = Part58
- Weld9.part1 = Part58
- Part10.Name = "Torso"
- Part10.Parent = Model3
- Part10.CFrame = CFrame.new(-7.80986786, 5.00003195, 52.1800003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.Position = Vector3.new(-7.80986786, 5.00003195, 52.1800003)
- Part10.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part10.Size = Vector3.new(2, 2, 1)
- Part10.BackParamA = -99999
- Part10.BackParamB = 99999
- Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.BottomParamA = -99999
- Part10.BottomParamB = 99999
- Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.BrickColor = BrickColor.new("Dark green")
- Part10.CanCollide = false
- Part10.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
- Part10.Elasticity = 0
- Part10.Friction = 2
- Part10.FrontParamA = -99999
- Part10.FrontParamB = 99999
- Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.LeftParamA = -99999
- Part10.LeftParamB = 99999
- Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.Material = Enum.Material.SmoothPlastic
- Part10.RightParamA = -99999
- Part10.RightParamB = 99999
- Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.TopParamA = -99999
- Part10.TopParamB = 99999
- Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.brickColor = BrickColor.new("Dark green")
- Part10.FormFactor = Enum.FormFactor.Symmetric
- Part10.formFactor = Enum.FormFactor.Symmetric
- Decal11.Name = "roblox"
- Decal11.Parent = Part10
- Motor6D12.Name = "Right Shoulder"
- Motor6D12.Parent = Part10
- Motor6D12.MaxVelocity = 0.10000000149012
- 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 = Part10
- Motor6D12.Part1 = Part18
- Motor6D12.part1 = Part18
- Motor6D12.DesiredAngle = -0.071469336748123
- Motor6D13.Name = "Left Shoulder"
- Motor6D13.Parent = Part10
- Motor6D13.MaxVelocity = 0.10000000149012
- Motor6D13.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D13.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D13.Part0 = Part10
- Motor6D13.Part1 = Part17
- Motor6D13.part1 = Part17
- Motor6D13.DesiredAngle = -0.071469336748123
- Motor6D14.Name = "Right Hip"
- Motor6D14.Parent = Part10
- Motor6D14.MaxVelocity = 0.10000000149012
- 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 = Part10
- Motor6D14.Part1 = Part20
- Motor6D14.part1 = Part20
- Motor6D14.DesiredAngle = 0.071469336748123
- Motor6D15.Name = "Left Hip"
- Motor6D15.Parent = Part10
- Motor6D15.MaxVelocity = 0.10000000149012
- Motor6D15.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D15.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D15.Part0 = Part10
- Motor6D15.Part1 = Part19
- Motor6D15.part1 = Part19
- Motor6D15.DesiredAngle = 0.071469336748123
- Motor6D16.Name = "Neck"
- Motor6D16.Parent = Part10
- Motor6D16.MaxVelocity = 0.10000000149012
- Motor6D16.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D16.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D16.Part0 = Part10
- Motor6D16.Part1 = Part4
- Motor6D16.part1 = Part4
- Part17.Name = "Left Arm"
- Part17.Parent = Model3
- Part17.CFrame = CFrame.new(-9.30986786, 5.00003195, 52.1800003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part17.Position = Vector3.new(-9.30986786, 5.00003195, 52.1800003)
- Part17.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part17.Size = Vector3.new(1, 2, 1)
- Part17.BackParamA = -99999
- Part17.BackParamB = 99999
- Part17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.BottomParamA = -99999
- Part17.BottomParamB = 99999
- Part17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.BrickColor = BrickColor.new("Cool yellow")
- Part17.CanCollide = false
- Part17.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
- Part17.Elasticity = 0
- Part17.Friction = 2
- Part17.FrontParamA = -99999
- Part17.FrontParamB = 99999
- Part17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.LeftParamA = -99999
- Part17.LeftParamB = 99999
- Part17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.Material = Enum.Material.SmoothPlastic
- Part17.RightParamA = -99999
- Part17.RightParamB = 99999
- Part17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.TopParamA = -99999
- Part17.TopParamB = 99999
- Part17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part17.brickColor = BrickColor.new("Cool yellow")
- Part17.FormFactor = Enum.FormFactor.Symmetric
- Part17.formFactor = Enum.FormFactor.Symmetric
- Part18.Name = "Right Arm"
- Part18.Parent = Model3
- Part18.CFrame = CFrame.new(-6.30986786, 5.00003195, 52.1800003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part18.Position = Vector3.new(-6.30986786, 5.00003195, 52.1800003)
- Part18.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part18.Size = Vector3.new(1, 2, 1)
- Part18.BackParamA = -99999
- Part18.BackParamB = 99999
- Part18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.BottomParamA = -99999
- Part18.BottomParamB = 99999
- Part18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.BrickColor = BrickColor.new("Cool yellow")
- Part18.CanCollide = false
- Part18.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
- Part18.Elasticity = 0
- Part18.Friction = 2
- Part18.FrontParamA = -99999
- Part18.FrontParamB = 99999
- Part18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.LeftParamA = -99999
- Part18.LeftParamB = 99999
- Part18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.Material = Enum.Material.SmoothPlastic
- Part18.RightParamA = -99999
- Part18.RightParamB = 99999
- Part18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.TopParamA = -99999
- Part18.TopParamB = 99999
- Part18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part18.brickColor = BrickColor.new("Cool yellow")
- Part18.FormFactor = Enum.FormFactor.Symmetric
- Part18.formFactor = Enum.FormFactor.Symmetric
- Part19.Name = "Left Leg"
- Part19.Parent = Model3
- Part19.CFrame = CFrame.new(-8.30986786, 3.00003195, 52.1800003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part19.Position = Vector3.new(-8.30986786, 3.00003195, 52.1800003)
- Part19.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part19.Size = Vector3.new(1, 2, 1)
- Part19.BackParamA = -99999
- Part19.BackParamB = 99999
- Part19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.BottomParamA = -99999
- Part19.BottomParamB = 99999
- Part19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.BrickColor = BrickColor.new("Bright blue")
- Part19.CanCollide = false
- Part19.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
- Part19.Elasticity = 0
- Part19.Friction = 2
- Part19.FrontParamA = -99999
- Part19.FrontParamB = 99999
- Part19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.LeftParamA = -99999
- Part19.LeftParamB = 99999
- Part19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.Material = Enum.Material.SmoothPlastic
- Part19.RightParamA = -99999
- Part19.RightParamB = 99999
- Part19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.TopParamA = -99999
- Part19.TopParamB = 99999
- Part19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part19.brickColor = BrickColor.new("Bright blue")
- Part19.FormFactor = Enum.FormFactor.Symmetric
- Part19.formFactor = Enum.FormFactor.Symmetric
- Part20.Name = "Right Leg"
- Part20.Parent = Model3
- Part20.CFrame = CFrame.new(-7.30986786, 3.00003195, 52.1800003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part20.Position = Vector3.new(-7.30986786, 3.00003195, 52.1800003)
- Part20.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part20.Size = Vector3.new(1, 2, 1)
- Part20.BackParamA = -99999
- Part20.BackParamB = 99999
- Part20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.BottomParamA = -99999
- Part20.BottomParamB = 99999
- Part20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.BrickColor = BrickColor.new("Bright blue")
- Part20.CanCollide = false
- Part20.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
- Part20.Elasticity = 0
- Part20.Friction = 2
- Part20.FrontParamA = -99999
- Part20.FrontParamB = 99999
- Part20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.LeftParamA = -99999
- Part20.LeftParamB = 99999
- Part20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.Material = Enum.Material.SmoothPlastic
- Part20.RightParamA = -99999
- Part20.RightParamB = 99999
- Part20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.TopParamA = -99999
- Part20.TopParamB = 99999
- Part20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part20.brickColor = BrickColor.new("Bright blue")
- Part20.FormFactor = Enum.FormFactor.Symmetric
- Part20.formFactor = Enum.FormFactor.Symmetric
- Humanoid21.Parent = Model3
- Humanoid21.Health = 200
- Humanoid21.JumpPower = 60
- Humanoid21.LeftLeg = Part19
- Humanoid21.MaxHealth = 200
- Humanoid21.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid21.RightLeg = Part20
- Humanoid21.Torso = Part24
- Humanoid21.WalkSpeed = 18
- Humanoid21.maxHealth = 200
- Model22.Name = "Status"
- Model22.Parent = Humanoid21
- Model23.Name = "AvalibleSpawns"
- Model23.Parent = Model22
- Part24.Name = "HumanoidRootPart"
- Part24.Parent = Model3
- Part24.CFrame = CFrame.new(-7.80986786, 5.00003195, 52.1800003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part24.Position = Vector3.new(-7.80986786, 5.00003195, 52.1800003)
- Part24.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part24.Transparency = 1
- Part24.Size = Vector3.new(2, 2, 1)
- Part24.BackParamA = -99999
- Part24.BackParamB = 99999
- Part24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.BottomParamA = -99999
- Part24.BottomParamB = 99999
- Part24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.BrickColor = BrickColor.new("Bright blue")
- Part24.CanCollide = false
- Part24.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
- Part24.Elasticity = 0
- Part24.Friction = 2
- Part24.FrontParamA = -99999
- Part24.FrontParamB = 99999
- Part24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.LeftParamA = -99999
- Part24.LeftParamB = 99999
- Part24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.Material = Enum.Material.SmoothPlastic
- Part24.RightParamA = -99999
- Part24.RightParamB = 99999
- Part24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.TopParamA = -99999
- Part24.TopParamB = 99999
- Part24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part24.brickColor = BrickColor.new("Bright blue")
- Part24.FormFactor = Enum.FormFactor.Symmetric
- Part24.formFactor = Enum.FormFactor.Symmetric
- Motor6D25.Name = "RootJoint"
- Motor6D25.Parent = Part24
- Motor6D25.MaxVelocity = 0.10000000149012
- 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 = Part10
- Motor6D25.part1 = Part10
- Script26.Name = "Sound"
- Script26.Parent = Model3
- table.insert(cors,sandbox(Script26,function()
- ---This server script creates the sounds and also exists so that it can be easily copied into an NPC and create sounds for that NPC.
- --Remove the local script if you copy this into an NPC.
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- function newSound(name, id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.Name = name
- sound.archivable = false
- sound.Parent = script.Parent.Head
- return sound
- end
- -- declarations
- local sGettingUp = newSound("GettingUp", "rbxasset://sounds/action_get_up.mp3")
- local sDied = newSound("Died", "rbxasset://sounds/uuhhh.mp3")
- local sFreeFalling = newSound("FreeFalling", "rbxasset://sounds/action_falling.mp3")
- local sJumping = newSound("Jumping", "rbxasset://sounds/action_jump.mp3")
- local sLanding = newSound("Landing", "rbxasset://sounds/action_jump_land.mp3")
- local sSplash = newSound("Splash", "rbxasset://sounds/impact_water.mp3")
- local sRunning = newSound("Running", "rbxasset://sounds/action_footsteps_plastic.mp3")
- sRunning.Looped = true
- local sSwimming = newSound("Swimming", "rbxasset://sounds/action_swim.mp3")
- sSwimming.Looped = true
- local sClimbing = newSound("Climbing", "rbxasset://sounds/action_footsteps_plastic.mp3")
- sClimbing.Looped = true
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid;
- for _,Child in pairs(Figure:GetChildren())do
- if Child and Child.ClassName=="Humanoid"then
- Humanoid=Child;
- end;
- end;
- local hasPlayer = game.Players:GetPlayerFromCharacter(script.Parent)
- local filteringEnabled = game.Workspace.FilteringEnabled
- local prevState = "None"
- -- functions
- function onDied()
- stopLoopedSounds()
- for _,Child in pairs(Figure:FindFirstChild("Head"):GetChildren())do
- if Child and Child.ClassName=="Sound"then
- Child.Volume=0
- Child:Stop()
- end
- end
- sDied.Volume=1;
- sDied:Play();
- end
- local fallCount = 0
- local fallSpeed = 0
- function onStateFall(state, sound)
- fallCount = fallCount + 1
- if state then
- sound.Volume = 0
- sound:Play()
- Spawn( function()
- local t = 0
- local thisFall = fallCount
- while t < 1.5 and fallCount == thisFall do
- local vol = math.max(t - 0.3 , 0)
- sound.Volume = vol
- wait(0.1)
- t = t + 0.1
- end
- end)
- else
- sound:Stop()
- end
- fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.Y))
- end
- function onStateNoStop(state, sound)
- if state then
- sound:Play()
- end
- end
- function onRunning(speed)
- sClimbing:Stop()
- sSwimming:Stop()
- if (prevState == "FreeFall" and fallSpeed > 0.1) then
- local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
- sLanding.Volume = vol
- sLanding:Play()
- fallSpeed = 0
- end
- if speed>0.5 then
- sRunning:Play()
- sRunning.Pitch = speed / 8.0
- else
- sRunning:Stop()
- end
- prevState = "Run"
- end
- function onSwimming(speed)
- if (prevState ~= "Swim" and speed > 0.1) then
- local volume = math.min(1.0, speed / 350)
- sSplash.Volume = volume
- sSplash:Play()
- prevState = "Swim"
- end
- sClimbing:Stop()
- sRunning:Stop()
- sSwimming.Pitch = 1.6
- sSwimming:Play()
- end
- function onClimbing(speed)
- sRunning:Stop()
- sSwimming:Stop()
- if speed>0.01 then
- sClimbing:Play()
- sClimbing.Pitch = speed / 5.5
- else
- sClimbing:Stop()
- end
- prevState = "Climb"
- end
- -- connect up
- function stopLoopedSounds()
- sRunning:Stop()
- sClimbing:Stop()
- sSwimming:Stop()
- end
- if hasPlayer == nil then
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Swimming:connect(onSwimming)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.Jumping:connect(function(state) onStateNoStop(state, sJumping) prevState = "Jump" end)
- Humanoid.GettingUp:connect(function(state) stopLoopedSounds() onStateNoStop(state, sGettingUp) prevState = "GetUp" end)
- Humanoid.FreeFalling:connect(function(state) stopLoopedSounds() onStateFall(state, sFreeFalling) prevState = "FreeFall" end)
- Humanoid.FallingDown:connect(function(state) stopLoopedSounds() end)
- Humanoid.StateChanged:connect(function(old, new)
- if not (new.Name == "Dead" or
- new.Name == "Running" or
- new.Name == "RunningNoPhysics" or
- new.Name == "Swimming" or
- new.Name == "Jumping" or
- new.Name == "GettingUp" or
- new.Name == "Freefall" or
- new.Name == "FallingDown") then
- stopLoopedSounds()
- end
- end)
- end
- end))
- LocalScript27.Name = "LocalSound"
- LocalScript27.Parent = Script26
- table.insert(cors,sandbox(LocalScript27,function()
- --This local script will run only for the player whos character it is in. It's changes to the sounds will replicate as they are changes to the character.
- -- util
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- -- declarations
- local Figure = script.Parent.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- local sGettingUp = waitForChild(Head, "GettingUp")
- local sDied = waitForChild(Head, "Died")
- local sFreeFalling = waitForChild(Head, "FreeFalling")
- local sJumping = waitForChild(Head, "Jumping")
- local sLanding = waitForChild(Head, "Landing")
- local sSplash = waitForChild(Head, "Splash")
- local sRunning = waitForChild(Head, "Running")
- sRunning.Looped = true
- local sSwimming = waitForChild(Head, "Swimming")
- sSwimming.Looped = true
- local sClimbing =waitForChild(Head, "Climbing")
- sClimbing.Looped = true
- local prevState = "None"
- -- functions
- function onDied()
- stopLoopedSounds()
- sDied:Play()
- end
- local fallCount = 0
- local fallSpeed = 0
- function onStateFall(state, sound)
- fallCount = fallCount + 1
- if state then
- sound.Volume = 0
- sound:Play()
- Spawn( function()
- local t = 0
- local thisFall = fallCount
- while t < 1.5 and fallCount == thisFall do
- local vol = math.max(t - 0.3 , 0)
- sound.Volume = vol
- wait(0.1)
- t = t + 0.1
- end
- end)
- else
- sound:Stop()
- end
- fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.Y))
- end
- function onStateNoStop(state, sound)
- if state then
- sound:Play()
- end
- end
- function onRunning(speed)
- sClimbing:Stop()
- sSwimming:Stop()
- if (prevState == "FreeFall" and fallSpeed > 0.1) then
- local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
- sLanding.Volume = vol
- sLanding:Play()
- fallSpeed = 0
- end
- if speed>0.5 then
- sRunning:Play()
- sRunning.Pitch = speed / 8.0
- else
- sRunning:Stop()
- end
- prevState = "Run"
- end
- function onSwimming(speed)
- if (prevState ~= "Swim" and speed > 0.1) then
- local volume = math.min(1.0, speed / 350)
- sSplash.Volume = volume
- sSplash:Play()
- prevState = "Swim"
- end
- sClimbing:Stop()
- sRunning:Stop()
- sSwimming.Pitch = 1.6
- sSwimming:Play()
- end
- function onClimbing(speed)
- sRunning:Stop()
- sSwimming:Stop()
- if speed>0.01 then
- sClimbing:Play()
- sClimbing.Pitch = speed / 5.5
- else
- sClimbing:Stop()
- end
- prevState = "Climb"
- end
- -- connect up
- function stopLoopedSounds()
- sRunning:Stop()
- sClimbing:Stop()
- sSwimming:Stop()
- end
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Swimming:connect(onSwimming)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.Jumping:connect(function(state) onStateNoStop(state, sJumping) prevState = "Jump" end)
- Humanoid.GettingUp:connect(function(state) stopLoopedSounds() onStateNoStop(state, sGettingUp) prevState = "GetUp" end)
- Humanoid.FreeFalling:connect(function(state) stopLoopedSounds() onStateFall(state, sFreeFalling) prevState = "FreeFall" end)
- Humanoid.FallingDown:connect(function(state) stopLoopedSounds() end)
- Humanoid.StateChanged:connect(function(old, new)
- if not (new.Name == "Dead" or
- new.Name == "Running" or
- new.Name == "RunningNoPhysics" or
- new.Name == "Swimming" or
- new.Name == "Jumping" or
- new.Name == "GettingUp" or
- new.Name == "Freefall" or
- new.Name == "FallingDown") then
- stopLoopedSounds()
- end
- end)
- end))
- LocalScript27.Disabled = true
- BodyColors28.Parent = Model3
- BodyColors28.HeadColor = BrickColor.new("Institutional white")
- BodyColors28.HeadColor3 = Color3.new(0.972549, 0.972549, 0.972549)
- BodyColors28.LeftArmColor = BrickColor.new("Institutional white")
- BodyColors28.LeftArmColor3 = Color3.new(0.972549, 0.972549, 0.972549)
- BodyColors28.LeftLegColor = BrickColor.new("Institutional white")
- BodyColors28.LeftLegColor3 = Color3.new(0.972549, 0.972549, 0.972549)
- BodyColors28.RightArmColor = BrickColor.new("Institutional white")
- BodyColors28.RightArmColor3 = Color3.new(0.972549, 0.972549, 0.972549)
- BodyColors28.RightLegColor = BrickColor.new("Institutional white")
- BodyColors28.RightLegColor3 = Color3.new(0.972549, 0.972549, 0.972549)
- BodyColors28.TorsoColor = BrickColor.new("Institutional white")
- BodyColors28.TorsoColor3 = Color3.new(0.972549, 0.972549, 0.972549)
- Script29.Name = "AnimateSauce"
- Script29.Parent = Model3
- 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 = "run.xml", weight = 10 }
- },
- 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
- playAnimation("walk", 0.1, Humanoid)
- 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
- playAnimation("walk", 0.1, Humanoid)
- elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
- stopAllAnimations()
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- 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=180426354"
- 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"
- Pants49.Name = "Pants"
- Pants49.Parent = Model3
- Pants49.PantsTemplate = "rbxassetid://36299419"
- Script50.Name = "Health"
- Script50.Parent = Model3
- table.insert(cors,sandbox(Script50,function()
- --Responsible for regening a player's humanoid's health
- -- declarations
- local Figure = script.Parent
- local Head = Figure:WaitForChild("Head")
- local Humanoid = Figure:WaitForChild("Humanoid")
- local regening = false
- -- regeneration
- function regenHealth()
- if regening then return end
- regening = true
- while Humanoid.Health < Humanoid.MaxHealth do
- local s = wait(1)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
- health = health + newHealthDelta
- Humanoid.Health = math.min(health,Humanoid.MaxHealth)
- end
- end
- if Humanoid.Health > Humanoid.MaxHealth then
- Humanoid.Health = Humanoid.MaxHealth
- end
- regening = false
- end
- Humanoid.HealthChanged:connect(regenHealth)
- end))
- Script51.Name = "Respawn"
- Script51.Parent = Model3
- table.insert(cors,sandbox(Script51,function()
- --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
- local AdvancedRespawnScript=script;
- local Laina=AdvancedRespawnScript.Parent;
- local GameDerbis=Game:GetService("Debris");
- repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
- local LainaHumanoid;
- for _,Child in pairs(Laina:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
- LainaHumanoid=Child;
- end;
- end;
- local Respawndant=Laina:Clone();
- coroutine.resume(coroutine.create(function()
- if not Laina.Humanoid.Status:FindFirstChild("AvalibleSpawns")then
- SpawnModel=Instance.new("Model");
- SpawnModel.Parent=Laina.Humanoid.Status;
- SpawnModel.Name="AvalibleSpawns";
- else
- SpawnModel=Laina.Humanoid.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.Workspace);
- local SpawnChilden=SpawnModel:GetChildren();
- if#SpawnChilden>0 then
- local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
- local RespawningForceField=Instance.new("ForceField");
- RespawningForceField.Parent=Laina;
- RespawningForceField.Name="SpawnForceField";
- GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
- Laina:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
- else
- if Laina:FindFirstChild("SpawnForceField")then
- Laina:FindFirstChild("SpawnForceField"):Destroy();
- end;
- Laina:MoveTo(Vector3.new(0,115,0));
- end;
- end));
- function Respawn()
- Wait(5);
- Respawndant.Parent=Laina.Parent;
- Respawndant:makeJoints();
- Respawndant:FindFirstChild("Head"):MakeJoints();
- Respawndant:FindFirstChild("Torso"):MakeJoints();
- Laina:remove();
- end;
- LainaHumanoid.Died:connect(Respawn);
- --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
- end))
- CharacterMesh52.Name = "3.0 Female Left Arm"
- CharacterMesh52.Parent = Model3
- CharacterMesh52.BodyPart = Enum.BodyPart.LeftArm
- CharacterMesh52.MeshId = 83001137
- CharacterMesh53.Name = "3.0 Female Left Leg"
- CharacterMesh53.Parent = Model3
- CharacterMesh53.BodyPart = Enum.BodyPart.LeftLeg
- CharacterMesh53.MeshId = 81628361
- CharacterMesh54.Name = "3.0 Female Right Arm"
- CharacterMesh54.Parent = Model3
- CharacterMesh54.BodyPart = Enum.BodyPart.RightArm
- CharacterMesh54.MeshId = 83001181
- CharacterMesh55.Name = "3.0 Female Right Leg"
- CharacterMesh55.Parent = Model3
- CharacterMesh55.BodyPart = Enum.BodyPart.RightLeg
- CharacterMesh55.MeshId = 81628308
- CharacterMesh56.Name = "3.0 Female Torso"
- CharacterMesh56.Parent = Model3
- CharacterMesh56.BodyPart = Enum.BodyPart.Torso
- CharacterMesh56.MeshId = 82987757
- Hat57.Name = "LongHairHeadBand Black"
- Hat57.Parent = Model3
- Hat57.AttachmentForward = Vector3.new(-0, -0.0995037183, -0.995037198)
- Hat57.AttachmentPoint = CFrame.new(0, 0.899999976, 0, 1, 0, 0, 0, 0.995037198, 0.0995037183, 0, -0.0995037183, 0.995037198)
- Hat57.AttachmentPos = Vector3.new(0, 0.899999976, 0)
- Hat57.AttachmentUp = Vector3.new(0, 0.995037198, -0.0995037183)
- Part58.Name = "Handle"
- Part58.Parent = Hat57
- Part58.CFrame = CFrame.new(-7.80986786, 6.10449839, 52.0904465, 1, 0, 0, 0, 0.995037198, -0.0995037183, 0, 0.0995037183, 0.995037198)
- Part58.Orientation = Vector3.new(5.71000004, 0, 0)
- Part58.Position = Vector3.new(-7.80986786, 6.10449839, 52.0904465)
- Part58.Rotation = Vector3.new(5.71000004, 0, 0)
- Part58.Size = Vector3.new(1, 2.4000001, 2)
- Part58.BottomSurface = Enum.SurfaceType.Smooth
- Part58.CanCollide = false
- Part58.TopSurface = Enum.SurfaceType.Smooth
- Part58.FormFactor = Enum.FormFactor.Plate
- Part58.formFactor = Enum.FormFactor.Plate
- SpecialMesh59.Parent = Part58
- SpecialMesh59.MeshId = "rbxassetid://13070796"
- SpecialMesh59.TextureId = "rbxassetid://14765363"
- SpecialMesh59.MeshType = Enum.MeshType.FileMesh
- Script60.Name = "LainaMain"
- Script60.Parent = Model3
- table.insert(cors,sandbox(Script60,function()
- --[[ By: Brutez. ]]--
- local LainaScript=script;
- repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
- local Laina=LainaScript.Parent;
- local LainaHumanoid;
- for _,Child in pairs(Laina:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
- LainaHumanoid=Child;
- end;
- end;
- local LainaWeld;
- local LainaBodyGyro;
- RecreateThingies=function()
- LainaWeld=Instance.new("Weld");
- LainaWeld.Name="LainaWeld";
- LainaBodyGyro=Instance.new("BodyGyro");
- LainaBodyGyro.Name="LainaBodyGyro";
- LainaBodyGyro.cframe=CFrame.new(Vector3.new(0,0,0),Vector3.new(0,5000000,0));
- LainaBodyGyro.D=300;
- LainaBodyGyro.maxTorque=Vector3.new(99999e99999,99999e99999,0);
- LainaBodyGyro.P=7000;
- end;
- RecreateThingies();
- local IsOnTop=false;
- function RayCast(Position, Direction, MaxDistance, IgnoreList)
- return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
- end;
- while Wait(0)do
- if LainaScript and Laina and Laina:FindFirstChild("Torso") and LainaHumanoid and LainaHumanoid.Health>0.001 then
- local TargetPoint=LainaHumanoid.TargetPoint;
- local Blockage,BlockagePos=RayCast((Laina:FindFirstChild("Torso").CFrame+CFrame.new(Laina:FindFirstChild("Torso").Position,Vector3.new(TargetPoint.X,Laina:FindFirstChild("Torso").Position.Y,TargetPoint.Z)).lookVector*(Laina:FindFirstChild("Torso").Size.Z/2)).p,Laina:FindFirstChild("Torso").CFrame.lookVector,(Laina:FindFirstChild("Torso").Size.Z*2.5),{Laina,Laina})
- 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.001 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"then
- Jumpable=false;
- end;
- end;
- if Jumpable and LainaScript and Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and not LainaHumanoid.Sit and not IsOnTop then
- LainaHumanoid.Jump=true;
- end;
- end;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health<0.001 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")then
- Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://116692982";
- Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
- Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=true;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and not IsOnTop then
- Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://116690930";
- Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
- Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
- elseif Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and IsOnTop then
- Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://116649842";
- Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=true;
- Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and not LainaHumanoid.AutoJumpEnabled then
- LainaHumanoid.AutoJumpEnabled=true;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and not LainaHumanoid.AutoRotate then
- LainaHumanoid.AutoRotate=true;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and LainaHumanoid.PlatformStand then
- LainaHumanoid.PlatformStand=false;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and LainaHumanoid.Sit and not IsOnTop then
- LainaHumanoid.Sit=false;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 then
- LainaHumanoid.JumpPower=70;
- LainaHumanoid.WalkSpeed=20;
- end;
- local JumpChance=math.random(1,300);
- if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and JumpChance==1 and not IsOnTop then
- LainaHumanoid.Jump=true;
- end;
- local NoticeDistance=99999e99999;
- for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
- if TargetModel and TargetModel.className=="Model"and TargetModel~=Laina 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.ClassName=="Humanoid"then
- FoundHumanoid=Child;
- end;
- end;
- if Laina and Laina:FindFirstChild("HumanoidRootPart")and LainaHumanoid and LainaHumanoid.Health>0.001 and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<NoticeDistance and not IsOnTop then
- NoticeDistance=(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude;
- if Laina and Laina:FindFirstChild("HumanoidRootPart")and LainaHumanoid and LainaHumanoid.Health>0.001 and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and FoundHumanoid.Jump and not IsOnTop then
- LainaHumanoid.Jump=true;
- end;
- LainaHumanoid:MoveTo(TargetPart.Position+(TargetPart.Position-Laina:FindFirstChild("Torso").Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
- if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<5 and not IsOnTop then
- IsOnTop=true;
- LainaWeld.Parent=Laina:FindFirstChild("Torso");
- LainaWeld.Part1=Laina:FindFirstChild("Torso");
- LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*10)*0.3,math.pi,0);
- LainaWeld.Part0=TargetPart;
- LainaBodyGyro.Parent=TargetPart;
- if LainaScript and LainaScript:FindFirstChild("JumpOk")and LainaScript:FindFirstChild("JumpOkNPC")and TargetModel.Parent~=nil and TargetPart.Parent~=nil and LainaBodyGyro~=nil and FoundHumanoid.Parent~=nil and LainaWeld.Parent~=nil and LainaBodyGyro.Parent~=nil and FoundHumanoid.Health>0.001 and Laina and LainaHumanoid and LainaHumanoid.Health>0.001 then
- if TargetModel and FoundHumanoid and FoundHumanoid.Health>0.001 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Status"then
- local JumpOk=LainaScript:FindFirstChild("JumpOk"):Clone();
- JumpOk.Parent=TargetModel;
- JumpOk.Disabled=false;
- elseif TargetModel and FoundHumanoid and FoundHumanoid.Health>0.001 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Model"or TargetModel and FoundHumanoid and FoundHumanoid.Health>0.001 and not FoundHumanoid:FindFirstChild("Status")then
- local JumpOkNPC=LainaScript:FindFirstChild("JumpOkNPC"):Clone();
- JumpOkNPC.Parent=TargetModel;
- JumpOkNPC.Disabled=false;
- end;
- end;
- coroutine.resume(coroutine.create(function()
- while Wait(0)do
- if TargetModel.Parent~=nil and TargetPart.Parent~=nil and FoundHumanoid.Parent~=nil and LainaWeld.Parent~=nil and LainaBodyGyro.Parent~=nil and FoundHumanoid.Health>0.001 and Laina and LainaHumanoid and LainaHumanoid.Health>0.001 then
- LainaHumanoid.Sit=true;
- if Laina and LainaHumanoid and LainaHumanoid.Health>0.001 and Laina:FindFirstChild("Torso")and LainaWeld then
- LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*10)*0.3,math.pi,0);
- end;
- if TargetModel~=nil and TargetPart~=nil and FoundHumanoid~=nil and FoundHumanoid.Health>0.001 then
- FoundHumanoid.Jump=false;
- FoundHumanoid.Sit=true;
- end;
- else
- IsOnTop=false;
- if LainaWeld then
- LainaWeld:Destroy();
- end;
- if LainaBodyGyro then
- LainaBodyGyro:Destroy();
- end;
- RecreateThingies();
- break
- end;
- end;
- end));
- end;
- end;
- end;
- end;
- end;
- --[[ By: Brutez. ]]--
- end))
- LocalScript61.Name = "JumpOk"
- LocalScript61.Parent = Script60
- table.insert(cors,sandbox(LocalScript61,function()
- --[[ By: Brutez. ]]--
- local JumpScript=script;
- repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
- local ROBLOXian=JumpScript.Parent;
- local ROBLOXianHumanoid;
- for _,Child in pairs(ROBLOXian:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
- ROBLOXianHumanoid=Child;
- end;
- end;
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
- ROBLOXianHumanoid.Changed:connect(function()
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and ROBLOXianHumanoid.Jump then
- ROBLOXianHumanoid.Jump=false;
- end;
- end);
- end;
- while Wait(0)do
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and not ROBLOXian:FindFirstChild("Torso"):FindFirstChild("LainaBodyGyro")then
- JumpScript.Disabled=true;
- JumpScript:Destroy();
- break
- end;
- end;
- --[[ By: Brutez. ]]--
- end))
- LocalScript61.Disabled = true
- Script62.Name = "JumpOkNPC"
- Script62.Parent = Script60
- table.insert(cors,sandbox(Script62,function()
- --[[ By: Brutez. ]]--
- local JumpScript=script;
- repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
- local ROBLOXian=JumpScript.Parent;
- local ROBLOXianHumanoid;
- for _,Child in pairs(ROBLOXian:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
- ROBLOXianHumanoid=Child;
- end;
- end;
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
- ROBLOXianHumanoid.Changed:connect(function()
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and ROBLOXianHumanoid.Jump then
- ROBLOXianHumanoid.Jump=false;
- end;
- end);
- end;
- while Wait(0)do
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and not ROBLOXian:FindFirstChild("Torso"):FindFirstChild("LainaBodyGyro")then
- JumpScript.Disabled=true;
- JumpScript:Destroy();
- break
- end;
- end;
- --[[ By: Brutez. ]]--
- end))
- Script62.Disabled = true
- Camera63.Name = "ThumbnailCamera"
- Camera63.Parent = Model3
- Camera63.CFrame = CFrame.new(-1.4118109e-06, 1.5, -9.34999943, -1, -0, -1.50995788e-07, -0, 1, -0, 1.50995788e-07, 0, -1)
- Camera63.CoordinateFrame = CFrame.new(-1.4118109e-06, 1.5, -9.34999943, -1, -0, -1.50995788e-07, -0, 1, -0, 1.50995788e-07, 0, -1)
- Camera63.FieldOfView = 19.999999651642
- Camera63.Focus = CFrame.new(-1.10981932e-06, 1.5, -7.34999943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera63.focus = CFrame.new(-1.10981932e-06, 1.5, -7.34999943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Character
- 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