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: Do scripts work in CurrentCamera?

Previous Thread :: Next Thread 
PleasantKillerman is not online. PleasantKillerman
Joined: 01 Nov 2011
Total Posts: 668
11 Jul 2015 10:06 PM
I used this line:

local iw = game:GetService("ReplicatedStorage"):WaitForChild("InstaWeld"):Clone()
iw.Parent = mm --------------mm is a Model
iw.Disabled = false

it works perfectly in Studio, but in Game, no scripts are working. I tried print and they're all good in the main script. I put a print in the first line of "InstaWeld" and no output. I really don,t understand. It's the first time that I see that problem.
Report Abuse
awesomeawesxomeman3 is not online. awesomeawesxomeman3
Joined: 19 May 2010
Total Posts: 104
11 Jul 2015 10:19 PM
No
Report Abuse
PleasantKillerman is not online. PleasantKillerman
Joined: 01 Nov 2011
Total Posts: 668
11 Jul 2015 10:35 PM
Well, something is wrong in my main script that makes no sense.

local mm = game.Lighting:FindFirstChild("Majoras Mask"):Clone()
mm.Parent = workspace.CurrentCamera

In an other script, I tried to print if the model was in CurrentCamera then this output appeared:
Majoras Mask is not valid member of Camera.

This makes no sense. I properly put the model in CurrentCamera but it says nothing's inside.
Report Abuse
awesomeawesxomeman3 is not online. awesomeawesxomeman3
Joined: 19 May 2010
Total Posts: 104
11 Jul 2015 10:39 PM
You should have been more specific. I thought you were talking about if scripts could run inside a camera.
Things in a camera can only be detected by a local script, since the parts in the camera are local, is it a local script? If not is it held in any camera other than the main camera? Because roblox deletes any camera copies named camera in game but not in studio
Report Abuse
PleasantKillerman is not online. PleasantKillerman
Joined: 01 Nov 2011
Total Posts: 668
11 Jul 2015 10:41 PM
Oh that could explain why it's not detected from a global script. Thank you!
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