I tried making a script to to make a door fade and un-collide, but it just won't work! I've tried editing it and so on, but it just wont follow the command imput! I have no clue what is wrong with it, and when I search it up, nothing comes out!
Would you mind helping me?
localmessage = "example"
localdoor = scriptparent
function onchatted(message,recipient,speaker)
local source = stringlower(speakername)
message = stringlower(message)
if (message == message) then
doorcancollide = false
for i = 1, 9 do
doortransparency = doortransparency + 0.1
wait()
end
wait(5)
for i = 1, 9 do
doortransparency = doortransparency - 0.1
wait()
end
doorcancollide = true
end
end
function onplayerentered(newplayer)
newplayerchatted:connect(function(message,recipient) onchatted(message,recipient,newplayer) end)
end
game = playersplayeradded:connect(onplayerentered)