Universal Script 📌
835 Views
1.8k Executions

Jojo script 0912

Universal Script 📌
Lightnin_700
Lightnin_700First script
10 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

It's a edit of a already existing jojo script. Credits to that person I forgot their name

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Debris = game:GetService("Debris")
local UserInputService = game:GetService("UserInputService")
local TextChatService = game:GetService("TextChatService")

local function SendChatMessage(message)
	if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then
		local textChannel = TextChatService.TextChannels:FindFirstChild("RBXGeneral")
		if textChannel then
			textChannel:SendAsync(message)
		end
	else
		game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(message, "All")
	end
end
local player = Players.LocalPlayer
local function GetNearestPlayerInFront(targetPlayer, maxAngle)
    maxAngle = maxAngle or 60 -- degrees (cone size)

    if not targetPlayer.Character then return nil end
    local targetHRP = targetPlayer.Character:FindFirstChild("HumanoidRootPart")
    if not targetHRP then return nil end

    local targetLook = targetHRP.CFrame.LookVector

    local closest = nil
    local closestDist = math.huge

    for _, p in pairs(Players:GetPlayers()) do
        if p ~= player and p ~= targetPlayer and p.Character then
            local hrp = p.Character:FindFirstChild("HumanoidRootPart")
            if hrp then
                local vec = (hrp.Position - targetHRP.Position).Unit
                local angle = math.deg(math.acos(targetLook:Dot(vec)))

                -- Check if player is in front
                if angle <= maxAngle then
                    local dist = (hrp.Position - targetHRP.Position).Magnitude
                    if dist < closestDist then


Comments

1
Log in to join the conversation. Login
Scriptgooner's profile picture
Scriptgooner10 months ago

doesnt work twin

1

More universal scripts

See all
Script hub
158.0k
496.6k
Bumped 26 minutes ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Universal Script 📌
597.6k
4.2M
Bumped 1 hour ago
Script hub
50.9k
320.4k
Bumped 3 hours ago

Script hub

Nameless Admin

Script hub
176.8k
1.6M
Bumped 5 hours ago
Key System
Script hub
46.8k
11.6k
Bumped 7 hours ago
Key System
Paid