How to make CHAT CODE DOOR! | Roblox Studio
I hope you guys enjoyed this tutorial!
-----------------------------------
Download Roblox Studio:
https://web.roblox.com/create
------------------------------------------------------------------------------------
Scripts:
FFA Script:
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "Open" then
script.Parent.CanCollide = false
script.Parent.Transparency = .4
wait(4)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end
end)
end)
If you want no one else to be able to run the chat command simply in your script, put:
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(msg)
if plr.Name == "YourName" then
if msg == "Open" then
script.Parent.Transparency = 1
script.Parent.CanCollide = false
wait(3) -- how long you want it open for
script.Parent.Transparency = 0
script.Parent.CanCollide = true
end
end
end)
end)
--------------------------------------------------------------------------------------------------------------------------------------------------
🎵Music🎵
Intro Song: Another Kid - Nostalgia
Music used in this video:
Vexento - Sad Robot
Ship Wrek & Zookeepers - Ark
Outro Song: Josh A - No Chill
----------Discord------------
Discord Server: / discord
-------------------Social---------------------
ROBLOX Profile: https://web.roblox.com/users/52552439..