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: How can I get a free camera without nilling my Character?

Previous Thread :: Next Thread 
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
13 Sep 2016 09:33 PM
This may not make logical sense at first, but I want to temporarily override the character controls to instead allow brief control of the camera.


Report Abuse
baa_aaa is not online. baa_aaa
Joined: 18 Nov 2015
Total Posts: 491
13 Sep 2016 09:36 PM
Toggle player.PlayerScripts.ControlScript.Disabled, they're designed to be dropped in and out.
Report Abuse
baa_aaa is not online. baa_aaa
Joined: 18 Nov 2015
Total Posts: 491
13 Sep 2016 09:37 PM
Oh, you want the camera. You can do this:

workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable

And when you want to re-enable the defaults, do this:


workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
Report Abuse
imeatingpoorightnow is not online. imeatingpoorightnow
Joined: 14 Jan 2009
Total Posts: 184
13 Sep 2016 11:51 PM
And don't forget, adding semicolons adds extra cycles to the already slow interpreter. You have been warned.
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
14 Sep 2016 04:37 PM
Setting it to scriptable just makes my camera frozen in both rotation and position.


Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
14 Sep 2016 04:45 PM
i feel like booing is testing how garbage the help is in this forum because this isnt a hard question

answer: script ur own camera


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
14 Sep 2016 04:54 PM
custom camera manips

and userinputservice


Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
15 Sep 2016 07:55 PM
It wasn't a test. I thought there was an easy way... ##
Report Abuse
AbstractCode is not online. AbstractCode
Joined: 26 Aug 2016
Total Posts: 654
15 Sep 2016 07:56 PM
Yeah - free models.
Report Abuse
RemasteredBox is not online. RemasteredBox
Joined: 19 Jun 2016
Total Posts: 2140
15 Sep 2016 08:10 PM
wait(2)
game.Players.LocalPlayer.PlayerScripts.ControlScript.Disabled=true
local part = Instance.new('Part',workspace)
part.Anchored=true
part.Transparency=1
game:service'UserInputService'.InputBegan:connect(function(i,b)
if b then return end
if i.UserInputType~=Enum.UserInputType.Keyboard then return end
getfenv()[i.KeyCode.Name]=true
end)
game:service'UserInputService'.InputEnded:connect(function(i,b)
if b then return end
if i.UserInputType~=Enum.UserInputType.Keyboard then return end
getfenv()[i.KeyCode.Name]=nil
end)
local cc=workspace.CurrentCamera
cc.CameraType=Enum.CameraType.Follow
cc.CameraSubject=part
game["Run Service"].RenderStepped:connect(function()
part.CFrame=CFrame.new(part.Position,cc.CoordinateFrame*CFrame.new(0,0,-500).p)
if W then
part.CFrame=part.CFrame*CFrame.new(0,0,-0.5)
elseif S then
part.CFrame=part.CFrame*CFrame.new(0,0,0.5)
end
if D then
part.CFrame=part.CFrame*CFrame.new(0.5,0,0)
elseif A then
part.CFrame=part.CFrame*CFrame.new(-0.5,0,0)
end
end)
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