-
Notifications
You must be signed in to change notification settings - Fork 6
Description
loadstring(game:HttpGet("--------------------------------------------------------------------------------------------------------------------------------- -- === Tab 9: troll === -- ----------------------------------------------------------------------------------------------------------------------------------- local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local LocalPlayer = Players.LocalPlayer local selectedPlayer = nil local isFollowingKill = false local isFollowingPull = false local running = false local connection = nil local flingConnection = nil local originalPosition = nil local savedPosition = nil local originalProperties = {} local selectedKillPullMethod = nil local selectedFlingMethod = nil local soccerBall = nil local couch = nil local isSpectating = false local spectatedPlayer = nil local characterConnection = nil local flingToggle = nil local SetNetworkOwnerEvent = Instance.new("RemoteEvent") SetNetworkOwnerEvent.Name = "SetNetworkOwnerEvent_" .. tostring(math.random(1000, 9999)) SetNetworkOwnerEvent.Parent = ReplicatedStorage local serverScriptCode = [[ local ReplicatedStorage = game:GetService("ReplicatedStorage") local event = ReplicatedStorage:WaitForChild("]] .. SetNetworkOwnerEvent.Name .. [[") event.OnServerEvent:Connect(function(player, part, networkOwner) if part and part:IsA("BasePart") then pcall(function() part:SetNetworkOwner(networkOwner) part.Anchored = false part.CanCollide = true part.CanTouch = true end) end end) ]] pcall(function() loadstring(serverScriptCode)() end) local function disableCarClient() local backpack = LocalPlayer:WaitForChild("Backpack") local carClient = backpack:FindFirstChild("CarClient") if carClient and carClient:IsA("LocalScript") then carClient.Disabled = true end end local function enableCarClient() local backpack = LocalPlayer:WaitForChild("Backpack") local carClient = backpack:FindFirstChild("CarClient") if carClient and carClient:IsA("LocalScript") then carClient.Disabled = false end end local function getPlayerNames() local playerNames = {} for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then table.insert(playerNames, player.Name) end end return playerNames end local function updateDropdown(dropdown, spectateToggle) pcall(function() local currentValue = dropdown:Get() local playerNames = getPlayerNames() dropdown:Set(playerNames) -- Usando :Set como solicitado if currentValue and not table.find(playerNames, currentValue) then dropdown:Set("") selectedPlayer = nil if isSpectating then stopSpectating() if spectateToggle then pcall(function() spectateToggle:Set(false) end) end end if running or isFollowingKill or isFollowingPull then running = false isFollowingKill = false isFollowingPull = false if connection then connection:Disconnect() connection = nil end if flingConnection then flingConnection:Disconnect() flingConnection = nil end if flingToggle then pcall(function() flingToggle:Set(false) end) end end elseif currentValue and table.find(playerNames, currentValue) then dropdown:Set(currentValue) -- Mantém seleção se jogador ainda está no jogo end end) end local function spectatePlayer(playerName) if characterConnection then characterConnection:Disconnect() characterConnection = nil end local targetPlayer = Players:FindFirstChild(playerName) if targetPlayer and targetPlayer ~= LocalPlayer then spectatedPlayer = targetPlayer isSpectating = true local function updateCamera() if not isSpectating or not spectatedPlayer then return end if spectatedPlayer.Character and spectatedPlayer.Character:FindFirstChild("Humanoid") then Workspace.CurrentCamera.CameraSubject = spectatedPlayer.Character.Humanoid else Workspace.CurrentCamera.CameraSubject = nil end end updateCamera() characterConnection = RunService.Heartbeat:Connect(function() if not isSpectating then characterConnection:Disconnect() characterConnection = nil return end pcall(updateCamera) end) spectatedPlayer.CharacterAdded:Connect(function() if isSpectating then updateCamera() end end) else isSpectating = false spectatedPlayer = nil end end local function stopSpectating() if characterConnection then characterConnection:Disconnect() characterConnection = nil end isSpectating = false spectatedPlayer = nil if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then Workspace.CurrentCamera.CameraSubject = LocalPlayer.Character.Humanoid Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom else Workspace.CurrentCamera.CameraSubject = nil Workspace.CurrentCamera.CameraType = Enum.CameraType.Custom end end -- Função para teletransportar para o jogador selecionado (com ancoragem segura) local function teleportToPlayer(playerName) local targetPlayer = Players:FindFirstChild(playerName) if targetPlayer and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart") then local myHRP = LocalPlayer.Character:FindFirstChild("HumanoidRootPart") local myHumanoid = LocalPlayer.Character:FindFirstChild("Humanoid") if not myHRP or not myHumanoid then print("Seu personagem não está totalmente carregado para teletransporte.") return end -- Zerar a fÃsica do personagem antes do teleporte for _, part in ipairs(LocalPlayer.Character:GetDescendants()) do if part:IsA("BasePart") then part.Velocity = Vector3.zero part.RotVelocity = Vector3.zero part.Anchored = true -- Ancorar temporariamente para evitar movimento end end -- Teleportar para a posição do jogador-alvo local success, errorMessage = pcall(function() myHRP.CFrame = CFrame.new(targetPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, 2, 0)) -- Leve elevação para evitar colisão com o chão end) if not success then warn("Erro ao teletransportar: " .. tostring(errorMessage)) return end -- Garantir que o Humanoid saia do estado sentado ou voando myHumanoid.Sit = false myHumanoid:ChangeState(Enum.HumanoidStateType.GettingUp) -- Aguardar 0,5 segundos com o personagem ancorado task.wait(0.5) -- Desancorar todas as partes do personagem e restaurar fÃsica for _, part in ipairs(LocalPlayer.Character:GetDescendants()) do if part:IsA("BasePart") then part.Anchored = false part.Velocity = Vector3.zero part.RotVelocity = Vector3.zero end end print("Teletransportado para o jogador: " .. playerName .. " com ancoragem segura.") else print("Jogador ou personagem não encontrado para teletransporte.") end end LocalPlayer.CharacterAdded:Connect(function(character) if isSpectating then stopSpectating() pcall(function() SpectateToggleTab10:Set(false) end) end end) local valor_do_nome_do_joagdor local DropdownPlayerTab2 = Tab9:AddDropdown({ Name = "Selecionar Jogador", Description = "Escolha um jogador para matar, puxar, visualizar ou aplicar fling", Default = "", Multi = false, Options = getPlayerNames(), Flag = "player list", Callback = function(selectedPlayerName) valor_do_nome_do_joagdor = selectedPlayerName if selectedPlayerName == "" or selectedPlayerName == nil then selectedPlayer = nil if running or isFollowingKill or isFollowingPull then running = false isFollowingKill = false isFollowingPull = false if connection then connection:Disconnect() end if flingConnection then flingConnection:Disconnect() end if flingToggle then pcall(function() flingToggle:Set(false) end) end end if isSpectating then stopSpectating() end else selectedPlayer = Players:FindFirstChild(selectedPlayerName) if isSpectating then stopSpectating() spectatePlayer(selectedPlayerName) end end end }) function UptadePlayers() local playerNames = {} for _, player in ipairs(Players:GetPlayers()) do if player.Name ~= LocalPlayer.Name then table.insert(playerNames, player.Name) end end DropdownPlayerTab2:Set(playerNames) end Tab9:AddButton({"Atualizar lista", function() UptadePlayers() end}) UptadePlayers() Tab9:AddButton({ Title = "Teleportar para Jogador", Desc = "Clique para teletransportar para o jogador selecionado", Callback = function() local selectedPlayerName = valor_do_nome_do_joagdor if selectedPlayerName and selectedPlayerName ~= "" then local success, errorMessage = pcall(teleportToPlayer, selectedPlayerName) if not success then warn("Erro ao teletransportar: " .. tostring(errorMessage)) end else print("Selecione um jogador antes de teletransportar.") end end }) local SpectateToggleTab10 = Tab9:AddToggle({ Name = "Visualizar Jogador", Description = "Ativa/desativa a visualização do jogador selecionado", Default = false, Callback = function(state) if state then if selectedPlayer then pcall(spectatePlayer, selectedPlayer.Name) else SpectateToggleTab10:Set(false) end else pcall(stopSpectating) end end }) -- Remoção automática de jogadores que saem Players.PlayerRemoving:Connect(function(player) updateDropdown(DropdownPlayerTab2, SpectateToggleTab10) if selectedPlayer == player then selectedPlayer = nil if isSpectating then stopSpectating() end if running then running = false if connection then connection:Disconnect() connection = nil end if flingConnection then flingConnection:Disconnect() flingConnection = nil end if flingToggle then flingToggle:Set(false) end end SpectateToggleTab10:Set(false) DropdownPlayerTab2:Set("") end end) -- Atualização automática quando um novo jogador entra Players.PlayerAdded:Connect(function() task.wait(1) -- pequeno delay para garantir que o jogador esteja pronto updateDropdown(DropdownPlayerTab2, SpectateToggleTab10) end) -- Inicializa o dropdown updateDropdown(DropdownPlayerTab2, SpectateToggleTab10) local Section = Tab9:AddSection({"Kill"}) local DropdownKillPullMethod = Tab9:AddDropdown({ Name = "Selecionar Método (Matar/Puxar)", Description = "Escolha o método para matar ou puxar", Options = {"Sofá", "Ônibus"}, Callback = function(value) selectedKillPullMethod = value end }) ------------------------------------------------------------------------------------------------------------------------------------------------------------------ --fling com sofa-- ------------------------------------------------------------------------------------------------------------------------------------------------------------------ local function equipSofa() local backpack = LocalPlayer:WaitForChild("Backpack") local sofa = backpack:FindFirstChild("Couch") or LocalPlayer.Character:FindFirstChild("Couch") if not sofa then local args = { [1] = "PickingTools", [2] = "Couch" } local success = pcall(function() ReplicatedStorage:WaitForChild("RE"):WaitForChild("1Too1l"):InvokeServer(unpack(args)) end) if not success then return false end repeat sofa = backpack:FindFirstChild("Couch") task.wait() until sofa or task.wait(5) if not sofa then return false end end if sofa.Parent ~= LocalPlayer.Character then sofa.Parent = LocalPlayer.Character end return true end local function killWithSofa(targetPlayer) if not targetPlayer or not targetPlayer.Character or not LocalPlayer.Character then return end if not equipSofa() then return end isFollowingKill = true originalPosition = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").Position end local function pullWithSofa(targetPlayer) if not targetPlayer or not targetPlayer.Character or not LocalPlayer.Character then return end if not equipSofa() then return end isFollowingPull = true originalPosition = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").Position end ---------------------------------------------------------------------------- --fling com onibus-- ---------------------------------------------------------------------------- local function killWithBus(targetPlayer) if not targetPlayer or not targetPlayer.Character or not LocalPlayer.Character then return end local character = LocalPlayer.Character local humanoid = character:FindFirstChildOfClass("Humanoid") local myHRP = character:FindFirstChild("HumanoidRootPart") if not humanoid or not myHRP then return end savedPosition = myHRP.Position pcall(function() myHRP.Anchored = true myHRP.CFrame = CFrame.new(Vector3.new(1181.83, 76.08, -1158.83)) task.wait(0.2) myHRP.Velocity = Vector3.zero myHRP.RotVelocity = Vector3.zero myHRP.Anchored = false if humanoid then humanoid:ChangeState(Enum.HumanoidStateType.GettingUp) end end) task.wait(0.5) disableCarClient() local args = { [1] = "DeleteAllVehicles" } pcall(function() ReplicatedStorage:WaitForChild("RE"):WaitForChild("1Ca1r"):FireServer(unpack(args)) end) args = { [1] = "PickingCar", [2] = "SchoolBus" } pcall(function() ReplicatedStorage:WaitForChild("RE"):WaitForChild("1Ca1r"):FireServer(unpack(args)) end) task.wait(1) local vehiclesFolder = Workspace:FindFirstChild("Vehicles") if not vehiclesFolder then return end local busName = LocalPlayer.Name .. "Car" local bus = vehiclesFolder:FindFirstChild(busName) if not bus then return end pcall(function() myHRP.Anchored = true myHRP.CFrame = CFrame.new(Vector3.new(1171.15, 79.45, -1166.2)) task.wait(0.2) myHRP.Velocity = Vector3.zero myHRP.RotVelocity = Vector3.zero myHRP.Anchored = false humanoid:ChangeState(Enum.HumanoidStateType.Seated) end) local sitStart = tick() repeat task.wait() if tick() - sitStart > 10 then return end until humanoid.Sit for _, part in ipairs(bus:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false pcall(function() part:SetNetworkOwner(nil) end) end end running = true connection = RunService.Stepped:Connect(function() if not running then return end for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end) local lastUpdate = tick() local updateInterval = 0.05 local startTime = tick() flingConnection = RunService.Heartbeat:Connect(function() if not running then return end local targetCharacter = targetPlayer.Character or targetPlayer.CharacterAdded:Wait() local newTargetHRP = targetCharacter:FindFirstChild("HumanoidRootPart") local newTargetHumanoid = targetCharacter:FindFirstChild("Humanoid") if not newTargetHRP or not newTargetHumanoid then return end if not myHRP or not humanoid then running = false return end if tick() - lastUpdate < updateInterval then return end lastUpdate = tick() local offset = Vector3.new(math.random(-10, 10), 0, math.random(-10, 10)) pcall(function() local targetPosition = newTargetHRP.Position + offset bus:PivotTo( CFrame.new(targetPosition) * CFrame.Angles( math.rad(Workspace.DistributedGameTime * 12000), math.rad(Workspace.DistributedGameTime * 15000), math.rad(Workspace.DistributedGameTime * 18000) ) ) end) local playerSeated = false for _, seat in ipairs(bus:GetDescendants()) do if (seat:IsA("Seat") or seat:IsA("VehicleSeat")) and seat.Name ~= "VehicleSeat" then if seat.Occupant == newTargetHumanoid then playerSeated = true break end end end if playerSeated or tick() - startTime > 10 then running = false if connection then connection:Disconnect() connection = nil end if flingConnection then flingConnection:Disconnect() flingConnection = nil end pcall(function() bus:PivotTo(CFrame.new(Vector3.new(-76.6, -401.97, -84.26))) end) task.wait(0.5) disableCarClient() local args = { [1] = "DeleteAllVehicles" } pcall(function() ReplicatedStorage:WaitForChild("RE"):WaitForChild("1Ca1r"):FireServer(unpack(args)) end) if character then local myHRP = character:FindFirstChild("HumanoidRootPart") if myHRP and savedPosition then pcall(function() myHRP.Anchored = true myHRP.CFrame = CFrame.new(savedPosition + Vector3.new(0, 5, 0)) task.wait(0.2) myHRP.Velocity = Vector3.zero myHRP.RotVelocity = Vector3.zero myHRP.Anchored = false if humanoid then humanoid:ChangeState(Enum.HumanoidStateType.GettingUp) end end) end end if character then for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = true part.Velocity = Vector3.zero part.RotVelocity = Vector3.zero end end end local myHumanoid = character and character:FindFirstChild("Humanoid") if myHumanoid then myHumanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, true) end for _, seat in ipairs(Workspace:GetDescendants()) do if seat:IsA("Seat") or seat:IsA("VehicleSeat") then seat.Disabled = false end end pcall(function() ReplicatedStorage:"))()