#I need help to check with my coding

89 messages · Page 1 of 1 (latest)

solemn dagger
#

I am creating a sliding animation/code, but the sliding animation dosnt work, sometimes you just lean back (for other people) and for you, you just kinda become shorter after the animation is done.

I wonder if there is anything wrong with the code, code is supposed to do the sliding animation i made (dont know if the animation really works tho) for now its only for other people since im making a first person game and i will add that you see the sliding animation later. so i want that other people can see you slide and that you get back up from the slide and you dont just become shorter and sometimes stand in a lean for other people.

#

also if anyone got like tips or a working code they can give me for a first or third person game that would be helpful.

#

i would also like if the sliding showed for everyone and not just the creator of the animation, cause right now it kinda do that too, which is a problem

#

picture to help, you always stand like this, before and after you have done a slide, and after you stand like that but more in the ground

topaz ledge
#

@solemn dagger

#

Is the animation type set to core?

#

Bc it shouldnt be

#

That's often the main problem people have with animations

#

Js forgetting to change the animation type

#

Make sure its not core js set it to the animation type you think would fit it. And also ensure no animations with a higher type is running

solemn dagger
#

im not really an animator, so where do i do this?

#

@topaz ledge

topaz ledge
#

I'm not on my PC so

#

Give me a sec

solemn dagger
#

ok

topaz ledge
#

I'll try and find a picture

#

Press the 3 dots

#

Then It should say set type or sum shit

knotty owl
#

Yo australian guy can i ask you a question about animation

topaz ledge
#

Yea

knotty owl
#

so i have this gun animation where when you equip it the character will aim into the gun but when i run it goes back to the default run animation. how do i create a new gun aimed in while walking animation and change it based on whether the tool is equipped or not?

solemn dagger
#

do i move it to movement?

topaz ledge
#

Yea

knotty owl
#

one sec i will show what i mean

topaz ledge
#

Ok

#

I'm a scripter/builder I don't use the animator a lot

knotty owl
#

do you see how when he starts to run he doesnt aim in anymore, i want to make a custom run/walk animation that keeps him aimed in

topaz ledge
#

Can I see the script and also set your theme to dark

low loomBOT
#

studio** You are now Level 2! **studio

knotty owl
#

its not letting me send

topaz ledge
#

Js checking but what's the animation type?

solemn dagger
#

Australian guy, so i can see the movement good, just gotta change the hip height. but everyone else it dosnt really work. do you have a fix to that?

knotty owl
solemn dagger
#

this is what i see

#

and this is what other people see

#

wrong image

stone salmon
#

it is one with the ground

topaz ledge
#

Ah, make sure to change hip height on the server

solemn dagger
#

that is what other people see

topaz ledge
#

Yes change the hip height and anim on the server

#

Simple remote event

solemn dagger
knotty owl
#

sorri send it like this it wasnt letting me send other way

topaz ledge
topaz ledge
knotty owl
# topaz ledge This is your problem?

the code right now is working as intended but i want to implement the new run while aimed in animation by changing the default anim id but thats the part thats not working

topaz ledge
#

So you need to change the default run

#

Idk I going shopping

#

I'll get to you later

knotty owl
#

ok thanks

solemn dagger
low loomBOT
#

studio** You are now Level 3! **studio

topaz ledge
#

Ok you need a remote event

#

Bc

#

If the script is placed in a starter GUI it's not gonna work

#

Use a remote event

solemn dagger
#

is that to me or hipig?

topaz ledge
#

You

topaz ledge
solemn dagger
topaz ledge
#

Yea but you can't use player input service which I'm assuming your using to trigger the event

solemn dagger
#

so do i place it in ServerScriptService under like gameplay or smth?

#

like where do i put it or do i have to create a whole new thingy

topaz ledge
#

Create a remote event, put it in replicated, put a script into server script storage

#

You should rly watch a video on remote events

solemn dagger
#

ok

solemn dagger
# topaz ledge You should rly watch a video on remote events

I watched a video, i think i understand how it works now. But i dont understand how i do it. So i now think i understand what it does. but im not good enough at coding to figure out how i do it. (i will try do some more research) but if you know of a video that explains it really good or just some tips in common ill gladly take that and try it the next time im coding

#

Or if you just know how you make it look like your sliding from your pov. like in rivals for an example. if you know that ill gladly take that information too. But you have been to great help, thank you.

topaz ledge
#

I have no idea what's rivals

low loomBOT
#

studio** You are now Level 3! **studio

#

Here you go! WIZARD6

topaz ledge
#

Client Script:
Local Event = game.replicatedstorage.*insert event name
Use Event:Fireserver(*insert hipheight to set to)

#

When you want to change the hip height

#

Btw all this is written on my phone so it may not be accurate, but I'm sure your capable of understanding the variables meanings to fix any errors

low loomBOT
topaz ledge
#

Did that work @solemn dagger

solemn dagger
#

not really, it didnt do much

#

we just published the game and tried it and it worked there but not in team test