#How to script a swinging rope attached to a part named Grapple

32 messages · Page 1 of 1 (latest)

solemn oracle
#

Get mouse position via ray cast, have a part follow the path of the ray cast/mouse pos, specify that the part does not spawn unless the ray touches the grapple part, then it’s just down to custom physics or tweening.

#

@thick torrent

rigid ridge
#

you could use attachments and ropeconstraints

solemn oracle
#

Well, yeah, you could combine those with raycasting instead of the part.

rigid ridge
#

spawn an attachment and ropeconstraint on the playercharacter's hrp, spawn a part at the player's raycast and have a second attachment there

solemn oracle
#

^^^^

rigid ridge
#

gradually lower the rope's length

#

pulling the player to the attachment

#

?

solemn oracle
#

Would accomplish the same thing.

rigid ridge
#

just try stuff

solemn oracle
#

Then why would you start with something so complicated ?

cinder nymphBOT
#

studio** You are now Level 4! **studio

solemn oracle
#

If the first thing you’re trying to script involves raycasting, you’re starting a ways ahead of where you should be.

rigid ridge
#

start with the basics

solemn oracle
#

Do some tutorials, pick apart free models, look at devforum posts, make small projects and experiment.

rigid ridge
#

change the color of a brick with a script

solemn oracle
#

There’s a really good devforum post that has a little roadmap for you, from the very first things you should learn to expert-level in a more-or-less comprehensive order.

#

I could try and locate that for you if it would be helpful.

rigid ridge
#

then focus on that

solemn oracle
#

Then stick with one before the other.

rigid ridge
#

take your time with it

#

just have fun

solemn oracle
#

Just know that, even with simple building skills, you can still make a game if you know how to script.

rigid ridge
#

if you wanna make your rope swing thing then just take it slow, and be okay if something seems difficult because it's a kind of complicated concept for a beginner scripter

solemn oracle
#

Meanwhile, without scripting skills, you won’t be able to, regardless of how good your building skills are.

#

Unless it’s a showcase or smth along those lines.

rigid ridge
#

you got this milk 🙏

solemn oracle
#

Good luck 💪

#

We all start somewhere, remember to take breaks if you get overwhelmed.