How to make retro Like Movement?

I’ve never heard of that before, so no idea how you found it, but it seems we have the world loaded in now! thank you!

but new error

19:13:16.642 Unable to assign property CFrame. CoordinateFrame expected, got Instance - Client - LocalScript:11
19:13:16.642 Stack Begin - Studio
19:13:16.642 Script ‘Players.NightMayRise.PlayerScripts.LocalScript’, Line 11 - Studio - LocalScript:11
19:13:16.642 Stack End - Studio

Are you sure you have .CFrame written at the CamPart in the function? If you do, could you send a screenshot of how the script looks like?

Yeah I see the issue, at line 11, write .CFrame behind the CamPart. You need to get the CFrame property of the part in order to set it to the camera

2 Likes

like this?

Camera.CFrame = game.Workspace.RoamCameras.CFrame.CamPart
1 Like

Nonono, switch them

Camera.CFrame = game.Workspace.RoamCameras.CamPart. CFrame

1 Like

just wondering, why do we switch them?

SIDE NOTE, IT WORKS!!! THANK YOU SO MUCH

1 Like

We switch them because you’re getting a property of the camera part object, the property being the CFrame. So you first get the object by accessing the CamPart and then you get it’s Cframe property with the dot.

No problem, happy I could help

1 Like

ohh I see, thank you for your help again. I can’t believe it fought so hard not to work.

side note, do you always code on phone?

1 Like

No, never. I actually was about to go to sleep an hour ago, but I wanted to finish this issue, so I had to continue on phone

1 Like

ohh, I’M REALLY SORRY TO KEEP YOU UP THEN, I hope you have some good rest, thanks again for the help

I’ve kinda ran into a deadend, so I’ll just post a update. I get no errors, yet it won’t work. Very confusing stuff

local RunService = game:GetService(“RunService”)
local tweenService = game:GetService(“TweenService”)
local CamTweenInfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
local Camera = workspace.CurrentCamera
local CameraViews = workspace:WaitForChild(“RoamCameras”)

repeat task.wait(0.2) until game:IsLoaded()

function tweenCameraView(pos,tweenTime)
tweenService:Create(Camera,TweenInfo.new(tweenTime,Enum.EasingStyle.Linear),{CFrame = pos.CFrame}):Play()
end

local cd = false

game:GetService(“UserInputService”).InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.S then
if cd == true then return end
cd = true
wait(.1)
tweenCameraView(CameraViews.Hallway1.Exit[“1”],0.2)
wait(.1)
tweenCameraView(CameraViews.Hallway1.Exit[“2”],0.2)
end
end)