Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created with PenguinAnonymous's compiler
- --PenguinAnonymous is not responsible for damages caused to your game
- --This plugin does not remove things
- --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
- --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
- --Thank you for using my plugin and enjoy :)
- --It is free to use
- --If you use this plugin to create your own, please give me credit
- --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
- --Errors: Attachment,MeshPart,Accessory,Camera,Animator,Status
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Model")
- o2 = Instance.new("Part")
- o4 = Instance.new("Vector3Value")
- o5 = Instance.new("Vector3Value")
- o7 = Instance.new("Vector3Value")
- o9 = Instance.new("Vector3Value")
- o11 = Instance.new("Vector3Value")
- o13 = Instance.new("Vector3Value")
- o15 = Instance.new("Vector3Value")
- o17 = Instance.new("Vector3Value")
- o19 = Instance.new("Vector3Value")
- o21 = Instance.new("Vector3Value")
- o23 = Instance.new("Vector3Value")
- o25 = Instance.new("Vector3Value")
- o27 = Instance.new("Part")
- o28 = Instance.new("SpecialMesh")
- o30 = Instance.new("Vector3Value")
- o33 = Instance.new("Vector3Value")
- o35 = Instance.new("Vector3Value")
- o37 = Instance.new("Vector3Value")
- o38 = Instance.new("Humanoid")
- o41 = Instance.new("Part")
- o42 = Instance.new("SpecialMesh")
- o43 = Instance.new("Vector3Value")
- o44 = Instance.new("Decal")
- o45 = Instance.new("Vector3Value")
- o46 = Instance.new("Weld")
- o47 = Instance.new("Shirt")
- o48 = Instance.new("Pants")
- o50 = Instance.new("Vector3Value")
- o51 = Instance.new("BodyColors")
- o52 = Instance.new("Script")
- o1.Name = ""
- o1.Parent = mas
- o1.PrimaryPart = o2
- o2.Name = "HumanoidRootPart"
- o2.Parent = o1
- o2.BrickColor = BrickColor.new("Fossil")
- o2.Transparency = 1
- o2.Position = Vector3.new(-16.0358047, 2.84820652, 26.2238865)
- o2.Rotation = Vector3.new(0, -1.08000004, 0)
- o2.Size = Vector3.new(2, 2, 1)
- o2.CFrame = CFrame.new(-16.0358047, 2.84820652, 26.2238865, 0.999822617, 0, -0.0188379921, 0, 1, 0, 0.0188379921, 0, 0.999822617)
- o2.Color = Color3.new(0.623529, 0.631373, 0.67451)
- o2.Position = Vector3.new(-16.0358047, 2.84820652, 26.2238865)
- o4.Name = "OriginalPosition"
- o4.Parent = mas
- o5.Name = "OriginalSize"
- o5.Parent = o2
- o5.Value = Vector3.new(2, 2, 1)
- o7.Name = "OriginalSize"
- o7.Parent = mas
- o7.Value = Vector3.new(0.827857256, 0.925159276, 0.877025366)
- o9.Name = "OriginalSize"
- o9.Parent = mas
- o9.Value = Vector3.new(0.675612688, 1.12489867, 0.826949)
- o11.Name = "OriginalSize"
- o11.Parent = mas
- o11.Value = Vector3.new(0.678933918, 1.34023988, 0.83825773)
- o13.Name = "OriginalSize"
- o13.Parent = mas
- o13.Value = Vector3.new(0.827857256, 0.925159216, 0.877025485)
- o15.Name = "OriginalSize"
- o15.Parent = mas
- o15.Value = Vector3.new(0.675612688, 1.12489867, 0.826949239)
- o17.Name = "OriginalSize"
- o17.Parent = mas
- o17.Value = Vector3.new(0.775964022, 0.955060005, 0.760477781)
- o19.Name = "OriginalSize"
- o19.Parent = mas
- o19.Value = Vector3.new(0.775964022, 0.955060005, 0.760477781)
- o21.Name = "OriginalSize"
- o21.Parent = mas
- o21.Value = Vector3.new(0.678933978, 1.34023976, 0.838257849)
- o23.Name = "OriginalSize"
- o23.Parent = mas
- o23.Value = Vector3.new(0.804975927, 0.456319749, 1.21525145)
- o25.Name = "OriginalSize"
- o25.Parent = mas
- o25.Value = Vector3.new(0.722899318, 0.919740558, 0.897220731)
- o27.Name = "Handle"
- o27.Parent = mas
- o27.Position = Vector3.new(-16.0358047, 4.79820633, 26.2238884)
- o27.Rotation = Vector3.new(0, -1.08000004, 0)
- o27.CanCollide = false
- o27.FormFactor = Enum.FormFactor.Custom
- o27.Size = Vector3.new(1.3400265, 1.34999824, 0.779999673)
- o27.CFrame = CFrame.new(-16.0358047, 4.79820633, 26.2238884, 0.999822617, 0, -0.0188379921, 0, 1, 0, 0.0188379921, 0, 0.999822617)
- o27.BottomSurface = Enum.SurfaceType.Smooth
- o27.TopSurface = Enum.SurfaceType.Smooth
- o27.Position = Vector3.new(-16.0358047, 4.79820633, 26.2238884)
- o28.Parent = o27
- o28.MeshId = "http://www.roblox.com/asset/?id=188004660 "
- o28.TextureId = "http://www.roblox.com/asset/?id=451217406"
- o28.MeshType = Enum.MeshType.FileMesh
- o30.Name = "OriginalSize"
- o30.Parent = o27
- o30.Value = Vector3.new(1.3400265, 1.34999824, 0.779999673)
- o33.Name = "OriginalSize"
- o33.Parent = mas
- o33.Value = Vector3.new(0.804975271, 0.456319809, 1.21525121)
- o35.Name = "OriginalSize"
- o35.Parent = mas
- o35.Value = Vector3.new(0.722899377, 0.919740558, 0.897220731)
- o37.Name = "OriginalSize"
- o37.Parent = mas
- o37.Value = Vector3.new(2.03200006, 1.86928844, 1.12989664)
- o38.Parent = o1
- o38.RightLeg = mas
- o38.LeftLeg = mas
- o38.Torso = o2
- o41.Name = "Head"
- o41.Parent = o1
- o41.BrickColor = BrickColor.new("Institutional white")
- o41.Position = Vector3.new(-16.0358047, 4.34820652, 26.2238884)
- o41.Rotation = Vector3.new(0, -1.08000004, 0)
- o41.Size = Vector3.new(2, 1, 1)
- o41.CFrame = CFrame.new(-16.0358047, 4.34820652, 26.2238884, 0.999822617, 0, -0.0188379921, 0, 1, 0, 0.0188379921, 0, 0.999822617)
- o41.BottomSurface = Enum.SurfaceType.Smooth
- o41.TopSurface = Enum.SurfaceType.Smooth
- o41.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o41.Position = Vector3.new(-16.0358047, 4.34820652, 26.2238884)
- o42.Parent = o41
- o42.Scale = Vector3.new(1.25, 1.25, 1.25)
- o43.Name = "OriginalSize"
- o43.Parent = o42
- o43.Value = Vector3.new(1.25, 1.25, 1.25)
- o44.Name = "face"
- o44.Parent = o41
- o44.Texture = "rbxassetid://2779681178"
- o45.Name = "OriginalSize"
- o45.Parent = o41
- o45.Value = Vector3.new(2, 1, 1)
- o46.Name = "AccessoryWeld"
- o46.Parent = o41
- o46.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o46.C1 = CFrame.new(0, 0.0500000007, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o46.Active = true
- o46.Part0 = o41
- o46.Part1 = o27
- o47.Name = "Shirt"
- o47.Parent = o1
- o47.ShirtTemplate = "rbxassetid://1268378286"
- o48.Name = "Pants"
- o48.Parent = o1
- o48.PantsTemplate = "rbxassetid://1261244472"
- o50.Name = "OriginalSize"
- o50.Parent = mas
- o50.Value = Vector3.new(1.68052888, 0.508752942, 1.01567388)
- o51.Parent = o1
- o51.HeadColor = BrickColor.new("Institutional white")
- o51.LeftArmColor = BrickColor.new("Institutional white")
- o51.LeftLegColor = BrickColor.new("Really black")
- o51.RightArmColor = BrickColor.new("Institutional white")
- o51.RightLegColor = BrickColor.new("Really black")
- o51.TorsoColor = BrickColor.new("Institutional white")
- o52.Name = "Animate"
- o52.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(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, "Humanoid")
- 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 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=507765644", 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
- if emoteNames[currentAnim] == nil then
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- playAnimation("jump", 0.1, Humanoid)
- jumpAnimTime = jumpAnimDuration
- pose = "Jumping"
- end
- function onClimbing(speed)
- 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 and (tool.RequiresHandle or tool:FindFirstChild("Handle")) 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
- Game.Players.LocalPlayer.Chatted:connect(function(msg)
- 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,o52)
- end))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
- game:GetService("Lighting").Brightness = 2
- game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
- game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
- game:GetService("Lighting").GlobalShadows = true
- game:GetService("Lighting").OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
- game:GetService("Lighting").Outlines = false
- game:GetService("Lighting").GeographicLatitude = 41.733299255371
- game:GetService("Lighting").TimeOfDay = "14:00:00"
- game:GetService("Lighting").FogColor = Color3.new(0.752941, 0.752941, 0.752941)
- game:GetService("Lighting").FogEnd = 100000
- game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement