Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Converted using Mokiros's Model to Script plugin
- -- Converted string size: 17502
- local genv={}
- local Scripts = {
- function() --[[
- Author: @spotco
- This script creates sounds which are placed under the character head.
- These sounds are used by the "LocalSound" script.
- To modify this script, copy it to your "StarterPlayer/StarterCharacterScripts" folder keeping the same script name ("Sound").
- The default Sound script loaded for every character will then be replaced with your copy of the script.
- ]]--
- 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 = 5
- sound.MaxDistance = 150
- sound.Volume = 0.65
- return sound
- end
- local head = script.Parent:FindFirstChild("Head")
- if head == nil then
- error("Sound script parent has no child Head.")
- return
- end
- 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;
- function() --[[
- Author: @spotco
- This script runs locally for the player of the given humanoid.
- This script triggers humanoid sound play/pause actions locally.
- The Playing/TimePosition properties of Sound objects bypass FilteringEnabled, so this triggers the sound
- immediately for the player and is replicated to all other players.
- This script is optimized to reduce network traffic through minimizing the amount of property replication.
- ]]--
- --All sounds are referenced by this ID
- local SFX = {
- Died = 0;
- Running = 1;
- Swimming = 2;
- Climbing = 3,
- Jumping = 4;
- GettingUp = 5;
- FreeFalling = 6;
- FallingDown = 7;
- Landing = 8;
- Splash = 9;
- }
- local Humanoid = nil
- local Head = nil
- --SFX ID to Sound object
- local Sounds = {}
- do
- local Figure = script.Parent.Parent
- Head = Figure:WaitForChild("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:WaitForChild("Died")
- Sounds[SFX.Running] = Head:WaitForChild("Running")
- Sounds[SFX.Swimming] = Head:WaitForChild("Swimming")
- Sounds[SFX.Climbing] = Head:WaitForChild("Climbing")
- Sounds[SFX.Jumping] = Head:WaitForChild("Jumping")
- Sounds[SFX.GettingUp] = Head:WaitForChild("GettingUp")
- Sounds[SFX.FreeFalling] = Head:WaitForChild("FreeFalling")
- Sounds[SFX.Landing] = Head:WaitForChild("Landing")
- Sounds[SFX.Splash] = Head:WaitForChild("Splash")
- end
- local Util
- Util = {
- --Define linear relationship between (pt1x,pt2x) and (pt2x,pt2y). Evaluate this at x.
- YForLineGivenXAndTwoPts = function(x,pt1x,pt1y,pt2x,pt2y)
- --(y - y1)/(x - x1) = m
- local m = (pt1y - pt2y) / (pt1x - pt2x)
- --float b = pt1.y - m * pt1.x;
- local b = (pt1y - m * pt1x)
- return m * x + b
- end;
- --Clamps the value of "val" between the "min" and "max"
- Clamp = function(val,min,max)
- return math.min(max,math.max(min,val))
- end;
- --Gets the horizontal (x,z) velocity magnitude of the given part
- HorizontalSpeed = function(Head)
- local hVel = Head.Velocity + Vector3.new(0,-Head.Velocity.Y,0)
- return hVel.magnitude
- end;
- --Gets the vertical (y) velocity magnitude of the given part
- VerticalSpeed = function(Head)
- return math.abs(Head.Velocity.Y)
- end;
- --Setting Playing/TimePosition values directly result in less network traffic than Play/Pause/Resume/Stop
- --If these properties are enabled, use them.
- 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;
- }
- do
- -- List of all active Looped sounds
- local playingLoopedSounds = {}
- -- Last seen Enum.HumanoidStateType
- local activeState = nil
- -- Verify and set that "sound" is in "playingLoopedSounds".
- function setSoundInPlayingLoopedSounds(sound)
- for i=1, #playingLoopedSounds do
- if playingLoopedSounds[i] == sound then
- return
- end
- end
- table.insert(playingLoopedSounds,sound)
- end
- -- Stop all active looped sounds except parameter "except". If "except" is not passed, all looped sounds will be stopped.
- 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
- -- Table of Enum.HumanoidStateType to handling function
- 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
- }
- -- Handle state event fired or OnChange fired
- 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)
- -- required for proper handling of Landed event
- 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)
- --Volume takes 1.1 seconds to go from volume 0 to 1
- 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
- end;
- function() --Before you read anything below, I did not make this--
- --DELETE THIS ONCE DONE READING--
- --To change the distance to of when he sees you go to the distance script--
- --The number will be after it says Dist = then enter the distance you want--
- --Any problems? Tell me by a message at samchas--
- -- Other Accounts--
- --Youtube--
- --Emerald robloxian--
- --Snapchat--
- --jumpingsamchas--
- --also to change to the cloths go to shirt or pants and enter the ID you want--
- --also never touch the green balls or attachments, that will mess up the R15 animation-- end;
- function() function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 20 -- Change the amount to change the damage.
- end
- end
- script.Parent.Touched:connect(onTouched) end;
- function() robo = script.Parent:clone()
- while wait(2.5) do
- if script.Parent.Humanoid.Health<1 then
- robot = robo:clone()
- robot.Parent = script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end end;
- function() local Humanoid = script.Parent.Zombie
- function PwntX_X()
- local tag = Humanoid:findFirstChild("creator")
- if tag ~= nil then
- if tag.Value ~= nil then
- local Leaderstats = tag.Value:findFirstChild("leaderstats")
- if Leaderstats ~= nil then
- Leaderstats.Cash.Value = Leaderstats.Cash.Value + 25
- wait(0.1)
- script:remove()
- end
- end
- end
- end
- Humanoid.Died:connect(PwntX_X) end;
- 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 Humanoid = waitForChild(Figure, "Zombie")
- 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=507766666", weight = 1 },
- { id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
- { id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=507777826", weight = 10 }
- },
- run = {
- { id = "http://www.roblox.com/asset/?id=507767714", weight = 10 }
- },
- swim = {
- { id = "http://www.roblox.com/asset/?id=507784897", weight = 10 }
- },
- swimidle = {
- { id = "http://www.roblox.com/asset/?id=507785072", weight = 10 }
- },
- jump = {
- { id = "http://www.roblox.com/asset/?id=507765000", weight = 10 }
- },
- fall = {
- { id = "http://www.roblox.com/asset/?id=507767968", weight = 10 }
- },
- sit = {
- { id = "http://www.roblox.com/asset/?id=507768133", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
- },
- toolslash = {
- { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
- -- { id = "slash.xml", weight = 10 }
- },
- toollunge = {
- { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
- },
- wave = {
- { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
- },
- point = {
- { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
- },
- dance = {
- { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
- },
- dance2 = {
- { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
- },
- dance3 = {
- { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
- },
- }
- -- 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, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
- math.randomseed(tick())
- 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.31
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.2
- -- 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
- -- print("Keyframe : ".. frameName)
- 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.15, Humanoid)
- setAnimationSpeed(animSpeed)
- end
- end
- -- Preload animations
- function playAnimation(animName, transitionTime, humanoid)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- -- switch animation
- if (anim ~= currentAnimInstance) then
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop(transitionTime)
- currentAnimTrack:Destroy()
- end
- currentAnimSpeed = 1.0
- -- load it to the humanoid; get AnimationTrack
- currentAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- currentAnimTrack:Play(transitionTime)
- currentAnim = animName
- currentAnimInstance = anim
- -- set up keyframe name triggers
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
- end
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- local toolAnimName = ""
- local toolAnimTrack = nil
- local toolAnimInstance = nil
- local currentToolAnimKeyframeHandler = nil
- function toolKeyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- playToolAnimation(toolAnimName, 0.0, Humanoid)
- end
- end
- function playToolAnimation(animName, transitionTime, humanoid)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- if (toolAnimInstance ~= anim) then
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- transitionTime = 0
- end
- -- load it to the humanoid; get AnimationTrack
- toolAnimTrack = humanoid:LoadAnimation(anim)
- -- play the animation
- toolAnimTrack:Play(transitionTime)
- toolAnimName = animName
- toolAnimInstance = anim
- currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
- end
- end
- function stopToolAnimations()
- local oldAnim = toolAnimName
- if (currentToolAnimKeyframeHandler ~= nil) then
- currentToolAnimKeyframeHandler:disconnect()
- end
- toolAnimName = ""
- toolAnimInstance = nil
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- toolAnimTrack = nil
- end
- return oldAnim
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- function onRunning(speed)
- if speed > 0.01 then
- local scale = 15.0
- playAnimation("walk", 0.1, Humanoid)
- setAnimationSpeed(speed / scale)
- pose = "Running"
- else
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- playAnimation("jump", 0.1, Humanoid)
- jumpAnimTime = jumpAnimDuration
- pose = "Jumping"
- end
- function onClimbing(speed)
- local scale = 5.0
- playAnimation("climb", 0.1, Humanoid)
- setAnimationSpeed(speed / scale)
- 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 > 1.00 then
- local scale = 10.0
- playAnimation("swim", 0.4, Humanoid)
- setAnimationSpeed(speed / scale)
- pose = "Swimming"
- else
- playAnimation("swimidle", 0.4, Humanoid)
- pose = "Standing"
- end
- end
- function getTool()
- for _, kid in ipairs(Figure:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- function getToolAnim(tool)
- for _, c in ipairs(tool:GetChildren()) do
- if c.Name == "toolanim" and c.className == "StringValue" then
- return c
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- playToolAnimation("toolnone", toolTransitionTime, Humanoid)
- return
- end
- if (toolAnim == "Slash") then
- playToolAnimation("toolslash", 0, Humanoid)
- return
- end
- if (toolAnim == "Lunge") then
- playToolAnimation("toollunge", 0, Humanoid)
- return
- end
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder:SetDesiredAngle(3.14 /2)
- LeftShoulder:SetDesiredAngle(-3.14 /2)
- RightHip:SetDesiredAngle(3.14 /2)
- LeftHip:SetDesiredAngle(-3.14 /2)
- end
- local lastTick = 0
- function move(time)
- local amplitude = 1
- local frequency = 1
- local deltaTime = time - lastTick
- lastTick = time
- local climbFudge = 0
- local setAngles = false
- if (jumpAnimTime > 0) then
- jumpAnimTime = jumpAnimTime - deltaTime
- end
- if (pose == "FreeFall" and jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- elseif (pose == "Seated") then
- playAnimation("sit", 0.5, Humanoid)
- return
- elseif (pose == "Running") then
- playAnimation("walk", 0.1, Humanoid)
- elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
- stopAllAnimations()
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- -- Tool Animation handling
- 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
- 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)
- -- setup emote chat hook
- script.msg.Changed:connect(function(msg)
- script.msg.Value = ""
- local emote = ""
- if (string.sub(msg, 1, 3) == "/e ") then
- emote = string.sub(msg, 4)
- elseif (string.sub(msg, 1, 7) == "/emote ") then
- emote = string.sub(msg, 8)
- end
- if (pose == "Standing" and emoteNames[emote] ~= nil) then
- playAnimation(emote, 0.1, Humanoid)
- end
- -- print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
- end)
- -- main program
- local runService = game:service("RunService");
- -- print("bottom")
- -- initialize to idle
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent~=nil do
- local _, time = wait(0.1)
- move(time)
- end
- end;
- function() local larm = script.Parent:FindFirstChild("HumanoidRootPart")
- local rarm = script.Parent:FindFirstChild("HumanoidRootPart")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 500
- 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("HumanoidRootPart")
- 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
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(1)
- local target = findNearestTorso(script.Parent.HumanoidRootPart.Position)
- if target ~= nil then
- script.Parent.Zombie:MoveTo(target.Position, target)
- end
- end
- end;
- function() function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 100 -- Change the amount to change the damage.
- end
- end
- script.Parent.Touched:connect(onTouched) end;
- function() --Responsible for regening a player's humanoid's health
- -- declarations
- local Figure = script.Parent
- local Head = Figure:WaitForChild("Head")
- local Humanoid = Figure:WaitForChild("Humanoid")
- local regening = false
- -- regeneration
- function regenHealth()
- if regening then return end
- regening = true
- while Humanoid.Health < Humanoid.MaxHealth do
- local s = wait(1)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
- health = health + newHealthDelta
- Humanoid.Health = math.min(health,Humanoid.MaxHealth)
- end
- end
- if Humanoid.Health > Humanoid.MaxHealth then
- Humanoid.Health = Humanoid.MaxHealth
- end
- regening = false
- end
- Humanoid.HealthChanged:connect(regenHealth)
- end;
- function() function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 100 -- Change the amount to change the damage.
- end
- end
- script.Parent.Touched:connect(onTouched) end;}local ActualScripts = {}
- function s(var)
- local func = table.remove(Scripts,1)
- setfenv(func,setmetatable({script=var,require=fake_require or require,global=genv},{
- __index = getfenv(func),
- }))
- table.insert(ActualScripts,coroutine.wrap(func))
- end
- local Part_Classes = {"Part","WedgePart","CornerWedgePart"}
- local Part_Shapes = {"Brick","Cylinder","Sphere","Torso","Wedge"}
- function DecodeUnion(t)
- local r = function()return table.remove(t,1) end
- local split = function(str,sep)
- local fields = {}
- str:gsub(("([^%s]+)"):format(sep or ','),function(c)fields[#fields+1]=c end)
- return fields
- end
- local m = Instance.new("Folder")
- m.Name = "UnionCache ["..tostring(math.random(1,9999)).."]"
- m.Archivable = false
- m.Parent = game:GetService("ServerStorage")
- local Union,Subtract = {},{}
- repeat
- local isNegate = false
- local class = r()
- if class=='-' then
- isNegate = true
- class = r()
- end
- if class=='n' then
- local d = {}
- local a = r()
- repeat
- table.insert(d,a)
- a = r()
- until a=='p'
- local u = DecodeUnion(d)
- if u then
- table.insert(isNegate and Subtract or Union,u)
- end
- else
- local size,pos,rot = Vector3.new(unpack(split(r()))),Vector3.new(unpack(split(r()))),Vector3.new(unpack(split(r())))
- local part = Instance.new(Part_Classes[tonumber(class)])
- part.Size = size
- part.Position = pos
- part.Orientation = rot
- if r()=="+" then
- local m,ms,of = r(),Vector3.new(unpack(split(r()))),Vector3.new(unpack(split(r())))
- if tonumber(m)==6 then
- part.Shape = Enum.PartType.Cylinder
- elseif tonumber(m)==7 then
- part.Shape = Enum.PartType.Ball
- else
- local mesh = Instance.new(tonumber(m)==8 and "CylinderMesh" or "SpecialMesh")
- if tonumber(m)~=8 then
- mesh.MeshType = Enum.MeshType[Part_Shapes[tonumber(m)]]
- end
- mesh.Scale = ms
- mesh.Offset = of
- mesh.Parent = part
- end
- end
- table.insert(isNegate and Subtract or Union,part)
- end
- until #t<=0
- local first = Union[1]
- first.Parent = m
- if #Union>1 then
- first = first:UnionAsync(Union)
- first.Parent = m
- end
- if #Subtract>0 then
- first = first:SubtractAsync(Subtract)
- first.Parent = m
- end
- first.Parent = nil
- m:Destroy()
- return first
- end
- Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
- local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
- function(t,f)
- for a,b in pairs(t) do
- f(a,b)
- end
- end
- local Types = {
- Color3 = Color3.new,
- Vector3 = Vector3.new,
- Vector2 = Vector2.new,
- UDim = UDim.new,
- UDim2 = UDim2.new,
- CFrame = CFrame.new,
- Rect = Rect.new,
- NumberRange = NumberRange.new,
- BrickColor = BrickColor.new,
- PhysicalProperties = PhysicalProperties.new,
- NumberSequence = function(...)
- local a = {...}
- local t = {}
- repeat
- t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
- until #a==0
- return NumberSequence.new(t)
- end,
- ColorSequence = function(...)
- local a = {...}
- local t = {}
- repeat
- t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
- until #a==0
- return ColorSequence.new(t)
- end,
- number = tonumber,
- boolean = function(a)
- return a=="1"
- end
- }
- split = function(str,sep)
- if not str then return end
- local fields = {}
- local ConcatNext = false
- str:gsub(("([^%s]+)"):format(sep),function(c)
- if ConcatNext == true then
- fields[#fields] = fields[#fields]..sep..c
- ConcatNext = false
- else
- fields[#fields+1] = c
- end
- if c:sub(#c)=="\\" then
- c = fields[#fields]
- fields[#fields] = c:sub(1,#c-1)
- ConcatNext = true
- end
- end)
- return fields
- end
- RemoveAndSplit = function(t)
- return split(table_remove(t,1),comma)
- end
- t = split(str,";")
- props = RemoveAndSplit(t)
- classes = RemoveAndSplit(t)
- values = split(table_remove(t,1),'|')
- ICList = RemoveAndSplit(t)
- InstanceList = {}
- Model = inst"Model"
- CurPar = Model
- table_foreach(t,function(ct,c)
- if c=="n" or c=="p" then
- CurPar = c=="n" and LastIns or CurPar[parnt]
- else
- ct = split(c,"|")
- local class = classes[tonum(table_remove(ct,1))]
- if class=="UnionOperation" then
- LastIns = {UsePartColor="1"}
- else
- LastIns = inst(class)
- if LastIns:IsA"Script" then
- s(LastIns)
- elseif LastIns:IsA("ModuleScript") then
- ms(LastIns)
- end
- end
- local function SetProperty(LastIns,p,str,s)
- s = Types[typeof(LastIns[p])]
- if p=="CustomPhysicalProperties" then
- s = PhysicalProperties.new
- end
- if s then
- LastIns[p] = s(unpack(split(str,comma)))
- else
- LastIns[p] = str
- end
- end
- local UnionData
- table_foreach(ct,function(s,p,a,str)
- a = p:find":"
- p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
- if p=="UnionData" then
- UnionData = split(str," ")
- return
- end
- if class=="UnionOperation" then
- LastIns[p] = str
- return
- end
- SetProperty(LastIns,p,str)
- end)
- if UnionData then
- local LI_Data = LastIns
- LastIns = DecodeUnion(UnionData)
- table_foreach(LI_Data,function(p,str)
- SetProperty(LastIns,p,str)
- end)
- end
- table.insert(InstanceList,LastIns)
- LastIns[parnt] = CurPar
- end
- end)
- table_remove(ICList,1)
- table_foreach(ICList,function(a,b)
- b = split(b,">")
- InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
- end)
- return Model:GetChildren()
- end
- local Objects = Decode('Name,Color,Transparency,Position,Orientation,Size,BottomSurface,TopSurface,Scale,MeshId,MeshType,Rotation,CFrame,Value,C0,C1,Part0,Part1,MaxDistance,EmitterSize,Looped,SoundId,Volume,PrimaryPart,CanCo'
- ..'llide,UnionData,AnimationId,HeadColor3,LeftArmColor3,RightArmColor3,LeftLegColor3,RightLegColor3,TorsoColor3,HipHeight,WalkSpeed;Part,Model,Script,SpecialMesh,Attachment,Vector3Value,Motor6D,MeshPart,'
- ..'Sound,UnionOperation,WeldConstraint,StringValue,Animation,NumberValue,BodyColors,Humanoid,Weld;Part|SirenHead|Sound|LocalSound|READ ME|Head|0.1725,0.396,0.1137|5|-6.1502,7.283,-11.1517|0,90.0299,0|1.5'
- ..'953,1.5953,1.5953|0|http://www.roblox.com/asset?id=419776358|5|FaceCenterAttachment|0,0.0006,0.0061|-0.0001,-0.0001,-0.0001|0,0.0006,0.0061,1,0,-0.0001,-0.0001,1,0,0,-0.0001,1|NeckRigAttachment|-0.000'
- ..'1,-0.9024,0.0061|-0.0001,-0.9024,0.0061,1,0,0,0,1,0,0,0,1|FaceFrontAttachment|0,0,-0.9467|0,0,-0.9467,1,0,-0.0001,-0.0001,1,0,0,-0.0001,1|HatAttachment|0,0.9558,0.0061|0,0.9558,0.0061,1,0,-0.0001,-0.0'
- ..'001,1,0,0,-0.0001,1|NeckAttachment|-0.0001,-0.9214,0.0061|-0.0001,-0.9214,0.0061,1,0,-0.0001,-0.0001,1,0,0,-0.0001,1|Damage Script|OriginalSize|1,1,1|HairAttachment|Neck|0.0005,1.2859,-0.0249,1,0,0,0,'
- ..'1,0,0,0,1|Siren Head|-6.1388,22.0578,-11.4353|0,90,0|16.0038,44.0447,7.2164|480|15|1|rbxassetid://4456877894|10|rbxassetid://3147560777|4|Teeth|Teeth2|0.9725,0.9725,0.9725|0|1 0.0963,0.1376,0.1513 -8.'
- ..'7819,40.6699,-8.8676 0,-141,0 = 1 0.0963,0.3164,0.2889 -9.4217,40.8144,-10.0129 0,-161,0 = 1 0.0963,0.1376,0.1376 -9.2709,40.6699,-9.6429 0,-156,0 = 1 0.0963,0.1376,0.1513 -9.4217,40.6699,-10.0129 0,-'
- ..'161,0 = 1 0.0963,0.1376,0.1513 -9.1513,40.6699,-9.4152 0,-151,0 = 1 0.0963,0.1376,0.1376 -9.397,40.6699,-9.9414 0,-161,0 = 1 0.0963,0.1376,0.1376 -8.9357,40.6699,-9.071 0,-146,0 = 1 0.0963,0.1376,0.15'
- ..'13 -8.3213,40.6699,-8.3816 0,-131,0 = 1 0.0963,0.3164,0.2889 -8.7819,40.8144,-8.8676 0,-141,0 = 1 0.0963,0.1376,0.1513 -8.978,40.6699,-9.1337 0,-146,0 = 1 0.0963,0.3164,0.2889 -9.3017,40.8144,-9.7121 '
- ..'0,-156,0 = 1 0.0963,0.1376,0.1376 -8.2642,40.6699,-8.3319 0,-131,0 = 1 0.0963,0.3164,0.2889 -8.3213,40.8144,-8.3816 0,-131,0 = 1 0.0963,0.3164,0.2889 -8.5553,40.8144,-8.6055 0,-136,0 = 1 0.0963,0.1376'
- ..',0.1376 -9.0203,40.6699,-9.1965 0,-146,0 = 1 0.0963,0.1376,0.1513 -8.5553,40.6699,-8.6055 0,-136,0 = 1 0.0963,0.1376,0.1376 -8.3784,40.6699,-8.4312 0,-131,0 = 1 0.0963,0.1376,0.1376 -9.188,40.6699,-9.'
- ..'4814 0,-151,0 = 1 0.0963,0.1376,0.1376 -8.5028,40.6699,-8.5511 0,-136,0 = 1 0.0963,0.1376,0.1376 -9.1146,40.6699,-9.349 0,-151,0 = 1 0.0963,0.1376,0.1376 -8.6079,40.6699,-8.6599 0,-136,0 = 1 0.0963,0.'
- ..'1376,0.1376 -9.3325,40.6699,-9.7812 0,-156,0 = 1 0.0963,0.3164,0.2889 -9.1513,40.8144,-9.4152 0,-151,0 = 1 0.0963,0.1376,0.1376 -9.4463,40.6699,-10.0845 0,-161,0 = 1 0.0963,0.1376,0.1376 -8.8296,40.66'
- ..'99,-8.9264 0,-141,0 = 1 0.0963,0.1376,0.1513 -9.3017,40.6699,-9.7121 0,-156,0 = 1 0.0963,0.3164,0.2889 -8.978,40.8144,-9.1337 0,-146,0 = 1 0.0963,0.1376,0.1376 -8.7343,40.6699,-8.8088 0,-141,0 =|Teeth'
- ..'1|1 0.0963,0.1376,0.1376 -9.4463,40.1745,-10.0845 0,19,180 = 1 0.0963,0.1376,0.1513 -8.7742,40.1745,-8.8562 0,39,180 = 1 0.0963,0.1376,0.1376 -8.8219,40.1745,-8.915 0,39,180 = 1 0.0963,0.1376,0.1513 -'
- ..'9.4217,40.1745,-10.0129 0,19,180 = 1 0.0963,0.1376,0.1376 -8.6079,40.1745,-8.6599 0,44,180 = 1 0.0963,0.3164,0.2889 -8.7742,40.0301,-8.8562 0,39,180 = 1 0.0963,0.1376,0.1513 -8.5553,40.1745,-8.6055 0,'
- ..'44,180 = 1 0.0963,0.1376,0.1513 -8.3213,40.1745,-8.3816 0,49,180 = 1 0.0963,0.1376,0.1513 -9.3017,40.1745,-9.7121 0,24,180 = 1 0.0963,0.1376,0.1376 -9.3325,40.1745,-9.7812 0,24,180 = 1 0.0963,0.3164,0'
- ..'.2889 -8.9703,40.0301,-9.1223 0,34,180 = 1 0.0963,0.1376,0.1376 -9.2709,40.1745,-9.6429 0,24,180 = 1 0.0963,0.3164,0.2889 -9.1436,40.0301,-9.4038 0,29,180 = 1 0.0963,0.1376,0.1376 -9.397,40.1745,-9.94'
- ..'14 0,19,180 = 1 0.0963,0.3164,0.2889 -8.3213,40.0301,-8.3816 0,49,180 = 1 0.0963,0.1376,0.1376 -8.2642,40.1745,-8.3319 0,49,180 = 1 0.0963,0.3164,0.2889 -9.3017,40.0301,-9.7121 0,24,180 = 1 0.0963,0.1'
- ..'376,0.1376 -9.1069,40.1745,-9.3376 0,29,180 = 1 0.0963,0.1376,0.1376 -8.5028,40.1745,-8.551 0,44,180 = 1 0.0963,0.1376,0.1513 -9.1436,40.1745,-9.4038 0,29,180 = 1 0.0963,0.3164,0.2889 -8.5553,40.0301,'
- ..'-8.6055 0,44,180 = 1 0.0963,0.1376,0.1513 -8.9703,40.1745,-9.1223 0,34,180 = 1 0.0963,0.1376,0.1376 -8.928,40.1745,-9.0595 0,34,180 = 1 0.0963,0.1376,0.1376 -8.7266,40.1745,-8.7974 0,39,180 = 1 0.0963'
- ..',0.3164,0.2889 -9.4217,40.0301,-10.0129 0,19,180 = 1 0.0963,0.1376,0.1376 -8.3784,40.1745,-8.4312 0,49,180 = 1 0.0963,0.1376,0.1376 -9.1803,40.1745,-9.47 0,29,180 = 1 0.0963,0.1376,0.1376 -9.0126,40.1'
- ..'745,-9.185 0,34,180 =|1 0.0963,0.1376,0.1513 -4.1894,42.5668,-15.765 0,71,0 = 1 0.0963,0.3164,0.2889 -3.0399,42.7113,-15.1327 0,51,0 = 1 0.0963,0.1376,0.1376 -3.3638,42.5668,-15.3666 0,56,0 = 1 0.0963'
- ..',0.1376,0.1513 -3.0399,42.5668,-15.1327 0,51,0 = 1 0.0963,0.1376,0.1513 -3.586,42.5668,-15.4964 0,61,0 = 1 0.0963,0.1376,0.1376 -3.0987,42.5668,-15.1804 0,51,0 = 1 0.0963,0.1376,0.1376 -3.9512,42.5668'
- ..',-15.674 0,66,0 = 1 0.0963,0.1376,0.1513 -4.8376,42.5668,-15.9331 0,81,0 = 1 0.0963,0.3164,0.2889 -4.1894,42.7113,-15.765 0,71,0 = 1 0.0963,0.1376,0.1513 -3.8821,42.5668,-15.6433 0,66,0 = 1 0.0963,0.3'
- ..'164,0.2889 -3.3011,42.7113,-15.3243 0,56,0 = 1 0.0963,0.1376,0.1376 -4.9123,42.5668,-15.9449 0,81,0 = 1 0.0963,0.3164,0.2889 -4.8376,42.7113,-15.9331 0,81,0 = 1 0.0963,0.3164,0.2889 -4.5204,42.7113,-1'
- ..'5.8672 0,76,0 = 1 0.0963,0.1376,0.1376 -3.8129,42.5668,-15.6125 0,66,0 = 1 0.0963,0.1376,0.1513 -4.5204,42.5668,-15.8672 0,76,0 = 1 0.0963,0.1376,0.1376 -4.7628,42.5668,-15.9213 0,81,0 = 1 0.0963,0.13'
- ..'76,0.1376 -3.5198,42.5668,-15.4597 0,61,0 = 1 0.0963,0.1376,0.1376 -4.5939,42.5668,-15.8855 0,76,0 = 1 0.0963,0.1376,0.1376 -3.6522,42.5668,-15.5331 0,61,0 = 1 0.0963,0.1376,0.1376 -4.447,42.5668,-15.'
- ..'8489 0,76,0 = 1 0.0963,0.1376,0.1376 -3.2383,42.5668,-15.282 0,56,0 = 1 0.0963,0.3164,0.2889 -3.586,42.7113,-15.4964 0,61,0 = 1 0.0963,0.1376,0.1376 -2.9811,42.5668,-15.0851 0,51,0 = 1 0.0963,0.1376,0'
- ..'.1376 -4.1178,42.5668,-15.7404 0,71,0 = 1 0.0963,0.1376,0.1513 -3.3011,42.5668,-15.3243 0,56,0 = 1 0.0963,0.3164,0.2889 -3.8821,42.7113,-15.6433 0,66,0 = 1 0.0963,0.1376,0.1376 -4.2609,42.5668,-15.789'
- ..'7 0,71,0 =|1 0.0963,0.1376,0.1376 -2.9811,42.0714,-15.0852 0,-129,180 = 1 0.0963,0.1376,0.1513 -4.202,42.0714,-15.7707 0,-109,180 = 1 0.0963,0.1376,0.1376 -4.1304,42.0714,-15.746 0,-109,180 = 1 0.0963'
- ..',0.1376,0.1513 -3.0399,42.0714,-15.1328 0,-129,180 = 1 0.0963,0.1376,0.1376 -4.447,42.0714,-15.849 0,-104,180 = 1 0.0963,0.3164,0.2889 -4.202,41.9269,-15.7707 0,-109,180 = 1 0.0963,0.1376,0.1513 -4.52'
- ..'04,42.0714,-15.8673 0,-104,180 = 1 0.0963,0.1376,0.1513 -4.8376,42.0714,-15.9331 0,-99,180 = 1 0.0963,0.1376,0.1513 -3.3011,42.0714,-15.3244 0,-124,180 = 1 0.0963,0.1376,0.1376 -3.2383,42.0714,-15.282'
- ..' 0,-124,180 = 1 0.0963,0.3164,0.2889 -3.8947,41.9269,-15.6489 0,-114,180 = 1 0.0963,0.1376,0.1376 -3.3638,42.0714,-15.3667 0,-124,180 = 1 0.0963,0.3164,0.2889 -3.5986,41.9269,-15.502 0,-119,180 = 1 0.'
- ..'0963,0.1376,0.1376 -3.0987,42.0714,-15.1804 0,-129,180 = 1 0.0963,0.3164,0.2889 -4.8376,41.9269,-15.9331 0,-99,180 = 1 0.0963,0.1376,0.1376 -4.9123,42.0714,-15.945 0,-99,180 = 1 0.0963,0.3164,0.2889 -'
- ..'3.3011,41.9269,-15.3244 0,-124,180 = 1 0.0963,0.1376,0.1376 -3.6648,42.0714,-15.5387 0,-119,180 = 1 0.0963,0.1376,0.1376 -4.5939,42.0714,-15.8856 0,-104,180 = 1 0.0963,0.1376,0.1513 -3.5986,42.0714,-1'
- ..'5.502 0,-119,180 = 1 0.0963,0.3164,0.2889 -4.5204,41.9269,-15.8673 0,-104,180 = 1 0.0963,0.1376,0.1513 -3.8947,42.0714,-15.6489 0,-114,180 = 1 0.0963,0.1376,0.1376 -3.9638,42.0714,-15.6797 0,-114,180 '
- ..'= 1 0.0963,0.1376,0.1376 -4.2735,42.0714,-15.7953 0,-109,180 = 1 0.0963,0.3164,0.2889 -3.0399,41.9269,-15.1328 0,-129,180 = 1 0.0963,0.1376,0.1376 -4.7628,42.0714,-15.9213 0,-99,180 = 1 0.0963,0.1376,'
- ..'0.1376 -3.5324,42.0714,-15.4653 0,-119,180 = 1 0.0963,0.1376,0.1376 -3.8255,42.0714,-15.6181 0,-114,180 =|Respawn|MoneyScript|LeftFoot|0.4117,0.2509,0.1568|-6.1196,0.2675,-10.3608|1.5963,0.5351,1.5957'
- ..'|LeftAnkleRigAttachment|-0.0144,0.0517,0.0002|-0.0144,0.0517,0.0002,1,0,0,0,1,0,0,0,1|1.0006,0.3354,1.0002|LeftAnkle|-0.0062,-1.133,0.0004,1,0,0,0,1,0,0,0,1|Animate|msg|climb|ClimbAnim|http://www.robl'
- ..'ox.com/asset/?id=507765644|fall|FallAnim|http://www.roblox.com/asset/?id=507767968|idle|Animation1|http://www.roblox.com/asset/?id=507766388|Weight|9|Animation2|http://www.roblox.com/asset/?id=5077666'
- ..'66|jump|JumpAnim|http://www.roblox.com/asset/?id=507765000|run|RunAnim|http://www.roblox.com/asset/?id=5077677142|sit|SitAnim|http://www.roblox.com/asset/?id=507768133|swim|Swim|http://www.roblox.com/'
- ..'asset/?id=507784897|swimidle|SwimIdle|http://www.roblox.com/asset/?id=481825862|toolnone|ToolNoneAnim|http://www.roblox.com/asset/?id=507768375|walk|http://www.roblox.com/asset/?id=507777826|HumanoidR'
- ..'ootPart|0.8862,0.8627,0.7372|-6.1442,3.7106,-11.1517|3.1907,3.1907,1.5953|RootRigAttachment|2,2,1|0.4156,0.2235,0.0352|UpperTorso|-6.1193,5.0947,-11.1512|3.1912,2.5541,1.5962|WaistRigAttachment|0.0005'
- ..',-0.7395,-0.0249|0.0005,-0.7395,-0.0249,1,0,0,0,1,0,0,0,1|0.0005,1.2859,-0.0249|LeftShoulderRigAttachment|-1.9936,0.8876,-0.0249|-1.9936,0.8876,-0.0249,1,0,0,0,1,0,0,0,1|RightShoulderRigAttachment|1.9'
- ..'947,0.8879,-0.0249|1.9947,0.8879,-0.0249,1,0,0,0,1,0,0,0,1|RightCollarAttachment|1.5959,1.2831,-0.0249|1.5959,1.2831,-0.0249,1,0,0,0,1,0,0,0,1|BodyBackAttachment|0.0005,-0.3575,0.8346|0.0005,-0.3575,0'
- ..'.8346,1,0,0,0,1,0,0,0,1|BodyFrontAttachment|0.0005,-0.3575,-0.7956|0.0005,-0.3575,-0.7956,1,0,0,0,1,0,0,0,1|2.0002,1.6009,1.0005|LeftCollarAttachment|-1.5949,1.2831,-0.0249|-1.5949,1.2831,-0.0249,1,0,'
- ..'0,0,1,0,0,0,1|Waist|0.0004,0.8569,-0.0228,1,0,0,0,1,0,0,0,1|Zombie|1.35|Distance|RightUpperLeg|-6.121,2.3366,-11.951|1.5958,2.4509,1.5968|RightHipRigAttachment|0.0061,0.7736,0.0007|0.0061,0.7736,0.000'
- ..'7,1,0,0,0,1,0,0,0,1|RightKneeRigAttachment|0.0061,-0.423,0.0006|0.0061,-0.423,0.0006,1,0,0,0,1,0,0,0,1|1.0002,1.5362,1.0009|RightHip|0.8057,-0.3881,0.0016,1,0,0,0,1,0,0,0,1|RightUpperArm|-6.1302,5.253'
- ..'8,-13.5414|1.5958,2.2264,1.5957|-0.3955,0.7288,-0.0151|-0.3955,0.7288,-0.0151,1,0,0,0,1,0,0,0,1|RightElbowRigAttachment|0.0034,-0.4199,-0.0151|0.0034,-0.4199,-0.0151,1,0,0,0,1,0,0,0,1|RightShoulderAtt'
- ..'achment|0.0193,1.1323,-0.0151|0.0193,1.1323,-0.0151,1,0,0,0,1,0,0,0,1|1.0002,1.3955,1.0002|RightShoulder|RightLowerLeg|-6.1206,1.4522,-11.951|1.5958,2.3765,1.5959|0.0061,0.4614,0.0002|0.0061,0.4614,0.'
- ..'0002,1,0,0,0,1,0,0,0,1|RightAnkleRigAttachment|0.0061,-1.1339,0.0004|0.0061,-1.1339,0.0004,1,0,0,0,1,0,0,0,1|1.0002,1.4896,1.0003|RightKnee|RightLowerArm|-6.1295,4.6378,-13.5414|1.5958,2.0192,1.5957|R'
- ..'ightWristRigAttachment|0.0034,-1.0882,-0.0158|0.0034,-1.0882,-0.0158,1,0,0,0,1,0,0,0,1|0.0034,0.1961,-0.0158|0.0034,0.1961,-0.0158,1,0,0,0,1,0,0,0,1|1.0002,1.2656,1.0002|RightElbow|RightHand|-6.1207,3'
- ..'.457,-13.5435|1.5942,0.5348,1.5958|0.0013,0.0927,-0.0247|0.0013,0.0927,-0.0247,1,0,0,0,1,0,0,0,1|RightGripAttachment|0.0173,-0.2691,-0.0247|-90,-0,0|-90,-0,-0|0.0173,-0.2691,-0.0247,1,0,-0,0,0,1,0,-1,'
- ..'0|0.9992,0.3352,1.0002|RightWrist|RightFoot|-6.1204,0.2675,-11.9428|0.0143,0.0508,0.0002|0.0143,0.0508,0.0002,1,0,0,0,1,0,0,0,1|RightAnkle|Health|LowerTorso|-6.1215,3.4984,-11.1513|3.191,0.6382,1.5957'
- ..'|0.0004,0.2122,-0.0228|0.0004,0.2122,-0.0228,1,0,0,0,1,0,0,0,1|0.0004,0.8569,-0.0228|LeftHipRigAttachment|-0.805,-0.3878,0.0019|-0.805,-0.3878,0.0019,1,0,0,0,1,0,0,0,1|0.8057,-0.3881,0.0016|WaistFront'
- ..'Attachment|0.0004,-0.1067,-0.7998|0.0004,-0.1067,-0.7998,1,0,0,0,1,0,0,0,1|WaistCenterAttachment|0.0004,-0.1067,-0.0228|0.0004,-0.1067,-0.0228,1,0,0,0,1,0,0,0,1|WaistBackAttachment|0.0004,-0.1067,0.78'
- ..'31|0.0004,-0.1067,0.7831,1,0,0,0,1,0,0,0,1|2.0001,0.4,1.0002|Root|LeftUpperLeg|-6.1202,2.3366,-10.3525|-0.0062,0.7739,0.001|-0.0062,0.7739,0.001,1,0,0,0,1,0,0,0,1|LeftKneeRigAttachment|-0.0062,-0.422,'
- ..'0.0009|-0.0062,-0.422,0.0009,1,0,0,0,1,0,0,0,1|LeftHip|LeftUpperArm|-6.1279,5.2538,-8.762|0.3956,0.7286,-0.0151|0.3956,0.7286,-0.0151,1,0,0,0,1,0,0,0,1|LeftElbowRigAttachment|-0.0027,-0.4199,-0.0151|-'
- ..'0.0027,-0.4199,-0.0151,1,0,0,0,1,0,0,0,1|LeftShoulderAttachment|-0.0193,1.1323,-0.0151|-0.0193,1.1323,-0.0151,1,0,0,0,1,0,0,0,1|LeftShoulder|BTWeld|-2.6733,-16.8041,0.0108,0.9999,0,0.0004,0,1,-0.0001,'
- ..'-0.0005,0,0.9999|-4.7794,-0.0001,0,1,0,0,0,1,0,0,0,1|-4.7815,1.7967,-0.0096,1,0,0,0,1,0,0,0,1|-3.189,2.9171,-0.0086,1,0,0,0,1,0,0,0,1|-3.1808,4.9862,-0.0093,1,0,0,0,1,0,0,0,1|-2.3897,-2.0293,0.0212,1,'
- ..'0,0,0,1,0,0,0,1|-1.5988,4.9862,-0.0093,1,0,0,0,1,0,0,0,1|0.002,1.7968,-0.0096,1,0,0,0,1,0,0,0,1|-1.5905,3.8015,-0.0091,1,0,0,0,1,0,0,0,1|-2.3897,1.5431,0.015,1,0,0,0,1,0,0,0,1|0,0.6159,-0.0008,1,0,0,0'
- ..',1,0,0,0,1|-3.189,3.8015,-0.0091,1,0,0,0,1,0,0,0,1|-2.3892,0.159,-0.0098,1,0,0,0,1,0,0,0,1|-1.5905,2.9171,-0.0086,1,0,0,0,1,0,0,0,1|-2.3893,1.7553,-0.0077,1,0,0,0,1,0,0,0,1|-4.7794,0.6159,-0.0008,1,0,'
- ..'0,0,1,0,0,0,1|LeftLowerLeg|-6.1198,1.4522,-10.3525|-0.0062,0.4624,0.0004|-0.0062,0.4624,0.0004,1,0,0,0,1,0,0,0,1|-0.0062,-1.133,0.0004|LeftKnee|LeftLowerArm|-6.1272,4.6378,-8.762|-0.0027,0.1961,-0.015'
- ..'8|-0.0027,0.1961,-0.0158,1,0,0,0,1,0,0,0,1|LeftWristRigAttachment|-0.0027,-1.0885,-0.0158|-0.0027,-1.0885,-0.0158,1,0,0,0,1,0,0,0,1|LeftElbow|LeftHand|-6.1184,3.457,-8.76|-0.0007,0.0923,-0.0247|-0.000'
- ..'7,0.0923,-0.0247,1,0,0,0,1,0,0,0,1|LeftGripAttachment|-0.0173,-0.2691,-0.0247|-0.0173,-0.2691,-0.0247,1,0,-0,0,0,1,0,-1,0|LeftWrist;0,15>17>64,15>18>5,19>24>22,21>17>20,21>18>16,23>17>22,23>18>16,24>2'
- ..'4>27,26>17>25,26>18>16,28>17>27,28>18>16,34>17>146,34>18>31,74>17>109,74>18>64,81>17>109,81>18>77,87>17>64,87>18>82,92>17>77,92>18>88,98>17>82,98>18>93,103>17>93,103>18>99,107>17>88,107>18>104,118>17>'
- ..'60,118>18>109,123>17>109,123>18>119,129>17>64,129>18>124,130>17>124,130>18>16,131>17>124,131>18>82,132>17>124,132>18>99,133>17>124,133>18>77,134>17>124,134>18>104,135>17>124,135>18>5,136>17>124,136>18'
- ..'>31,137>17>124,137>18>157,138>17>124,138>18>146,139>17>124,139>18>60,140>17>124,140>18>151,141>17>124,141>18>88,142>17>124,142>18>64,143>17>124,143>18>119,144>17>124,144>18>109,145>17>124,145>18>93,15'
- ..'0>17>119,150>18>146,156>17>124,156>18>151,161>17>151,161>18>157;2|1:2;n;3|1:3;n;3|1:4;p;3|1:5;1|1:6|2:7|3:8|4:9|5:10|6:11|7:12|8:12|2:7|2:7;n;4|9:11|10:13|11:14;5|1:15|4:16|5:17|12:17|13:18;5|1:19|4:2'
- ..'0|13:21;5|1:22|4:23|5:17|12:17|13:24;5|1:25|4:26|5:17|12:17|13:27;5|1:28|4:29|5:17|12:17|13:30;3|1:31;6|1:32|14:33;5|1:34|4:26|5:17|12:17|13:27;7|1:35|15:36|16:21;p;8|1:37|4:38|5:39|6:40;n;9|19:41|20:'
- ..'42|21:43|19:41|22:44|23:45;9|19:41|20:42|21:43|19:41|22:46|23:47;2|1:48;n;10|1:49|2:50|25:51|2:50|2:50|26:52;n;11;p;10|1:53|2:50|25:51|2:50|2:50|26:54;n;11;p;p;2|1:48;n;10|1:49|2:50|25:51|2:50|2:50|26'
- ..':55;n;11;p;10|1:53|2:50|25:51|2:50|2:50|26:56;n;11;p;p;p;3|1:57;3|1:58;8|1:59|2:60|3:8|4:61|5:10|6:62|25:51|2:60|2:60;n;5|1:63|4:64|13:65;6|1:32|14:66;7|1:67|15:68|16:65;p;3|1:69;n;12|1:70;12|1:71;n;1'
- ..'3|1:72|27:73;p;12|1:74;n;13|1:75|27:76;p;12|1:77;n;13|1:78|27:79;n;14|1:80|14:81;p;13|1:82|27:83;n;14|1:80|14:43;p;p;12|1:84;n;13|1:85|27:86;p;12|1:87;n;13|1:88|27:89;p;12|1:90;n;13|1:91|27:92;p;12|1:'
- ..'93;n;13|1:94|27:95;p;12|1:96;n;13|1:97|27:98;p;12|1:99;n;13|1:100|27:101;p;12|1:102;n;13|1:88|27:103;p;p;1|1:104|2:105|3:8|4:106|5:10|6:107|25:51|2:105|2:105;n;5|1:108;6|1:32|14:109;p;15|28:7|29:7|30:'
- ..'7|31:60|32:110|33:110;8|1:111|2:110|3:8|4:112|5:10|6:113|2:110|2:110;n;5|1:114|4:115|13:116;5|1:19|4:117|13:36;5|1:118|4:119|13:120;5|1:121|4:122|13:123;5|1:124|4:125|13:126;5|1:127|4:128|13:129;5|1:1'
- ..'30|4:131|13:132;6|1:32|14:133;5|1:134|4:135|13:136;7|1:137|15:138|16:116;p;16|1:139|34:140|35:42;n;p;3|1:141;8|1:142|2:110|3:8|4:143|5:10|6:144|25:51|2:110|2:110;n;5|1:145|4:146|13:147;5|1:148|4:149|1'
- ..'3:150;6|1:32|14:151;7|1:152|15:153|16:147;p;8|1:154|2:7|3:8|4:155|5:10|6:156|25:51|2:7|2:7;n;5|1:121|4:157|13:158;5|1:159|4:160|13:161;5|1:162|4:163|13:164;6|1:32|14:165;7|1:166|15:123|16:158;p;8|1:16'
- ..'7|2:110|3:8|4:168|5:10|6:169|25:51|2:110|2:110;n;5|1:148|4:170|13:171;5|1:172|4:173|13:174;6|1:32|14:175;7|1:176|15:150|16:171;p;8|1:177|2:7|3:8|4:178|5:10|6:179|25:51|2:7|2:7;n;5|1:180|4:181|13:182;5'
- ..'|1:159|4:183|13:184;3|1:31;6|1:32|14:185;7|1:186|15:161|16:184;p;8|1:187|2:7|3:8|4:188|5:10|6:189|25:51|2:7|2:7;n;5|1:180|4:190|13:191;5|1:192|4:193|5:194|12:195|13:196;6|1:32|14:197;7|1:198|15:182|16'
- ..':191;p;8|1:199|2:110|3:8|4:200|5:10|6:62|25:51|2:110|2:110;n;5|1:172|4:201|13:202;6|1:32|14:66;7|1:203|15:174|16:202;p;3|1:204;8|1:205|2:110|3:8|4:206|5:10|6:207|2:110|2:110;n;5|1:108|4:208|13:209;5|1'
- ..':114|4:210|13:138;5|1:211|4:212|13:213;5|1:145|4:214|13:153;5|1:215|4:216|13:217;5|1:218|4:219|13:220;5|1:221|4:222|13:223;6|1:32|14:224;7|1:225|16:209;p;8|1:226|2:60|3:8|4:227|5:10|6:144|25:51|2:60|2'
- ..':60;n;5|1:211|4:228|13:229;5|1:230|4:231|13:232;6|1:32|14:151;7|1:233|15:213|16:229;p;8|1:234|2:7|3:8|4:235|5:10|6:156|25:51|2:7|2:7;n;5|1:118|4:236|13:237;5|1:238|4:239|13:240;5|1:241|4:242|13:243;6|'
- ..'1:32|14:165;7|1:244|15:120|16:237;17|1:245|16:246;17|1:245|16:247;17|1:245|16:248;17|1:245|16:249;17|1:245|16:250;17|1:245|16:251;17|1:245|16:252;17|1:245|16:253;17|1:245|16:254;17|1:245|16:255;17|1:2'
- ..'45|16:256;17|1:245|16:257;17|1:245|16:258;17|1:245|16:259;17|1:245|16:260;17|1:245|16:261;p;8|1:262|2:60|3:8|4:263|5:10|6:169|25:51|2:60|2:60;n;5|1:230|4:264|13:265;5|1:63|4:266|13:68;6|1:32|14:175;7|'
- ..'1:267|15:232|16:265;p;8|1:268|2:7|3:8|4:269|5:10|6:179|25:51|2:7|2:7;n;5|1:238|4:270|13:271;5|1:272|4:273|13:274;3|1:31;6|1:32|14:185;7|1:275|15:240|16:271;p;8|1:276|2:7|3:8|4:277|5:10|6:189|25:51|2:7'
- ..'|2:7;n;5|1:272|4:278|13:279;5|1:280|4:281|5:194|12:195|13:282;6|1:32|14:197;7|1:283|15:274|16:279;p;p;')
- for _,Object in pairs(Objects) do
- Object.Parent = script and script.Parent==workspace and script or workspace
- end
- for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement