Universal Script 📌
717 Views
318 Executions

Fling T

Universal Script 📌
Haruruki122
Haruruki122Published 10
11 months 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

Script

View Raw
--[[
	WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Shevon", Text = "Нажми на q чтобы включить"})

local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera

-- Settings
local Settings = {
    BindKey = "Q" -- Custom Key
}

local isClicking = false

local function getClosestPlayer()
    local closestPlayer = nil
    local shortestDistance = math.huge

    for _, player in pairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
            local distance = (player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).magnitude
            if distance < shortestDistance then
                closestPlayer = player
                shortestDistance = distance
            end
        end
    end

    return closestPlayer
end

local function aimAt(target)
    if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
        local targetPosition = target.Character.HumanoidRootPart.Position
        Camera.CFrame = CFrame.new(Camera.CFrame.Position, targetPosition)
        
        if not isClicking then


Comments

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

More universal scripts

See all
Script hub
7.6k
69.1k
Bumped 3 minutes ago
Universal Script 📌
1.6k
31.5k
Bumped 5 minutes ago
Universal Script 📌
542
1.7k
Bumped 24 minutes ago
Universal Script 📌
66
9
Approved 57 minutes ago
Script hub
45
1
2 hours ago
Key System
Universal Script 📌
1.5k
4.2k
Bumped 3 hours ago
Universal Script 📌
2.2k
5.8k
Bumped 3 hours ago