Momentum Replication

Hi yall, im trying to replicate this hook momentum but for my vine script when you stop hanging on it. Do yall have any idea how I can do this and push me in the right direction?
Here is what im trying to replicate (Source: Hook Obby):

My Project:


Help Is appreciated

3 Likes

are you saying you want to make it so your player continues to go forward after exiting the ‘vine’? If so you might be able to use part:ApplyImpulse when the player exits the ‘vine’ in the direction they were going.

1 Like

Yes exactly I want a continue forward movement when exiting the vine! Also ive never heard of part:ApplyImpulse but do you have an idea of how to make it so if goes their direction?

1 Like

Well how does your vine script work? I can work the problem from there.

local input = game:GetService("UserInputService")
local remote = game.ReplicatedStorage.weldcreate
local remove = game.ReplicatedStorage.Removeweld
script.Parent.Triggered:Connect(function(plr)
	print("hummmm")
	local welds = Instance.new("Weld", plr.Character)
	local character = plr.Character
	if character:FindFirstChild("HumanoidRootPart") and character:FindFirstChild("Humanoid").Health > 0 then
		print("Found")
		
		welds.Part0 = game.Workspace.Model:FindFirstChild("4")
		welds.Part1 = character.HumanoidRootPart
		welds.C0  = CFrame.new(0,1,2) 
		welds.C0 *= CFrame.Angles(0,0,math.rad(10))
		
		welds.C1 = CFrame.Angles(math.rad(-20), 0,math.rad(-80))
		
		remote:FireClient(plr)
		remove.OnServerEvent:Connect(function(plr)
			if character:FindFirstChild("Weld") then
				character:FindFirstChild("Weld"):Destroy()
				wait(3)
				end
		end)
	--remote:FireClient(plr)
print(plr)
end
end)

The prox prompt makes the weld, then it checks if F is pressed and then unwelds it

so maybe take the rotation of the hrp, and apply it:

local launch_speed = 5

local hrp = character:FindFirstChild("HumanoidRootPart")
hrp:ApplyImpulse(hrp.CFrame.LookVector * launch_speed)

And that would be in the code for when you launch it/hit the exit button.

added it but it dont really work :<

if you could send a video that would be appreciated. unless you mean it flat out errors and doesnt run. BTW, the code is not really exact, i didnt test it.

I think its cuz this is a server script, ill try adding a remote