Change FOV
Key RequiredUniversal

Change FOV

Universal Scriptthanhtaithanhtai 4.5K views 506 executesUpdated May 11, 2025
Unrated
00
Lua Script•234 lines (8132 chars)
-- GUI to Lua 
-- Version: 0.0.3

-- Instances:

local ScreenGui = Instance.new("ScreenGui")
local Frame_1 = Instance.new("Frame")
local UICorner_1 = Instance.new("UICorner")
local UIStroke_1 = Instance.new("UIStroke")
local TextBox_1 = Instance.new("TextBox")
local UIStroke_2 = Instance.new("UIStroke")
local UICorner_2 = Instance.new("UICorner")
local TextButton_1 = Instance.new("TextButton")
local UIStroke_3 = Instance.new("UIStroke")
local UICorner_3 = Instance.new("UICorner")
local TextLabel_1 = Instance.new("TextLabel")
local TextLabel_2 = Instance.new("TextLabel")
local ThisisButton_1 = Instance.new("TextButton")
local UIStroke_4 = Instance.new("UIStroke")
local UICorner_4 = Instance.new("UICorner")

-- Properties:
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ResetOnSpawn = false

Frame_1.Parent = ScreenGui
Frame_1.BackgroundColor3 = Color3.fromRGB(56,56,56)
Frame_1.BackgroundTransparency = 0.10000000149011612
Frame_1.BorderColor3 = Color3.fromRGB(0,0,0)
Frame_1.BorderSizePixel = 0
Frame_1.Position = UDim2.new(0.304307103, 0,0.212100133, 0)
Frame_1.Size = UDim2.new(0, 333,0, 331)
Frame_1.Visible = false

UICorner_1.Parent = Frame_1

UIStroke_1.Parent = Frame_1
UIStroke_1.Color = Color3.fromRGB(26,26,26)
UIStroke_1.Thickness = 8.300000190734863

TextBox_1.Parent = Frame_1
TextBox_1.Active = true
TextBox_1.BackgroundColor3 = Color3.fromRGB(70,70,70)
TextBox_1.BackgroundTransparency = 0.10000000149011612
TextBox_1.BorderColor3 = Color3.fromRGB(0,0,0)
TextBox_1.BorderSizePixel = 0
TextBox_1.Position = UDim2.new(0.114114113, 0,0.274924457, 0)
TextBox_1.Size = UDim2.new(0, 258,0, 86)
TextBox_1.Font = Enum.Font.SourceSans
TextBox_1.PlaceholderColor3 = Color3.fromRGB(178,178,178)
TextBox_1.PlaceholderText = ""
TextBox_1.Text = "Type Numbers"
TextBox_1.TextColor3 = Color3.fromRGB(200,200,200)
TextBox_1.TextScaled = true
TextBox_1.TextSize = 14
TextBox_1.TextWrapped = true

UIStroke_2.Parent = TextBox_1
UIStroke_2.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
UIStroke_2.Color = Color3.fromRGB(48,48,48)
UIStroke_2.Thickness = 7.300000190734863

UICorner_2.Parent = TextBox_1

TextButton_1.Parent = Frame_1
TextButton_1.Active = true
TextButton_1.BackgroundColor3 = Color3.fromRGB(70,70,70)
TextButton_1.BackgroundTransparency = 0.10000000149011612
TextButton_1.BorderColor3 = Color3.fromRGB(0,0,0)
TextButton_1.BorderSizePixel = 0
TextButton_1.Position = UDim2.new(0.198198199, 0,0.637462258, 0)
TextButton_1.Size = UDim2.new(0, 200,0, 50)
TextButton_1.Font = Enum.Font.SourceSans
TextButton_1.Text = "Change"
TextButton_1.TextColor3 = Color3.fromRGB(200,200,200)
TextButton_1.TextScaled = true
TextButton_1.TextSize = 14
TextButton_1.TextWrapped = true

UIStroke_3.Parent = TextButton_1
UIStroke_3.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
UIStroke_3.Color = Color3.fromRGB(48,48,48)
UIStroke_3.Thickness = 7.300000190734863

UICorner_3.Parent = TextButton_1

TextLabel_1.Parent = Frame_1
TextLabel_1.BackgroundColor3 = Color3.fromRGB(255,255,255)
TextLabel_1.BackgroundTransparency = 1
TextLabel_1.BorderColor3 = Color3.fromRGB(0,0,0)
TextLabel_1.BorderSizePixel = 0
TextLabel_1.Position = UDim2.new(0.0450450443, 0,0, 0)
TextLabel_1.Size = UDim2.new(0, 312,0, 75)
TextLabel_1.Font = Enum.Font.SourceSans
TextLabel_1.Text = "Changes FOV"
TextLabel_1.TextColor3 = Color3.fromRGB(200,200,200)
TextLabel_1.TextScaled = true
TextLabel_1.TextSize = 14
TextLabel_1.TextWrapped = true

TextLabel_2.Parent = Frame_1
TextLabel_2.BackgroundColor3 = Color3.fromRGB(255,255,255)
TextLabel_2.BackgroundTransparency = 1
TextLabel_2.BorderColor3 = Color3.fromRGB(0,0,0)
TextLabel_2.BorderSizePixel = 0
TextLabel_2.Position = UDim2.new(0.720720649, 0,0.92749244, 0)
TextLabel_2.Size = UDim2.new(0, 93,0, 24)
TextLabel_2.Font = Enum.Font.SourceSans
TextLabel_2.Text = "Safety Script"
TextLabel_2.TextColor3 = Color3.fromRGB(200,200,200)
TextLabel_2.TextScaled = true
TextLabel_2.TextSize = 14
TextLabel_2.TextWrapped = true

ThisisButton_1.Name = "ThisisButton"
ThisisButton_1.Parent = ScreenGui
ThisisButton_1.Active = true
ThisisButton_1.BackgroundColor3 = Color3.fromRGB(70,70,70)
ThisisButton_1.BackgroundTransparency = 0.10000000149011612
ThisisButton_1.BorderColor3 = Color3.fromRGB(0,0,0)
ThisisButton_1.BorderSizePixel = 0
ThisisButton_1.Position = UDim2.new(-0.000714843627, 0,0.49142611, 0)
ThisisButton_1.Size = UDim2.new(0.220458552, 0,0.0869262815, 0)
ThisisButton_1.Font = Enum.Font.SourceSans
ThisisButton_1.Text = "Open"
ThisisButton_1.TextColor3 = Color3.fromRGB(200,200,200)
ThisisButton_1.TextScaled = true
ThisisButton_1.TextSize = 14
ThisisButton_1.TextWrapped = true

UIStroke_4.Parent = ThisisButton_1
UIStroke_4.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
UIStroke_4.Color = Color3.fromRGB(48,48,48)
UIStroke_4.Thickness = 7.300000190734863

UICorner_4.Parent = ThisisButton_1

local function DubMMJUUqiocUYRn()
local script = Instance.new("LocalScript",Frame_1)
-- Assuming you have a TextBox named "InputTextBox" and a Button named "SubmitButton"
local inputTextBox = script.Parent.TextBox
local submitButton = script.Parent.TextButton

-- Function to change camera's point of view based on numeric input
local function changeCameraPOV(inputValue)
	local numberValue = tonumber(inputValue)
	if numberValue then
		-- Example: Change the camera's Field of View (FOV) based on the input value
		-- Ensure the numberValue is within a reasonable FOV range (e.g., 10 to 120)
		local newFOV = math.clamp(numberValue, 10, 120)  -- Adjust as needed
		game.Workspace.CurrentCamera.FieldOfView = newFOV
	else
		print("Invalid number input for camera POV")
	end
end

-- Connect the button press to the function
submitButton.MouseButton1Click:Connect(function()
	local inputValue = inputTextBox.Text
	changeCameraPOV(inputValue)
end)

end
coroutine.wrap(DubMMJUUqiocUYRn)()


local function xJYzlQIXtAksHLLI()
local script = Instance.new("LocalScript",Frame_1)
local frame = script.Parent  -- The frame that you want to make draggable
local dragToggle = nil  -- Boolean to track if the drag has started
local dragStart = nil  -- Store the initial position of the mouse
local startPos = nil  -- Store the initial position of the frame

-- Create a tween service for smooth movement
local tweenService = game:GetService("TweenService")

-- Function to handle mouse input for dragging
frame.InputBegan:Connect(function(input, gameProcessed)
	if gameProcessed then return end

	-- Check if the input is a left mouse button press
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		dragToggle = true
		dragStart = input.Position  -- Capture the mouse's starting position
		startPos = frame.Position  -- Capture the frame's starting position
	end
end)

frame.InputEnded:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		dragToggle = false
	end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
	if dragToggle and input.UserInputType == Enum.UserInputType.MouseMovement then
		-- Calculate the difference in mouse position from the start
		local delta = input.Position - dragStart
		-- Calculate the target position
		local targetPosition = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)

		-- Create a tween for smooth movement
		local tweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)  -- 0.2 seconds, quad easing out
		local tween = tweenService:Create(frame, tweenInfo, {Position = targetPosition})

		-- Play the tween to smoothly move the frame
		tween:Play()
	end
end)

end
coroutine.wrap(xJYzlQIXtAksHLLI)()


local function uQuCNNVWAMbawxoM()
local script = Instance.new("LocalScript",ThisisButton_1)
local button = script.Parent
local Frame = script.Parent.Parent.Frame

button.MouseButton1Down:Connect(function()
	-- Toggle frame visibility
	if Frame.Visible then
		-- If the frame is visible, hide it
		Frame.Visible = false
		button.Text = "Open"
	else
		-- If the frame is hidden, show it
		Frame.Visible = true
		button.Text = "Close"
	end
end)

end
coroutine.wrap(uQuCNNVWAMbawxoM)()

Features & Information

Yes epic FOV I'm better gaming
#Safety#FOV#Showcase#FE

Community Comments (5)

ArisArisMay 11, 2025

chatgpt warrior

thanhtaithanhtaiMay 11, 2025

Desirecc yes Its chatgpt script so My Script so hard bro

ArisArisMay 11, 2025

@thanhtai Cmon scripting lua isnt that hard trust me

thanhtaithanhtaiMay 11, 2025

@Desirecc Its just hard scripts

thanhtaithanhtaiMay 11, 2025

@Desirecc i learn script tutorial in roblox studio so i making these exploit gui but because hard script

More Scripts for Universal Scripts