SHARE
TWEET

Untitled

MarkPlayz Apr 20th, 2019 (edited) 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4.     print("enjoy admmin script :) -YTDailyPlayz_Alt & spaghettiglitch")
  5.     script.Parent = Player.Character
  6.  
  7.     --RemoteEvent for communicating
  8.     local Event = Instance.new("RemoteEvent")
  9.     Event.Name = "UserInput_Event"
  10.  
  11.     --Fake event to make stuff like Mouse.KeyDown work
  12.     local function fakeEvent()
  13.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14.         t.connect = t.Connect
  15.         return t
  16.     end
  17.  
  18.     --Creating fake input objects with fake variables
  19.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23.     end}
  24.     --Merged 2 functions into one by checking amount of arguments
  25.     CAS.UnbindAction = CAS.BindAction
  26.  
  27.     --This function will trigger the events that have been :Connect()'ed
  28.     local function te(self,ev,...)
  29.         local t = m[ev]
  30.         if t and t._fakeEvent and t.Function then
  31.             t.Function(...)
  32.         end
  33.     end
  34.     m.TrigEvent = te
  35.     UIS.TrigEvent = te
  36.  
  37.     Event.OnServerEvent:Connect(function(plr,io)
  38.         if plr~=Player then return end
  39.         if io.isMouse then
  40.             m.Target = io.Target
  41.             m.Hit = io.Hit
  42.         else
  43.             local b = io.UserInputState == Enum.UserInputState.Begin
  44.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46.             end
  47.             for _,t in pairs(CAS.Actions) do
  48.                 for _,k in pairs(t.Keys) do
  49.                     if k==io.KeyCode then
  50.                         t.Function(t.Name,io.UserInputState,io)
  51.                     end
  52.                 end
  53.             end
  54.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56.         end
  57.     end)
  58.     Event.Parent = NLS([==[
  59.     local Player = game:GetService("Players").LocalPlayer
  60.     local Event = script:WaitForChild("UserInput_Event")
  61.  
  62.     local UIS = game:GetService("UserInputService")
  63.     local input = function(io,a)
  64.         if a then return end
  65.         --Since InputObject is a client-side instance, we create and pass table instead
  66.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67.     end
  68.     UIS.InputBegan:Connect(input)
  69.     UIS.InputEnded:Connect(input)
  70.  
  71.     local Mouse = Player:GetMouse()
  72.     local h,t
  73.     --Give the server mouse data 30 times every second, but only if the values changed
  74.     --If player is not moving their mouse, client won't fire events
  75.     while wait(1/30) do
  76.         if h~=Mouse.Hit or t~=Mouse.Target then
  77.             h,t=Mouse.Hit,Mouse.Target
  78.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  79.         end
  80.     end]==],Player.Character)
  81.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. --//---------\\--
  85. ----Functions----
  86. --\\---------//--
  87.  
  88. function Typer(text)
  89.     for i = 1, #text do
  90.     text.Text = string.sub(text, 1,i)
  91.     local cor = coroutine.wrap(function()
  92.         local sound = Instance.new("Sound")
  93.         sound.Volume = 3.5
  94.         sound.Volume.SoundId = "rbxassetid://151715959"
  95.         sound.Parent = workspace
  96.         sound:Play()
  97.         sound.Ended:Wait()
  98.         sound:Destroy()
  99.     end)
  100.     cor()
  101.     wait()
  102.     end
  103.     wait(1)
  104. end
  105.  
  106. --//------\\--
  107. ----CmdGui----
  108. --\\------//--
  109. local CmdsGui = Instance.new("ScreenGui")
  110. local CmdsTopbar = Instance.new("Frame")
  111. local Cmds = Instance.new("Frame")
  112. local KillCommand = Instance.new("TextLabel")
  113. local GotoCommand = Instance.new("TextLabel")
  114. local KickCommand = Instance.new("TextLabel")
  115. local BanCommand = Instance.new("TextLabel")
  116. local FlingCommand = Instance.new("TextLabel")
  117. local RespawnCommand = Instance.new("TextLabel")
  118. local AdminCommand = Instance.new("TextLabel")
  119. local UnadminCommand = Instance.new("TextLabel")
  120. local Title = Instance.new("TextLabel")
  121. local Exit = Instance.new("TextButton")
  122. local Minimize = Instance.new("TextButton")
  123. Opened = true
  124. CmdsGui.Name = "CmdsGui"
  125. CmdsGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  126. CmdsGui.Parent = owner.PlayerGui
  127.  
  128. CmdsTopbar.Name = "CmdsTopbar"
  129. CmdsTopbar.Parent = CmdsGui
  130. CmdsTopbar.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  131. CmdsTopbar.BackgroundTransparency = 0.40000000596046
  132. CmdsTopbar.BorderSizePixel = 0
  133. CmdsTopbar.Position = UDim2.new(0.344053864, 0, 0.347665846, 0)
  134. CmdsTopbar.Size = UDim2.new(0, 416, 0, 39)
  135. CmdsTopbar.Active = true
  136. CmdsTopbar.Draggable = true
  137. CmdsTopbar.Visible = false
  138.  
  139. Cmds.Name = "Cmds"
  140. Cmds.Parent = CmdsTopbar
  141. Cmds.BackgroundColor3 = Color3.new(1, 1, 1)
  142. Cmds.BackgroundTransparency = 0.30000001192093
  143. Cmds.BorderSizePixel = 0
  144. Cmds.Position = UDim2.new(0, 0, 1, 0)
  145. Cmds.Size = UDim2.new(0, 416, 0, 317)
  146.  
  147. KillCommand.Name = "KillCommand"
  148. KillCommand.Parent = Cmds
  149. KillCommand.BackgroundColor3 = Color3.new(1, 1, 1)
  150. KillCommand.BackgroundTransparency = 1
  151. KillCommand.BorderSizePixel = 0
  152. KillCommand.Size = UDim2.new(0, 229, 0, 25)
  153. KillCommand.Font = Enum.Font.Arial
  154. KillCommand.Text = "!kill [Shortened Names][all][others]"
  155. KillCommand.TextColor3 = Color3.new(0, 0, 0)
  156. KillCommand.TextSize = 16
  157. KillCommand.TextXAlignment = Enum.TextXAlignment.Left
  158.  
  159. GotoCommand.Name = "GotoCommand"
  160. GotoCommand.Parent = Cmds
  161. GotoCommand.BackgroundColor3 = Color3.new(1, 1, 1)
  162. GotoCommand.BackgroundTransparency = 1
  163. GotoCommand.BorderSizePixel = 0
  164. GotoCommand.Position = UDim2.new(0, 0, 0.0788643509, 0)
  165. GotoCommand.Size = UDim2.new(0, 241, 0, 25)
  166. GotoCommand.Font = Enum.Font.Arial
  167. GotoCommand.Text = "!goto [Shortened Names][all][others]"
  168. GotoCommand.TextColor3 = Color3.new(0, 0, 0)
  169. GotoCommand.TextSize = 16
  170. GotoCommand.TextXAlignment = Enum.TextXAlignment.Left
  171.  
  172. KickCommand.Name = "KickCommand"
  173. KickCommand.Parent = Cmds
  174. KickCommand.BackgroundColor3 = Color3.new(1, 1, 1)
  175. KickCommand.BackgroundTransparency = 1
  176. KickCommand.BorderSizePixel = 0
  177. KickCommand.Position = UDim2.new(0, 0, 0.157728702, 0)
  178. KickCommand.Size = UDim2.new(0, 241, 0, 25)
  179. KickCommand.Font = Enum.Font.Arial
  180. KickCommand.Text = "!kick [Shortened Names][all][others]"
  181. KickCommand.TextColor3 = Color3.new(0, 0, 0)
  182. KickCommand.TextSize = 16
  183. KickCommand.TextXAlignment = Enum.TextXAlignment.Left
  184.  
  185. BanCommand.Name = "BanCommand"
  186. BanCommand.Parent = Cmds
  187. BanCommand.BackgroundColor3 = Color3.new(1, 1, 1)
  188. BanCommand.BackgroundTransparency = 1
  189. BanCommand.BorderSizePixel = 0
  190. BanCommand.Position = UDim2.new(0, 0, 0.236593068, 0)
  191. BanCommand.Size = UDim2.new(0, 241, 0, 25)
  192. BanCommand.Font = Enum.Font.Arial
  193. BanCommand.Text = "!ban [Shortened Names][all][others]"
  194. BanCommand.TextColor3 = Color3.new(0, 0, 0)
  195. BanCommand.TextSize = 16
  196. BanCommand.TextXAlignment = Enum.TextXAlignment.Left
  197.  
  198. FlingCommand.Name = "FlingCommand"
  199. FlingCommand.Parent = Cmds
  200. FlingCommand.BackgroundColor3 = Color3.new(1, 1, 1)
  201. FlingCommand.BackgroundTransparency = 1
  202. FlingCommand.BorderSizePixel = 0
  203. FlingCommand.Position = UDim2.new(0, 0, 0.315457404, 0)
  204. FlingCommand.Size = UDim2.new(0, 241, 0, 25)
  205. FlingCommand.Font = Enum.Font.Arial
  206. FlingCommand.Text = "!fling [Shortened Names][all][others]"
  207. FlingCommand.TextColor3 = Color3.new(0, 0, 0)
  208. FlingCommand.TextSize = 16
  209. FlingCommand.TextXAlignment = Enum.TextXAlignment.Left
  210.  
  211. RespawnCommand.Name = "RespawnCommand"
  212. RespawnCommand.Parent = Cmds
  213. RespawnCommand.BackgroundColor3 = Color3.new(1, 1, 1)
  214. RespawnCommand.BackgroundTransparency = 1
  215. RespawnCommand.BorderSizePixel = 0
  216. RespawnCommand.Position = UDim2.new(0, 0, 0.39432174, 0)
  217. RespawnCommand.Size = UDim2.new(0, 241, 0, 25)
  218. RespawnCommand.Font = Enum.Font.Arial
  219. RespawnCommand.Text = "!re [Shortened Names][all][others]"
  220. RespawnCommand.TextColor3 = Color3.new(0, 0, 0)
  221. RespawnCommand.TextSize = 16
  222. RespawnCommand.TextXAlignment = Enum.TextXAlignment.Left
  223.  
  224. AdminCommand.Name = "AdminCommand"
  225. AdminCommand.Parent = Cmds
  226. AdminCommand.BackgroundColor3 = Color3.new(1, 1, 1)
  227. AdminCommand.BackgroundTransparency = 1
  228. AdminCommand.BorderSizePixel = 0
  229. AdminCommand.Position = UDim2.new(0, 0, 0.460567832, 0)
  230. AdminCommand.Size = UDim2.new(0, 180, 0, 25)
  231. AdminCommand.Font = Enum.Font.Arial
  232. AdminCommand.Text = "!admin [Shortened Names]"
  233. AdminCommand.TextColor3 = Color3.new(0, 0, 0)
  234. AdminCommand.TextSize = 16
  235. AdminCommand.TextXAlignment = Enum.TextXAlignment.Left
  236.  
  237. UnadminCommand.Name = "UnadminCommand"
  238. UnadminCommand.Parent = Cmds
  239. UnadminCommand.BackgroundColor3 = Color3.new(1, 1, 1)
  240. UnadminCommand.BackgroundTransparency = 1
  241. UnadminCommand.BorderSizePixel = 0
  242. UnadminCommand.Position = UDim2.new(0, 0, 0.539432168, 0)
  243. UnadminCommand.Size = UDim2.new(0, 199, 0, 25)
  244. UnadminCommand.Font = Enum.Font.Arial
  245. UnadminCommand.Text = "!unadmin [Shortened Names]"
  246. UnadminCommand.TextColor3 = Color3.new(0, 0, 0)
  247. UnadminCommand.TextSize = 16
  248. UnadminCommand.TextXAlignment = Enum.TextXAlignment.Left
  249.  
  250. Title.Name = "Title"
  251. Title.Parent = CmdsTopbar
  252. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  253. Title.BackgroundTransparency = 1
  254. Title.BorderSizePixel = 0
  255. Title.Position = UDim2.new(0, 0, 0.179487169, 0)
  256. Title.Size = UDim2.new(0, 180, 0, 25)
  257. Title.Font = Enum.Font.Arial
  258. Title.Text = "DailyAdmin Commands"
  259. Title.TextColor3 = Color3.new(1, 1, 1)
  260. Title.TextSize = 17
  261.  
  262. Exit.Name = "Exit"
  263. Exit.Parent = CmdsTopbar
  264. Exit.BackgroundColor3 = Color3.new(1, 1, 1)
  265. Exit.BackgroundTransparency = 1
  266. Exit.BorderSizePixel = 0
  267. Exit.Position = UDim2.new(0.908653855, 0, 0.179487184, 0)
  268. Exit.Size = UDim2.new(0, 31, 0, 25)
  269. Exit.Font = Enum.Font.Arial
  270. Exit.Text = "x"
  271. Exit.TextColor3 = Color3.new(1, 1, 1)
  272. Exit.TextSize = 35
  273. Exit.MouseButton1Click:Connect(function()
  274.     CmdsTopbar.Visible = false
  275. end)
  276.  
  277. Minimize.Name = "Minimize"
  278. Minimize.Parent = CmdsTopbar
  279. Minimize.BackgroundColor3 = Color3.new(1, 1, 1)
  280. Minimize.BackgroundTransparency = 1
  281. Minimize.BorderSizePixel = 0
  282. Minimize.Position = UDim2.new(0.800480783, 0, 0.179487184, 0)
  283. Minimize.Size = UDim2.new(0, 31, 0, 25)
  284. Minimize.Font = Enum.Font.Arial
  285. Minimize.Text = "-"
  286. Minimize.TextColor3 = Color3.new(1, 1, 1)
  287. Minimize.TextSize = 50
  288. Minimize.MouseButton1Click:Connect(function()
  289.     if Opened == true then
  290.         Cmds:TweenSize(UDim2.new(0,417,0,0), 'In', 'Quad', 1)
  291.         wait(0.8)
  292.         Opened = false
  293.     elseif Opened == false then
  294.         Cmds:TweenSize(UDim2.new(0,417,0,317), 'Out', 'Quad', 1)
  295.         wait(0.8)
  296.         Opened = true
  297.     end
  298. end)
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305. --//------------\\--
  306. ----Dailys Admin----
  307. --\\------------//--
  308.  
  309.  
  310. PlayerGui = Player.PlayerGui
  311.  
  312. --//------\\--
  313. ----Tables----
  314. --\\------//--
  315.  
  316. local BanLand = {}
  317. local others = {}
  318.  
  319. --//--------\\--
  320. ----Varibles----
  321. --\\--------//--
  322.  
  323. local AdminListName = {
  324.     "YTDailyPlayz_Alt";
  325.     "thehunter1117";
  326.     "Player1";
  327. }
  328.  
  329. local AdminListID = {
  330.     236379;
  331.     -1;
  332.     514954043;
  333. }
  334. prefix = "!"
  335.  
  336. function findman(re)
  337.     for _,mann in pairs(game.Players:GetPlayers()) do
  338.         if mann.Name:sub(1,re:len()):lower()==re:lower() then
  339.             return(mann)
  340.         end
  341.     end
  342. end
  343.  
  344. --//----------\\--
  345. ----Chat Stuff----
  346. --\\----------//--
  347. --[[
  348. for i,Player in pairs(game.Players:GetPlayers()) do
  349.     Player.Chatted:Connect(function(lol)
  350.         for _,lol2 in pairs(AdminListName) do
  351.             if Player.Name == lol2 then
  352.                 if lol:sub(1,1) == prefix then
  353.                     local cmd = lol:sub(2)
  354.                     if cmd:sub(1,5) == "kill " then
  355.                         local uglyvictim = findman(cmd:sub(6))
  356.                         if uglyvictim then
  357.                             uglyvictim.Character:BreakJoints()
  358.                         end
  359.                     elseif cmd:sub(1,5) == "kick " then
  360.                         local uglyvictim = findman(cmd:sub(6))
  361.                         if uglyvictim then
  362.                             uglyvictim:Kick('Kicked by '..Player.Name..' using Dailys Admin Remastered!')
  363.                             print(uglyvictim.Name.." has been kicked!")
  364.                         end
  365.                     elseif cmd:sub(1,4) == "ban " then
  366.                         local uglyvictim = findman(cmd:sub(5))
  367.                     if uglyvictim then
  368.                         uglyvictim:Kick('Banned by '..Player.Name..' using Dailys Admin Remastered!')
  369.                         print(uglyvictim.Name.." has been Banned!")
  370.                         table.insert(BanLand,uglyvictim.Name)
  371.                         print("victim not found!")
  372.                     end
  373.                     end
  374.                 end
  375.             end
  376.         end
  377.     end)
  378. end
  379. --]]
  380. for i,Player in pairs(game.Players:GetPlayers()) do
  381.     Player.Chatted:Connect(function(fuck)
  382.     for _,lol in pairs(AdminListName) do
  383.         if Player.Name == lol then
  384.             if fuck:sub(1,1)==prefix then
  385.                 local shitcmd = fuck:sub(2)
  386.                 if shitcmd:sub(1,5) == "kill " then
  387.                     local uglyvictim = findman(shitcmd:sub(6))
  388.                     if uglyvictim then
  389.                         uglyvictim.Character:BreakJoints() 
  390.                     end
  391.                     if shitcmd:sub(6) == "all" then
  392.                         for i,v in pairs(game.Players:GetPlayers()) do
  393.                             v.Character:BreakJoints()
  394.                         end
  395.                     end
  396.                     if shitcmd:sub(6) == "others" then
  397.                         for i,v in pairs(game.Players:GetPlayers()) do
  398.                             if v.Name ~= Player.Name then
  399.                                 table.insert(others, v)
  400.                                 [others].Character:BreakJoints()
  401.                             end
  402.                         end
  403.                     end
  404.                 elseif shitcmd:sub(1,5) == "kick " then
  405.                     local uglyvictim = findman(shitcmd:sub(6))
  406.                     if uglyvictim then
  407.                         uglyvictim:Kick('Kicked by '..Player.Name..' using Dailys Admin Remastered!')
  408.                     end
  409.                 elseif shitcmd:sub(1,4) == "ban " then
  410.                     local uglyvictim = findman(shitcmd:sub(5))
  411.                     if uglyvictim then
  412.                         uglyvictim:Kick('Banned by '..Player.Name..' using Dailys Admin Remastered!')
  413.                         table.insert(BanLand,uglyvictim.Name)
  414.                     end
  415.                 elseif shitcmd:sub(1,6) == "admin " then
  416.                     local uglyvictim = findman(shitcmd:sub(7))
  417.                     if uglyvictim then
  418.                         table.insert(AdminListName,uglyvictim.Name)
  419.                     end
  420.                 elseif shitcmd:sub(1,8) == "unadmin " then
  421.                     local uglyvictim = findman(shitcmd:sub(9))
  422.                     if uglyvictim then
  423.                         table.remove(AdminListName,uglyvictim.Name)
  424.                     end
  425.                 elseif shitcmd:sub(1,6) == "bring " then
  426.                     local uglyvictim = findman(shitcmd:sub(7))
  427.                     if uglyvictim then
  428.                         uglyvictim.Character.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame
  429.                     else
  430.                         if shitcmd:sub(6) == "all" then
  431.                             for i,v in pairs(game.Players:GetPlayers()) do
  432.                                 v.Character.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame
  433.                             end
  434.                         end
  435.                     end
  436.                 elseif shitcmd:sub(1,5) == "goto " then
  437.                     local uglyvictim = findman(shitcmd:sub(6))
  438.                     if uglyvictim then
  439.                         Player.Character.HumanoidRootPart.CFrame = uglyvictim.Character.HumanoidRootPart.CFrame
  440.                     else
  441.                         if shitcmd:sub(6) == "all" then
  442.                             for i,v in pairs(game.Players:GetPlayers()) do
  443.                                 Player.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  444.                             end
  445.                         end
  446.                     end
  447.                 elseif shitcmd:sub(1,4) == "god " then
  448.                     local uglyvictim = findman(shitcmd:sub(5))
  449.                     if uglyvictim then
  450.                         repeat
  451.                             uglyvictim.Characcter.Humanoid.MaxHealth = math.huge
  452.                         uglyvictim.Characcter.Humanoid.Health = math.huge
  453.                         until uglyvictim.Character.Humanoid.Health == "NaN"
  454.                     end
  455.                 elseif shitcmd:sub(1,5) == "fling " then
  456.                     local uglyvictim = findman(shitcmd:sub(6))
  457.                     if uglyvictim then
  458.                         local BodyForce = Instance.new("BodyForce", uglyvictim.Character.HumanoidRootPart)
  459.                         BodyForce.Name = "BodyForce"
  460.                         BodyForce.Force = Vector3.new(13337, 13337, 13337)
  461.                     end
  462.                 elseif shitcmd:sub(1,4) == "cmds" then
  463.                     CmdsTopbar.Visible = true
  464.                 end
  465.             end
  466.         end
  467.     end
  468. end)
  469. end
  470.  
  471. --//--------------\\--
  472. ----Checking Stuff----
  473. --\\--------------//--
  474.  
  475. local function CheckForBan(player)
  476.     for i = 1, #BanLand do
  477.         if player.Name == BanLand[i] then
  478.             player:Kick('Banned by '..Player.Name..' using Dailys Admin Remastered!')
  479.         end
  480.     end
  481. end
  482.  
  483. game.Players.PlayerAdded:connect(function()
  484.     for i,v in pairs(game.Players:GetPlayers())do
  485.         CheckForBan(v)
  486.     end  
  487. end)
  488.  
  489. game.Players.PlayerAdded:Connect(function(bitch)
  490.     if bitch.Name == AdminListName or bitch.UserId == AdminListID then
  491.         warn('Youre an admin!')
  492.     end
  493. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top