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: simple clone

Previous Thread :: Next Thread 
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
19 Jun 2012 10:33 AM
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(char)
repeat wait() until char:FindFirstChild("Torso")
char:MoveTo(Vector3.new(-38.5, 63, -32.5))
end)
end)

i think i got the end parts wrong im kinda new to anonymous functions so

output says:

10:31:37 - Script "Workspace.gun class gui", Line 1
10:31:37 - stack end
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
19 Jun 2012 10:34 AM
oh woops wrong script


game.Player.PlayerAdded:connect(function(plyr)
if plyr.Name ~= 'crazyzee' then
game.Lighting["Gun Class GUI"].Clone().Parent = plyr.StarterGui

end
end)

there and out put is same
Report Abuse
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
19 Jun 2012 10:37 AM
:Clone() not .Clone()
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
19 Jun 2012 10:39 AM
still in output it says the same thing

Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
19 Jun 2012 10:40 AM
p.CharacterAdded:connect(function(char)

† KMXD †
Report Abuse
Uuvinu is not online. Uuvinu
Joined: 19 Apr 2012
Total Posts: 2206
19 Jun 2012 10:42 AM
Yes, add that ^
and replace this line:

game.Player.PlayerAdded:connect(function(plyr)

with this:

game.Players.PlayerAdded:connect(function(plyr)

It's game.Players, not game.Player
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
19 Jun 2012 10:45 AM
Oh, there's a second script...?

Game.Players.PlayerAdded:connect(function(plyr)
plyr.CharacterAdded:connect(function(char)
if char.Name ~= 'crazyzee' then
Game.Lighting["Gun Class GUI"]:Clone().Parent = plyr.PlayerGui
end
end)
end)

† KMXD †
Report Abuse
crazyzee is not online. crazyzee
Joined: 24 Aug 2010
Total Posts: 275
19 Jun 2012 10:50 AM
no i posted the wrong script on the first one its ok the scond script was the right one
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