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

Door fade/un-collide failure, helping hand please?

Asked by 5 years ago

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)

0
Can you add a neater version of this? Thanks SoftlockedUnderZero 668 — 5y

Answer this question