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: Placing a LocalScript into the Camera

Previous Thread :: Next Thread 
RoyStanford is not online. RoyStanford
Joined: 21 Oct 2008
Total Posts: 2222
21 Nov 2013 05:39 PM
My current method is when the player joins, copy a localscript into his playergui, enable said script, and there is a line of code inside the localscript that sets its parent to the currentcamera. This method appears to work, but I get this error:

18:37:28.367 - Something unexpectedly tried to set the parent of c_main to NULL while trying to set the parent of c_main. Current parent is Camera.

Any ideas?
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
21 Nov 2013 05:40 PM
Make an ObjectValue and make it's value to the camera then do the rest from there?
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
21 Nov 2013 05:41 PM
Local script line 1
repeat
wait(0.03)
until script.Parent ~= nil
wait(0.03)
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
21 Nov 2013 05:45 PM
sry I need help.


What is the event?

player.PlayerAdded:connect (function
when they join, is this the proper event?
Report Abuse
RoyStanford is not online. RoyStanford
Joined: 21 Oct 2008
Total Posts: 2222
21 Nov 2013 05:54 PM
@scriptural

I still get the error, even though the script works fine...
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
21 Nov 2013 06:02 PM
Oh that error, if you still wanna fix it
repeat
wait(0.03)
until script.Parent:IsA("PlayerGui")
wait(0.03)
Report Abuse
RoyStanford is not online. RoyStanford
Joined: 21 Oct 2008
Total Posts: 2222
21 Nov 2013 06:15 PM
:( still gives me the error
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
21 Nov 2013 06:21 PM
Make the last wait(0.03) to wait(1)
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