Advertisement
ProScripter29

FE Basic Admin

Dec 30th, 2022
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.88 KB | None | 0 0
  1. -- Created by Simplicity --
  2.  
  3. -- Script is quite messy right now, but all the functions should work --
  4.  
  5. local Players = game:GetService("Players")
  6. local StarterGui = game:GetService("StarterGui")
  7. local TeleportService = game:GetService("TeleportService")
  8.  
  9. local MarketplaceService = game:GetService("MarketplaceService")
  10.  
  11. local UserInputService = game:GetService("UserInputService")
  12.  
  13. local LocalPlayer = Players.LocalPlayer
  14.  
  15. Prefix = "/"
  16.  
  17. ---------------------------------------------------------------------------------------
  18.  
  19. local InfiniteJumps = false
  20.  
  21. local Gui = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  22. Gui.Name = "FEAdminGui"
  23. Gui.ResetOnSpawn = false
  24.  
  25. ---------------------------------------------------------------------------------------
  26.  
  27. local function SendMessage(Message, Color)
  28.     StarterGui:SetCore("ChatMakeSystemMessage", {
  29.         Text = Message,
  30.         Font = Enum.Font.SourceSansBold,
  31.         Color = Color,
  32.         FontSize = Enum.FontSize.Size96
  33.     })
  34. end
  35.  
  36. SendMessage([[FE Admin 1.0 Successfuly Loaded!
  37. Chat /cmds to see available commands.]], Color3.fromRGB(255, 255, 255))
  38.  
  39. ---------------------------------------------------------------------------------------
  40.  
  41. local Sound = Instance.new("Sound", workspace)
  42. Sound.Name = "_backgroundmusic"
  43.  
  44. Commands = {
  45.     speed = function(Arguments)
  46.         local Value = unpack(Arguments)
  47.         LocalPlayer.Character.Humanoid.WalkSpeed = Value
  48.     end,
  49.     jumpheight = function(Arguments)
  50.         local Value = unpack(Arguments)
  51.         LocalPlayer.Character.Humanoid.UseJumpPower = true
  52.         LocalPlayer.Character.Humanoid.JumpPower = Value
  53.     end,
  54.     fly = function(Arguments)
  55.         task.spawn(function()
  56.             loadstring(game:HttpGet("https://pastebin.com/raw/mN8EqiQy"))()
  57.         end)
  58.     end,
  59.     reset = function(Arguments)
  60.         LocalPlayer.Character.Humanoid.Health = 0
  61.     end,
  62.     freeze = function(Arguments)
  63.         task.spawn(function()
  64.             LocalPlayer.Character.HumanoidRootPart.Anchored = true
  65.         end)
  66.     end,
  67.     unfreeze = function(Arguments)
  68.         task.spawn(function()
  69.             LocalPlayer.Character.HumanoidRootPart.Anchored = false
  70.         end)
  71.     end,
  72.     spin = function(Arguments)
  73.         task.spawn(function()
  74.             local Value = unpack(Arguments)
  75.             if (Value == nil) then
  76.                 Value = 30
  77.             end
  78.             if (not LocalPlayer.Character.HumanoidRootPart:FindFirstChild("_spinthrust")) then
  79.                 local BodyThrust = Instance.new("BodyThrust", LocalPlayer.Character.HumanoidRootPart)
  80.                 BodyThrust.Name = "_spinthrust"
  81.                 BodyThrust.Force = Vector3.new((Value * 2), 0, 0)
  82.                 BodyThrust.Location = Vector3.new(0, 0, (Value * 2))
  83.             else
  84.                 local BodyThrust = LocalPlayer.Character.HumanoidRootPart:FindFirstChild("_spinthrust")
  85.                 BodyThrust.Force = Vector3.new((Value * 2), 0, 0)
  86.                 BodyThrust.Location = Vector3.new(0, 0, (Value * 2))
  87.             end
  88.         end)
  89.     end,
  90.     unspin = function(Arguments)
  91.         task.spawn(function()
  92.             LocalPlayer.Character.HumanoidRootPart._spinthrust:Destroy()
  93.         end)
  94.     end,
  95.     rejoin = function(Arguments)
  96.         task.spawn(function()
  97.             TeleportService:Teleport(game.PlaceId, LocalPlayer)
  98.         end)
  99.     end,
  100.     teleport = function(Arguments)
  101.         task.spawn(function()
  102.             local Target
  103.             local Value = unpack(Arguments)
  104.             for _, Player in pairs(Players:GetPlayers()) do
  105.                 if string.find(string.lower(Player.Name), string.lower(Value)) then
  106.                     Target = Player
  107.                     break
  108.                 end
  109.             end
  110.             if (Target ~= nil) and Target.Character:FindFirstChild("HumanoidRootPart") then
  111.                 LocalPlayer.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame + Vector3.new(0, 5, 0)
  112.             end
  113.         end)
  114.     end,
  115.     boost = function(Arguments)
  116.         task.spawn(function()
  117.             while task.wait(0.1) do
  118.                 for _, Part in pairs(workspace:GetDescendants()) do
  119.                     if Part:IsA("BasePart") or Part:IsA("UnionOperation") then
  120.                         Part.Material = Enum.Material.SmoothPlastic
  121.                     end
  122.                 end
  123.                 for _, Effect in pairs(game.Lighting:GetChildren()) do
  124.                     if (not Effect:IsA("Sky")) then
  125.                         Effect:Destroy()
  126.                     end
  127.                 end
  128.                 game.Lighting.Brightness = 4
  129.                 game.Lighting.GlobalShadows = false
  130.             end
  131.         end)
  132.     end,
  133.     music = function(Arguments)
  134.         local Id = unpack(Arguments)
  135.         Sound.SoundId = "rbxassetid://"..Id
  136.         Sound.PlaybackSpeed = 1
  137.         Sound.Looped = true
  138.         Sound.Volume = 1.5
  139.         Sound:Play()
  140.         local ProductInfo = MarketplaceService:GetProductInfo(Id)
  141.         if (ProductInfo.Created ~= "null") and (ProductInfo.AssetTypeId == 3) then
  142.             local Message = Instance.new("TextLabel", Gui)
  143.             Message.BackgroundColor3 = Color3.new(0, 0, 0)
  144.             Message.BorderColor3 = Color3.new(0, 0, 0)
  145.             Message.BorderMode = Enum.BorderMode.Inset
  146.             Message.BorderSizePixel = 3
  147.             Message.BackgroundTransparency = 0.5
  148.             Message.Size = UDim2.new(1, 0, 0.051, 0)
  149.             Message.Font = Enum.Font.SourceSansBold
  150.             Message.Text = "Now Playing: "..ProductInfo.Name
  151.             Message.TextColor3 = Color3.new(1, 1, 1)
  152.             Message.TextScaled = true
  153.             task.spawn(function()
  154.                 task.wait(3)
  155.                 for I = 1, 50 do
  156.                     Message.Transparency += 0.01
  157.                     task.wait(0.005)
  158.                 end
  159.                 Message:Destroy()
  160.             end)
  161.         else
  162.             Sound.SoundId = ""
  163.         end
  164.     end,
  165.     unmusic = function(Arguments)
  166.         Sound:Stop()
  167.     end,
  168.     pitch = function(Arguments)
  169.         local Pitch = unpack(Arguments)
  170.         Sound.PlaybackSpeed = Pitch
  171.     end,
  172.     cmds = function(Arguments)
  173.         SendMessage([[Available Commands:
  174. speed, jumpheight, fly, reset, freeze, spin,
  175. teleport, music, pitch, boost, rejoin]], Color3.fromRGB(255, 255, 0))
  176.     end,
  177. }
  178.  
  179. local function onChat(Text, Recipient)
  180.     Text = string.lower(Text)
  181.     -- String Seperator --
  182.     local Split = string.split(Text, " ")
  183.     local SlashCommand = Split[1]
  184.     local Command = string.split(SlashCommand, Prefix)
  185.     local CommandName = Command[2]
  186.     -- Function --
  187.     if Commands[CommandName] then
  188.         local Arguments = {}
  189.         for i = 2, #Split, 1 do
  190.             table.insert(Arguments, Split[i])
  191.         end
  192.         Commands[CommandName](Arguments)
  193.         --print("Command: "..CommandName..", Arguments: "..unpack(Arguments))
  194.     end
  195. end
  196.  
  197. LocalPlayer.Chatted:Connect(onChat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement