By typing a command in the chat, the door would open. It's a slide-able door so... what things do I have to do? Such as making it slide-able and script to make.
You can use the Chatted event to determine when the command is said, and then use a for loop to move the door over with CFrame. For example:
01 | game.Players.PlayerAdded:connect( function (player) --finds the new player |
02 | player.Chatted:connect( function (msg) --gets the message |
03 | if msg = = "Open" then |
04 | for i = 1 , 10 do --for loop |
05 | door.CFrame = door.CFrame + Vector 3. new( 0 , 0 , 1 ) --Editing CFrame |
06 | wait( 0.1 ) |
07 | end |
08 | end |
09 | end ) |
10 | end ) |
you need to learn the chatted event and basic math to do this.
Thats a sliding door but if its a just a cancollide door it would be.
1 | Game.Players.PlayerAdded:connect( function (player) |
2 | plater.Chatted:connect( function (msg) |
3 | if msg = = "Open" then |
4 | for i = 1 , 10 do |
5 | door.transparency = "0.5" |
6 | door.cancollide = "true" |
7 | Wait( 3 ) |
8 | end |
So I got -1 on my question? Troll or something? That ain't funny... Putting negative vote w/o a reason? Why not make some improvements... That would prevent such troll things away.