Hi! I need help with making a custom camera/mouse, I’ve seen it done before and I wanna know how people do it. Basically your mouse is stuck in the middle of the screen like in shiftlock and your camera is adjusted too, but the difference is your character doesn’t move along with where your camera is facing. Sorry for the bad explanation.
Locking a cursor at the device screen’s center is fairly simple.
local Game = game local UserInputService = Game:GetService("UserInputService") local Players = Game:GetService("Players") UserInputService.MouseIconEnabled = false local LocalPlayer = Players.LocalPlayer local CursorGui = Instance.new("ScreenGui") CursorGui.Name = "CursorGui" CursorGui.IgnoreGuiInset = true CursorGui.ResetOnSpawn = false local CursorImage = Instance.new("ImageLabel") CursorImage.Name = "CursorImage" CursorImage.AnchorPoint = Vector2.new(0.5, 0.5) CursorImage.BackgroundTransparency = 1 CursorImage.Image = "rbxassetid://163023520" --Change this. CursorImage.Position = UDim2.new(0.5, 0, 0.5, 0) CursorImage.Size = UDim2.new(0, 75, 0, 75) CursorImage.Parent = CursorGui local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") CursorGui.Parent = PlayerGui
You should describe the camera system you’re looking to achieve in more detail.
Go to properties of starterplayer and set MaxCameraZoomDistance and MinCameraZoomDistance to 0.5