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")
- Decal3 = Instance.new("Decal")
- Motor6D4 = Instance.new("Motor6D")
- Motor6D5 = Instance.new("Motor6D")
- Motor6D6 = Instance.new("Motor6D")
- Motor6D7 = Instance.new("Motor6D")
- Motor6D8 = Instance.new("Motor6D")
- Attachment9 = Instance.new("Attachment")
- Attachment10 = Instance.new("Attachment")
- Attachment11 = Instance.new("Attachment")
- Attachment12 = Instance.new("Attachment")
- Attachment13 = Instance.new("Attachment")
- Attachment14 = Instance.new("Attachment")
- Attachment15 = Instance.new("Attachment")
- Attachment16 = Instance.new("Attachment")
- Part17 = Instance.new("Part")
- Motor6D18 = Instance.new("Motor6D")
- Part19 = Instance.new("Part")
- Attachment20 = Instance.new("Attachment")
- Part21 = Instance.new("Part")
- SpecialMesh22 = Instance.new("SpecialMesh")
- Decal23 = Instance.new("Decal")
- ManualWeld24 = Instance.new("ManualWeld")
- Sound25 = Instance.new("Sound")
- ParticleEmitter26 = Instance.new("ParticleEmitter")
- ParticleEmitter27 = Instance.new("ParticleEmitter")
- Attachment28 = Instance.new("Attachment")
- Attachment29 = Instance.new("Attachment")
- Attachment30 = Instance.new("Attachment")
- Attachment31 = Instance.new("Attachment")
- Script32 = Instance.new("Script")
- Part33 = Instance.new("Part")
- Attachment34 = Instance.new("Attachment")
- Part35 = Instance.new("Part")
- Part36 = Instance.new("Part")
- Humanoid37 = Instance.new("Humanoid")
- Model38 = Instance.new("Model")
- Model39 = Instance.new("Model")
- Script40 = Instance.new("Script")
- BodyColors41 = Instance.new("BodyColors")
- Pants42 = Instance.new("Pants")
- Script43 = Instance.new("Script")
- LocalScript44 = Instance.new("LocalScript")
- Script45 = Instance.new("Script")
- Decal46 = Instance.new("Decal")
- CharacterMesh47 = Instance.new("CharacterMesh")
- CharacterMesh48 = Instance.new("CharacterMesh")
- CharacterMesh49 = Instance.new("CharacterMesh")
- CharacterMesh50 = Instance.new("CharacterMesh")
- CharacterMesh51 = Instance.new("CharacterMesh")
- Script52 = Instance.new("Script")
- Script53 = Instance.new("Script")
- StringValue54 = Instance.new("StringValue")
- Animation55 = Instance.new("Animation")
- StringValue56 = Instance.new("StringValue")
- Animation57 = Instance.new("Animation")
- StringValue58 = Instance.new("StringValue")
- Animation59 = Instance.new("Animation")
- NumberValue60 = Instance.new("NumberValue")
- Animation61 = Instance.new("Animation")
- NumberValue62 = Instance.new("NumberValue")
- StringValue63 = Instance.new("StringValue")
- Animation64 = Instance.new("Animation")
- StringValue65 = Instance.new("StringValue")
- Animation66 = Instance.new("Animation")
- StringValue67 = Instance.new("StringValue")
- Animation68 = Instance.new("Animation")
- StringValue69 = Instance.new("StringValue")
- Animation70 = Instance.new("Animation")
- StringValue71 = Instance.new("StringValue")
- Animation72 = Instance.new("Animation")
- Model0.Name = "Laina"
- Model0.Parent = mas
- Model1.Name = "Laina"
- Model1.Parent = Model0
- Model1.PrimaryPart = Part21
- Part2.Name = "Torso"
- Part2.Parent = Model1
- Part2.Material = Enum.Material.SmoothPlastic
- Part2.BrickColor = BrickColor.new("Institutional white")
- Part2.CanCollide = false
- Part2.Locked = true
- Part2.Elasticity = 0
- Part2.FormFactor = Enum.FormFactor.Symmetric
- Part2.Friction = 2
- Part2.Size = Vector3.new(2, 2, 1)
- Part2.CFrame = CFrame.new(-69, 3.16750407, -12, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- 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, 3.16750407, -12)
- Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Decal3.Name = "roblox"
- Decal3.Parent = Part2
- Motor6D4.Name = "Right Shoulder"
- Motor6D4.Parent = Part2
- Motor6D4.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D4.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D4.Part0 = Part2
- Motor6D4.Part1 = Part33
- Motor6D4.MaxVelocity = 0.10000000149012
- Motor6D5.Name = "Left Shoulder"
- Motor6D5.Parent = Part2
- Motor6D5.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D5.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D5.Part0 = Part2
- Motor6D5.Part1 = Part19
- Motor6D5.MaxVelocity = 0.10000000149012
- Motor6D6.Name = "Right Hip"
- Motor6D6.Parent = Part2
- Motor6D6.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D6.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D6.Part0 = Part2
- Motor6D6.Part1 = Part35
- Motor6D6.MaxVelocity = 0.10000000149012
- Motor6D7.Name = "Left Hip"
- Motor6D7.Parent = Part2
- Motor6D7.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D7.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D7.Part0 = Part2
- Motor6D7.Part1 = Part36
- Motor6D7.MaxVelocity = 0.10000000149012
- Motor6D8.Name = "Neck"
- Motor6D8.Parent = Part2
- Motor6D8.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D8.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D8.Part0 = Part2
- Motor6D8.Part1 = Part21
- Motor6D8.MaxVelocity = 0.10000000149012
- Attachment9.Name = "BodyBackAttachment"
- Attachment9.Parent = Part2
- Attachment9.CFrame = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment9.Position = Vector3.new(0, 0, 0.5)
- Attachment10.Name = "BodyFrontAttachment"
- Attachment10.Parent = Part2
- Attachment10.CFrame = CFrame.new(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment10.Position = Vector3.new(0, 0, -0.5)
- Attachment11.Name = "LeftCollarAttachment"
- Attachment11.Parent = Part2
- Attachment11.CFrame = CFrame.new(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment11.Position = Vector3.new(-1, 1, 0)
- Attachment12.Name = "NeckAttachment"
- Attachment12.Parent = Part2
- Attachment12.CFrame = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment12.Position = Vector3.new(0, 1, 0)
- Attachment13.Name = "RightCollarAttachment"
- Attachment13.Parent = Part2
- Attachment13.CFrame = CFrame.new(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment13.Position = Vector3.new(1, 1, 0)
- Attachment14.Name = "WaistBackAttachment"
- Attachment14.Parent = Part2
- Attachment14.CFrame = CFrame.new(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment14.Position = Vector3.new(0, -1, 0.5)
- Attachment15.Name = "WaistCenterAttachment"
- Attachment15.Parent = Part2
- Attachment15.CFrame = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment15.Position = Vector3.new(0, -1, 0)
- Attachment16.Name = "WaistFrontAttachment"
- Attachment16.Parent = Part2
- Attachment16.CFrame = CFrame.new(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment16.Position = Vector3.new(0, -1, -0.5)
- Part17.Name = "HumanoidRootPart"
- Part17.Parent = Model1
- Part17.Material = Enum.Material.SmoothPlastic
- Part17.Transparency = 1
- Part17.CanCollide = false
- Part17.Locked = true
- Part17.Elasticity = 0
- Part17.FormFactor = Enum.FormFactor.Symmetric
- Part17.Friction = 2
- Part17.Size = Vector3.new(2, 2, 1)
- Part17.CFrame = CFrame.new(-69, 3.16750407, -12, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- 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.Position = Vector3.new(-69, 3.16750407, -12)
- Motor6D18.Name = "RootJoint"
- Motor6D18.Parent = Part17
- Motor6D18.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D18.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D18.Part0 = Part17
- Motor6D18.Part1 = Part2
- Motor6D18.MaxVelocity = 0.10000000149012
- Part19.Name = "Left Arm"
- Part19.Parent = Model1
- Part19.Material = Enum.Material.SmoothPlastic
- Part19.BrickColor = BrickColor.new("Institutional white")
- Part19.CanCollide = false
- Part19.Locked = true
- Part19.Elasticity = 0
- Part19.FormFactor = Enum.FormFactor.Symmetric
- Part19.Friction = 2
- Part19.Size = Vector3.new(1, 2, 1)
- Part19.CFrame = CFrame.new(-70.5, 3.16750407, -12, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- 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.972549, 0.972549, 0.972549)
- Part19.Position = Vector3.new(-70.5, 3.16750407, -12)
- Part19.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Attachment20.Name = "LeftShoulderAttachment"
- Attachment20.Parent = Part19
- Attachment20.CFrame = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment20.Position = Vector3.new(0, 1, 0)
- Part21.Name = "Head"
- Part21.Parent = Model1
- Part21.Material = Enum.Material.SmoothPlastic
- Part21.BrickColor = BrickColor.new("Institutional white")
- Part21.CanCollide = false
- Part21.Locked = true
- Part21.Elasticity = 0
- Part21.FormFactor = Enum.FormFactor.Symmetric
- Part21.Friction = 2
- Part21.Size = Vector3.new(2, 1, 1)
- Part21.CFrame = CFrame.new(-69, 4.66750431, -12, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part21.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part21.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part21.Position = Vector3.new(-69, 4.66750431, -12)
- Part21.Color = Color3.new(0.972549, 0.972549, 0.972549)
- SpecialMesh22.Name = "3.0 Female Head Mesh"
- SpecialMesh22.Parent = Part21
- SpecialMesh22.MeshId = "rbxassetid://82992952"
- SpecialMesh22.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh22.MeshType = Enum.MeshType.FileMesh
- SpecialMesh22.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal23.Name = "face"
- Decal23.Parent = Part21
- Decal23.Texture = "rbxassetid://912935344"
- ManualWeld24.Name = "HairWeld"
- ManualWeld24.Parent = Part21
- ManualWeld24.C1 = CFrame.new(-0.0288670063, 0.110000014, 0.00816631317, 0.962253213, 0, 0.27215606, 0, 1, 0, -0.27215606, 0, 0.962253213)
- ManualWeld24.Part0 = Part21
- ManualWeld24.Part1 = nil
- Sound25.Name = "PlasticCreak"
- Sound25.Parent = Part21
- Sound25.SoundId = "rbxassetid://913163726"
- Sound25.Volume = 1
- Sound25.Looped = true
- ParticleEmitter26.Name = "BrokenHearts"
- ParticleEmitter26.Parent = Part21
- ParticleEmitter26.Size = NumberSequence.new(0,0.30000001192093,1,0.30000001192093,0.30000001192093,1,0.30000001192093,0.30000001192093,0.5,0.061728358268738,0.12345671653748,0.37037014961243,0.18518507480621,0.30000001192093,0)
- ParticleEmitter26.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
- ParticleEmitter26.Enabled = false
- ParticleEmitter26.Texture = "rbxassetid://912982766"
- ParticleEmitter26.Acceleration = Vector3.new(0, -10, 0)
- ParticleEmitter26.Lifetime = NumberRange.new(1.5, 1.5)
- ParticleEmitter26.Rate = 10
- ParticleEmitter26.RotSpeed = NumberRange.new(-100, 100)
- ParticleEmitter26.VelocitySpread = -99999
- ParticleEmitter26.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
- ParticleEmitter27.Name = "Hearts"
- ParticleEmitter27.Parent = Part21
- ParticleEmitter27.Size = NumberSequence.new(0,0.30000001192093,1,0.30000001192093,0.30000001192093,1,0.30000001192093,0.30000001192093,0.5,0.061728358268738,0.12345671653748,0.37037014961243,0.18518507480621,0.30000001192093,0)
- ParticleEmitter27.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0, 0))
- ParticleEmitter27.Enabled = false
- ParticleEmitter27.Texture = "rbxassetid://912982665"
- ParticleEmitter27.Acceleration = Vector3.new(0, -2, 0)
- ParticleEmitter27.Lifetime = NumberRange.new(2, 2)
- ParticleEmitter27.Rate = 10
- ParticleEmitter27.RotSpeed = NumberRange.new(-100, 100)
- ParticleEmitter27.VelocitySpread = -99999
- ParticleEmitter27.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0, 0))
- Attachment28.Name = "FaceCenterAttachment"
- Attachment28.Parent = Part21
- Attachment29.Name = "FaceFrontAttachment"
- Attachment29.Parent = Part21
- Attachment29.CFrame = CFrame.new(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment29.Position = Vector3.new(0, 0, -0.600000024)
- Attachment30.Name = "HairAttachment"
- Attachment30.Parent = Part21
- Attachment30.CFrame = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment30.Position = Vector3.new(0, 0.600000024, 0)
- Attachment31.Name = "HatAttachment"
- Attachment31.Parent = Part21
- Attachment31.CFrame = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment31.Position = Vector3.new(0, 0.600000024, 0)
- Script32.Name = "HealthNew"
- Script32.Parent = Model1
- table.insert(cors,sandbox(Script32,function()
- --[[ By: Brutez. ]]--
- local LainaHealthScript=script;
- local Laina=LainaHealthScript.Parent;
- local LainaHumanoid;
- for _,Child in pairs(Laina:GetChildren())do
- if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
- LainaHumanoid=Child;
- end;
- end;
- local Regenerating=false;
- function UpdateHealth()
- if not Regenerating then
- Regenerating=true;
- Spawn(function()
- while LainaHumanoid.Health<LainaHumanoid.MaxHealth do
- local StoredHealth=LainaHumanoid.Health;
- if StoredHealth>0 and StoredHealth<LainaHumanoid.MaxHealth then
- local AdditionalHealth=0.01*LainaHumanoid.MaxHealth;
- StoredHealth=StoredHealth+AdditionalHealth;
- LainaHumanoid.Health=math.min(StoredHealth,LainaHumanoid.MaxHealth);
- end;
- Wait(0.3);
- end;
- if LainaHumanoid.Health>LainaHumanoid.MaxHealth then
- LainaHumanoid.Health=LainaHumanoid.MaxHealth;
- end;
- Regenerating=false;
- end);
- end;
- end;
- LainaHumanoid.HealthChanged:connect(UpdateHealth);
- --[[ By: Brutez. ]]--
- end))
- Part33.Name = "Right Arm"
- Part33.Parent = Model1
- Part33.Material = Enum.Material.SmoothPlastic
- Part33.BrickColor = BrickColor.new("Institutional white")
- Part33.CanCollide = false
- Part33.Locked = true
- Part33.Elasticity = 0
- Part33.FormFactor = Enum.FormFactor.Symmetric
- Part33.Friction = 2
- Part33.Size = Vector3.new(1, 2, 1)
- Part33.CFrame = CFrame.new(-67.5, 3.16750407, -12, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part33.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part33.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part33.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part33.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part33.Position = Vector3.new(-67.5, 3.16750407, -12)
- Part33.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Attachment34.Name = "RightShoulderAttachment"
- Attachment34.Parent = Part33
- Attachment34.CFrame = CFrame.new(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Attachment34.Position = Vector3.new(0, 1, 0)
- Part35.Name = "Right Leg"
- Part35.Parent = Model1
- Part35.Material = Enum.Material.SmoothPlastic
- Part35.BrickColor = BrickColor.new("Institutional white")
- Part35.CanCollide = false
- Part35.Locked = true
- Part35.Elasticity = 0
- Part35.FormFactor = Enum.FormFactor.Symmetric
- Part35.Friction = 2
- Part35.Size = Vector3.new(1, 2, 1)
- Part35.CFrame = CFrame.new(-68.5, 1.16750407, -12, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part35.Position = Vector3.new(-68.5, 1.16750407, -12)
- Part35.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part36.Name = "Left Leg"
- Part36.Parent = Model1
- Part36.Material = Enum.Material.SmoothPlastic
- Part36.BrickColor = BrickColor.new("Institutional white")
- Part36.CanCollide = false
- Part36.Locked = true
- Part36.Elasticity = 0
- Part36.FormFactor = Enum.FormFactor.Symmetric
- Part36.Friction = 2
- Part36.Size = Vector3.new(1, 2, 1)
- Part36.CFrame = CFrame.new(-69.5, 1.16750407, -12, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part36.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part36.Position = Vector3.new(-69.5, 1.16750407, -12)
- Part36.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Humanoid37.Name = "SeductiveWoman"
- Humanoid37.Parent = Model1
- Humanoid37.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- Humanoid37.HealthDisplayDistance = 0
- Humanoid37.NameDisplayDistance = 0
- Humanoid37.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
- Humanoid37.RightLeg = Part35
- Humanoid37.LeftLeg = Part36
- Humanoid37.Torso = Part17
- Humanoid37.Health = inf
- Humanoid37.MaxHealth = inf
- Humanoid37.WalkSpeed = 18
- Model38.Name = "Status"
- Model38.Parent = Humanoid37
- Model39.Name = "AvalibleSpawns"
- Model39.Parent = Model38
- Script40.Name = "Respawn"
- Script40.Parent = Model1
- table.insert(cors,sandbox(Script40,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 Laina=AdvancedRespawnScript.Parent;
- if AdvancedRespawnScript and Laina and Laina:FindFirstChild("Thumbnail")then
- Laina:FindFirstChild("Thumbnail"):Destroy();
- end;
- local GameDerbis=Game:GetService("Debris");
- local LainaHumanoid;
- for _,Child in pairs(Laina:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
- LainaHumanoid=Child;
- end;
- end;
- local Respawndant=Laina:Clone();
- if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
- coroutine.resume(coroutine.create(function()
- if Laina and LainaHumanoid and LainaHumanoid:FindFirstChild("Status")and not LainaHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
- SpawnModel=Instance.new("Model");
- SpawnModel.Parent=LainaHumanoid.Status;
- SpawnModel.Name="AvalibleSpawns";
- else
- SpawnModel=LainaHumanoid: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=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));
- end;
- function Respawn()
- Wait(5);
- Respawndant.Parent=Laina.Parent;
- Respawndant:makeJoints();
- Respawndant:FindFirstChild("Head"):MakeJoints();
- Respawndant:FindFirstChild("Torso"):MakeJoints();
- Laina:remove();
- end;
- if AdvancedRespawnScript and Laina and LainaHumanoid then
- LainaHumanoid.Died:connect(Respawn);
- end;
- --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
- end))
- BodyColors41.Parent = Model1
- BodyColors41.HeadColor = BrickColor.new("Institutional white")
- BodyColors41.LeftArmColor = BrickColor.new("Institutional white")
- BodyColors41.LeftLegColor = BrickColor.new("Institutional white")
- BodyColors41.RightArmColor = BrickColor.new("Institutional white")
- BodyColors41.RightLegColor = BrickColor.new("Institutional white")
- BodyColors41.TorsoColor = BrickColor.new("Institutional white")
- Pants42.Name = "Dress"
- Pants42.Parent = Model1
- Pants42.PantsTemplate = "rbxassetid://912935270"
- Script43.Name = "LainaMain"
- Script43.Parent = Model1
- table.insert(cors,sandbox(Script43,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:IsA("Humanoid")and Child.Health~=0 then
- LainaHumanoid=Child;
- end;
- end;
- local LeftLegC0,RightLegC0,LeftArmC0,RightArmC0,HeadC0,LeftLegC02,RightLegC02=CFrame.new(-1,-1,0,0,0,-1,0,1,0,1,0,0),CFrame.new(1,-1,0,0,0,1,0,1,-0,-1,0,0),CFrame.new(-1,0.5,0,0,0,-1,0,1,0,1,0,0),CFrame.new(1,0.5,0,0,0,1,0,1,-0,-1,0,0),CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0),CFrame.new(-0.5,-1,0.5,0,0,-1,0,1,0,1,0,0),CFrame.new(0.5,-1,0.5,0,0,1,0,1,-0,-1,0,0);
- 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.8699)),IgnoreList)
- end;
- while Wait(0)do
- if LainaScript and Laina and Laina:FindFirstChild("Torso") and LainaHumanoid and LainaHumanoid.Health~=0 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:IsA("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"then
- Jumpable=false;
- end;
- end;
- if Jumpable and LainaScript and Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.Sit and not IsOnTop then
- LainaHumanoid.Jump=true;
- end;
- end;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health==0 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")then
- Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935337";
- Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
- Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=true;
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Head")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak").IsPlaying then
- Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
- end;
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Torso")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Neck")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder")~=nil then
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
- end;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")and not IsOnTop then
- Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935344";
- Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
- Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Head")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak").IsPlaying then
- Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
- end;
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Torso")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Neck")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder")~=nil then
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
- end;
- elseif Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")and IsOnTop then
- Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935342";
- Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=true;
- Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Head")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")~=nil and not Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak").IsPlaying then
- Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Play();
- end;
- local LRotation,RRotation,LARotation,RARotation,HRotation=math.sin(tick()*9.86)*0.5,math.sin(tick()*9.86)*0.5,math.sin(tick()*9.86)*-0.3,math.sin(tick()*9.86)*-0.3,math.sin(tick()*9.86)*-0.3
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Torso")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Neck")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder")~=nil then
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC02*CFrame.fromEulerAnglesXYZ(1.5,1.5-LRotation,-1);
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0*CFrame.fromEulerAnglesXYZ(0,0,0.3+LARotation);
- Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0*CFrame.fromEulerAnglesXYZ(0.5+HRotation,0,0);
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC02*CFrame.fromEulerAnglesXYZ(1.5,-1.5+RRotation,1);
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0*CFrame.fromEulerAnglesXYZ(0,0,-0.3-RARotation);
- end;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoJumpEnabled then
- LainaHumanoid.AutoJumpEnabled=true;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoRotate then
- LainaHumanoid.AutoRotate=true;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.PlatformStand then
- LainaHumanoid.PlatformStand=false;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.Sit and not IsOnTop then
- LainaHumanoid.Sit=false;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
- LainaHumanoid.JumpPower=60;
- LainaHumanoid.WalkSpeed=20;
- end;
- local NoticeDistance=99999e99999;
- for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
- if TargetModel and TargetModel:IsA("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~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
- FoundHumanoid=Child;
- end;
- end;
- if Laina and Laina:FindFirstChild("HumanoidRootPart")and LainaHumanoid and LainaHumanoid.Health~=0 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 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()*9.86)*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 and Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
- if TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 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 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Model"or TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 and not FoundHumanoid:FindFirstChild("Status")then
- local JumpOkNPC=LainaScript:FindFirstChild("JumpOkNPC"):Clone();
- JumpOkNPC.Parent=TargetModel;
- JumpOkNPC.Disabled=false;
- end;
- end;
- Spawn(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 and Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
- LainaHumanoid.Sit=true;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Torso")and LainaWeld then
- LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
- end;
- if TargetModel~=nil and TargetPart~=nil and FoundHumanoid~=nil and FoundHumanoid.Health~=0 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))
- LocalScript44.Name = "JumpOk"
- LocalScript44.Parent = Script43
- LocalScript44.Disabled = true
- table.insert(cors,sandbox(LocalScript44,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))
- Script45.Name = "JumpOkNPC"
- Script45.Parent = Script43
- Script45.Disabled = true
- table.insert(cors,sandbox(Script45,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))
- Decal46.Parent = Script43
- Decal46.Texture = "http://www.roblox.com/asset/?id=912935342"
- CharacterMesh47.Name = "3.0 Female Left Arm"
- CharacterMesh47.Parent = Model1
- CharacterMesh47.MeshId = 83001137
- CharacterMesh47.BodyPart = Enum.BodyPart.LeftArm
- CharacterMesh48.Name = "3.0 Female Left Leg"
- CharacterMesh48.Parent = Model1
- CharacterMesh48.MeshId = 81628361
- CharacterMesh48.BodyPart = Enum.BodyPart.LeftLeg
- CharacterMesh49.Name = "3.0 Female Right Arm"
- CharacterMesh49.Parent = Model1
- CharacterMesh49.MeshId = 83001181
- CharacterMesh49.BodyPart = Enum.BodyPart.RightArm
- CharacterMesh50.Name = "3.0 Female Right Leg"
- CharacterMesh50.Parent = Model1
- CharacterMesh50.MeshId = 81628308
- CharacterMesh50.BodyPart = Enum.BodyPart.RightLeg
- CharacterMesh51.Name = "3.0 Female Torso"
- CharacterMesh51.Parent = Model1
- CharacterMesh51.MeshId = 82987757
- CharacterMesh51.BodyPart = Enum.BodyPart.Torso
- Script52.Name = "SoundNew"
- Script52.Parent = Model1
- table.insert(cors,sandbox(Script52,function()
- --[[ Compact mode by: Brutez. ]]--
- Spawn(function()
- local SFX,Humanoid,Head,Sounds={Died=0;Running=1;Swimming=2;Climbing=3,Jumping=4;GettingUp=5;FreeFalling=6;FallingDown=7;Landing=8;Splash=9;},nil,nil,{};
- local Figure=script.Parent;Head=Figure:FindFirstChild("Head");while not Humanoid do for _,NewHumanoid in pairs(Figure:GetChildren())do if NewHumanoid:IsA("Humanoid")then Humanoid=NewHumanoid;break;end;end;Figure.ChildAdded:wait();end;Sounds[SFX.Died]=Head:FindFirstChild("Died");Sounds[SFX.Running]=Head:FindFirstChild("Running");Sounds[SFX.Swimming]=Head:FindFirstChild("Swimming");Sounds[SFX.Climbing]=Head:FindFirstChild("Climbing");Sounds[SFX.Jumping]=Head:FindFirstChild("Jumping");Sounds[SFX.GettingUp]=Head:FindFirstChild("GettingUp");Sounds[SFX.FreeFalling]=Head:FindFirstChild("FreeFalling");Sounds[SFX.Landing]=Head:FindFirstChild("Landing");Sounds[SFX.Splash]=Head:FindFirstChild("Splash");
- local Util={YForLineGivenXAndTwoPts=function(x,pt1x,pt1y,pt2x,pt2y)local m=(pt1y-pt2y)/(pt1x-pt2x);local b=(pt1y-m*pt1x);return m*x+b;end;Clamp=function(val,min,max)return math.min(max,math.max(min,val));end;HorizontalSpeed=function(Head)local hVel=Head.Velocity+Vector3.new(0,-Head.Velocity.Y,0);return hVel.magnitude;end;VerticalSpeed=function(Head)return math.abs(Head.Velocity.Y);end;Play=function(sound)if sound.TimePosition~=0 then sound.TimePosition=0;end;if not sound.IsPlaying then sound.Playing=true;end;end;Pause=function(sound)if sound.IsPlaying then sound.Playing=false;end;end;Resume=function(sound)if not sound.IsPlaying then sound.Playing=true;end;end;Stop=function(sound)if sound.IsPlaying then sound.Playing=false;end;if sound.TimePosition~=0 then sound.TimePosition=0;end;end;};
- local playingLoopedSounds={};local activeState=nil;function setSoundInPlayingLoopedSounds(sound)for i=1,#playingLoopedSounds do if playingLoopedSounds[i]==sound then return;end;end;table.insert(playingLoopedSounds,sound);end;function stopPlayingLoopedSoundsExcept(except)for i=#playingLoopedSounds,1,-1 do if playingLoopedSounds[i]~=except then Util.Pause(playingLoopedSounds[i]);table.remove(playingLoopedSounds,i);end;end;end;local stateUpdateHandler={[Enum.HumanoidStateType.Dead]=function()stopPlayingLoopedSoundsExcept();local sound=Sounds[SFX.Died];Util.Play(sound);end;[Enum.HumanoidStateType.RunningNoPhysics]=function()stateUpdated(Enum.HumanoidStateType.Running);end;[Enum.HumanoidStateType.Running]=function()local sound=Sounds[SFX.Running];stopPlayingLoopedSoundsExcept(sound);if Util.HorizontalSpeed(Head)>0.5 then Util.Resume(sound);setSoundInPlayingLoopedSounds(sound);else stopPlayingLoopedSoundsExcept();end;end;[Enum.HumanoidStateType.Swimming]=function()if activeState~=Enum.HumanoidStateType.Swimming and Util.VerticalSpeed(Head)>0.1 then local splashSound=Sounds[SFX.Splash];splashSound.Volume=Util.Clamp(Util.YForLineGivenXAndTwoPts(Util.VerticalSpeed(Head),100,0.28,350,1),0,1);Util.Play(splashSound);end;do local sound=Sounds[SFX.Swimming];stopPlayingLoopedSoundsExcept(sound);Util.Resume(sound);setSoundInPlayingLoopedSounds(sound);end;end;[Enum.HumanoidStateType.Climbing]=function()local sound=Sounds[SFX.Climbing];if Util.VerticalSpeed(Head)>0.1 then Util.Resume(sound);stopPlayingLoopedSoundsExcept(sound);else stopPlayingLoopedSoundsExcept();end;setSoundInPlayingLoopedSounds(sound);end;[Enum.HumanoidStateType.Jumping]=function()if activeState==Enum.HumanoidStateType.Jumping then return;end;stopPlayingLoopedSoundsExcept();local sound=Sounds[SFX.Jumping];Util.Play(sound);end;[Enum.HumanoidStateType.GettingUp]=function()stopPlayingLoopedSoundsExcept();local sound=Sounds[SFX.GettingUp];Util.Play(sound);end;[Enum.HumanoidStateType.Freefall]=function()if activeState==Enum.HumanoidStateType.Freefall then return;end;local sound=Sounds[SFX.FreeFalling];sound.Volume=0;stopPlayingLoopedSoundsExcept();end;[Enum.HumanoidStateType.FallingDown]=function()stopPlayingLoopedSoundsExcept();end;[Enum.HumanoidStateType.Landed]=function()stopPlayingLoopedSoundsExcept();if Util.VerticalSpeed(Head)>75 then local landingSound=Sounds[SFX.Landing];landingSound.Volume=Util.Clamp(Util.YForLineGivenXAndTwoPts(Util.VerticalSpeed(Head),50,0,100,1),0,1);Util.Play(landingSound);end;end;[Enum.HumanoidStateType.Seated]=function()stopPlayingLoopedSoundsExcept();end;};function stateUpdated(state)if stateUpdateHandler[state]~=nil then stateUpdateHandler[state]();end;activeState=state;end;Humanoid.Died:connect(function()stateUpdated(Enum.HumanoidStateType.Dead);end);Humanoid.Running:connect(function()stateUpdated(Enum.HumanoidStateType.Running);end);Humanoid.Swimming:connect(function()stateUpdated(Enum.HumanoidStateType.Swimming);end);Humanoid.Climbing:connect(function()stateUpdated(Enum.HumanoidStateType.Climbing);end);Humanoid.Jumping:connect(function()stateUpdated(Enum.HumanoidStateType.Jumping);end);Humanoid.GettingUp:connect(function()stateUpdated(Enum.HumanoidStateType.GettingUp);end);Humanoid.FreeFalling:connect(function()stateUpdated(Enum.HumanoidStateType.Freefall);end);Humanoid.FallingDown:connect(function()stateUpdated(Enum.HumanoidStateType.FallingDown);end);Humanoid.StateChanged:connect(function(old,new)stateUpdated(new);end);function onUpdate(stepDeltaSeconds,tickSpeedSeconds)local stepScale=stepDeltaSeconds/tickSpeedSeconds;do local sound=Sounds[SFX.FreeFalling];if activeState==Enum.HumanoidStateType.Freefall then if Head.Velocity.Y<0 and Util.VerticalSpeed(Head)>75 then Util.Resume(sound);local ANIMATION_LENGTH_SECONDS=1.1;local normalizedIncrement=tickSpeedSeconds/ANIMATION_LENGTH_SECONDS;sound.Volume=Util.Clamp(sound.Volume+normalizedIncrement*stepScale,0,1);else sound.Volume=0;end;else Util.Pause(sound);end;end;do local sound=Sounds[SFX.Running];if activeState==Enum.HumanoidStateType.Running then if Util.HorizontalSpeed(Head)<0.5 then Util.Pause(sound);end;end;end;end;local lastTick=tick();local TICK_SPEED_SECONDS=0.25;while true do onUpdate(tick()-lastTick,TICK_SPEED_SECONDS);lastTick=tick();wait(TICK_SPEED_SECONDS);end;
- end);
- --[[ Compact mode by: Brutez. ]]--
- function CreateNewSound(name,id,looped,pitch,parent)
- local sound=Instance.new("Sound");
- sound.SoundId=id;
- sound.Name=name;
- sound.archivable=false;
- sound.Parent=parent;
- sound.Pitch=pitch;
- sound.Looped=looped;
- sound.MinDistance=20;
- sound.MaxDistance=10000;
- sound.Volume=1;
- return sound;
- end;
- local head=script.Parent:FindFirstChild("Head");
- CreateNewSound("GettingUp","rbxasset://sounds/action_get_up.mp3",false,1,head);
- CreateNewSound("Died","rbxasset://sounds/uuhhh.mp3",false,1,head);
- CreateNewSound("FreeFalling","rbxasset://sounds/action_falling.mp3",true,1,head);
- CreateNewSound("Jumping","rbxasset://sounds/action_jump.mp3",false,1,head);
- CreateNewSound("Landing","rbxasset://sounds/action_jump_land.mp3",false,1,head);
- CreateNewSound("Splash","rbxasset://sounds/impact_water.mp3",false,1,head);
- CreateNewSound("Running","rbxasset://sounds/action_footsteps_plastic.mp3",true,1.85,head);
- CreateNewSound("Swimming","rbxasset://sounds/action_swim.mp3",true,1.6,head);
- CreateNewSound("Climbing","rbxasset://sounds/action_footsteps_plastic.mp3",true,1,head);
- end))
- Script53.Name = "AnimateNew"
- Script53.Parent = Model1
- table.insert(cors,sandbox(Script53,function()
- local Figure = script.Parent
- local Torso = Figure:FindFirstChild("Torso")
- local RightShoulder = Torso:FindFirstChild("Right Shoulder")
- local LeftShoulder = Torso:FindFirstChild("Left Shoulder")
- local RightHip = Torso:FindFirstChild("Right Hip")
- local LeftHip = Torso:FindFirstChild("Left Hip")
- local Neck = Torso:FindFirstChild("Neck")
- local Humanoid;
- for _,Child in pairs(Figure:GetChildren())do
- if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 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)
- currentAnimTrack.Priority = Enum.AnimationPriority.Core
- -- 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, priority)
- 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)
- if priority then
- toolAnimTrack.Priority = priority
- end
- -- 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
- if emoteNames[currentAnim] == nil then
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- 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, Enum.AnimationPriority.Idle)
- return
- end
- if (toolAnim == "Slash") then
- playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
- return
- end
- if (toolAnim == "Lunge") then
- playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
- 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
- -- print("Wha " .. pose)
- 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)
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent ~= nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue54.Name = "climb"
- StringValue54.Parent = Script53
- Animation55.Name = "ClimbAnim"
- Animation55.Parent = StringValue54
- Animation55.AnimationId = "http://www.roblox.com/asset/?id=180436334"
- StringValue56.Name = "fall"
- StringValue56.Parent = Script53
- Animation57.Name = "FallAnim"
- Animation57.Parent = StringValue56
- Animation57.AnimationId = "http://www.roblox.com/asset/?id=180436148"
- StringValue58.Name = "idle"
- StringValue58.Parent = Script53
- Animation59.Name = "Animation1"
- Animation59.Parent = StringValue58
- Animation59.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- NumberValue60.Name = "Weight"
- NumberValue60.Parent = Animation59
- NumberValue60.Value = 9
- Animation61.Name = "Animation2"
- Animation61.Parent = StringValue58
- Animation61.AnimationId = "http://www.roblox.com/asset/?id=180435792"
- NumberValue62.Name = "Weight"
- NumberValue62.Parent = Animation61
- NumberValue62.Value = 1
- StringValue63.Name = "jump"
- StringValue63.Parent = Script53
- Animation64.Name = "JumpAnim"
- Animation64.Parent = StringValue63
- Animation64.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue65.Name = "run"
- StringValue65.Parent = Script53
- Animation66.Name = "RunAnim"
- Animation66.Parent = StringValue65
- Animation66.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- StringValue67.Name = "sit"
- StringValue67.Parent = Script53
- Animation68.Name = "SitAnim"
- Animation68.Parent = StringValue67
- Animation68.AnimationId = "http://www.roblox.com/asset/?id=178130996"
- StringValue69.Name = "toolnone"
- StringValue69.Parent = Script53
- Animation70.Name = "ToolNoneAnim"
- Animation70.Parent = StringValue69
- Animation70.AnimationId = "http://www.roblox.com/asset/?id=182393478"
- StringValue71.Name = "walk"
- StringValue71.Parent = Script53
- Animation72.Name = "WalkAnim"
- Animation72.Parent = StringValue71
- Animation72.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- 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