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: What makes scripts focus on all different players?

Previous Thread :: Next Thread 
RainbowDash101 is not online. RainbowDash101
Joined: 31 May 2011
Total Posts: 17762
20 Apr 2013 04:29 PM
Like. for a "_____ has joined the game" script.
What would you do?
Report Abuse
RainbowDash101 is not online. RainbowDash101
Joined: 31 May 2011
Total Posts: 17762
20 Apr 2013 04:35 PM
bump
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
20 Apr 2013 04:35 PM
http://wiki.roblox.com/index.php/PlayerAdded
Report Abuse
RainbowDash101 is not online. RainbowDash101
Joined: 31 May 2011
Total Posts: 17762
20 Apr 2013 04:38 PM
@1WOOF
I mean like
not that specifically

how do you make it so it goes to the humanoid, like maybe to make you spawn with 10000 health.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
20 Apr 2013 04:40 PM
@Rain,

You learn basic Rbx.Lua?
Report Abuse
RainbowDash101 is not online. RainbowDash101
Joined: 31 May 2011
Total Posts: 17762
20 Apr 2013 04:41 PM
@1Woof1
yeah, and I have a fair amount of knowledge on scripting.
I just dont know how to make it not for a specific player.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
20 Apr 2013 04:42 PM
@Rain,

NOT for a specific player or FOR a specific player?
Report Abuse
RainbowDash101 is not online. RainbowDash101
Joined: 31 May 2011
Total Posts: 17762
20 Apr 2013 04:45 PM
@1WOOF1
NOT for a specific player.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
20 Apr 2013 04:46 PM
local NotForThisGuyCauseHesANubOrSomething = 'Telamon'

game.Players.PlayerAdded:connect(function(p)
if p.Name ~= NotForThisGuyCauseHesANubOrSomething then
repeat wait() until p.Character and p.Character:findFirstChild('Humanoid')
p.Character.Humanoid.MaxHealth = 999999 wait()
p.Character.Humanoid.Health = 999999
end end)
Report Abuse
tuxedoman23 is not online. tuxedoman23
Joined: 24 Apr 2009
Total Posts: 4670
20 Apr 2013 04:48 PM
Concatenation is a method used for things like this. Here is an example:

function Enter(plr)
local p = plr.Name
x = Instance.new("Message", Workspace)
x.Text = p.."has entered the server."
wait(5)
x:Destroy()
end
game.Players.ChildAdded:connect(Enter)
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