Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to hold a key and swing with a rope?

Asked by 5 years ago
Edited 5 years ago

I dont need a full script, just a little help how to start and where to start

I want to make so that when I aim with my mouse and hold any key (E, for example..) I will shoot a rope that will "stick" to the point where my mouse was (GetMouse).. then I could swing / jump off a building and swing. I would use the "Destroy()" to destroy the rope after I release the key (E).. However I have no idea how to start it. I tried, using a grappling hook.. to try and get the idea how to script it but its not what I want.

Could anyone help me by giving maybe link for tutorials or helping me by pointing me on the right path?

I am not trying to get a script, I just have no idea how to start it.

Thank you, Dannie.

1
https://www.robloxdev.com/api-reference/event/UserInputService/InputBegan You could also detect mouse input from this. User#19524 175 — 5y
0
Okay, I played with it in the Studio. Pretty cool.. gives me future ideas lol. Thanks for the advice. HeyItzDanniee 252 — 5y
1
I would first create an anchored part at the mouse position, preferably invisible, and use a RopeConstraint to join it with the player. If set to visible, rope swinging is one of its capabilities. So long as the length is shorter than the magnitude between the player and the brick, it will propell you towards the part, and you will begin swinging. Sorry for the lengthy comment. Good luck! ThatPreston 354 — 5y
0
Made something super interesting with your idea ThatPreston, about the anchored part. Thanks it works. And the UserInputService also helped me. HeyItzDanniee 252 — 5y

Answer this question