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
 

Help with a key door.

Previous Thread :: Next Thread 
caseysman is not online. caseysman
Joined: 06 Jun 2009
Total Posts: 167
24 Sep 2011 10:09 AM
Ive been looking for one that will work when i insert the key it. Ive found it but i dont know how to give it to special people... I know i cant put it in the starter pack because then everyone can get the card. Please help...
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
24 Sep 2011 10:11 AM
Automatically?

game.Players.PlayerAdded:connect(function(np)
if np.Name == "caseysman"or np.Name == "name2" or np.Name == "name3" then
local card = game.Lighting:FindFirstChild("Card'):Clone()
card.Parent = np.StarterGear
end
end)
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
24 Sep 2011 10:13 AM
Ffs, I have to start proof-reading.. :l
Anyway, use this script in Workspace, and put the card into Lighting. Name it 'Card', without the single-quotes.


game.Players.PlayerAdded:connect(function(np)
if np.Name == "caseysman"or np.Name == "name2" or np.Name == "name3" then
local card = game.Lighting:FindFirstChild("Card"):Clone()
card.Parent = np.StarterGear
end
end)
Report Abuse
caseysman is not online. caseysman
Joined: 06 Jun 2009
Total Posts: 167
24 Sep 2011 10:14 AM
Thanks let me see if it works real fast.
Report Abuse
Ender1234 is not online. Ender1234
Joined: 21 May 2011
Total Posts: 28
24 Sep 2011 10:16 AM
How would you give them the key on respawn though?
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
24 Sep 2011 10:17 AM
StarterGear, Ender. :P
Report Abuse
caseysman is not online. caseysman
Joined: 06 Jun 2009
Total Posts: 167
24 Sep 2011 10:18 AM
Grimm How do i add the card into the lighting again? Ive been a little rusty in scripting for a month now...
Report Abuse
Ender1234 is not online. Ender1234
Joined: 21 May 2011
Total Posts: 28
24 Sep 2011 10:19 AM
True O.o
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
24 Sep 2011 10:29 AM
First, re-name it.

Click it to hi-light it. Aim at the lettering, now, and click again. Wait a moment. Change the name to...
Card

After that, make sure you can see both the card, and Lighting in Explorer. Left click the tool icon, and wait a moment. Left click the tool, and drag it down to Lighting.

OR..

You can just as easily re-name the tool, then right-click it, and hit 'cut'.
After that, scroll down to lighting.
Select it (left click)
Right click Lighting.
Select "Paste Into".
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