I am fairly new to scripting but I am confused on why it is asking for me to close the function on line 3. | Also I want these actions to happen server wide so it is why this is running a regular script.
local Door = game.Workspace.Door
Door.Touched:Connect(function(touched)
if touched.Parent:FindFirstChild("Humanoid") then
if player.ID == 560637180 then
Door.CanCollide = false
Door.Transparency = 0.8
wait(2.5)
Door.CanCollide = true
Door.Transparency = 0
end
end

1 comment
I edited my answer.