Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

doors anchored false only on my client?

Asked by 2 years ago

i just want to make a escape game and i used local script and still not working for only 1 client who break the door with pickaxe

local boom = workspace.Doors["MEME Boom Effect"]

function ontouch(hit)
    if hit.parent.Name == workspace.Doors.ToolRequired.Value then
        boom:Play()
        script.Parent.t.Anchored = false
        wait(0.3)
        script.Parent.l.Anchored = false
        wait(1)
        script.Parent.Anchored = false

    end
end
workspace.Doors.Touched:Connect(ontouch)

1 answer

Log in to vote
0
Answered by 2 years ago

If you're trying to anchor a door in a localscript, it will only anchor on the client firing the script

If you want the door to be anchored on the server you'll have to use serverscripts

0
i try to make only on client and its working but the player can touch the door to unanchor without tool and idk what to do to repair this teshowypl 15 — 2y
Ad

Answer this question