Is there a way to zoom out the character in a noclip-fly?


  • 10/10 title lemme explain.

    I've worked on a noclip-fly script for the purpose of a new admin system I'm developing; however, something came to mind: is there a way to zoom the character out more? Usually with noclip-fly scripts your character's close to the camera, as can be seen with multiple other admin scripts.

    Is there a way to zoom out the character/have it not be so close to the camera? If necessary this's my script:

    local plr = game:GetService('Players').LocalPlayer
    repeat
    	wait(1/8)
    	char = plr.Character
    until char --<fite me
    local hum = char:WaitForChild('Humanoid')
    local hrp = char:WaitForChild('HumanoidRootPart')
    local w,a,s,d,e,q = 0,0
    local userinputservice = game:GetService('UserInputService')
    local cam = Workspace.CurrentCamera
    local runservice = game:GetService('RunService')
    
    hum.PlatformStand = true
    hrp.Anchored = true
    
    while true do
    	if userinputservice:IsKeyDown('W') then
    		w = 1
    	else
    		w = 0
    	end
    	if userinputservice:IsKeyDown('A') then
    		a = 1
    	else
    		a = 0
    	end
    	if userinputservice:IsKeyDown('S') then
    		s = 1
    	else
    		s = 0
    	end
    	if userinputservice:IsKeyDown('D') then
    		d = 1
    	else
    		d = 0
    	end
    	if userinputservice:IsKeyDown('E') then
    		e = 1
    	else
    		e = 0
    	end
    	if userinputservice:IsKeyDown('Q') then
    		q = 1
    	else
    		q = 0
    	end
    	hrp.CFrame = CFrame.new(hrp.CFrame.p, cam.CFrame.p) * CFrame.new(a-d, e-q, w-s) * CFrame.Angles(0, math.rad(180), 0)
    	runservice.RenderStepped:Wait()
    end
    

    Tyvm for reading. c:


  • You can already zoom out the camera with the default camera script.


  • @Dog2puppy Oh right, I forgot. XP
    Thanx! ^^

Log in to reply
 

Looks like your connection to Scripting Helpers was lost, please wait while we try to reconnect.