Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

CFrame wants to be Vector3 when with Vector3 wants CFrame?

https://imgur.com/a/UIS6dhA

I've tested the script in a LocalScript and a Script. I can't tell if i'm missing something or what but this is really bugging me. Vector3 isn't apart of CurrentCamera and so i'm stumped...

2 answers

✓ Accepted answer

Hey!

Simple solution. Instead of saying Position, you used CFrame. It's a common mistake I make.

workspace.CurrentCamera.CFrame = CFrame.new(workspace.Map.CutsceneAreas.AppartementAlpha.CharPosition.Position) -- See, position instead of CFrame after CharPosition.

This is what you need to change. Tell me if there's still an error!

3 comments

0

He doesn't need a new CFrame. I just reused his CFrame from before.

0

Also You spelled Apartment wrong XD

0

well oops

The syntax for CFrame.new is actually

CFrame.new(Vector3.new(x, y, z))

But an easier way is not to make a new CFrame, but use your existing one so that:

workspace.CurrentCamera.CFrame = workspace.Map.CutsceneAreas.ApartmentAlpha.CharPosition.CFrame

This discussion is preserved as it was. New answers, comments, and votes are closed.