so i want to make this part unclimbable, like when player tries to jump on it , he will just slide down. any way to do so would be great
invisible walls is not an option because players will be able to climb that hill, just from other side. so it would be weird if players jumped from top of the hill and landed on invisible wall
I think you’re thinking about an invisible wall as a bounding box. I would USE an invisible wall, but slightly angle it so it’s slope is too high for players to climb.
Try toggling Humanoid.PlatformStand whenever you are touching the part.
I think the best way to do that is to change the player’s MaxSlopeAngle when the player touches the part and reset it later
you could also just change the friction of the part to be really high so that they slip off whenever they attempt to climb it
(btw you need to enable CustomPhysicalProperties
first to change the friction of your part)
–local script
plr=game.Players.LocalPlayer
chr=plr.Character or plr.CharacterAdded:Wait()
local h:Humanoid=chr:WaitForChild("Humanoid")
h.MaxSlopeAngle=5
@orakuul
that should work
just change the linear velocity of the wall to the bottom direction of the wall
you can still constantly use space bar and climb
if you set the value much higher, the character will get flung out of map
--local script
attribute="unclaimable"
plr=game.Players.LocalPlayer
chr=plr.Character or plr.CharacterAdded:Wait()
local h:Humanoid=chr:WaitForChild("Humanoid")
defaultmaxslope=h.MaxSlopeAngle
temppart=nil
chr:WaitForChild("RightFoot").Touched:Connect(function(x)
if x:GetAttribute(attribute) then
temppart=x
h.MaxSlopeAngle=1
else
temppart=nil
h.MaxSlopeAngle=defaultmaxslope
end
end)
create a bool attribute named unclaimable on part and the script will set and reset the maxslope of humanoid
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.