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: Probably a easy fix.

Previous Thread :: Next Thread 
PumpkinRPG is not online. PumpkinRPG
Joined: 09 Nov 2010
Total Posts: 92
19 Feb 2013 11:55 PM
Ok so here I a script I am using:

game.Players.PlayerAdded:connect(onPlayerRespawned)
function onPlayerRespawned(newPlayer)
wait(1)
if newPlayer.Name:lower( ) == "chewit9", "pumpkinrpg" then
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,2,0)
gui.StudsOffset=Vector3.new(0,2,0)
text=Instance.new("ImageLabel")
text.Image = "http://www.roblox.com/asset/?id=107299293"
text.Size=UDim2.new(1.25,0,1.75,0)
text.Position=UDim2.new(-0.125,0,-1.1,0)
text.BackgroundTransparency = 1
text.Parent=gui
w = game.Lighting.WepsGroup:GetChildren()
for i = 1,#w do
w[i]:Clone().Parent = newPlayer.Backpack
end
end
end

function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end

game.Players.PlayerAdded:connect(onPlayerEntered)

As you can see on one of the top line it says: ''if newPlayer.Name:lower( ) == "chewit9", "pumpkinrpg" then ''

I am having one problem, it doesn't work because there is two names. It works with one, but not with two, how can I fix this?
Report Abuse
PumpkinRPG is not online. PumpkinRPG
Joined: 09 Nov 2010
Total Posts: 92
19 Feb 2013 11:57 PM
Bump ._.
Report Abuse
cart6157 is not online. cart6157
Joined: 28 Feb 2009
Total Posts: 2194
20 Feb 2013 12:17 AM
if newPlayer.Name == "name" or newPlayer.Name == "name" then

end
Report Abuse
PumpkinRPG is not online. PumpkinRPG
Joined: 09 Nov 2010
Total Posts: 92
20 Feb 2013 12:27 AM
@cart

Could you put that in my script and paste it, just so I can paste the whole thing? Thanks.
Report Abuse
manofthebase44 is not online. manofthebase44
Joined: 14 Feb 2012
Total Posts: 2221
20 Feb 2013 04:20 AM
Pumpkin U a narb or someit do It yourself Low PLOX!!@
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