Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bindableFunction= Instance.new("BindableFunction")
- game.StarterGui:SetCore("SendNotification", {
- Title = "Credit BINCOOD";
- Text = "https://www.youtube.com/@BINCOOD";
- Icon = "RBXID OR BLANK";
- Duration = "DURATION IN SECONDS";
- callbakc = bindableFunction;
- })
- --https://www.youtube.com/@BINCOOD
- local threshold = 1000
- wait(1)
- local function createEsp(player)
- -- Создаем объекты для esp
- local Esp = Instance.new("BillboardGui")
- Esp.Name = ""
- Esp.Size = UDim2.new(1.75, 0, 1.75, 0)
- Esp.AlwaysOnTop = true
- Esp.LightInfluence = 0
- Esp.Adornee = player.Character.Head
- Esp.Parent = player.Character.Head
- local Frame = Instance.new("Frame", Esp)
- Frame.Size = UDim2.new(1, 0, 1, 0)
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BorderSizePixel = 4
- Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- --credit BINCOOD
- local DistanceLabel = Instance.new("TextLabel", Esp)
- DistanceLabel.Name = "DistanceLabel"
- DistanceLabel.Size = UDim2.new(1, 0, 1, 0)
- DistanceLabel.BackgroundTransparency = 1
- DistanceLabel.Font = Enum.Font.SourceSansBold
- DistanceLabel.FontSize = Enum.FontSize.Size10
- DistanceLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- DistanceLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
- DistanceLabel.TextStrokeTransparency = 0
- DistanceLabel.TextYAlignment = Enum.TextYAlignment.Bottom
- local function updateEsp()
- local distance = (player.Character.Head.Position - game.Players.LocalPlayer.Character.Head.Position).Magnitude
- if player.Team ~= game.Players.LocalPlayer.Team and distance < threshold then
- Esp.Enabled = true
- DistanceLabel.Text = string.format("%.0f m", distance)
- else
- Esp.Enabled = false
- end
- end
- game:GetService("RunService").
- RenderStepped:Connect(function()
- pcall(updateEsp)
- end)
- end
- for _, player in pairs(game:GetService("Players"):GetPlayers()) do
- if player.Character and player.Character.Head then
- if player.Team ~= game.Players.LocalPlayer.Team then
- createEsp(player)
- end
- end
- end
- game:GetService("Players").PlayerAdded:Connect(function(player)
- if player.Character and player.Character.Head then
- if player.Team ~= game.Players.LocalPlayer.Team then
- createEsp(player)
- end
- end
- end)
- --https://www.youtube.com/@BINCOOD
Add Comment
Please, Sign In to add comment