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 i do wrong?

Previous Thread :: Next Thread 
Brandonroblox is not online. Brandonroblox
Joined: 14 Oct 2008
Total Posts: 1673
05 Nov 2012 08:28 PM
game.Players.PlayerAdded:connect(function(playa)
if playa.userId==game.CreatorId then
playa.CharacterAdded:connect(function(char)
script.REF:clone().Parent=playa.PlayerGui;
end
)
end end
)
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
05 Nov 2012 08:30 PM
game.Players.PlayerAdded:connect(function(playa)
if playa.userId==game.CreatorId then
script.REF:clone().Parent=game.Players[playa].PlayerGui; --so inefficient but idk.
end)
end end --extra end?
Report Abuse
Brandonroblox is not online. Brandonroblox
Joined: 14 Oct 2008
Total Posts: 1673
05 Nov 2012 08:33 PM
trying to get me ref im the only one that can c and use it?
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
05 Nov 2012 08:33 PM
Grammar please I can't understand you....
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
05 Nov 2012 08:34 PM
game.Players.PlayerAdded:connect(function(player)
if player.userId == game.CreatorId then
player.CharacterAdded:connect(function(character)
script.REF:Clone().Parent = player.PlayerGui -- .Parent = character
end)
end
end)

deathCast();
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
05 Nov 2012 08:35 PM
game.Players.PlayerAdded:connect(function(playa)
if playa.Name == "Brandonroblox" then
script.REF:clone().Parent=game.Players[playa].PlayerGui;
end
end)
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
05 Nov 2012 08:37 PM
You do realize that the parent setting is wrong..

deathCast();
Report Abuse
Brandonroblox is not online. Brandonroblox
Joined: 14 Oct 2008
Total Posts: 1673
05 Nov 2012 08:37 PM
Oh ok thx....
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
05 Nov 2012 08:38 PM
It isn't..
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
05 Nov 2012 08:40 PM
Maybe if you did game.Players[playa.Name] it would work. It's like re-doing the hierarchy.

deathCast();
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
05 Nov 2012 08:40 PM
lol.

I thought I was doing pairs..
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
05 Nov 2012 08:42 PM
here is the fixed one

game.Players.PlayerAdded:connect(function(playa)
if playa.Name == "Brandonroblox" then
script.REF:Clone().Parent=game.Players[playa.Name].PlayerGui;
end
end)
Report Abuse
Brandonroblox is not online. Brandonroblox
Joined: 14 Oct 2008
Total Posts: 1673
05 Nov 2012 08:45 PM
still dont work
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
05 Nov 2012 08:47 PM
But he wants CharacterAdded so it keeps cloning the script.

deathCast();
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
05 Nov 2012 08:52 PM
game.Players.PlayerAdded:connect(function(playa)
playa.CharacterAdded:connect(function(char)
if playa.Name == "Brandonroblox" then

script.REF:clone().Parent=game.Players[playa.Name].PlayerGui;
end
end)
end)
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
05 Nov 2012 08:57 PM
Well, that's not that efficient since it'll check the name every time the player spawns.

deathCast();
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
05 Nov 2012 08:58 PM
but atleast he has something.



plus i want him to make his own script..
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