I have no idea how to script, so can you help me?
Seems you need a Touched event.
local Door = workspace.Door -- define the door local debounce = false -- make sure to have a debounce Players = game:GetService('Players') - we'll be needing this service Door.Touched:Connect(function(otherPart) local Player = Players:GetPlayerFromCharacter(otherpart.Parent) if Player then if Player.Team == game.Teams['TeamNameHere'] and debounce == false then -- check team and debounce debounce = true Door.Transparency =.5 Door.CanCollide = false wait(.5) -- how long before the door goes back to normal Door.Transparency = 0 Door.CanCollide = true debounce = false end end end)
Make sure to properly define the door to make sure this works.
Closed as Not Constructive by Sonnenroboter, zblox164, SuperSamyGamer, Psudar, and theking48989987
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?