Advertisement
Backtalkerzz

whatt

Dec 16th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.11 KB | None | 0 0
  1. -- Simple Admin Script I guess? (Made for Fencing)
  2. ver = "1.1"
  3. Chat_Detector = game:GetService("Players").LocalPlayer.Chatted
  4. game.StarterGui:SetCore("SendNotification", {Title = "Fencing Admin"; Text = "Fencing Admin "..ver.." loaded! Type ';cmds'"})
  5. TS = game:GetService("TeleportService")
  6. healing = false
  7. spawn (function()
  8. for i,v in pairs(workspace:GetChildren()) do
  9.     if v.Name == "Button" then
  10.         unedited = v.CFrame
  11.         v.Transparency = 1
  12.         v.CanCollide = false
  13.         v.Anchored = true
  14.         game:GetService("RunService").Stepped:connect(function()
  15.           if healing then
  16.           v.CFrame = Avatar.HumanoidRootPart.CFrame
  17.           if not healing then
  18.           v.CFrame = unedited
  19.           v.CanCollide = true
  20.           v.Transparency = 1
  21.           end
  22.        end
  23.     end)
  24.     end
  25. end
  26. end)
  27. jumping = false
  28. You = game:GetService("Players").LocalPlayer
  29. local Mouse = You:GetMouse()
  30. Mouse.KeyDown:connect(function(Space_Detect)
  31. if jumping then
  32. if Space_Detect:byte() == 32 then
  33. Humanoid = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
  34. Humanoid:ChangeState("Jumping")
  35. wait()
  36. Humanoid:ChangeState("Seated")
  37. end
  38. end
  39. end)
  40. loopfollowing = false
  41. spawn (function()
  42.     game:GetService("RunService").Stepped:connect(function()
  43.     if loopfollowing then
  44.     Avatar.Humanoid.WalkToPoint = theplayer.HumanoidRootPart.Position
  45.     end
  46. end)
  47. end)
  48. -- FLY SCRIPT BY RGEENEUS < Credit to this guy, I credit so no skidding xd
  49.  
  50. -- The following code should be in a local script.
  51. -- Only works on PC, not xbox or mobile. I do not have devices to test on.
  52. -- Call the start fly function AFTER the character exists to fly. The function does not run if there is no character.
  53.  
  54. local flyingspeed = 50 -- This is the fly speed. Change it to whatever you like. The variable can be changed while running
  55.  
  56. local c
  57. local h
  58. local bv
  59. local bav
  60. local cam
  61. local flying
  62. local p = game.Players.LocalPlayer
  63. local buttons = {W = false, S = false, A = false, D = false, Moving = false}
  64.  
  65. startFly = function () -- Call this function to begin flying
  66.     if not p.Character or not p.Character.Head or flying then return end
  67.     c = p.Character
  68.     h = c.Humanoid
  69.     h.PlatformStand = true
  70.     cam = workspace:WaitForChild('Camera')
  71.     bv = Instance.new("BodyVelocity")
  72.     bav = Instance.new("BodyAngularVelocity")
  73.     bv.Velocity, bv.MaxForce, bv.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
  74.     bav.AngularVelocity, bav.MaxTorque, bav.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
  75.     bv.Parent = c.Head
  76.     bav.Parent = c.Head
  77.     flying = true
  78.     h.Died:connect(function() flying = false end)
  79. end
  80.  
  81. function endFly() -- Call this function to stop flying
  82.     if not p.Character or not flying then return end
  83.     for i,v in pairs(c.Head:GetChildren()) do
  84.     if v:IsA("BodyVelocity") then
  85.     v:Destroy()
  86.     end
  87.     if v:IsA("BodyAngularVelocity") then
  88.     v:Destroy()
  89.     end
  90.     end
  91.     flying = false
  92.     h.PlatformStand = false
  93. end
  94.  
  95. game:GetService("UserInputService").InputBegan:connect(function (input, GPE)
  96.     if GPE then return end
  97.     for i, e in pairs(buttons) do
  98.         if i ~= "Moving" and input.KeyCode == Enum.KeyCode[i] then
  99.             buttons[i] = true
  100.             buttons.Moving = true
  101.         end
  102.     end
  103. end)
  104.  
  105. game:GetService("UserInputService").InputEnded:connect(function (input, GPE)
  106.     if GPE then return end
  107.     local a = false
  108.     for i, e in pairs(buttons) do
  109.         if i ~= "Moving" then
  110.             if input.KeyCode == Enum.KeyCode[i] then
  111.                 buttons[i] = false
  112.             end
  113.             if buttons[i] then a = true end
  114.         end
  115.     end
  116.     buttons.Moving = a
  117. end)
  118.  
  119. local setVec = function (vec)
  120.     return vec * (flyingspeed / vec.Magnitude)
  121. end
  122.  
  123. game:GetService("RunService").Heartbeat:connect(function (step) -- The actual fly function, called every frame
  124.     if flying and c and c.PrimaryPart then
  125.         local p = c.PrimaryPart.Position
  126.         local cf = cam.CFrame
  127.         local ax, ay, az = cf:toEulerAnglesXYZ()
  128.         c:SetPrimaryPartCFrame(CFrame.new(p.x, p.y, p.z) * CFrame.Angles(ax, ay, az))
  129.         if buttons.Moving then
  130.             local t = Vector3.new()
  131.             if buttons.W then t = t + (setVec(cf.lookVector)) end
  132.             if buttons.S then t = t - (setVec(cf.lookVector)) end
  133.             if buttons.A then t = t - (setVec(cf.rightVector)) end
  134.             if buttons.D then t = t + (setVec(cf.rightVector)) end
  135.             c:TranslateBy(t * step)
  136.         end
  137.     end
  138. end)
  139. noclip = false
  140. spawn (function()
  141. game:GetService('RunService').Stepped:connect(function()
  142. if noclip then
  143.    for i,v in pairs(game.Player.LocalPlayer.Character:GetDescendants()) do
  144.    if v:IsA("BasePart") or v:IsA("MeshPart") then
  145.    v.CanCollide = false
  146.    end
  147.    end
  148. end
  149. end)
  150. end)
  151. function has(string, text)
  152.     string = string or "Sample Text"
  153.     text = text or "Sample"
  154.     if (string.match(string, text) and true or false) then
  155.         return true
  156.         else
  157.         return false
  158.     end
  159. end
  160. function SendChat(Text, Color)
  161. Text = Text or "Empty String"
  162. Color = string.lower(Color) or "green"
  163. if Color == "red" then
  164.     Color = Color3.new(255, 0, 0)
  165.     elseif Color == "green" then
  166.     Color = Color3.new(0, 255, 0)
  167.     elseif Color == "blue" then
  168.     Color = Color3.new(0, 0, 255)
  169. end
  170. game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
  171. Text = Text;
  172. Color = Color;
  173. FontSize = Enum.FontSize.Size24;
  174. })
  175. end
  176. cmds = {
  177. ";time - Displays your local time",
  178. ";ws [num] - Sets your humanoid's Walkspeed to [num]",
  179. ";reach [num] (Max : 350) - Set's foil's length to [num]",
  180. ";jp [num] (Max : 200 I think LOL) - Set's your jumppower to [num]",
  181. ";getspray - Gives you the spray can",
  182. ";reset - Kills you Basically",
  183. ";respawn - Respawns you (Useless if you accidentally glitch yourself)",
  184. ";freeze [plr] - Freezes the player on your client for easy killing",
  185. ";thaw [plr] - Unfreezes the player from your client if frozen",
  186. ";btools - Gives you btools.",
  187. ";nofloat - Removes that annoying float when you lunge",
  188. ";float - Enables back the annoying float when you lunge",
  189. ";noreach - Sets your foil's size to it's default",
  190. ";age [plr] - Returns the players AccountAge. R.I.P. Newgens",
  191. ";os [plr] - Returns the players OsPlatform. R.I.P. mobile kiddos",
  192. ";heal - Instantly heals your player with the Double Health Pad",
  193. ";loopheal - Loops the Double health pad to your character",
  194. ";unloopheal - Breaks look on Double Health Pad",
  195. ";sit - Makes you sit",
  196. ";jump - Makes you jump (BROKEN IDK WHY LOL)",
  197. ";goto [plr] - Teleports you to the player",
  198. ";quit - Force Stops the roblox process",
  199. ";rejoin - Quickly rejoins the game (MIGHT NOT REJOIN THE SAME SERVER)",
  200. ";eval [code] - Runs Short lines of code (Ex : ;eval print('hi') )",
  201. ";infjump - Spam the Space bar to jump infinitely!",
  202. ";uninfjump - Disables infinite jump",
  203. ";cmds - Prints all commands to chat",
  204. ";dex - Launches Dex 3.0 by Moon",
  205. ";killdex - Kills the Dex process",
  206. ";spectate - Views the player",
  207. ";unspectate - Views your character",
  208. ";print - Prints something (;print hi)",
  209. ";fly - Makes you fly",
  210. ";unfly - Disables fly",
  211. ";flyspeed - Edit the speed at which you fly",
  212. ";noclip - Enables noclip",
  213. ";clip - Disables noclip",
  214. ";follow - Makes you walk to the player",
  215. ";unfollow - Makes you stop walking to the player",
  216. ";writefile - Writes contents to your exploits workspace folder",
  217. ";load - loads a file from your exploits workspace folder",
  218. ";antikill - Prevents you from being fe killed and fe bringed",
  219. ";unantikill - Allows you to be fe kiled and fe bringed",
  220. ";changelogs - Shows you the latest edits I've made to the script",
  221. ";disc - Copies my discord tag to clipboard for easy adding, I'm always here to help!"
  222. }
  223. changelogs = {
  224. "12/15/2018 - Released the script and fixed **MOST** errors [Version 1.0]"
  225. "12/16/2018 - Updated to a new noclip method due to bugs [Version 1.1]"
  226. }
  227. local date_table = os.date("*t")
  228. local hour, minute, second = date_table.hour, date_table.min, date_table.sec
  229. local year, month, day = date_table.year, date_table.month, date_table.day
  230. local result = year, month, day, hour, minute, second
  231. local date = ""..month.."/"..day.."/"..year..""
  232. local noon = "AM"
  233. if hour > 12 then
  234.     hour = hour - 12
  235.     local noon = "PM"
  236.     elseif hour < 12 then
  237.     local noon = "AM"
  238. end
  239. if hour == 0 then
  240.    hour = 12
  241. end
  242. local time = ""..hour..":"..minute.." "..noon..""
  243. plrs = game:GetService("Players")
  244. You = plrs.LocalPlayer
  245. Backpack = You.Backpack
  246. Avatar = You.Character
  247. name = You.Name
  248. Fencing_ID = 12109643
  249.  
  250. -- Don't try to execute this in the wrong game Fool
  251. if game.PlaceId ~= Fencing_ID then
  252.     msg("Smartass", "You aren't very smart.")
  253.     wait(2)
  254.     TS:Teleport(Fencing_ID)
  255. end
  256. if has(Chat, ";nofloat") then
  257.     msg("Fencing Admin", "Disabled Lunge-Float!")
  258.     SendChat("Disabled Lunge-Float!", "green")
  259.     for y, x in pairs(Avatar:GetChildren()) do
  260.         if x:IsA("Part") then
  261.             x.CustomPhysicalProperties = PhysicalProperties.new(100, 0.3, 0.5)
  262.         end
  263.     end
  264. end
  265. if has(Chat, ";float") then
  266.     msg("Fencing Admin", "Enabled Lunge-Float")
  267.     SendChat("Enabled Lunge-Float", "green")
  268.     for y, x in pairs(Avatar:GetChildren()) do
  269.         if x:IsA("Part") then
  270.             x.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.3, 0.5)
  271.         end
  272.     end
  273. end
  274. if has(Chat, ";reach") then
  275.     res, _ = Chat:gsub("%D+", "")
  276.     size = tonumber(res)
  277.     if size > 350 then
  278.         msg("Fencing Admin", "Size : "..size.." is not supported! Size set to 350.")
  279.         SendChat("Fencing Admin", "Size : "..size.." is not supported! Size set to 350.", "red")
  280.         size = 350
  281.     end
  282.     msg("Fencing Admin", "Reach set to : "..size)
  283.     SendChat("Reach set to : "..size.."", "green")
  284.     for i,v in pairs(Avatar:GetChildren()) do
  285.         if v:IsA("Tool") and v.Name == "Foil" then
  286.             v.Parent = Backpack
  287.         end
  288.     end
  289.     for i,v in pairs(Backpack:GetChildren()) do
  290.         if v:IsA("Tool") and v.Name == "Foil" then
  291.             v.Handle.Size = Vector3.new(0.1, 0.1, size)
  292.             v.Parent = Avatar
  293.         end
  294.     end
  295. end
  296. if has(Chat, ";sit") then
  297.     msg("Fencing Admin", "You are now sitting!")
  298.     SendChat("You are now sitting!", "green")
  299.     Avatar.Humanoid.Sit = true
  300. end
  301. if has(Chat, ";jump") then
  302.     msg("Fencing Admin", "Made you jump!")
  303.     SendChat("Made you jump!", "green")
  304.     Avatar.Humanoid.Jump = true
  305. end
  306. if has(Chat, ";ws") then
  307.     res, _ = Chat:gsub("%D+", "")
  308.     speed = tonumber(res)
  309.     msg("Fencing Admin", "Set Walkspeed To "..speed.."")
  310.     SendChat("Set Walkspeed To "..speed.."", "green")
  311.     Avatar.Humanoid.WalkSpeed = speed
  312. end
  313. if has(Chat, ";getspray") then
  314.     msg("Fencing Admin", "Gave you the spray can!")
  315.     SendChat("Gave you the spray can!", "green")
  316.     local original = workspace.Handle.CFrame
  317.     workspace.Handle.CFrame = Avatar.HumanoidRootPart.CFrame
  318.     wait(0.1)
  319.     workspace.Handle.CFrame = original
  320. end
  321. if has(Chat, ";time") then
  322.     msg("Fencing Admin", "The time is currently")
  323.     SendChat("The time is currently", "green")
  324.     msg(date, time)
  325.     SendChat("["..date.."] ["..time.."]", "green")
  326. end
  327. if has(Chat, ";noreach") then
  328.     msg("Fencing Admin", "Removed reach!")
  329.     SendChat("Removed reach!", "red")
  330.     for i,v in pairs(Avatar:GetChildren()) do
  331.         if v:IsA("Tool") and v.Name == "Foil" then
  332.             v.Parent = Backpack
  333.         end
  334.     end
  335.     for i,v in pairs(Backpack:GetChildren()) do
  336.         if v:IsA("Tool") and v.Name == "Foil" then
  337.             v.Handle.Size = Vector3.new(1, 0.4, 5)
  338.             v.Parent = Avatar
  339.         end
  340.     end
  341. end
  342. if has(Chat, ";goto")  then
  343.     Chat = Chat:gsub(";goto ", "")
  344.     Chat = string.lower(Chat)
  345.     for i,v in pairs(plrs:GetChildren()) do
  346.         v.Name = string.lower(tostring(v.Name))
  347.         if has(v.Name, Chat) then
  348.            Avatar.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  349.            msg("Fencing Admin", "Teleported to : "..v.Name.."")
  350.            SendChat("Teleported to : "..v.Name.."", "red")
  351.         end
  352.     end
  353. end
  354. if has(Chat, ";age") then
  355.     Chat = Chat:gsub(";age ", "")
  356.     Chat = string.lower(Chat)
  357.     for i,v in pairs(plrs:GetChildren()) do
  358.         v.Name = string.lower(tostring(v.Name))
  359.         if has(v.Name, Chat) then
  360.             msg("Fencing Admin", ""..v.Name.."'s AccountAge : "..v.AccountAge..".")
  361.             SendChat(""..v.Name.."'s AccountAge : "..v.AccountAge..".", "red")
  362.         end
  363.     end
  364. end
  365. if has(Chat, ";freeze")then
  366.     Chat = Chat:gsub(";freeze ", "")
  367.     Chat = string.lower(Chat)
  368.     for i,v in pairs(plrs:GetChildren()) do
  369.         v.Name = string.lower(tostring(v.Name))
  370.         if has(v.Name, Chat) then
  371.             msg("Fencing Admin", "Froze : "..v.Name..".")
  372.             SendChat("Froze : "..v.Name..".", "blue")
  373.             for i,v in pairs(v.Character:GetChildren()) do
  374.                 if v:IsA("Part") then
  375.                     v.Anchored = true
  376.                 end
  377.             end
  378.         end
  379.     end
  380. end
  381. if has(Chat, ";thaw") then
  382.     Chat = Chat:gsub(";thaw ", "")
  383.     Chat = string.lower(Chat)
  384.     for i,v in pairs(plrs:GetChildren()) do
  385.         v.Name = string.lower(tostring(v.Name))
  386.         if has(v.Name, Chat) then
  387.             msg("Fencing Admin", "Thawed : "..v.Name..".")
  388.             SendChat("Thawed : "..v.Name..".", "blue")
  389.             for i,v in pairs(v.Character:GetChildren()) do
  390.                 if v:IsA("Part") then
  391.                     v.Anchored = false
  392.                 end
  393.             end
  394.         end
  395.     end
  396. end
  397. if has(Chat, ";rejoin") then
  398.     for i=1, 10 do
  399.     SendChat("Rejoining!", "red")
  400.     end
  401.     TS:Teleport(game.PlaceId)
  402. end
  403. if has(Chat, ";quit") then
  404.     game:Shutdown()
  405. end
  406. if has(Chat, ";os") then
  407.     Chat = Chat:gsub(";os ", "")
  408.     Chat = string.lower(Chat)
  409.     for i,v in pairs(plrs:GetChildren()) do
  410.         v.Name = string.lower(tostring(v.Name))
  411.         if has(v.Name, Chat) then
  412.           msg("Fencing Admin", ""..v.Name.."'s OS : "..v.OsPlatform..".")
  413.           SendChat(""..v.Name.."'s OS : "..v.OsPlatform..".", "green")
  414.        end
  415.    end
  416. end
  417. if has(Chat, ";loopheal") then
  418.    msg("Fencing Admin", "Loop healing your character!")
  419.    SendChat("Loop healing your character!", "green")
  420.    healing = true
  421. end
  422. if has(Chat, ";unloopheal") then
  423.    msg("Fencing Admin", "No longer healing your character.")
  424.    SendChat("No longer healing your character.", "red")
  425.    healing = false
  426. end
  427. if has(Chat, ";btools") then
  428.    msg("Fencing Admin", "Gave Btools! [CLIENT ONLY]")
  429.    BinType = 1
  430.    while wait(0.2) do
  431.    if BinType == 5 then
  432.    break
  433.    end
  434.    Instance.new("HopperBin", Backpack).BinType = BinType
  435.    BinType = BinType + 1
  436.    end
  437. end
  438. if has(Chat, ";reset") then
  439.     SendChat("Killed you!", "red")
  440.     msg("Fencing Admin", "Killed your character!")
  441.     Avatar:BreakJoints()
  442. end
  443. if  has(Chat, ";jp") then
  444.     res, _ = Chat:gsub("%D+", "")
  445.     jp = tonumber(res)
  446.     Avatar.Humanoid.JumpPower = jp
  447.     msg("Fencing Admin", "Set your Jump Value to : "..jp.."")
  448.     SendChat("Set your jumppower to "..jp.."", "green")
  449. end
  450. if has(Chat, ";heal") then
  451.    SendChat("Regenerated your health!", "green")
  452.    msg("Fencing Admin", "Healed your character!")
  453.    for i,v in pairs(workspace:GetChildren()) do
  454.    if v.Name == "Button" then
  455.    goback = v.CFrame
  456.    v.CanCollide = false
  457.    v.CFrame = Avatar.HumanoidRootPart.CFrame
  458.    wait(0.1)
  459.    v.CFrame = goback
  460.    v.CanCollide = true
  461.    end
  462.    end
  463. end
  464. if has(Chat, ";respawn") then
  465.    msg("Fencing Admin", "Respawned your character!")
  466.    SendChat("Respawned!", "green")
  467.    Avatar:Destroy()
  468.    local Group = Instance.new("Model")
  469.    Group.Parent = workspace
  470.    Group.Name = "Fencing Admin"
  471.    local Humanoid = Instance.new("Humanoid")
  472.    Humanoid.Parent = Group
  473.    local Body = Instance.new("Part")
  474.    Body.Name = "Torso"
  475.    Body.CanCollide = false
  476.    Body.Parent = Group
  477.    Avatar = Group
  478. end
  479. if has(Chat, ";eval") then
  480.    msg("Fencing Admin", "Ran Code!")
  481.    SendChat("Ran the Code", "red")
  482.    Chat = Chat:gsub(";eval ", "")
  483.    loadstring(tostring(Chat))()
  484. end
  485. if has(Chat, ";infjump") then
  486.    msg("Fencing Admin", "Infinite Jump Enabled!")
  487.    SendChat("Infinite Jump Enabled", "green")
  488.    jumping = true
  489. end
  490. if has(Chat, ";uninfjump") then
  491.    msg("Fencing Admin", "Infinite Jump Disabled!")
  492.    SendChat("Infinite Jump Disabled!", "green")
  493.    jumping = false
  494. end
  495. if has(Chat, ";cmds") then
  496.    SendChat("[Fencing Admin]", "green")
  497.    SendChat("["..#cmds.." Commands!]", "green")
  498.    for i=1, #cmds do
  499.    SendChat(""..i..". "..cmds[i].."", "green")
  500.    end
  501.    SendChat("[Made by Senpai]", "green")
  502. end
  503. if has(Chat, ";dex") then
  504.    msg("Fencing Admin", "Launched Dex")
  505.    SendChat("Launched Dex", "green")
  506.    loadstring(game:GetObjects("rbxassetid://418957341")[1].Source)()
  507. end
  508. if has(Chat, ";killdex") then
  509.         msg("Fencing Admin", "Killed Dex")
  510.        SendChat("Killed Dex", "green")
  511.    for i,v in pairs(game.CoreGui:GetChildren()) do
  512.        if v.Name == "Dex" then
  513.        v:Destroy()
  514.        else
  515.        msg("Fencing Admin", "Dex doesn't seem to be running!")
  516.        SendChat("Dex doesn't seem to be running!", "green")
  517.        end
  518.    end
  519. end
  520. if has(Chat, ";spectate") then
  521.    for i,v in pairs(plrs:GetChildren()) do
  522.    v.Name = string.lower(tostring(v.Name))
  523.    Chat = Chat:gsub(";spectate ", "")
  524.    Chat = string.lower(Chat)
  525.    if has(v.Name, Chat) then
  526.    workspace.CurrentCamera.CameraSubject = v.Character
  527.    msg("Fencing Admin", "Spectating : "..v.Name..".")
  528.    SendChat("Now viewing "..v.Name.."", "green")
  529.    end
  530.    end
  531. end
  532. if has(Chat, ";unspectate") then
  533.    workspace.CurrentCamera.CameraSubject = Avatar
  534.    msg("Fencing Admin", "No longer viewing anyone")
  535.    SendChat("Spectate turned off", "red")
  536. end
  537. if has(Chat, ";print") then
  538.    Chat = Chat:gsub(";print ", "")
  539.    print(tostring(Chat))
  540.    msg("Fencing Admin", "Printed Result")
  541.    SendChat("Printed!", "green")
  542. end
  543. if has(Chat, ";fly") then
  544.    msg("Fencing Admin", "Credits to RGEENEUS")
  545.    SendChat("Flying enabled", "green")
  546.    startFly()
  547. end
  548. if has(Chat, ";unfly") then
  549.    msg("Fencing Admin", "Stopped flying.")
  550.    SendChat("Flying disabled", "red")
  551.    endFly()
  552. end
  553. if has(Chat, ";flyspeed") then
  554.     res, _ = Chat:gsub("%D+", "")
  555.     newspeed = tonumber(res)
  556.     flyingspeed = newspeed
  557.     msg("Fencing Admin", "Set flying speed to "..newspeed.."")
  558.     SendChat("New flying speed set!", "green")
  559. end
  560. if has(Chat, ";noclip") then
  561.    msg("Fencing Admin", "Noclip Enabled")
  562.    noclip = true
  563.    SendChat("Noclip on!", "green")
  564. end
  565. if has(Chat, ";clip") then
  566.    msg("Fencing Admin", "Turned off noclip!")
  567.    noclip = false
  568.    for i,v in pairs(Avatar:GetChildren()) do
  569.    if v:IsA("BasePart") or v:IsA("MeshPart") then
  570.    v.CanCollide = true
  571.    end
  572.    end
  573.    SendChat("Noclip off!", "red")
  574. end
  575. if has(Chat, ";follow") then
  576.    Chat = Chat:gsub(";follow ", "")
  577.    Chat = string.lower(Chat)
  578.    SendChat("Following the player", "green")
  579.    msg("Fencing Admin", "Now following the player")
  580.    for i,v in pairs(plrs:GetChildren()) do
  581.     v.Name = string.lower(tostring(v.Name))
  582.     if has(v.Name, Chat) then
  583.     loopfollowing = true
  584.     theplayer = v.Character
  585.     end
  586.    end
  587. end
  588. if has(Chat, ";unfollow") then
  589.    loopfollowing = false
  590.    theplayer = nil
  591.    msg("Fencing Admin", "No longer following the player")
  592.    SendChat("Follow disabled!", "red")
  593. end
  594. if has(Chat, ";writefile") then
  595.    Chat = Chat:gsub(";writefile ", "")
  596.    randomizer = math.random(999, 9999999)
  597.    name = "[Senpai] "..randomizer..".txt"
  598.    writefile(name, Chat)
  599.    setclipboard(tostring(name))
  600.    msg("Fencing Admin", "Wrote file!")
  601.    SendChat("Wrote file and copied file name to clipboard!", "green")
  602. end
  603. if has(Chat, ";load") then
  604.    Chat = Chat:gsub(";load ", "")
  605.    loadfile(Chat)()
  606.    msg("Fencing Admin", "Loaded file!")
  607.    SendChat("File loaded!", "red")
  608. end
  609. if has(Chat, ";antikill") then
  610. spawn (function()
  611.    local tools = {}
  612. local bag = You:findFirstChildOfClass'Backpack'
  613. for i,v in pairs(bag:getChildren'') do
  614.     tools[v] = v
  615. end
  616.  
  617. _G.stop = true
  618. wait()
  619. _G.stop = false
  620.  
  621. bag.ChildAdded:connect(function(c)
  622.     tools[c] = c
  623. end)
  624.  
  625. local p = You
  626.  
  627. local off = false
  628. local cf,pos = p.Character.HumanoidRootPart.CFrame,p.Character.HumanoidRootPart.Position
  629. function check(tool)
  630.     if off then return end
  631.     if tool:IsA("Tool") and not tools[tool] then
  632.         game:service'RunService'.Stepped:wait''
  633.         tool.Parent = game:service'Players'.LocalPlayer.Backpack
  634.         tools[tool] = tool
  635.        
  636.         local start = tick()
  637.        
  638.         msg("Fencing Admin", "Someone tried to FE kill/bring you!")
  639.         SendChat("FE kill/bring blocked!", "green")
  640.        
  641.         for i = 1,25 do
  642.             game:service'RunService'.Stepped:wait''
  643.             for i,v in pairs(p.Character:getDescendants'') do
  644.                 if v:IsA("BasePart") then
  645.                     v.Velocity = v3(0,0,0)
  646.                 end
  647.             end
  648.            
  649.             p.Character.HumanoidRootPart.CFrame = cf
  650.         end
  651.     end
  652. end
  653.  
  654. print'confirmation'
  655.  
  656. p.CharacterAdded:connect(function(Char)
  657.     Char.ChildAdded:connect(check)
  658. end)
  659.  
  660. if p.Character then
  661.     p.Character.ChildAdded:connect(check)
  662. end
  663.  
  664. while wait(.1) and not _G.stop do
  665.     if p.Character then
  666.         cf = p.Character.HumanoidRootPart.CFrame
  667.         pos = p.Character.HumanoidRootPart.Position
  668.     end
  669. end
  670.  
  671. off = true
  672. end)  
  673. msg("Fencing Admin", "Enabled anti kill!")
  674. SendChat("Anti kill Enabled!", "green")
  675. end
  676. if has(Chat, ";unantikill") then
  677. _G.stop = true
  678. off = true
  679. msg("Fencing Admin", "Disabled anti kill")
  680. SendChat("Disabled anti kill", "red")
  681. end
  682. if has(Chat, ";changelogs") then
  683.    for i=1, #changelogs do
  684.    SendChat(changelogs[i], "green")
  685.    end
  686.    SendChat("Changelogs for version ["..ver.."]", "green")
  687. end
  688. if has(Chat, ";disc") then
  689.    SendChat("Copied my discord to clipboard", "green")
  690.    msg("Fencing Admin", "Discord tag copied!")
  691.    setclipboard(tostring("Senpai~#8411"))
  692. end
  693. -- Senpai~#8411
  694.  
  695. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement