I'm working on a script that will replace ROBLOX's default idle animation with a custom one of my own, getting replies telling me to use other peoples scripts and other unhelpful, unexplained, nonworking ''fixes' that had no actual logic or code in them whatsoever.
After growing tired of the useless replies, I decided to change it about, however now I get a string of errors I have not seen before, I am trying everything I can to figure out how to fix these errors as i'm hoping that once they have subsided the script will actually function, the amount of frustration I've had here is beyond stupid at this point.
here is the new code
function onPlayerAdded (player) game.Players.PlayerAdded:connect(function(player) while not player.Character do wait()end local character=player.Character local animateScript=character.Animate animateScript.idle.Animation1.AnimationId="http://www.roblox.com/asset/?id=442289306" end) end local Players = game:GetService("Players") Players.PlayerAdded:connect(onPlayerAdded) for _,player in pairs(Players:GetPlayers()) do onPlayerAdded(player) end
and here is the error message string I get when attempting to run it
22:04:01.413 - httpGet http://assetgame.roblox.com/asset/?id=&serverplaceid=0 failed. Trying again. Error: HTTP 400 (HTTP/1.1 400 Input string was not in a correct format.). Elapsed time: 0.253501
22:04:01.731 - Content failed for http://assetgame.roblox.com/asset/?id=&serverplaceid=0 because HTTP 400 (HTTP/1.1 400 Input string was not in a correct format.)
22:04:01.732 - Content failed because HTTP 400 (HTTP/1.1 400 Input string was not in a correct format.)
22:04:01.732 - Animation failed to load : Workspace.Player1.Animate.idle.Animation1
please, for the love of god, GENUINE answers with YOUR OWN working knowledge of what is wrong with this script, and how it can be made to function ((also, be aware that you will need to change the id of the animation i have provided in the script with one of your own if you want to test this in studio for yourself))
Thankyou and good-day :^)
Okay; first off I don't know what's wrong with your code so I can't fix it..because no errors popped up when I ran it. So I apolgize that I can't fix your code, however
Player = game.Players.LocalPlayer -- "Your" player, as in everyones, if its in the starterpack repeat wait() until Player.Character:findFirstChild("Torso")
Player.Character.Animate.idle.Animation1.AnimationId = "https://www.roblox.com/item.aspx?id=445093031"
this is a simpler way of changing it, If you have questions or if I misunderstood the question then again I'm sorry, I don't think I have to explain this code too much