Advertisement
Claof

Claof's Multi-Script - Lua

Apr 7th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.00 KB | None | 0 0
  1. -------------------
  2. --Scripted---------
  3. ----------By-------
  4. ------------Claof--
  5. -------------------
  6.  
  7. --Script can be used for...
  8. GameSetup=false
  9. BanScript=false
  10. TimedDemo=false
  11. Admins=false
  12.  
  13. --GameSetup Settings
  14. Outlines=true
  15. GiveCredit=false
  16. Brightness=1
  17. Chat=true
  18. Backpack=true
  19. PlayerList=true
  20. Health=true
  21. Intro=false
  22. ResetButton=false
  23.  
  24. --Banned Players
  25. BannedPlayers = 'name here','name here','name here','name here','name here'
  26.  
  27. --TimedDemo Settings
  28. TimeLimit=600
  29.  
  30. --Admin Settings (Scroll down for more settings. Also, you are automaticly an admin)
  31. AdminNames = 'name here','name here','name here','name here','name here'
  32. HealKey='h'
  33. GodKey='g'
  34. IncreaseWalkspeedKey='p'
  35. DecreaseWalkspeedKey='l'
  36. ForceFieldKey='f'
  37. InvisiblityKey='m'
  38.  
  39.  
  40.  
  41.  
  42.  
  43. --Do not edit below! If you do, it will break the script!
  44.  
  45.  
  46. PerfectTiming=Instance.new("IntValue",script.StarterIntro)
  47.     PerfectTiming.Name='PerfectTiming'
  48.     PerfectTiming.Value=0
  49. activeUses = 0
  50. if GameSetup==true then activeUses = activeUses + 1
  51. if Intro==true then
  52.     if Admins==false then
  53.     PerfectTiming.Value=1
  54.     end
  55. end
  56. if ResetButton==true then
  57.     resetGui=script.CoreGui.ResetGui:Clone()
  58.     resetGui.Parent=game.StarterGui
  59.     resetButton=resetGui.ResetButton
  60. end
  61. game.Lighting.Outlines = Outlines
  62. script.CoreGui.health.Value=Health
  63. script.CoreGui.backpack.Value=Backpack
  64. script.CoreGui.chat.Value=Chat
  65. script.CoreGui.playerlist.Value=PlayerList
  66. local CoreGuiScript = script.CoreGui.CoreGuiScript:Clone()
  67. CoreGuiScript.Parent = game.StarterGui
  68. script.CoreGui.CoreGuiScript:Destroy()
  69. game.Lighting.Brightness=Brightness
  70. if GiveCredit==true then
  71. local GetCredit = script.Credit["Claof's Multi-Script Credit"]:Clone()
  72. GetCredit.Parent = game.StarterGui
  73. resetButton.Position=UDim2.new(0, 0, 0, 50)
  74. end
  75. end
  76. if BanScript==true then
  77. activeUses = activeUses + 1
  78. game.Players.PlayerAdded:connect(function(player)
  79. if player.Name==BannedPlayers then
  80. wait(.5)
  81. player:Destroy()
  82. end
  83. end)
  84. end
  85. for i=1,30 do
  86. print''
  87. end
  88. if TimedDemo==true then
  89. activeUses = activeUses + 1
  90. game.Players.PlayerAdded:connect(function(player)
  91. wait(TimeLimit)
  92. player:Destroy()
  93. end)
  94. end
  95. if Admins==true then
  96. activeUses = activeUses + 1
  97. game.Players.PlayerAdded:connect(function(player)
  98.     wait()
  99. if player.Name == AdminNames then
  100. script.AdminKeys.Heal.Value=HealKey
  101. script.AdminKeys.GodPlayer.Value=GodKey
  102. script.AdminKeys.IncreaseWalkspeed.Value=IncreaseWalkspeedKey
  103. script.AdminKeys.DecreaseWalkspeed.Value=DecreaseWalkspeedKey
  104. script.AdminKeys.Invisiblity.Value=InvisiblityKey
  105. script.AdminKeys.FF.Value=ForceFieldKey
  106. local FixKeys = script.AdminKeys.KeyScript:Clone()
  107. wait()
  108. FixKeys.Parent = player.StarterGear
  109. local ResetMessage = script.AdminKeys.ResetMessage:Clone()
  110. ResetMessage.Parent = player.PlayerGui
  111. player.Character.Humanoid.Health=0
  112. elseif player.userId == game.CreatorId then
  113. script.AdminKeys.Heal.Value=HealKey
  114. script.AdminKeys.GodPlayer.Value=GodKey
  115. script.AdminKeys.IncreaseWalkspeed.Value=IncreaseWalkspeedKey
  116. script.AdminKeys.DecreaseWalkspeed.Value=DecreaseWalkspeedKey
  117. script.AdminKeys.Invisiblity.Value=InvisiblityKey
  118. script.AdminKeys.FF.Value=ForceFieldKey
  119. local FixKeys = script.AdminKeys.KeyScript:Clone()
  120. wait()
  121. FixKeys.Parent = player.StarterGear
  122. local ResetMessage = script.AdminKeys.ResetMessage:Clone()
  123. ResetMessage.Parent = player.PlayerGui
  124. player.Character.Humanoid.Health=0
  125. end
  126. end)
  127. end
  128. wait(.5)
  129. for i=1,100 do
  130.     print''
  131. end
  132. print(script.Name..' loaded.')print''
  133. if activeUses == 0 then
  134. print(""..script.Name.." isn't used for anything.")
  135. print('- '..script.Name..' was removed to make '..game.Name..' load faster.')
  136. script:Destroy()
  137. end
  138. if activeUses == 1 then
  139. print(""..script.Name.." is used for 1 thing.")
  140. end
  141. if activeUses >= 2 then
  142. print(""..script.Name.." is used for "..activeUses.." things!")
  143. end
  144. if GameSetup==true then print("- Game Setup")
  145. end
  146. if BanScript==true then print("- Ban Script")
  147. end
  148. if TimedDemo==true then print("- Timed Demo Script")
  149. end
  150. if Admins==true then print("- Admin Keys Script")
  151. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement