|
This would work along with CameraSubject. When you have given the Camera a subject, or you still want the camera attatched to the player's head (if you want), you can use CameraAngle to change which of the brick's sides to face.
e.g.,
function blahblah(SirBlah)
--blahblah
playerdudeperson.CameraAngle = "Top"
end
--blahblah connection line |
|
TuxwonderJoin Date: 2008-01-21 Post Count: 888 |
You can already angle the camera.
It just takes more brain power.
Sorry if it makes yours hurt...
But this thread is useless. |
|
|
I know it can be done, but it is a pain. Why did ROBLOX add Remove()? To make things easier. Why did ROBLOX add so many global functions? To make things easier.. And no, it does not make my brain hurt. |
|
TuxwonderJoin Date: 2008-01-21 Post Count: 888 |
Then just do it!
Jeez, its not that hard... |
|
|
Actually, when you're making a very advanced coaster camera script, it is. |
|
TuxwonderJoin Date: 2008-01-21 Post Count: 888 |
Not really.
You just connect the coaster's CFrame angle with the camera angle. Boom
Its done. |
|
|
Coolioso. would help a lot with that coaster cam. |
|
|
@Tux, Reasonable sized coasters will have hundreds of different CFrame positions making that painful to script. |
|
|
@Tuxwonder,
It's harder than you think. I'm trying to fix django's coaster cam script (PianomanEric gave me it). So far, I can't seem to find anybody that can fix it. |
|
TuxwonderJoin Date: 2008-01-21 Post Count: 888 |
Do you people even know how to script efficiently... this is easy stuff...
Just make it so that like, every 0.05 seconds, it sets the camera angle a little higher than the coaster CFrame, and bam. Its done.
This thread is disappointing ._. |
|
|
The script was like 50 lines and the local script was at least 20. It was an advanced script. |
|
|
@Tuxwonder: You are kinda being a hipocrite when you say "Do you people even know how to script efficiently", because that's not a very efficient way to do it. Just change the CameraSubject to the part to follow >_< |
|
|
But because of an update (10 months ago? :U), it broke the script. |
|
|
@crazypotato4
Follow won't do it, sir. |
|
|
@Crunchity: I don't get it. |
|
|
@crazypotato4,
I wonder if I can get starmarine614 or PianomanEric on this thread to help explain. :U |
|
TuxwonderJoin Date: 2008-01-21 Post Count: 888 |
@crazy
You know RCT3? They have it where the camera follows behind the coaster at all times. Follow cant do that. Thats what I thought he was saying, and thats what I was saying.
You know, honestly, I think we dont quite have the same idea... maybe Im unclear as to what your saying? |
|
|
" I think we dont quite have the same idea... "
--
You gots it.
I'm talking to PianomanEric right now to see if he can search the the deep and murky depths of his ancient laptop to find the script. :| |
|
|
'Do you people even know how to script efficiently... this is easy stuff...
Just make it so that like, every 0.05 seconds, it sets the camera angle a little higher than the coaster CFrame, and bam. Its done.'
--
Ah yes adding 300 lines of code instead of simply using this property to keep the script at 50 lines is completly efficient. |
|
|
If you are thinking that I mean the CameraType property, that ain't what I'm saying.
The CameraSubject should be changed to the part. If Roblox tries to change it back, then you can use a function to move it back to the part, which would be more efficient, and probably better looking. |
|
|
--I gots the script... It wasn't as big as I remember. :U
save = script.CameraScript:clone()
function Click(Mouse)
if script.CamOn.Value == false then
camgive = save:clone()
camgive.Parent = script.Parent.Parent
if script.Parent.Parent.Parent.Character.Humanoid.Sit == true then
script.CamOn.Value = true
end
else
if script.Parent.Parent:FindFirstChild("CameraScript") ~= nil then
script.Parent.Parent.CameraScript.Disabled = true
end
script.CamOn.Value = false
end
end
function Selected(Mouse)
script.On.Value = true
Mouse.Button1Down:connect(function() Click(Mouse) end)
end
function Deselected(Mouse)
if script.Parent.Parent:FindFirstChild("CameraScript") ~= nil then
script.Parent.Parent.CameraScript.Disabled = true
end
script.On.Value = false
end
script.Parent.Selected:connect(Selected)
script.Parent.Deselected:connect(Deselected)
___________________
Time for local script
___________________
backup = game.Workspace.CurrentCamera:clone()
distance = 10 --Distance from seat to about 5 or 10 studs infront of car (Or wherever you want the camera's position to be from the seat)
while true do
wait()
game.Workspace.CurrentCamera.CoordinateFrame = script.Parent.Parent.Character.Head.CFrame*CFrame.new(0, 5, -distance)
game.Workspace.CurrentCamera.Focus = script.Parent.Parent.Character.Head.CFrame*CFrame.new(0, 5, -distance)
if script.Disabled == true then
print("disabled")
game.Workspace.CurrentCamera:remove()
new = backup:clone()
new.Parent = game.Workspace
game.Workspace.CurrentCamera = new
wait(0.1)
backup = game.Workspace.CurrentCamera:clone()
game.Workspace.CurrentCamera:remove()
wait(0.1)
new = backup:clone()
new.Parent = game.Workspace
new.CameraSubject = script.Parent.Parent.Character.Head
new.CoordinateFrame = CFrame.new(script.Parent.Parent.Character.Head.Position, script.Parent.Parent.Character.Head.Position)
new.CameraSubject = script.Parent.Parent.Character.Humanoid
game.Workspace.CurrentCamera = new
script:remove()
end
if script.Parent.Parent.Character.Humanoid.Sit == false then
print("disabled")
game.Workspace.CurrentCamera:remove()
new = backup:clone()
new.Parent = game.Workspace
game.Workspace.CurrentCamera = new
script:remove()
end
end
|
|
TuxwonderJoin Date: 2008-01-21 Post Count: 888 |
@crazy
Thats kinda what...
I...
was saying...
Confusion...
Okay look. What Im saying is that you cant use the CameraSubject OR the CameraType to do the job. It requires a different property that the camera already has ( I forget what it is, Im to lazy to find it) to set the CFrame of the camera. I've done it before, its not hard. Shouldnt take under 20 lines. Totally efficient. |
|
|
@Tux
We arent all such gamer nerds that we can script every single little thing. And dont say it is easy, because some people dont understand it. If you think that is wrong that is to bad for you.
~Everyone is entitled to MY opinion.~
--Spacefield ©2010 |
|
|
"Shouldnt take under 20 lines."
--
Depends. :U |
|
TuxwonderJoin Date: 2008-01-21 Post Count: 888 |
@space
It has nothing to do with being a gamer nerd... its the fact its already doable <:/
I HATE when people suggest things that are already doable or have already been done.
@crunch
True, but the one I made took 10 lines. |
|