I have a part which is 2x2x2 studs but I dont want the player to climb it
I want the player to be able to jump on it, but when they walk into it they should get stopped.
I have a part which is 2x2x2 studs but I dont want the player to climb it
I want the player to be able to jump on it, but when they walk into it they should get stopped.
Set an OnTouch:Connect on the object which disables their climbing for a second or so.
local hum = Player.Character.Humanoid -- You probably already have something available for this
local p = workspace.part -- the part that you want to prevent climbing
p.Touched:Connect(function(pPart) -- When they touch this part, disable their ability to climb momentarily
if game.Players:GetPlayerFromCharacter(pPart.Parent) then
hum:SetStateEnabled(Enum.HumanoidStateType.Climbing, false)
wait(1)
hum:SetStateEnabled(Enum.HumanoidStateType.Climbing, true)
end
end)
If they stop touching it, the effect quickly wears off.
You could add an invisible part to block the climbing.
Climbing only happens with thin parts, so if you make the part wider with an invisible part then the controller won’t try to climb.
But they still want the player to be able to jump over it.
When I have something like this in a game, I encapsulate the object with an invisible brick - this would prevent a player from climbing onto the item, but they could still jump on to it if needed.
Example:
Due to the height of this piece, the player could walk/climb right on to it. By adding a transparent block, it prevents this.
I actually already had a system like this in place, i didn’t mention it though.
The only problem is the sheer size of the object (it’s 2x2x2) so it climbs it more like stairs than a ladder.
Dimensions are the hitbox set to 100% transparency
That would work for something that is being treated like a stair.
i have a solution which involves a wall and the user jumping into another part to turn off the wall which is above the wall but jump intoable my english not englishing
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.