I need help with my scripts

Local scripts don’t work in the workspace… Also you need to do the checking on the server, exploiters have unlimited access to their client.

so should i put the local script somewhere else and then get the door from workspace?

Yes, but I can’t guarantee the script someone else provided is going to work, but it definitely won’t work as a local script in the workspace

where would you recommended i put it?

in StarterPlayerScripts, it’s where you should put most of your local scripts

works great, thank you. i still need help with debounce/destorying the dolls so that nobody can spam the dolls and get tons of points on the leaderstats to cheat

This?:

local db = true

function onTouch()
    if db then
        db = false

        if player.leaderstats.Dolls.Value >= requiredDolls then
            part.Transparency = 1
            part.CanCollide = false
        end

        task.wait(5)
        db = true
    end
end

But doing checks on the client is wrong, since exploiters have full access to all the scripts so they can just edit or delete it. I suggest you move more things on the server and use Remote Events. Look into Game Security and Remote Functions and Events for more information.

i’m sorry that i’m very late, but this does not work