1. What do you want to achieve? Keep it simple and clear!
Exactly what is shown here :
2. What is the issue? Include screenshots / videos if possible!
The behaviour is toggled by the letter K in a local script at the moment.
The letter K toggles the behaviour but I want a part to do this so that non-PC players can toggle this same behaviour too.
3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have copied the main local variables referencing the controller and parented them to a part with a Touched event but the script doesn’t function the same.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
I tried to find other examples of how to do this on the Gravity Controller thread but wasn’t able to find any more information.
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
Thanks for reading I’d appreciate any suggestions!
There’s a script in the character called “LocalScript”. To toggle it off and on I just made a part that toggles enables the script.
Here’s the code I used for the enable part:
script.Parent.Touched:Connect(function(plr)
local Player = game:GetService("Players"):GetPlayerFromCharacter(plr.Parent);
if Player then
Player.Character.LocalScript.Disabled = false
Player.PlayerGui.Respawn.Active.Value = true
print(Player.Name.. " is walking on walls.")
end
end)