Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "Croshair.NSI",
- LoadingTitle = "Croshair.NSI",
- LoadingSubtitle = "By Onyx",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = nil, -- Create a custom folder for your hub/game
- FileName = "Croshair.NSI"
- },
- Discord = {
- Enabled = false,
- Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
- RememberJoins = true -- Set this to false to make them join the discord every time they load it up
- },
- KeySystem = false, -- Set this to true to use our key system
- KeySettings = {
- Title = "Untitled",
- Subtitle = "Key System",
- Note = "No method of obtaining the key is provided",
- FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
- SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
- GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
- 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")
- }
- })
- local MainTab = Window:CreateTab("Main", 4483362458) -- Title, Image
- local MainSection = MainTab:CreateSection("Main")
- Rayfield:Notify({
- Title = "Execution sucsesfull",
- Content = "V1 still in beta",
- Duration = 3.5,
- Image = nill,
- Actions = { -- Notification Buttons
- Ignore = {
- Name = "Okay!",
- Callback = function()
- print("The user tapped Okay!")
- end
- },
- },
- })
- local Button = MainTab:CreateButton({
- Name = "Cham/esp",
- Callback = function()
- function isnil(thing)
- return (thing == nil)
- end
- local function round(n)
- return math.floor(tonumber(n) + 0.5)
- end
- function UpdatePlayerChams()
- for i,v in pairs(game:GetService'Players':GetChildren()) do
- pcall(function()
- if not isnil(v.Character) then
- for _,k in pairs(v.Character:GetChildren()) do
- if k:IsA'BasePart' and not k:FindFirstChild'Cham' then
- local cham = Instance.new('BoxHandleAdornment',k)
- cham.ZIndex= 10
- cham.Adornee=k
- cham.AlwaysOnTop=true
- cham.Size=k.Size
- cham.Transparency=.7
- cham.Color3=Color3.new(1,0,0)
- cham.Name = 'Cham'
- end
- end
- if not isnil(v.Character.Head) and not v.Character.Head:FindFirstChild'NameEsp' then
- local bill = Instance.new('BillboardGui',v.Character.Head)
- bill.Name = 'NameEsp'
- bill.Size=UDim2.new(1,200,1,30)
- bill.Adornee=v.Character.Head
- bill.AlwaysOnTop=true
- local name = Instance.new('TextLabel',bill)
- name.TextWrapped=true
- name.Text = (v.Name ..' '.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Character.Head.Position).Magnitude/3) ..'m')
- name.Size = UDim2.new(1,0,1,0)
- name.TextYAlignment='Top'
- name.TextColor3=Color3.new(1,1,1)
- name.BackgroundTransparency=1
- else
- v.Character.Head.NameEsp.TextLabel.Text = (v.Name ..' '.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Character.Head.Position).Magnitude/3) ..'m')
- end
- end
- end)
- end
- end
- while wait() do
- UpdatePlayerChams()
- end
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement