When I click a part I want it to move the player up, I already added a body velocity into the humanoid root part. It just tells me this in the output every time I click the part.
Infinite yield possible on 'Workspace.Paczki_TCBC.HumanoidRootPart:WaitForChild("BodyVelocity")'
(Paczki_TCBC is my username)
Here is my script:
local event = game.ReplicatedStorage.Events.RopeEvent
local click = script.Parent
click.MouseClick:Connect(function(plr)
wait()
local nameofplr = plr.name
local person = game.Workspace:FindFirstChild(nameofplr)
print("clicked")
local bodyVel = person.HumanoidRootPart:WaitForChild("BodyVelocity")
bodyVel.MaxForce = Vector3.new(0,40000,0)
end)
