Wall stick/Gravity Controller

This system breaks mobile shiftlock scripts? What can I do to still have mobile shiftlock?

2 Likes

Brilliant resource! Thanks for making it open sourced.

1 Like

similar like this I used, even break this

2 Likes

how do i make the gravity sticking constantly on without a need for tools? i tried to figure out by looking at the code of the tool in the playground, but i have absolutely no idea what it is doing or how it works

1 Like

What does this mean? Does it mean that I can’t get the “avatar states” such as; running, walking, jumping, sitting. etc.

1 Like

That is correct. Since the controller doesn’t use a humanoid state tracking is disabled. This isn’t a purposeful choice, but rather a consequence of not using humanoids.

6 Likes

There is a problem where you dont stick to anything and it is completely broken.

1 Like

Another Problem when you switch to Server Mode ingame your client falls through the map

1 Like

^^ This here leads it to fail because of the Accessory name “Neck” which is ironic AND A huge coincidence which should also be avoided

1 Like

It doesnt work with custom rigs, such as my spider-man rig, which has custom skinned meshed parts, and bones. I tried adding an script in the animate thing, copying it and etc. but it didn’t work. is it even possible for custom rigs?

1 Like

Experiencing something really weird while using it in a ragdoll game. Ragdoll bug is due to changing humanoid state to getting up that I understand but what about these?

Terrain Bug - Weird behavior, looks like player is being treated as he is jumping… Animation doesn’t work on terrain sometimes.

Ragdoll Bug - which I know what’s causing to make it walk while ragdoll but look at the camera disturbance.

Walking on a part with linear velocity: That’s something strange.

1 Like

I got this error

  20:47:12.855  ReplicatedStorage.Wallstick.CharacterModules.Camera:34: attempt to call a nil value  -  Client - Camera:34
1 Like

Hey again @EgoMoose! I just had one quick question, how would I make a player spawn upside-down. So, that they actually spawn on the spawn location, even though it’s on the underside. Since now, Roblox automatically spawns it on the top side (the “correct” way). But I’d like the player to spawn upside down, as without them having to walk to the underside of the brick.

Is there any way to achieve this? Thank you :slight_smile: !

Edit: I tried this, but it kind of bugged out and I just fell of the part:

It basically just rotated the so it would look like he is standing up side down, and I hoped that the hravity controller would «suck» the player to the ground. But no.

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		character.HumanoidRootPart.Position = Vector3.new(5.81, 165.634, -184.292)
		character.HumanoidRootPart.CFrame *= CFrame.Angles(0, math.random(90), math.rad(180))

	end)
end)

If anyone else than @EgoMoose knows, then feel free to answer too!

1 Like

Make the whole world upside down so the player feels upside down when they spawn normally.

2 Likes

Thanks for the input. But this won‘t work for me, since I want to be able to teleport the players onto whatever side (top/bottom) I want without having to rotate the game. Thanks nevertheless!

2 Likes

This is unbelievable!

Straight up incredible. We need more dedicated developers like you on Roblox. Then the platform will be great again!

1 Like

There is a function where you can directly set the world normal, i cant remember what it is but its in the client handler somewhere it shouldnt be hard to find. Its used by internal code so you should find other references to it (Look for where it sets the floor part to TERRAIN, there it sets the world normal to 0,1,0 (upright) so you should find it there)

Using this function, set the players world normal to 0, -1, 0 when they spawn in. They will spawn upright and then flip around, which is a problem, but if you change the transition rate you can make this almost unnoticeable.

There’s almost definitely a better way to do this but this is how I’ve done it in the past.

edit: bear in mind the wallstick will attempt to stick to the floor the player spawn on as soon as they spawn, so maybe disable the downwards raycast for half a second or so until they have landed upside down. Or, just make them spawn in the air so that they dont stick to the floor at all.

1 Like

Woah this is actually kinda insane O_O great job

1 Like

How can I make it so the player only sticks to the floor, I don’t want players walking on walls or roofs.

3 Likes

Don’t turn it on? If you only want them sticking to the floor, just don’t use the module. :sweat_smile: Perhaps I misunderstood though?