ESP Roblox v2
ESP Roblox v2
*IGNORE FOLLOWING IF YOU AREN'T USING A CUSTOM UI LIBRARY. IF YOU DON'T KNOW IF
YOU ARE, YOU AREN'T!*
If you would like to use this in your own GUI, or GUI library such as Kavo, or
rayfield, then do the following.
1. Create a toggle in your GUI.
2. Set the callback function of the toggle to the _G.ESPToggle Variable
- It should look something like this,
callback function(v)
_G.ESPToggle = v
3. Delete all contents of this script that contain any UI creation. (Scroll to
very bottom for more funtions of UI that need to be deleted)
4. Find my discord in the video description, and tag me in a message requesting
help if you need any.
]]
-- Services and lp
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Workspace = game:GetService("Workspace")
-- The following screen gui, frame and button creation may be deleted if you are
using a custom GUI library.
-- Create the screen gui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "ESPToggleGui"
screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
-- Create a frame
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(1, 0, 1, 0)
mainFrame.BackgroundTransparency = 1
mainFrame.Parent = screenGui