Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

how do I set the x and z axis on the camera to whatever the player wants?

Asked by 4 years ago
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()

local Camera = workspace.Camera
Camera.Name = 'ScriptingHelperAdminsAndModsAreSoTrash'

Number =  0 
while game:GetService('RunService').RenderStepped:Wait() do
    Camera.CFrame = Camera.CFrame * CFrame.fromEulerAnglesXYZ(0, Number + .5, 0)
end

So the problem i had was everytime the while true do loop ran

it would set the x axis of camera and the z axis to 0 and I dot want that to happen i want the player to be able to drag their screen for x and z axis

0
-1 for calling admins and mods trash programmerHere 371 — 4y

Answer this question