Hello! How do I get rid of the Animte Local script your player gets when you join the game? I want to know, so I can change that script and add my own lines on to what it already has. If anyone can help it will be so helpful.
You can literally add a script into startercharacterscripts called “Animate” and it will auto-replace the animate script.
Oh, I did that and it got rid of mine and replaced theres.
I think it has to have the same children inside as well? I am not sure. You could always rename your script something different then just have your script destroy the other animate script.
If you run a play test and copy the default Animate script, paste it into startercharacterscripts, then readjust your code it should work fine. Thats what I did.
Thank you so much! You helped something I been trying to do for weeks now.
Okay, so it worked yea… but now the arms that are being shown in first person, are getting stuck in the ground and the animate is reseting again when you test it in roblox itself. Any fix?
Do you have any other ideas I could try?
You have two options, you can place a local script name ‘Animate’ inside the ‘StarterCharacterScripts’ folder and it will override the default ‘Animate’ script whenever a player’s character is added/loaded etc.
Alternatively, you can use the following server script which will destroy the ‘Animate’ script.
local Game = game
local Players = Game:GetService("Players")
local function OnCharacterAdded(Character)
local Animate = Character:FindFirstChild("Animate") or Character:WaitForChild("Animate", 10)
if not Animate then return end
Animate:Destroy()
end
local function OnPlayerAdded(Player)
Player.CharacterAdded:Connect(OnCharacterAdded)
end
Players.PlayerAdded:Connect(OnPlayerAdded)
Where do I paste this script? local or normal? And where in the workspace do I put it?