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: BirdViewCamera

Previous Thread :: Next Thread 
sasuker4444 is not online. sasuker4444
Joined: 05 Nov 2011
Total Posts: 152
19 Feb 2016 02:24 PM
Anyone know's how to script a BirdEyeView camera ?
Im new in scripting and im not the best with camera...I looked on the wiki but it didn't really helped me.
I want to try to do the same thing that's in "Light Bulb".

If anyone can help, thanks !





- Sasuker4444
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
19 Feb 2016 02:25 PM
I assume you mean top-down?

Just make a script and/or edit the current CameraScript and CFrame the camera
Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
19 Feb 2016 02:28 PM
put this in a local script:

local offset = Vector3.new(0,40,0) -- change as you see fit
local fieldOfView = 30

local player = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera
local runService = game:GetService('RunService')

camera.FieldOfView = fieldOfView

local function onRenderStep()
local playerPosition = player.Character.Torso.Position
local cameraPosition = playerPosition + offset
camera.CoordinateFrame = CFrame.new(cameraPosition, playerPosition)
end

runService:BindToRenderStep('Camera', Enum.RenderPriority.Camera.Value, onRenderStep)



#Strikin'
Report Abuse
sasuker4444 is not online. sasuker4444
Joined: 05 Nov 2011
Total Posts: 152
19 Feb 2016 02:41 PM
Everything work's but it doesn't lock your camera in a BirdView...
And yes I allready tried to change the camera mode to "Custom" & "Scriptable".
Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
19 Feb 2016 02:48 PM
srsly? does the output say anything?



#Strikin'
Report Abuse
VertexArray is not online. VertexArray
Joined: 05 Jul 2014
Total Posts: 1804
19 Feb 2016 03:00 PM
That's because you have to disable the default CameraScript inside of PlayerScripts. You can't have 2 camera scripts running at the same time.



Report Abuse
OppaGagnamSta is not online. OppaGagnamSta
Joined: 24 Sep 2014
Total Posts: 603
19 Feb 2016 03:06 PM
this works for me:

local offset = Vector3.new(0,40,0) -- change as you see fit
local fieldOfView = 30
repeat wait() until game.Players.LocalPlayer and game.Workspace.CurrentCamera
local player = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera
camera.CameraType = "Scriptable"
local runService = game:GetService('RunService')

camera.FieldOfView = fieldOfView

local function onRenderStep()
local playerPosition = player.Character.Torso.Position
local cameraPosition = playerPosition + offset
camera.CoordinateFrame = CFrame.new(cameraPosition, playerPosition)
end

runService:BindToRenderStep('Camera', Enum.RenderPriority.Camera.Value, onRenderStep)


Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
19 Feb 2016 03:15 PM
my script -_-



#Strikin'
Report Abuse
OppaGagnamSta is not online. OppaGagnamSta
Joined: 24 Sep 2014
Total Posts: 603
19 Feb 2016 03:20 PM
no, it's obviously mine

-_-


Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
19 Feb 2016 03:31 PM
ill assume your being sarcastic -_-



#Strikin'
Report Abuse
sasuker4444 is not online. sasuker4444
Joined: 05 Nov 2011
Total Posts: 152
19 Feb 2016 03:46 PM
Actually it's in a LocalScript inside StarterGui that's maybe it ?
Report Abuse
sasuker4444 is not online. sasuker4444
Joined: 05 Nov 2011
Total Posts: 152
19 Feb 2016 03:47 PM
It work I tested it, but my character can't move anyway to fix that ?
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
19 Feb 2016 03:50 PM
electro, its obviously not your script. also put it in StarterPlayer > PlayerScripts

then add this to the start of the script, if there is a more efficient way hopefully someone helps you.

wait(3)
script.Parent.CameraScript:Destroy()


#code print("This signature was created using Roblox+, get yours now at the chrome web store!")
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
19 Feb 2016 03:50 PM
add that to t he start of electros script.


#code print("This signature was created using Roblox+, get yours now at the chrome web store!")
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
19 Feb 2016 04:36 PM
for this to work, replace:

local offset = Vector3.new(0,40,0)

with

local offset = Vector3.new(0,40,0.01)

the change in the camera angle is unnoticeable but it will allow your character to move




Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
19 Feb 2016 04:36 PM
The reason why your character doesn't move is because when the camera is zoomed out, your character moves based on the looking direction of the camera if you press 'W' or and other key.

Because the camera in this case is only looking down vertically and not inclined on the x or z axis, the character won't move.




Report Abuse
sasuker4444 is not online. sasuker4444
Joined: 05 Nov 2011
Total Posts: 152
19 Feb 2016 04:56 PM
Thank's it work fine now !
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