REPOST: Wall-walk toggle button for admin panel

I am currently in the process of making an admin panel and most of it is done so far, but I want to include a feature where if a button is pressed you will be able to walk on the walls/ceilings of the game you’re in. Any help? I have no code so far as I’m sort of new to scripting and don’t know where to start.

3 Likes

You could start by checking out how others have accomplished what you are looking for; Walk On walls Script (NEW) - Roblox

This probably won’t be very easy to incorporate into your admin script if you are new, so I advise completing the easy parts first!

3 Likes

I see, thanks for this model though! I have already seen it but I am currently looking for a way to toggle the wall walk on and off and can’t seem to figure it out…

2 Likes

Can you show what you’ve attempted so far?

2 Likes

I tried this but I’m not surprised it didn’t work tbh.

local button = script.Parent
local gravity = script.Parent.GravityController
gravity.Parent = game.Lighting

local c = gravity:Clone()

local debounce = false

button.MouseButton1Click:Connect(function()
if debounce == false then
debounce = true
button.BackgroundColor3 = Color3.fromRGB(62, 84, 57)
c.Parent = game.ReplicatedStorage
elseif debounce == true then
debounce = false
button.BackgroundColor3 = Color3.fromRGB(84, 61, 61)
c:Destroy()
end
end)

2 Likes

Is GravityController a module?

1 Like

I’m not sure, its from the script that Lovely Jacob mentioned above… it has a million components and I’m not sure what they do tbh.

1 Like

image

1 Like

2 Likes