Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Pointless but
- -- A lot of trash kids like to give themselves slight reach
- -- and then call others trash
- -- REACH detector for pretty much any game
- -- But ATM only works with fencing
- Potential_Reacher = "CelesteAquarius"
- Generated_Name = math.random(123456789, 987654321)
- for i,v in pairs(game:GetService("Players"):GetChildren()) do
- for i,v in pairs(v.Character:GetChildren()) do
- if v:IsA("Tool") then
- Tools = v
- end
- end
- end
- for i,v in pairs(game:GetService("Players"):GetChildren()) do
- Tools.Parent = v.Backpack
- end
- -- Method
- -- Method 1 compares their foil to your foil
- -- Method 2 uses the value in this script to compare
- method1 = true
- method2 = false
- -- Yeah you're not slick buddy
- if method1 and method2 then
- a = math.random(1,2)
- if a == 1 then
- method1 = true
- method2 = false
- else
- method2 = true
- method1 = false
- end
- end
- if not method1 and not method2 then
- a = math.random(1,2)
- if a == 1 then
- method1 = true
- else
- method2 = true
- end
- end
- function msg(Header, Text)
- Header = Header or "Sample Header"
- Text = Text or "Sample Text"
- game.StarterGui:SetCore("SendNotification", {Title = Header; Text = Text})
- end
- if method1 then
- chose = "Method 1"
- elseif method2 then
- chose = "Method 2"
- Part = Instance.new("Part")
- Part.Parent = game:GetService("Workspace")
- Part.Transparency = 1
- Part.CanCollide = false
- Part.Anchored = true
- Part.Size = Vector3.new(1, 0.400000006, 5)
- Part.Name = Generated_Name
- Part.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position
- method2_n = game:GetService("Workspace")[Generated_Name].Size
- end
- msg("Reach Detector", "You've chosen "..chose)
- wait(1)
- Players = game:GetService("Players")
- You = Players.LocalPlayer.Backpack
- Reacher = Players[Potential_Reacher].Backpack
- -- Confirming both players have a foil to reduce errors
- msg("Reach Detector", "Confirming that both players have a foil")
- for i,v in pairs(You:GetChildren()) do
- if v:IsA("Tool") and v.Name == "Foil" then
- c1 = true
- else
- c1 = false
- end
- end
- for i,v in pairs(Reacher:GetChildren()) do
- if v:IsA("Tool") and v.Name == "Foil" then
- c2 = true
- else
- c2 = false
- end
- end
- wait(1)
- if c1 and c2 then
- foil = true
- msg("Reach Detector", "Both players have a foil!")
- YourFoil = You.Foil.Handle
- ReacherFoil = Reacher.Foil.Handle
- else
- foil = false
- msg("Reach Detector", "Both players do not have a foil. DENIED!")
- end
- wait(1)
- if foil then
- if method1 then
- if YourFoil.Size == ReacherFoil.Size then
- msg("Reach Detector", ""..Potential_Reacher.." is not reaching! It's probably lag!")
- else
- msg("Reach Detector", ""..Potential_Reacher.." is indeed reaching! >:(")
- end
- end
- if method2 then
- if ReacherFoil.Size == method2_n then
- msg("Reach Detector", ""..Potential_Reacher.." is not reaching! It's probably lag!")
- else
- msg("Reach Detector", ""..Potential_Reacher.." is indeed reaching! >:(")
- game:GetService("Workspace")[Generated_Name]:Destroy()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement