I'm trying to make a game based off Jojo's bizarre adventure, what happens in jojo is that people have this things called stands that basically are humanoid ghosts that fight with each other. I made it so the player has a stand. And what I want to do is change the animations of the stand (idle, backwards movement, sideways movement, etc) depending on the players move direction. I tried to get the move direction of the player, and send an event depending the direction. Then In a server server I tried to change the animations depending on the events but I had some trouble. Any help would be appreciated.
#Changing a rigs animations depending on a players move direction.
153 messages · Page 1 of 1 (latest)
Ok
So
Basically
You can do like
local uis = game:GetService("UserInputService")
local holdingW = false
local holdingS = false
local holdingD = false
local holdingA = false
local wAnim = instance.new("Animation", stand)
wAnim.AnimationId = "rbxassetid://00000000000"
local animTrackW = stand:WaitForChild("Humanoid"):LoadAnim(wAnim)
--Copy Paste this with all your anims
uis.InputBegan:Connect(function(input, gpe)
if not gpe then
if input.Keycode == Enum.KeyCode.W then
holdingW = true
animTrackW:Play()
--Copy paste this with the other 3 keybinds and change them to elseif statements
end
end
uis.InputEnded:Connect(function(input, gpe)
if not gpe then
if input.Keycode == Enum.KeyCode.W then
holdingW = false
animTrackW:Stop()
end
--Copy paste this with the other 3 keybinds and change them to elseif statements
end
hopefully this helps
@quick rampart
you would obviously have to make these animations first, then make then make them each move in a different direction
yea but this would play the animations depending on the button right? what if the player has the camera looking behind the character and walk forward useing "S"?
then you'd have to change it accordingly
idk how yours is scripted
you have to change it according to yours
well it would be kinda hard to check where the player is looking at and what button does he press and change the animation accordingly. maybe movedirection would be better in this situation?
sure
So instead of saying "Sorry I cant help you" or anything similar, you instead just say "sure" and leave without saying anything? Wow you are a great example for new scripters man, keep up the good work.
By sure i meant sure you can do that
you asked me a question
and i said yes
i assumed that when you asked me that question you would implement it yourself
i found an issue in your script
i told you
what if the player is looking at the character's behind
and he presses "S" to move forward
and then you gave a suggestion
you made a suggestion
and i said yes you can use your own suggestion
why are you blaming me
bro.
how would I use move direction
the way you asked the question was as if you were familliar with the function
to do that
you can't blame me when you said something that made it seem as if oyu were familliar with it
If I knew how it worked I wouldn't be here
after giving that suggestion you didn't ask for anything else
so when you didn't reply i assumed you figured it out
i asked if we could maybe use the move direction
you didn't say we
you said "Maybe movidrection would be better in this situation?"
makes it seem as if you understand the function
then you didn't say anything else
yea I said move direction would be better because Ive seen in devforum people using it to change the players animations with it
and so i thought that it was needed
Yeah then you didn't say anything else
if someone asks a question and i give them an answer and they don't say anything else, wouldn't it only be logical to assume they've figured it out?
i said that move direction would be better to use, i never said "yea actually I figured it out"
usually everyone that helped me would keep up with a convo
you send a script and left
i gaev a script
explained it
saying you would have to change it accordingly
you said
user input service isn't the best
"Can i use movedirection"
for the reason i said
Then you said nothing else
this doesn't even correspond to what i said
i said that move direction would be better in this situation bro, meaning we should try to use that, instead of uis
if someone says nothing after recieving an answer
you never said "We should try to use it"
you said "wouldn't it be better"
Suggesting that one option is better than the other immeidately shows that you have an understanding of how both work, so you are suggesting the other function over the original one
do you understand how the way you phrase your sentences can affect the perception of it?
This is going back to english class
i dont know man, if I want to help someone and they said something like "maybe we should do this?" then I would try to help them to what they said
you didn't say "Maybe we should do this" though
i know what uis is
in fact i'm not even gonna repeat it just read what i said
I know you know
you showed that by saying one function was better than the other
you don't even understand what i'm saying
???
yea because anything would be better than uis. I know that uis has an issue and ive seen in devforum that the other function doesnt have any
since you've just said that i would assume taht your new proposal is better
if i'm in math class right
and my teacher gives me a formula
and i say "What if we just use this formula instead"
the formula i suggested works
but i myself don't know how the formula works
then my teacher says "Yeah you can use that formula"
then at the end of class i say "Why didn't you teach me how to use the formula that I suggested????"
then the teacher says "Because you are the one who suggested it and you didn't ask for anything after that, so i assumed that you knew since you even know the name of the formula"
🤷♂️

Now let me make an example too
But you havent even read my exmaple
Ok then make a response
instead of responding with another example
give a response to my example
whats wrong with it
ill show you with my example
the formula that your teacher gave you
has an issue
let me make my exmaple now
dude
so lets say that im in that same math class
and our teacher gives us a formula
but the formula is wrong and i suggest a new one
the student REALISED the teacher has a bad formula, so he suggested his own formula but doesn't even understand it himself
Ya
and leaves the class?
yeah but
you suggested a different formula
i expect you to change it accoringly
i EVEN SAID HERE
here
i even said change it accoringly
let me tell you something
SCRIPTING is not a formula
scripting is diverse
scripting INCLUDES formulas but it requires you to THINK of ways to make everything work
you didn't say that