How to stick player to the wall?

Hi. I was wondering, how to make a player kinda stick to the wall, and then start slowly falling down. This was used in Egg Hunt 2018 when you were wall jumping. How was that made?

3 Likes

Take a look at this module someone made :smile:

1 Like

I don’t recommend to tell people to look at modules. They ask how to stick someone in to the wall not a module.

Well i don’t really see a point of making a whole system for this while there are plenty available for use. It isn’t the most easy thing to make and requires a lot of math and code

He doesn’t want a gravity controller, he wants to be able to have the character holding onto the wall not walking on it.

1 Like

I’ve tried looking into this, but it’s a bit different from what I wanted to make. I just want player to stick to the wall and slowly fall down, rather than control gravity like that, but thank you anyways!

1 Like

Set the characters primary part CFrame to the wall with welds like this:

local character = player.Character

character:SetPrimaryPartCFrame(Instance.CFrame + CFrame.new(1,0) -- //Should put the character next to the wall
local weld = Instance.new("WeldConstraint")
weld.Parent = character.HumanoidRootPart
weld.Part0 = character.HumanoidRootPart
weld.Part1 = Instance

-- //Tell me if I missed anything
2 Likes

Since I modified this script a bit, it is just what I was looking for! Thank you!