generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Door

Previous Thread :: Next Thread 
PhantomR is not online. PhantomR
Joined: 09 May 2012
Total Posts: 186
16 Jan 2013 11:42 PM
I am wondering how you can make a door that can open and close to certain people.
Like this person has permission to open the door.
And they can open it by saying systemffoff.
And close it by saying systemffon.
I am wondering if somebody can make that?
Report Abuse
noah is online. noah
Joined: 11 Sep 2006
Total Posts: 18977
16 Jan 2013 11:44 PM
Using the Chatted, PlayerAdded, and CharacterAdded events.
Report Abuse
noah is online. noah
Joined: 11 Sep 2006
Total Posts: 18977
16 Jan 2013 11:51 PM
put dis in a script in a door

admins = {"ADMIN"}
door = script.Parent

game.Players.PlayerAdded:connect(function(player)
for i,v in pairs (admins) do
if player.Name == v then
v.Chatted:connect(function(msg)
if msg == "open" then
door.CanCollide = false
elseif msg == "close" then
door.CanCollide = true
end
end)
end
end
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image