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

How to make this to only the player that triggered the part?

Asked by 2 years ago
local db = false

function onClick(plr)
    if db == false then
        local db = true
        game.ReplicatedStorage.Props.GaragedoorOpen.Parent = game.Workspace
        game.Workspace.Garagedoor.Parent = game.ReplicatedStorage.Props
    else local db = false
        game.ReplicatedStorage.Props.GaragedoorOpen.Parent = game.ReplicatedStorage
        game.Workspace.Garagedoor.Parent = game.Workspace
    end
end
script.Parent.Triggered:Connect(onClick)

0
wdym about this?you want only one player see the part dissapear or what?i need more explain about this to help u lamgogo 56 — 2y

Answer this question