Hi i wish to make a ledge grabbing script, i already done that when i click E it does a animation, now i wish to make it that when i click E it will execute the animation BUT only if there is a part called "grab" near in the radius so the animation will execute really near or even on the "grab" part location so it can adjust itself
is that possible?
Here is the script:
local UserInputService = game:GetService("UserInputService")
local climbing = false
local Player = game.Players.LocalPlayer
local Character = game.Workspace:WaitForChild(Player.Name)
local Humanoid = Character:FindFirstChildOfClass("Humanoid")
Climb = Instance.new("Animation")
Climb.AnimationId = "rbxassetid://3284607610"
ClimbTrack = Humanoid:LoadAnimation(Climb)
UserInputService.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.E and not climbing then
Climbing = true
ClimbTrack:Play()
Climbing = false
end
end)

1 comment
yes