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: so workspace.CurrentCamera always goes black

Previous Thread :: Next Thread 
TruNubusV2 is not online. TruNubusV2
Joined: 11 Jan 2016
Total Posts: 1235
22 Jun 2016 09:36 PM
but when it goes black it has a cframe that looks something like this

0,4.5,0,NAN,NAN,NAN,NAN,NAN,NAN,NAN,NAN,NAN

how do i detect when this happens (via localscript)?
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
22 Jun 2016 09:45 PM
It does this on its own without any scripts being run?
Report Abuse
TruNubusV2 is not online. TruNubusV2
Joined: 11 Jan 2016
Total Posts: 1235
22 Jun 2016 10:36 PM
a script moves the camera slowly to the direction the mouse is pointing

but sometimes when i test the game the camera goes black
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
22 Jun 2016 10:37 PM
Sounds like you're passing invalid numbers to the camera's CFrame.
Report Abuse
TruNubusV2 is not online. TruNubusV2
Joined: 11 Jan 2016
Total Posts: 1235
22 Jun 2016 10:43 PM

here is the only piece of the script that modifies the camera

while char_cam and wait() do
local head = char.Head
local ex = head.Position + mouse.hit.lookVector * 0.5
cam:Interpolate(CFrame.new(head.Position),CFrame.new(ex),.05)
end

there's no error message or anything

but here's what i got when i printed the CFrame of the cam

> print(workspace.CurrentCamera.CFrame)
6.5765655e-16, 4.5, -3.23544923e-12, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN
Report Abuse
ranvir2050 is not online. ranvir2050
Joined: 20 Dec 2014
Total Posts: 321
22 Jun 2016 10:44 PM
Use this,

WHILE THRUSE DO,
Add script.parent. Camera :function no black
:activate THRUSE

End
Report Abuse
TruNubusV2 is not online. TruNubusV2
Joined: 11 Jan 2016
Total Posts: 1235
22 Jun 2016 10:58 PM
theres the door
Report Abuse
ranvir2050 is not online. ranvir2050
Joined: 20 Dec 2014
Total Posts: 321
22 Jun 2016 11:06 PM
Yup, see thruse code works
Report Abuse
TruNubusV2 is not online. TruNubusV2
Joined: 11 Jan 2016
Total Posts: 1235
22 Jun 2016 11:14 PM
ok then. lets list some things why you shouldnt be here

1. You can't build without free models.
2. Spam "thruse" everywhere
3. Supply people with misleading people
4. Unhelpful and annoying

Now, I'm going to say it again. There's the door.
Report Abuse
ranvir2050 is not online. ranvir2050
Joined: 20 Dec 2014
Total Posts: 321
22 Jun 2016 11:14 PM
Yeah,my he door to THRUSE CODE
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