How do I do this?

Correct?
image
it still does not work

looks good to me and the Spring name also needs to match and the springs attachment1 need to link to the attachment

1 Like

Yes everything is done
image

What do you mean the spring name also needs to match?

if you look in my code you can see what i have called the spring it needs to match or waitforchild will wait and never find it

1 Like

Oh that makes sense since the “WaitForchild” would be rying to find it forever that’s why is says “infinite yield” okay thanks
but there’s a problem it still gives error when i fix it?

i cant help if i don’t know what the error is

1 Like

Oh sorry my bad

so have you found a solution?-

hey change waitforchild to findfirstchild or just make sure the springparts actually in replicated storage
because roblox studio only yields it because it either cannot find the springpart or it needs to be changed to findfirstchild, hope this helped

1 Like


This just caused a new error

if that didnt work then make sure the part is actually in replicated storage when its played

1 Like

image

Well then it seems im stuck, lol.

1 Like

Oh well thanks for the help anyway i appreciate it

I’ve been stuck for a long time

This is what it should be like
Swing.rbxl (40.4 KB)

1 Like

thank you soo much this works but how would i make it go out the left right hand? by using keycodes e&q? and how would i stablilize it?
i very much appreciate your efforts but can’t i just use the one in the post i linked?

inside the spring script you can position of the attachment to be where ever you want the spring to come from

inside the target script you can change mousebutton to work with keys E and Q

you can use AlignOrientation to stabilise the character

you can use any post link you like

1 Like

I know how to do the first two but i don’t not what allignorientatition is can you please tell me how to do it?