#Climb any part by throwing a rope

1 messages · Page 1 of 1 (latest)

trim tulip
#

The general idea is to be able to climb up a part by throwing a rope at it which anchors when it touches the part.
First thing I did was create a Part when user activated a tool. Then with the use Body Velocity to apply velocity and make it launch in the direction the player is looking. If the part touches something it get's anchored to that point but if it doesn't touch anything in the given time period, it get's removed. By creating another part but with no collision this time, and putting it between the flying part and the player i mimicked a rope like behavior.

Now, I needed to somehow find a way to make it so that if the player successfully throws the launching part and it gets anchored, they need to be able to climb that part. My first idea was to simply make all parts truss and only allow climbing if it's touched with the "launching part". however i soon realized, "What if 2 parts are stacked on top of each other and the Launching parts get's anchored to the top one?"

Then i thought about sliding a line whose total height is equal to launchingPart.Position.Y and playerRoot.Position.Y. These invisible truss parts would go sliding in the direction the launching part went if it get's anchored and also get anchored itself when it touch another part. However this also failed because i could figure out how to make it local sided only.

Now, I'm stuck in a loop hole of problems and desperately need help.

#

Also, i'm not a pro at studio. Infact, i started only 4 days ago but due to my past experience with game dev, I picked up quickly.

jaunty granite
#

Heck yeah

#

So @trim tulip can you give me a tldr cuz I’m reading it but I’m not getting a clear issue

trim tulip
jaunty granite
#

makes perfect sense now

trim tulip
#

yes but it doesn't feel natural

jaunty granite
#

or are you still having trouble launching the part

jaunty granite
trim tulip
#

it's not like a grappling hoook

#

it's like rock climbing

jaunty granite
#

so you got everything else working just stuck on the climbing part

trim tulip
#

yea

jaunty granite
#

@trim tulip so do you have the rope fall down to the ground

#

or does it just magically appear once you hit something

#

cuz that can throw a wrench in the mix depending on how yo uhave that setup

trim tulip
#

the rope also doesnt have collision

#

and cannot detect touch

#

it gets deleted along with the launch part if it doesn't get anchored within a time frame

jaunty granite
#

so then it falls in place

trim tulip
#

yea however by the time it falls, the touch detectors are shut

jaunty granite
#

@trim tulip So why couldnt you use the truss parts

#

i see you say you couldnt do it locally

#
    local direction = (endPos - startPos).Unit
    local distance = (endPos - startPos).Magnitude
    local segments = math.floor(distance / 4)

    for i = 1, segments do
        local segmentPos = startPos + direction * (i * 4)

        local part = Instance.new("Part")
        part.Anchored = true
        part.CanCollide = false
        part.Size = Vector3.new(2, 4, 2)
        part.Position = segmentPos
        part.Transparency = 1
        part.Name = "ClimbPart"
        part.Parent = workspace
        part.LocalTransparencyModifier = 1  -- Make it local-sided only visually

        local truss = Instance.new("TrussPart")
        truss.Size = part.Size
        truss.Anchored = true
        truss.CanCollide = false
        truss.Position = part.Position
        truss.Transparency = 1
        truss.Name = "LocalClimbTruss"
        truss.Parent = workspace
    end
end
#

but something like this would possibly do the trick

#

thats chatgpt btw

trim tulip
#

but even if it's locally invisible it still exists for all players?

jaunty granite
#

Not unless you make that a function that fires from the server

#

like right there the client is doing all the work

#

so only the client could see it

#

is everything else done on the server?

trim tulip
#

yea but the rope is cloned for both server and client

scarlet chasmBOT
#

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

trim tulip
#

because at first when i made the rope server only, it was laggy and being delayed on player movement so i cloned it for the useful rope to exist in server and visual to exist in client

jaunty granite
#

you could do the same thing for the trusses

trim tulip
#

i tried but my brain fried

jaunty granite
#

ha lol i dont blame you

trim tulip
jaunty granite
#

kk

#

let me know if anything

trim tulip
#

what if the multiple part exist at different X positions

#

when in this game it does

jaunty granite
#

wait i think it already has iit

#

to be honest impact im not rlly sure

#

i cant rlly help cuz i cannot jumble all these variables mentally id just keep trying scripts and seeing what sticks

trim tulip
#

uhhhhhhhhhh i keep on trying to do things im not capable of. perhaps i should learn more

trim tulip
jaunty granite
#

keep going

#

if you just did everything you knew how to do you would never learn

jaunty granite
trim tulip
#

i searched everywhere on the internet but fsr no body has tried this. atleast i couldn't find any

jaunty granite
#

yeah