How would I go about making my hiding system?

hold on I’ll give you the program …

Yeah I do. It prints hidden when im in and close the door so its working. The only problem is if i’m outside and close the door but yes they’re set correctly

The program all working
That got a bit crazy … have fun!
I’ll be removing that soon …

1 Like

Alright I got it. Thanks! It still seems to have the same problem with being outside though

something odd going on in that --//Toggle event//-- not sure your logic is right with everything there.
Idk so many flags … it’s right.

1 Like

hm alright i’ll look into it later but thank you for helping me get this far

I know what it is … that is keying off the Player:GetAttribute(“Locker”) and it isn’t even there till you step on one of them hit pads. Set that to 0 when the player joins the server. So it’s there …

add this: under: local DoorClosed = script.Parent.DoorClosed

local DoorClosed = script.Parent.DoorClosed

local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
	local Player = game.Workspace:WaitForChild(tostring(player))
	Player:SetAttribute("Locker", 0)
end)

This line is funny: local Player = game.Workspace:FindFirstChild(tostring(press))
idk what was going on but it was given me problems so I got a bit hacky…
I know there is a better line for this but I’m too tired to look around.

Drrr … local Player = press.Character

2 Likes