2a6d65ff-9b38-446f-92e3-792c5d344b2f
If you mean being able to look around while the mouse is locked to the center of the screen then you can use UserInputService’s MouseBehaviour enum
here’s some code to test:
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
RunService.RenderStepped:Connect(function()
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
end)
4a5b3294-6458-49df-8af4-b568178b2802
you mean the offset from the character?
a2e6f45c-94d3-4600-be0a-b278e8b3b4f7
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
RunService.RenderStepped:Connect(function()
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, workspace.CurrentCamera.CFrame.LookVector*Vector3.new(1, 0, 1)*1000)
end)
game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(1.75, 0, 0)
5f24e410-1ea3-431f-b741-b03e3644b31d
yeah i have it looks fine to me
if you ever figured this out i’d appreciate if you’d send me how you would achieve this
solved with align orientation nnnnnnn
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.