Advertisement
MrScripter2

Croshair.NSI

Sep 18th, 2023 (edited)
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.72 KB | Gaming | 0 0
  1. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  2.  
  3. local Window = Rayfield:CreateWindow({
  4.    Name = "Croshair.NSI",
  5.    LoadingTitle = "Croshair.NSI",
  6.    LoadingSubtitle = "By Onyx",
  7.    ConfigurationSaving = {
  8.       Enabled = true,
  9.       FolderName = nil, -- Create a custom folder for your hub/game
  10.       FileName = "Croshair.NSI"
  11.    },
  12.    Discord = {
  13.       Enabled = false,
  14.       Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
  15.       RememberJoins = true -- Set this to false to make them join the discord every time they load it up
  16.    },
  17.    KeySystem = false, -- Set this to true to use our key system
  18.    KeySettings = {
  19.       Title = "Untitled",
  20.       Subtitle = "Key System",
  21.       Note = "No method of obtaining the key is provided",
  22.       FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
  23.       SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
  24.      GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  25.      Key = {"Hello"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
  26.   }
  27. })
  28.  
  29. local MainTab = Window:CreateTab("Main", 4483362458) -- Title, Image
  30. local MainSection = MainTab:CreateSection("Main")
  31.  
  32. Rayfield:Notify({
  33.   Title = "Execution sucsesfull",
  34.   Content = "V1 still in beta",
  35.   Duration = 3.5,
  36.   Image = nill,
  37.   Actions = { -- Notification Buttons
  38.      Ignore = {
  39.         Name = "Okay!",
  40.         Callback = function()
  41.         print("The user tapped Okay!")
  42.      end
  43.   },
  44. },
  45. })
  46.  
  47. local Button = MainTab:CreateButton({
  48.   Name = "Cham/esp",
  49.   Callback = function()
  50.      function isnil(thing)
  51.         return (thing == nil)
  52.         end
  53.        
  54.        
  55.         local function round(n)
  56.         return math.floor(tonumber(n) + 0.5)
  57.         end
  58.        
  59.         function UpdatePlayerChams()
  60.         for i,v in pairs(game:GetService'Players':GetChildren()) do
  61.         pcall(function()
  62.         if not isnil(v.Character) then
  63.         for _,k in pairs(v.Character:GetChildren()) do
  64.         if k:IsA'BasePart' and not k:FindFirstChild'Cham' then
  65.         local cham = Instance.new('BoxHandleAdornment',k)
  66.         cham.ZIndex= 10
  67.         cham.Adornee=k
  68.         cham.AlwaysOnTop=true
  69.         cham.Size=k.Size
  70.         cham.Transparency=.7
  71.         cham.Color3=Color3.new(1,0,0)
  72.         cham.Name = 'Cham'
  73.         end
  74.         end
  75.         if not isnil(v.Character.Head) and not v.Character.Head:FindFirstChild'NameEsp' then
  76.         local bill = Instance.new('BillboardGui',v.Character.Head)
  77.         bill.Name = 'NameEsp'
  78.         bill.Size=UDim2.new(1,200,1,30)
  79.         bill.Adornee=v.Character.Head
  80.         bill.AlwaysOnTop=true
  81.         local name = Instance.new('TextLabel',bill)
  82.         name.TextWrapped=true
  83.         name.Text = (v.Name ..' '.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Character.Head.Position).Magnitude/3) ..'m')
  84.         name.Size = UDim2.new(1,0,1,0)
  85.         name.TextYAlignment='Top'
  86.         name.TextColor3=Color3.new(1,1,1)
  87.         name.BackgroundTransparency=1
  88.         else
  89.         v.Character.Head.NameEsp.TextLabel.Text = (v.Name ..' '.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Character.Head.Position).Magnitude/3) ..'m')
  90.         end
  91.         end
  92.         end)
  93.         end
  94.         end
  95.        
  96.         while wait() do
  97.         UpdatePlayerChams()
  98.         end
  99.   end,
  100. })
  101.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement