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 » Game Design
Home Search
 

Re: How do I assign something to a player?

Previous Thread :: Next Thread 
yoshiegg6 is not online. yoshiegg6
Joined: 20 Jul 2012
Total Posts: 3191
02 Dec 2014 07:14 AM
So, lets say I want a player to spawn with something if they have something. But it has to stay even after they reset. How would I do this? Ex, player.zombie = true.
Report Abuse
yoshiegg6 is not online. yoshiegg6
Joined: 20 Jul 2012
Total Posts: 3191
02 Dec 2014 07:15 AM
So, if they are a zombie they would spawn with tools. If they aren't they'd spawn with something different. I can't use teams tho.
Report Abuse
yoshiegg6 is not online. yoshiegg6
Joined: 20 Jul 2012
Total Posts: 3191
03 Dec 2014 05:36 PM
bump
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
03 Dec 2014 05:55 PM
local iszombie = Instance.new ("BoolValue",player)
iszombie = false
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
03 Dec 2014 06:00 PM
in PlayerAdded

local isZombie = Instance.new("BoolValue")
isZombie.Value = true
isZombie.Parent = player

don't use what max did
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
03 Dec 2014 06:01 PM
Nothing wrong with what I did.
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
03 Dec 2014 06:04 PM
"Nothing wrong with what I did."

besides the fact that you must do iszombie.Value and not iszombie = true

it is better practice to set the parent later because of WaitForChild
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
03 Dec 2014 06:10 PM
cri
that always gets me
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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