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):
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.
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?
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
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.