Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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")
- Weld3 = Instance.new("Weld")
- Part4 = Instance.new("Part")
- Weld5 = Instance.new("Weld")
- Part6 = Instance.new("Part")
- Weld7 = Instance.new("Weld")
- Weld8 = Instance.new("Weld")
- Weld9 = Instance.new("Weld")
- Weld10 = Instance.new("Weld")
- Weld11 = Instance.new("Weld")
- Weld12 = Instance.new("Weld")
- Weld13 = Instance.new("Weld")
- Weld14 = Instance.new("Weld")
- Weld15 = Instance.new("Weld")
- Weld16 = Instance.new("Weld")
- Part17 = Instance.new("Part")
- Snap18 = Instance.new("Snap")
- Part19 = Instance.new("Part")
- Part20 = Instance.new("Part")
- SpecialMesh21 = Instance.new("SpecialMesh")
- Decal22 = Instance.new("Decal")
- CharacterMesh23 = Instance.new("CharacterMesh")
- Part24 = Instance.new("Part")
- SpecialMesh25 = Instance.new("SpecialMesh")
- Decal26 = Instance.new("Decal")
- Script27 = Instance.new("Script")
- Script28 = Instance.new("Script")
- Script29 = Instance.new("Script")
- Script30 = Instance.new("Script")
- Script31 = Instance.new("Script")
- Humanoid32 = Instance.new("Humanoid")
- Weld33 = Instance.new("Weld")
- BodyColors34 = Instance.new("BodyColors")
- CharacterMesh35 = Instance.new("CharacterMesh")
- CharacterMesh36 = Instance.new("CharacterMesh")
- CharacterMesh37 = Instance.new("CharacterMesh")
- CharacterMesh38 = Instance.new("CharacterMesh")
- Pants39 = Instance.new("Pants")
- Shirt40 = Instance.new("Shirt")
- Part41 = Instance.new("Part")
- SpecialMesh42 = Instance.new("SpecialMesh")
- Model43 = Instance.new("Model")
- Part44 = Instance.new("Part")
- CylinderMesh45 = Instance.new("CylinderMesh")
- Model46 = Instance.new("Model")
- Part47 = Instance.new("Part")
- CylinderMesh48 = Instance.new("CylinderMesh")
- Model49 = Instance.new("Model")
- Part50 = Instance.new("Part")
- CylinderMesh51 = Instance.new("CylinderMesh")
- Model52 = Instance.new("Model")
- Model53 = Instance.new("Model")
- Part54 = Instance.new("Part")
- SpecialMesh55 = Instance.new("SpecialMesh")
- Part56 = Instance.new("Part")
- SpecialMesh57 = Instance.new("SpecialMesh")
- Part58 = Instance.new("Part")
- CylinderMesh59 = Instance.new("CylinderMesh")
- Part60 = Instance.new("Part")
- SpecialMesh61 = Instance.new("SpecialMesh")
- Model62 = Instance.new("Model")
- Part63 = Instance.new("Part")
- SpecialMesh64 = Instance.new("SpecialMesh")
- Part65 = Instance.new("Part")
- SpecialMesh66 = Instance.new("SpecialMesh")
- Part67 = Instance.new("Part")
- SpecialMesh68 = Instance.new("SpecialMesh")
- Part69 = Instance.new("Part")
- SpecialMesh70 = Instance.new("SpecialMesh")
- Part71 = Instance.new("Part")
- SpecialMesh72 = Instance.new("SpecialMesh")
- Part73 = Instance.new("Part")
- SpecialMesh74 = Instance.new("SpecialMesh")
- Part75 = Instance.new("Part")
- SpecialMesh76 = Instance.new("SpecialMesh")
- Model77 = Instance.new("Model")
- Part78 = Instance.new("Part")
- Part79 = Instance.new("Part")
- Part80 = Instance.new("Part")
- WedgePart81 = Instance.new("WedgePart")
- Part82 = Instance.new("Part")
- Part83 = Instance.new("Part")
- WedgePart84 = Instance.new("WedgePart")
- Model85 = Instance.new("Model")
- BodyColors86 = Instance.new("BodyColors")
- Pants87 = Instance.new("Pants")
- Shirt88 = Instance.new("Shirt")
- Hat89 = Instance.new("Hat")
- Part90 = Instance.new("Part")
- SpecialMesh91 = Instance.new("SpecialMesh")
- Script92 = Instance.new("Script")
- Script93 = Instance.new("Script")
- Humanoid94 = Instance.new("Humanoid")
- Script95 = Instance.new("Script")
- Script96 = Instance.new("Script")
- LocalScript97 = Instance.new("LocalScript")
- Part98 = Instance.new("Part")
- Decal99 = Instance.new("Decal")
- SpecialMesh100 = Instance.new("SpecialMesh")
- Weld101 = Instance.new("Weld")
- Weld102 = Instance.new("Weld")
- Weld103 = Instance.new("Weld")
- Dialog104 = Instance.new("Dialog")
- DialogChoice105 = Instance.new("DialogChoice")
- DialogChoice106 = Instance.new("DialogChoice")
- Part107 = Instance.new("Part")
- Part108 = Instance.new("Part")
- Part109 = Instance.new("Part")
- Part110 = Instance.new("Part")
- Part111 = Instance.new("Part")
- Motor6D112 = Instance.new("Motor6D")
- Motor6D113 = Instance.new("Motor6D")
- Motor6D114 = Instance.new("Motor6D")
- Motor6D115 = Instance.new("Motor6D")
- Motor6D116 = Instance.new("Motor6D")
- Decal117 = Instance.new("Decal")
- CharacterMesh118 = Instance.new("CharacterMesh")
- CharacterMesh119 = Instance.new("CharacterMesh")
- CharacterMesh120 = Instance.new("CharacterMesh")
- CharacterMesh121 = Instance.new("CharacterMesh")
- CharacterMesh122 = Instance.new("CharacterMesh")
- Model123 = Instance.new("Model")
- Part124 = Instance.new("Part")
- SpecialMesh125 = Instance.new("SpecialMesh")
- Part126 = Instance.new("Part")
- SpecialMesh127 = Instance.new("SpecialMesh")
- Model128 = Instance.new("Model")
- Part129 = Instance.new("Part")
- SpecialMesh130 = Instance.new("SpecialMesh")
- Part131 = Instance.new("Part")
- SpecialMesh132 = Instance.new("SpecialMesh")
- Model133 = Instance.new("Model")
- Part134 = Instance.new("Part")
- SpecialMesh135 = Instance.new("SpecialMesh")
- Part136 = Instance.new("Part")
- SpecialMesh137 = Instance.new("SpecialMesh")
- Model0.Name = " "
- Model0.Parent = mas
- Model1.Name = " "
- Model1.Parent = Model0
- Model1.PrimaryPart = Part17
- Part2.Name = "Right Leg"
- Part2.Parent = Model1
- Part2.BrickColor = BrickColor.new("Pastel brown")
- Part2.Rotation = Vector3.new(124.330002, 89.9499969, -110.449997)
- Part2.Anchored = true
- Part2.FormFactor = Enum.FormFactor.Symmetric
- Part2.Size = Vector3.new(1, 1.39999998, 1)
- Part2.CFrame = CFrame.new(-1.12788999, 0.80558902, 2.14618301, -3.93099617e-06, 1.05433992e-05, 0.999999642, 0.258822232, 0.965925038, -9.16567205e-06, -0.965924919, 0.258822203, -6.25834582e-06)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.Color = Color3.new(1, 0.8, 0.6)
- Part2.Position = Vector3.new(-1.12788999, 0.80558902, 2.14618301)
- Part2.Orientation = Vector3.new(0, 90, 15)
- Part2.Color = Color3.new(1, 0.8, 0.6)
- Weld3.Name = "SoundJack"
- Weld3.Parent = Part2
- Part4.Name = "Left Leg"
- Part4.Parent = Model1
- Part4.BrickColor = BrickColor.new("Pastel brown")
- Part4.Rotation = Vector3.new(92.9000015, 89.9499969, -108.639999)
- Part4.Anchored = true
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.Size = Vector3.new(1, 1.4000001, 1)
- Part4.CFrame = CFrame.new(-1.12739599, 0.805586994, 3.14530802, -7.89470141e-06, 2.34014442e-05, 0.999999642, -0.258818895, 0.965925813, -2.46720592e-05, -0.965925813, -0.258818895, -1.25155566e-06)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.Color = Color3.new(1, 0.8, 0.6)
- Part4.Position = Vector3.new(-1.12739599, 0.805586994, 3.14530802)
- Part4.Orientation = Vector3.new(0, 90, -15)
- Part4.Color = Color3.new(1, 0.8, 0.6)
- Weld5.Name = "SoundJack"
- Weld5.Parent = Part4
- Part6.Name = "Right Arm"
- Part6.Parent = Model1
- Part6.BrickColor = BrickColor.new("Pastel brown")
- Part6.Rotation = Vector3.new(140.300003, 89.9499969, -140.509995)
- Part6.Anchored = true
- Part6.FormFactor = Enum.FormFactor.Symmetric
- Part6.Size = Vector3.new(1, 1.5999999, 1)
- Part6.CFrame = CFrame.new(-1.12740803, 2.10561705, 1.34590101, -2.80441163e-05, 2.31133163e-05, 0.999999583, 1.98986595e-06, 1, -2.31132599e-05, -1, 1.98923044e-06, -2.78352272e-05)
- Part6.Color = Color3.new(1, 0.8, 0.6)
- Part6.Position = Vector3.new(-1.12740803, 2.10561705, 1.34590101)
- Part6.Orientation = Vector3.new(0, 90, 0)
- Part6.Color = Color3.new(1, 0.8, 0.6)
- Weld7.Name = "RightGrip"
- Weld7.Parent = Part6
- Weld7.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld7.C1 = CFrame.new(-1, -0.75, 0.25, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Weld8.Name = "RightGrip"
- Weld8.Parent = Part6
- Weld8.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld8.C1 = CFrame.new(-1, -0.75, 0.25, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Weld9.Name = "RightGrip"
- Weld9.Parent = Part6
- Weld9.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld9.C1 = CFrame.new(-1, -0.75, 0.25, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Weld10.Name = "RightGrip"
- Weld10.Parent = Part6
- Weld10.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld10.C1 = CFrame.new(-1, -0.75, 0.25, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Weld11.Name = "RightGrip"
- Weld11.Parent = Part6
- Weld11.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld11.C1 = CFrame.new(-1, -0.75, 0.25, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Weld12.Name = "RightGrip"
- Weld12.Parent = Part6
- Weld12.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld12.C1 = CFrame.new(-1, -0.75, 0.25, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Weld13.Name = "RightGrip"
- Weld13.Parent = Part6
- Weld13.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld13.C1 = CFrame.new(-1, -0.75, 0.25, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Weld14.Name = "RightGrip"
- Weld14.Parent = Part6
- Weld14.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld14.C1 = CFrame.new(-1, -0.75, 0.25, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Weld15.Name = "RightGrip"
- Weld15.Parent = Part6
- Weld15.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld15.C1 = CFrame.new(-1, -0.75, 0.25, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Weld16.Name = "RightGrip"
- Weld16.Parent = Part6
- Weld16.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Weld16.C1 = CFrame.new(-1, -0.75, 0.25, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part17.Name = "Torso"
- Part17.Parent = Model1
- Part17.BrickColor = BrickColor.new("Pastel brown")
- Part17.Rotation = Vector3.new(-158.539993, 89.9499969, 159.600006)
- Part17.Anchored = true
- Part17.FormFactor = Enum.FormFactor.Symmetric
- Part17.Size = Vector3.new(1.60000002, 1.39999998, 1)
- Part17.CFrame = CFrame.new(-1.127648, 2.20560002, 2.64604902, -4.9771279e-06, -1.8507053e-06, 0.999999642, 1.96033011e-06, 1, 1.85072713e-06, -0.999999881, 1.9603458e-06, -4.70862506e-06)
- Part17.LeftSurface = Enum.SurfaceType.Weld
- Part17.RightSurface = Enum.SurfaceType.Weld
- Part17.Color = Color3.new(1, 0.8, 0.6)
- Part17.Position = Vector3.new(-1.127648, 2.20560002, 2.64604902)
- Part17.Orientation = Vector3.new(0, 90, 0)
- Part17.Color = Color3.new(1, 0.8, 0.6)
- Snap18.Name = "Neck"
- Snap18.Parent = Part17
- Snap18.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Snap18.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Part19.Name = "Left Arm"
- Part19.Parent = Model1
- Part19.BrickColor = BrickColor.new("Pastel brown")
- Part19.Rotation = Vector3.new(-86.8899994, 89.9499969, 87.0999985)
- Part19.Anchored = true
- Part19.FormFactor = Enum.FormFactor.Symmetric
- Part19.Size = Vector3.new(1, 1.39999998, 1)
- Part19.CFrame = CFrame.new(-1.12764096, 2.20556402, 3.94594908, 3.21850712e-06, -6.35524775e-05, 0.999999583, -5.99690111e-06, 1, 6.35525212e-05, -0.999999881, -5.99711029e-06, 3.45720764e-06)
- Part19.Color = Color3.new(1, 0.8, 0.6)
- Part19.Position = Vector3.new(-1.12764096, 2.20556402, 3.94594908)
- Part19.Orientation = Vector3.new(0, 90, 0)
- Part19.Color = Color3.new(1, 0.8, 0.6)
- Part20.Name = "Head"
- Part20.Parent = Model1
- Part20.BrickColor = BrickColor.new("Pastel brown")
- Part20.Rotation = Vector3.new(-158.539993, 89.9499969, 159.600006)
- Part20.Anchored = true
- Part20.FormFactor = Enum.FormFactor.Symmetric
- Part20.Size = Vector3.new(2, 1, 1)
- Part20.CFrame = CFrame.new(-1.12765098, 3.4055469, 2.64604712, -4.9771279e-06, -1.8507053e-06, 0.999999642, 1.96033011e-06, 1, 1.85072713e-06, -0.999999881, 1.9603458e-06, -4.70862506e-06)
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.Color = Color3.new(1, 0.8, 0.6)
- Part20.Position = Vector3.new(-1.12765098, 3.4055469, 2.64604712)
- Part20.Orientation = Vector3.new(0, 90, 0)
- Part20.Color = Color3.new(1, 0.8, 0.6)
- SpecialMesh21.Parent = Part20
- SpecialMesh21.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh21.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal22.Parent = Part20
- Decal22.Texture = "http://www.roblox.com/asset/?id=14382939"
- CharacterMesh23.Name = "Roblox 2.0 torso"
- CharacterMesh23.Parent = Model1
- CharacterMesh23.MeshId = 27111894
- CharacterMesh23.BodyPart = Enum.BodyPart.Torso
- Part24.Name = "Handle"
- Part24.Parent = Model1
- Part24.Rotation = Vector3.new(-158.789993, 89.9499969, 159.820007)
- Part24.Anchored = true
- Part24.CanCollide = false
- Part24.FormFactor = Enum.FormFactor.Symmetric
- Part24.Size = Vector3.new(2, 1, 1)
- Part24.CFrame = CFrame.new(-1.12765002, 3.08460402, 2.64604712, -5.03673255e-06, -1.8507053e-06, 0.999999642, 1.96033011e-06, 1, 1.85072713e-06, -0.99999994, 1.96034603e-06, -4.7682297e-06)
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.Position = Vector3.new(-1.12765002, 3.08460402, 2.64604712)
- Part24.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh25.Parent = Part24
- SpecialMesh25.MeshId = "http://www.roblox.com/asset/?id=13070796"
- SpecialMesh25.TextureId = "http://www.roblox.com/asset/?id=13694600"
- SpecialMesh25.MeshType = Enum.MeshType.FileMesh
- Decal26.Parent = Part24
- Decal26.Texture = "http://www.roblox.com/asset/?id=14382939"
- Script27.Name = "Follow if Decides"
- Script27.Parent = Model1
- table.insert(cors,sandbox(Script27,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 20
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- wait(7)
- script.Parent.Humanoid:MoveTo(Vector3.new(math.random(-100,100),0,math.random(-100,100)), game.Workspace.Base)
- wait(1.5)
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(1.5)
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- else
- script.Parent.Humanoid:MoveTo(Vector3.new(math.random(-100,100),0,math.random(-100,100)), game.Workspace.Base)
- end
- end
- end))
- Script28.Name = "Moving joints when standing"
- Script28.Parent = Model1
- table.insert(cors,sandbox(Script28,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
- function onTeamChanged(player)
- wait(1)
- local char = player.Character
- if char == nil then return end
- if player.Neutral then
- local old = char:findFirstChild("Body Colors")
- if not old then return end
- old:clone().Parent = char
- old.Parent = nil
- else
- local head = char:findFirstChild("Head")
- local torso = char:findFirstChild("Torso")
- local left_arm = char:findFirstChild("Left Arm")
- local right_arm = char:findFirstChild("Right Arm")
- local left_leg = char:findFirstChild("Left Leg")
- local right_leg = char:findFirstChild("Right Leg")
- if head then head.BrickColor = BrickColor.new(24) end
- if torso then torso.BrickColor = player.TeamColor end
- if left_arm then left_arm.BrickColor = BrickColor.new(26) end
- if right_arm then right_arm.BrickColor = BrickColor.new(26) end
- if left_leg then left_leg.BrickColor = BrickColor.new(26) end
- if right_leg then right_leg.BrickColor = BrickColor.new(26) end
- end
- end
- function onPlayerPropChanged(property, player)
- if property == "Character" then
- onTeamChanged(player)
- end
- if property== "TeamColor" or property == "Neutral" then
- onTeamChanged(player)
- end
- end
- local cPlayer = game.Players:GetPlayerFromCharacter(script.Parent)
- cPlayer.Changed:connect(function(property) onPlayerPropChanged(property, cPlayer) end )
- onTeamChanged(cPlayer)
- 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 = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local toolAnim = "None"
- local toolAnimTime = 0
- local isSeated = false
- function onRunning(speed)
- if isSeated then return end
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- isSeated = false
- pose = "Jumping"
- end
- function onClimbing()
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- pose = "FreeFall"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- isSeated = true
- pose = "Seated"
- end
- function moveJump()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 3.14
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveFreeFall()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 3.14
- LeftShoulder.DesiredAngle = -3.14
- RightHip.DesiredAngle = 0
- LeftHip.DesiredAngle = 0
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder.DesiredAngle = 3.14 /2
- LeftShoulder.DesiredAngle = -3.14 /2
- RightHip.DesiredAngle = 3.14 /2
- LeftHip.DesiredAngle = -3.14 /2
- 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
- RightShoulder.DesiredAngle = 1.57
- return
- end
- if (toolAnim == "Slash") then
- RightShoulder.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 0
- return
- end
- if (toolAnim == "Lunge") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightHip.MaxVelocity = 0.5
- LeftHip.MaxVelocity = 0.5
- RightShoulder.DesiredAngle = 1.57
- LeftShoulder.DesiredAngle = 1.0
- RightHip.DesiredAngle = 1.57
- LeftHip.DesiredAngle = 1.0
- return
- end
- end
- function move(time)
- local amplitude
- local frequency
- if (pose == "Jumping") then
- moveJump()
- return
- end
- if (pose == "FreeFall") then
- moveFreeFall()
- return
- end
- if (pose == "Seated") then
- moveSit()
- return
- end
- local climbFudge = 0
- if (pose == "Running") then
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- amplitude = 1
- frequency = 9
- elseif (pose == "Climbing") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- amplitude = 1
- frequency = 9
- climbFudge = 3.14
- else
- amplitude = 0.1
- frequency = 1
- end
- desiredAngle = amplitude * math.sin(time*frequency)
- RightShoulder.DesiredAngle = desiredAngle + climbFudge
- LeftShoulder.DesiredAngle = desiredAngle - climbFudge
- RightHip.DesiredAngle = -desiredAngle
- LeftHip.DesiredAngle = -desiredAngle
- local tool = getTool()
- if tool then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- toolAnim = "None"
- toolAnimTime = 0
- end
- end
- 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)
- local runService = game:service("RunService");
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- Script29.Name = "Regenarate If attacked"
- Script29.Parent = Model1
- table.insert(cors,sandbox(Script29,function()
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- while true do
- local s = wait(1)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.01 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script30.Name = "Spawn When Killed"
- Script30.Parent = Model1
- table.insert(cors,sandbox(Script30,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(20)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Script31.Name = "Sound"
- Script31.Parent = Model1
- table.insert(cors,sandbox(Script31,function()
- -- 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
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.archivable = false
- sound.Parent = script.Parent.Head
- return sound
- end
- -- declarations
- local sDied = newSound("rbxasset://sounds/uuhhh.wav")
- local sFallingDown = newSound("rbxasset://sounds/splat.wav")
- local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
- local sGettingUp = newSound("rbxasset://sounds/hit.wav")
- local sJumping = newSound("rbxasset://sounds/button.wav")
- local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
- sRunning.Looped = true
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- -- functions
- function onDied()
- sDied:Play()
- end
- function onState(state, sound)
- if state then
- sound:Play()
- else
- sound:Pause()
- end
- end
- function onRunning(speed)
- if speed>0 then
- sRunning:Play()
- else
- sRunning:Pause()
- end
- end
- -- connect up
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
- end))
- Humanoid32.Name = "head"
- Humanoid32.Parent = Model1
- Humanoid32.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid32.RightLeg = Part2
- Humanoid32.LeftLeg = Part4
- Humanoid32.Torso = Part17
- Humanoid32.Health = 0
- Humanoid32.MaxHealth = 0
- Humanoid32.WalkSpeed = 0
- Weld33.Name = "SoundJack"
- Weld33.Parent = Model1
- BodyColors34.Parent = Model1
- BodyColors34.HeadColor = BrickColor.new("Pastel brown")
- BodyColors34.LeftArmColor = BrickColor.new("Pastel brown")
- BodyColors34.LeftLegColor = BrickColor.new("Pastel brown")
- BodyColors34.RightArmColor = BrickColor.new("Pastel brown")
- BodyColors34.RightLegColor = BrickColor.new("Pastel brown")
- BodyColors34.TorsoColor = BrickColor.new("Pastel brown")
- CharacterMesh35.Name = "Roblox 2.0 Right Leg"
- CharacterMesh35.Parent = Model1
- CharacterMesh35.MeshId = 27111882
- CharacterMesh35.BodyPart = Enum.BodyPart.RightLeg
- CharacterMesh36.Name = "Roblox 2.0 Left Arm"
- CharacterMesh36.Parent = Model1
- CharacterMesh36.MeshId = 27111419
- CharacterMesh36.BodyPart = Enum.BodyPart.LeftArm
- CharacterMesh37.Name = "Roblox 2.0 Left Leg"
- CharacterMesh37.Parent = Model1
- CharacterMesh37.MeshId = 27111857
- CharacterMesh37.BodyPart = Enum.BodyPart.LeftLeg
- CharacterMesh38.Name = "Roblox 2.0 Right Arm"
- CharacterMesh38.Parent = Model1
- CharacterMesh38.MeshId = 27111864
- CharacterMesh38.BodyPart = Enum.BodyPart.RightArm
- Pants39.Name = "Pants"
- Pants39.Parent = Model1
- Pants39.PantsTemplate = "http://www.roblox.com/asset/?id=33082170"
- Shirt40.Name = "Shirt"
- Shirt40.Parent = Model1
- Shirt40.ShirtTemplate = "http://www.roblox.com/asset/?id=33078549"
- Part41.Name = "Handle"
- Part41.Parent = Model1
- Part41.Rotation = Vector3.new(-91.4800034, 89.9499969, 91.5400009)
- Part41.Anchored = true
- Part41.FormFactor = Enum.FormFactor.Symmetric
- Part41.Size = Vector3.new(1, 1, 1)
- Part41.CFrame = CFrame.new(-1.40090001, 3.59414911, 2.66582108, -5.03673255e-06, -0.00018741723, 0.999999642, -0.000209801467, 1, 0.00018741627, -0.99999994, -0.00020980055, -4.82783435e-06)
- Part41.BottomSurface = Enum.SurfaceType.Smooth
- Part41.TopSurface = Enum.SurfaceType.Smooth
- Part41.Position = Vector3.new(-1.40090001, 3.59414911, 2.66582108)
- Part41.Orientation = Vector3.new(-0.00999999978, 90, -0.00999999978)
- SpecialMesh42.Parent = Part41
- SpecialMesh42.MeshId = "http://www.roblox.com/asset/?id=14356597"
- SpecialMesh42.TextureId = "http://www.roblox.com/asset/?id=14767159"
- SpecialMesh42.MeshType = Enum.MeshType.FileMesh
- Model43.Name = "Food Bowl"
- Model43.Parent = mas
- Part44.Name = "Smooth Block Model"
- Part44.Parent = Model43
- Part44.Material = Enum.Material.Pebble
- Part44.BrickColor = BrickColor.new("Pine Cone")
- Part44.Rotation = Vector3.new(180, 0, 0)
- Part44.Anchored = true
- Part44.FormFactor = Enum.FormFactor.Custom
- Part44.Size = Vector3.new(1, 0.200000003, 1.60000014)
- Part44.CFrame = CFrame.new(-7.36395311, 0.710101008, -6.53591919, 1, 8.00030787e-19, 4.21697095e-08, 1.43616907e-20, -1, -1.86311279e-11, 4.52530671e-08, -1.86311279e-11, -1)
- Part44.BottomSurface = Enum.SurfaceType.Smooth
- Part44.TopSurface = Enum.SurfaceType.Smooth
- Part44.Color = Color3.new(0.423529, 0.345098, 0.294118)
- Part44.Position = Vector3.new(-7.36395311, 0.710101008, -6.53591919)
- Part44.Orientation = Vector3.new(0, 180, 180)
- Part44.Color = Color3.new(0.423529, 0.345098, 0.294118)
- CylinderMesh45.Parent = Part44
- Model46.Name = "Food Bowl"
- Model46.Parent = mas
- Part47.Name = "Smooth Block Model"
- Part47.Parent = Model46
- Part47.Material = Enum.Material.Pebble
- Part47.BrickColor = BrickColor.new("Pine Cone")
- Part47.Rotation = Vector3.new(180, 0, 0)
- Part47.Anchored = true
- Part47.FormFactor = Enum.FormFactor.Custom
- Part47.Size = Vector3.new(1, 0.200000003, 1.60000014)
- Part47.CFrame = CFrame.new(-8.36395073, 0.410066009, -4.53591919, 1, 8.00030787e-19, 4.21697095e-08, 1.43616907e-20, -1, -1.86311279e-11, 4.52530671e-08, -1.86311279e-11, -1)
- Part47.BottomSurface = Enum.SurfaceType.Smooth
- Part47.TopSurface = Enum.SurfaceType.Smooth
- Part47.Color = Color3.new(0.423529, 0.345098, 0.294118)
- Part47.Position = Vector3.new(-8.36395073, 0.410066009, -4.53591919)
- Part47.Orientation = Vector3.new(0, 180, 180)
- Part47.Color = Color3.new(0.423529, 0.345098, 0.294118)
- CylinderMesh48.Parent = Part47
- Model49.Name = "Food Bowl"
- Model49.Parent = mas
- Part50.Name = "Smooth Block Model"
- Part50.Parent = Model49
- Part50.Material = Enum.Material.Pebble
- Part50.BrickColor = BrickColor.new("Pine Cone")
- Part50.Rotation = Vector3.new(180, 0, 0)
- Part50.Anchored = true
- Part50.FormFactor = Enum.FormFactor.Custom
- Part50.Size = Vector3.new(1, 0.200000003, 1.60000014)
- Part50.CFrame = CFrame.new(-9.36394978, 0.110031001, -2.53591895, 1, 8.00030787e-19, 4.21697095e-08, 1.43616907e-20, -1, -1.86311279e-11, 4.52530671e-08, -1.86311279e-11, -1)
- Part50.BottomSurface = Enum.SurfaceType.Smooth
- Part50.TopSurface = Enum.SurfaceType.Smooth
- Part50.Color = Color3.new(0.423529, 0.345098, 0.294118)
- Part50.Position = Vector3.new(-9.36394978, 0.110031001, -2.53591895)
- Part50.Orientation = Vector3.new(0, 180, 180)
- Part50.Color = Color3.new(0.423529, 0.345098, 0.294118)
- CylinderMesh51.Parent = Part50
- Model52.Parent = mas
- Model53.Name = "PetBed"
- Model53.Parent = Model52
- Part54.Parent = Model53
- Part54.BrickColor = BrickColor.new("Dusty Rose")
- Part54.Rotation = Vector3.new(90, 0, -90)
- Part54.Anchored = true
- Part54.CanCollide = false
- Part54.FormFactor = Enum.FormFactor.Symmetric
- Part54.Size = Vector3.new(3, 3, 1)
- Part54.CFrame = CFrame.new(-13.5, 0.500007987, 1.5, -0, 1, -0, -0, 0, -1, -1, 0, -0)
- Part54.BottomSurface = Enum.SurfaceType.Smooth
- Part54.TopSurface = Enum.SurfaceType.Smooth
- Part54.Color = Color3.new(0.639216, 0.294118, 0.294118)
- Part54.Position = Vector3.new(-13.5, 0.500007987, 1.5)
- Part54.Orientation = Vector3.new(90, 90, 0)
- Part54.Color = Color3.new(0.639216, 0.294118, 0.294118)
- SpecialMesh55.Parent = Part54
- SpecialMesh55.MeshId = "http://www.roblox.com/asset/?id=3270017"
- SpecialMesh55.Scale = Vector3.new(3.0999999, 3.0999999, 6)
- SpecialMesh55.MeshType = Enum.MeshType.FileMesh
- SpecialMesh55.Scale = Vector3.new(3.0999999, 3.0999999, 6)
- Part56.Parent = Model53
- Part56.BrickColor = BrickColor.new("Pastel brown")
- Part56.Rotation = Vector3.new(90, 0, -90)
- Part56.Anchored = true
- Part56.CanCollide = false
- Part56.FormFactor = Enum.FormFactor.Symmetric
- Part56.Size = Vector3.new(3, 3, 1)
- Part56.CFrame = CFrame.new(-13.5, 0.500007987, 1.5, -0, 1, -0, -0, 0, -1, -1, 0, -0)
- Part56.BottomSurface = Enum.SurfaceType.Smooth
- Part56.TopSurface = Enum.SurfaceType.Smooth
- Part56.Color = Color3.new(1, 0.8, 0.6)
- Part56.Position = Vector3.new(-13.5, 0.500007987, 1.5)
- Part56.Orientation = Vector3.new(90, 90, 0)
- Part56.Color = Color3.new(1, 0.8, 0.6)
- SpecialMesh57.Parent = Part56
- SpecialMesh57.MeshId = "http://www.roblox.com/asset/?id=3270017"
- SpecialMesh57.Scale = Vector3.new(3, 3, 6)
- SpecialMesh57.MeshType = Enum.MeshType.FileMesh
- SpecialMesh57.Scale = Vector3.new(3, 3, 6)
- Part58.Name = "Cylinder"
- Part58.Parent = Model53
- Part58.BrickColor = BrickColor.new("Pastel brown")
- Part58.Anchored = true
- Part58.FormFactor = Enum.FormFactor.Plate
- Part58.Size = Vector3.new(3, 0.400000006, 3)
- Part58.CFrame = CFrame.new(-13.5, 0.200008988, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part58.BottomSurface = Enum.SurfaceType.Smooth
- Part58.TopSurface = Enum.SurfaceType.Smooth
- Part58.Color = Color3.new(1, 0.8, 0.6)
- Part58.Position = Vector3.new(-13.5, 0.200008988, 1.5)
- Part58.Color = Color3.new(1, 0.8, 0.6)
- CylinderMesh59.Parent = Part58
- Part60.Name = "Head"
- Part60.Parent = Model52
- Part60.Rotation = Vector3.new(0, 90, 0)
- Part60.Anchored = true
- Part60.FormFactor = Enum.FormFactor.Plate
- Part60.Size = Vector3.new(1, 0.800000012, 1)
- Part60.CFrame = CFrame.new(-13.5, 0.90000701, 1.5, -0, 0, 1, -0, 1, 0, -1, 0, 0)
- Part60.BottomSurface = Enum.SurfaceType.Smooth
- Part60.TopSurface = Enum.SurfaceType.Smooth
- Part60.Position = Vector3.new(-13.5, 0.90000701, 1.5)
- Part60.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh61.Parent = Part60
- SpecialMesh61.MeshId = "http://www.roblox.com/asset/?id=41754217"
- SpecialMesh61.Scale = Vector3.new(2.5999999, 2.5999999, 2.5999999)
- SpecialMesh61.TextureId = "http://www.roblox.com/asset/?id=41754203"
- SpecialMesh61.MeshType = Enum.MeshType.FileMesh
- SpecialMesh61.Scale = Vector3.new(2.5999999, 2.5999999, 2.5999999)
- Model62.Parent = mas
- Part63.Name = "HeadIdle"
- Part63.Parent = Model62
- Part63.Material = Enum.Material.SmoothPlastic
- Part63.BrickColor = BrickColor.new("Carnation pink")
- Part63.Rotation = Vector3.new(-180, 28.9300003, -180)
- Part63.Anchored = true
- Part63.CanCollide = false
- Part63.FormFactor = Enum.FormFactor.Custom
- Part63.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part63.CFrame = CFrame.new(-15.0180321, 0.309967011, 3.87380695, -0.875211716, 4.77595222e-06, 0.48374024, 3.00466309e-05, 0.999999464, 4.44892248e-05, -0.483737022, 5.08428275e-05, -0.875205874)
- Part63.BottomSurface = Enum.SurfaceType.Smooth
- Part63.TopSurface = Enum.SurfaceType.Smooth
- Part63.Color = Color3.new(1, 0.596078, 0.862745)
- Part63.Position = Vector3.new(-15.0180321, 0.309967011, 3.87380695)
- Part63.Orientation = Vector3.new(0, 151.070007, 0)
- Part63.Color = Color3.new(1, 0.596078, 0.862745)
- SpecialMesh64.Parent = Part63
- SpecialMesh64.Scale = Vector3.new(0.0584240407, 0.281358331, 0.0922485515)
- SpecialMesh64.MeshType = Enum.MeshType.Sphere
- SpecialMesh64.Scale = Vector3.new(0.0584240407, 0.281358331, 0.0922485515)
- Part65.Name = "HeadIdle"
- Part65.Parent = Model62
- Part65.Material = Enum.Material.SmoothPlastic
- Part65.BrickColor = BrickColor.new("Really black")
- Part65.Rotation = Vector3.new(-180, 28.9300003, -180)
- Part65.Anchored = true
- Part65.CanCollide = false
- Part65.FormFactor = Enum.FormFactor.Custom
- Part65.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part65.CFrame = CFrame.new(-14.9280138, 0.389963001, 3.92380404, -0.875211716, 4.77595222e-06, 0.48374024, 3.00466309e-05, 0.999999464, 4.44892248e-05, -0.483737022, 5.08428275e-05, -0.875205874)
- Part65.BottomSurface = Enum.SurfaceType.Smooth
- Part65.TopSurface = Enum.SurfaceType.Smooth
- Part65.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part65.Position = Vector3.new(-14.9280138, 0.389963001, 3.92380404)
- Part65.Orientation = Vector3.new(0, 151.070007, 0)
- Part65.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- SpecialMesh66.Parent = Part65
- SpecialMesh66.Scale = Vector3.new(0.0584240407, 0.281358331, 0.0922485515)
- SpecialMesh66.MeshType = Enum.MeshType.Sphere
- SpecialMesh66.Scale = Vector3.new(0.0584240407, 0.281358331, 0.0922485515)
- Part67.Name = "HeadIdle"
- Part67.Parent = Model62
- Part67.Material = Enum.Material.SmoothPlastic
- Part67.BrickColor = BrickColor.new("Really black")
- Part67.Rotation = Vector3.new(-180, 28.9300003, -180)
- Part67.Anchored = true
- Part67.CanCollide = false
- Part67.FormFactor = Enum.FormFactor.Custom
- Part67.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part67.CFrame = CFrame.new(-14.9280138, 0.389968991, 3.81380796, -0.875211716, 4.77595222e-06, 0.48374024, 3.00466309e-05, 0.999999464, 4.44892248e-05, -0.483737022, 5.08428275e-05, -0.875205874)
- Part67.BottomSurface = Enum.SurfaceType.Smooth
- Part67.TopSurface = Enum.SurfaceType.Smooth
- Part67.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part67.Position = Vector3.new(-14.9280138, 0.389968991, 3.81380796)
- Part67.Orientation = Vector3.new(0, 151.070007, 0)
- Part67.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- SpecialMesh68.Parent = Part67
- SpecialMesh68.Scale = Vector3.new(0.0584240407, 0.281358331, 0.0922485515)
- SpecialMesh68.MeshType = Enum.MeshType.Sphere
- SpecialMesh68.Scale = Vector3.new(0.0584240407, 0.281358331, 0.0922485515)
- Part69.Name = "Concrete"
- Part69.Parent = Model62
- Part69.BrickColor = BrickColor.new("Dark stone grey")
- Part69.Rotation = Vector3.new(-23, 90, 0)
- Part69.Anchored = true
- Part69.CanCollide = false
- Part69.FormFactor = Enum.FormFactor.Custom
- Part69.Size = Vector3.new(0.400000006, 0.389999986, 0.200000003)
- Part69.CFrame = CFrame.new(-14.7302017, 0.50691402, 3.72005796, 3.04878158e-05, -7.19708332e-05, 1, -0.390682876, 0.920525372, 7.81620474e-05, -0.920525432, -0.390682817, -5.29616955e-08)
- Part69.BottomSurface = Enum.SurfaceType.Smooth
- Part69.TopSurface = Enum.SurfaceType.Smooth
- Part69.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part69.Position = Vector3.new(-14.7302017, 0.50691402, 3.72005796)
- Part69.Orientation = Vector3.new(0, 90, -23)
- Part69.Color = Color3.new(0.388235, 0.372549, 0.384314)
- SpecialMesh70.Parent = Part69
- SpecialMesh70.Scale = Vector3.new(0.611011207, 0.790721893, 1)
- SpecialMesh70.MeshType = Enum.MeshType.Sphere
- SpecialMesh70.Scale = Vector3.new(0.611011207, 0.790721893, 1)
- Part71.Name = "Concrete"
- Part71.Parent = Model62
- Part71.BrickColor = BrickColor.new("Dark stone grey")
- Part71.Rotation = Vector3.new(25, 90, 0)
- Part71.Anchored = true
- Part71.CanCollide = false
- Part71.FormFactor = Enum.FormFactor.Custom
- Part71.Size = Vector3.new(0.400000006, 0.389999986, 0.200000003)
- Part71.CFrame = CFrame.new(-14.7302017, 0.506892979, 4.07004213, -3.30850598e-05, -7.08144435e-05, 1, 0.422674, 0.906281829, 7.81620402e-05, -0.906281829, 0.422674, -5.29689714e-08)
- Part71.BottomSurface = Enum.SurfaceType.Smooth
- Part71.TopSurface = Enum.SurfaceType.Smooth
- Part71.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part71.Position = Vector3.new(-14.7302017, 0.506892979, 4.07004213)
- Part71.Orientation = Vector3.new(0, 90, 25)
- Part71.Color = Color3.new(0.388235, 0.372549, 0.384314)
- SpecialMesh72.Parent = Part71
- SpecialMesh72.Scale = Vector3.new(0.611011207, 0.790721893, 1)
- SpecialMesh72.MeshType = Enum.MeshType.Sphere
- SpecialMesh72.Scale = Vector3.new(0.611011207, 0.790721893, 1)
- Part73.Name = "Grass"
- Part73.Parent = Model62
- Part73.BrickColor = BrickColor.new("Dark stone grey")
- Part73.Rotation = Vector3.new(0, 0, 90)
- Part73.Anchored = true
- Part73.FormFactor = Enum.FormFactor.Custom
- Part73.Size = Vector3.new(0.531939209, 1.50956094, 0.654143095)
- Part73.CFrame = CFrame.new(-14.2748461, 0.26593399, 3.89006305, 4.04744469e-06, -1, -8.23752925e-05, 1, 4.05159426e-06, -5.0374023e-05, 5.03743577e-05, -8.23750888e-05, 1)
- Part73.BottomSurface = Enum.SurfaceType.Smooth
- Part73.TopSurface = Enum.SurfaceType.Smooth
- Part73.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part73.Position = Vector3.new(-14.2748461, 0.26593399, 3.89006305)
- Part73.Orientation = Vector3.new(0, 0, 90)
- Part73.Color = Color3.new(0.388235, 0.372549, 0.384314)
- SpecialMesh74.Parent = Part73
- SpecialMesh74.MeshType = Enum.MeshType.Sphere
- Part75.Name = "Grass"
- Part75.Parent = Model62
- Part75.BrickColor = BrickColor.new("Carnation pink")
- Part75.Rotation = Vector3.new(-180, 0.0199999996, 90)
- Part75.Anchored = true
- Part75.FormFactor = Enum.FormFactor.Custom
- Part75.Size = Vector3.new(0.208462656, 1.21512735, 0.200000003)
- Part75.CFrame = CFrame.new(-13.4473782, 0.31419, 3.90643907, -6.30594104e-06, -1.00000429, 0.000419713033, -1.00000584, 5.53119025e-06, 5.574854e-05, -5.15961328e-05, -0.000419695483, -0.99999392)
- Part75.BottomSurface = Enum.SurfaceType.Smooth
- Part75.TopSurface = Enum.SurfaceType.Smooth
- Part75.Color = Color3.new(1, 0.596078, 0.862745)
- Part75.Position = Vector3.new(-13.4473782, 0.31419, 3.90643907)
- Part75.Orientation = Vector3.new(0, 179.979996, -90)
- Part75.Color = Color3.new(1, 0.596078, 0.862745)
- SpecialMesh76.Parent = Part75
- SpecialMesh76.MeshType = Enum.MeshType.Sphere
- Model77.Parent = mas
- Part78.Parent = Model77
- Part78.Material = Enum.Material.Wood
- Part78.BrickColor = BrickColor.new("Dark orange")
- Part78.Rotation = Vector3.new(180, 0, -180)
- Part78.Anchored = true
- Part78.Size = Vector3.new(8, 4.80000019, 1)
- Part78.CFrame = CFrame.new(-14, 2.40001011, 5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1)
- Part78.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part78.Position = Vector3.new(-14, 2.40001011, 5.5)
- Part78.Orientation = Vector3.new(0, -180, 0)
- Part78.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part79.Parent = Model77
- Part79.Material = Enum.Material.Wood
- Part79.BrickColor = BrickColor.new("Dark orange")
- Part79.Rotation = Vector3.new(180, 0, -180)
- Part79.Anchored = true
- Part79.Size = Vector3.new(1, 4.80000019, 1)
- Part79.CFrame = CFrame.new(-10.5, 2.40001011, 4.5, -1, 0, -0, -0, 1, -0, -0, 0, -1)
- Part79.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part79.Position = Vector3.new(-10.5, 2.40001011, 4.5)
- Part79.Orientation = Vector3.new(0, -180, 0)
- Part79.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part80.Parent = Model77
- Part80.Material = Enum.Material.Wood
- Part80.BrickColor = BrickColor.new("Dark orange")
- Part80.Rotation = Vector3.new(180, 0, -180)
- Part80.Anchored = true
- Part80.Size = Vector3.new(1, 4.80000019, 1)
- Part80.CFrame = CFrame.new(-10.5, 2.40001011, -0.5, -1, 0, -0, -0, 1, -0, -0, 0, -1)
- Part80.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part80.Position = Vector3.new(-10.5, 2.40001011, -0.5)
- Part80.Orientation = Vector3.new(0, -180, 0)
- Part80.Color = Color3.new(0.627451, 0.372549, 0.207843)
- WedgePart81.Parent = Model77
- WedgePart81.Material = Enum.Material.Wood
- WedgePart81.BrickColor = BrickColor.new("Bright red")
- WedgePart81.Rotation = Vector3.new(180, 0, 180)
- WedgePart81.Anchored = true
- WedgePart81.Size = Vector3.new(8, 2.4000001, 4)
- WedgePart81.CFrame = CFrame.new(-14, 6.00001431, 4, -0.999999881, -1.03162006e-06, -1.48975801e-08, -1.04582989e-06, 1, -2.27373675e-13, -1.49002908e-08, 6.23988399e-08, -0.999999881)
- WedgePart81.Color = Color3.new(0.768627, 0.156863, 0.109804)
- WedgePart81.Position = Vector3.new(-14, 6.00001431, 4)
- WedgePart81.Orientation = Vector3.new(0, -180, 0)
- WedgePart81.Color = Color3.new(0.768627, 0.156863, 0.109804)
- Part82.Parent = Model77
- Part82.Material = Enum.Material.Wood
- Part82.BrickColor = BrickColor.new("Dark orange")
- Part82.Rotation = Vector3.new(0, -90, 0)
- Part82.Anchored = true
- Part82.Size = Vector3.new(6, 4.80000019, 1)
- Part82.CFrame = CFrame.new(-17.5, 2.40001011, 2, 0, 0, -1, 0, 1, -0, 1, 0, -0)
- Part82.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part82.Position = Vector3.new(-17.5, 2.40001011, 2)
- Part82.Orientation = Vector3.new(0, -90, 0)
- Part82.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part83.Parent = Model77
- Part83.Material = Enum.Material.Wood
- Part83.BrickColor = BrickColor.new("Dark orange")
- Part83.Rotation = Vector3.new(180, 0, -180)
- Part83.Anchored = true
- Part83.Size = Vector3.new(8, 4.80000019, 1)
- Part83.CFrame = CFrame.new(-14, 2.40001011, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1)
- Part83.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part83.Position = Vector3.new(-14, 2.40001011, -1.5)
- Part83.Orientation = Vector3.new(0, -180, 0)
- Part83.Color = Color3.new(0.627451, 0.372549, 0.207843)
- WedgePart84.Parent = Model77
- WedgePart84.Material = Enum.Material.Wood
- WedgePart84.BrickColor = BrickColor.new("Bright red")
- WedgePart84.Anchored = true
- WedgePart84.Size = Vector3.new(8, 2.4000001, 4)
- WedgePart84.CFrame = CFrame.new(-14, 6.00000858, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- WedgePart84.Color = Color3.new(0.768627, 0.156863, 0.109804)
- WedgePart84.Position = Vector3.new(-14, 6.00000858, 0)
- WedgePart84.Color = Color3.new(0.768627, 0.156863, 0.109804)
- Model85.Name = "Mom"
- Model85.Parent = mas
- BodyColors86.Parent = Model85
- BodyColors86.HeadColor = BrickColor.new("Light orange")
- BodyColors86.LeftArmColor = BrickColor.new("Light orange")
- BodyColors86.LeftLegColor = BrickColor.new("Light orange")
- BodyColors86.RightArmColor = BrickColor.new("Light orange")
- BodyColors86.RightLegColor = BrickColor.new("Light orange")
- BodyColors86.TorsoColor = BrickColor.new("Light orange")
- Pants87.Name = "Pants"
- Pants87.Parent = Model85
- Pants87.PantsTemplate = "http://www.roblox.com/asset/?id=13568836"
- Shirt88.Name = "Shirt"
- Shirt88.Parent = Model85
- Shirt88.ShirtTemplate = "http://www.roblox.com/asset/?id=43660300"
- Hat89.Name = "GoldenHair"
- Hat89.Parent = Model85
- Hat89.AttachmentPos = Vector3.new(0, 0.800000012, 0)
- Part90.Name = "Handle"
- Part90.Parent = Hat89
- Part90.Rotation = Vector3.new(-90, 89.9700012, 90)
- Part90.CanCollide = false
- Part90.FormFactor = Enum.FormFactor.Symmetric
- Part90.Size = Vector3.new(2, 1, 1)
- Part90.CFrame = CFrame.new(10, 4.20002985, 3.5, 0, -3.4521365e-21, 0.999999881, 4.80963077e-21, 1, 3.4521357e-21, -0.999999881, 4.80963117e-21, 0)
- Part90.BottomSurface = Enum.SurfaceType.Smooth
- Part90.TopSurface = Enum.SurfaceType.Smooth
- Part90.Position = Vector3.new(10, 4.20002985, 3.5)
- Part90.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh91.Parent = Part90
- SpecialMesh91.MeshId = "http://www.roblox.com/asset/?id=13070796"
- SpecialMesh91.TextureId = "http://www.roblox.com/asset/?id=13070807"
- SpecialMesh91.MeshType = Enum.MeshType.FileMesh
- Script92.Name = "Health"
- Script92.Parent = Model85
- table.insert(cors,sandbox(Script92,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
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "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))
- Script93.Name = "HealthScript v3.1"
- Script93.Parent = Model85
- table.insert(cors,sandbox(Script93,function()
- local HealthGUI_prototype = script:FindFirstChild("HealthGUI")
- local lastHealth = 100
- local lastHealth2 = 100
- local maxWidth = 0.96
- local humanoid = script.Parent.Humanoid
- if (humanoid == nil) then
- print("ERROR: no humanoid found in 'HealthScript v3.1'")
- end
- function CreateGUI()
- local p = game.Players:GetPlayerFromCharacter(humanoid.Parent)
- HealthGUI_prototype.Parent = p.PlayerGui
- end
- function UpdateGUI(health)
- tray = HealthGUI_prototype.tray
- local width = (health / humanoid.MaxHealth) * maxWidth
- local height = 0.83
- local lastX = tray.bar.Position.X.Scale
- local x = 0.019 + (maxWidth - width)
- local y = 0.1
- tray.bar.Position = UDim2.new(x,0,y, 0)
- tray.bar.Size = UDim2.new(width, 0, height, 0)
- -- If more than 1/4 health, bar = green. Else, bar = red.
- if( (health / humanoid.MaxHealth) > 0.25 ) then
- tray.barRed.Size = UDim2.new(0, 0, 0, 0)
- else
- tray.barRed.Position = tray.bar.Position
- tray.barRed.Size = tray.bar.Size
- tray.bar.Size = UDim2.new(0, 0, 0, 0)
- end
- if ( (lastHealth - health) > (humanoid.MaxHealth / 10) ) then
- lastHealth = health
- if humanoid.Health ~= humanoid.MaxHealth then
- delay(0,function()
- AnimateHurtOverlay()
- end)
- delay(0,function()
- AnimateBars(x, y, lastX, height)
- end)
- end
- else
- lastHealth = health
- end
- end
- function HealthChanged(health)
- UpdateGUI(health)
- if ( (lastHealth2 - health) > (humanoid.MaxHealth / 10) ) then
- lastHealth2 = health
- else
- lastHealth2 = health
- end
- end
- function AnimateBars(x, y, lastX, height)
- tray = HealthGUI_prototype.tray
- local width = math.abs(x - lastX)
- if( x > lastX ) then
- x = lastX
- end
- tray.bar2.Position = UDim2.new(x,0, y, 0)
- tray.bar2.Size = UDim2.new(width, 0, height, 0)
- tray.bar2.BackgroundTransparency = 0
- local GBchannels = 1
- local j = 0.2
- local i_total = 30
- for i=1,i_total do
- -- Increment Values
- if (GBchannels < 0.2) then
- j = -j
- end
- GBchannels = GBchannels + j
- if (i > (i_total - 10)) then
- tray.bar2.BackgroundTransparency = tray.bar2.BackgroundTransparency + 0.1
- end
- tray.bar2.BackgroundColor3 = Color3.new(1, GBchannels, GBchannels)
- wait(0.02)
- end
- end
- function AnimateHurtOverlay()
- -- Start:
- -- overlay.Position = UDim2.new(0, 0, 0, -22)
- -- overlay.Size = UDim2.new(1, 0, 1.15, 30)
- -- Finish:
- -- overlay.Position = UDim2.new(-2, 0, -2, -22)
- -- overlay.Size = UDim2.new(4.5, 0, 4.65, 30)
- overlay = HealthGUI_prototype.hurtOverlay
- overlay.Position = UDim2.new(-2, 0, -2, -22)
- overlay.Size = UDim2.new(4.5, 0, 4.65, 30)
- -- Animate In, fast
- local i_total = 2
- local wiggle_total = 0
- local wiggle_i = 0.02
- for i=1,i_total do
- overlay.Position = UDim2.new( (-2 + (2 * (i/i_total)) + wiggle_total/2), 0, (-2 + (2 * (i/i_total)) + wiggle_total/2), -22 )
- overlay.Size = UDim2.new( (4.5 - (3.5 * (i/i_total)) + wiggle_total), 0, (4.65 - (3.5 * (i/i_total)) + wiggle_total), 30 )
- wait(0.01)
- end
- i_total = 30
- wait(0.03)
- -- Animate Out, slow
- for i=1,i_total do
- if( math.abs(wiggle_total) > (wiggle_i * 3) ) then
- wiggle_i = -wiggle_i
- end
- wiggle_total = wiggle_total + wiggle_i
- overlay.Position = UDim2.new( (0 - (2 * (i/i_total)) + wiggle_total/2), 0, (0 - (2 * (i/i_total)) + wiggle_total/2), -22 )
- overlay.Size = UDim2.new( (1 + (3.5 * (i/i_total)) + wiggle_total), 0, (1.15 + (3.5 * (i/i_total)) + wiggle_total), 30 )
- wait(0.01)
- end
- -- Hide after we're done
- overlay.Position = UDim2.new(10, 0, 0, 0)
- end
- CreateGUI()
- humanoid.HealthChanged:connect(HealthChanged)
- humanoid.Died:connect(function() HealthChanged(0) end)
- end))
- Humanoid94.Parent = Model85
- Humanoid94.RightLeg = Part110
- Humanoid94.LeftLeg = Part108
- Humanoid94.Torso = Part111
- Script95.Name = "RobloxTeam"
- Script95.Parent = Model85
- table.insert(cors,sandbox(Script95,function()
- -- Now with exciting TeamColors HACK!
- 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
- -- TEAM COLORS
- function onTeamChanged(player)
- wait(1)
- local char = player.Character
- if char == nil then return end
- if player.Neutral then
- -- Replacing the current BodyColor object will force a reset
- local old = char:findFirstChild("Body Colors")
- if not old then return end
- old:clone().Parent = char
- old.Parent = nil
- else
- local head = char:findFirstChild("Head")
- local torso = char:findFirstChild("Torso")
- local left_arm = char:findFirstChild("Left Arm")
- local right_arm = char:findFirstChild("Right Arm")
- local left_leg = char:findFirstChild("Left Leg")
- local right_leg = char:findFirstChild("Right Leg")
- if head then head.BrickColor = BrickColor.new(24) end
- if torso then torso.BrickColor = player.TeamColor end
- if left_arm then left_arm.BrickColor = BrickColor.new(26) end
- if right_arm then right_arm.BrickColor = BrickColor.new(26) end
- if left_leg then left_leg.BrickColor = BrickColor.new(26) end
- if right_leg then right_leg.BrickColor = BrickColor.new(26) end
- end
- end
- function onPlayerPropChanged(property, player)
- if property == "Character" then
- onTeamChanged(player)
- end
- if property== "TeamColor" or property == "Neutral" then
- onTeamChanged(player)
- end
- end
- local cPlayer = game.Players:GetPlayerFromCharacter(script.Parent)
- cPlayer.Changed:connect(function(property) onPlayerPropChanged(property, cPlayer) end )
- onTeamChanged(cPlayer)
- end))
- Script96.Name = "Sound"
- Script96.Parent = Model85
- table.insert(cors,sandbox(Script96,function()
- -- 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
- function newSound(id)
- local sound = Instance.new("Sound")
- sound.SoundId = id
- sound.archivable = false
- sound.Parent = script.Parent.Head
- return sound
- end
- -- declarations
- local sDied = newSound("rbxasset://sounds/uuhhh.wav")
- local sFallingDown = newSound("rbxasset://sounds/splat.wav")
- local sFreeFalling = newSound("rbxasset://sounds/swoosh.wav")
- local sGettingUp = newSound("rbxasset://sounds/hit.wav")
- local sJumping = newSound("rbxasset://sounds/button.wav")
- local sRunning = newSound("rbxasset://sounds/bfsl-minifigfoots1.mp3")
- sRunning.Looped = true
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- -- functions
- function onDied()
- sDied:Play()
- end
- function onState(state, sound)
- if state then
- sound:Play()
- else
- sound:Pause()
- end
- end
- function onRunning(speed)
- if speed>0 then
- sRunning:Play()
- else
- sRunning:Pause()
- end
- end
- -- connect up
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(function(state) onState(state, sJumping) end)
- Humanoid.GettingUp:connect(function(state) onState(state, sGettingUp) end)
- Humanoid.FreeFalling:connect(function(state) onState(state, sFreeFalling) end)
- Humanoid.FallingDown:connect(function(state) onState(state, sFallingDown) end)
- end))
- LocalScript97.Name = "Animate"
- LocalScript97.Parent = Model85
- table.insert(cors,sandbox(LocalScript97,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
- -- ANIMATION
- -- declarations
- 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 = waitForChild(Figure, "Humanoid")
- local pose = "Standing"
- local toolAnim = "None"
- local toolAnimTime = 0
- -- functions
- function onRunning(speed)
- if speed>0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- pose = "Jumping"
- end
- function onClimbing()
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- pose = "FreeFall"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- pose = "Seated"
- end
- function onPlatformStanding()
- pose = "PlatformStanding"
- end
- function moveJump()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder:SetDesiredAngle(3.14)
- LeftShoulder:SetDesiredAngle(-3.14)
- RightHip:SetDesiredAngle(0)
- LeftHip:SetDesiredAngle(0)
- end
- -- same as jump for now
- function moveFreeFall()
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightShoulder:SetDesiredAngle(3.14)
- LeftShoulder:SetDesiredAngle(-3.14)
- RightHip:SetDesiredAngle(0)
- LeftHip:SetDesiredAngle(0)
- 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
- 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
- RightShoulder:SetDesiredAngle(1.57)
- return
- end
- if (toolAnim == "Slash") then
- RightShoulder.MaxVelocity = 0.5
- RightShoulder:SetDesiredAngle(0)
- return
- end
- if (toolAnim == "Lunge") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- RightHip.MaxVelocity = 0.5
- LeftHip.MaxVelocity = 0.5
- RightShoulder:SetDesiredAngle(1.57)
- LeftShoulder:SetDesiredAngle(1.0)
- RightHip:SetDesiredAngle(1.57)
- LeftHip:SetDesiredAngle(1.0)
- return
- end
- end
- function move(time)
- local amplitude
- local frequency
- if (pose == "Jumping") then
- moveJump()
- return
- end
- if (pose == "FreeFall") then
- moveFreeFall()
- return
- end
- if (pose == "Seated") then
- moveSit()
- return
- end
- local climbFudge = 0
- if (pose == "Running") then
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- amplitude = 1
- frequency = 9
- elseif (pose == "Climbing") then
- RightShoulder.MaxVelocity = 0.5
- LeftShoulder.MaxVelocity = 0.5
- amplitude = 1
- frequency = 9
- climbFudge = 3.14
- else
- amplitude = 0.1
- frequency = 1
- end
- desiredAngle = amplitude * math.sin(time*frequency)
- RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
- LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
- RightHip:SetDesiredAngle(-desiredAngle)
- LeftHip:SetDesiredAngle(-desiredAngle)
- local tool = getTool()
- if tool then
- animStringValueObject = getToolAnim(tool)
- if animStringValueObject then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- toolAnim = "None"
- 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)
- -- main program
- local runService = game:service("RunService");
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- Part98.Name = "Head"
- Part98.Parent = Model85
- Part98.BrickColor = BrickColor.new("Cool yellow")
- Part98.Rotation = Vector3.new(-90, 89.9700012, 90)
- Part98.FormFactor = Enum.FormFactor.Symmetric
- Part98.Size = Vector3.new(2, 1, 1)
- Part98.CFrame = CFrame.new(10, 4.50003004, 3.5, 0, -3.4521365e-21, 0.999999881, 4.80963077e-21, 1, 3.4521357e-21, -0.999999881, 4.80963117e-21, 0)
- Part98.TopSurface = Enum.SurfaceType.Smooth
- Part98.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part98.Position = Vector3.new(10, 4.50003004, 3.5)
- Part98.Orientation = Vector3.new(0, 90, 0)
- Part98.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Decal99.Name = "face"
- Decal99.Parent = Part98
- Decal99.Texture = "http://www.roblox.com/asset/?id=12451696"
- SpecialMesh100.Parent = Part98
- SpecialMesh100.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh100.Scale = Vector3.new(1.25, 1.25, 1.25)
- Weld101.Name = "HeadWeld"
- Weld101.Parent = Part98
- Weld101.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld101.C1 = CFrame.new(0, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld101.Part0 = Part98
- Weld101.Part1 = Part90
- Weld102.Name = "HeadWeld"
- Weld102.Parent = Part98
- Weld102.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld102.C1 = CFrame.new(0, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld102.Part0 = Part98
- Weld102.Part1 = Part90
- Weld103.Name = "HeadWeld"
- Weld103.Parent = Part98
- Weld103.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld103.C1 = CFrame.new(0, 0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld103.Part0 = Part98
- Weld103.Part1 = Part90
- Dialog104.Parent = Part98
- Dialog104.InitialPrompt = "Hey, hunny!"
- DialogChoice105.Parent = Dialog104
- DialogChoice105.ResponseDialog = "Ok sweetie but-"
- DialogChoice105.UserDialog = "MOM! I said dont call me that in frount of ppl!"
- DialogChoice106.Parent = DialogChoice105
- DialogChoice106.ResponseDialog = "OH! Sorry sweetheart. Oops :O"
- DialogChoice106.UserDialog = "MOOM!!!!!! >:O"
- Part107.Name = "Left Arm"
- Part107.Parent = Model85
- Part107.BrickColor = BrickColor.new("Cool yellow")
- Part107.Rotation = Vector3.new(-90, 89.9700012, 90)
- Part107.CanCollide = false
- Part107.FormFactor = Enum.FormFactor.Symmetric
- Part107.Size = Vector3.new(1, 2, 1)
- Part107.CFrame = CFrame.new(10, 3.00003004, 5, 0, -3.4521365e-21, 0.999999881, 4.80963077e-21, 1, 3.4521357e-21, -0.999999881, 4.80963117e-21, 0)
- Part107.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part107.Position = Vector3.new(10, 3.00003004, 5)
- Part107.Orientation = Vector3.new(0, 90, 0)
- Part107.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part108.Name = "Left Leg"
- Part108.Parent = Model85
- Part108.BrickColor = BrickColor.new("Bright blue")
- Part108.Rotation = Vector3.new(-90, 89.9700012, 90)
- Part108.CanCollide = false
- Part108.FormFactor = Enum.FormFactor.Symmetric
- Part108.Size = Vector3.new(1, 2, 1)
- Part108.CFrame = CFrame.new(10, 1.00003004, 4, 0, -3.4521365e-21, 0.999999881, 4.80963077e-21, 1, 3.4521357e-21, -0.999999881, 4.80963117e-21, 0)
- Part108.BottomSurface = Enum.SurfaceType.Smooth
- Part108.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part108.Position = Vector3.new(10, 1.00003004, 4)
- Part108.Orientation = Vector3.new(0, 90, 0)
- Part108.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part109.Name = "Right Arm"
- Part109.Parent = Model85
- Part109.BrickColor = BrickColor.new("Cool yellow")
- Part109.Rotation = Vector3.new(-90, 89.9700012, 90)
- Part109.CanCollide = false
- Part109.FormFactor = Enum.FormFactor.Symmetric
- Part109.Size = Vector3.new(1, 2, 1)
- Part109.CFrame = CFrame.new(10, 3.00003004, 2.00000024, 0, -3.4521365e-21, 0.999999881, 4.80963077e-21, 1, 3.4521357e-21, -0.999999881, 4.80963117e-21, 0)
- Part109.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part109.Position = Vector3.new(10, 3.00003004, 2.00000024)
- Part109.Orientation = Vector3.new(0, 90, 0)
- Part109.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part110.Name = "Right Leg"
- Part110.Parent = Model85
- Part110.BrickColor = BrickColor.new("Bright blue")
- Part110.Rotation = Vector3.new(-90, 89.9700012, 90)
- Part110.CanCollide = false
- Part110.FormFactor = Enum.FormFactor.Symmetric
- Part110.Size = Vector3.new(1, 2, 1)
- Part110.CFrame = CFrame.new(10, 1.00003004, 3, 0, -3.4521365e-21, 0.999999881, 4.80963077e-21, 1, 3.4521357e-21, -0.999999881, 4.80963117e-21, 0)
- Part110.BottomSurface = Enum.SurfaceType.Smooth
- Part110.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part110.Position = Vector3.new(10, 1.00003004, 3)
- Part110.Orientation = Vector3.new(0, 90, 0)
- Part110.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part111.Name = "Torso"
- Part111.Parent = Model85
- Part111.BrickColor = BrickColor.new("Dark green")
- Part111.Rotation = Vector3.new(-90, 89.9700012, 90)
- Part111.FormFactor = Enum.FormFactor.Symmetric
- Part111.Size = Vector3.new(2, 2, 1)
- Part111.CFrame = CFrame.new(10, 3.00003004, 3.5, 0, -3.4521365e-21, 0.999999881, 4.80963077e-21, 1, 3.4521357e-21, -0.999999881, 4.80963117e-21, 0)
- Part111.LeftSurface = Enum.SurfaceType.Weld
- Part111.RightSurface = Enum.SurfaceType.Weld
- Part111.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part111.Position = Vector3.new(10, 3.00003004, 3.5)
- Part111.Orientation = Vector3.new(0, 90, 0)
- Part111.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Motor6D112.Name = "Right Shoulder"
- Motor6D112.Parent = Part111
- Motor6D112.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor6D112.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor6D112.Part0 = Part111
- Motor6D112.Part1 = Part109
- Motor6D112.DesiredAngle = -0.097306206822395
- Motor6D112.MaxVelocity = 0.15000000596046
- Motor6D113.Name = "Left Shoulder"
- Motor6D113.Parent = Part111
- Motor6D113.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D113.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D113.Part0 = Part111
- Motor6D113.Part1 = Part107
- Motor6D113.DesiredAngle = -0.097306206822395
- Motor6D113.MaxVelocity = 0.15000000596046
- Motor6D114.Name = "Right Hip"
- Motor6D114.Parent = Part111
- Motor6D114.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor6D114.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Motor6D114.Part0 = Part111
- Motor6D114.Part1 = Part110
- Motor6D114.DesiredAngle = 0.097306206822395
- Motor6D114.MaxVelocity = 0.10000000149012
- Motor6D115.Name = "Left Hip"
- Motor6D115.Parent = Part111
- Motor6D115.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D115.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D115.Part0 = Part111
- Motor6D115.Part1 = Part108
- Motor6D115.DesiredAngle = 0.097306206822395
- Motor6D115.MaxVelocity = 0.10000000149012
- Motor6D116.Name = "Neck"
- Motor6D116.Parent = Part111
- Motor6D116.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Motor6D116.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Motor6D116.Part0 = Part111
- Motor6D116.Part1 = Part98
- Motor6D116.MaxVelocity = 0.10000000149012
- Decal117.Name = "roblox"
- Decal117.Parent = Part111
- CharacterMesh118.Name = "Roblox 2.0 Left Arm"
- CharacterMesh118.Parent = Model85
- CharacterMesh118.MeshId = 27111419
- CharacterMesh118.BodyPart = Enum.BodyPart.LeftArm
- CharacterMesh119.Name = "Roblox 2.0 Left Leg"
- CharacterMesh119.Parent = Model85
- CharacterMesh119.MeshId = 27111857
- CharacterMesh119.BodyPart = Enum.BodyPart.LeftLeg
- CharacterMesh120.Name = "Roblox 2.0 Right Arm"
- CharacterMesh120.Parent = Model85
- CharacterMesh120.MeshId = 27111864
- CharacterMesh120.BodyPart = Enum.BodyPart.RightArm
- CharacterMesh121.Name = "Roblox 2.0 Right Leg"
- CharacterMesh121.Parent = Model85
- CharacterMesh121.MeshId = 27111882
- CharacterMesh121.BodyPart = Enum.BodyPart.RightLeg
- CharacterMesh122.Name = "Roblox 2.0 torso"
- CharacterMesh122.Parent = Model85
- CharacterMesh122.MeshId = 27111894
- CharacterMesh122.BodyPart = Enum.BodyPart.Torso
- Model123.Name = "Water Bowl"
- Model123.Parent = mas
- Part124.Parent = Model123
- Part124.Material = Enum.Material.Ice
- Part124.BrickColor = BrickColor.new("Bright blue")
- Part124.Rotation = Vector3.new(90, 89.9700012, -180)
- Part124.Anchored = true
- Part124.Locked = true
- Part124.FormFactor = Enum.FormFactor.Custom
- Part124.Size = Vector3.new(0.466666132, 1.16666639, 1.28333306)
- Part124.CFrame = CFrame.new(-10.6999998, 0.407952011, 7.5, -4.37113847e-08, 0, 0.999999881, -0.99999994, -4.37113847e-08, -4.37113847e-08, 4.37113847e-08, -0.99999994, 1.91068525e-15)
- Part124.BottomSurface = Enum.SurfaceType.Smooth
- Part124.TopSurface = Enum.SurfaceType.Smooth
- Part124.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part124.Position = Vector3.new(-10.6999998, 0.407952011, 7.5)
- Part124.Orientation = Vector3.new(0, 90, -90)
- Part124.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- SpecialMesh125.Parent = Part124
- SpecialMesh125.MeshType = Enum.MeshType.Cylinder
- Part126.Parent = Model123
- Part126.Material = Enum.Material.Wood
- Part126.BrickColor = BrickColor.new("Sand red")
- Part126.Rotation = Vector3.new(-90, 90, 0)
- Part126.Anchored = true
- Part126.Locked = true
- Part126.FormFactor = Enum.FormFactor.Custom
- Part126.Size = Vector3.new(0.466666132, 1.39999974, 1.51666641)
- Part126.CFrame = CFrame.new(-10.6999998, 0.402117997, 7.5, 0, 0, 1, -1, 0, 0, 0, -1, 0)
- Part126.BottomSurface = Enum.SurfaceType.Smooth
- Part126.TopSurface = Enum.SurfaceType.Smooth
- Part126.Color = Color3.new(0.584314, 0.47451, 0.466667)
- Part126.Position = Vector3.new(-10.6999998, 0.402117997, 7.5)
- Part126.Orientation = Vector3.new(0, 90, -90)
- Part126.Color = Color3.new(0.584314, 0.47451, 0.466667)
- SpecialMesh127.Parent = Part126
- SpecialMesh127.MeshType = Enum.MeshType.Cylinder
- Model128.Name = "Water Bowl"
- Model128.Parent = mas
- Part129.Parent = Model128
- Part129.Material = Enum.Material.Ice
- Part129.BrickColor = BrickColor.new("Bright blue")
- Part129.Rotation = Vector3.new(90, 89.9700012, -180)
- Part129.Anchored = true
- Part129.Locked = true
- Part129.FormFactor = Enum.FormFactor.Custom
- Part129.Size = Vector3.new(0.466666132, 1.16666639, 1.28333306)
- Part129.CFrame = CFrame.new(-11.6999998, 0.407952011, 12.5, -4.37113847e-08, 0, 0.999999881, -0.99999994, -4.37113847e-08, -4.37113847e-08, 4.37113847e-08, -0.99999994, 1.91068525e-15)
- Part129.BottomSurface = Enum.SurfaceType.Smooth
- Part129.TopSurface = Enum.SurfaceType.Smooth
- Part129.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part129.Position = Vector3.new(-11.6999998, 0.407952011, 12.5)
- Part129.Orientation = Vector3.new(0, 90, -90)
- Part129.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- SpecialMesh130.Parent = Part129
- SpecialMesh130.MeshType = Enum.MeshType.Cylinder
- Part131.Parent = Model128
- Part131.Material = Enum.Material.Wood
- Part131.BrickColor = BrickColor.new("Sand red")
- Part131.Rotation = Vector3.new(-90, 90, 0)
- Part131.Anchored = true
- Part131.Locked = true
- Part131.FormFactor = Enum.FormFactor.Custom
- Part131.Size = Vector3.new(0.466666132, 1.39999974, 1.51666641)
- Part131.CFrame = CFrame.new(-11.6999998, 0.402117997, 12.5, 0, 0, 1, -1, 0, 0, 0, -1, 0)
- Part131.BottomSurface = Enum.SurfaceType.Smooth
- Part131.TopSurface = Enum.SurfaceType.Smooth
- Part131.Color = Color3.new(0.584314, 0.47451, 0.466667)
- Part131.Position = Vector3.new(-11.6999998, 0.402117997, 12.5)
- Part131.Orientation = Vector3.new(0, 90, -90)
- Part131.Color = Color3.new(0.584314, 0.47451, 0.466667)
- SpecialMesh132.Parent = Part131
- SpecialMesh132.MeshType = Enum.MeshType.Cylinder
- Model133.Name = "Water Bowl"
- Model133.Parent = mas
- Part134.Parent = Model133
- Part134.Material = Enum.Material.Ice
- Part134.BrickColor = BrickColor.new("Bright blue")
- Part134.Rotation = Vector3.new(90, 89.9700012, -180)
- Part134.Anchored = true
- Part134.Locked = true
- Part134.FormFactor = Enum.FormFactor.Custom
- Part134.Size = Vector3.new(0.466666132, 1.16666639, 1.28333306)
- Part134.CFrame = CFrame.new(-10.6999998, 0.880455017, 10.5, -4.37113847e-08, 0, 0.999999881, -0.99999994, -4.37113847e-08, -4.37113847e-08, 4.37113847e-08, -0.99999994, 1.91068525e-15)
- Part134.BottomSurface = Enum.SurfaceType.Smooth
- Part134.TopSurface = Enum.SurfaceType.Smooth
- Part134.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part134.Position = Vector3.new(-10.6999998, 0.880455017, 10.5)
- Part134.Orientation = Vector3.new(0, 90, -90)
- Part134.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- SpecialMesh135.Parent = Part134
- SpecialMesh135.MeshType = Enum.MeshType.Cylinder
- Part136.Parent = Model133
- Part136.Material = Enum.Material.Wood
- Part136.BrickColor = BrickColor.new("Sand red")
- Part136.Rotation = Vector3.new(-90, 90, 0)
- Part136.Anchored = true
- Part136.Locked = true
- Part136.FormFactor = Enum.FormFactor.Custom
- Part136.Size = Vector3.new(0.466666132, 1.39999974, 1.51666641)
- Part136.CFrame = CFrame.new(-10.6999998, 0.874620974, 10.5, 0, 0, 1, -1, 0, 0, 0, -1, 0)
- Part136.BottomSurface = Enum.SurfaceType.Smooth
- Part136.TopSurface = Enum.SurfaceType.Smooth
- Part136.Color = Color3.new(0.584314, 0.47451, 0.466667)
- Part136.Position = Vector3.new(-10.6999998, 0.874620974, 10.5)
- Part136.Orientation = Vector3.new(0, 90, -90)
- Part136.Color = Color3.new(0.584314, 0.47451, 0.466667)
- SpecialMesh137.Parent = Part136
- SpecialMesh137.MeshType = Enum.MeshType.Cylinder
- 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
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=327309582" -- Type your music ID here
- s.Volume = 1.2 -- this is the Volume
- s.Pitch = 1 -- tis is the pich
- s.Looped = true
- s.archivable = false
- s.Parent = game.Workspace
- wait(0)
- s:play()
Add Comment
Please, Sign In to add comment