Wall stick/Gravity Controller

I am really sorry about that. When I was trying to fix the script myself I tried delaying the script by adding a wait on top and when it did not work and when I removed it, I also removed line 7 ( Which was also blank ). If seen from a fresh copy again then the error is actually at line 169
Error Log
I really appreciate that you replied and I know that your time is precious. so if you feel that you can still help me with it then I would really appreciate it and if not, it is still really good. Thanks for you’re time again.

I have a friend who uses an older version of the gravity controller (not sure what version) and he was getting a similar error but for a different camera method that only recently began occurring a couple of weeks ago; I went through most of the source and it ended up being that the vehicle camera methods were relying on a module in player scripts that didn’t exist. I’m not sure if that dependency still exists but removing the vehicle camera methods fixed the problem.

1 Like

Ok so I tried commenting out the vehicle system ( there were only a few lines ) but unfortunately, the error remained the same for me, and as usual, every time I click play, there are chances that the error will occur or either the system will work properly. But i really appriciate that you replied, thank you.

1 Like

I found a bug. You cannot teleport a character with character:SetPrimaryPartCFrame() when Wallstick is enabled (not sure if this is also the case with GravityController). As a workaround, I just quickly disable Wallstick, teleport the character and apply it again.

@EgoMoose can you tell me how to add a whitelist to the wall stick controller non updated camera, i know you have ignorelist but I need a whitelist. I want to make only parts named “GravPart” have gravity work for them. The problem is I do not know how to script very well so can you give me the whitelist code and tell me what script to put it in and on what line. It would be very much appreciated.

@EgoMoose you could be an admin with this work!

@EgoMoose Just wanna point out a bug in the Raycast module provided in the Wall stick controller. It’s a small typo, literally a single character difference.

The bug exists in
game.StarterPlayer.StarterCharacterScripts.ExampleMain.Raycast
image

Line 70

WORKSPACE:FindPartOnRayWithWhiteList(..)

should be

WORKSPACE:FindPartOnRayWithWhitelist(..)

Very cool system by the way!
You’re one of my favorite developers on Roblox

1 Like

Thanks for the heads up! I don’t think white listing is ever used in this project tbh, but I will fix that!

Edit: nvm you’re looking at an old version of wallstick. This is not a bug in the github repo

3 Likes

@EgoMoose can you make a version where all parts except parts named grav-part have the gravity controller off (this is for wall stick controller). I need this because I want only a few parts in my game to have gravity controller on. It would take too long to blacklist everything amd having a whitelist would make it so much simpler.

@EgoMoose how do I disable the gravity controller part? I want the player to stay on planes, rotating platforms but I wanna disable the part where you can walk up walls

you could definitely put all the parts inside of a folder and do:

for i,v in pairs(workspace.AntiGravity:GetDescendants()) do
--your code here.
end

or:

for i,v in pairs(workspace:GetDescendants()) do
if v.Name == "grav-part" then
-- code
end
end

hope this helped

Oh man, I’d hate to be that guy that bumps a year and a half old thread because of a typo, but something like this shouldn’t go unnoticed

image

Otherwise this is an incredible creation and I wish I could see it used in more games

2 Likes

Good catch! Thanks I replaced the signal class w/ quenty’s in both repros. I’ll try to remember to update the places when I have time.

1 Like

thanks for your help but where in the code would i put that. i do not really understand the code of the gravity controller.

this is for the wall stick controller updated camera.
also i prefer the second method because i need to group parts with gravity controller enabled with parts with gravity controller disabled, example: making a moving train with only the floor a part with gravity enabled to make a more smooth train ride.
thank you for you help

if getdecendants doesnt work use getchildren perhaps

you can put the script in workspace or serverscriptservice

i cant really help with the code part sense im not familiar with gravity controller

I have tried to put the code in many areas but it does not seem to work.
also i need it to be client sided so that one person can be standing on a part with gravity controller enabled and the other person can be on a part with gravity controller disabled

Thanks for that explanation. I hope someone can help me with a similar issue.

I’m using the gravity controller and attempting to create a Region3 that removes the gravity controller while any character is inside it and “give it back” once a character leaves the Region3 zone.

I am having trouble understanding how to do this. I have a working Region3 that can detect players but I don’t know how to instruct this Region3 to affect the players LocalScript (the one mentioned in the post) to turn the gravity on and off.

Any advice would be appreciated thanks!

(Also this controller is so much fun to play with! Many thanks for this resource!)

@CDDevelopment I’m trying to do the exact same thing with certain wedge parts, preferably by having them tagged in the collection serviced like the ignore list in the older version of wallstick.

Where did you change the wallstick.Normal and VectorToObjectSpace properties?

@EgoMoose This system is fantastic, but I noticed the updated wallstick doesn’t use collection service tags like the old one did. I really need to be able to have certain parts ignored in my particular use case.

Is there an equivalent system for specifying parts to ignore? If not, which script do I need to modify to implement it?

Nevermind, there was a scripting problem on my end.

For anyone else having trouble porting the tags from the previous version of wallstick, be sure to make the following change in the raycast function of the boots module script:

2 Likes