#Need Help!! Tryn to get tool anims to play when equipped walking/idle and maybe a specific m1 patter
1 messages · Page 1 of 1 (latest)
Use Equipped and Uneqipped events
I cant get it to work when i do that my default player anims will mix in or just not play the tool anims and only the player anims
when i try to fix it they all just are stiff
then override the anims
set priorities
and the look of the naimation is the animations fault
Idk how to do any of that im still new to lua. I already have my anims made i justt want to get them to work butt every script i make wont work
** You are now Level 3! **
I have tried that every tutorial does not work
oh and check if anybody had the same issue on roblox dev forum
so... i cant actually go back and find it i cant ctrl z it.... wtf
why cant i ctrl z
idfk
trie d using :LoadAnimation on the animator?
eh? i would take scripts fro mtutorials and try to edit them to work some would kinda work but bec i dont code from scratch i dont exactly know what everything does per say
personally I save the default ids the player comes with and replace it with tool animation ids untill tool is unequiped
and swap
that too sure
works well
honestly idek what the guys asking for anymore
if u want custom anims to play over the default use :LoadAnimation
If u want to replace them, do so in the Animation script values locally
im so confused
most of my coding knowledge is html and python based im not used to lua so i dont know most of anything
THAT IS WHAT IM DOING lol
yea then start with the basics
not really
it seems basic to me
have you ever worked with multiplayer?
Sorry if this is in the wrong section Hey Devs, I’m a little new to scripting and I just realized that I don’t know the difference from a local script and a server script. I want to know where you can put them and what areas they will work in. Ex can a local script work inside a part in the workspace? Anyway any knowledge that you guys kno...
Okay actually ik that one
ye then learn how to control server and client side
the script difference
localscript is like it says its specific to the client while a regular script is across the server as a whole
that is the jist
dropped all sources^
I will read up on it all thanks
i even put the exact fragment for loadanimation
yes , learn the interractions
ik you can store player saves in a datacenter with scripts right?
datastores
ye
datastoreservice ye
lmfao
no srsly thats the first step to being intermidiate scripter
luau
scripter
oh well i once made a stat system and had it store the saves i did watch a tutorial but i changed most of it
it worked
none of the scripts https://create.roblox.com/docs/animation/using
work @vagrant plover I dont know why
im tryn to use them and when i test it they do nothing
no errors they just dont do anything
it could be because ure using the wrong type of script or you put it in the wrong place
` local Players = game:GetService("Players")
local function onCharacterAdded(character)
-- Get animator on humanoid
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
-- Stop all animation tracks
for _, playingTrack in animator:GetPlayingAnimationTracks() do
playingTrack:Stop(0)
end
local animateScript = character:WaitForChild("Animate")
animateScript.idle.Animation1.AnimationId = "rbxassetid://656117400"
animateScript.idle.Animation2.AnimationId = "rbxassetid://656118341"
animateScript.idle.Animation1.Weight.Value = 5
animateScript.idle.Animation2.Weight.Value = 10
end
local function onPlayerAdded(player)
player.CharacterAppearanceLoaded:Connect(onCharacterAdded)
end
Players.PlayerAdded:Connect(onPlayerAdded) `
serverscriptservice regular script
oh my god is this ai
just replace the starter animation ids with the ones you want 
?
you know where the idle and walking n running animations are located right?
like all the default animations
in the player character
sorta
me using an R6 startercharacter wont make it hardeder to do or complicated right?
when you run the game click on your character name under workspace in the explorer expand it then expand the animator script, you find it there
no
those are the animations you are meant to modify
brb for like 10 mins
you dont modify the script itslf bru
u mdoify the alues inside it
as in
its hildren
descendants
idk how tho
local plr = script.Parent.Parent
local Humanoid = plr:WaitForChild("Humanoid")
the humanoid as an infinite loop for some reason
Infinite yield possible on 'Players.Armin_Ack3rm3n:WaitForChild("Humanoid")'
okay so
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
ye how do i edit it through the script i just gave you
this one
what do i need to do for it to do what u say
** You are now Level 4! **
I thought you said you know the basics
idk how to refrence the animate localscript and or the children
look im the type that u tell me once i can remember for a long time
animation = humanoid.Parent.Animate.idle.Animation1
animation.AnimationId = "your tool animation id"
alr
if you got the script inside the tool directly then you can add this instead:
animation = character.Animate.idle.Animation1
animation.AnimationId = script.Parent.IdleAnimation.Value```
supposing that the tool contains "IdleAnimation" as a string value instance
when i do the starterplayerscript localscript it loads the animation once everytime i stop moving
so is it not looped?
nah
guess thats cuz there are 2 idle animations
just add:
animation2 = character.Animate.idle.Animation2
animation2.AnimationId = script.Parent.IdleAnimation.Value
we're using the same id so no need to add a second idle animation string value
eh its supposed to loop automatically
would i not need an if this loop this?
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
animation = humanoid.Parent.Animate.idle.Animation1
animation.AnimationId = "rbxassetid://116158184727770"
animation2 = character.Animate.idle.Animation2
animation2.AnimationId = "rbxassetid://116158184727770"```
yea idk about this
it works for me
try this one last resort:
animation.Looped = true
animation2.Looped = true
add em
wont work, where do you have the script placed its in serverscriptservice
WAIT I MEAN
StarterPlayerScripts
eh
idk it usually loops for me
also remove the .Looped part it seems like its not a part of the animation instance @crisp creek
have you tried another animation ID ?
alr
tried it now it doesnt even play it
am i just a lost cause... i cant seem to get it to work
im sure im wasting your valuable time no?
nah im chillin
okay thanks btw, even if i cant figure it out you are a huge help
show me the script again
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
animation = humanoid.Parent.Animate.idle.Animation1
animation.AnimationId = "rbxassetid://658832408"
animation2 = character.Animate.idle.Animation2
animation2.AnimationId = "rbxassetid://658832408"```
i have my katana tool that i custom made
and we make it change animation once it is equiped
alright then make sure the model is under the tool instance
how do i do the onEquipped i forgot the specific function
local player = game.Players.LocalPlayer
script.Parent.Equiped:Connect(function()
local character = script.Parent.Parent
animation = character.Animate.idle.Animation1
animation.AnimationId = "rbxassetid://658832408"
animation2 = character.Animate.idle.Animation2
animation2.AnimationId = "rbxassetid://658832408"
end)
use this
in it as a client script
local?
yes local i meant
in which line?
5 and 8
oh nah cause it is defined as a global variable inside of a function
add local to each animation variable
oh my bad
'local animation ....'
'local animation2.....'
yeah i thought so but i assumed u had known smthg i didnt
animation is somehow unvalid let me switch it out
make sure you own the animation
output?
Equiped is not a valid member of tool
LMFAO
** You are now Level 5! **
yea I hate scripting on discord
okay so now if i move with sword in hand sword hand stays still and after moving it is not right but mixes my anim with default
I can inv u to my place if thatt makes it easier for u to help
um sure
user?
djabdou33
i did im armin
friend limit is 1k now anyway
crazy
added
okay gave u edit perms
how does collab work can i see changes live?
btw idk if it gives u access to entire game or justt this placece within the game
how do i know if ur here?
you will see me under the "Players" instance
im in now
do i need to reopen it?
no you dont its already a shared server
well i dont see tht ur here?
i dont see you tho
ye same
oh
click on places in the files
alr
open asset manager
and go to places and then open the one that does not say starter menu or smthg
Untitled RPG Game no menu
the menu is the one with the grass
im on the regular one
alr joining
wait brb
ok
this is stupid it aint opening
can i just do it in the first place
cuz my studio is stupid aparently
nvm it worked now
oh i see you
animation failed to load it seem
ah
you sure you own it?
yes i made it
lemme try a random animation i made
put back the first animation id which you wanted to use
for me it just says failed to load animation
how about you
everytime i see this MouseButton1Click is not a valid member of Plugin "cloud_2205048291" - Server
15:36:06.384 Stack Begin - Studio
15:36:06.384 Script 'cloud_2205048291.LocalScript', Line 1 - Studio
15:36:06.384 Stack End - Studio
15:36:06.385 Weld Constraint Plugin by RyCitrus Loaded - Server
15:36:06.636 MouseButton1Click is not a valid member of Plugin "cloud_2205048291" - Client
15:36:06.637 Stack Begin - Studio
15:36:06.637 Script 'cloud_2205048291.LocalScript', Line 1 - Studio
15:36:06.637 Stack End - Studio
15:36:06.638 Weld Constraint Plugin by RyCitrus Loaded - Client
15:36:20.502 Disconnect from ::ffff:127.0.0.1|53757
wait actually
hold on
yeah its thatt everytime
that must be an error from some plugin you downloaded
eah think it is it doesnt matter
idk
just roblox? no blender?
yup all unions
impressive honestly
😄 didnt take me too long
the sword?
yea
thanks
My game idea is something kinda rouge like obviously it will take time to learn the stuff i need to code but im just really stuck on my animations
i did struggle with animations too
especially that you can only use animations you own
cant test with others
ye
i dont know now , as i cant test your animation it gives an error
and when i use an animation i own it doesnt run cuz im in your game
u can use the idle animation i own
Stack Begin - Studio
15:47:15.843 Script 'cloud_2205048291.LocalScript', Line 1 - Studio
15:47:15.843 Stack End - Studio
Stack Begin - Studio
15:47:16.069 Script 'cloud_2205048291.LocalScript', Line 1 - Studio
15:47:16.069 Stack End - Studio
bro equip the katana

it is hard to explain but its still doing that weird thing
what is it again?