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 » Scripters
Home Search
 

Re: why doesn't this clone?

Previous Thread :: Next Thread 
Auddacity is online. Auddacity
Joined: 31 May 2009
Total Posts: 428
07 Jul 2017 09:55 PM
game.Players.PlayerAdded:connect(function()
local player = game.Players.LocalPlayer
game.Lighting.Chute:Clone().Parent = player
end)


--the chute is inside Lighting
--the local script is inside StarterPlayer
StarterPlayerScripts



Report Abuse
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
07 Jul 2017 09:59 PM
Remove the game.Players.PlayerAdded stuff, you don't need it since you're using a local script

Report Abuse
Auddacity is online. Auddacity
Joined: 31 May 2009
Total Posts: 428
07 Jul 2017 10:01 PM
Thanks, just never used the StarterPlayer service before.


Report Abuse
WillieTehWierdo200 is not online. WillieTehWierdo200
Joined: 13 Aug 2008
Total Posts: 1147
07 Jul 2017 10:06 PM
Objects in Lighting might not replicate to the client, so the Chute may not exist in the client's game.

Also, ReplicatedStorage replaced Lighting as the place to put stuff that you:
1) want to hide from the Workspace
2) want to replicate to the client's game when they connect
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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