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: [Quite short] A following "Scriptable" Camera

Previous Thread :: Next Thread 
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
18 Nov 2012 11:25 AM
This is just a key down function, when pressed it makes the camera go to the front of a car named "RAM" and while the CameraType == scriptable it continues to focus on it. Yet the camera does nothing at the while loop, just freezes where it was last as if I just set it to scriptable and did nothing else.





if key == "x" then
if game.Players.LocalPlayer.Character:FindFirstChild("Car") ~= nil then
if game.Players.LocalPlayer.Character.Car:FindFirstChild("RAM") ~= nil then
game.Workspace.CurrentCamera.CameraType = "Scriptable"
game.Players.LocalPlayer.PlayerGui["Help Guis"].Cameras.Text = "Current Camera: First Person [Ram]"
Mus:Play()
while game.Workspace.CurrentCamera.CameraType == "Scriptable" do --WHILE LOOP
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Car.RAM
game.Workspace.CurrentCamera.CoordinateFrame = game.Players.LocalPlayer.Character.Car.RAM.CFrame
end
end
end
end
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
18 Nov 2012 11:27 AM
lol.

What is "key"
Report Abuse
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
18 Nov 2012 11:30 AM
I don't know for certain but I think camera type is a number. Not sure :

http://wiki.roblox.com/index.php/CameraType_(Enum)
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
18 Nov 2012 11:30 AM
It's a section of a script Xnite, pelase.
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
18 Nov 2012 11:32 AM
No, you see the problem is when it's not set to CameraType "Scriptable" it can move it's position saying:
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Car.RAM
game.Workspace.CurrentCamera.CoordinateFrame = game.Players.LocalPlayer.Character.Car.RAM.CFrame


But when it is set to CameraType "Scriptable" I can't edit it that way, yet I need it to follow the position of the ram.
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