Universal Script ๐Ÿ“Œ
2.7k Views
16 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!

Tags

More universal scripts

See all
Universal Script ๐Ÿ“Œ
6.4k
30.7k
Bumped 3 minutes ago
Script hub
17.0k
112.2k
Bumped 25 minutes ago
Key System

Script hub

Kronos New

Script hub
5.6M
1.2M
Bumped 4 hours ago
Key System
Universal Script ๐Ÿ“Œ
1.9k
6.7k
Bumped 6 hours ago
Script hub
23.3k
5.0k
Bumped 8 hours ago
Key System
Paid
High Qualityย Offering
Script hub
4.1M
546.8k
Bumped 8 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow #1 *OP*

Universal Script ๐Ÿ“Œ
14.5k
57.3k
Bumped 12 hours ago
High Qualityย Offering
Script hub
2.9M
977.8k
Bumped 12 hours ago
Key System