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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 14 Sep 2016 04:54 PM |
custom camera manips
and userinputservice
|
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
|
| 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 |
|
|