How could I go about making an advanced menu

One that will shift the camera depending on where the cursor moves? I’m assuming it does something with look vector and tweening a cameraPart CFrame to a relative position of the cursor.

1 Like

Could I ask what kind of advanced you are trying to attempt making?

Example?

Hi!

If you’re looking into a menu like this, you’d likely want to start with learning to manipulate the camera.

I recommend this video as a resource: Advanced Roblox Scripting Tutorial #28 - Camera Manipulation (Beginner to Pro 2020) - YouTube

Additionally, here is some documentation from Roblox on the matter: Customizing the Camera | Roblox Creator Documentation

As for “how” to go about something like this, you can keep the player frozen while allowing them to pan / tilt with their mouse. This should give you the desired affect described herein.

If you have any further questions, please let me know!

@Minecrablox Well I understand camera manipulation well I want to attempt to make the camera rotate a little when hovering on the squares here’s a video of what I’ve done;

I want it so when I hover on one of those squares the camerPart I have will slightly tilt towards it or slightly face it. Do you understand that? If not I can provide more resource.

Heres a game that uses this feature;

Wow! That looks amazing man. 10/10

I understand now what you’re trying to do a bit better, so thank you for the demonstration.

I still recommend reading up on the camera manipulation, as that is a prerequisite to being able to accomplish this task.

Please forgive me for not being able to elaborate, but this doesn’t look like the type of script I can just give you an injection for.

Good luck!

2 Likes

This did the trick for me.

local mousePos = mouse.Hit.Position
local result = CFrame.lookAt(cameraPart.Position, mousePos)

local t1 = tweenService:Create(cameraPart, TweenInfo.new(10), {CFrame = result })
t1:Play()
1 Like

I think this topic can help you.