Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Simple Admin Script I guess? (Made for Fencing)
- ver = "1.1"
- Chat_Detector = game:GetService("Players").LocalPlayer.Chatted
- game.StarterGui:SetCore("SendNotification", {Title = "Fencing Admin"; Text = "Fencing Admin "..ver.." loaded! Type ';cmds'"})
- TS = game:GetService("TeleportService")
- healing = false
- spawn (function()
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name == "Button" then
- unedited = v.CFrame
- v.Transparency = 1
- v.CanCollide = false
- v.Anchored = true
- game:GetService("RunService").Stepped:connect(function()
- if healing then
- v.CFrame = Avatar.HumanoidRootPart.CFrame
- if not healing then
- v.CFrame = unedited
- v.CanCollide = true
- v.Transparency = 1
- end
- end
- end)
- end
- end
- end)
- jumping = false
- You = game:GetService("Players").LocalPlayer
- local Mouse = You:GetMouse()
- Mouse.KeyDown:connect(function(Space_Detect)
- if jumping then
- if Space_Detect:byte() == 32 then
- Humanoid = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
- Humanoid:ChangeState("Jumping")
- wait()
- Humanoid:ChangeState("Seated")
- end
- end
- end)
- loopfollowing = false
- spawn (function()
- game:GetService("RunService").Stepped:connect(function()
- if loopfollowing then
- Avatar.Humanoid.WalkToPoint = theplayer.HumanoidRootPart.Position
- end
- end)
- end)
- -- FLY SCRIPT BY RGEENEUS < Credit to this guy, I credit so no skidding xd
- -- The following code should be in a local script.
- -- Only works on PC, not xbox or mobile. I do not have devices to test on.
- -- Call the start fly function AFTER the character exists to fly. The function does not run if there is no character.
- local flyingspeed = 50 -- This is the fly speed. Change it to whatever you like. The variable can be changed while running
- local c
- local h
- local bv
- local bav
- local cam
- local flying
- local p = game.Players.LocalPlayer
- local buttons = {W = false, S = false, A = false, D = false, Moving = false}
- startFly = function () -- Call this function to begin flying
- if not p.Character or not p.Character.Head or flying then return end
- c = p.Character
- h = c.Humanoid
- h.PlatformStand = true
- cam = workspace:WaitForChild('Camera')
- bv = Instance.new("BodyVelocity")
- bav = Instance.new("BodyAngularVelocity")
- bv.Velocity, bv.MaxForce, bv.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
- bav.AngularVelocity, bav.MaxTorque, bav.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
- bv.Parent = c.Head
- bav.Parent = c.Head
- flying = true
- h.Died:connect(function() flying = false end)
- end
- function endFly() -- Call this function to stop flying
- if not p.Character or not flying then return end
- for i,v in pairs(c.Head:GetChildren()) do
- if v:IsA("BodyVelocity") then
- v:Destroy()
- end
- if v:IsA("BodyAngularVelocity") then
- v:Destroy()
- end
- end
- flying = false
- h.PlatformStand = false
- end
- game:GetService("UserInputService").InputBegan:connect(function (input, GPE)
- if GPE then return end
- for i, e in pairs(buttons) do
- if i ~= "Moving" and input.KeyCode == Enum.KeyCode[i] then
- buttons[i] = true
- buttons.Moving = true
- end
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function (input, GPE)
- if GPE then return end
- local a = false
- for i, e in pairs(buttons) do
- if i ~= "Moving" then
- if input.KeyCode == Enum.KeyCode[i] then
- buttons[i] = false
- end
- if buttons[i] then a = true end
- end
- end
- buttons.Moving = a
- end)
- local setVec = function (vec)
- return vec * (flyingspeed / vec.Magnitude)
- end
- game:GetService("RunService").Heartbeat:connect(function (step) -- The actual fly function, called every frame
- if flying and c and c.PrimaryPart then
- local p = c.PrimaryPart.Position
- local cf = cam.CFrame
- local ax, ay, az = cf:toEulerAnglesXYZ()
- c:SetPrimaryPartCFrame(CFrame.new(p.x, p.y, p.z) * CFrame.Angles(ax, ay, az))
- if buttons.Moving then
- local t = Vector3.new()
- if buttons.W then t = t + (setVec(cf.lookVector)) end
- if buttons.S then t = t - (setVec(cf.lookVector)) end
- if buttons.A then t = t - (setVec(cf.rightVector)) end
- if buttons.D then t = t + (setVec(cf.rightVector)) end
- c:TranslateBy(t * step)
- end
- end
- end)
- noclip = false
- spawn (function()
- game:GetService('RunService').Stepped:connect(function()
- if noclip then
- for i,v in pairs(game.Player.LocalPlayer.Character:GetDescendants()) do
- if v:IsA("BasePart") or v:IsA("MeshPart") then
- v.CanCollide = false
- end
- end
- end
- end)
- end)
- function has(string, text)
- string = string or "Sample Text"
- text = text or "Sample"
- if (string.match(string, text) and true or false) then
- return true
- else
- return false
- end
- end
- function SendChat(Text, Color)
- Text = Text or "Empty String"
- Color = string.lower(Color) or "green"
- if Color == "red" then
- Color = Color3.new(255, 0, 0)
- elseif Color == "green" then
- Color = Color3.new(0, 255, 0)
- elseif Color == "blue" then
- Color = Color3.new(0, 0, 255)
- end
- game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
- Text = Text;
- Color = Color;
- FontSize = Enum.FontSize.Size24;
- })
- end
- cmds = {
- ";time - Displays your local time",
- ";ws [num] - Sets your humanoid's Walkspeed to [num]",
- ";reach [num] (Max : 350) - Set's foil's length to [num]",
- ";jp [num] (Max : 200 I think LOL) - Set's your jumppower to [num]",
- ";getspray - Gives you the spray can",
- ";reset - Kills you Basically",
- ";respawn - Respawns you (Useless if you accidentally glitch yourself)",
- ";freeze [plr] - Freezes the player on your client for easy killing",
- ";thaw [plr] - Unfreezes the player from your client if frozen",
- ";btools - Gives you btools.",
- ";nofloat - Removes that annoying float when you lunge",
- ";float - Enables back the annoying float when you lunge",
- ";noreach - Sets your foil's size to it's default",
- ";age [plr] - Returns the players AccountAge. R.I.P. Newgens",
- ";os [plr] - Returns the players OsPlatform. R.I.P. mobile kiddos",
- ";heal - Instantly heals your player with the Double Health Pad",
- ";loopheal - Loops the Double health pad to your character",
- ";unloopheal - Breaks look on Double Health Pad",
- ";sit - Makes you sit",
- ";jump - Makes you jump (BROKEN IDK WHY LOL)",
- ";goto [plr] - Teleports you to the player",
- ";quit - Force Stops the roblox process",
- ";rejoin - Quickly rejoins the game (MIGHT NOT REJOIN THE SAME SERVER)",
- ";eval [code] - Runs Short lines of code (Ex : ;eval print('hi') )",
- ";infjump - Spam the Space bar to jump infinitely!",
- ";uninfjump - Disables infinite jump",
- ";cmds - Prints all commands to chat",
- ";dex - Launches Dex 3.0 by Moon",
- ";killdex - Kills the Dex process",
- ";spectate - Views the player",
- ";unspectate - Views your character",
- ";print - Prints something (;print hi)",
- ";fly - Makes you fly",
- ";unfly - Disables fly",
- ";flyspeed - Edit the speed at which you fly",
- ";noclip - Enables noclip",
- ";clip - Disables noclip",
- ";follow - Makes you walk to the player",
- ";unfollow - Makes you stop walking to the player",
- ";writefile - Writes contents to your exploits workspace folder",
- ";load - loads a file from your exploits workspace folder",
- ";antikill - Prevents you from being fe killed and fe bringed",
- ";unantikill - Allows you to be fe kiled and fe bringed",
- ";changelogs - Shows you the latest edits I've made to the script",
- ";disc - Copies my discord tag to clipboard for easy adding, I'm always here to help!"
- }
- changelogs = {
- "12/15/2018 - Released the script and fixed **MOST** errors [Version 1.0]"
- "12/16/2018 - Updated to a new noclip method due to bugs [Version 1.1]"
- }
- local date_table = os.date("*t")
- local hour, minute, second = date_table.hour, date_table.min, date_table.sec
- local year, month, day = date_table.year, date_table.month, date_table.day
- local result = year, month, day, hour, minute, second
- local date = ""..month.."/"..day.."/"..year..""
- local noon = "AM"
- if hour > 12 then
- hour = hour - 12
- local noon = "PM"
- elseif hour < 12 then
- local noon = "AM"
- end
- if hour == 0 then
- hour = 12
- end
- local time = ""..hour..":"..minute.." "..noon..""
- plrs = game:GetService("Players")
- You = plrs.LocalPlayer
- Backpack = You.Backpack
- Avatar = You.Character
- name = You.Name
- Fencing_ID = 12109643
- -- Don't try to execute this in the wrong game Fool
- if game.PlaceId ~= Fencing_ID then
- msg("Smartass", "You aren't very smart.")
- wait(2)
- TS:Teleport(Fencing_ID)
- end
- if has(Chat, ";nofloat") then
- msg("Fencing Admin", "Disabled Lunge-Float!")
- SendChat("Disabled Lunge-Float!", "green")
- for y, x in pairs(Avatar:GetChildren()) do
- if x:IsA("Part") then
- x.CustomPhysicalProperties = PhysicalProperties.new(100, 0.3, 0.5)
- end
- end
- end
- if has(Chat, ";float") then
- msg("Fencing Admin", "Enabled Lunge-Float")
- SendChat("Enabled Lunge-Float", "green")
- for y, x in pairs(Avatar:GetChildren()) do
- if x:IsA("Part") then
- x.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.3, 0.5)
- end
- end
- end
- if has(Chat, ";reach") then
- res, _ = Chat:gsub("%D+", "")
- size = tonumber(res)
- if size > 350 then
- msg("Fencing Admin", "Size : "..size.." is not supported! Size set to 350.")
- SendChat("Fencing Admin", "Size : "..size.." is not supported! Size set to 350.", "red")
- size = 350
- end
- msg("Fencing Admin", "Reach set to : "..size)
- SendChat("Reach set to : "..size.."", "green")
- for i,v in pairs(Avatar:GetChildren()) do
- if v:IsA("Tool") and v.Name == "Foil" then
- v.Parent = Backpack
- end
- end
- for i,v in pairs(Backpack:GetChildren()) do
- if v:IsA("Tool") and v.Name == "Foil" then
- v.Handle.Size = Vector3.new(0.1, 0.1, size)
- v.Parent = Avatar
- end
- end
- end
- if has(Chat, ";sit") then
- msg("Fencing Admin", "You are now sitting!")
- SendChat("You are now sitting!", "green")
- Avatar.Humanoid.Sit = true
- end
- if has(Chat, ";jump") then
- msg("Fencing Admin", "Made you jump!")
- SendChat("Made you jump!", "green")
- Avatar.Humanoid.Jump = true
- end
- if has(Chat, ";ws") then
- res, _ = Chat:gsub("%D+", "")
- speed = tonumber(res)
- msg("Fencing Admin", "Set Walkspeed To "..speed.."")
- SendChat("Set Walkspeed To "..speed.."", "green")
- Avatar.Humanoid.WalkSpeed = speed
- end
- if has(Chat, ";getspray") then
- msg("Fencing Admin", "Gave you the spray can!")
- SendChat("Gave you the spray can!", "green")
- local original = workspace.Handle.CFrame
- workspace.Handle.CFrame = Avatar.HumanoidRootPart.CFrame
- wait(0.1)
- workspace.Handle.CFrame = original
- end
- if has(Chat, ";time") then
- msg("Fencing Admin", "The time is currently")
- SendChat("The time is currently", "green")
- msg(date, time)
- SendChat("["..date.."] ["..time.."]", "green")
- end
- if has(Chat, ";noreach") then
- msg("Fencing Admin", "Removed reach!")
- SendChat("Removed reach!", "red")
- for i,v in pairs(Avatar:GetChildren()) do
- if v:IsA("Tool") and v.Name == "Foil" then
- v.Parent = Backpack
- end
- end
- for i,v in pairs(Backpack:GetChildren()) do
- if v:IsA("Tool") and v.Name == "Foil" then
- v.Handle.Size = Vector3.new(1, 0.4, 5)
- v.Parent = Avatar
- end
- end
- end
- if has(Chat, ";goto") then
- Chat = Chat:gsub(";goto ", "")
- Chat = string.lower(Chat)
- for i,v in pairs(plrs:GetChildren()) do
- v.Name = string.lower(tostring(v.Name))
- if has(v.Name, Chat) then
- Avatar.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
- msg("Fencing Admin", "Teleported to : "..v.Name.."")
- SendChat("Teleported to : "..v.Name.."", "red")
- end
- end
- end
- if has(Chat, ";age") then
- Chat = Chat:gsub(";age ", "")
- Chat = string.lower(Chat)
- for i,v in pairs(plrs:GetChildren()) do
- v.Name = string.lower(tostring(v.Name))
- if has(v.Name, Chat) then
- msg("Fencing Admin", ""..v.Name.."'s AccountAge : "..v.AccountAge..".")
- SendChat(""..v.Name.."'s AccountAge : "..v.AccountAge..".", "red")
- end
- end
- end
- if has(Chat, ";freeze")then
- Chat = Chat:gsub(";freeze ", "")
- Chat = string.lower(Chat)
- for i,v in pairs(plrs:GetChildren()) do
- v.Name = string.lower(tostring(v.Name))
- if has(v.Name, Chat) then
- msg("Fencing Admin", "Froze : "..v.Name..".")
- SendChat("Froze : "..v.Name..".", "blue")
- for i,v in pairs(v.Character:GetChildren()) do
- if v:IsA("Part") then
- v.Anchored = true
- end
- end
- end
- end
- end
- if has(Chat, ";thaw") then
- Chat = Chat:gsub(";thaw ", "")
- Chat = string.lower(Chat)
- for i,v in pairs(plrs:GetChildren()) do
- v.Name = string.lower(tostring(v.Name))
- if has(v.Name, Chat) then
- msg("Fencing Admin", "Thawed : "..v.Name..".")
- SendChat("Thawed : "..v.Name..".", "blue")
- for i,v in pairs(v.Character:GetChildren()) do
- if v:IsA("Part") then
- v.Anchored = false
- end
- end
- end
- end
- end
- if has(Chat, ";rejoin") then
- for i=1, 10 do
- SendChat("Rejoining!", "red")
- end
- TS:Teleport(game.PlaceId)
- end
- if has(Chat, ";quit") then
- game:Shutdown()
- end
- if has(Chat, ";os") then
- Chat = Chat:gsub(";os ", "")
- Chat = string.lower(Chat)
- for i,v in pairs(plrs:GetChildren()) do
- v.Name = string.lower(tostring(v.Name))
- if has(v.Name, Chat) then
- msg("Fencing Admin", ""..v.Name.."'s OS : "..v.OsPlatform..".")
- SendChat(""..v.Name.."'s OS : "..v.OsPlatform..".", "green")
- end
- end
- end
- if has(Chat, ";loopheal") then
- msg("Fencing Admin", "Loop healing your character!")
- SendChat("Loop healing your character!", "green")
- healing = true
- end
- if has(Chat, ";unloopheal") then
- msg("Fencing Admin", "No longer healing your character.")
- SendChat("No longer healing your character.", "red")
- healing = false
- end
- if has(Chat, ";btools") then
- msg("Fencing Admin", "Gave Btools! [CLIENT ONLY]")
- BinType = 1
- while wait(0.2) do
- if BinType == 5 then
- break
- end
- Instance.new("HopperBin", Backpack).BinType = BinType
- BinType = BinType + 1
- end
- end
- if has(Chat, ";reset") then
- SendChat("Killed you!", "red")
- msg("Fencing Admin", "Killed your character!")
- Avatar:BreakJoints()
- end
- if has(Chat, ";jp") then
- res, _ = Chat:gsub("%D+", "")
- jp = tonumber(res)
- Avatar.Humanoid.JumpPower = jp
- msg("Fencing Admin", "Set your Jump Value to : "..jp.."")
- SendChat("Set your jumppower to "..jp.."", "green")
- end
- if has(Chat, ";heal") then
- SendChat("Regenerated your health!", "green")
- msg("Fencing Admin", "Healed your character!")
- for i,v in pairs(workspace:GetChildren()) do
- if v.Name == "Button" then
- goback = v.CFrame
- v.CanCollide = false
- v.CFrame = Avatar.HumanoidRootPart.CFrame
- wait(0.1)
- v.CFrame = goback
- v.CanCollide = true
- end
- end
- end
- if has(Chat, ";respawn") then
- msg("Fencing Admin", "Respawned your character!")
- SendChat("Respawned!", "green")
- Avatar:Destroy()
- local Group = Instance.new("Model")
- Group.Parent = workspace
- Group.Name = "Fencing Admin"
- local Humanoid = Instance.new("Humanoid")
- Humanoid.Parent = Group
- local Body = Instance.new("Part")
- Body.Name = "Torso"
- Body.CanCollide = false
- Body.Parent = Group
- Avatar = Group
- end
- if has(Chat, ";eval") then
- msg("Fencing Admin", "Ran Code!")
- SendChat("Ran the Code", "red")
- Chat = Chat:gsub(";eval ", "")
- loadstring(tostring(Chat))()
- end
- if has(Chat, ";infjump") then
- msg("Fencing Admin", "Infinite Jump Enabled!")
- SendChat("Infinite Jump Enabled", "green")
- jumping = true
- end
- if has(Chat, ";uninfjump") then
- msg("Fencing Admin", "Infinite Jump Disabled!")
- SendChat("Infinite Jump Disabled!", "green")
- jumping = false
- end
- if has(Chat, ";cmds") then
- SendChat("[Fencing Admin]", "green")
- SendChat("["..#cmds.." Commands!]", "green")
- for i=1, #cmds do
- SendChat(""..i..". "..cmds[i].."", "green")
- end
- SendChat("[Made by Senpai]", "green")
- end
- if has(Chat, ";dex") then
- msg("Fencing Admin", "Launched Dex")
- SendChat("Launched Dex", "green")
- loadstring(game:GetObjects("rbxassetid://418957341")[1].Source)()
- end
- if has(Chat, ";killdex") then
- msg("Fencing Admin", "Killed Dex")
- SendChat("Killed Dex", "green")
- for i,v in pairs(game.CoreGui:GetChildren()) do
- if v.Name == "Dex" then
- v:Destroy()
- else
- msg("Fencing Admin", "Dex doesn't seem to be running!")
- SendChat("Dex doesn't seem to be running!", "green")
- end
- end
- end
- if has(Chat, ";spectate") then
- for i,v in pairs(plrs:GetChildren()) do
- v.Name = string.lower(tostring(v.Name))
- Chat = Chat:gsub(";spectate ", "")
- Chat = string.lower(Chat)
- if has(v.Name, Chat) then
- workspace.CurrentCamera.CameraSubject = v.Character
- msg("Fencing Admin", "Spectating : "..v.Name..".")
- SendChat("Now viewing "..v.Name.."", "green")
- end
- end
- end
- if has(Chat, ";unspectate") then
- workspace.CurrentCamera.CameraSubject = Avatar
- msg("Fencing Admin", "No longer viewing anyone")
- SendChat("Spectate turned off", "red")
- end
- if has(Chat, ";print") then
- Chat = Chat:gsub(";print ", "")
- print(tostring(Chat))
- msg("Fencing Admin", "Printed Result")
- SendChat("Printed!", "green")
- end
- if has(Chat, ";fly") then
- msg("Fencing Admin", "Credits to RGEENEUS")
- SendChat("Flying enabled", "green")
- startFly()
- end
- if has(Chat, ";unfly") then
- msg("Fencing Admin", "Stopped flying.")
- SendChat("Flying disabled", "red")
- endFly()
- end
- if has(Chat, ";flyspeed") then
- res, _ = Chat:gsub("%D+", "")
- newspeed = tonumber(res)
- flyingspeed = newspeed
- msg("Fencing Admin", "Set flying speed to "..newspeed.."")
- SendChat("New flying speed set!", "green")
- end
- if has(Chat, ";noclip") then
- msg("Fencing Admin", "Noclip Enabled")
- noclip = true
- SendChat("Noclip on!", "green")
- end
- if has(Chat, ";clip") then
- msg("Fencing Admin", "Turned off noclip!")
- noclip = false
- for i,v in pairs(Avatar:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("MeshPart") then
- v.CanCollide = true
- end
- end
- SendChat("Noclip off!", "red")
- end
- if has(Chat, ";follow") then
- Chat = Chat:gsub(";follow ", "")
- Chat = string.lower(Chat)
- SendChat("Following the player", "green")
- msg("Fencing Admin", "Now following the player")
- for i,v in pairs(plrs:GetChildren()) do
- v.Name = string.lower(tostring(v.Name))
- if has(v.Name, Chat) then
- loopfollowing = true
- theplayer = v.Character
- end
- end
- end
- if has(Chat, ";unfollow") then
- loopfollowing = false
- theplayer = nil
- msg("Fencing Admin", "No longer following the player")
- SendChat("Follow disabled!", "red")
- end
- if has(Chat, ";writefile") then
- Chat = Chat:gsub(";writefile ", "")
- randomizer = math.random(999, 9999999)
- name = "[Senpai] "..randomizer..".txt"
- writefile(name, Chat)
- setclipboard(tostring(name))
- msg("Fencing Admin", "Wrote file!")
- SendChat("Wrote file and copied file name to clipboard!", "green")
- end
- if has(Chat, ";load") then
- Chat = Chat:gsub(";load ", "")
- loadfile(Chat)()
- msg("Fencing Admin", "Loaded file!")
- SendChat("File loaded!", "red")
- end
- if has(Chat, ";antikill") then
- spawn (function()
- local tools = {}
- local bag = You:findFirstChildOfClass'Backpack'
- for i,v in pairs(bag:getChildren'') do
- tools[v] = v
- end
- _G.stop = true
- wait()
- _G.stop = false
- bag.ChildAdded:connect(function(c)
- tools[c] = c
- end)
- local p = You
- local off = false
- local cf,pos = p.Character.HumanoidRootPart.CFrame,p.Character.HumanoidRootPart.Position
- function check(tool)
- if off then return end
- if tool:IsA("Tool") and not tools[tool] then
- game:service'RunService'.Stepped:wait''
- tool.Parent = game:service'Players'.LocalPlayer.Backpack
- tools[tool] = tool
- local start = tick()
- msg("Fencing Admin", "Someone tried to FE kill/bring you!")
- SendChat("FE kill/bring blocked!", "green")
- for i = 1,25 do
- game:service'RunService'.Stepped:wait''
- for i,v in pairs(p.Character:getDescendants'') do
- if v:IsA("BasePart") then
- v.Velocity = v3(0,0,0)
- end
- end
- p.Character.HumanoidRootPart.CFrame = cf
- end
- end
- end
- print'confirmation'
- p.CharacterAdded:connect(function(Char)
- Char.ChildAdded:connect(check)
- end)
- if p.Character then
- p.Character.ChildAdded:connect(check)
- end
- while wait(.1) and not _G.stop do
- if p.Character then
- cf = p.Character.HumanoidRootPart.CFrame
- pos = p.Character.HumanoidRootPart.Position
- end
- end
- off = true
- end)
- msg("Fencing Admin", "Enabled anti kill!")
- SendChat("Anti kill Enabled!", "green")
- end
- if has(Chat, ";unantikill") then
- _G.stop = true
- off = true
- msg("Fencing Admin", "Disabled anti kill")
- SendChat("Disabled anti kill", "red")
- end
- if has(Chat, ";changelogs") then
- for i=1, #changelogs do
- SendChat(changelogs[i], "green")
- end
- SendChat("Changelogs for version ["..ver.."]", "green")
- end
- if has(Chat, ";disc") then
- SendChat("Copied my discord to clipboard", "green")
- msg("Fencing Admin", "Discord tag copied!")
- setclipboard(tostring("Senpai~#8411"))
- end
- -- Senpai~#8411
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement