Universal Script 📌
2.7k Views
12 Executions

FOV changer made with chatgpt from love

Universal Script 📌
ChatGPT
ChatGPTPublished 5
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

simple fov made with love from chatgpt (I DONT KNOW IF THIS WORKS LET ME KNOW IF IT DOESNT)

Updates

  1. Script edited: Create script

View Raw
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera

-- Create a draggable GUI
local screenGui = Instance.new("ScreenGui", player.PlayerGui)
local draggableFrame = Instance.new("Frame", screenGui)
draggableFrame.Size = UDim2.new(0, 200, 0, 100)
draggableFrame.Position = UDim2.new(0.5, -100, 0.5, -50)
draggableFrame.BackgroundColor3 = Color3.fromRGB(128, 128, 128)

local outlineFrame = Instance.new("Frame", draggableFrame)
outlineFrame.Size = UDim2.new(0, 180, 0, 60)
outlineFrame.Position = UDim2.new(0, 10, 0, 10)
outlineFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
outlineFrame.BorderSizePixel = 5

local fovInput = Instance.new("TextBox", outlineFrame)
fovInput.Size = UDim2.new(0, 160, 0, 40)
fovInput.Position = UDim2.new(0, 10, 0, 10)
fovInput.PlaceholderText = "Enter FOV (max 120)"

local setFovButton = Instance.new("TextButton", outlineFrame)
setFovButton.Size = UDim2.new(0, 160, 0, 30)
setFovButton.Position = UDim2.new(0, 10, 0, 50)
setFovButton.Text = "Set FOV"

-- Draggable functionality
local dragging = false
local startPos

draggableFrame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        startPos = input.Position
    end
end)

draggableFrame.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = false


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!