100% acharam este documento útil (1 voto)
930 visualizações3 páginas

Script de Kill

Enviado por

hackersroblox66
Direitos autorais
© © All Rights Reserved
Levamos muito a sério os direitos de conteúdo. Se você suspeita que este conteúdo é seu, reivindique-o aqui.
Formatos disponíveis
Baixe no formato TXT, PDF, TXT ou leia on-line no Scribd
100% acharam este documento útil (1 voto)
930 visualizações3 páginas

Script de Kill

Enviado por

hackersroblox66
Direitos autorais
© © All Rights Reserved
Levamos muito a sério os direitos de conteúdo. Se você suspeita que este conteúdo é seu, reivindique-o aqui.
Formatos disponíveis
Baixe no formato TXT, PDF, TXT ou leia on-line no Scribd

local playerService = game:GetService('Players')

local runService = game:GetService('RunService')


local player = [Link]
local selectedPlayer = nil
local isVisualizing = false
local visualizationConnection = nil

-- Função para encontrar jogadores pelo nome


local function gplr(String)
local strl = String:lower()
local Found = {}
for _, v in pairs(playerService:GetPlayers()) do
if [Link]:lower():sub(1, #strl) == strl then
[Link](Found, v)
end
end
return Found
end

-- Função para teleportar para coordenadas específicas


local function teleportToCoordinates()
[Link] = [Link]([Link](-47, -469, -
44))
end

-- Função para seguir e teleportar


local function followAndTeleport(targetName)
local Target = gplr(targetName)
if Target[1] then
Target = Target[1]

-- Certifique-se de que o personagem local e o alvo têm HumanoidRootPart


if not [Link] or not
[Link]:FindFirstChild("HumanoidRootPart") then
return
end

-- Loop para seguir o jogador alvo


local connection
connection = [Link]:Connect(function()
if [Link] and
[Link]:FindFirstChild("HumanoidRootPart") then
-- Posicionar o personagem local no chão perto do alvo
local targetCFrame = [Link]
local newCFrame = [Link]([Link].X,
[Link].Y, [Link].Z)
[Link] = newCFrame +
[Link](0, 1, 0) -- Manter uma pequena distância acima do solo

-- Verifica se o jogador alvo está sentado


if [Link]:FindFirstChild("Humanoid") and
[Link] then
teleportToCoordinates() -- Teletransporta quando o jogador se
sentar

-- Desconectar o loop após o teleporte


connection:Disconnect()
end
else
-- Desconecta se o alvo sair do jogo ou se o personagem não existir
mais
if not [Link] or not
[Link]:FindFirstChild("HumanoidRootPart") then
connection:Disconnect()
end
end
end)
end
end

local jogadorSelecionado = nil


local playerNameInput = nil

--// Input para selecionar jogador


Window:AddInput({
Title = "Nome do Jogador",
Description = "Digite as 3 primeiras letras",
Tab = Main,
Callback = function(value)
playerNameInput = value
jogadorSelecionado = nil -- Resetar jogadorSelecionado
for _, jogador in ipairs(playerService:GetPlayers()) do
if [Link]([Link]([Link]),
[Link](playerNameInput), 1, true) == 1 then
jogadorSelecionado = jogador
Window:Notify({
Title = "Jogador Selecionado",
Description = "Jogador encontrado: " .. [Link],
Duration = 5
})
break
end
end

if not jogadorSelecionado then


Window:Notify({
Title = "Erro",
Description = "Nenhum jogador encontrado com essas letras",
Duration = 5
})
end
end
})

--// Toggle para visualizar o jogador selecionado


Window:AddToggle({
Title = "Visualizar Jogador",
Description = "Focar a câmera no jogador selecionado",
Tab = Main,
Callback = function(ativado)
local camera = [Link]
if ativado and jogadorSelecionado and [Link] then
[Link] = [Link]
Window:Notify({
Title = "Visualizando Jogador",
Description = "Você está visualizando " .. [Link],
Duration = 5
})
else
[Link] = [Link]
Window:Notify({
Title = "Visualização Desativada",
Description = "Você voltou a visualizar seu personagem",
Duration = 5
})
end
end,
})

--// Botão para seguir e teletransportar ao sentar


Window:AddButton({
Title = "Matar Jogador",
Description = "Mata o jogador selecionado.",
Tab = Main,
Callback = function()
if jogadorSelecionado then
followAndTeleport([Link])
else
Window:Notify({
Title = "Erro",
Description = "Nenhum jogador selecionado para seguir.",
Duration = 5
})
end
end
})

Você também pode gostar