How would I make a slingshot pull back depending on where mouse is?

I’m testing some slingshot stuff, and I wanted to see how would I be able to replicate this:

https://gyazo.com/fe0ce930ea41515e5acb647c18bcf369

I’m not really good with math or anything, but I want to do something like that basically. But I don’t know really where to start. Help would be appreciated

2 Likes

Hi, Help still needed badly ;(

spring example.rbxl (57.1 KB)

I don’t know how well this uploading a place thing will go but here is a very rough draft of what you are trying to do

Ok so you open this place and you will see very few things ill try to explain em all

  1. objects in workspace self explanatory
  2. replicated storage event. communication between server and client explained later
  3. starter character script.
    this script tells the server (thu the event) to give me (the client) network ownership of the part we need to slingshot and then it gives the part a velocity based on mouse position.
  4. server script. this just gives ownership to the client

I think beyond that you can expand on that. you can change how to springs react with the spring constantans under the slingshot part and incorporate this however you want. The rest is up to you

Oh wow thank you so much for taking the time to make a demo, I will definitely work with this. (Sorry for the late reply I was playing the bagpipes)

1 Like