of     1   

eRanged
#228098755Sunday, November 26, 2017 6:44 PM GMT

Is there any way to change default animations mid-game while animations started? I thought it was just as easy as changing the id in the Animate (exmp: Animate -> walk -> WalkAnim) but that doesn't change anything. Did they update it?
iiNemo
#228098885Sunday, November 26, 2017 6:47 PM GMT

delete the current animation script in the player and insert a new one edited with your ids. Fish Are Friends, Not Food
eRanged
#228099142Sunday, November 26, 2017 6:50 PM GMT

do i have to do that everytime i edit want a new id? like for changing animations mid-game
eRanged
#228099304Sunday, November 26, 2017 6:52 PM GMT

wait it started working... brb
eRanged
#228099925Sunday, November 26, 2017 7:00 PM GMT

nvm false alarrrrmmmmm sry :3
eRanged
#228100927Sunday, November 26, 2017 7:14 PM GMT

ok 1 more question, how would i efficiently switch animation because when i change it freezes until i stop and walk again local player = game.Players.LocalPlayer local Character = player.Character or player.CharacterAdded:wait() local Humanoid = Character:WaitForChild("Humanoid") local Animate = Character:WaitForChild("Animate") local WalkAnim = Animate:WaitForChild("walk"):WaitForChild("WalkAnim") local RunAnim = Animate:WaitForChild("run"):WaitForChild("RunAnim") local IdleAnim1 = Animate:WaitForChild("idle"):WaitForChild("Animation1") local IdleAnim2 = Animate:WaitForChild("idle"):WaitForChild("Animation1") local AnimationList = { WalkAnimationId = "[blocked by filter]", SprintAnimationId = "[blocked by filter]", } local function ReplaceAnimation(OldAnim, newAnimId, AnimationName) OldAnim.AnimationId = newAnimId -- print('Changing '.. OldAnim.Name .. ' to ' .. AnimationName) wait(0.1) for _,oldPlayingAnimation in pairs(Humanoid:GetPlayingAnimationTracks()) do print(oldPlayingAnimation.Name) oldPlayingAnimation:Stop() end end game:GetService("RunService").RenderStepped:connect(function() if Character:FindFirstChild("ShiftSpeedBoost") then --if Sprinting if RunAnim.AnimationId ~= AnimationList.SprintAnimationId then ReplaceAnimation(RunAnim, AnimationList.SprintAnimationId, "Sprint") ReplaceAnimation(WalkAnim, AnimationList.SprintAnimationId, "Sprint") end else --If not sprinting if tostring(RunAnim.AnimationId) ~= tostring(AnimationList.WalkAnimationId) then ReplaceAnimation(RunAnim, AnimationList.WalkAnimationId, "DefaultWalk") ReplaceAnimation(WalkAnim, AnimationList.WalkAnimationId, "DefaultWalk") end end end) game:GetService("UserInputService").InputEnded:connect(function(inputObject, gameProcessedEvent) if gameProcessedEvent == true then return end if inputObject.UserInputType == Enum.UserInputType.Keyboard then if inputObject.KeyCode == Enum.KeyCode.One then if Character:FindFirstChild("ShiftSpeedBoost") then Character:FindFirstChild("ShiftSpeedBoost"):Destroy() else local newObj = Instance.new("ObjectValue", Character) newObj.Name = "ShiftSpeedBoost" end end end end)
eRanged
#228101340Sunday, November 26, 2017 7:20 PM GMT

btw this is a local script in startercharacterscripts
eRanged
#228103149Sunday, November 26, 2017 7:45 PM GMT

:^(
iiNemo
#228103551Sunday, November 26, 2017 7:51 PM GMT

I explained to you the quickest and simplest method of doing it.. Fish Are Friends, Not Food
eRanged
#228114376Sunday, November 26, 2017 10:24 PM GMT

still freezes local player = game.Players.LocalPlayer local Character = player.Character or player.CharacterAdded:wait() local AnimateScript = script:WaitForChild("Animate") local AnimationList = { WalkAnimation = "rbxassetid://" .. 12########### SprintAnimation = "rbxassetid://" ..##2########### -###obbyWalkAnim = "rbxassetid://" .. 54##############obbyIdleAnim1 = "rbxassetid://" ..##0##########--##obbyIdleAnim2 = "rbxassetid://" .. 50##########} local function ReplaceAnimation(Animation, AnimationParent, newAnimId, replaceScript) AnimateScript:WaitForChild(AnimationParent.Name):WaitForChild(Animation.Name).AnimationId = newAnimId print('Changing '.. Animation.Name .. ' to ' .. newAnimId) if re#############=##rue then local oldAnim = Character:WaitForChild("Animate") oldAnim:Destroy() local newAnim = AnimateScript:Clone() newAnim.Parent = Character newAnim.Disabled = false print('Script replaced') end end game:GetService("UserInputService").InputEnded:connect(function(inputObject, gameProcessedEvent) if gameProcessedEvent == true then return end if inputObject.UserInputType == Enum.UserInputType.Keyboard then if inputObject.KeyCode == Enum.KeyCode.One then if Character:FindFirstChild("ShiftSpeedBoost") then Character:FindFirstChild("ShiftSpeedBoost"):Destroy() else local newObj = Instance.new("ObjectValue", Character) newObj.Name = "ShiftSpeedBoost" end end end end) while wait(0.5) do if Character:FindFirstChild("Animate") then local oldAnimate = Character:WaitForChild("Animate") local WalkAnim = oldAnimate:WaitForChild("walk"):WaitForChild("WalkAnim") local RunAnim = oldAnimate:WaitForChild("run"):WaitForChild("RunAnim") if Character:FindFirstChild("ShiftSpeedBoost") then --if Sprinting if tostring(RunAnim.AnimationId) ~= tostring(AnimationList.SprintAnimation) then ReplaceAnimation(RunAnim, RunAnim.Parent, AnimationList.SprintAnimation) ReplaceAnimation(WalkAnim, WalkAnim.Parent, AnimationList.SprintAnimation, true) end else --If not sprinting if tostring(RunAnim.AnimationId) ~= tostring(AnimationList.WalkAnimation) then ReplaceAnimation(RunAnim, RunAnim.Parent, AnimationList.WalkAnimation) ReplaceAnimation(WalkAnim, WalkAnim.Parent, AnimationList.WalkAnimation, true) end end end end
eRanged
#228114587Sunday, November 26, 2017 10:28 PM GMT

well its not frozen but it plays idle until i like stop/jump/etc, if i walk while switching it does idle

    of     1