
835 Views
1.8k Executions
Jojo script 0912
Universal Script 📌
Lightnin_700First script
10 months ago
Please login to perform these actions:Does it work?
No reports yetNo 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
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









doesnt work twin