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: Quick Question...

Previous Thread :: Next Thread 
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
09 May 2013 07:43 PM
So if you find the character through play its just character. example: ScreenGui.Parent.Parent.Character, but I want to find the player through the character, would it just be player like, script.Parent.Player?
Report Abuse
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
09 May 2013 07:43 PM
So if you find the character through the player
sorry I was typing this fast...
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
09 May 2013 07:44 PM
game.Players:GetPlayerFromCharacter(Workspace.Desperian)

Report Abuse
youtubeaaaa is not online. youtubeaaaa
Joined: 13 Jul 2011
Total Posts: 120
09 May 2013 07:46 PM
Yes


It would be that


----ssss------
Report Abuse
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
09 May 2013 07:46 PM
Sorry I was unclear, say there is a gun and I want that gun's bullet to be the players team color, would it be: tool.Parent.Player.TeamColor?
Report Abuse
Postured is not online. Postured
Joined: 02 Feb 2012
Total Posts: 114
09 May 2013 07:48 PM
bullet.BrickColor = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent).TeamColor

And that's fine, and all, but I still want to go kill a dragon.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
09 May 2013 07:48 PM
game.Players:GetPlayerFromCharacter(tool.Parent).TeamColor
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
09 May 2013 07:49 PM
Noooo, Post beat me to it. Oh well.
Report Abuse
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
09 May 2013 07:49 PM
Okay, thank you.
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