Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local Debris = game:GetService("Debris")
- local Mouse = Players.LocalPlayer:GetMouse()
- local MainGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextButton = Instance.new("TextButton")
- local TextButton_2 = Instance.new("TextButton")
- local TextButton_3 = Instance.new("TextButton")
- local TextButton_4 = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local Frame_2 = Instance.new("Frame")
- local Frame_3 = Instance.new("Frame")
- local Frame_4 = Instance.new("Frame")
- local Frame_5 = Instance.new("Frame")
- local TpPlr = Instance.new("TextButton")
- local TpPlr_2 = Instance.new("TextButton")
- local TpPlr_3 = Instance.new("TextButton")
- local TpPlr_4 = Instance.new("TextButton")
- local TpPlr_5 = Instance.new("TextButton")
- local TextBox = Instance.new("TextBox")
- local TextLabel_2 = Instance.new("TextLabel")
- local TpPlr_6 = Instance.new("TextButton")
- local TpPlr_7 = Instance.new("TextButton")
- local MainGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextButton = Instance.new("TextButton")
- local TextButton_2 = Instance.new("TextButton")
- local TextButton_3 = Instance.new("TextButton")
- local TextButton_4 = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local Frame_2 = Instance.new("Frame")
- local Frame_3 = Instance.new("Frame")
- local Frame_4 = Instance.new("Frame")
- local Frame_5 = Instance.new("Frame")
- local TpPlr = Instance.new("TextButton")
- local TpPlr_2 = Instance.new("TextButton")
- local TpPlr_3 = Instance.new("TextButton")
- local TpPlr_4 = Instance.new("TextButton")
- local TpPlr_5 = Instance.new("TextButton")
- local TextBox = Instance.new("TextBox")
- local TextLabel_2 = Instance.new("TextLabel")
- local TpPlr_6 = Instance.new("TextButton")
- local TpPlr_7 = Instance.new("TextButton")
- MainGui.Name = "MainGui"
- MainGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- MainGui.ResetOnSpawn = false
- Frame.Parent = MainGui
- Frame.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame.BackgroundColor3 = Color3.fromRGB(94, 94, 94)
- Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Active = true
- Frame.Draggable = true
- Frame.Position = UDim2.new(0.492462307, -86, 0.620498598, -168)
- Frame.Size = UDim2.new(0, 385, 0, 471)
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.BorderSizePixel = 0
- TextButton.Position = UDim2.new(0.0391176678, 0, 0.116598919, 0)
- TextButton.Size = UDim2.new(0, 163, 0, 43)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Reach"
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextSize = 27.000
- TextButton.TextWrapped = true
- TextButton_2.Parent = Frame
- TextButton_2.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_2.BorderSizePixel = 0
- TextButton_2.Position = UDim2.new(0.0391176678, 0, 0.243297473, 0)
- TextButton_2.Size = UDim2.new(0, 163, 0, 43)
- TextButton_2.Font = Enum.Font.SourceSans
- TextButton_2.Text = "Blatant Script [OP]"
- TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_2.TextSize = 26.000
- TextButton_3.Parent = Frame
- TextButton_3.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TextButton_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_3.BorderSizePixel = 0
- TextButton_3.Position = UDim2.new(0.0391176678, 0, 0.369714379, 0)
- TextButton_3.Size = UDim2.new(0, 163, 0, 43)
- TextButton_3.Font = Enum.Font.SourceSans
- TextButton_3.Text = "Toggle Walkspeed"
- TextButton_3.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_3.TextSize = 20.000
- TextButton_4.Parent = Frame
- TextButton_4.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TextButton_4.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_4.BorderSizePixel = 0
- TextButton_4.Position = UDim2.new(0.0391176678, 0, 0.498236656, 0)
- TextButton_4.Size = UDim2.new(0, 163, 0, 43)
- TextButton_4.Font = Enum.Font.SourceSans
- TextButton_4.Text = "Snipe Script (Toggle)"
- TextButton_4.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_4.TextSize = 20.000
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
- TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.0183384493, 0, 0.0290077291, 0)
- TextLabel.Size = UDim2.new(0, 368, 0, 36)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Prema.lua"
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- Frame_2.Parent = Frame
- Frame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame_2.BorderSizePixel = 0
- Frame_2.Position = UDim2.new(0.998749495, 0, -0.00329045579, 0)
- Frame_2.Size = UDim2.new(0, 9, 0, 478)
- Frame_3.Parent = Frame
- Frame_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame_3.BorderSizePixel = 0
- Frame_3.Position = UDim2.new(-0.0207792204, 0, -0.0103724776, 0)
- Frame_3.Size = UDim2.new(0, 11, 0, 478)
- Frame_4.Parent = Frame
- Frame_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame_4.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame_4.BorderSizePixel = 0
- Frame_4.Position = UDim2.new(-0.0051948051, 0, -0.0103724618, 0)
- Frame_4.Size = UDim2.new(0, 395, 0, 10)
- Frame_5.Parent = Frame
- Frame_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame_5.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame_5.BorderSizePixel = 0
- Frame_5.Position = UDim2.new(-0.0207792204, 0, 0.991965115, 0)
- Frame_5.Size = UDim2.new(0, 402, 0, 10)
- TpPlr.Name = "Tp Plr"
- TpPlr.Parent = Frame
- TpPlr.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TpPlr.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr.BorderSizePixel = 0
- TpPlr.Position = UDim2.new(0.517039776, 0, 0.243297473, 0)
- TpPlr.Size = UDim2.new(0, 171, 0, 43)
- TpPlr.Font = Enum.Font.SourceSans
- TpPlr.Text = "Teleport Plr"
- TpPlr.TextColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr.TextSize = 26.000
- TpPlr_2.Name = "Tp Plr"
- TpPlr_2.Parent = Frame
- TpPlr_2.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TpPlr_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_2.BorderSizePixel = 0
- TpPlr_2.Position = UDim2.new(0.517039776, 0, 0.369034678, 0)
- TpPlr_2.Size = UDim2.new(0, 171, 0, 43)
- TpPlr_2.Font = Enum.Font.SourceSans
- TpPlr_2.Text = "Teleport Map 5"
- TpPlr_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_2.TextSize = 26.000
- TpPlr_3.Name = "Tp Plr"
- TpPlr_3.Parent = Frame
- TpPlr_3.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TpPlr_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_3.BorderSizePixel = 0
- TpPlr_3.Position = UDim2.new(0.517039776, 0, 0.625934899, 0)
- TpPlr_3.Size = UDim2.new(0, 171, 0, 43)
- TpPlr_3.Font = Enum.Font.SourceSans
- TpPlr_3.Text = "View Plr"
- TpPlr_3.TextColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_3.TextSize = 26.000
- TpPlr_4.Name = "Tp Plr"
- TpPlr_4.Parent = Frame
- TpPlr_4.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TpPlr_4.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_4.BorderSizePixel = 0
- TpPlr_4.Position = UDim2.new(0.517039776, 0, 0.744830847, 0)
- TpPlr_4.Size = UDim2.new(0, 171, 0, 43)
- TpPlr_4.Font = Enum.Font.SourceSans
- TpPlr_4.Text = "Unview"
- TpPlr_4.TextColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_4.TextSize = 26.000
- TpPlr_5.Name = "Tp Plr"
- TpPlr_5.Parent = Frame
- TpPlr_5.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TpPlr_5.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_5.BorderSizePixel = 0
- TpPlr_5.Position = UDim2.new(0.0391176678, 0, 0.625934899, 0)
- TpPlr_5.Size = UDim2.new(0, 167, 0, 43)
- TpPlr_5.Font = Enum.Font.SourceSans
- TpPlr_5.Text = "Tp Spawn"
- TpPlr_5.TextColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_5.TextSize = 26.000
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextBox.BorderSizePixel = 0
- TextBox.Position = UDim2.new(0.515072107, 0, 0.11460264, 0)
- TextBox.Size = UDim2.new(0, 171, 0, 43)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.Text = "Type Player Name Here"
- TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextBox.TextSize = 14.000
- TextLabel_2.Parent = Frame
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.BackgroundTransparency = 1.000
- TextLabel_2.BorderColor3 = Color3.fromRGB(107, 107, 107)
- TextLabel_2.BorderSizePixel = 0
- TextLabel_2.Position = UDim2.new(0.101937354, 0, 0.81662029, 0)
- TextLabel_2.Size = UDim2.new(0, 303, 0, 82)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.Text = "Made by .xyz0001"
- TextLabel_2.TextColor3 = Color3.fromRGB(63, 63, 63)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14.000
- TextLabel_2.TextWrapped = true
- TpPlr_6.Name = "Tp Plr"
- TpPlr_6.Parent = Frame
- TpPlr_6.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TpPlr_6.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_6.BorderSizePixel = 0
- TpPlr_6.Position = UDim2.new(0.0391176678, 0, 0.744830847, 0)
- TpPlr_6.Size = UDim2.new(0, 167, 0, 43)
- TpPlr_6.Font = Enum.Font.SourceSans
- TpPlr_6.Text = "ClickTp Tool"
- TpPlr_6.TextColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_6.TextSize = 26.000
- TpPlr_7.Name = "Tp Plr"
- TpPlr_7.Parent = Frame
- TpPlr_7.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- TpPlr_7.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_7.BorderSizePixel = 0
- TpPlr_7.Position = UDim2.new(0.517039776, 0, 0.496423215, 0)
- TpPlr_7.Size = UDim2.new(0, 171, 0, 43)
- TpPlr_7.Font = Enum.Font.SourceSans
- TpPlr_7.Text = "Teleport to Map 4"
- TpPlr_7.TextColor3 = Color3.fromRGB(0, 0, 0)
- TpPlr_7.TextSize = 26.000
- TpPlr_7.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Spawn4.SpawnLocation.CFrame
- end)
- TpPlr_6.MouseButton1Click:Connect(function()
- local tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.Name = "Prema.lua TP"
- tool.Parent = game.Players.LocalPlayer.Backpack
- local mouse = game.Players.LocalPlayer:GetMouse()
- local function teleport()
- local pos = mouse.Hit + Vector3.new(0,2.5,0)
- if valid(pos) then
- pos = CFrame.new(pos.X,pos.Y,pos.Z)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
- end
- end
- function valid(pos)
- return pos.Y >= 0 and pos.Y <= 50
- end
- local connection
- tool.Equipped:Connect(function()
- connection = mouse.Button1Down:Connect(teleport)
- end)
- tool.Unequipped:Connect(function()
- if connection then
- connection:Disconnect()
- connection = nil
- end
- end)
- end)
- local function teleportToPlayer(partialName)
- for _, player in ipairs(game.Players:GetPlayers()) do
- if string.sub(player.Name, 1, #partialName):lower() == partialName:lower() then
- local character = player.Character
- if character then
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- local torso = character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso") or character:FindFirstChild("LowerTorso")
- if humanoid and torso then
- game.Players.LocalPlayer.Character:MoveTo(torso.Position)
- return
- else
- warn("Player has no suitable body parts to teleport to.")
- return
- end
- else
- warn("Player has no character.")
- return
- end
- end
- end
- warn("Player not found.")
- end
- TpPlr.MouseButton1Click:Connect(function()
- local partialName = TextBox.Text
- teleportToPlayer(partialName)
- end)
- local function teleportToSpawn()
- local spawnLocation = game.Workspace.Spawn.Spawns.SpawnLocation
- game.Players.LocalPlayer.Character:MoveTo(spawnLocation.Position)
- end
- local function teleportToMap4()
- local map4Location = game.Workspace.Spawn4.SurfaceLight
- game.Players.LocalPlayer.Character:MoveTo(map4Location.Position)
- end
- local function teleportToMap5()
- local map5Location = game.Workspace.Spawn5.SurfaceLight
- game.Players.LocalPlayer.Character:MoveTo(map5Location.Position)
- end
- TpPlr_5.MouseButton1Click:Connect(teleportToSpawn)
- TpPlr_7.MouseButton1Click:Connect(teleportToMap4)
- TpPlr_2.MouseButton1Click:Connect(teleportToMap5)
- local function viewPlayer(partialName)
- for _, player in ipairs(game.Players:GetPlayers()) do
- if string.sub(player.Name, 1, #partialName):lower() == partialName:lower() then
- game.Workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
- return
- end
- end
- warn("Player not found.")
- end
- local function unviewPlayer()
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
- end
- TpPlr_3.MouseButton1Click:Connect(function()
- local partialName = TextBox.Text
- viewPlayer(partialName)
- end)
- TpPlr_4.MouseButton1Click:Connect(unviewPlayer)
- local function JEXLYC_fake_script()
- local script = Instance.new('LocalScript', TextButton)
- local button = script.Parent
- local function executeReachScript()
- local Settings = {
- ["Circle"] = {
- ["ReachEnabled"] = true,
- ["Reach"] = 20,
- }
- }
- local ReachSettings = Settings["Circle"]
- RunService.Stepped:Connect(function()
- if ReachSettings["ReachEnabled"] then
- local success, error = pcall(function()
- local Handle = Players.LocalPlayer.Character:FindFirstChildOfClass("Tool").Handle
- for _, Player in pairs(Players:GetPlayers()) do
- local Character = Player.Character
- if Character and Character ~= Players.LocalPlayer.Character and Character.Humanoid.Health ~= 0 and (Character.HumanoidRootPart.Position - Handle.Position).Magnitude <= ReachSettings["Reach"] then
- Character["Left Arm"]:BreakJoints()
- Character["Left Leg"]:BreakJoints()
- Character["Right Leg"]:BreakJoints()
- Character["Left Arm"].CFrame = Handle.CFrame
- Character["Left Leg"].CFrame = Handle.CFrame
- Character["Right Leg"].CFrame = Handle.CFrame
- Character["Left Arm"].Transparency = 1
- Character["Left Leg"].Transparency = 1
- Character["Right Leg"].Transparency = 1
- end
- end
- end)
- end
- end)
- end
- button.MouseButton1Click:Connect(executeReachScript)
- end
- coroutine.wrap(JEXLYC_fake_script)()
- local function AZYOAH_fake_script()
- local script = Instance.new('LocalScript', TextButton_2)
- local button = script.Parent
- local Player = Players.LocalPlayer
- local States = { AutoAim = false, Mode = 1 }
- local function createAutoAimFrame()
- local AutoAimFrame = Instance.new("Frame", MainGui)
- AutoAimFrame.Name = "AutoAimFrame"
- AutoAimFrame.BackgroundTransparency = 1
- AutoAimFrame.Position = UDim2.new(0.007, 0, 0.938, 0)
- AutoAimFrame.Size = UDim2.new(0, 289, 0, 42)
- local AutoAimLabel = Instance.new("TextLabel", AutoAimFrame)
- AutoAimLabel.Name = "AutoAimLabel"
- AutoAimLabel.BackgroundTransparency = 1
- AutoAimLabel.Position = UDim2.new(0.042, 0, 0, 0)
- AutoAimLabel.Size = UDim2.new(0, 296, 0, 33)
- AutoAimLabel.Font = Enum.Font.SourceSansBold
- AutoAimLabel.Text = "Mode: Teleport"
- AutoAimLabel.TextColor3 = Color3.new(1, 0, 0)
- AutoAimLabel.TextScaled = true
- AutoAimLabel.TextSize = 14
- AutoAimLabel.TextWrapped = true
- AutoAimLabel.TextXAlignment = Enum.TextXAlignment.Left
- local function toggleMode()
- States.Mode = 3 - States.Mode
- AutoAimLabel.Text = "Mode: " .. (States.Mode == 1 and "Teleport" or "Looking")
- AutoAimLabel.TextColor3 = States.AutoAim and Color3.new(0.043, 1, 0.043) or Color3.new(1, 0, 0.016)
- end
- UserInputService.InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.B and not UserInputService:GetFocusedTextBox() then
- States.AutoAim = not States.AutoAim
- end
- end)
- local function findNearestPlayer(Position)
- local List = {unpack(Players:GetPlayers())}
- local Torso, Distance = nil, 15
- for _, v in pairs(List) do
- if v and v ~= Player then
- local HumanoidRootPart = v.Character:FindFirstChild("HumanoidRootPart")
- local Humanoid = v.Character:FindFirstChild("Humanoid")
- if HumanoidRootPart and Humanoid and Humanoid.Health > 0 then
- local CurrentDistance = (HumanoidRootPart.Position - Position).magnitude
- if CurrentDistance < Distance then
- Torso, Distance = HumanoidRootPart, CurrentDistance
- end
- end
- end
- end
- return Torso
- end
- local function aimAtNearestPlayer()
- if States.AutoAim then
- local Root = Player.Character:FindFirstChild("HumanoidRootPart")
- local MousePos = findNearestPlayer(Root.Position)
- if MousePos then
- if States.Mode == 1 then
- Player.Character:SetPrimaryPartCFrame(CFrame.new(Vector3.new(MousePos.Position.X, Root.Position.Y, MousePos.Position.Z)))
- else
- local Direction = (MousePos.Position - Root.Position).unit
- Root.CFrame = CFrame.new(Root.Position, Root.Position + Direction)
- end
- end
- end
- end
- RunService.RenderStepped:Connect(aimAtNearestPlayer)
- local function destroyScript()
- if AutoAimFrame then
- AutoAimFrame:Destroy()
- end
- if script then
- script:Destroy()
- end
- end
- local function onChatted(player, message)
- if player == Player then
- local lowerMessage = message:lower()
- if lowerMessage == "/mode 1" or lowerMessage == "/mode tp" then
- States.Mode = 1
- AutoAimLabel.Text = "Mode: Teleport"
- elseif lowerMessage == "/mode 2" or lowerMessage == "/mode looking" then
- States.Mode = 2
- AutoAimLabel.Text = "Mode: Looking"
- elseif lowerMessage == "/destroy" then
- destroyScript()
- end
- end
- end
- Player.Chatted:Connect(onChatted)
- end
- button.MouseButton1Click:Connect(createAutoAimFrame)
- end
- coroutine.wrap(AZYOAH_fake_script)()
- local function JXEMZ_fake_script()
- local script = Instance.new('LocalScript', TextButton_3)
- local button = script.Parent
- local isWalkspeedToggled = false
- local storedWalkspeed
- local function toggleWalkspeed()
- local player = Players.LocalPlayer
- local originalWalkspeed = player.Character and player.Character:FindFirstChildOfClass("Humanoid") and player.Character:FindFirstChildOfClass("Humanoid").WalkSpeed or 16
- if not storedWalkspeed then
- storedWalkspeed = originalWalkspeed
- end
- isWalkspeedToggled = not isWalkspeedToggled
- if isWalkspeedToggled then
- player.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 40
- else
- player.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = storedWalkspeed
- end
- end
- button.MouseButton1Click:Connect(toggleWalkspeed)
- end
- coroutine.wrap(JXEMZ_fake_script)()
- local function BNWB_fake_script()
- local script = Instance.new('LocalScript', TextButton_4)
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local Mouse = LocalPlayer:GetMouse()
- local HighlightColor = Color3.fromRGB(255, 0, 0)
- local function createHighlight(character)
- local highlight = Instance.new("SelectionBox")
- highlight.Name = "Highlight"
- highlight.Adornee = character.PrimaryPart
- highlight.Color3 = HighlightColor
- highlight.LineThickness = 0.05
- highlight.Transparency = 0.5
- highlight.Parent = character.PrimaryPart
- return highlight
- end
- local function createLabel(character)
- local billboardGui = Instance.new("BillboardGui")
- local textLabel = Instance.new("TextLabel")
- billboardGui.Adornee = character.PrimaryPart
- billboardGui.Size = UDim2.new(0, 100, 0, 50)
- billboardGui.StudsOffset = Vector3.new(0, 5, 0)
- billboardGui.Parent = character.PrimaryPart
- textLabel.BackgroundTransparency = 1
- textLabel.Size = UDim2.new(0, 100, 0, 50)
- textLabel.Font = Enum.Font.SourceSansBold
- textLabel.Text = "Snipe"
- textLabel.TextColor3 = Color3.new(1, 0, 0)
- textLabel.TextScaled = true
- textLabel.Parent = billboardGui
- return billboardGui
- end
- local highlightedCharacter = nil
- local highlightObject = nil
- local labelObject = nil
- local targetPlayer = nil
- local snipeEnabled = false
- local connection1 = nil
- local connection2 = nil
- local connection3 = nil
- local function toggleSnipeScript()
- snipeEnabled = not snipeEnabled
- print("Snipe Script " .. (snipeEnabled and "enabled" or "disabled"))
- if snipeEnabled then
- connection1 = RunService.RenderStepped:Connect(function()
- if not snipeEnabled then return end
- local Target = Mouse.Target
- if Target then
- local player = Players:GetPlayerFromCharacter(Target.Parent)
- if player and player ~= LocalPlayer then
- if highlightedCharacter ~= player.Character then
- if highlightObject then
- highlightObject:Destroy()
- end
- if labelObject then
- labelObject:Destroy()
- end
- highlightedCharacter = player.Character
- highlightObject = createHighlight(highlightedCharacter)
- labelObject = createLabel(highlightedCharacter)
- end
- else
- if highlightObject then
- highlightObject:Destroy()
- highlightObject = nil
- highlightedCharacter = nil
- end
- if labelObject then
- labelObject:Destroy()
- labelObject = nil
- end
- end
- end
- end)
- connection2 = RunService.RenderStepped:Connect(function()
- if not snipeEnabled or not targetPlayer or not targetPlayer.Character or not targetPlayer.Character:FindFirstChild("HumanoidRootPart") or targetPlayer.Character:FindFirstChild("Humanoid").Health <= 0 then
- targetPlayer = nil
- return
- end
- LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = targetPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame - Vector3.new(0, 5, 0)
- end)
- connection3 = Mouse.Button1Down:Connect(function()
- local target = Mouse.Target
- if target then
- targetPlayer = Players:GetPlayerFromCharacter(target.Parent)
- if targetPlayer and targetPlayer ~= LocalPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart") then
- LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = targetPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
- end
- end
- end)
- else
- if connection1 then
- connection1:Disconnect()
- connection1 = nil
- end
- if connection2 then
- connection2:Disconnect()
- connection2 = nil
- end
- if connection3 then
- connection3:Disconnect()
- connection3 = nil
- end
- targetPlayer = nil
- end
- end
- local button = script.Parent
- button.MouseButton1Click:Connect(toggleSnipeScript)
- end
- coroutine.wrap(BNWB_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment