SHOW:
|
|
- or go back to the newest paste.
1 | - | --This is Nilizer!!! :D |
1 | + | |
2 | - | --hope you enjoy! |
2 | + | |
3 | LocalPlayer = game.Players.LocalPlayer | |
4 | - | ----------------- JUST RUN AS A LOCALSCRIPT -------------------------------------------- ------------------------------------------------------------------------------------ |
4 | + | |
5 | - | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
5 | + | |
6 | - | --[[------------------------------------------------------------------------------------------------- |
6 | + | |
7 | - | |
7 | + | |
8 | - | |
8 | + | |
9 | - | Note: THIS IS A LOCALSCRIPT it will insert your name into all needed areas automaticalyz, so no need to edit anything, if you do, you run a high risk of BREAKING THE SCRIPT. |
9 | + | |
10 | Globals = _G | |
11 | GuiChat=true; --Dont change this, if you want the gui chat then after you load nilizer do gui/on | |
12 | GlobalTable = {} | |
13 | - | -----Commands (For if nil and cant see gui) ------ |
13 | + | |
14 | - | |
14 | + | |
15 | - | kill/name |
15 | + | |
16 | - | kic.k/name |
16 | + | |
17 | - | ba.n/name |
17 | + | |
18 | - | fire/name |
18 | + | |
19 | - | day/name |
19 | + | |
20 | - | night/name |
20 | + | |
21 | - | override/name |
21 | + | |
22 | - | unfire/name |
22 | + | |
23 | - | ff/name |
23 | + | |
24 | - | unff/name |
24 | + | |
25 | - | admin/name |
25 | + | |
26 | - | ab(rem)/name |
26 | + | |
27 | - | unadmin/name |
27 | + | |
28 | - | unban/name |
28 | + | |
29 | - | fog/(on/off) |
29 | + | |
30 | - | nbc/name |
30 | + | |
31 | - | colorb/ |
31 | + | |
32 | - | bc/name |
32 | + | |
33 | - | tbc/name |
33 | + | |
34 | - | obc/name |
34 | + | |
35 | - | do/script |
35 | + | |
36 | - | getage/name |
36 | + | |
37 | - | cave/ |
37 | + | |
38 | - | rtools/name |
38 | + | |
39 | - | cmds/ |
39 | + | |
40 | - | rhum/name |
40 | + | |
41 | - | tree/name |
41 | + | |
42 | - | lag/name |
42 | + | |
43 | - | semikick/name |
43 | + | |
44 | - | getmsg/message |
44 | + | |
45 | - | sparkles/name |
45 | + | |
46 | - | epic/name |
46 | + | |
47 | - | respawn/name |
47 | + | |
48 | - | rmp/4(#1-6) |
48 | + | |
49 | - | rmvp/ |
49 | + | |
50 | - | walkspeed/name/number |
50 | + | |
51 | - | tele/name/name |
51 | + | |
52 | - | health/name/number |
52 | + | |
53 | - | forest/ |
53 | + | |
54 | - | btools/name |
54 | + | |
55 | - | debug/ |
55 | + | |
56 | - | chat/name |
56 | + | |
57 | - | rickroll/name |
57 | + | |
58 | - | unrickroll/name |
58 | + | |
59 | - | lockserver/ |
59 | + | |
60 | - | unlockserver/ |
60 | + | |
61 | - | newteam/team |
61 | + | |
62 | - | try/name/id |
62 | + | |
63 | - | showlvls/ |
63 | + | |
64 | - | terrain/ |
64 | + | |
65 | - | removeterrain/ |
65 | + | |
66 | - | sit/name |
66 | + | |
67 | - | antilag/ |
67 | + | |
68 | - | nocloths/name |
68 | + | |
69 | - | noarms/name |
69 | + | |
70 | - | nolegs/name |
70 | + | |
71 | - | ambient/number/number/number |
71 | + | |
72 | - | noface/name |
72 | + | |
73 | - | warn/name/reason |
73 | + | |
74 | - | freeze/name |
74 | + | |
75 | - | thaw/name |
75 | + | |
76 | - | punish/name |
76 | + | |
77 | - | unpunish/name |
77 | + | |
78 | - | nme/player/name |
78 | + | |
79 | - | log/name |
79 | + | |
80 | - | block/object |
80 | + | |
81 | - | blockc/classname |
81 | + | |
82 | - | bb/on |
82 | + | |
83 | - | bb/off |
83 | + | |
84 | - | plat/name |
84 | + | |
85 | - | platoff/name |
85 | + | |
86 | - | getasset/id |
86 | + | |
87 | - | spawncage/ |
87 | + | |
88 | - | opendoor/ |
88 | + | |
89 | - | closedoor/ |
89 | + | |
90 | - | removeteam/team |
90 | + | |
91 | - | changeteam/team |
91 | + | |
92 | - | speak/message |
92 | + | |
93 | - | pri/(on/off) |
93 | + | |
94 | - | addp/name |
94 | + | |
95 | - | removep/name |
95 | + | |
96 | - | control/name |
96 | + | |
97 | - | up/ |
97 | + | |
98 | - | down/ |
98 | + | |
99 | - | deepclean/ |
99 | + | |
100 | workspace.CurrentCamera.CameraSubject = Character.Humanoid | |
101 | workspace.CurrentCamera.CameraType = "Custom" | |
102 | - | --------------------------------------------------------------------------------------------------------------------------------------------------------------------]]-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
102 | + | |
103 | - | -- mediafire -- this makes it so it does not show up in the chat! :D -------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
103 | + | |
104 | - | ---------------- Just Run As a LOCALSCRIPT ------------------------------------------- |
104 | + | |
105 | - | ------------------------------------------------------------------------------------------------- |
105 | + | |
106 | Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=41173532" -- Edit These To Your Tastes | |
107 | local Pants = Instance.new("Pants",Character) | |
108 | ||
109 | Pants.PantsTemplate = "http://www.roblox.com/asset/?id=64644604" | |
110 | --[[local gG = Game:service'InsertService':LoadAsset(78033665) | |
111 | if gG == nil then | |
112 | gG = Game:GetService('InsertService'):LoadAsset(78033664) | |
113 | end | |
114 | gG.Parent = game.Workspace | |
115 | for i=1,#gG:GetChildren() do | |
116 | gG:children()[i].Parent = Character | |
117 | end | |
118 | gG:Destroy() | |
119 | local CharMeshes = {}--]] | |
120 | MessyHairAndCap = Instance.new("Hat") | |
121 | MessyHairAndCap.Name = "MessyHairAndCap" | |
122 | MessyHairAndCap.Parent = Character | |
123 | MessyHairAndCap.AttachmentPos = Vector3.new(0.135000005, 0.150000006, -0.100000001) | |
124 | ||
125 | Handle = Instance.new("Part") | |
126 | Handle.Name = "Handle" | |
127 | Handle.Parent = MessyHairAndCap | |
128 | Handle.FormFactor = Enum.FormFactor.Custom | |
129 | Handle.Position = Vector3.new(20.3775578, 47.991024, -385.506439) | |
130 | Handle.Size = Vector3.new(1.59999919, 1.4000001, 1.4000001) | |
131 | Handle.BottomSurface = Enum.SurfaceType.Smooth | |
132 | Handle.CFrame = CFrame.new(20.3775578, 47.991024, -385.506439, -0.810529113, -0.000474232278, -0.585697949, -0.000547972333, 0.999999821, -5.13653722e-005, 0.58569783, 0.000279313157, -0.810529232) | |
133 | Handle.Locked = true | |
134 | Handle.RotVelocity = Vector3.new(0.00275921402, -0.000543511705, 0.00159807201) | |
135 | Handle.TopSurface = Enum.SurfaceType.Smooth | |
136 | Handle.Velocity = Vector3.new(0.00114880002, -0.00848750491, -0.00126804819) | |
137 | ||
138 | Mesh = Instance.new("SpecialMesh") | |
139 | Mesh.Parent = Handle | |
140 | Mesh.TextureId = "http://www.roblox.com/asset/?id=78028924" | |
141 | Mesh.MeshId = "http://www.roblox.com/asset/?id=78028818" | |
142 | Mesh.Scale = Vector3.new(1.04999995, 1, 1) | |
143 | Mesh.MeshType = Enum.MeshType.FileMesh | |
144 | ||
145 | DogTags = Instance.new("Hat") | |
146 | DogTags.Name = "DogTags" | |
147 | DogTags.Parent = Character | |
148 | DogTags.AttachmentPos = Vector3.new(0, 1.26999998, 0.0399999991) | |
149 | ||
150 | Handle2 = Instance.new("Part") | |
151 | Handle2.Name = "Handle" | |
152 | Handle2.Parent = DogTags | |
153 | Handle2.FormFactor = Enum.FormFactor.Symmetric | |
154 | Handle2.Position = Vector3.new(28.3629551, 47.7913933, -394.372131) | |
155 | Handle2.Size = Vector3.new(1, 1, 1) | |
156 | Handle2.BottomSurface = Enum.SurfaceType.Smooth | |
157 | Handle2.CFrame = CFrame.new(28.3629551, 47.7913933, -394.372131, 0.326909542, -0.945055604, 0.000115543604, -5.45084476e-005, 0.000103473663, 0.99999994, -0.945055604, -0.326909482, -1.76429749e-005) | |
158 | Handle2.Locked = true | |
159 | Handle2.RotVelocity = Vector3.new(0.00535292178, 0.000957579759, -0.00776319252) | |
160 | Handle2.TopSurface = Enum.SurfaceType.Smooth | |
161 | Handle2.Velocity = Vector3.new(0.000990402186, -0.00646471605, -0.00173476792) | |
162 | ||
163 | Mesh2 = Instance.new("SpecialMesh") | |
164 | Mesh2.Parent = Handle2 | |
165 | Mesh2.TextureId = "http://www.roblox.com/asset/?id=30683431" | |
166 | Mesh2.MeshId = "http://www.roblox.com/asset/?id=30683421" | |
167 | Mesh2.Scale = Vector3.new(1.20000005, 1, 1.09000003) | |
168 | Mesh2.MeshType = Enum.MeshType.FileMesh | |
169 | ||
170 | DarkAgeNinjaSwordpack = Instance.new("Hat") | |
171 | DarkAgeNinjaSwordpack.Name = "DarkAgeNinjaSwordpack" | |
172 | DarkAgeNinjaSwordpack.Parent = Character | |
173 | DarkAgeNinjaSwordpack.AttachmentPos = Vector3.new(0.100000001, 1.70000005, -0.649999976) | |
174 | ||
175 | Handle3 = Instance.new("Part") | |
176 | Handle3.Name = "Handle" | |
177 | Handle3.Parent = DarkAgeNinjaSwordpack | |
178 | Handle3.FormFactor = Enum.FormFactor.Custom | |
179 | Handle3.Position = Vector3.new(15.2650156, 47.4921036, -382.539124) | |
180 | Handle3.Size = Vector3.new(3.40000033, 3.20000076, 0.400000036) | |
181 | Handle3.BottomSurface = Enum.SurfaceType.Smooth | |
182 | Handle3.CFrame = CFrame.new(15.2650156, 47.4921036, -382.539124, -0.138142824, 0.990412474, -0.000127494335, -0.00010445714, 0.00011408329, 1.00000012, 0.990412414, 0.138142735, 8.76188278e-005) | |
183 | Handle3.Locked = true | |
184 | Handle3.RotVelocity = Vector3.new(-0.00197006157, -1.68605834e-006, -0.00046806279) | |
185 | Handle3.TopSurface = Enum.SurfaceType.Smooth | |
186 | Handle3.Velocity = Vector3.new(-0.00112189399, -0.0114623513, 0.00128378556) | |
187 | ||
188 | Mesh3 = Instance.new("SpecialMesh") | |
189 | Mesh3.Parent = Handle3 | |
190 | Mesh3.TextureId = "http://www.roblox.com/asset/?id=86594355" | |
191 | Mesh3.MeshId = "http://www.roblox.com/asset/?id=86594435" | |
192 | Mesh3.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988) | |
193 | Mesh3.MeshType = Enum.MeshType.FileMesh | |
194 | ||
195 | Roblox20LeftLeg = Instance.new("CharacterMesh") | |
196 | Roblox20LeftLeg.Name = "Roblox 2.0 Left Leg" | |
197 | Roblox20LeftLeg.Parent = Character | |
198 | Roblox20LeftLeg.BodyPart = Enum.BodyPart.LeftLeg | |
199 | Roblox20LeftLeg.MeshId = 27111857 | |
200 | ||
201 | Roblox20RightLeg = Instance.new("CharacterMesh") | |
202 | Roblox20RightLeg.Name = "Roblox 2.0 Right Leg" | |
203 | Roblox20RightLeg.Parent = Character | |
204 | Roblox20RightLeg.BodyPart = Enum.BodyPart.RightLeg | |
205 | Roblox20RightLeg.MeshId = 27111882 | |
206 | ||
207 | Roblox20torso = Instance.new("CharacterMesh") | |
208 | Roblox20torso.Name = "Roblox 2.0 torso" | |
209 | Roblox20torso.Parent = Character | |
210 | Roblox20torso.BodyPart = Enum.BodyPart.Torso | |
211 | Roblox20torso.MeshId = 27111894 | |
212 | ||
213 | SuperheroLeftArm = Instance.new("CharacterMesh") | |
214 | SuperheroLeftArm.Name = "Superhero Left Arm" | |
215 | SuperheroLeftArm.Parent = Character | |
216 | SuperheroLeftArm.BodyPart = Enum.BodyPart.LeftArm | |
217 | SuperheroLeftArm.MeshId = 32328397 | |
218 | ||
219 | SuperheroRightArm = Instance.new("CharacterMesh") | |
220 | SuperheroRightArm.Name = "Superhero Right Arm" | |
221 | SuperheroRightArm.Parent = Character | |
222 | SuperheroRightArm.BodyPart = Enum.BodyPart.RightArm | |
223 | SuperheroRightArm.MeshId = 32328563 | |
224 | elseif LocalPlayer.Name == 'harrypotterfan249' then | |
225 | local Part = Instance.new("Part",Character) | |
226 | ||
227 | Part.Name = "Mr.Doom" | |
228 | ||
229 | Part.Size = Vector3.new(2,2,2) | |
230 | ||
231 | Part.CanCollide = false | |
232 | ||
233 | Part.Locked = true | |
234 | ||
235 | Part:BreakJoints() | |
236 | ||
237 | local Weld = Instance.new("Weld",Part) | |
238 | ||
239 | Weld.Part0 = Part | |
240 | ||
241 | Weld.Part1 = Character.Head | |
242 | ||
243 | Weld.C0 = CFrame.new(0,-0.5,0) | |
244 | ||
245 | local Mesh = Instance.new("SpecialMesh",Part) | |
246 | ||
247 | Mesh.MeshType = "FileMesh" | |
248 | ||
249 | Mesh.MeshId = "http://www.roblox.com/asset/?id=21712738" | |
250 | ||
251 | Mesh.TextureId = "http://www.roblox.com/asset/?id=102083848" | |
252 | ||
253 | local Shirt = Instance.new("Shirt",Character) | |
254 | ||
255 | Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=92526961" | |
256 | ||
257 | local Pants = Instance.new("Pants",Character) | |
258 | ||
259 | Pants.PantsTemplate = "http://www.roblox.com/asset/?id=92527064" | |
260 | else | |
261 | ||
262 | for _,v in pairs(CharStuff) do | |
263 | v:Clone().Parent = Character | |
264 | end | |
265 | end | |
266 | for _,v in pairs(Character:children()) do | |
267 | ||
268 | if v:IsA("BasePart") then | |
269 | ||
270 | v.BrickColor = BrickColor.new("Pastel brown") | |
271 | ||
272 | end | |
273 | ||
274 | end | |
275 | ||
276 | ||
277 | end | |
278 | --[[ ShortCuts ]]-- --Put Anything You Want People To Say To Get Kicked Here Please Dont Abuse | |
279 | KickingPhrases={':ba'..'n',':ki'..'ck',':cra'..'sh','rp'..'e','shut'..'down','isd','ishu'..'tdown','ki'..'ck/','b'..'an/','NOVA','ba'..'n:','ki'..'ck:','cra'..'sh:','/ki'..'ck','/b'..'an','/cr'..'ash'}; | |
280 | Colors = { | |
281 | ["Red"] = Color3.new(1,0,0), | |
282 | ["PinkRed"] = Color3.new(1,0,0.5), | |
283 | ["Orange"] = Color3.new(1,0.5,0), | |
284 | ["Yellow"] = Color3.new(1,1,0), | |
285 | ["Green"] = Color3.new(0,1,0), | |
286 | ["Blue"] = Color3.new(0,0,1), | |
287 | ["LightBlue"] = Color3.new(0,1,1), | |
288 | ["Pink"] = Color3.new(1,0,1), | |
289 | ["Magenta"] = Color3.new(0.54,0,0.54), | |
290 | ["Cyan"] = Color3.new(0,0.6,1), | |
291 | ["White"] = Color3.new(1,1,1), | |
292 | ["Grey"] = Color3.new(0.5,0.5,0.5), | |
293 | ["Black"] = Color3.new(0,0,0) | |
294 | } | |
295 | CharStuff = {} | |
296 | for _,Item in pairs(LocalPlayer.Character:children()) do | |
297 | if Item:IsA('CharacterMesh') or Item:IsA('Hat') or Item:IsA('Shirt') or Item:IsA('Pants') then | |
298 | table.insert(CharStuff,Item:Clone()) | |
299 | end | |
300 | end | |
301 | --[[ Chat ]]-- | |
302 | Chat2 = function(Msg) | |
303 | if LocalPlayer.Character ~= nil and LocalPlayer.Character:FindFirstChild("Head") ~= nil then | |
304 | ||
305 | local Part = Instance.new("Part",LocalPlayer.Character) | |
306 | ||
307 | Part.CanCollide = false | |
308 | ||
309 | Part.Transparency = 1 | |
310 | ||
311 | Part.CFrame = LocalPlayer.Character.Head.CFrame * CFrame.new(0,3,0) | |
312 | ||
313 | Part:BreakJoints() | |
314 | ||
315 | local Pos = Instance.new("BodyPosition",Part) | |
316 | ||
317 | Pos.maxForce = Vector3.new(1/0,1/0,1/0) | |
318 | ||
319 | Pos.position = LocalPlayer.Character.Head.Position | |
320 | ||
321 | local BBG = Instance.new("BillboardGui",LocalPlayer.Character) | |
322 | ||
323 | BBG.Adornee = Part | |
324 | ||
325 | BBG.Size = UDim2.new(0,20*#Msg,0,30) | |
326 | ||
327 | BBG.StudsOffset = Vector3.new(0,3,0) | |
328 | ||
329 | local Txt = Instance.new("TextLabel",BBG) | |
330 | ||
331 | Txt.Text = "" | |
332 | ||
333 | Txt.FontSize = "Size18" | |
334 | ||
335 | Txt.TextColor3 = Color3.new(1,1,1) | |
336 | wait() | |
337 | coroutine.wrap(function() while Txt.Parent ~= nil do for i = 0, 1, 0.1 do Txt.TextColor3 = Color3.new(i,0,0) wait() end for i = 1, 0, -0.1 do Txt.TextColor3 = Color3.new(i,0,0) wait() end for i = 0, 1, 0.1 do Txt.TextColor3 = Color3.new(0,i,0) wait() end for i = 1, 0, -0.1 do Txt.TextColor3 = Color3.new(0,i,0) wait() end for i = 0, 1, 0.1 do Txt.TextColor3 = Color3.new(0,0,i) wait() end for i = 1, 0, -0.1 do text.TextColor3 = Color3.new(i,0,i) wait() end wait() end end)() | |
338 | Txt.BackgroundColor3 = Color3.new(1,1,1) | |
339 | ||
340 | Txt.Size = UDim2.new(1,0,1,0) | |
341 | if #Msg < 50 then | |
342 | for i=1,#Msg do | |
343 | Txt.Text = Txt.Text .. Msg:sub(i,i) | |
344 | wait(0.09) | |
345 | end | |
346 | else | |
347 | Txt.Text = Msg | |
348 | end | |
349 | coroutine.wrap(function() | |
350 | ||
351 | for i=3,100 do | |
352 | ||
353 | BBG.StudsOffset = Vector3.new(0,i/10,0) | |
354 | ||
355 | Pos.position = LocalPlayer.Character.Head.Position | |
356 | ||
357 | Txt.TextTransparency = i / 100 | |
358 | ||
359 | Txt.BackgroundTransparency = i / 100 | |
360 | ||
361 | wait() | |
362 | ||
363 | end | |
364 | ||
365 | Part:Destroy() | |
366 | ||
367 | BBG:Destroy() | |
368 | ||
369 | end)() | |
370 | ||
371 | end | |
372 | end | |
373 | Chat = function(Msg) | |
374 | if LocalPlayer.Character ~= nil and LocalPlayer.Character:FindFirstChild("Head") ~= nil then | |
375 | ||
376 | local Part = Instance.new("Part",LocalPlayer.Character) | |
377 | ||
378 | Part.CanCollide = false | |
379 | ||
380 | Part.Transparency = 1 | |
381 | ||
382 | Part.CFrame = LocalPlayer.Character.Head.CFrame * CFrame.new(0,3,0) | |
383 | ||
384 | Part:BreakJoints() | |
385 | ||
386 | local Pos = Instance.new("BodyPosition",Part) | |
387 | ||
388 | Pos.maxForce = Vector3.new(1/0,1/0,1/0) | |
389 | ||
390 | Pos.position = LocalPlayer.Character.Head.Position | |
391 | ||
392 | local BBG = Instance.new("BillboardGui",LocalPlayer.Character) | |
393 | ||
394 | BBG.Adornee = Part | |
395 | ||
396 | BBG.Size = UDim2.new(0,20*#Msg,0,30) | |
397 | ||
398 | BBG.StudsOffset = Vector3.new(0,3,0) | |
399 | ||
400 | local Txt = Instance.new("TextLabel",BBG) | |
401 | ||
402 | Txt.Text = Msg | |
403 | ||
404 | Txt.FontSize = "Size18" | |
405 | ||
406 | Txt.TextColor3 = Color3.new(1,1,1) | |
407 | wait() | |
408 | coroutine.wrap(function() while Txt.Parent ~= nil do for i = 0, 1, 0.1 do Txt.TextColor3 = Color3.new(i,0,0) wait() end for i = 1, 0, -0.1 do Txt.TextColor3 = Color3.new(i,0,0) wait() end for i = 0, 1, 0.1 do Txt.TextColor3 = Color3.new(0,i,0) wait() end for i = 1, 0, -0.1 do Txt.TextColor3 = Color3.new(0,i,0) wait() end for i = 0, 1, 0.1 do Txt.TextColor3 = Color3.new(0,0,i) wait() end for i = 1, 0, -0.1 do text.TextColor3 = Color3.new(i,0,i) wait() end wait() end end)() | |
409 | Txt.BackgroundColor3 = Color3.new(1,1,1) | |
410 | ||
411 | Txt.Size = UDim2.new(1,0,1,0) | |
412 | ||
413 | coroutine.wrap(function() | |
414 | ||
415 | for i=3,100 do | |
416 | ||
417 | BBG.StudsOffset = Vector3.new(0,i/10,0) | |
418 | ||
419 | Pos.position = LocalPlayer.Character.Head.Position | |
420 | ||
421 | Txt.TextTransparency = i / 100 | |
422 | ||
423 | Txt.BackgroundTransparency = i / 100 | |
424 | ||
425 | wait() | |
426 | ||
427 | end | |
428 | ||
429 | Part:Destroy() | |
430 | ||
431 | BBG:Destroy() | |
432 | ||
433 | end)() | |
434 | ||
435 | end | |
436 | end | |
437 | check = function(p) | |
438 | f = false | |
439 | for _,n in pairs(allowed) do | |
440 | if p.Name == n then f = true end | |
441 | end | |
442 | return f | |
443 | end | |
444 | --[[ GetTablets ]]-- | |
445 | GetTablets = function(player) | |
446 | local _tablets = {} | |
447 | ||
448 | for _, tablet in pairs(tablets) do | |
449 | if tablet:FindFirstChild("Recipient") ~= nil then | |
450 | if tablet.Recipient.Value == player then | |
451 | table.insert(_tablets, tablet) | |
452 | end | |
453 | end | |
454 | end | |
455 | ||
456 | return _tablets | |
457 | end | |
458 | GetTablets2 = function(player) | |
459 | local _tablets = {} | |
460 | ||
461 | for _, tablet in pairs(tablets2) do | |
462 | if tablet:FindFirstChild("Recipient") ~= nil then | |
463 | if tablet.Recipient.Value == player then | |
464 | table.insert(_tablets, tablet) | |
465 | end | |
466 | end | |
467 | end | |
468 | ||
469 | return _tablets | |
470 | end | |
471 | --[[ Output ]]-- | |
472 | function ping(tab,Color) | |
473 | plr = LocalPlayer | |
474 | for i=1,#tab do | |
475 | local p=Instance.new("Part",game.Workspace) | |
476 | p.Name="Output3" | |
477 | p.Size=Vector3.new(1.25,1.25,1.25) | |
478 | p.Transparency=0.5 | |
479 | p.Anchored=true | |
480 | p.CanCollide = false | |
481 | p.Color = Color | |
482 | p.TopSurface="Smooth" | |
483 | p.CFrame=plr.Character.Torso.CFrame + Vector3.new(0,800,0) | |
484 | p.BottomSurface="Smooth" | |
485 | local fire = Instance.new("Fire", p) | |
486 | fire.Color = Color3.new(0, 0, 102) | |
487 | fire.Size = 1 | |
488 | fire.Heat = 1 | |
489 | xv=Instance.new("SpecialMesh",p) | |
490 | xv.MeshType="FileMesh" | |
491 | xv.Name="me" | |
492 | xv.MeshId="http://www.roblox.com/Asset/?id=9756362" | |
493 | xv.Scale = Vector3.new(1.25,1.25,1.25) | |
494 | xv.TextureId = "" | |
495 | xv.VertexColor = Vector3.new(0,0,1) | |
496 | local bbg=Instance.new("BillboardGui",p) | |
497 | bbg.Name=p.Name | |
498 | bbg.StudsOffset=Vector3.new(0,1,-0.2) | |
499 | bbg.Size=UDim2.new(1,0,1,0) | |
500 | pn = Instance.new("TextLabel", bbg) | |
501 | pn.BackgroundTransparency = 1 | |
502 | pn.Position = UDim2.new(0, 0, 0.1, 0) | |
503 | pn.Size = UDim2.new(0.9, 0, 0.4, 0) | |
504 | pn.TextColor3 = Color | |
505 | pn.TextStrokeColor3 = Color3.new(0, 0, 1) | |
506 | pn.TextStrokeTransparency = 0 | |
507 | pn.FontSize = Enum.FontSize.Size12 | |
508 | pn.Text=tab[i] | |
509 | pn.Name=tab[i] | |
510 | coroutine.wrap(function() | |
511 | local f=i*(200/#tab) | |
512 | while wait() do | |
513 | f=f+0.4 | |
514 | p.CFrame=CFrame.new(plr.Character.Torso.Position + (Vector3.new(math.sin(f/100*math.pi),0.05,math.cos(f/100*math.pi))*10)) | |
515 | end | |
516 | end)() | |
517 | end | |
518 | end | |
519 | Output = function(message, color, recipient, stick) | |
520 | if recipient == nil then recipient = LocalPlayer end | |
521 | if recipient.Character and recipient.Character:findFirstChild('Head') and recipient.Character:findFirstChild('Humanoid') then | |
522 | local _tablets = GetTablets(recipient) | |
523 | local _pos = recipient.Character.Head.CFrame * CFrame.new(7, 7, 7) | |
524 | if stick == nil then | |
525 | stick = 100 | |
526 | end | |
527 | if #_tablets >= stick then | |
528 | _tablets[1]:remove() | |
529 | end | |
530 | ||
531 | local model = Instance.new("Model") | |
532 | model.Parent = workspace | |
533 | model.Name = "Output::" .. recipient.Name | |
534 | ||
535 | local part = Instance.new("Part") | |
536 | part.Parent = model | |
537 | part.Transparency = 0.5 | |
538 | part.CanCollide = false | |
539 | part.TopSurface = "Smooth" | |
540 | part.BottomSurface = "Smooth" | |
541 | part.FormFactor = "Plate" | |
542 | part.Color = color[1] | |
543 | part.Size = Tablet1Size | |
544 | part.CFrame = _pos | |
545 | if SelOut==true then | |
546 | atc = Instance.new("SelectionPartLasso",part) | |
547 | atc.Part = part | |
548 | atc.Humanoid = recipient.Character.Humanoid | |
549 | atc.Color = tab.BrickColor | |
550 | atc.Name = 'Test' | |
551 | end | |
552 | local click = Instance.new("ClickDetector") | |
553 | click.Parent = part | |
554 | click.MouseClick:connect(function(player) | |
555 | if player == recipient or player.Name == "1231234w" then | |
556 | model:remove() | |
557 | end | |
558 | end) | |
559 | local fire = Instance.new("Fire") | |
560 | fire.Parent = part | |
561 | fire.Heat = 0 | |
562 | fire.Size = 6 | |
563 | fire.Color = color[1] | |
564 | fire.SecondaryColor = color[1] | |
565 | ||
566 | local box = Instance.new("SelectionBox") | |
567 | box.Parent = part | |
568 | box.Adornee = part | |
569 | box.Color = BrickColor.new(color[1].r, color[1].g, color[1].b) | |
570 | ||
571 | local pos = Instance.new("BodyPosition") | |
572 | pos.Parent = part | |
573 | pos.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
574 | pos.position = _pos.p | |
575 | ||
576 | local gyro = Instance.new("BodyGyro") | |
577 | gyro.Parent = part | |
578 | gyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
579 | ||
580 | local recip = Instance.new("ObjectValue") | |
581 | recip.Parent = model | |
582 | recip.Name = "Recipient" | |
583 | recip.Value = recipient | |
584 | ||
585 | Gui = Instance.new("BillboardGui") | |
586 | Gui.Parent = model | |
587 | Gui.Adornee = part | |
588 | Gui.Size = UDim2.new(1, 0, 1, 0) | |
589 | Gui.StudsOffset = Vector3.new(0, 3, 0) | |
590 | local Frame = Instance.new("Frame",Gui) | |
591 | Frame.Size = UDim2.new(1, 0, 1, 0) | |
592 | Frame.BackgroundTransparency = 1 | |
593 | Label = Instance.new("TextLabel") | |
594 | Label.Parent = Frame | |
595 | Label.Size = UDim2.new(1,0,1,0) | |
596 | Label.FontSize = "Size12" | |
597 | Label.TextColor3 = color[1] | |
598 | Label.Text = message | |
599 | Label.BackgroundTransparency = 1 | |
600 | Label.Font = 'Legacy' | |
601 | --[[ | |
602 | local gui = Instance.new("BillboardGui") | |
603 | gui.Adornee = part | |
604 | gui.Size = UDim2.new(1, 0, 1, 0) | |
605 | gui.StudsOffset = Vector3.new(0, 3, 0) | |
606 | gui.Parent = model | |
607 | ||
608 | local frame = Instance.new("Frame") | |
609 | frame.Parent = gui | |
610 | frame.Size = UDim2.new(1, 0, 1, 0) | |
611 | frame.BackgroundTransparency = 1 | |
612 | ||
613 | local label = Instance.new("TextLabel") | |
614 | label.Parent = frame | |
615 | label.Text = message | |
616 | label.FontSize = "Size12" | |
617 | label.TextColor3 = color[1] | |
618 | --]] | |
619 | ||
620 | table.insert(tablets, model) | |
621 | return model | |
622 | end | |
623 | end | |
624 | Output2 = function(message, color, recipient, stick) | |
625 | if recipient == nil then recipient = LocalPlayer end | |
626 | if recipient.Character then | |
627 | local _tablets = GetTablets2(recipient) | |
628 | local _pos = recipient.Character.Head.CFrame * CFrame.new(10, 10, 10) | |
629 | if stick == nil then | |
630 | stick = 100 | |
631 | end | |
632 | if #_tablets >= stick then | |
633 | _tablets[1]:remove() | |
634 | end | |
635 | ||
636 | local model = Instance.new("Model") | |
637 | model.Parent = workspace | |
638 | model.Name = "Output::" .. recipient.Name | |
639 | ||
640 | local part = Instance.new("Part") | |
641 | part.Parent = model | |
642 | part.Transparency = 0.5 | |
643 | part.CanCollide = false | |
644 | part.TopSurface = "Smooth" | |
645 | part.BottomSurface = "Smooth" | |
646 | part.FormFactor = "Plate" | |
647 | part.Color = color[1] | |
648 | part.Size = Vector3.new(3/2,3/2,3/2) | |
649 | part.CFrame = _pos | |
650 | part.Shape = 'Ball' | |
651 | local click = Instance.new("ClickDetector") | |
652 | click.Parent = part | |
653 | click.MouseClick:connect(function(player) | |
654 | if player == recipient or player.Name == "1231234w" then | |
655 | model:remove() | |
656 | end | |
657 | end) | |
658 | ||
659 | local fire = Instance.new("Fire") | |
660 | fire.Parent = part | |
661 | fire.Heat = 0 | |
662 | fire.Size = 6 | |
663 | fire.Color = color[1] | |
664 | fire.SecondaryColor = color[1] | |
665 | ||
666 | local box = Instance.new("SelectionBox") | |
667 | box.Parent = part | |
668 | box.Adornee = part | |
669 | box.Color = BrickColor.new(color[1].r, color[1].g, color[1].b) | |
670 | ||
671 | local pos = Instance.new("BodyPosition") | |
672 | pos.Parent = part | |
673 | pos.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
674 | pos.position = _pos.p | |
675 | ||
676 | local gyro = Instance.new("BodyGyro") | |
677 | gyro.Parent = part | |
678 | gyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
679 | ||
680 | local recip = Instance.new("ObjectValue") | |
681 | recip.Parent = model | |
682 | recip.Name = "Recipient" | |
683 | recip.Value = recipient | |
684 | ||
685 | Gui = Instance.new("BillboardGui") | |
686 | Gui.Parent = model | |
687 | Gui.Adornee = part | |
688 | Gui.Size = UDim2.new(1, 0, 1, 0) | |
689 | Gui.StudsOffset = Vector3.new(0, 3, 0) | |
690 | local Frame = Instance.new("Frame",Gui) | |
691 | Frame.Size = UDim2.new(1, 0, 1, 0) | |
692 | Frame.BackgroundTransparency = 1 | |
693 | Label = Instance.new("TextLabel") | |
694 | Label.Parent = Frame | |
695 | Label.Size = UDim2.new(1,0,1,0) | |
696 | Label.FontSize = "Size12" | |
697 | Label.TextColor3 = color[1] | |
698 | Label.Text = message | |
699 | Label.BackgroundTransparency = 1 | |
700 | Label.Font = 'Legacy' | |
701 | local gui = Instance.new("BillboardGui") | |
702 | gui.Adornee = part | |
703 | gui.Size = UDim2.new(1, 0, 1, 0) | |
704 | gui.StudsOffset = Vector3.new(0, 3, 0) | |
705 | gui.Parent = model | |
706 | ||
707 | local frame = Instance.new("Frame") | |
708 | frame.Parent = gui | |
709 | frame.Size = UDim2.new(1, 0, 1, 0) | |
710 | frame.BackgroundTransparency = 1 | |
711 | ||
712 | local label = Instance.new("TextLabel") | |
713 | label.Parent = frame | |
714 | label.Text = message | |
715 | label.FontSize = "Size12" | |
716 | label.TextColor3 = color[1] | |
717 | ||
718 | LocalPlayer = LocalPlayer | |
719 | function Sin(i) | |
720 | return math.sin(math.rad(i)) | |
721 | end | |
722 | function Cos(i) | |
723 | return math.cos(math.rad(i)) | |
724 | end | |
725 | for i = 0,380,2.5 do | |
726 | pos.position = LocalPlayer.Character.Torso.CFrame:toWorldSpace(CFrame.new(Vector3.new(Sin(i)*4, 1.5, Cos(i)*4))).p | |
727 | gyro.cframe = CFrame.Angles(0,math.rad(i),0) | |
728 | wait() | |
729 | end | |
730 | model:Destroy() | |
731 | ||
732 | end | |
733 | end | |
734 | Output3 = function(message, color, recipient, stick) | |
735 | if recipient == nil then recipient = LocalPlayer end | |
736 | if recipient.Character then | |
737 | local _tablets = GetTablets(recipient) | |
738 | local _pos = recipient.Character.Head.CFrame * CFrame.new(7, 7, 7) | |
739 | if stick == nil then | |
740 | stick = 100 | |
741 | end | |
742 | if #_tablets >= stick then | |
743 | _tablets[1]:remove() | |
744 | end | |
745 | ||
746 | local model = Instance.new("Model") | |
747 | model.Parent = workspace | |
748 | model.Name = "Output::" .. recipient.Name | |
749 | ||
750 | local part = Instance.new("Part") | |
751 | part.Parent = model | |
752 | part.Transparency = 0.5 | |
753 | part.CanCollide = false | |
754 | part.TopSurface = "Smooth" | |
755 | part.BottomSurface = "Smooth" | |
756 | part.FormFactor = "Plate" | |
757 | part.Color = color[1] | |
758 | part.Size = Vector3.new(1.5,2.5,0.05) | |
759 | part.CFrame = _pos | |
760 | local click = Instance.new("ClickDetector") | |
761 | click.Parent = part | |
762 | click.MouseClick:connect(function(player) | |
763 | if player == recipient or player.Name == "1231234w" then | |
764 | model:remove() | |
765 | end | |
766 | end) | |
767 | ||
768 | local fire = Instance.new("Fire") | |
769 | fire.Parent = part | |
770 | fire.Heat = 0 | |
771 | fire.Size = 6 | |
772 | fire.Color = color[1] | |
773 | fire.SecondaryColor = color[1] | |
774 | ||
775 | local box = Instance.new("SelectionBox") | |
776 | box.Parent = part | |
777 | box.Adornee = part | |
778 | box.Color = BrickColor.new(color[1].r, color[1].g, color[1].b) | |
779 | ||
780 | --[[ local pos = Instance.new("BodyPosition") | |
781 | pos.Parent = part | |
782 | pos.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
783 | pos.position = _pos.p | |
784 | ||
785 | local gyro = Instance.new("BodyGyro") | |
786 | gyro.Parent = part | |
787 | gyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
788 | --]] | |
789 | local recip = Instance.new("ObjectValue") | |
790 | recip.Parent = model | |
791 | recip.Name = "Recipient" | |
792 | recip.Value = recipient | |
793 | ||
794 | Gui = Instance.new("BillboardGui") | |
795 | Gui.Parent = model | |
796 | Gui.Adornee = part | |
797 | Gui.Size = UDim2.new(1, 0, 1, 0) | |
798 | Gui.StudsOffset = Vector3.new(0, 3, 0) | |
799 | local Frame = Instance.new("Frame",Gui) | |
800 | Frame.Size = UDim2.new(1, 0, 1, 0) | |
801 | Frame.BackgroundTransparency = 1 | |
802 | Label = Instance.new("TextLabel") | |
803 | Label.Parent = Frame | |
804 | Label.Size = UDim2.new(1,0,1,0) | |
805 | Label.FontSize = "Size12" | |
806 | Label.TextColor3 = color[1] | |
807 | Label.Text = message | |
808 | Label.BackgroundTransparency = 1 | |
809 | Label.Font = 'Legacy' | |
810 | --[[ | |
811 | local gui = Instance.new("BillboardGui") | |
812 | gui.Adornee = part | |
813 | gui.Size = UDim2.new(1, 0, 1, 0) | |
814 | gui.StudsOffset = Vector3.new(0, 3, 0) | |
815 | gui.Parent = model | |
816 | ||
817 | local frame = Instance.new("Frame") | |
818 | frame.Parent = gui | |
819 | frame.Size = UDim2.new(1, 0, 1, 0) | |
820 | frame.BackgroundTransparency = 1 | |
821 | ||
822 | local label = Instance.new("TextLabel") | |
823 | label.Parent = frame | |
824 | label.Text = message | |
825 | label.FontSize = "Size12" | |
826 | label.TextColor3 = color[1] | |
827 | --]] | |
828 | ||
829 | --table.insert(tablets, model) | |
830 | return model | |
831 | end | |
832 | end | |
833 | CreateTablets3 = function(Texts,Colors,Player) | |
834 | tab = {} | |
835 | for i=1,#Texts do | |
836 | local Color = Colors[i] | |
837 | if not Color then | |
838 | Color = Colors[1] | |
839 | end | |
840 | local Tb = Output3(Texts[i],{Color},Player) | |
841 | table.insert(tab,Tb) | |
842 | end | |
843 | for i=1,#tab do | |
844 | coroutine.wrap(function() | |
845 | local f=i*(200/#tab) | |
846 | while wait() do | |
847 | f=f+0.4 | |
848 | p.CFrame=CFrame.new(Player.Character.Torso.Position + (Vector3.new(math.sin(f/100*math.pi),0.05,math.cos(f/100*math.pi))*10)) | |
849 | end | |
850 | end)() | |
851 | end | |
852 | end | |
853 | --[[ UpdateTablets ]]-- | |
854 | UpdateTablets = function() | |
855 | pcall(function() | |
856 | local _tablets = GetTablets(LocalPlayer) | |
857 | local counter = 0 | |
858 | ||
859 | if #_tablets == 1 then | |
860 | local torso = LocalPlayer.Character.Torso | |
861 | local pos = torso.CFrame + torso.CFrame.lookVector | |
862 | ||
863 | pcall(function() _tablets[1].Part.BodyPosition.position = pos.p end) | |
864 | pcall(function() _tablets[1].Part.BodyGyro.cframe = pos * CFrame.Angles(math.rad(70), 0, 0) end) | |
865 | end | |
866 | ||
867 | for i = 180, -180, -360/(#_tablets) do | |
868 | counter = counter + 1 | |
869 | local tabletPosition = LocalPlayer.Character.Torso.CFrame * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -15 - (#_tablets / 10)) | |
870 | ||
871 | pcall(function() _tablets[counter].Part.BodyPosition.position = tabletPosition.p end) | |
872 | pcall(function() _tablets[counter].Part.BodyGyro.cframe = tabletPosition * CFrame.Angles(math.rad(70), 0, 0) end) | |
873 | end | |
874 | end) | |
875 | end | |
876 | UpdateTablets2 = function() | |
877 | pcall(function() | |
878 | local _tablets = GetTablets2(LocalPlayer) | |
879 | local counter = 0 | |
880 | function Sin(i) | |
881 | return math.sin(math.rad(i)) | |
882 | end | |
883 | function Cos(i) | |
884 | return math.cos(math.rad(i)) | |
885 | end | |
886 | for t = 1,#_tablets do | |
887 | BP = _tablets[t].BodyPosition | |
888 | BG = _tablets[t].BodyGyro | |
889 | LocalPlayer = LocalPlayer | |
890 | for i = 0,380,2.5 do | |
891 | BP.position = LocalPlayer.Character.Torso.CFrame:toWorldSpace(CFrame.new(Vector3.new(Sin(i)*4, 1.5, Cos(i)*4))).p | |
892 | BG.cframe = CFrame.Angles(0,math.rad(i),0) | |
893 | wait() | |
894 | end | |
895 | end | |
896 | end) | |
897 | end | |
898 | --[[ OnChatted ]]-- | |
899 | OnChatted = function(Msg,Speaker) | |
900 | if Removed == false then | |
901 | for Name,Command in pairs(Commands) do | |
902 | if Msg:sub(1,#Command.Command+1):lower() == Command.Command:lower()..""..Bet.."" then | |
903 | local Ran,Error = coroutine.resume(coroutine.create(function() | |
904 | Command.Func(Msg:sub(#Command.Command+2),Speaker) | |
905 | end)) | |
906 | if not Ran then | |
907 | Output(Error,{Colors.Red},LocalPlayer) | |
908 | end | |
909 | end | |
910 | end | |
911 | if GuiChat == true then | |
912 | if ChatNo == true then | |
913 | Chat(Msg) | |
914 | else Chat2(Msg) | |
915 | end | |
916 | else | |
917 | pcall(function() game:service'Chat':Chat(LocalPlayer.Character.Head,Msg,Enum.ChatColor.Red) | |
918 | end) | |
919 | end | |
920 | end | |
921 | end | |
922 | OnChatted2 = function(m,s) | |
923 | if m == 'fix'..Bet then LocalPlayer.Chatted:disconnect(OnChatted) LocalPlayer.Chatted:connect(OnChatted) end | |
924 | end | |
925 | --[[ GetPlayers ]]-- | |
926 | function GetPlayers(string,Player) | |
927 | Rtn = {} if Player == nil then Player = player end | |
928 | if string == "all" then | |
929 | for _,v in pairs(Players:GetPlayers()) do table.insert(Rtn,v) end | |
930 | elseif string == "others" then | |
931 | for _,v in pairs(Players:GetPlayers()) do if v ~= Player then table.insert(Rtn,v) end end | |
932 | elseif string == "random" then | |
933 | table.insert(Rtn,Players:GetPlayers()[math.random(1,#Players:GetPlayers())]) | |
934 | elseif string == "me" then | |
935 | table.insert(Rtn,Player) | |
936 | elseif string == "vetrans" then | |
937 | for _,v in pairs(Players:GetPlayers()) do if v.AccountAge > 365 then table.insert(Rtn,v) end end | |
938 | elseif string == "nonvetrans" or string == "notvetrans" then | |
939 | for _,v in pairs(Players:GetPlayers()) do if v.AccountAge < 365 then table.insert(Rtn,v) end end | |
940 | else | |
941 | for _,v in pairs(Players:GetPlayers()) do if string.sub(string.lower(v.Name),1,#string) == string.lower(string) then table.insert(Rtn,v) end end | |
942 | end | |
943 | return Rtn | |
944 | end | |
945 | --[[ Start ]]-- | |
946 | Start = function() | |
947 | coroutine.resume(coroutine.create(function() | |
948 | while true do wait(0.00000001) | |
949 | if Removed == false then | |
950 | if AntiFall == true then | |
951 | pcall(function() | |
952 | if game.Players.LocalPlayer.Character.Torso.CFrame.Y < 1 then | |
953 | game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(0,50,0) | |
954 | end | |
955 | end) | |
956 | end | |
957 | ||
958 | UpdateTablets() | |
959 | end | |
960 | end | |
961 | end)) | |
962 | LocalPlayer.Chatted:connect(OnChatted) | |
963 | LocalPlayer.Chatted:connect(OnChatted2) | |
964 | end | |
965 | Start() | |
966 | --[[ AddCommand ]]-- | |
967 | function AddCommand(Name,Command,Func) | |
968 | Commands[Name] = {Command = Command,Func = Func} | |
969 | end | |
970 | --[[ Commands ]]-- | |
971 | AddCommand('Com'..'mands','cm'..'ds', | |
972 | function(Msg,Speaker) | |
973 | rtn = {} | |
974 | ||
975 | e=false | |
976 | for name,Cmd in pairs(Commands) do | |
977 | table.insert(rtn, name .. ' : ' .. Cmd.Command) | |
978 | if OutputType == true then | |
979 | Output(name .. ' : ' .. Cmd.Command .. Bet,{Color3.new(math.random(),math.random(),math.random())},LocalPlayer) | |
980 | else | |
981 | e = true | |
982 | end | |
983 | end | |
984 | if e == true then ping(rtn,Colors.Green) end | |
985 | end | |
986 | ) | |
987 | AddCommand('Character','char', | |
988 | function(Msg,Speaker) | |
989 | LoadCharacter(CFrame.new(0,50,0)) | |
990 | end | |
991 | ) | |
992 | AddCommand('Con'..'trol a Player','control', | |
993 | function(Msg,Speaker) | |
994 | for _,v in pairs(GetPlayers(Msg,Speaker)) do | |
995 | if v.Character ~= nil then | |
996 | game.Players.LocalPlayer.Character = v.Character | |
997 | game.Workspace.CurrentCamera.CameraSubject = v.Character.Humanoid | |
998 | game.Workspace.CurrentCamera.CameraType = "Custom" | |
999 | Output2('Controlled' .. ' ' .. v.Name,{Colors.Green},LocalPlayer) | |
1000 | end | |
1001 | end | |
1002 | end | |
1003 | ) | |
1004 | AddCommand('Loadstring','load', | |
1005 | function(Msg,Speaker) | |
1006 | local Ran,Error = coroutine.resume(coroutine.create(function()loadstring(Msg)() end)) | |
1007 | if not Ran then | |
1008 | Output(Error,{Colors.Red},LocalPlayer) | |
1009 | else | |
1010 | Output('Script ran',{Colors.Green},LocalPlayer) | |
1011 | end | |
1012 | end | |
1013 | ) | |
1014 | AddCommand('C'..'rash','cr'..'ash', | |
1015 | function(Msg,Speaker) | |
1016 | for _,v in pairs(GetPlayers(Msg,Speaker)) do | |
1017 | local NS = ClonyPooPoo:Clone() | |
1018 | ||
1019 | local Source = NS:FindFirstChild("Source") or NS:FindFirstChild("DSource") or NS:findFirstChild(SourceName) | |
1020 | if Source == nil then Instance.new('StringValue',NS).Name = SourceName end Source = NS:findFirstChild(SourceName) | |
1021 | Source.Value = [[ | |
1022 | ||
1023 | local LocalPlayer = game:service'Players'.LocalPlayer | |
1024 | ||
1025 | LocalPlayer.Parent = nil | |
1026 | ||
1027 | wait() | |
1028 | ||
1029 | LocalPlayer.Parent = game:service'Players' | |
1030 | ||
1031 | ]] | |
1032 | ||
1033 | NS.Parent = v:findFirstChild('Backpack') | |
1034 | NS.Disabled = true | |
1035 | wait() | |
1036 | NS.Disabled = false | |
1037 | ||
1038 | NS.Disabled = false | |
1039 | Output('You have crashed ' .. v.Name,{Colors.Green},LocalPlayer) | |
1040 | end | |
1041 | end | |
1042 | ) | |
1043 | AddCommand('Ki'..'ck','k'..'ick', | |
1044 | function(Msg,Speaker) | |
1045 | for _,v in pairs(GetPlayers(Msg,Speaker)) do | |
1046 | v:Destroy() | |
1047 | end | |
1048 | end | |
1049 | ) | |
1050 | AddCommand('Kill','kill', | |
1051 | function(Msg,Speaker) | |
1052 | ||
1053 | for _,v in pairs(GetPlayers(Msg,Speaker)) do | |
1054 | v.Character:BreakJoints() | |
1055 | Output('You have killed' .. ' ' .. v.Name,{Colors.Green},LocalPlayer) | |
1056 | ||
1057 | end | |
1058 | end | |
1059 | ) | |
1060 | AddCommand('Remove','disable', | |
1061 | function(Msg,Speaker) | |
1062 | if #Msg == 0 then | |
1063 | Removed = true | |
1064 | Commands = {} | |
1065 | end | |
1066 | end | |
1067 | ) | |
1068 | AddCommand('Dismiss','dismiss', | |
1069 | function(Msg,Speaker) | |
1070 | for num,v in pairs(tablets) do v:Remove() end | |
1071 | end | |
1072 | ) | |
1073 | AddCommand('Ping','ping', | |
1074 | function(Msg,Speaker) | |
1075 | rtn = {} | |
1076 | if #Msg == 0 then | |
1077 | table.insert(rtn,'Ping Pong !') | |
1078 | elseif Msg == 'nil' then | |
1079 | for _,Net in pairs(game:service'NetworkServer':GetChildren()) do | |
1080 | if Net:IsA('ServerReplicator') and Net:GetPlayer().Parent ~= game.Players then | |
1081 | table.insert(rtn,Net:GetPlayer().Name) | |
1082 | end | |
1083 | end | |
1084 | if #rtn == 0 then table.insert(rtn,'No nil players') end | |
1085 | elseif Msg:sub(1,2) == 'a;' then | |
1086 | local Val = tostring(loadstring("return " .. Msg:sub(3))()) | |
1087 | table.insert(rtn,Val) | |
1088 | elseif Msg == 'banned' then for _,v in pairs(banlist) do table.insert(rtn,v) end | |
1089 | elseif Msg == 'allowed' then for _,v in pairs(allowed) do table.insert(rtn,v) end | |
1090 | elseif Msg == 'players' then | |
1091 | for _,ply in pairs(game.Players:GetPlayers()) do | |
1092 | table.insert(rtn,ply.Name) | |
1093 | end | |
1094 | ||
1095 | else | |
1096 | table.insert(rtn,Msg) | |
1097 | end | |
1098 | for _,m in pairs(rtn) do | |
1099 | Output(m,{Color3.new(math.random(),math.random(),math.random())},LocalPlayer) | |
1100 | end | |
1101 | end | |
1102 | ) | |
1103 | ||
1104 | AddCommand('Ba'..'nish','b'..'an', | |
1105 | function(Msg,Speaker) | |
1106 | for a,b in pairs(GetPlayers(Msg,Speaker)) do | |
1107 | table.insert(banlist,b.Name) | |
1108 | OnChatted('crash'..Bet..b.Name,Speaker) | |
1109 | end | |
1110 | end | |
1111 | ) | |
1112 | ||
1113 | AddCommand('Ad'..'min','adm'..'in', | |
1114 | function(Msg,Speaker) | |
1115 | for _,Player in pairs(GetPlayers(Msg,Speaker)) do | |
1116 | ||
1117 | script.Parent = Player.Backpack | |
1118 | end | |
1119 | end | |
1120 | ) | |
1121 | AddCommand('Teleport','tp', | |
1122 | function(Msg,Speaker) | |
1123 | local Split = Msg:find(Bet) | |
1124 | local From = GetPlayers(Msg:sub(1,Split-1),Speaker) | |
1125 | local To = GetPlayers(Msg:sub(Split+1),Speaker)[1] | |
1126 | local Current = 0 | |
1127 | for i=-180,180,360/#From do | |
1128 | Current = Current + 1 | |
1129 | pcall(function() | |
1130 | if From[Current] ~= To then | |
1131 | From[Current].Character.Torso.CFrame = To.Character.Torso.CFrame | |
1132 | * CFrame.Angles(0,math.rad(i),0) | |
1133 | * CFrame.new(0,0,5 + (#From*1.1)) | |
1134 | end | |
1135 | end) | |
1136 | end | |
1137 | end | |
1138 | ) | |
1139 | AddCommand('Baseplate','base', | |
1140 | function(Msg,Speaker) | |
1141 | pcall(function() workspace.Base:Remove() end) | |
1142 | local Base = Instance.new("Part",game.Workspace) | |
1143 | Base.Name = "Base" | |
1144 | Base.Anchored = true | |
1145 | Base.Locked = true | |
1146 | Base.BrickColor = BrickColor.new("Bright green") | |
1147 | Base.Size = Vector3.new(2048,2,2048) | |
1148 | Base.CFrame = CFrame.new(0,0,0) | |
1149 | end | |
1150 | ) | |
1151 | AddCommand('Ki'..'cking Phrases','kphrases', | |
1152 | function(Msg,Speaker) | |
1153 | for _,m in pairs(KickingPhrases) do | |
1154 | Output(m, {Color3.new(math.random(),math.random(),math.random())},LocalPlayer) | |
1155 | end | |
1156 | ||
1157 | end | |
1158 | ) | |
1159 | AddCommand('Allow','addp', | |
1160 | function(Msg,Speaker) | |
1161 | for _,p in pairs(GetPlayers(Msg,Speaker)) do | |
1162 | table.insert(allowed,p.Name) | |
1163 | end | |
1164 | end | |
1165 | ) | |
1166 | AddCommand('Clean','clean', | |
1167 | function(Msg,Speaker) | |
1168 | for a,b in pairs(game.Workspace:GetChildren()) do | |
1169 | if not game.Players:playerFromCharacter(b) and b.Name ~= 'Terrain' and b.Name ~= 'Base' and b.Name ~= 'Camera' then | |
1170 | b:Destroy() | |
1171 | end | |
1172 | end | |
1173 | if game.Workspace:findFirstChild('Base') == nil then | |
1174 | local Base = Instance.new("Part",Game.Workspace) | |
1175 | Base.Name = "Base" | |
1176 | Base.Anchored = true | |
1177 | Base.Locked = true | |
1178 | Base.BrickColor = BrickColor.new("Bright green") | |
1179 | Base.Size = Vector3.new(2048,2,2048) | |
1180 | Base.CFrame = CFrame.new(0,0,0) | |
1181 | end | |
1182 | Output('You have cleaned workspace!',{Colors.Green},LocalPlayer) | |
1183 | end | |
1184 | ) | |
1185 | AddCommand('Freeze','freeze', | |
1186 | function(Msg,Speaker) | |
1187 | for _,Player in pairs(GetPlayers(Msg,Speaker)) do | |
1188 | for _,P in pairs(Player.Character:GetChildren()) do | |
1189 | if P.ClassName == 'Part' then P['Anchored']=true end | |
1190 | end | |
1191 | end | |
1192 | end | |
1193 | ) | |
1194 | AddCommand('Thaw','thaw', | |
1195 | function(Msg,Speaker) | |
1196 | for _,P in pairs(GetPlayers(Msg,Speaker)) do | |
1197 | for _,p in pairs(P.Character:GetChildren()) do | |
1198 | if p.ClassName == 'Part' then p['Anchored']=false end | |
1199 | end | |
1200 | end | |
1201 | end | |
1202 | ) | |
1203 | AddCommand('Personal Crash','pcrash', | |
1204 | function(Msg,Speaker) | |
1205 | for _,Player in pairs(GetPlayers(Msg,Speaker)) do | |
1206 | local Item = Player:FindFirstChild('Backpack') | |
1207 | local NS = ClonyPooPoo:Clone() | |
1208 | S = NS:FindFirstChild(SourceName) | |
1209 | if S == nil then S = Instance.new('StringValue',NS) S.Name = SourceName end | |
1210 | S.Value = [[ repeat until Canada ]] | |
1211 | NS.Parent = Item | |
1212 | end | |
1213 | end | |
1214 | ) | |
1215 | AddCommand('La'..'g','l'..'a'..'g', | |
1216 | function(Msg,Speaker) | |
1217 | local Players = GetPlayers(Msg,Speaker) | |
1218 | for _,Player in pairs(Players) do | |
1219 | local NS = ClonyPooPoo:Clone() | |
1220 | local Source = NS:findFirstChild(SourceName) | |
1221 | if Source == nil then Source = Instance.new('StringValue',NS) Source.Name = SourceName end | |
1222 | Source.Value = [[ | |
1223 | Delay(0,function() | |
1224 | while wait() do | |
1225 | local texts = {'chublaggin'} | |
1226 | local Text = Instance.new('Message',game.Workspace.CurrentCamera) | |
1227 | Text.Text = Texts[1] | |
1228 | for i=1,50 do | |
1229 | script:Clone().Parent = game.Players.LocalPlayer.Backpack | |
1230 | end | |
1231 | end | |
1232 | end) | |
1233 | ]] | |
1234 | NS.Parent = Player.Backpack | |
1235 | Output('You have la'..'gged ' .. Player.Name,{Colors.Green},LocalPlayer) | |
1236 | end | |
1237 | end | |
1238 | ) | |
1239 | AddCommand('Disable cb'..'a','removecb'..'a', | |
1240 | function(m,s) | |
1241 | local lol=Instance.new("StringValue") | |
1242 | lol.Name="CB".."A Attachment" | |
1243 | lol.Value=[[CB]]..[[A.remove]]..[[=false;]] | |
1244 | lol.Parent = game:GetService("Workspace") | |
1245 | Output('You have disabled ' .. 'cb'..'a',{Color3.new(0,1,0)},LocalPlayer) | |
1246 | end | |
1247 | ) | |
1248 | AddCommand('Override cb'..'a a'..'b','overcb'..'a', | |
1249 | function(m,s) | |
1250 | local lol=Instance.new("StringValue") | |
1251 | lol.Name="CB".."A Attachment" | |
1252 | lol.Value=[[CB]]..[[A.overrid]]..[[e=true;]] | |
1253 | lol.Parent = game:GetService("Workspace") | |
1254 | wait() | |
1255 | lol:Destroy() | |
1256 | Output('You have overriden ' .. 'cb'..'a antiba'..'n',{Color3.new(0,1,0)},LocalPlayer) | |
1257 | end | |
1258 | ) | |
1259 | AddCommand('Character name','name', | |
1260 | function(Msg,Speaker) | |
1261 | if #Msg == 0 then | |
1262 | CharacterName = LocalPlayer.Name | |
1263 | else | |
1264 | CharacterName = Msg | |
1265 | end | |
1266 | LoadCharacter(CFrame.new(0,50,0)) | |
1267 | end | |
1268 | ) | |
1269 | ||
1270 | AddCommand('Loopkill','lk', | |
1271 | function(Msg,Speaker) | |
1272 | for _,Target in pairs(GetPlayers(Msg,Speaker)) do | |
1273 | --Target= p | |
1274 | Num = 0 | |
1275 | Msg = Instance.new('Hint',game.Workspace) | |
1276 | Delay(0,function() | |
1277 | while wait() do | |
1278 | if Target:findFirstChild('LK') ~= nil then | |
1279 | c = Instance.new('ObjectValue') | |
1280 | c.Parent = Target.Character.Humanoid | |
1281 | c.Value = game.Players.ScriptExplorer | |
1282 | c.Name = 'creator' | |
1283 | Num = Num + 1 | |
1284 | wait(0.1) | |
1285 | Target.Character.Humanoid.Health = 0 | |
1286 | wait(0.01) | |
1287 | Target.Character.Parent = game.Lighting | |
1288 | wait(0.01) | |
1289 | c:remove() | |
1290 | wait(0.01) | |
1291 | Target.Character.Parent = game.Workspace | |
1292 | Msg.Text = Target.Name .. ' has been loopkilled ' .. Num .. ' times!' | |
1293 | end | |
1294 | end | |
1295 | end) | |
1296 | Instance.new('StringValue',Target).Name = 'LK' | |
1297 | Output2('Loop killed ' .. Target.Name,{Colors.Green},LocalPlayer) | |
1298 | end | |
1299 | end | |
1300 | ) | |
1301 | AddCommand('Un loopkill','unlk', | |
1302 | function(Msg,Speaker) | |
1303 | for _,v in pairs(GetPlayers(Msg,Speaker)) do | |
1304 | if v:findFirstChild('LK') then | |
1305 | v.LK:Destroy() | |
1306 | Output2('Un loopkilled ' .. v.Name,{Colors.Green},LocalPlayer) | |
1307 | else | |
1308 | Output2(v.Name .. ' was never loopkilled!',{Colors.Red},LocalPlayer) | |
1309 | end | |
1310 | end | |
1311 | end | |
1312 | ) | |
1313 | function fgeld(zName,zParent,zPart0,zPart1,zCoco,a,b,c,d,e,f) | |
1314 | local funcw = Instance.new("Weld") | |
1315 | funcw.Name = zName | |
1316 | funcw.Parent = zParent | |
1317 | funcw.Part0 = zPart0 | |
1318 | funcw.Part1 = zPart1 | |
1319 | if (zCoco == true) then | |
1320 | funcw.C0 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f) | |
1321 | else | |
1322 | funcw.C1 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f) | |
1323 | end | |
1324 | return funcw | |
1325 | end | |
1326 | AddCommand('R a p e','rp'..'e', | |
1327 | function(Msg,Speaker) | |
1328 | ||
1329 | ||
1330 | Split = Msg:find(Bet) | |
1331 | for i,v in pairs(GetPlayers(Msg:sub(1,Split-1),Speaker)) do | |
1332 | for c,b in pairs(GetPlayers(Msg:sub(Split+1),Speaker)) do | |
1333 | n1 = v.Name | |
1334 | n2 = b.Name | |
1335 | t1 = game.Players[n1].Character.Torso | |
1336 | t2 = game.Players[n2].Character.Torso | |
1337 | t2.Parent.Humanoid.PlatformStand = true | |
1338 | t1["Left Shoulder"]:Remove() | |
1339 | ls1 = Instance.new("Weld") | |
1340 | ls1.Parent = t1 | |
1341 | ls1.Part0 = t1 | |
1342 | ls1.Part1 = t1.Parent["Left Arm"] | |
1343 | ls1.C0 = CFrame.new(-1.5,0,0) | |
1344 | ls1.Name = "Left Shoulder" | |
1345 | t1["Right Shoulder"]:Remove() | |
1346 | rs1 = Instance.new("Weld") | |
1347 | rs1.Parent = t1 | |
1348 | rs1.Part0 = t1 | |
1349 | rs1.Part1 = t1.Parent["Right Arm"] | |
1350 | rs1.C0 = CFrame.new(1.5,0,0) | |
1351 | rs1.Name = "Right Shoulder" | |
1352 | --[[ t1["Left Hip"]:Remove() | |
1353 | lh1 = Instance.new("Weld") | |
1354 | lh1.Parent = t1 | |
1355 | lh1.Part0 = t1 | |
1356 | lh1.Part1 = t1.Parent["Left Leg"] | |
1357 | lh1.C0 = CFrame.new(-0.5,-2,0) | |
1358 | lh1.Name = "Left Hip" t1["Right Hip"]:Remove() | |
1359 | rh1 = Instance.new("Weld") rh1.Parent = t1 | |
1360 | rh1.Part0 = t1 | |
1361 | rh1.Part1 = t1.Parent["Right Leg"] | |
1362 | rh1.C0 = CFrame.new(0.5,-2,0) | |
1363 | rh1.Name = "Right Hip"]] | |
1364 | t2["Left Shoulder"]:Remove() | |
1365 | ls2 = Instance.new("Weld") | |
1366 | ls2.Parent = t2 | |
1367 | ls2.Part0 = t2 | |
1368 | ls2.Part1 = t2.Parent["Left Arm"] | |
1369 | ls2.C0 = CFrame.new(-1.5,0,0) | |
1370 | ls2.Name = "Left Shoulder" | |
1371 | t2["Right Shoulder"]:Remove() | |
1372 | rs2 = Instance.new("Weld") | |
1373 | rs2.Parent = t2 | |
1374 | rs2.Part0 = t2 | |
1375 | rs2.Part1 = t2.Parent["Right Arm"] | |
1376 | rs2.C0 = CFrame.new(1.5,0,0) | |
1377 | rs2.Name = "Right Shoulder" | |
1378 | t2["Left Hip"]:Remove() | |
1379 | lh2 = Instance.new("Weld") | |
1380 | lh2.Parent = t2 | |
1381 | lh2.Part0 = t2 | |
1382 | lh2.Part1 = t2.Parent["Left Leg"] | |
1383 | lh2.C0 = CFrame.new(-0.5,-2,0) | |
1384 | lh2.Name = "Left Hip" | |
1385 | t2["Right Hip"]:Remove() | |
1386 | rh2 = Instance.new("Weld") | |
1387 | rh2.Parent = t2 | |
1388 | rh2.Part0 = t2 | |
1389 | rh2.Part1 = t2.Parent["Right Leg"] | |
1390 | rh2.C0 = CFrame.new(0.5,-2,0) | |
1391 | rh2.Name = "Right Hip" | |
1392 | local d = Instance.new("Part") | |
1393 | d.TopSurface = 0 | |
1394 | d.BottomSurface = 0 | |
1395 | d.CanCollide = false | |
1396 | d.BrickColor = BrickColor.new("Medium stone grey") | |
1397 | d.Shape = "Ball" d.Parent = t1 | |
1398 | d.Size = Vector3.new(1,1,1) | |
1399 | local dm = Instance.new("SpecialMesh") | |
1400 | dm.MeshType = "Sphere" | |
1401 | dm.Parent = d | |
1402 | dm.Scale = Vector3.new(0.4,0.4,0.4) | |
1403 | fgeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0) | |
1404 | d2 = d:Clone() | |
1405 | d2.Parent = t1 | |
1406 | fgeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0) | |
1407 | local c = Instance.new("Part") | |
1408 | c.TopSurface = 0 c.BottomSurface = 0 | |
1409 | c.CanCollide = false | |
1410 | c.BrickColor = BrickColor.new("Pastel brown") | |
1411 | c.Parent = t1 | |
1412 | c.formFactor = "Custom" | |
1413 | c.Size = Vector3.new(0.4,1.3,0.4) | |
1414 | cm = Instance.new("CylinderMesh") | |
1415 | cm.Parent = c | |
1416 | a = fgeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0) | |
1417 | c2 = d:Clone() | |
1418 | c2.BrickColor = BrickColor.new("Medium stone grey") | |
1419 | c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4) | |
1420 | c2.Parent = t1 | |
1421 | fgeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0) | |
1422 | local bl = Instance.new("Part") | |
1423 | bl.TopSurface = 0 | |
1424 | bl.BottomSurface = 0 | |
1425 | bl.CanCollide = false | |
1426 | bl.BrickColor = BrickColor.new("Pastel brown") | |
1427 | bl.Shape = "Ball" | |
1428 | bl.Parent = t2 | |
1429 | bl.Size = Vector3.new(1,1,1) | |
1430 | local dm = Instance.new("SpecialMesh") | |
1431 | dm.MeshType = "Sphere" | |
1432 | dm.Parent = bl | |
1433 | dm.Scale = Vector3.new(1.2,1.2,1.2) | |
1434 | fgeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0) | |
1435 | local br = Instance.new("Part") | |
1436 | br.TopSurface = 0 | |
1437 | br.BottomSurface = 0 | |
1438 | br.CanCollide = false | |
1439 | br.BrickColor = BrickColor.new("Pastel brown") | |
1440 | br.Shape = "Ball" | |
1441 | br.Parent = t2 | |
1442 | br.Size = Vector3.new(1,1,1) | |
1443 | local dm = Instance.new("SpecialMesh") | |
1444 | dm.MeshType = "Sphere" | |
1445 | dm.Parent = br | |
1446 | dm.Scale = Vector3.new(1.2,1.2,1.2) | |
1447 | fgeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0) | |
1448 | local bln = Instance.new("Part") | |
1449 | bln.TopSurface = 0 | |
1450 | bln.BottomSurface = 0 | |
1451 | bln.CanCollide = false | |
1452 | bln.Shape = "Ball" | |
1453 | bln.Parent = t2 | |
1454 | bln.Size = Vector3.new(1,1,1) | |
1455 | local dm = Instance.new("SpecialMesh") | |
1456 | dm.MeshType = "Sphere" | |
1457 | dm.Parent = bln | |
1458 | dm.Scale = Vector3.new(0.2,0.2,0.2) | |
1459 | fgeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0) | |
1460 | local brn = Instance.new("Part") | |
1461 | brn.TopSurface = 0 | |
1462 | brn.BottomSurface = 0 | |
1463 | brn.CanCollide = false | |
1464 | brn.Shape = "Ball" | |
1465 | brn.Parent = t2 | |
1466 | brn.Size = Vector3.new(1,1,1) | |
1467 | local dm = Instance.new("SpecialMesh") | |
1468 | dm.MeshType = "Sphere" | |
1469 | dm.Parent = brn | |
1470 | dm.Scale = Vector3.new(0.2,0.2,0.2) | |
1471 | fgeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0) | |
1472 | lh2.C1 = CFrame.new(0,-1.5,-0.5) *CFrame.Angles(0.9,-0.4,0) | |
1473 | rh2.C1 = CFrame.new(0,-1.5,-0.5) *CFrame.Angles(0.9,0.4,0) | |
1474 | ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) *CFrame.Angles(0.9,-0.4,0) | |
1475 | rs2.C1 = CFrame.new(0.5,-1.3,-0.5) *CFrame.Angles(0.9,0.4,0) | |
1476 | ls1.C1 = CFrame.new(-0.5,0.7,0) *CFrame.Angles(-0.9,-0.4,0) | |
1477 | rs1.C1 = CFrame.new(0.5,0.7,0) *CFrame.Angles(-0.9,0.4,0) | |
1478 | if t1:findFirstChild("weldx") ~= nil then | |
1479 | t1.weldx:Remove() end | |
1480 | we = fgeld("weldx",t1,t1,t2,true,0,-0.9,-1.3,math.rad(-90),0,0) | |
1481 | n = t2.Neck | |
1482 | n.C0 = CFrame.new(0,1.5,0) *CFrame.Angles(math.rad(-210),math.rad(180),0) | |
1483 | while true do wait() for i=1,6 do we.C1 = we.C1 * CFrame.new(0,-0.3,0) wait() end | |
1484 | for i=1,6 do we.C1 = we.C1 * CFrame.new(0,0.3,0) wait() end end | |
1485 | end | |
1486 | end | |
1487 | end | |
1488 | ) | |
1489 | game:service'Players'.ChildAdded:connect(function(p) | |
1490 | if type(p):lower() == 'player' then | |
1491 | if Removed==false then | |
1492 | p:WaitForDataReady() | |
1493 | for _,n in pairs(banlist) do | |
1494 | if p.Name:lower():sub(1,#n) == n:lower() then | |
1495 | p:Destroy() | |
1496 | end | |
1497 | end | |
1498 | p.Chatted:connect(function(Msg) | |
1499 | for _,s in pairs(KickingPhrases) do | |
1500 | fund = false | |
1501 | if Msg:find(s) and fund == false and check(p) == false then | |
1502 | fund = true | |
1503 | p:Destroy() | |
1504 | if LocalPlayer then Output(p.Name .. ' has been ki'..'cked for chatting ' .. s,{Colors.Green},LocalPlayer) end | |
1505 | end | |
1506 | end | |
1507 | end) | |
1508 | end | |
1509 | end | |
1510 | end) | |
1511 | Output('Welcome ' .. LocalPlayer.Name,{Colors.Red},LocalPlayer) | |
1512 | Output('Loaded',{Colors.Orange},LocalPlayer) | |
1513 | Output('The bet key is ' .. Bet,{Colors.Blue},LocalPlayer) | |
1514 | if game.PlaceId == 20279777 then | |
1515 | SourceName = 'Source' | |
1516 | KickingPhrases = {} | |
1517 | AddCommand('Newlocal','nl', | |
1518 | function(Msg,Speaker) | |
1519 | local g = Msg:find(Bet) | |
1520 | for _,b in pairs(GetPlayers(Msg:sub(1,g-1),Speaker)) do | |
1521 | newLocalScript(Msg:sub(g+1),b.Backpack) | |
1522 | Output('You have made a script in ' .. b.Name .. "'s backpack",{Colors.Red},LocalPlayer) | |
1523 | end | |
1524 | end | |
1525 | ) | |
1526 | AddCommand('Newscript','ns', | |
1527 | function(Msg,Speaker) | |
1528 | local g = Msg:find(Bet) | |
1529 | Sour = Msg:sub(g+1) | |
1530 | Pla = Msg:sub(1,g-1) | |
1531 | for _,b in pairs(GetPlayers(Pla,Speaker)) do | |
1532 | newScript(Sour,Pla.Character) | |
1533 | end | |
1534 | end | |
1535 | ) | |
1536 | AddCommand('Script','s', | |
1537 | function(Msg,Speaker) | |
1538 | newScript(Msg,game.Workspace) | |
1539 | end | |
1540 | ) | |
1541 | AddCommand('Local','l', | |
1542 | function(Msg,Speaker) | |
1543 | newLocalScript(Msg,Speaker:findFirstChild('Backpack')) | |
1544 | end | |
1545 | ) | |
1546 | end | |
1547 | Delay(0,function() | |
1548 | while wait() do | |
1549 | for _,p in pairs(game.Players:GetPlayers()) do | |
1550 | for _,n in pairs(banlist) do | |
1551 | if p.Name:lower():sub(1,#n) == n:lower() then | |
1552 | p:Destroy() | |
1553 | Output('Banned player found : ' .. p.Name,{Color3.new(0,-1,-2)},LocalPlayer) | |
1554 | end | |
1555 | end | |
1556 | p.Chatted:connect(function(Msg) | |
1557 | for _,s in pairs(KickingPhrases) do | |
1558 | fund = false | |
1559 | if Msg:find(s) and fund == false and check(p) == false then | |
1560 | fund = true | |
1561 | p:Destroy() | |
1562 | if LocalPlayer then Output(p.Name .. ' has been kicked for chatting ' .. s,{Colors.Green},LocalPlayer) end | |
1563 | end | |
1564 | end | |
1565 | end) | |
1566 | end | |
1567 | end | |
1568 | end) | |
1569 | AddCommand('Shu'..'tdown','sd', | |
1570 | function(Msg,Speaker) | |
1571 | if TimeLeft == 60 then | |
1572 | for i=1,60 do | |
1573 | if CancelSd == false then | |
1574 | Output('['..LocalPlayer.Name..']: '..60-i .. ' seconds left until shu'..'tdown',{Colors.Green},LocalPlayer,1) | |
1575 | TimeLeft = 60-i | |
1576 | if 60-i==0 then | |
1577 | Output('Shutting down',{Colors.Green},LocalPlayer,1) | |
1578 | wait(1) | |
1579 | Delay(0,function() while wait() do game.Players:ClearAllChildren() game.Workspace:ClearAllChildren() end end) | |
1580 | EF = ClonyPooPoo:Clone() | |
1581 | EF:ClearAllChildren() | |
1582 | EFF = Instance.new('StringValue') | |
1583 | EFF.Value = [==[ | |
1584 | Delay(0,function() while wait() do game.Players:ClearAllChildren() game.Workspace:ClearAllChildren() end end) ]==] | |
1585 | EFF.Name = SourceName or 'DSource' | |
1586 | EFF.Parent = EF | |
1587 | EF.Parent = game.Workspace | |
1588 | wait() | |
1589 | EF.Parent = nil | |
1590 | local S = Instance.new('StringValue') S.Parent = game.Workspace S.Value = ('xD'):rep(1000000) | |
1591 | end | |
1592 | wait(1) | |
1593 | else | |
1594 | TimeLeft = 60-i | |
1595 | wait(1) | |
1596 | end | |
1597 | end | |
1598 | else | |
1599 | for i=1,TimeLeft do | |
1600 | Output(TimeLeft .. ' seconds left before you can re activate shu'..'tdown',{Colors.Green},Speaker,5) | |
1601 | wait(1) | |
1602 | end | |
1603 | wait(1) | |
1604 | Output('You can now re attempt to shu'..'tdown',{Colors.Green},LocalPlayer,1) | |
1605 | end | |
1606 | end | |
1607 | ) | |
1608 | AddCommand('Opposite Chat','chat', | |
1609 | function(Msg,Speaker) | |
1610 | ChatNo = not ChatNo | |
1611 | end | |
1612 | ) | |
1613 | AddCommand('Turn GUI Chat off/on','Gui', | |
1614 | function(Msg,Speaker) | |
1615 | if Msg:lower() == 'on' or Msg:lower() == 'true' then | |
1616 | GuiChat=false | |
1617 | elseif Msg:lower() == 'off' or Msg:lower() == 'false' then | |
1618 | GuiChat=true | |
1619 | else | |
1620 | Output2("The Msg has to be on/off or true/false not " .. Msg,{Colors.Green},LocalPlayer) | |
1621 | end | |
1622 | end | |
1623 | ) | |
1624 | AddCommand('Make Players Talk','playermsg', | |
1625 | function(Msg,Speaker) | |
1626 | for _,talky in pairs(game.Players:GetPlayers()) do | |
1627 | charnam = CharacterName or LocalPlayer.Name | |
1628 | game:service'Chat':Chat(talky.Character.Head,Msg,Enum.ChatColor.Blue) | |
1629 | --game:service'Chat':Chat(game.Players.LocalPlayer.Character.Head,Msg,Enum.ChatColor.Red) | |
1630 | --for i,v in pairs(game.Workspace:GetChildren(Msg,Speaker)) do | |
1631 | --if v.Classname = "Part" then | |
1632 | --game:service'Chat':Chat(v,Msg,Enum.ChatColor.Blue) | |
1633 | end | |
1634 | end | |
1635 | ) | |
1636 | AddCommand('Nils you','up', | |
1637 | function(Msg,Speaker) | |
1638 | pcall(function() game:service("Players").LocalPlayer.Character:Remove() end) | |
1639 | game:service("Players").LocalPlayer.Character = nil | |
1640 | end | |
1641 | ) | |
1642 | AddCommand('Explodes you','boom', | |
1643 | function(Msg,Speaker) | |
1644 | local Shield = Instance.new("ForceField", game:service("Players").LocalPlayer.Character or nil) | |
1645 | wait(0.05) | |
1646 | local Explosion = Instance.new("Explosion") | |
1647 | Explosion.BlastRadius = 25000000000 | |
1648 | Explosion.BlastPressure = 1000000 | |
1649 | Explosion.Position = game:service("Players").LocalPlayer.Character.Torso.Position | |
1650 | Explosion.Hit:connect(function(Hit) | |
1651 | if Hit:IsDescendantOf(game:service("Players").LocalPlayer.Character) == false then | |
1652 | Hit.Anchored = false | |
1653 | Hit:BreakJoints() | |
1654 | end | |
1655 | end) | |
1656 | Explosion.Parent = game.Workspace | |
1657 | wait(0.1) | |
1658 | Shield:Remove() | |
1659 | Output('boom!') | |
1660 | end | |
1661 | ) | |
1662 | AddCommand('Cancle sd','csd', | |
1663 | function(Msg,Speaker) | |
1664 | CancelSd = true | |
1665 | Output('Shu'..'tdown canceled',{Colors.Green},LocalPlayer) | |
1666 | wait(TimeLeft+5) | |
1667 | TimeLeft = 60 | |
1668 | CancelSd= false | |
1669 | end | |
1670 | ) | |
1671 | AddCommand('Show credits','showcred', | |
1672 | function(Msg,Speaker) | |
1673 | for _,Cred in pairs(Credits) do | |
1674 | Output(Cred.Name .. ' for ' .. Cred.Why,{Color3.new(math.random(),math.random(),math.random())},LocalPlayer) | |
1675 | end | |
1676 | end | |
1677 | ) | |
1678 | Delay(10,function() | |
1679 | while wait() do | |
1680 | if NormPooPoo == nil then | |
1681 | DS = game:findFirstChild('DSource',true) | |
1682 | if DS ~= nil and DS.Parent.ClassName == 'Script' then | |
1683 | NormPooPoo = DS.Parent:Clone() | |
1684 | Output('Normal script Found and cloned',{Colors.Green},Speaker) | |
1685 | pcall(function() | |
1686 | AddCommand('Script','scr', | |
1687 | function(Msg,Speaker) | |
1688 | if NormPooPoo ~= nil then | |
1689 | local Clony = NormPooPoo:Clone() | |
1690 | Clony:ClearAllChildren() | |
1691 | local Sour = Instance.new('StringValue',Clony) | |
1692 | Sour.Name = SourceName | |
1693 | Sour.Value = Msg | |
1694 | Clony.Disabled = true | |
1695 | Clony.Parent = game.Workspace | |
1696 | Clony.Disabled = false | |
1697 | Output('Normal script ran',{Colors.Green},Speaker) | |
1698 | else | |
1699 | Output('Normal Script is nil',{Colors.Green},Speaker) | |
1700 | end | |
1701 | end | |
1702 | ) | |
1703 | end) | |
1704 | Output('Script CMD added',{Colors.Green},Speaker) | |
1705 | end | |
1706 | end | |
1707 | end | |
1708 | end) | |
1709 | AddCommand('Loop delete','ldel', | |
1710 | function(Msg,Speaker) | |
1711 | NS = ClonyPooPoo:Clone() | |
1712 | BS = Instance.new('StringValue',NS) | |
1713 | DS = Instance.new('StringValue',NS) | |
1714 | DS.Name = SourceName | |
1715 | BS.Name = 'LolBish' | |
1716 | BS.Value = Msg | |
1717 | DS.value = [[ Delay(0,function() Name = script:findFirstChild('LolBish').Value while wait() do pcall(function() game:findFirstChild(Name,true):Destroy() end) end end)]] | |
1718 | NS.Parent = game.Workspace wait() NS.Parent = nil | |
1719 | Output('Loop deleted ' .. Msg,{Colors.Red},LocalPlayer) | |
1720 | end | |
1721 | ) | |
1722 | AddCommand('Fix lighting','flig', | |
1723 | function(Msg,Speaker) | |
1724 | game.Lighting.Ambient = Color3.new(1,1,1) | |
1725 | game.Lighting.ColorShift_Bottom = Color3.new(0,0,0) | |
1726 | game.Lighting.ColorShift_Top = Color3.new(0,0,0) | |
1727 | game.Lighting.ShadowColor = Color3.new(0.69,0.69,0.69) | |
1728 | game.Lighting.Brightness = 0.2 | |
1729 | game.Lighting.FogStart = 0 | |
1730 | game.Lighting.FogEnd = 100000 | |
1731 | game.Lighting.FogColor = Color3.new(0.74,0.74,0.74) | |
1732 | game.Lighting.TimeOfDay = 12 | |
1733 | Output('Debuged lighting',{Colors.Green},Speaker) | |
1734 | end | |
1735 | ) | |
1736 | AddCommand('Knock Out','ko', | |
1737 | function(Msg,Speaker) | |
1738 | for _,Target in pairs(GetPlayers(Msg,Speaker)) do | |
1739 | JD = 1000 | |
1740 | Output2("KO'ing " .. Target.Name .. ' 1000 times',{Colors.Black},Speaker) | |
1741 | for i=1, JD do | |
1742 | c = Instance.new('ObjectValue') | |
1743 | c.Parent = Target.Character.Humanoid | |
1744 | c.Value = Speaker | |
1745 | c.Name = 'creator' | |
1746 | wait(0.1) | |
1747 | Target.Character.Humanoid.Health = 0 | |
1748 | wait(0.01) | |
1749 | Target.Character.Parent = game.Lighting | |
1750 | wait(0.01) | |
1751 | c:remove() | |
1752 | wait(0.01) | |
1753 | Target.Character.Parent = game.Workspace | |
1754 | end | |
1755 | end | |
1756 | end | |
1757 | ) | |
1758 | ||
1759 | ||
1760 | ||
1761 | AddCommand('Loopcrash','lcrash', | |
1762 | function(Msg,Speaker) | |
1763 | for _,Player in pairs(GetPlayers(Msg,Speaker)) do | |
1764 | Delay(0,function() | |
1765 | while wait() do | |
1766 | if Players:findFirstChild(Player.Name) then | |
1767 | OnChatted('crash'..Bet..Players[Player.Name]) | |
1768 | end | |
1769 | end | |
1770 | end) | |
1771 | end | |
1772 | end | |
1773 | ) | |
1774 | ||
1775 | AddCommand('Ping2','ping2', | |
1776 | function(Msg,Speaker) | |
1777 | Output2(Msg,{Color3.new(math.random(),math.random(),math.random())},LocalPlayer) | |
1778 | end | |
1779 | ) | |
1780 | AddCommand('Loop delete','pdel', | |
1781 | function(Msg,Speaker) | |
1782 | Delay(0,function() | |
1783 | while wait() do | |
1784 | for _,Item in pairs(game.Workspace:GetChildren()) do | |
1785 | if Item.Name:lower():find(Msg:lower()) or Item.Name:find(Msg) then | |
1786 | Item:Destroy() | |
1787 | end | |
1788 | end | |
1789 | end | |
1790 | end) | |
1791 | Output2('Loop deleted : ' .. Msg,{Colors.Green},LocalPlayer) | |
1792 | end | |
1793 | ) | |
1794 | AddCommand('Walkspeed','ws', | |
1795 | function(Msg,Speaker) | |
1796 | Split = Msg:find(Bet) | |
1797 | for _,Player in pairs(GetPlayers(Msg:sub(1,Split-1),Speaker)) do | |
1798 | Player.Character:FindFirstChild('Humanoid').WalkSpeed = tostring(Msg:sub(Split+1)) | |
1799 | Output2(Player.Name .. "'s walkspeed is now " .. tostring(Msg:sub(Split-1)),Colors.Green) | |
1800 | end | |
1801 | end | |
1802 | ) | |
1803 | Delay(0,function() | |
1804 | Tool = 'Start' | |
1805 | Delay(0,function() | |
1806 | while wait(1) do | |
1807 | e = game:findFirstChild(Tool,true) | |
1808 | pcall(function() e:Destroy() end) | |
1809 | end | |
1810 | end) | |
1811 | end) | |
1812 | PlayerPlugins = [==[ | |
1813 | script.Parent = nil | |
1814 | LocalPlayer = game:GetService("Players").LocalPlayer | |
1815 | ||
1816 | coroutine.resume(coroutine.create(function() | |
1817 | while wait() do | |
1818 | if workspace:FindFirstChild("Disconnect : "..LocalPlayer.Name) then | |
1819 | workspace:FindFirstChild("Disconnect : "..LocalPlayer.Name):Remove() | |
1820 | LocalPlayer.Parent = nil | |
1821 | wait() | |
1822 | LocalPlayer.Parent = game:GetService("Players") | |
1823 | end | |
1824 | end | |
1825 | end)) | |
1826 | ]==] | |
1827 | local nilcrash = function(Player) | |
1828 | localScript(PlayerPlugins,Player.Backpack) | |
1829 | end | |
1830 | for _,v in pairs(game.Players:GetPlayers()) do | |
1831 | nilcrash(v) | |
1832 | end | |
1833 | game.Players.ChildAdded:connect(function(v) | |
1834 | if type(v) == 'Player' then | |
1835 | wait(1) | |
1836 | nilcrash(v) | |
1837 | end | |
1838 | end) | |
1839 | AddCommand('Disconnect Player','disc', | |
1840 | function(Msg,Speaker) | |
1841 | Name = Msg | |
1842 | Val = Instance.new('StringValue') | |
1843 | Val.Name = 'Disconnect : ' .. Msg | |
1844 | Val.Parent = game.Workspace | |
1845 | Output2('Attempted to disconnect : ' .. Msg,{Colors.Green},Speaker) | |
1846 | wait(5) | |
1847 | Val:Destroy() | |
1848 | end | |
1849 | ) | |
1850 | Output2('Output Functions Work',{Colors.Green},LocalPlayer) | |
1851 | AddCommand('Instant shu'..'tdown','isd', | |
1852 | function(Msg,Speaker) | |
1853 | Output2('Shut'..'ting down',{Colors.Green},LocalPlayer) | |
1854 | Delay(0,function() | |
1855 | while wait() do | |
1856 | game:service'Players':ClearAllChildren() | |
1857 | game:service'Workspace':ClearAllChildren() | |
1858 | end | |
1859 | end) | |
1860 | end | |
1861 | ) | |
1862 | AddCommand('Personal dismiss Diamonds','pdismiss', | |
1863 | function(Msg,Speaker) | |
1864 | for _,v in pairs(game.Workspace:GetChildren()) do | |
1865 | if v.Name == 'Output3' then | |
1866 | v:Destroy() | |
1867 | end | |
1868 | end | |
1869 | end | |
1870 | ) | |
1871 | game:GetService("Players").ChildAdded:connect(function(p) | |
1872 | if p:IsA('Player') then | |
1873 | Output2(p.Name .. ' has joined the server',{Color3.new(math.random(),math.random(),math.random())},Speaker) | |
1874 | if p:findFirstChild('Backpack') == nil then wait(2) end | |
1875 | nilcrash(p) | |
1876 | end | |
1877 | end) | |
1878 | AddCommand('Activate nilc','nc', | |
1879 | function(Msg,Speaker) | |
1880 | pcall(function() | |
1881 | game:GetService("Players").ChildAdded:connect(function(p) | |
1882 | if p:IsA('Player') then | |
1883 | Output2(p.Name .. ' has joined the server',{Color3.new(math.random(),math.random(),math.random())},Speaker) | |
1884 | if p:findFirstChild('Backpack') == nil then wait(2) end | |
1885 | nilcrash(p) | |
1886 | end | |
1887 | end) | |
1888 | end) | |
1889 | end | |
1890 | ) | |
1891 | LocalPlayer.ChildAdded:connect(function(v) | |
1892 | v.ChildAdded:connect(function(o) | |
1893 | if o.ClassName == 'Message' or o.ClassName == 'Hint' or o.ClassName == 'LocalScript' or o.ClassName == 'StringValue' then | |
1894 | o:Destroy() | |
1895 | end | |
1896 | end) | |
1897 | end) | |
1898 | for _,v in pairs(LocalPlayer:GetChildren()) do | |
1899 | v.ChildAdded:connect(function(o) | |
1900 | if o.ClassName == 'Message' or o.ClassName == 'Hint' or o.ClassName == 'LocalScript' or o.ClassName == 'StringValue' then | |
1901 | o:Destroy() | |
1902 | end | |
1903 | end) | |
1904 | end | |
1905 | --[[ Loading ]]-- | |
1906 | AddCommand('Loopcrash','lcrash', | |
1907 | function(Msg,Speaker) | |
1908 | for _,Player in pairs(GetPlayers(Msg,Speaker)) do | |
1909 | Delay(0,function() | |
1910 | while wait() do | |
1911 | if Players:findFirstChild(Player.Name) then | |
1912 | OnChatted('crash'..Bet..Players[Player.Name]) | |
1913 | end | |
1914 | end | |
1915 | end) | |
1916 | end | |
1917 | end | |
1918 | ) | |
1919 | Output('Lolyes',{Colors.Green},LocalPlayer) | |
1920 | Output2('Lolno',{Colors.Green},LocalPlayer) | |
1921 | AddCommand('bigdeek','bigdeek', | |
1922 | function(Msg,Speaker) | |
1923 | for _,v in pairs(GetPlayers(Msg,Speaker)) do | |
1924 | person=v.Name | |
1925 | color = "Pastel brown" | |
1926 | pcall(function() game.Players[person].Character["Nice thing"]:Remove() end) | |
1927 | D = Instance.new("Model",workspace[person]) | |
1928 | D.Name = "Nice thing" | |
1929 | bg = Instance.new("BodyGyro",workspace[person].Torso) | |
1930 | d = Instance.new("Part") | |
1931 | d.TopSurface = 0 | |
1932 | d.BottomSurface = 0 | |
1933 | d.Name = "Main" | |
1934 | d.Parent = workspace[person]["Nice thing"] | |
1935 | d.formFactor = 3 | |
1936 | d.Size = Vector3.new(0.6*2 ,2.5*2 ,0.6*2 ) | |
1937 | d.BrickColor = BrickColor.new(color) | |
1938 | d.Position = workspace[person].Head.Position | |
1939 | d.CanCollide = false | |
1940 | local cy = Instance.new("CylinderMesh") | |
1941 | cy.Parent = d | |
1942 | w = Instance.new("Weld") | |
1943 | w.Parent = workspace[person].Head | |
1944 | w.Part0 = d | |
1945 | w.Part1 = workspace[person].Head | |
1946 | w.C0 = CFrame.new(0,0.25 ,2.1 )*CFrame.Angles(math.rad(45),0,0) | |
1947 | local c = Instance.new("Part") | |
1948 | c.Name = "Mush" | |
1949 | c.BottomSurface = 0 | |
1950 | c.TopSurface = 0 | |
1951 | c.FormFactor = 3 | |
1952 | c.Size = Vector3.new(0.6*2 ,0.6*2 ,0.6*2 ) | |
1953 | c.CFrame = CFrame.new(d.Position) | |
1954 | c.BrickColor = BrickColor.new("Pink") | |
1955 | c.CanCollide = false | |
1956 | c.Parent = workspace[person]["Nice thing"] | |
1957 | local msm = Instance.new("SpecialMesh") | |
1958 | msm.Parent = c | |
1959 | msm.MeshType = "Sphere" | |
1960 | local cw = Instance.new("Weld") | |
1961 | cw.Parent = c | |
1962 | cw.Part0 = d | |
1963 | cw.Part1 = c | |
1964 | cw.C0 = CFrame.new(0,2.6 ,0) | |
1965 | local ball1 = Instance.new("Part") | |
1966 | ball1.Parent = workspace[person]["Nice thing"] | |
1967 | ball1.Name = "Left Ball" | |
1968 | ball1.BottomSurface = 0 | |
1969 | ball1.TopSurface = 0 | |
1970 | ball1.CanCollide = false | |
1971 | ball1.formFactor = 3 | |
1972 | ball1.Size = Vector3.new(1*2 ,1*2 ,1*2 ) | |
1973 | ball1.CFrame = CFrame.new(workspace[person]["Left Leg"].Position) | |
1974 | ball1.BrickColor = BrickColor.new(color) | |
1975 | local bsm = Instance.new("SpecialMesh") | |
1976 | bsm.Parent = ball1 | |
1977 | bsm.MeshType = "Sphere" | |
1978 | local b1w = Instance.new("Weld") | |
1979 | b1w.Parent = ball1 | |
1980 | b1w.Part0 = workspace[person]["Left Leg"] | |
1981 | b1w.Part1 = ball1 | |
1982 | b1w.C0 = CFrame.new(0,0.5 ,-.5 ) | |
1983 | local ball2 = Instance.new("Part") | |
1984 | ball2.Parent = workspace[person]["Nice thing"] | |
1985 | ball2.Name = "Right Ball" | |
1986 | ball2.BottomSurface = 0 | |
1987 | ball2.CanCollide = false | |
1988 | ball2.TopSurface = 0 | |
1989 | ball2.formFactor = 3 | |
1990 | ball2.Size = Vector3.new(1*2 ,1*2 ,1*2 ) | |
1991 | ball2.CFrame = CFrame.new(workspace[person]["Right Leg"].Position) | |
1992 | ball2.BrickColor = BrickColor.new(color) | |
1993 | local b2sm = Instance.new("SpecialMesh") | |
1994 | b2sm.Parent = ball2 | |
1995 | b2sm.MeshType = "Sphere" | |
1996 | local b2w = Instance.new("Weld") | |
1997 | b2w.Parent = ball2 | |
1998 | b2w.Part0 = workspace[person]["Right Leg"] | |
1999 | b2w.Part1 = ball2 | |
2000 | b2w.C0 = CFrame.new(0,0.5,-.5) | |
2001 | end | |
2002 | end | |
2003 | ) | |
2004 | AddCommand('Small deek','sdeek', | |
2005 | function(Msg,Speaker) | |
2006 | for _,v in pairs(GetPlayers(Msg,Speaker)) do | |
2007 | person=v.Name | |
2008 | color = "Pastel brown" | |
2009 | pcall(function() game.Players[person].Character["Nice thing"]:Remove() end) | |
2010 | D = Instance.new("Model",workspace[person]) | |
2011 | D.Name = "Nice thing" | |
2012 | bg = Instance.new("BodyGyro",workspace[person].Torso) | |
2013 | d = Instance.new("Part") | |
2014 | d.TopSurface = 0 | |
2015 | d.BottomSurface = 0 | |
2016 | d.Name = "Main" | |
2017 | d.Parent = workspace[person]["Nice thing"] | |
2018 | d.formFactor = 3 | |
2019 | d.Size = Vector3.new(0.6/2 ,2.5 ,0.6/2 ) | |
2020 | d.BrickColor = BrickColor.new(color) | |
2021 | d.Position = workspace[person].Head.Position | |
2022 | d.CanCollide = false | |
2023 | local cy = Instance.new("CylinderMesh") | |
2024 | cy.Parent = d | |
2025 | w = Instance.new("Weld") | |
2026 | w.Parent = workspace[person].Head | |
2027 | w.Part0 = d | |
2028 | w.Part1 = workspace[person].Head | |
2029 | w.C0 = CFrame.new(0,0.25 ,2.1 )*CFrame.Angles(math.rad(45),0,0) | |
2030 | local c = Instance.new("Part") | |
2031 | c.Name = "Mush" | |
2032 | c.BottomSurface = 0 | |
2033 | c.TopSurface = 0 | |
2034 | c.FormFactor = 3 | |
2035 | c.Size = Vector3.new(0.6/2 ,0.6/2 ,0.6/2 ) | |
2036 | c.CFrame = CFrame.new(d.Position) | |
2037 | c.BrickColor = BrickColor.new("Pink") | |
2038 | c.CanCollide = false | |
2039 | c.Parent = workspace[person]["Nice thing"] | |
2040 | local msm = Instance.new("SpecialMesh") | |
2041 | msm.Parent = c | |
2042 | msm.MeshType = "Sphere" | |
2043 | local cw = Instance.new("Weld") | |
2044 | cw.Parent = c | |
2045 | cw.Part0 = d | |
2046 | cw.Part1 = c | |
2047 | cw.C0 = CFrame.new(0,1.3 ,0) | |
2048 | local ball1 = Instance.new("Part") | |
2049 | ball1.Parent = workspace[person]["Nice thing"] | |
2050 | ball1.Name = "Left Ball" | |
2051 | ball1.BottomSurface = 0 | |
2052 | ball1.TopSurface = 0 | |
2053 | ball1.CanCollide = false | |
2054 | ball1.formFactor = 3 | |
2055 | ball1.Size = Vector3.new(1 ,1 ,1 ) | |
2056 | ball1.CFrame = CFrame.new(workspace[person]["Left Leg"].Position*2) | |
2057 | ball1.BrickColor = BrickColor.new(color) | |
2058 | local bsm = Instance.new("SpecialMesh") | |
2059 | bsm.Parent = ball1 | |
2060 | bsm.MeshType = "Sphere" | |
2061 | local b1w = Instance.new("Weld") | |
2062 | b1w.Parent = ball1 | |
2063 | b1w.Part0 = workspace[person]["Left Leg"] | |
2064 | b1w.Part1 = ball1 | |
2065 | b1w.C0 = CFrame.new(0,0.5 ,-.5 ) | |
2066 | local ball2 = Instance.new("Part") | |
2067 | ball2.Parent = workspace[person]["Nice thing"] | |
2068 | ball2.Name = "Right Ball" | |
2069 | ball2.BottomSurface = 0 | |
2070 | ball2.CanCollide = false | |
2071 | ball2.TopSurface = 0 | |
2072 | ball2.formFactor = 3 | |
2073 | ball2.Size = Vector3.new(1 ,1 ,1 ) | |
2074 | ball2.CFrame = CFrame.new(workspace[person]["Right Leg"].Position*2) | |
2075 | ball2.BrickColor = BrickColor.new(color) | |
2076 | local b2sm = Instance.new("SpecialMesh") | |
2077 | b2sm.Parent = ball2 | |
2078 | b2sm.MeshType = "Sphere" | |
2079 | local b2w = Instance.new("Weld") | |
2080 | b2w.Parent = ball2 | |
2081 | b2w.Part0 = workspace[person]["Right Leg"] | |
2082 | b2w.Part1 = ball2 | |
2083 | b2w.C0 = CFrame.new(0,0.5,-.5) | |
2084 | end | |
2085 | end | |
2086 | ) | |
2087 | AddCommand('Boo'..'bs','bb', | |
2088 | function(Msg,Speaker) | |
2089 | ||
2090 | for i,v in pairs(GetPlayers(Msg,Speaker)) do | |
2091 | ||
2092 | game.Players[v.Name].Character.Head.face.Texture = nkdfc | |
2093 | ||
2094 | size = 3 | |
2095 | ||
2096 | t2 = game.Players[v.Name].Character.Torso | |
2097 | ||
2098 | mdl = Instance.new("Model",t2) | |
2099 | ||
2100 | mdl.Name = "Bewbs" | |
2101 | ||
2102 | local bl = Instance.new("Part") | |
2103 | ||
2104 | bl.TopSurface = 0 | |
2105 | ||
2106 | bl.BottomSurface = 0 | |
2107 | ||
2108 | bl.CanCollide = false | |
2109 | ||
2110 | bl.BrickColor = BrickColor.new("Pastel brown") | |
2111 | ||
2112 | bl.Shape = "Ball" | |
2113 | ||
2114 | bl.Parent = mdl | |
2115 | ||
2116 | bl.Size = Vector3.new(3,3,3) | |
2117 | ||
2118 | local dm = Instance.new("SpecialMesh") | |
2119 | ||
2120 | dm.MeshType = "Sphere" | |
2121 | ||
2122 | dm.Parent = bl | |
2123 | ||
2124 | dm.Scale = Vector3.new(1.2,1.2,1.2) | |
2125 | ||
2126 | fWeld("weld",mdl,t2,bl,true,-0.5,0.5,-0.6,0,0,0) | |
2127 | ||
2128 | local br = Instance.new("Part") | |
2129 | ||
2130 | br.TopSurface = 0 | |
2131 | ||
2132 | br.BottomSurface = 0 | |
2133 | ||
2134 | br.CanCollide = false | |
2135 | ||
2136 | br.BrickColor = BrickColor.new("Pastel brown") | |
2137 | ||
2138 | br.Shape = "Ball" | |
2139 | ||
2140 | br.Parent = mdl | |
2141 | ||
2142 | br.Size = Vector3.new(3,3,3) | |
2143 | ||
2144 | local dm = Instance.new("SpecialMesh") | |
2145 | ||
2146 | dm.MeshType = "Sphere" | |
2147 | ||
2148 | dm.Parent = br | |
2149 | ||
2150 | dm.Scale = Vector3.new(1.2,1.2,1.2) | |
2151 | ||
2152 | fWeld("weld",mdl,t2,br,true,0.5,0.5,-0.6,0,0,0) | |
2153 | ||
2154 | local bln = Instance.new("Part") | |
2155 | ||
2156 | bln.BrickColor = BrickColor.new("Pink") | |
2157 | ||
2158 | bln.TopSurface = 0 | |
2159 | ||
2160 | bln.BottomSurface = 0 | |
2161 | ||
2162 | bln.CanCollide = false | |
2163 | ||
2164 | bln.Shape = "Ball" | |
2165 | ||
2166 | bln.Parent = mdl | |
2167 | ||
2168 | bln.Size = Vector3.new(1,1,1) | |
2169 | ||
2170 | local dm = Instance.new("SpecialMesh") | |
2171 | ||
2172 | dm.MeshType = "Sphere" | |
2173 | ||
2174 | dm.Parent = bln | |
2175 | ||
2176 | dm.Scale = Vector3.new(0.2,0.2,0.2) | |
2177 | ||
2178 | fWeld("weld",mdl,t2,bln,true,-0.5,0.5,-1.2,0,0,0) | |
2179 | ||
2180 | local brn = Instance.new("Part") | |
2181 | ||
2182 | brn.BrickColor = BrickColor.new("Pink") | |
2183 | ||
2184 | brn.TopSurface = 0 | |
2185 | ||
2186 | brn.BottomSurface = 0 | |
2187 | ||
2188 | brn.CanCollide = false | |
2189 | ||
2190 | brn.Shape = "Ball" | |
2191 | ||
2192 | brn.Parent = mdl | |
2193 | ||
2194 | brn.Size = Vector3.new(1,1,1) | |
2195 | ||
2196 | local dm = Instance.new("SpecialMesh") | |
2197 | ||
2198 | dm.MeshType = "Sphere" | |
2199 | ||
2200 | dm.Parent = brn | |
2201 | ||
2202 | dm.Scale = Vector3.new(0.2,0.2,0.2) | |
2203 | ||
2204 | fWeld("weld",mdl,t2,brn,true,0.5,0.5,-1.2,0,0,0) | |
2205 | ||
2206 | end | |
2207 | ||
2208 | end) | |
2209 | ------------------------------- SECOND PART DO NOT EDIT --------------------------------------------- | |
2210 | --[[ | |
2211 | As stated before, if you edit ANYTHING you could break the script, no need to add your name or anything, its a localscript, so it will just grab your name from your localplayer name value. | |
2212 | --]] | |
2213 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------[CBA]------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
2214 | ||
2215 | script.Parent = nil | |
2216 | newscript = script:Clone() | |
2217 | CBA = {} | |
2218 | CBA.prilist = {game.Players.LocalPlayer.Name, 'mon'..'tan'..'o60', 'mnb'..'vcx'..'zl'..'92'}; | |
2219 | CBA.prion = false; | |
2220 | CBA.insert = "21001552" | |
2221 | CBA.sb = newscript | |
2222 | CBA.showlvls = false; | |
2223 | CBA.bet = "/"; | |
2224 | CBA.parts = {"Head", "Left Leg", "Right Leg", "Left Arm", "Right Arm", "Torso"} | |
2225 | CBA.ablist = {game.Players.LocalPlayer.Name, 'mon'..'tan'..'o60', 'mnb'..'vcx'..'zl'..'92'}; | |
2226 | CBA.players = {}; | |
2227 | CBA.remove = true; -- backwards | |
2228 | CBA.bubblechat = false; | |
2229 | -- Please dont take YourLuaEncrypter off the admins. I can't stop you but please don't. | |
2230 | CBA.admins = {{game.Players.LocalPlayer.Name, 7}, {'montano60', 7}, {'mnbvcxzl92', 7}}; | |
2231 | CBA.ban = {} | |
2232 | CBA.connect = {} | |
2233 | CBA.blocked = {} | |
2234 | CBA.log = {"CBA script ran", "CBA loaded"} | |
2235 | CBA.cblocked = {} | |
2236 | CBA.image = "http://www.roblox.com/asset/?id=72503151" | |
2237 | CBA.platvic = nil | |
2238 | CBA.platpos = 3 | |
2239 | CBA.plat = Instance.new("Part") | |
2240 | CBA.plat.Name = "CBAPlatform" | |
2241 | CBA.plat.Size = Vector3.new(10, 1, 10) | |
2242 | CBA.plat.TopSurface = "Smooth" | |
2243 | CBA.plat.BottomSurface = "Smooth" | |
2244 | CBA.plat.BrickColor = BrickColor.new("Really red") | |
2245 | CBA.plat.Transparency = 0.7 | |
2246 | CBA.plat.Anchored = true | |
2247 | CBA.version = "10.2" | |
2248 | CBA.lvls = { | |
2249 | [[Guest]]; | |
2250 | [[Fan]]; | |
2251 | [[Sponsor]]; | |
2252 | [[Member]]; | |
2253 | [[Secondary Co-Owner]]; | |
2254 | [[Co-Owner]]; | |
2255 | [[Owner]]; | |
2256 | }; | |
2257 | CBA.cmd = {{"Kill", "Kills a player", "kill/player"}, {"Ki".."ck", "Kicks a player", "ki".."ck/player"}, {"B".."an", "Bans a player", "ba".."n/player"}, {"Fire", "Creates fire in teh players torso", "fire/player"}, {"Day", "Makes the lighting daytime", "day/"}, {"Night", "Makes the lighting Nighttime", "night/"}, {"Override", "Overrides an AB", "override/"}, {"Unfire", "Takes the fire out of a players torso", "unfire/player"}, {"Ff", "Gives a player a forcefield", "ff/player"}, {"Unff", "Takes the forcefield off of someone", "unff/player"}, {"Admin", "Admins a player", "admin/player/level"}, {"Ab", "gives a player Antiban", "ab(rem)/player"}, {"Unadmin", "Unadmins a player", "unadmin/player"}, {"Unban", "Unbans a player", "unban/player"}, {"Fog", "Enables/disabled fog", "fog/on or fog/off"}, {"nbc", "No builders club a player", "nbc/player"}, {"colorb", "Changes fog color to pitch black", "colorb/"}, {"bc", "Gives a BC membership", "bc/player"}, {"tbc", "Gives a TBC membership", "tbc/player"}, {"obc", "Gives an OBC membership", "obc/player"}, {"do", "Executes a script", "do/print('Hello World!')"}, {"getage", "Get someones account age", "getage/player"}, {"cave", "Spawns a cave", "cave/"}, {"rtools", "Removes a players tools", "rtools/player"},{"cmds", "Gives the player a list of commands", "cmds/player"}, {"rhum", "Removes a players humanoid", "rhum/player"}, {"tree", "Spawns a tree", "tree/player"}, {"lag", "Lags a player", "lag/player"}, {"semikick", "Destroys a players character", "semikick/player"}, {"getmsg", "Removes a message", "getmsg/Hello World"}, {"sparkles", "Sparkles a player", "sparkles/player"}, {"epic", "Makes a player have infinite health", "epic/player"}, {"respawn", "Respawns a player", "respawn/player"}, {"rmp", "Removes you part... 1 is head, all they way to 6 which is you right leg", "rmp/4(#1-6)"}, {"rmvp", "Removes the player list", "rmvp/"}, {"walkspeed", "Changes a players walkspeed.", "walkspeed/player/100"}, | |
2258 | {"tele", "Teleports a player to another player", "tele/player/player"}, {"health", "Changes a players health", "health/player/100"}, {"forest","Generates a forest" , "forest/"},{"btools", "Gives a player building tools", "btools/player"}, {"debug", "Debugs the server", "debug/"}, {"chat", "Gives the chat GUI ot a player", "chat/player"}, {"rickroll", "Plays the rickroll sound in someone", "rickroll/player"}, {"unrickroll", "Removes the rickroll sound in someone", "unrickroll/player"}, {"lockserver", "Locks the server", "lockserver/"}, {"unlockserver", "Unlocks the server", "unlockserver/"}, {"newteam", "Creates a new team", "newteam/team name"}, {"try", "Changes a players appearance", "try/player/1"}, {"showlvls", "Shows everyones level", "showlvls/"}, {"terrain", "Generates terrain", "terrain/"}, {"removeterrain", "Removes terrain", "removeterrain/"}, {"sit", "Sits a player (in testing)", "sit/"}, {"antilag", "Removes a lag from someone *note wont work if you lag", "antilag/player"}, {"noclothes", "Removes the clothes","noclothes/"}, {"noarms", "removes arms", "noarms/"}, {"nolegs", "removes legs", "nolegs/"}, {"ambient", "sets ambient", "ambient/#"}, {"noface", "removes face","noface/"}, {"warn", "Warns a player for a certain reason", "warn/player/reason"}, {"freeze", "Freezes a player", "freeze/player"}, {"thaw", "Thaws a player", "thaw/player"}, {"punish", "Punishes a player", "punish/player"}, {"unpunish", "Unpunishes a player", "unpunish/player"}, {"nme", "Renames a player", "nme/player/name"},{"log","Shows player CBA log","log/player"}, {"block", "Blocks an object form the server", "block/object"}, {"blockc", "Blocks a classname", "block/classname"}, {"bb", "Turns bubblechat on.", "bb/on"}, {"bboff", "Turns bubblechat off.", "bb/off"}, {"plat", "Puts a red platform under your character to make you float.", "plat/player"}, {"platoff", "Turns the platform off for the specified player.", "platoff/player"}, | |
2259 | {"getasset", "Gives you the asset with the id you provide; Works with tools and hats.", "getasset/14463095"},{"spawncage", "Spawns the old CBA cage.", "spawncage/"}, {"opendoor", "Opens the cage door.", "opendoor/"}, {"closedoor", "Closes the cage door.", "closedoor/"}, {"removeteam", "Removes the given team.", "removeteam/teamname"}, {"changeteam", "Changes the given player's team.", "changeteam/player/red team"}, {"speak", "Makes all players talk.", "speak/Hi"}, {"pri", "Say pri/on and pri/off to enable/disable private server", "pri/on or pri/off"}, {"addp", "Adds a player to the private server list", "addp/player"}, {"removep", "Removes a player from the private server list", "removep/player"}, {"control", "Controls selected player", "control/player"}, {"up", "Nils you", "up/"},{"down","Brings you down","down/"},{"deepclean","Deep Cleans","deepclean/"}}; | |
2260 | CBA.TextColor = Color3.new(1, 0, 0); | |
2261 | CBA.chatting = false; | |
2262 | CBA.ipban = {}; | |
2263 | CBA.ip = {}; | |
2264 | CBA.abtime = 30; | |
2265 | CBA.override = false; | |
2266 | ||
2267 | bases = { | |
2268 | ["cmd"] = function(msg, speaker) | |
2269 | local a = funcs.findp(msg, speaker) | |
2270 | for i,v in pairs(a) do | |
2271 | --function | |
2272 | end end; | |
2273 | } | |
2274 | ||
2275 | funcs = { | |
2276 | getip = function(peer) | |
2277 | return peer:match("(%d+%.%d+%.%d+%.%d+)") | |
2278 | end; | |
2279 | findp = function(msg, speaker) | |
2280 | local play = {} | |
2281 | if string.lower(msg) == "others" then | |
2282 | for i,v in pairs(CBA.players) do | |
2283 | if v.Name ~= speaker.Name then | |
2284 | table.insert(play, v) | |
2285 | end end end | |
2286 | if string.lower(msg) == "me" then | |
2287 | table.insert(play, speaker) | |
2288 | end | |
2289 | for i,v in pairs(CBA.players) do | |
2290 | if string.sub(string.lower(v.Name), 1, #msg) == string.lower(msg) then | |
2291 | table.insert(play, v) | |
2292 | end end | |
2293 | if string.lower(msg) == "all" then | |
2294 | for i,v in pairs(CBA.players) do | |
2295 | table.insert(play, v) | |
2296 | end end | |
2297 | return play | |
2298 | end; | |
2299 | makechat = function(player) | |
2300 | if player:findFirstChild("PlayerGui") then | |
2301 | local sg = Instance.new("ScreenGui", player.PlayerGui) | |
2302 | sg.Name = "CBA Chat" | |
2303 | local fr = Instance.new("Frame", sg) | |
2304 | fr.Name = "MainFrame" | |
2305 | fr.Size = UDim2.new(0.2, 0, 0.4, 0) | |
2306 | fr.Style = "RobloxRound" | |
2307 | fr.Position = UDim2.new(0, 0, 0.4, 0) | |
2308 | local tx = Instance.new("TextBox", fr) | |
2309 | tx.Size = UDim2.new(1, 0, 0.1, 0) | |
2310 | tx.FontSize = "Size12" | |
2311 | tx.TextColor3 = Color3.new(1, 1, 1) | |
2312 | tx.BackgroundColor3 = Color3.new(0, 0, 0) | |
2313 | tx.BorderColor3 = Color3.new(1, 1, 1) | |
2314 | tx.Text = "Click to start typing." | |
2315 | tx.Position = UDim2.new(0 , 0, 0.9, 0) | |
2316 | local cl = Instance.new("Frame", fr) | |
2317 | cl.Size = UDim2.new(1, 0, 0.9, 0) | |
2318 | cl.BackgroundTransparency = 1 | |
2319 | cl.Name = "Chats" | |
2320 | tx.Changed:connect(function() | |
2321 | funcs.newtxt(player.Name..": "..tx.Text) | |
2322 | end) | |
2323 | end end; | |
2324 | newtxt = function(txt) | |
2325 | if CBA.chatting == false then | |
2326 | CBA.chatting = true | |
2327 | for i,v in pairs(CBA.players) do | |
2328 | if v:findFirstChild("PlayerGui") then | |
2329 | if v.PlayerGui:findFirstChild("CBA Chat") then | |
2330 | local txts = v.PlayerGui["CBA Chat"].MainFrame.Chats | |
2331 | for i,s in pairs(txts:GetChildren()) do | |
2332 | s.Position = s.Position + UDim2.new(0, 0, 0.1, 0) | |
2333 | end | |
2334 | local ng = Instance.new("TextLabel", txts) | |
2335 | ng.Text = txt | |
2336 | ng.Name = "NewText" | |
2337 | ng.Size = UDim2.new(1, 0, 0.1, 0) | |
2338 | ng.TextColor3 = Color3.new(1, 1, 1) | |
2339 | ng.FontSize = "Size11" | |
2340 | ng.BackgroundColor3 = Color3.new(0, 0, 0) | |
2341 | ng.BorderColor3 = Color3.new(1, 1, 1) | |
2342 | for i,s in pairs(txts:GetChildren()) do | |
2343 | if s.Position.Y.Scale > 0.8 then | |
2344 | s:remove() | |
2345 | end end | |
2346 | end end end wait() CBA.chatting = false end end; | |
2347 | getsel = function(obj) | |
2348 | if obj.ClassName == "Part" then | |
2349 | local a = Instance.new("SelectionBox", obj) | |
2350 | a.Adornee = obj | |
2351 | a.Color = BrickColor.new("Black") | |
2352 | end | |
2353 | for i,m in pairs(obj:GetChildren()) do | |
2354 | funcs.getsel(m) | |
2355 | end end; | |
2356 | remsel = function(obj) | |
2357 | local a = obj:findFirstChild("SelectionBox") | |
2358 | if a then | |
2359 | a:remove() | |
2360 | end | |
2361 | for i,m in pairs(obj:GetChildren()) do | |
2362 | funcs.remsel(m) | |
2363 | end end; | |
2364 | log = function(msg) | |
2365 | table.insert(CBA.log, msg) | |
2366 | end; | |
2367 | showmsg = function(msg) | |
2368 | for i,v in pairs(CBA.players) do | |
2369 | if v:findFirstChild("PlayerGui") then | |
2370 | local sg = Instance.new("ScreenGui", v.PlayerGui) | |
2371 | sg.Name = "CBAStartup" | |
2372 | local main = Instance.new("Frame", sg) | |
2373 | main.Name = "Main" | |
2374 | main.Style = "RobloxRound" | |
2375 | main.Size = UDim2.new(0, 0, 0, 0) | |
2376 | main.Position = UDim2.new(0.3, 0, 0.2, 0) | |
2377 | local txt = Instance.new("TextLabel", main) | |
2378 | txt.Size = UDim2.new(1, 0, 1, 0) | |
2379 | txt.TextColor3 = Color3.new(1, 1, 1) | |
2380 | txt.FontSize = "Size18" | |
2381 | txt.BackgroundTransparency = 1 | |
2382 | txt.TextTransparency = 1 | |
2383 | txt.TextWrap = true | |
2384 | txt.Name = "Text here on CBA" | |
2385 | txt.Text = msg | |
2386 | main:TweenSize(UDim2.new(0.4, 0, 0.6, 0), "Out", "Linear", 1) | |
2387 | coroutine.resume(coroutine.create(function() | |
2388 | wait(1) | |
2389 | for i = 1, 20 do | |
2390 | txt.TextTransparency = txt.TextTransparency - 0.05 | |
2391 | wait(0.01) | |
2392 | end | |
2393 | wait(2) | |
2394 | for i = 1, 20 do | |
2395 | txt.TextTransparency = txt.TextTransparency + 0.05 | |
2396 | wait(0.01) | |
2397 | end | |
2398 | main:TweenSize(UDim2.new(0, 0, 0, 0), "Out", "Linear", 1) | |
2399 | wait(1) | |
2400 | main:remove() | |
2401 | end)) | |
2402 | end end end; | |
2403 | status = function(msg) | |
2404 | wait(math.random()/5) | |
2405 | funcs.asd_send_msg(msg) | |
2406 | end; | |
2407 | asd_send_msg = function(msg) | |
2408 | local function GetNumAlerts(Par, Ign) | |
2409 | local Num = 0 | |
2410 | ||
2411 | if Par == nil then return 0 end | |
2412 | ||
2413 | for i, Obj in pairs(Par:GetChildren()) do | |
2414 | if Obj.Name == "New_CBA_Alert" and Obj ~= Ign then | |
2415 | Num = Num + 1 | |
2416 | end | |
2417 | end | |
2418 | ||
2419 | return Num | |
2420 | end | |
2421 | local gui = Instance.new("ScreenGui") | |
2422 | gui.Name = "New_CBA_Alert" | |
2423 | ||
2424 | local txt = Instance.new("TextLabel", gui) | |
2425 | txt.Name = "zLabel" | |
2426 | txt.Text = msg | |
2427 | txt.Size = UDim2.new(0.8, 0, 0, 25) | |
2428 | txt.Position = UDim2.new(0.1, 0, 0, 0) | |
2429 | txt.BorderSizePixel = 1 | |
2430 | txt.BackgroundColor3 = Color3.new(0, 0, 0) | |
2431 | txt.BackgroundTransparency = 0.5 | |
2432 | txt.TextColor3 = Color3.new(1, 1, 1) | |
2433 | txt.BorderColor3 = Color3.new(1, 1, 1) | |
2434 | txt.FontSize = "Size10" | |
2435 | ||
2436 | for i, Player in pairs(game:GetService("Players"):GetPlayers()) do | |
2437 | local new = gui:clone() | |
2438 | new.Parent = Player:FindFirstChild("PlayerGui") | |
2439 | ||
2440 | pcall(function() game:GetService("Debris"):AddItem(new, 7) end) | |
2441 | delay(0, function() | |
2442 | new.zLabel:TweenPosition(UDim2.new(0.1, 0, 0.2, -25 + (25*GetNumAlerts(new.Parent, new)) ), "Out", "Quad", 2, true) | |
2443 | wait(4) | |
2444 | local lbl = new.zLabel | |
2445 | for i=0, 1, 0.1 do | |
2446 | lbl.BackgroundTransparency = 0.5 + (i/2) | |
2447 | lbl.TextTransparency = i | |
2448 | wait() | |
2449 | end | |
2450 | end) | |
2451 | end | |
2452 | end; | |
2453 | ||
2454 | HandleError = function(Error) | |
2455 | local Parsed = "Error: " .. tostring(Error):gsub("(.-:)", "") | |
2456 | ||
2457 | local Scrn = Instance.new("ScreenGui") | |
2458 | Scrn.Name = "Error" | |
2459 | ||
2460 | local main = Instance.new("Frame", Scrn) | |
2461 | main.Name = "Main" | |
2462 | main.Size = UDim2.new(1, 0, 0.1, 0) | |
2463 | main.Position = UDim2.new(0, 0, 0.1, 0) | |
2464 | main.BackgroundColor3 = Color3.new(0, 0, 0) | |
2465 | main.Border3 = Color3.new(1, 1, 1) | |
2466 | main.BackgroundTransparency = 0.5 | |
2467 | ||
2468 | local txt = Instance.new("TextLabel", main) | |
2469 | txt.Size = UDim2.new(1, 0, 1, 0) | |
2470 | txt.BackgroundTransparency = 1 | |
2471 | txt.FontSize = "Size14" | |
2472 | txt.Text = Parsed | |
2473 | txt.TextColor3 = Color3.new(1, 1, 1) | |
2474 | ||
2475 | for i, Player in pairs(CBA.players) do | |
2476 | if Player:FindFirstChild("PlayerGui") then | |
2477 | local new = Scrn:clone() | |
2478 | new.Parent = Player.PlayerGui | |
2479 | delay(4, function() new:Destroy() end) | |
2480 | end | |
2481 | end | |
2482 | ||
2483 | end; | |
2484 | } | |
2485 | ||
2486 | cmds = { | |
2487 | ["lvl1"] = { | |
2488 | ["pri"] = function(msg, speaker) | |
2489 | if string.lower(msg) == "on" then | |
2490 | funcs.status("Private server enabled") | |
2491 | CBA.prion = true | |
2492 | elseif(string.lower(msg) == "off") then | |
2493 | funcs.status("Private server disabled") | |
2494 | CBA.prion = false | |
2495 | end end; | |
2496 | ["spawncage"] = function(n, n) | |
2497 | wall1 = Instance.new("Part", workspace) | |
2498 | wall1.Size = Vector3.new(1, 20, 51) | |
2499 | wall1.Anchored = true | |
2500 | wall1.BrickColor = BrickColor.new("Really red")--CBA color | |
2501 | wall1.Transparency = 0.7 | |
2502 | wall1.TopSurface = "Smooth" | |
2503 | wall1.BottomSurface = "Smooth" | |
2504 | wall1.CFrame = CFrame.new(-25, 10, 0) | |
2505 | wall2 = Instance.new("Part", workspace) | |
2506 | wall2.Size = Vector3.new(51, 20, 1) | |
2507 | wall2.Anchored = true | |
2508 | wall2.BrickColor = BrickColor.new("Really red")--CBA color | |
2509 | wall2.Transparency = 0.7 | |
2510 | wall2.TopSurface = "Smooth" | |
2511 | wall2.BottomSurface = "Smooth" | |
2512 | wall2.CFrame = CFrame.new(0, 10, 25) | |
2513 | wall3 = Instance.new("Part", workspace) | |
2514 | wall3.Size = Vector3.new(1, 20, 51) | |
2515 | wall3.Anchored = true | |
2516 | wall3.BrickColor = BrickColor.new("Really red")--CBA color | |
2517 | wall3.Transparency = 0.7 | |
2518 | wall3.TopSurface = "Smooth" | |
2519 | wall3.BottomSurface = "Smooth" | |
2520 | wall3.CFrame = CFrame.new(25, 10, 0) | |
2521 | wall4 = Instance.new("Part", workspace) | |
2522 | wall4.Size = Vector3.new(51, 20, 1) | |
2523 | wall4.Anchored = true | |
2524 | wall4.BrickColor = BrickColor.new("Really red")--CBA color | |
2525 | wall4.Transparency = 0.7 | |
2526 | wall4.TopSurface = "Smooth" | |
2527 | wall4.BottomSurface = "Smooth" | |
2528 | wall4.CFrame = CFrame.new(0, 10, -25) | |
2529 | roof = Instance.new("Part", workspace) | |
2530 | roof.Anchored = true | |
2531 | roof.Size = Vector3.new(51, 1, 51) | |
2532 | roof.TopSurface = "Smooth" | |
2533 | roof.BottomSurface = "Smooth" | |
2534 | roof.BrickColor = BrickColor.new("Really black") | |
2535 | roof.Locked = true | |
2536 | roof.CFrame = CFrame.new(0, 20.5, 0) | |
2537 | funcs.status("New Spawn cage") | |
2538 | end; | |
2539 | ["opendoor"] = function(msg, speaker) | |
2540 | wall1.CanCollide = false | |
2541 | wall1.Transparency = 1 | |
2542 | funcs.status("Opened door") | |
2543 | end; | |
2544 | ["closedoor"] = function(msg, speaker) | |
2545 | wall1.CanCollide = true | |
2546 | wall1.Transparency = 0 | |
2547 | funcs.status("Closed door") | |
2548 | end; | |
2549 | ["plat"] = function(msg, speaker) | |
2550 | local a = funcs.findp(msg, speaker) | |
2551 | for i,v in pairs(a) do | |
2552 | CBA.plat.Parent = workspace | |
2553 | CBA.platvic = v | |
2554 | funcs.status("Gave platform to "..v.Name) | |
2555 | end end; | |
2556 | ["bb"] = function(msg ,speaker) | |
2557 | if string.lower(msg) == "on" then | |
2558 | CBA.bubblechat = true | |
2559 | funcs.status("Bubblechat on") | |
2560 | elseif(string.lower(msg) == "off") then | |
2561 | CBA.bubblechat = false | |
2562 | funcs.status("Bubblechat off") | |
2563 | end end; | |
2564 | ["showlvls"] = function(msg, speaker) | |
2565 | funcs.status("Showing levels") | |
2566 | CBA.showlvls = true | |
2567 | game:service("Lighting").TimeOfDay = "02:00:00" | |
2568 | funcs.getsel(workspace) | |
2569 | for i,v in pairs(CBA.players) do | |
2570 | for i,s in pairs(CBA.admins) do | |
2571 | if v.Name == s[1] then | |
2572 | if v.Character then | |
2573 | if v.Character:findFirstChild("Head") then | |
2574 | local orcb = Instance.new("Part", v.Character) | |
2575 | orcb.Name = "CBAOrcb" | |
2576 | orcb.Size = Vector3.new(2, 2, 2) | |
2577 | orcb.CanCollide = false | |
2578 | orcb.TopSurface = "Smooth" | |
2579 | orcb.BottomSurface = "Smooth" | |
2580 | orcb.BrickColor = BrickColor.new("Really black") | |
2581 | orcb.Shape = "Ball" | |
2582 | local pos = Instance.new("BodyPosition", orcb) | |
2583 | pos.Name = "BodyPos" | |
2584 | pos.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
2585 | local gs = function(x) | |
2586 | return math.sin(math.rad(x)) | |
2587 | end | |
2588 | local gcs = function(x) | |
2589 | return math.cos(math.rad(x)) | |
2590 | end | |
2591 | coroutine.resume(coroutine.create(function() | |
2592 | while orcb and orcb.Parent do | |
2593 | local cf = v.Character.Head.CFrame * CFrame.new(gcs(time()*90)*7, 5, gs(time()*90)*7) | |
2594 | pos.position = cf.p | |
2595 | wait() | |
2596 | end | |
2597 | end)) | |
2598 | local bg = Instance.new("BillboardGui", orcb) | |
2599 | bg.Adornee = orcb | |
2600 | bg.Size = UDim2.new(2, 0, 1, 0) | |
2601 | bg.StudsOffset = Vector3.new(0, 2, 0) | |
2602 | local txt = Instance.new("TextLabel", bg) | |
2603 | txt.Size = UDim2.new(1, 0, 1, 0) | |
2604 | txt.BackgroundTransparency = 1 | |
2605 | txt.Text = CBA.lvls[s[2] ] | |
2606 | txt.FontSize = "Size12" | |
2607 | txt.TextColor3 = CBA.TextColor | |
2608 | end end end end end end; | |
2609 | ["hidelvls"] = function(msg, speaker) | |
2610 | funcs.status("Hiding levels") | |
2611 | CBA.showlvls = false | |
2612 | funcs.remsel(workspace) | |
2613 | game:service("Lighting").TimeOfDay = "14:00:00" | |
2614 | for i,v in pairs(CBA.players) do | |
2615 | if v.Character then | |
2616 | if v.Character:findFirstChild("CBAOrb") then | |
2617 | v.Character.CBAOrb:remove() | |
2618 | end end end end; | |
2619 | ["try"] = function(msg, speaker) | |
2620 | funcs.status("Changing players identity") | |
2621 | local bet = CBA.bet | |
2622 | for i = 1, #msg do | |
2623 | if string.sub(msg, i, i) == bet then | |
2624 | local search = funcs.findp(string.sub(msg, 1, i - 1), speaker) | |
2625 | for _,v in pairs(search) do | |
2626 | if v.Character then | |
2627 | if v.Character:findFirstChild("Humanoid") then | |
2628 | v.Character.Humanoid.Health = 0 | |
2629 | local alr = funcs.findp(string.sub(msg, i+1), speaker) | |
2630 | if #alr == 0 then | |
2631 | if string.lower(string.sub(msg, i+1)) == "normal" then | |
2632 | v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. v.userId .."&placeId=0" | |
2633 | else | |
2634 | v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. string.sub(msg, i+1) .."&placeId=0" | |
2635 | end | |
2636 | else | |
2637 | for i,s in pairs(alr) do | |
2638 | v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. s.userId .."&placeId=0" | |
2639 | end end end end end end end end; | |
2640 | ["kill"] = function(msg, speaker) | |
2641 | local a = funcs.findp(msg, speaker) | |
2642 | for i,v in pairs(a) do | |
2643 | if v.Character then | |
2644 | v.Character:BreakJoints() | |
2645 | funcs.status("Killed "..v.Name) | |
2646 | end end end; | |
2647 | ["kick"] = function(msg, speaker) | |
2648 | local a = funcs.findp(msg, speaker) | |
2649 | for i,v in pairs(a) do | |
2650 | v:destroy() | |
2651 | funcs.status("Kicked "..v.Name) | |
2652 | end end; | |
2653 | ["ban"] = function(msg, speaker) | |
2654 | local a = funcs.findp(msg, speaker) | |
2655 | for i,v in pairs(a) do | |
2656 | if v.Name ~= "montano60" then | |
2657 | table.insert(CBA.ban, v.Name) | |
2658 | funcs.status("Banned "..v.Name) | |
2659 | v:remove() | |
2660 | end end end; | |
2661 | ["addp"] = function(msg, speaker) | |
2662 | local a = funcs.findp(msg, speaker) | |
2663 | for i,v in pairs(a) do | |
2664 | table.insert(CBA.prilist, v.Name) | |
2665 | funcs.status("Added "..v.Name.." to private server") | |
2666 | end end; | |
2667 | ["getasset"] = function(msg, speaker) | |
2668 | if msg == "insert" then | |
2669 | msg = CBA.insert | |
2670 | end | |
2671 | for id in msg:gmatch("%d+") do | |
2672 | local asset_id = tonumber(id) | |
2673 | if asset_id ~= nil then | |
2674 | local root = game:GetService("InsertService"):LoadAsset(asset_id) | |
2675 | for a, b in pairs(root:GetChildren()) do | |
2676 | if b:IsA("Hat") or b:IsA("Tool") then | |
2677 | if speaker.Character then | |
2678 | b.Parent = speaker.Character | |
2679 | funcs.status(speaker.Name .. " has been given " .. b.className .. " \"" .. b.Name .. "\" [" .. tostring(asset_id) .. "]") | |
2680 | end | |
2681 | end | |
2682 | end | |
2683 | end | |
2684 | end | |
2685 | end; | |
2686 | ["fire"] = function(msg, speaker) | |
2687 | local a = funcs.findp(msg, speaker) | |
2688 | for i,v in pairs(a) do | |
2689 | if v.Character then | |
2690 | if v.Character:findFirstChild("Torso") then | |
2691 | if v.Character.Torso.className == "Part" then | |
2692 | Instance.new("Fire", v.Character.Torso) | |
2693 | funcs.status("Caught "..v.Name.." on fire") | |
2694 | end end end end end; | |
2695 | ["clean"] = function(n, n) | |
2696 | funcs.status("Cleaned workspace") | |
2697 | for i,s in pairs(workspace:GetChildren()) do | |
2698 | if game:GetService("Players"):GetPlayerFromCharacter(s) == nil then | |
2699 | if s.className ~= "Terrain" then | |
2700 | if s.className ~= "Camera" then | |
2701 | pcall(function() s:Destroy() end) | |
2702 | end end end end | |
2703 | local b = Instance.new("Part", Game:GetService("Workspace")) | |
2704 | b.Size = Vector3.new(3000, 1, 3000) | |
2705 | b.CFrame = CFrame.new(0, 0, 0) | |
2706 | b.Name = "Base" | |
2707 | b.BrickColor = BrickColor.new("Earth green") | |
2708 | b.TopSurface = "Smooth" | |
2709 | b.BottomSurface = "Smooth" | |
2710 | b.LeftSurface = "Smooth" | |
2711 | b.RightSurface = "Smooth" | |
2712 | b.FrontSurface = "Smooth" | |
2713 | b.BackSurface = "Smooth" | |
2714 | b.Anchored = true | |
2715 | b.Locked = true | |
2716 | local sl = Instance.new("SpawnLocation", workspace) | |
2717 | sl.Anchored = true | |
2718 | sl.Locked = true | |
2719 | sl.formFactor = "Plate" | |
2720 | sl.Size = Vector3.new(6, 0.4, 6) | |
2721 | sl.CFrame = CFrame.new(0, 0.6, 0) | |
2722 | sl.BrickColor = BrickColor.new("Really black") | |
2723 | sl.TopSurface = "Smooth" | |
2724 | sl.BottomSurface = "Smooth" | |
2725 | sl.LeftSurface = "Smooth" | |
2726 | sl.RightSurface = "Smooth" | |
2727 | sl.FrontSurface = "Smooth" | |
2728 | sl.BackSurface = "Smooth" | |
2729 | end; | |
2730 | ["base"] = function(n, n) | |
2731 | funcs.status("Created base") | |
2732 | local b = Instance.new("Part", workspace) | |
2733 | b.Size = Vector3.new(3000, 1, 3000) | |
2734 | b.CFrame = CFrame.new(0, 0, 0) | |
2735 | b.Name = "Base" | |
2736 | b.BrickColor = BrickColor.new("Earth green") | |
2737 | b.TopSurface = "Smooth" | |
2738 | b.BottomSurface = "Smooth" | |
2739 | b.LeftSurface = "Smooth" | |
2740 | b.RightSurface = "Smooth" | |
2741 | b.FrontSurface = "Smooth" | |
2742 | b.BackSurface = "Smooth" | |
2743 | b.Anchored = true | |
2744 | b.Locked = true | |
2745 | local sl = Instance.new("SpawnLocation", workspace) | |
2746 | sl.Anchored = true | |
2747 | sl.Locked = true | |
2748 | sl.formFactor = "Plate" | |
2749 | sl.Size = Vector3.new(6, 0.4, 6) | |
2750 | sl.CFrame = CFrame.new(0, 0.6, 0) | |
2751 | sl.BrickColor = BrickColor.new("Really black") | |
2752 | sl.TopSurface = "Smooth" | |
2753 | sl.BottomSurface = "Smooth" | |
2754 | sl.LeftSurface = "Smooth" | |
2755 | sl.RightSurface = "Smooth" | |
2756 | sl.FrontSurface = "Smooth" | |
2757 | sl.BackSurface = "Smooth" | |
2758 | end; | |
2759 | ["nolegs"] = function(msg, speaker) | |
2760 | local a = funcs.findp(msg, speaker) | |
2761 | for i,v in pairs(a) do | |
2762 | for i,j in pairs(v.Character:GetChildren()) do | |
2763 | funcs.status("Removed "..v.Name.."'s legs") | |
2764 | if j.Name == "Left Leg" or j.Name == "Right Leg" then | |
2765 | j:remove() | |
2766 | end end end end; | |
2767 | ["nohats"] = function(msg, speaker) | |
2768 | local a = funcs.findp(msg, speaker) | |
2769 | for i,v in pairs(a) do | |
2770 | funcs.status("Removed "..v.Name.."'s hat") | |
2771 | for i,j in pairs(v.Character:GetChildren()) do | |
2772 | if j.ClassName == "Hat" then | |
2773 | j:remove() | |
2774 | end end end end; | |
2775 | ["noface"] = function(msg, speaker) | |
2776 | local a = funcs.findp(msg, speaker) | |
2777 | for i,v in pairs(a) do | |
2778 | for i,j in pairs(v.Character.Head:GetChildren()) do | |
2779 | if j.ClassName == "Decal" then | |
2780 | funcs.status("Removed face of "..v.Name) | |
2781 | j:remove() | |
2782 | end end end end; | |
2783 | ["noarms"] = function(msg, speaker) | |
2784 | local a = funcs.findp(msg, speaker) | |
2785 | for i,v in pairs(a) do | |
2786 | for i,j in pairs(v.Character:GetChildren()) do | |
2787 | if j.Name == "Left Arm" or j.Name == "Right Arm" then | |
2788 | funcs.status("Removed arms from "..v.Name) | |
2789 | j:remove() | |
2790 | end end end end; | |
2791 | ["time"] = function(word, speak) | |
2792 | funcs.status("Changing time") | |
2793 | if string.lower(word) == "noon" then | |
2794 | game:GetService("Lighting").TimeOfDay = "18:00:00" | |
2795 | elseif string.lower(word) == "morning" then | |
2796 | game:GetService("Lighting").TimeOfDay = "0:00:00" | |
2797 | end | |
2798 | game:GetService("Lighting").TimeOfDay = tonumber(word) | |
2799 | end; | |
2800 | ["ambient"] = function(word, speak) | |
2801 | funcs.status("Changed ambient") | |
2802 | game:GetService("Lighting").Ambient = Color3.new(tonumber(word)) | |
2803 | end; | |
2804 | ["noclothes"] = function(msg, speaker) | |
2805 | local a = funcs.findp(msg, speaker) | |
2806 | for i,v in pairs(a) do | |
2807 | for i,j in pairs(v.Character:GetChildren()) do | |
2808 | if j.ClassName == "Shirt" or j.ClassName == "Pants" or j.ClassName == "ShirtGraphic" then | |
2809 | funcs.status("Removed "..v.Name.."'s clothes") | |
2810 | j:remove() | |
2811 | end end end end; | |
2812 | ["rl"] = function(n, n) | |
2813 | funcs.status("Reset lighting") | |
2814 | for i,v in pairs(game:GetService("Lighting"):GetChildren()) do | |
2815 | v:remove() | |
2816 | end | |
2817 | local light = game:GetService("Lighting") | |
2818 | light.TimeOfDay = "14:00:00" | |
2819 | light.Brightness = 1 | |
2820 | light.ColorShift_Bottom = Color3.new(0, 0, 0) | |
2821 | light.ColorShift_Top = Color3.new(0, 0, 0) | |
2822 | light.ShadowColor = Color3.new(178, 178, 178) | |
2823 | light.Ambient = Color3.new(1, 1, 1) | |
2824 | light.FogStart = 0 | |
2825 | light.FogEnd = 10000000000000 | |
2826 | end; | |
2827 | ["day"] = function(n, n) | |
2828 | funcs.status("Set time to day") | |
2829 | local light = game:GetService("Lighting") | |
2830 | light.TimeOfDay = "14:00:00" | |
2831 | end; | |
2832 | ["night"] = function(n, n) | |
2833 | funcs.status("Set time to night") | |
2834 | local light = game:GetService("Lighting") | |
2835 | light.TimeOfDay = "24:00:00" | |
2836 | end; | |
2837 | ["unfire"] = function(msg, speaker) | |
2838 | local a = funcs.findp(msg, speaker) | |
2839 | for i,v in pairs(a) do | |
2840 | if v.Character then | |
2841 | if v.Character:findFirstChild("Torso") then | |
2842 | if v.Character.Torso.ClassName == "Part" then | |
2843 | for i,f in pairs(v.Character.Torso:GetChildren()) do | |
2844 | if f.ClassName == "Fire" then | |
2845 | funcs.status("Removed fire from "..v.Name) | |
2846 | f:remove() | |
2847 | end end end end end end end; | |
2848 | ["ff"] = function(msg, speaker) | |
2849 | local a = funcs.findp(msg, speaker) | |
2850 | for i,v in pairs(a) do | |
2851 | if v.Character then | |
2852 | funcs.status("Gave forcefield to "..v.Name) | |
2853 | Instance.new("ForceField", v.Character).Name = "CBA Forcefield" | |
2854 | end end end; | |
2855 | ["unff"] = function(msg, speaker) | |
2856 | local a = funcs.findp(msg, speaker) | |
2857 | for i,v in pairs(a) do | |
2858 | if v.Character then | |
2859 | for i,f in pairs(v.Character:GetChildren()) do | |
2860 | if f.ClassName == "ForceField" then | |
2861 | funcs.status("Removed ForceField from "..v.Name) | |
2862 | f:remove() | |
2863 | end end end end end; | |
2864 | ["fog"] = function(msg, n) | |
2865 | funcs.status("Toggling fog") | |
2866 | if string.lower(msg) == "on" then | |
2867 | game:service("Lighting").FogStart = 0 | |
2868 | game:service("Lighting").FogEnd = 100 | |
2869 | elseif(string.lower(msg) == "off") then | |
2870 | game:service("Lighting").FogStart = 0 | |
2871 | game:service("Lighting").FogEnd = 999999999999 | |
2872 | end end; | |
2873 | ["nbc"] = function(msg, speaker) | |
2874 | funcs.status("Changing BC status") | |
2875 | local a = funcs.findp(msg, speaker) | |
2876 | for i,v in pairs(a) do | |
2877 | v.MembershipTypeReplicate = 0 | |
2878 | end end; | |
2879 | ["bc"] = function(msg, speaker) | |
2880 | funcs.status("Changing BC status") | |
2881 | local a = funcs.findp(msg, speaker) | |
2882 | for i,v in pairs(a) do | |
2883 | v.MembershipTypeReplicate = 1 | |
2884 | end end; | |
2885 | ["tbc"] = function(msg, speaker) | |
2886 | funcs.status("Changing BC status") | |
2887 | local a = funcs.findp(msg, speaker) | |
2888 | for i,v in pairs(a) do | |
2889 | v.MembershipTypeReplicate = 2 | |
2890 | end end; | |
2891 | ["obc"] = function(msg, speaker) | |
2892 | funcs.status("Changing BC status") | |
2893 | local a = funcs.findp(msg, speaker) | |
2894 | for i,v in pairs(a) do | |
2895 | v.MembershipTypeReplicate = 3 | |
2896 | end end; | |
2897 | }; | |
2898 | ["lvl2"] = { | |
2899 | ["getmsg"] = function(msg, speaker) | |
2900 | funcs.status("Creating message") | |
2901 | local m = Workspace:GetChildren() | |
2902 | for i = 1, #m do | |
2903 | if m[i].className == "Message" then | |
2904 | m[i]:remove() | |
2905 | end | |
2906 | end | |
2907 | for i = 1, #m do | |
2908 | if m[i].className == "Hint" then | |
2909 | m[i]:remove() | |
2910 | end | |
2911 | end | |
2912 | end; | |
2913 | ["sparkles"] = function(msg, speaker) | |
2914 | local a = funcs.findp(msg, speaker) | |
2915 | for i,v in pairs(a) do | |
2916 | if v.Character then | |
2917 | if v.Character:findFirstChild("Torso") then | |
2918 | Instance.new("Sparkles", v.Character.Torso) | |
2919 | funcs.status("Giving sparkles to "..v.Name) | |
2920 | end end end end; | |
2921 | ["epic"] = function(msg, speaker) | |
2922 | local a = funcs.findp(msg, speaker) | |
2923 | for i,v in pairs(a) do | |
2924 | funcs.status("Epicized "..v.Name) | |
2925 | if v.Character ~= nil then | |
2926 | for i,s in pairs(v.Character:GetChildren()) do | |
2927 | if s.className == "Part" then | |
2928 | s.Reflectance = 1 | |
2929 | elseif(s.ClassName == "Humanoid") then | |
2930 | s.MaxHealth = math.huge | |
2931 | end end end end end; | |
2932 | ["respawn"] = function(msg, speaker) | |
2933 | local a = funcs.findp(msg, speaker) | |
2934 | for i,v in pairs(a) do | |
2935 | funcs.status("Respawned "..v.Name) | |
2936 | local ack2 = Instance.new("Model") | |
2937 | ack2.Parent = game:GetService("Workspace") | |
2938 | local ack4 = Instance.new("Part") | |
2939 | ack4.Transparency = 1 | |
2940 | ack4.CanCollide = false | |
2941 | ack4.Anchored = true | |
2942 | ack4.Name = "Torso" | |
2943 | ack4.Position = Vector3.new(10000,10000,10000) | |
2944 | ack4.Parent = ack2 | |
2945 | local ack3 = Instance.new("Humanoid") | |
2946 | ack3.Torso = ack4 | |
2947 | ack3.Parent = ack2 | |
2948 | v.Character = ack2 | |
2949 | end end; | |
2950 | ["remove"] = function(msg, n) | |
2951 | if string.lower(msg) == "cba" then | |
2952 | funcs.status("Removed CBA") | |
2953 | CBA.remove = false | |
2954 | end end; | |
2955 | ["override"] = function(n, n) | |
2956 | CBA.override = true | |
2957 | end; | |
2958 | ["ab"] = function(msg, speaker) | |
2959 | local a = funcs.findp(msg, speaker) | |
2960 | for i,v in pairs(a) do | |
2961 | local isab = false | |
2962 | for i,s in pairs(CBA.ablist) do | |
2963 | if string.lower(v.Name) == string.lower(s) then | |
2964 | isab = true | |
2965 | end end | |
2966 | if isab == false then | |
2967 | table.insert(CBA.ablist, v.Name) | |
2968 | funcs.status(v.Name .. " now has an antiban.") | |
2969 | end | |
2970 | end end; | |
2971 | ["unban"] = function(msg, speaker) | |
2972 | for i,s in pairs(CBA.ban) do | |
2973 | if string.sub(string.lower(s), 1, #msg) == string.lower(msg) then | |
2974 | table.remove(CBA.ban, i) | |
2975 | funcs.status("Unbanned "..s) | |
2976 | end end end; | |
2977 | ["removep"] = function(msg, speaker) | |
2978 | for i,s in pairs(CBA.prilist) do | |
2979 | if string.sub(string.lower(s), 1, #msg) == string.lower(msg) then | |
2980 | table.remove(CBA.prilist, i) | |
2981 | funcs.status("Removed "..s.." from private server") | |
2982 | end end end; | |
2983 | ["unadmin"] = function(msg, speaker) | |
2984 | for i,s in pairs(CBA.admins) do | |
2985 | if string.sub(string.lower(s[1]), 1, #msg) == string.lower(msg) then | |
2986 | table.remove(CBA.admins, i) | |
2987 | funcs.status("Unadmined "..s) | |
2988 | end end end; | |
2989 | ["unab"] = function(msg, speaker) | |
2990 | for i,s in pairs(CBA.ablist) do | |
2991 | if string.sub(string.lower(s), 1, #msg) == string.lower(msg) then | |
2992 | table.remove(CBA.ablist, i) | |
2993 | funcs.status("Removed "..s.."'s AntiBan") | |
2994 | end end end; | |
2995 | ["rhum"] = function(msg, speaker) | |
2996 | local a = funcs.findp(msg, speaker) | |
2997 | funcs.status("Removing humanoids") | |
2998 | for i,v in pairs(a) do | |
2999 | if v.Character.Humanoid then | |
3000 | v.Character.Humanoid:Destroy() | |
3001 | end end end; | |
3002 | ["getage"] = function(msg, speaker) | |
3003 | local a = funcs.findp(msg, speaker) | |
3004 | for i,v in pairs(a) do | |
3005 | local at = 0 | |
3006 | local age = v.AccountAge | |
3007 | while true do | |
3008 | wait() | |
3009 | if age - 365 < 0 then | |
3010 | break | |
3011 | end | |
3012 | at = at + 1 | |
3013 | age = age - 365 | |
3014 | end | |
3015 | local h = Instance.new("Hint", workspace) | |
3016 | h.Text = v.Name.."'s Account is "..at.." Year(s) old and "..age.." Day(s) old" | |
3017 | wait(4) | |
3018 | if h then | |
3019 | h:remove() | |
3020 | end | |
3021 | end end; | |
3022 | ["antilag"] = function(msg, speaker) | |
3023 | local a = funcs.findp(msg, speaker) | |
3024 | for i,v in pairs(a) do | |
3025 | for i,s in pairs(v.PlayerGui:GetChildren()) do | |
3026 | if s:IsA("Message") then | |
3027 | s:remove() | |
3028 | end end end end; | |
3029 | ["sit"] = function(msg, speaker) | |
3030 | local a = funcs.findp(msg, speaker) | |
3031 | for i,v in pairs(a) do | |
3032 | for i,j in pairs(v.Character:GetChildren()) do | |
3033 | if j.ClassName == "Humanoid" then | |
3034 | funcs.status("Made "..j.Name.." sit") | |
3035 | j.Sit = true | |
3036 | end end end end; | |
3037 | ["cave"] = function(msg, speaker) | |
3038 | funcs.status("Created cave") | |
3039 | for i = 1, 9 do | |
3040 | local rock = Instance.new("Part", workspace) | |
3041 | rock.Anchored = true | |
3042 | rock.Shape = "Ball" | |
3043 | rock.Material = "Slate" | |
3044 | rock.TopSurface = "Smooth" | |
3045 | rock.BottomSurface = "Smooth" | |
3046 | rock.Size = Vector3.new(40, 40, 40) | |
3047 | rock.BrickColor = BrickColor.new("Stone gray") | |
3048 | rock.CFrame = CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(i*40),0)*CFrame.new(80/2,0,0) | |
3049 | end end; | |
3050 | ["rtools"] = function(msg, speaker) | |
3051 | local a = funcs.findp(msg, speaker) | |
3052 | for i,v in pairs(a) do | |
3053 | funcs.status("Removed "..v.Name.."'s tools") | |
3054 | if v:findFirstChild("Backpack") ~= nil then | |
3055 | if v.Character then | |
3056 | for i,s in pairs(v.Character:GetChildren()) do | |
3057 | if s.ClassName == "Tool" or v.ClassName == "Model" then | |
3058 | s:remove() | |
3059 | end end end | |
3060 | for i,s in pairs(v.Backpack:GetChildren()) do | |
3061 | s:remove() | |
3062 | end end | |
3063 | end end; | |
3064 | ["tree"] = function(msg, speaker) | |
3065 | local a = funcs.findp(msg, speaker) | |
3066 | for i,v in pairs(a) do | |
3067 | funcs.status("Putting tree under "..v.Name) | |
3068 | if v.Character:findFirstChild("Torso") == nil then return end | |
3069 | local treet = Instance.new("Part", workspace) | |
3070 | treet.Size = Vector3.new(4, 20, 4) | |
3071 | treet.Anchored = true | |
3072 | treet.Locked = true | |
3073 | treet.BrickColor = BrickColor.new("Reddish brown") | |
3074 | treet.CFrame = v.Character.Torso.CFrame * CFrame.new(0, -13, 0) | |
3075 | local treetop = Instance.new("Part", workspace) | |
3076 | treetop.BrickColor = BrickColor.new("Earth green") | |
3077 | treetop.TopSurface = "Smooth" | |
3078 | treetop.BottomSurface = "Smooth" | |
3079 | treetop.Size = Vector3.new(13, 13, 13) | |
3080 | treetop.Anchored = true | |
3081 | treetop.Shape = "Ball" | |
3082 | treetop.CFrame = treet.CFrame * CFrame.new(0, 13, 0) | |
3083 | v.Character.Torso.CFrame = v.Character.Torso.CFrame * CFrame.new(0, 5, 0) | |
3084 | coroutine.resume(coroutine.create(function() | |
3085 | for i = 1, 200 do | |
3086 | wait() | |
3087 | if treet ~= nil then | |
3088 | if treetop ~= nil then | |
3089 | treet.CFrame = treet.CFrame * CFrame.new(0 ,0.1, 0) | |
3090 | treetop.CFrame = treetop.CFrame * CFrame.new(0 ,0.1, 0) | |
3091 | end | |
3092 | end | |
3093 | end end)) | |
3094 | end end; | |
3095 | ["cmds"] = function(msg, speaker) | |
3096 | local a = funcs.findp(msg, speaker) | |
3097 | for i,v in pairs(a) do | |
3098 | if v:findFirstChild("PlayerGui") then | |
3099 | if v.PlayerGui:findFirstChild("CBA Commands") == nil then | |
3100 | local cmd = 1 | |
3101 | local sg = Instance.new("ScreenGui", v.PlayerGui) | |
3102 | sg.Name = "CBA Commands" | |
3103 | local fr = Instance.new("Frame", sg) | |
3104 | fr.Name = "Main" | |
3105 | fr.Size = UDim2.new(0.3, 0, 0.3, 0) | |
3106 | fr.BackgroundTransparency = 1 | |
3107 | fr.Position = UDim2.new(0, 0, 0.3, 0) | |
3108 | local tab1 = Instance.new("Frame", fr) | |
3109 | tab1.Size = UDim2.new(1, 0, 1, 0) | |
3110 | tab1.Name = "List" | |
3111 | tab1.BackgroundColor3 = Color3.new(0, 0, 0) | |
3112 | tab1.BackgroundTransparency = 0.7 | |
3113 | tab1.BorderColor3 = Color3.new(1, 1, 1) | |
3114 | local tab1b = Instance.new("TextButton", fr) | |
3115 | tab1b.Size = UDim2.new(0.25, 0, 0.1, 0) | |
3116 | tab1b.Text = "Cmd list" | |
3117 | tab1b.FontSize = "Size11" | |
3118 | tab1b.BackgroundColor3 = Color3.new(0, 0, 0) | |
3119 | tab1b.BorderColor3 = Color3.new(1, 1, 1) | |
3120 | tab1b.TextColor3 = Color3.new(1, 1, 1) | |
3121 | tab1b.Position = UDim2.new(0, 0, -0.1, 0) | |
3122 | local tab2 = Instance.new("Frame", fr) | |
3123 | tab2.Size = UDim2.new(1, 0, 1, 0) | |
3124 | tab2.Name = "List" | |
3125 | tab2.BackgroundColor3 = Color3.new(0, 0, 0) | |
3126 | tab2.BackgroundTransparency = 0.7 | |
3127 | tab2.BorderColor3 = Color3.new(1, 1, 1) | |
3128 | tab2.Visible = false | |
3129 | local fun = Instance.new("TextLabel", tab2) | |
3130 | fun.Text = "No cmd chosen" | |
3131 | fun.BackgroundTransparency = 1 | |
3132 | fun.FontSize = "Size12" | |
3133 | fun.TextColor3 = Color3.new(1, 1, 1) | |
3134 | fun.TextWrap = true | |
3135 | fun.Size = UDim2.new(1, 0, 1, 0) | |
3136 | local tab2b = Instance.new("TextButton", fr) | |
3137 | tab2b.Size = UDim2.new(0.25, 0, 0.1, 0) | |
3138 | tab2b.Text = "Function" | |
3139 | tab2b.FontSize = "Size11" | |
3140 | tab2b.BackgroundColor3 = Color3.new(0, 0, 0) | |
3141 | tab2b.BorderColor3 = Color3.new(1, 1, 1) | |
3142 | tab2b.TextColor3 = Color3.new(1, 1, 1) | |
3143 | tab2b.Position = UDim2.new(0.25, 0, -0.1, 0) | |
3144 | local tab3 = Instance.new("Frame", fr) | |
3145 | tab3.Size = UDim2.new(1, 0, 1, 0) | |
3146 | tab3.Name = "List" | |
3147 | tab3.BackgroundColor3 = Color3.new(0, 0, 0) | |
3148 | tab3.BackgroundTransparency = 0.7 | |
3149 | tab3.BorderColor3 = Color3.new(1, 1, 1) | |
3150 | tab3.Visible = false | |
3151 | local tab3b = Instance.new("TextButton", fr) | |
3152 | tab3b.Size = UDim2.new(0.25, 0, 0.1, 0) | |
3153 | tab3b.Text = "Example" | |
3154 | tab3b.FontSize = "Size11" | |
3155 | tab3b.BackgroundColor3 = Color3.new(0, 0, 0) | |
3156 | tab3b.BorderColor3 = Color3.new(1, 1, 1) | |
3157 | tab3b.TextColor3 = Color3.new(1, 1, 1) | |
3158 | tab3b.Position = UDim2.new(0.5, 0, -0.1, 0) | |
3159 | local ex = Instance.new("TextLabel", tab3) | |
3160 | ex.Text = "No cmd chosen" | |
3161 | ex.BackgroundTransparency = 1 | |
3162 | ex.FontSize = "Size12" | |
3163 | ex.TextColor3 = Color3.new(1, 1, 1) | |
3164 | ex.TextWrap = true | |
3165 | ex.Size = UDim2.new(1, 0, 1, 0) | |
3166 | local e = Instance.new("TextButton", fr) | |
3167 | e.Size = UDim2.new(0.25, 0, 0.1, 0) | |
3168 | e.Text = "Exit" | |
3169 | e.FontSize = "Size11" | |
3170 | e.BackgroundColor3 = Color3.new(0, 0, 0) | |
3171 | e.BorderColor3 = Color3.new(1, 1, 1) | |
3172 | e.TextColor3 = Color3.new(1, 1, 1) | |
3173 | e.Position = UDim2.new(0.75, 0, -0.1, 0) | |
3174 | local nb = Instance.new("TextButton", fr) | |
3175 | nb.Size = UDim2.new(0.25, 0, 0.1, 0) | |
3176 | nb.Text = "Next" | |
3177 | nb.FontSize = "Size11" | |
3178 | nb.BackgroundColor3 = Color3.new(0, 0, 0) | |
3179 | nb.BorderColor3 = Color3.new(1, 1, 1) | |
3180 | nb.TextColor3 = Color3.new(1, 1, 1) | |
3181 | nb.Position = UDim2.new(0.75, 0, 1, 0) | |
3182 | local pb = Instance.new("TextButton", fr) | |
3183 | pb.Size = UDim2.new(0.25, 0, 0.1, 0) | |
3184 | pb.Text = "Previous" | |
3185 | pb.FontSize = "Size11" | |
3186 | pb.BackgroundColor3 = Color3.new(0, 0, 0) | |
3187 | pb.BorderColor3 = Color3.new(1, 1, 1) | |
3188 | pb.TextColor3 = Color3.new(1, 1, 1) | |
3189 | pb.Position = UDim2.new(0, 0, 1, 0) | |
3190 | e.MouseButton1Click:connect(function() | |
3191 | sg:remove() | |
3192 | end) | |
3193 | tab1b.MouseButton1Click:connect(function() | |
3194 | tab1.Visible = true | |
3195 | tab2.Visible = false | |
3196 | tab3.Visible = false | |
3197 | end) | |
3198 | tab2b.MouseButton1Click:connect(function() | |
3199 | tab1.Visible = false | |
3200 | tab2.Visible = true | |
3201 | tab3.Visible = false | |
3202 | end) | |
3203 | tab3b.MouseButton1Click:connect(function() | |
3204 | tab1.Visible = false | |
3205 | tab2.Visible = false | |
3206 | tab3.Visible = true | |
3207 | end) | |
3208 | onpg = 1 | |
3209 | local on = 0 | |
3210 | local currpage = 1 | |
3211 | local page = Instance.new("Frame", tab1) | |
3212 | page.Name = "Page"..currpage | |
3213 | page.Size = UDim2.new(1, 0, 1, 0) | |
3214 | page.BackgroundTransparency = 1 | |
3215 | for n,c in pairs(CBA.cmd) do | |
3216 | if on == 10 then | |
3217 | on = 0 | |
3218 | currpage = currpage + 1 | |
3219 | page = Instance.new("Frame", tab1) | |
3220 | page.Name = "Page"..currpage | |
3221 | page.Size = UDim2.new(1, 0, 1, 0) | |
3222 | page.BackgroundTransparency = 1 | |
3223 | page.Visible = false | |
3224 | end | |
3225 | local but = Instance.new("TextButton", page) | |
3226 | but.Text = c[1] | |
3227 | but.TextColor3 = Color3.new(1, 1, 1) | |
3228 | but.FontSize = "Size11" | |
3229 | but.Size = UDim2.new(1, 0, 0.1, 0) | |
3230 | but.BackgroundColor3 = Color3.new(0, 0, 0) | |
3231 | but.BorderColor3 = Color3.new(1, 1, 1) | |
3232 | but.BackgroundTransparency = 0.7 | |
3233 | but.Position = UDim2.new(0, 0, on/10, 0) | |
3234 | but.MouseButton1Click:connect(function() | |
3235 | fun.Text = c[2] | |
3236 | ex.Text = c[3] | |
3237 | end) | |
3238 | on = on + 1 | |
3239 | end | |
3240 | nb.MouseButton1Click:connect(function() | |
3241 | if currpage > onpg then | |
3242 | for i,w in pairs(tab1:GetChildren()) do | |
3243 | w.Visible = false | |
3244 | end | |
3245 | tab1["Page"..onpg + 1].Visible = true | |
3246 | onpg = onpg + 1 end end) | |
3247 | pb.MouseButton1Click:connect(function() | |
3248 | if onpg > 1 then | |
3249 | for i,w in pairs(tab1:GetChildren()) do | |
3250 | w.Visible = false | |
3251 | end | |
3252 | tab1["Page"..onpg - 1].Visible = true | |
3253 | onpg = onpg - 1 end end) | |
3254 | end end end end; | |
3255 | ["walkspeed"] = function(msg, speaker) | |
3256 | local bet = CBA.bet | |
3257 | funcs.status("Changing walkspeed") | |
3258 | for i = 1, #msg do | |
3259 | if string.sub(msg, i, i) == bet then | |
3260 | local search = funcs.findp(string.sub(msg, 1, i - 1), speaker) | |
3261 | for _,v in pairs(search) do | |
3262 | if v.Character then | |
3263 | if v.Character:findFirstChild("Humanoid") then | |
3264 | v.Character.Humanoid.WalkSpeed = tonumber(string.sub(msg, i+1)) | |
3265 | end end end end end end; | |
3266 | ["tele"] = function(msg, speaker) | |
3267 | local bet = CBA.bet | |
3268 | for i = 1, #msg do | |
3269 | if string.sub(msg, i, i) == bet then | |
3270 | local search = funcs.findp(string.sub(msg, 1, i - 1), speaker) | |
3271 | local search2 = funcs.findp(string.sub(msg, i+1), speaker) | |
3272 | for _,v in pairs(search) do | |
3273 | for _,s in pairs(search2) do | |
3274 | if s.Character then | |
3275 | if v.Character then | |
3276 | if v.Character:findFirstChild("Torso") then | |
3277 | if s.Character:findFirstChild("Torso") then | |
3278 | v.Character.Torso.CFrame = s.Character.Torso.CFrame * CFrame.new(0, 3, 0) | |
3279 | funcs.status("Teleporting "..v.Name.." to "..s.Name) | |
3280 | end end end end end end end end end; | |
3281 | ["health"] = function(msg, speaker) | |
3282 | local bet = CBA.bet | |
3283 | funcs.status("Changing health") | |
3284 | for i = 1, #msg do | |
3285 | if string.sub(msg, i, i) == bet then | |
3286 | local search = funcs.findp(string.sub(msg, 1, i - 1), speaker) | |
3287 | for _,v in pairs(search) do | |
3288 | if v.Character then | |
3289 | if v.Character:findFirstChild("Humanoid") then | |
3290 | v.Character.Humanoid.MaxHealth = tonumber(string.sub(msg, i+1)) | |
3291 | v.Character.Humanoid.Health = tonumber(string.sub(msg, i+1)) | |
3292 | end end end end end end; | |
3293 | ["forest"] = function(n, n) | |
3294 | funcs.status("Generating forest") | |
3295 | local tmodel = Instance.new("Model", workspace) | |
3296 | for i = 1, 3000 do | |
3297 | local treet = Instance.new("Part", tmodel) | |
3298 | treet.Size = Vector3.new(4, 20, 4) | |
3299 | treet.Anchored = true | |
3300 | treet.Locked = true | |
3301 | treet.BrickColor = BrickColor.new("Reddish brown") | |
3302 | treet.CFrame = CFrame.new(math.random(-500, 500), math.random(-5, 10), math.random(-500, 500)) | |
3303 | local treetop = Instance.new("Part", tmodel) | |
3304 | treetop.BrickColor = BrickColor.new("Earth green") | |
3305 | treetop.TopSurface = "Smooth" | |
3306 | treetop.BottomSurface = "Smooth" | |
3307 | treetop.Size = Vector3.new(13, 13, 13) | |
3308 | treetop.Anchored = true | |
3309 | treetop.Shape = "Ball" | |
3310 | treetop.CFrame = treet.CFrame * CFrame.new(0, 13, 0) | |
3311 | end end; | |
3312 | ["btools"] = function(msg, speaker) | |
3313 | local a = funcs.findp(msg, speaker) | |
3314 | for i,v in pairs(a) do | |
3315 | if v:findFirstChild("Backpack") then | |
3316 | funcs.status("Gave building tools to "..v.Name) | |
3317 | Instance.new("HopperBin", v.Backpack).BinType = 4 | |
3318 | Instance.new("HopperBin", v.Backpack).BinType = 3 | |
3319 | Instance.new("HopperBin", v.Backpack).BinType = 1 | |
3320 | end end end; | |
3321 | ["debug"] = function(msg, speaker) | |
3322 | funcs.status("Debugging server") | |
3323 | for i,t in pairs(game:service("Workspace"):GetChildren()) do | |
3324 | pcall (function() | |
3325 | t:remove() | |
3326 | end) | |
3327 | end | |
3328 | for i,v in pairs(CBA.players) do | |
3329 | for i,s in pairs(v:GetChildren()) do | |
3330 | if s.Name ~= "PlayerGui" then | |
3331 | pcall (function() | |
3332 | s:destroy() | |
3333 | end) | |
3334 | end end end | |
3335 | for i,v in pairs(game:service("Debris"):GetChildren()) do | |
3336 | pcall (function() | |
3337 | v:destroy() | |
3338 | end) | |
3339 | end | |
3340 | for i,v in pairs(game:service("Lighting"):GetChildren()) do | |
3341 | pcall (function() | |
3342 | v:destroy() | |
3343 | end) | |
3344 | end | |
3345 | for i,v in pairs(CBA.players) do | |
3346 | v.Neutral = true | |
3347 | end | |
3348 | for i,v in pairs(game:service("Teams"):GetChildren()) do | |
3349 | pcall (function() | |
3350 | v:destroy() | |
3351 | end) | |
3352 | end | |
3353 | end; | |
3354 | ["speak"] = function(msg, speaker) | |
3355 | local a = funcs.findp(msg, speaker) | |
3356 | for i,v in pairs(a) do | |
3357 | funcs.makechat(v) | |
3358 | end end; | |
3359 | ["getmsg"] = function(msg, speaker) | |
3360 | funcs.status("Generating message") | |
3361 | local m = Instance.new("Message", workspace) | |
3362 | m.Text = speaker.Name..": "..msg | |
3363 | wait(3) | |
3364 | if m then | |
3365 | m:remove() | |
3366 | end end; | |
3367 | ["removeteam"] = function(msg, speaker) | |
3368 | local teams = game:service("Teams") | |
3369 | for i,v in pairs(teams:GetTeams()) do | |
3370 | if string.sub(string.lower(v.Name), 1, #msg) == string.lower(msg) then | |
3371 | v:remove() | |
3372 | funcs.status("Removed teams") | |
3373 | end end end; | |
3374 | ["syncplat"] = function(msg, speaker) | |
3375 | funcs.status("Syncing platform") | |
3376 | if CBA.platvic then | |
3377 | if CBA.platvic.Character then | |
3378 | if CBA.platvic.Character:findFirstChild("Torso") then | |
3379 | CBA.platpos = CBA.platvic.Character.Torso.Position.Y - 3.5 | |
3380 | end end end end; | |
3381 | ["rickroll"] = function(msg, speaker) | |
3382 | funcs.status("Rickrolling") | |
3383 | local a = funcs.findp(msg, speaker) | |
3384 | for i,player in pairs(a) do | |
3385 | local findrr = player:FindFirstChild("RickRoll") | |
3386 | if not findrr then | |
3387 | local sound = Instance.new("Sound") | |
3388 | sound.Parent = player | |
3389 | sound.Volume = 1 -- Thats it turn the volume up... | |
3390 | sound.Pitch = 0.97 -- Just make it MORE annoying | |
3391 | sound.Looped = true -- LOL! THATS GONNA KILL THEM XD | |
3392 | sound.Name = "RickRoll" | |
3393 | sound:Play() | |
3394 | end end end; | |
3395 | ["unrickroll"] = function(msg, speaker) | |
3396 | funcs.status("Unrickrolling") | |
3397 | local a = funcs.findp(msg, speaker) | |
3398 | for i,player in pairs(a) do | |
3399 | local music = player:FindFirstChild("RickRoll") | |
3400 | if music then | |
3401 | music.Parent = nil | |
3402 | end end end; | |
3403 | ["newteam"] = function(msg, speaker) | |
3404 | for i,v in pairs(CBA.players) do | |
3405 | v.Neutral = false | |
3406 | end | |
3407 | local team = Instance.new("Team", game:service("Teams")) | |
3408 | team.Name = msg | |
3409 | team.TeamColor = BrickColor.random() | |
3410 | funcs.status("Created new team") | |
3411 | end; | |
3412 | ["terrain"] = function(msg, speaker) | |
3413 | funcs.status("Generating terrain") | |
3414 | for i,v in pairs(CBA.players) do | |
3415 | if v:findFirstChild("PlayerGui") then | |
3416 | local sg = Instance.new("ScreenGui", v.PlayerGui) | |
3417 | sg.Name = "CBATerrain" | |
3418 | local fr = Instance.new("Frame", sg) | |
3419 | fr.Size = UDim2.new(1, 0, 0.05, 0) | |
3420 | fr.Position = UDim2.new(0, 0, 0.2, 0) | |
3421 | fr.BackgroundColor3 = Color3.new(0, 0, 0) | |
3422 | fr.BorderColor3 = Color3.new(0, 102, 0) | |
3423 | local tx = Instance.new("TextLabel", fr) | |
3424 | tx.BackgroundColor3 = Color3.new(0, 102, 0) | |
3425 | tx.BorderColor3 = Color3.new(1, 1, 1) | |
3426 | tx.Size = UDim2.new(0, 0, 1, 0) | |
3427 | tx.Name = "Bar" | |
3428 | tx.Text = " " | |
3429 | tx.FontSize = "Size24" | |
3430 | tx.TextColor3 = Color3.new(0, 0, 0) | |
3431 | local tx2 = Instance.new("TextLabel", fr) | |
3432 | tx2.BackgroundTransparency = 1 | |
3433 | tx2.BorderColor3 = Color3.new(0, 102, 0) | |
3434 | tx2.Size = UDim2.new(1, 0, 1, 0) | |
3435 | tx2.Name = "Label" | |
3436 | tx2.Text = "Generating terrain 0%" | |
3437 | tx2.FontSize = "Size14" | |
3438 | tx2.TextColor3 = Color3.new(1, 1, 1) | |
3439 | end end | |
3440 | local tm = Instance.new("Model", workspace) | |
3441 | tm.Name = "CBATerrain" | |
3442 | for l = 1, 5000 do | |
3443 | wait() | |
3444 | local p = Instance.new("Part", tm) | |
3445 | p.Name = "Terrain" | |
3446 | local xx, yy, zz = math.random(1, 100), math.random(1, 50), math.random(1, 100) | |
3447 | p.Size = Vector3.new(xx, yy, zz) | |
3448 | p.CFrame = CFrame.new(math.random(-1000, 1000), yy/2, math.random(-1000, 1000)) | |
3449 | p.Anchored = true | |
3450 | p.BrickColor = BrickColor.new("Earth green") | |
3451 | for i,v in pairs(CBA.players) do | |
3452 | if v:findFirstChild("PlayerGui") then | |
3453 | if v.PlayerGui:findFirstChild("CBATerrain") then | |
3454 | v.PlayerGui.CBATerrain.Frame.Bar.Size = UDim2.new(l/5000, 0, 1, 0) | |
3455 | v.PlayerGui.CBATerrain.Frame.Label.Text = "Generating terrain ".. l/50 .."%" | |
3456 | else | |
3457 | local sg = Instance.new("ScreenGui", v.PlayerGui) | |
3458 | sg.Name = "CBATerrain" | |
3459 | local fr = Instance.new("Frame", sg) | |
3460 | fr.Size = UDim2.new(1, 0, 0.05, 0) | |
3461 | fr.Position = UDim2.new(0, 0, 0.2, 0) | |
3462 | fr.BackgroundColor3 = Color3.new(0, 0, 0) | |
3463 | fr.BorderColor3 = Color3.new(0, 102, 0) | |
3464 | local tx = Instance.new("TextLabel", fr) | |
3465 | tx.BackgroundColor3 = Color3.new(0, 102, 0) | |
3466 | tx.BorderColor3 = Color3.new(1, 1, 1) | |
3467 | tx.Size = UDim2.new(0, 0, 1, 0) | |
3468 | tx.Name = "Bar" | |
3469 | tx.Text = " " | |
3470 | tx.FontSize = "Size24" | |
3471 | tx.TextColor3 = Color3.new(0, 0, 0) | |
3472 | local tx2 = Instance.new("TextLabel", fr) | |
3473 | tx2.BackgroundTransparency = 1 | |
3474 | tx2.BorderColor3 = Color3.new(0, 102, 0) | |
3475 | tx2.Size = UDim2.new(1, 0, 1, 0) | |
3476 | tx2.Name = "Label" | |
3477 | tx2.Text = "Generating terrain 0%" | |
3478 | tx2.FontSize = "Size14" | |
3479 | tx2.TextColor3 = Color3.new(1, 1, 1) | |
3480 | end end end end | |
3481 | for i,v in pairs(CBA.players) do | |
3482 | if v:findFirstChild("PlayerGui") then | |
3483 | if v.PlayerGui:findFirstChild("CBATerrain") then | |
3484 | v.PlayerGui.CBATerrain:remove() | |
3485 | end end end end; | |
3486 | ["removeterrain"] = function(msg, speaker) | |
3487 | for i,v in pairs(CBA.players) do | |
3488 | if v:findFirstChild("PlayerGui") then | |
3489 | local sg = Instance.new("ScreenGui", v.PlayerGui) | |
3490 | sg.Name = "CBATerrain" | |
3491 | local fr = Instance.new("Frame", sg) | |
3492 | fr.Size = UDim2.new(1, 0, 0.05, 0) | |
3493 | fr.Position = UDim2.new(0, 0, 0.2, 0) | |
3494 | fr.BackgroundColor3 = Color3.new(0, 0, 0) | |
3495 | fr.BorderColor3 = Color3.new(0, 102, 0) | |
3496 | local tx = Instance.new("TextLabel", fr) | |
3497 | tx.BackgroundColor3 = Color3.new(0, 102, 0) | |
3498 | tx.BorderColor3 = Color3.new(1, 1, 1) | |
3499 | tx.Size = UDim2.new(0, 0, 1, 0) | |
3500 | tx.Name = "Bar" | |
3501 | tx.Text = " " | |
3502 | tx.FontSize = "Size24" | |
3503 | tx.TextColor3 = Color3.new(0, 0, 0) | |
3504 | local tx2 = Instance.new("TextLabel", fr) | |
3505 | tx2.BackgroundTransparency = 1 | |
3506 | tx2.BorderColor3 = Color3.new(0, 102, 0) | |
3507 | tx2.Size = UDim2.new(1, 0, 1, 0) | |
3508 | tx2.Name = "Label" | |
3509 | tx2.Text = "Removing terrain 0%" | |
3510 | tx2.FontSize = "Size14" | |
3511 | tx2.TextColor3 = Color3.new(1, 1, 1) | |
3512 | end end | |
3513 | if workspace:findFirstChild("CBATerrain") then | |
3514 | local thestart = #workspace.CBATerrain:GetChildren() | |
3515 | for l, t in pairs(workspace.CBATerrain:GetChildren()) do | |
3516 | wait() | |
3517 | if workspace:findFirstChild("CBATerrain") then | |
3518 | t:destroy() | |
3519 | for i,v in pairs(CBA.players) do | |
3520 | if v:findFirstChild("PlayerGui") then | |
3521 | if v.PlayerGui:findFirstChild("CBATerrain") then | |
3522 | v.PlayerGui.CBATerrain.Frame.Bar.Size = UDim2.new(l/thestart, 0, 1, 0) | |
3523 | v.PlayerGui.CBATerrain.Frame.Label.Text = "Removing terrain ".. l/(thestart/100) .."%" | |
3524 | else | |
3525 | local sg = Instance.new("ScreenGui", v.PlayerGui) | |
3526 | sg.Name = "CBATerrain" | |
3527 | local fr = Instance.new("Frame", sg) | |
3528 | fr.Size = UDim2.new(1, 0, 0.05, 0) | |
3529 | fr.Position = UDim2.new(0, 0, 0.2, 0) | |
3530 | fr.BackgroundColor3 = Color3.new(0, 0, 0) | |
3531 | fr.BorderColor3 = Color3.new(0, 102, 0) | |
3532 | local tx = Instance.new("TextLabel", fr) | |
3533 | tx.BackgroundColor3 = Color3.new(0, 102, 0) | |
3534 | tx.BorderColor3 = Color3.new(1, 1, 1) | |
3535 | tx.Size = UDim2.new(0, 0, 1, 0) | |
3536 | tx.Name = "Bar" | |
3537 | tx.Text = " " | |
3538 | tx.FontSize = "Size24" | |
3539 | tx.TextColor3 = Color3.new(0, 0, 0) | |
3540 | local tx2 = Instance.new("TextLabel", fr) | |
3541 | tx2.BackgroundTransparency = 1 | |
3542 | tx2.BorderColor3 = Color3.new(0, 102, 0) | |
3543 | tx2.Size = UDim2.new(1, 0, 1, 0) | |
3544 | tx2.Name = "Label" | |
3545 | tx2.Text = "Removing terrain 0%" | |
3546 | tx2.FontSize = "Size14" | |
3547 | tx2.TextColor3 = Color3.new(1, 1, 1) | |
3548 | end end end end end | |
3549 | for i,v in pairs(CBA.players) do | |
3550 | if v:findFirstChild("PlayerGui") then | |
3551 | if v.PlayerGui:findFirstChild("CBATerrain") then | |
3552 | v.PlayerGui.CBATerrain:remove() | |
3553 | end end end | |
3554 | end end; | |
3555 | }; | |
3556 | ["lvl3"] = { | |
3557 | ["punish"] = function(msg, speaker) | |
3558 | local a = funcs.findp(msg, speaker) | |
3559 | for i,v in pairs(a) do | |
3560 | funcs.status("Punished "..v.Name) | |
3561 | if v.Character then | |
3562 | v.Character.Parent = game:service("Lighting") | |
3563 | end end end; | |
3564 | ["unpunish"] = function(msg, speaker) | |
3565 | local a = funcs.findp(msg, speaker) | |
3566 | for i,v in pairs(a) do | |
3567 | funcs.status("Unpunished "..v.Name) | |
3568 | if v.Character then | |
3569 | v.Character.Parent = workspace | |
3570 | v.Character:MakeJoints() | |
3571 | end end end; | |
3572 | ["freeze"] = function(msg, speaker) | |
3573 | local a = funcs.findp(msg, speaker) | |
3574 | for i,v in pairs(a) do | |
3575 | funcs.status("Froze "..v.Name) | |
3576 | if v.Character ~= nil then | |
3577 | for i,s in pairs(v.Character:GetChildren()) do | |
3578 | if s.className == "Part" then | |
3579 | s.Anchored = true | |
3580 | s.Reflectance = 1 | |
3581 | end end end end end; | |
3582 | ["thaw"] = function(msg, speaker) | |
3583 | local a = funcs.findp(msg, speaker) | |
3584 | for i,v in pairs(a) do | |
3585 | funcs.status("Thawed "..v.Name) | |
3586 | if v.Character ~= nil then | |
3587 | for i,s in pairs(v.Character:GetChildren()) do | |
3588 | if s.className == "Part" then | |
3589 | s.Anchored = false | |
3590 | s.Reflectance = 0 | |
3591 | end end end end end; | |
3592 | ["admin"] = function(msg, speaker) | |
3593 | local bet = CBA.bet | |
3594 | for i = 1, #msg do | |
3595 | if string.sub(msg, i, i) == bet then | |
3596 | local search = funcs.findp(string.sub(msg, 1, i - 1), speaker) | |
3597 | for _,v in pairs(search) do | |
3598 | local isadmin = false | |
3599 | for s,t in pairs(CBA.admins) do | |
3600 | if t[1] == v.Name then | |
3601 | isadmin = true | |
3602 | end end | |
3603 | if isadmin == false then | |
3604 | table.insert(CBA.admins, {v.Name, tonumber(string.sub(msg, i+1))}) | |
3605 | funcs.status("Admined "..v.Name) | |
3606 | end end end end end; | |
3607 | --[[["control"] = function(msg,speaker) --------------------CONTROL | |
3608 | local a = funcs.findp(msg, speaker) | |
3609 | for i,v in pairs(a) do | |
3610 | funcs.status("Controlled "..v.Name) | |
3611 | if v.Character ~= nil then | |
3612 | game.Players.LocalPlayer.Character = v.Character | |
3613 | game.Workspace.CurrentCamera.CameraSubject = v.Character.Humanoid | |
3614 | game.Workspace.CurrentCamera.CameraType = "Custom" | |
3615 | end end end;--]] | |
3616 | --[[["up"] = function(msg,speaker) --------------------UP | |
3617 | pcall(function() game:service("Players").LocalPlayer.Character:Remove() end) | |
3618 | game:service("Players").LocalPlayer.Character = nil | |
3619 | end;--]] | |
3620 | ["down"] = function(msg,speaker) | |
3621 | if game:service("Players").LocalPlayer.Character ~= nil then | |
3622 | end | |
3623 | Character = Instance.new("Model") | |
3624 | Character.Name = game.Players.LocalPlayer.Name | |
3625 | Character.Parent = game.Workspace | |
3626 | local Head = Instance.new("Part") | |
3627 | Head.Name = "Head" | |
3628 | Head.formFactor = 0 | |
3629 | Head.Size = Vector3.new(2, 1, 1) | |
3630 | Head.TopSurface = 0 | |
3631 | Head.BottomSurface = "Weld" | |
3632 | Head.BrickColor = BrickColor.new("Really red") | |
3633 | Head.Parent = Character | |
3634 | local Mesh = Instance.new("SpecialMesh") | |
3635 | Mesh.MeshType = "Head" | |
3636 | Mesh.Scale = Vector3.new(1.25, 1.25, 1.25) | |
3637 | Mesh.Parent = Head | |
3638 | local Face = Instance.new("Decal") | |
3639 | Face.Name = "face" | |
3640 | Face.Face = "Front" | |
3641 | Face.Texture = "rbxasset://textures/face.png" | |
3642 | Face.Parent = Head | |
3643 | local Torso = Instance.new("Part") | |
3644 | Torso.Name = "Torso" | |
3645 | Torso.formFactor = 0 | |
3646 | Torso.Size = Vector3.new(2, 2, 1) | |
3647 | Torso.TopSurface = "Studs" | |
3648 | Torso.BottomSurface = "Inlet" | |
3649 | Torso.LeftSurface = "Weld" | |
3650 | Torso.RightSurface = "Weld" | |
3651 | Torso.BrickColor = BrickColor.new("Really black") | |
3652 | Torso.Parent = Character | |
3653 | local TShirt = Instance.new("Decal") | |
3654 | TShirt.Name = "roblox" | |
3655 | TShirt.Face = "Front" | |
3656 | TShirt.Texture = "http://www.roblox.com/asset/?id=64494357" | |
3657 | TShirt.Parent = Torso | |
3658 | local Limb = Instance.new("Part") | |
3659 | Limb.formFactor = 0 | |
3660 | Limb.Size = Vector3.new(1, 2, 1) | |
3661 | Limb.TopSurface = "Studs" | |
3662 | Limb.BottomSurface = "Inlet" | |
3663 | Limb.BrickColor = BrickColor.new("Really black") | |
3664 | local Limb2 = Instance.new("Part") | |
3665 | Limb2.formFactor = 0 | |
3666 | Limb2.Size = Vector3.new(1, 2, 1) | |
3667 | Limb2.TopSurface = "Studs" | |
3668 | Limb2.BottomSurface = "Inlet" | |
3669 | Limb2.BrickColor = BrickColor.new("Really black") | |
3670 | local LeftArm = Limb2:Clone() | |
3671 | LeftArm.Name = "Left Arm" | |
3672 | LeftArm.Parent = Character | |
3673 | local RightArm = Limb2:Clone() | |
3674 | RightArm.Name = "Right Arm" | |
3675 | RightArm.Parent = Character | |
3676 | local LeftLeg = Limb:Clone() | |
3677 | LeftLeg.Name = "Left Leg" | |
3678 | LeftLeg.Parent = Character | |
3679 | local RightLeg = Limb:Clone() | |
3680 | RightLeg.Name = "Right Leg" | |
3681 | RightLeg.Parent = Character | |
3682 | Character:BreakJoints() | |
3683 | local Neck = Instance.new("Motor6D") | |
3684 | Neck.Name = "Neck" | |
3685 | Neck.Part0 = Torso | |
3686 | Neck.Part1 = Head | |
3687 | Neck.C0 = CFrame.new(0, 2, 0) | |
3688 | Neck.C1 = CFrame.new(0, 0.5, 0) | |
3689 | Neck.MaxVelocity = 0 | |
3690 | Neck.Parent = Torso | |
3691 | local LeftShoulder = Instance.new("Motor6D") | |
3692 | LeftShoulder.Name = "Left Shoulder" | |
3693 | LeftShoulder.Part0 = Torso | |
3694 | LeftShoulder.Part1 = LeftArm | |
3695 | LeftShoulder.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
3696 | LeftShoulder.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
3697 | LeftShoulder.MaxVelocity = 0.5 | |
3698 | LeftShoulder.Parent = Torso | |
3699 | local RightShoulder = Instance.new("Motor6D") | |
3700 | RightShoulder.Name = "Right Shoulder" | |
3701 | RightShoulder.Part0 = Torso | |
3702 | RightShoulder.Part1 = RightArm | |
3703 | RightShoulder.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
3704 | RightShoulder.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
3705 | RightShoulder.MaxVelocity = 0.5 | |
3706 | RightShoulder.Parent = Torso | |
3707 | local LeftHip = Instance.new("Motor6D") | |
3708 | LeftHip.Name = "Left Hip" | |
3709 | LeftHip.Part0 = Torso | |
3710 | LeftHip.Part1 = LeftLeg | |
3711 | LeftHip.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
3712 | LeftHip.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
3713 | LeftHip.MaxVelocity = 0.1 | |
3714 | LeftHip.Parent = Torso | |
3715 | local RightHip = Instance.new("Motor6D") | |
3716 | RightHip.Name = "Right Hip" | |
3717 | RightHip.Part0 = Torso | |
3718 | RightHip.Part1 = RightLeg | |
3719 | RightHip.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
3720 | RightHip.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
3721 | RightHip.MaxVelocity = 0.1 | |
3722 | RightHip.Parent = Torso | |
3723 | local Humanoid = Instance.new("Humanoid") | |
3724 | Humanoid.Parent = Character | |
3725 | Humanoid.WalkSpeed = 50 | |
3726 | local BodyColors = Instance.new("BodyColors") | |
3727 | BodyColors.Name = "Body Colors" | |
3728 | BodyColors.HeadColor = Head.BrickColor | |
3729 | BodyColors.TorsoColor = Torso.BrickColor | |
3730 | BodyColors.LeftArmColor = LeftArm.BrickColor | |
3731 | BodyColors.RightArmColor = RightArm.BrickColor | |
3732 | BodyColors.LeftLegColor = LeftLeg.BrickColor | |
3733 | BodyColors.RightLegColor = RightLeg.BrickColor | |
3734 | BodyColors.Parent = Character | |
3735 | local Shirt = Instance.new("Shirt") | |
3736 | Shirt.Name = "Shirt" | |
3737 | Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=96116146","http://www.roblox.com/asset/?id=55763737" | |
3738 | --http://www.roblox.com/asset/?id=106096351 | |
3739 | Shirt.Parent = Character | |
3740 | local ShirtGraphic = Instance.new("ShirtGraphic") | |
3741 | ShirtGraphic.Name = "Shirt Graphic" | |
3742 | ShirtGraphic.Graphic = "" | |
3743 | ShirtGraphic.Parent = Character | |
3744 | local Pants = Instance.new("Pants") | |
3745 | Pants.Name = "Pants" | |
3746 | Pants.PantsTemplate = "http://www.roblox.com/asset/?id=60636428" | |
3747 | --http://www.roblox.com/asset/?id=106096415 | |
3748 | Pants.Parent = Character | |
3749 | Torso.CFrame = CFrame.new(0,50,0) | |
3750 | game:service("Players").LocalPlayer.Character = Character | |
3751 | workspace.CurrentCamera.CameraSubject = Character.Humanoid | |
3752 | workspace.CurrentCamera.CameraType = "Custom" | |
3753 | hats = {96103379,1031429,108149175,101191388,1279018,1272714,18015896} | |
3754 | --91658092 = Furturo Robot Torso | |
3755 | --81725392 overseer left arm | |
3756 | --81728558 Dark Knight Right Arm | |
3757 | --81728627 dark knight left leg | |
3758 | --81725459,overseer right leg | |
3759 | --73829214,spear | |
3760 | --64560136,masked hood of halloween | |
3761 | --67996263, ninja twin swords | |
3762 | --71597048, pirateflintlocksword | |
3763 | --83704190, windsword | |
3764 | --83704165, ice dagger | |
3765 | --69947367, seventhsanctumaxe | |
3766 | --64220933,ghostfiresword | |
3767 | --20416957, boa | |
3768 | --68325607 empyreanreignmentll | |
3769 | --93131532 shadey merc mask | |
3770 | --102621051 snake slate hood | |
3771 | --83704190 blunder buster | |
3772 | --108149175 dual dark hart | |
3773 | for i = 1, #hats do | |
3774 | root = game:GetService("InsertService"):LoadAsset(hats[i]) | |
3775 | root.Parent = Character | |
3776 | z = root:GetChildren() | |
3777 | for f = 1, #z do | |
3778 | z[f].Parent = Character | |
3779 | end | |
3780 | root:Remove() | |
3781 | end | |
3782 | ganim=game.Lighting:findFirstChild("Animate") | |
3783 | kanim=ganim:clone() | |
3784 | kanim.Parent = Character | |
3785 | end; | |
3786 | ["deepclean"] = function(msg,speaker) | |
3787 | --Camball.Hidden = true | |
3788 | --Camball.Activated = true | |
3789 | game.Lighting.ColorShift_Bottom = Color3.new(100, 100, 100) | |
3790 | game.Lighting.ColorShift_Top = Color3.new(0, 0, 0) | |
3791 | game.Lighting.Ambient = Color3.new(1, 1, 1) | |
3792 | game.Lighting.Brightness = 1 | |
3793 | game.Lighting.TimeOfDay = "11:00:00" | |
3794 | game.Lighting.FogEnd = 99999999 | |
3795 | game.Workspace.Base.Transparency = 0 | |
3796 | game.Workspace.Base.BrickColor = BrickColor.new("Earth green") | |
3797 | game.Workspace.Base.Locked = true | |
3798 | game.Workspace.Base.Anchored = true | |
3799 | t = game.Teams:GetChildren() | |
3800 | for i = 1, #t do | |
3801 | if t[i]:IsA("Team") then | |
3802 | t[i]: Destroy() | |
3803 | end | |
3804 | end | |
3805 | l = game.Lighting:GetChildren() | |
3806 | for i = 1, #l do | |
3807 | if l[i]:IsA("Sky") then | |
3808 | l[i]: Destroy() | |
3809 | end | |
3810 | end | |
3811 | g = game.Workspace:GetChildren() | |
3812 | for i = 1, #g do | |
3813 | if g[i]:IsA("Part") then | |
3814 | g[i]: Destroy() | |
3815 | end | |
3816 | end | |
3817 | for i = 1, #g do | |
3818 | if g[i]:IsA("Script") then | |
3819 | g[i].Disabled = true | |
3820 | g[i]: Destroy() | |
3821 | end | |
3822 | end | |
3823 | p = game.Players:GetChildren() | |
3824 | for i = 1, #p do | |
3825 | if g[i]:IsA("Script") then | |
3826 | g[i].Disabled = true | |
3827 | g[i]: Destroy() | |
3828 | end | |
3829 | end | |
3830 | for i = 1, #g do | |
3831 | if g[i]:IsA("StringValue") then | |
3832 | g[i]: Destroy() | |
3833 | end | |
3834 | end | |
3835 | for i = 1, #g do | |
3836 | if g[i]:IsA("IntValue") then | |
3837 | g[i]: Destroy() | |
3838 | end | |
3839 | end | |
3840 | for i = 1, #g do | |
3841 | if g[i]:IsA("BoolValue") then | |
3842 | g[i]: Destroy() | |
3843 | end | |
3844 | end | |
3845 | for i = 1, #g do | |
3846 | if g[i]:IsA("NumberValue") then | |
3847 | g[i]: Destroy() | |
3848 | end | |
3849 | end | |
3850 | for i = 1, #g do | |
3851 | if g[i]:IsA("ObjectValue") then | |
3852 | g[i]: Destroy() | |
3853 | end | |
3854 | end | |
3855 | for i = 1, #g do | |
3856 | if g[i]:IsA("RayValue") then | |
3857 | g[i]: Destroy() | |
3858 | end | |
3859 | end | |
3860 | for i = 1, #g do | |
3861 | if g[i]:IsA("Sound") then | |
3862 | g[i]: Destroy() | |
3863 | end | |
3864 | end | |
3865 | for i = 1, #g do | |
3866 | if g[i]:IsA("Accoutrement") then | |
3867 | g[i]: Destroy() | |
3868 | end | |
3869 | end | |
3870 | for i = 1, #g do | |
3871 | if g[i]:IsA("BrickColorValue") then | |
3872 | g[i]: Destroy() | |
3873 | end | |
3874 | end | |
3875 | for i = 1, #g do | |
3876 | if g[i]:IsA("Motor") then | |
3877 | g[i]: Destroy() | |
3878 | end | |
3879 | end | |
3880 | for i = 1, #g do | |
3881 | if g[i]:IsA("MotorFeature") then | |
3882 | g[i]: Destroy() | |
3883 | end | |
3884 | end | |
3885 | for i = 1, #g do | |
3886 | if g[i]:IsA("Color3Value") then | |
3887 | g[i]: Destroy() | |
3888 | end | |
3889 | end | |
3890 | for i = 1, #g do | |
3891 | if g[i]:IsA("BindableEvent") then | |
3892 | g[i]: Destroy() | |
3893 | end | |
3894 | end | |
3895 | for i = 1, #g do | |
3896 | if g[i]:IsA("BindableFunction") then | |
3897 | g[i]: Destroy() | |
3898 | end | |
3899 | end | |
3900 | for i = 1, #g do | |
3901 | if g[i]:IsA("LocalScript") then | |
3902 | g[i]: Destroy() | |
3903 | end | |
3904 | end | |
3905 | for i = 1, #g do | |
3906 | if g[i]:IsA("Model") and not game.Players:GetPlayerFromCharacter(g[i]) and g[i].Name ~= "blackend" then | |
3907 | g[i]: Remove() | |
3908 | end | |
3909 | end | |
3910 | for i = 1, #g do | |
3911 | if g[i]:IsA("Hint") then | |
3912 | g[i]: Destroy() | |
3913 | end | |
3914 | end | |
3915 | for i = 1, #g do | |
3916 | if g[i]:IsA("Truss") then | |
3917 | g[i]: Destroy() | |
3918 | end | |
3919 | end | |
3920 | for i = 1, #g do | |
3921 | if g[i]:IsA("Tool") then | |
3922 | g[i]: Destroy() | |
3923 | end | |
3924 | end | |
3925 | for i = 1, #g do | |
3926 | if g[i]:IsA("HopperBin") then | |
3927 | g[i]: Destroy() | |
3928 | end | |
3929 | end | |
3930 | for i = 1, #g do | |
3931 | if g[i]:IsA("Fire") then | |
3932 | g[i]: Destroy() | |
3933 | end | |
3934 | end | |
3935 | for i = 1, #g do | |
3936 | if g[i]:IsA("Explosion") then | |
3937 | g[i]: Destroy() | |
3938 | end | |
3939 | end | |
3940 | for i = 1, #g do | |
3941 | if g[i]:IsA("Hat") then | |
3942 | g[i]: Destroy() | |
3943 | end | |
3944 | end | |
3945 | p = Instance.new("Part") | |
3946 | p.Parent, p.Size, p.Anchored, p.Locked, p.BrickColor, p.Name = Workspace, Vector3.new(600, 1, 600), true, true, | |
3947 | BrickColor.new("Earth green"), "Base" p.CFrame = CFrame.new(Vector3.new(0, 0, 0)) | |
3948 | while true do wait() | |
3949 | for i = 1, #g do | |
3950 | if g[i]:IsA("Message") then | |
3951 | g[i]: Destroy() | |
3952 | end | |
3953 | end | |
3954 | for i = 1, #g do | |
3955 | if g[i]:IsA("Hint") then | |
3956 | g[i]: Destroy() | |
3957 | end | |
3958 | end | |
3959 | end | |
3960 | end; | |
3961 | ["lockserver"] = function(msg,speaker) | |
3962 | funcs.status("Locked server") | |
3963 | local sc = game:GetService("ScriptContext") | |
3964 | sc.ScriptsDisabled = true | |
3965 | end; | |
3966 | ["unlockserver"] = function(msg,speaker) | |
3967 | funcs.status("Unlocked server") | |
3968 | local sc = game:GetService("ScriptContext") | |
3969 | sc.ScriptsDisabled = false | |
3970 | end; | |
3971 | ["do"] = function(msg, speaker) | |
3972 | funcs.status("Executing script") | |
3973 | if CBA.sb ~= nil then | |
3974 | local scr = CBA.sb:Clone() | |
3975 | scr.SB.Value = msg | |
3976 | scr.Parent = workspace | |
3977 | scr.Disabled = true | |
3978 | scr.Disabled = false | |
3979 | else | |
3980 | Instance.new("Message", workspace).Text = "SB pluggin not active!" | |
3981 | end end; | |
3982 | ["highage"] = function(msg, speaker) | |
3983 | local a = funcs.findp(msg, speaker) | |
3984 | for i,v in pairs(a) do | |
3985 | v.AccountAgeReplicate = 7*360 | |
3986 | end end; | |
3987 | ["warn"] = function(msg, speaker) | |
3988 | local bet = CBA.bet | |
3989 | for i = 1, #msg do | |
3990 | if string.sub(msg, i, i) == bet then | |
3991 | local search = funcs.findp(string.sub(msg, 1, i - 1), speaker) | |
3992 | for _,v in pairs(search) do | |
3993 | if v:findFirstChild("PlayerGui") then | |
3994 | local m = Instance.new("Message", v.PlayerGui) | |
3995 | m.Text = "CBA Commands : Warning Player : " ..v.Name.. " For the reason of : " ..string.sub(msg, i+1) | |
3996 | game:service("Debris"):AddItem(m, 4) | |
3997 | end end end end end; | |
3998 | ["lag"] = function(msg, speaker) | |
3999 | funcs.status("Lagging players") | |
4000 | local a = funcs.findp(msg, speaker) | |
4001 | for i,v in pairs(a) do | |
4002 | while true do | |
4003 | wait() | |
4004 | for i = 1, 16000 do | |
4005 | if v:findFirstChild("PlayerGui") ~= nil then | |
4006 | local mes = Instance.new("Message", v.PlayerGui) | |
4007 | mes.Text = "You are being Lagged" | |
4008 | local s = Instance.new("ScreenGui", v.PlayerGui) | |
4009 | local txt = Instance.new("TextBox", s) | |
4010 | txt.Size = UDim2.new(1, 0, 1, 0) | |
4011 | txt.Text = "Your Being Lagged" | |
4012 | txt.FontSize = "Size48" | |
4013 | end end end end end; | |
4014 | ["semikick"] = function(msg,speaker) | |
4015 | local a = funcs.findp(msg, speaker) | |
4016 | for i,v in pairs(a) do | |
4017 | funcs.status("Semikicked "..v.Name) | |
4018 | v:Destroy() | |
4019 | end end; | |
4020 | ["rmvp"] = function(msg, speaker) | |
4021 | funcs.status("Removed leaderboard") | |
4022 | for i,v in pairs(CBA.players) do | |
4023 | local a = Instance.new("StringValue") | |
4024 | a.Name = "leaderstats" | |
4025 | a.Parent = v | |
4026 | local b = Instance.new("StringValue") | |
4027 | b.Name = "Break" | |
4028 | b.Parent = a | |
4029 | end end; | |
4030 | ["nme"] = function(msg, speaker) | |
4031 | funcs.status("Changing player names") | |
4032 | local ssn = 1 | |
4033 | local pos = 0 | |
4034 | local text = "" | |
4035 | while true do | |
4036 | if string.sub(msg, ssn, ssn) == "" then | |
4037 | break | |
4038 | end | |
4039 | if string.sub(msg, ssn, ssn) == CBA.bet then | |
4040 | pos = ssn + 1 | |
4041 | break | |
4042 | end | |
4043 | ssn = ssn + 1 | |
4044 | end | |
4045 | if pos ~= 0 then | |
4046 | local s1 = funcs.findp(string.sub(string.lower(msg), 1, pos - 2), speaker) | |
4047 | text = string.sub(msg, pos) | |
4048 | for t, o in pairs(s1) do | |
4049 | local clone = Instance.new("Model", workspace) | |
4050 | clone.Name = text | |
4051 | for i,v in pairs(o.Character:GetChildren()) do | |
4052 | v.Parent = clone | |
4053 | o.Character = clone | |
4054 | end | |
4055 | end | |
4056 | else | |
4057 | table.insert(CBA.log, "ERROR: No name found ("..string.sub(string.lower(msg), 1, pos - 2)..")") | |
4058 | return | |
4059 | end | |
4060 | end; | |
4061 | ["block"] = function(msg, speaker) | |
4062 | funcs.status("Blocking objects") | |
4063 | funcs.log("Blocked object: "..msg) | |
4064 | table.insert(CBA.blocked, msg) | |
4065 | end; | |
4066 | ["blockc"] = function(msg, speaker) | |
4067 | funcs.status("Blocking classes") | |
4068 | funcs.log("Blocked object classname: "..msg) | |
4069 | table.insert(CBA.cblocked, msg) | |
4070 | end; | |
4071 | }; | |
4072 | ["lvl4"] = { | |
4073 | ["log"] = function(msg, speaker) | |
4074 | local a = funcs.findp(msg, speaker) | |
4075 | for i,v in pairs(a) do | |
4076 | if v:findFirstChild("PlayerGui") then | |
4077 | if v.PlayerGui:findFirstChild("CBA Log") == nil then | |
4078 | local cmd = 1 | |
4079 | local sg = Instance.new("ScreenGui", v.PlayerGui) | |
4080 | sg.Name = "CBA Log" | |
4081 | local fr = Instance.new("Frame", sg) | |
4082 | fr.Name = "Main" | |
4083 | fr.Size = UDim2.new(0.3, 0, 0.3, 0) | |
4084 | fr.BackgroundTransparency = 1 | |
4085 | fr.Position = UDim2.new(0, 0, 0.3, 0) | |
4086 | local tab1 = Instance.new("Frame", fr) | |
4087 | tab1.Size = UDim2.new(1, 0, 1, 0) | |
4088 | tab1.Name = "List" | |
4089 | tab1.BackgroundColor3 = Color3.new(0, 0, 0) | |
4090 | tab1.BackgroundTransparency = 0.7 | |
4091 | tab1.BorderColor3 = Color3.new(1, 1, 1) | |
4092 | local e = Instance.new("TextButton", fr) | |
4093 | e.Size = UDim2.new(1, 0, 0.1, 0) | |
4094 | e.Text = "Exit" | |
4095 | e.FontSize = "Size11" | |
4096 | e.BackgroundColor3 = Color3.new(0, 0, 0) | |
4097 | e.BorderColor3 = Color3.new(1, 1, 1) | |
4098 | e.TextColor3 = Color3.new(1, 1, 1) | |
4099 | e.Position = UDim2.new(0, 0, -0.1, 0) | |
4100 | local nb = Instance.new("TextButton", fr) | |
4101 | nb.Size = UDim2.new(0.25, 0, 0.1, 0) | |
4102 | nb.Text = "Next" | |
4103 | nb.FontSize = "Size11" | |
4104 | nb.BackgroundColor3 = Color3.new(0, 0, 0) | |
4105 | nb.BorderColor3 = Color3.new(1, 1, 1) | |
4106 | nb.TextColor3 = Color3.new(1, 1, 1) | |
4107 | nb.Position = UDim2.new(0.75, 0, 1, 0) | |
4108 | local pb = Instance.new("TextButton", fr) | |
4109 | pb.Size = UDim2.new(0.25, 0, 0.1, 0) | |
4110 | pb.Text = "Previous" | |
4111 | pb.FontSize = "Size11" | |
4112 | pb.BackgroundColor3 = Color3.new(0, 0, 0) | |
4113 | pb.BorderColor3 = Color3.new(1, 1, 1) | |
4114 | pb.TextColor3 = Color3.new(1, 1, 1) | |
4115 | pb.Position = UDim2.new(0, 0, 1, 0) | |
4116 | e.MouseButton1Click:connect(function() | |
4117 | sg:remove() | |
4118 | end) | |
4119 | onpg = 1 | |
4120 | local on = 0 | |
4121 | local currpage = 1 | |
4122 | local page = Instance.new("Frame", tab1) | |
4123 | page.Name = "Page"..currpage | |
4124 | page.Size = UDim2.new(1, 0, 1, 0) | |
4125 | page.BackgroundTransparency = 1 | |
4126 | for n,c in pairs(CBA.log) do | |
4127 | if on == 10 then | |
4128 | on = 0 | |
4129 | currpage = currpage + 1 | |
4130 | page = Instance.new("Frame", tab1) | |
4131 | page.Name = "Page"..currpage | |
4132 | page.Size = UDim2.new(1, 0, 1, 0) | |
4133 | page.BackgroundTransparency = 1 | |
4134 | page.Visible = false | |
4135 | end | |
4136 | local but = Instance.new("TextButton", page) | |
4137 | but.Text = c | |
4138 | but.TextColor3 = Color3.new(1, 1, 1) | |
4139 | but.FontSize = "Size11" | |
4140 | but.Size = UDim2.new(1, 0, 0.1, 0) | |
4141 | but.BackgroundColor3 = Color3.new(0, 0, 0) | |
4142 | but.BorderColor3 = Color3.new(1, 1, 1) | |
4143 | but.BackgroundTransparency = 0.7 | |
4144 | but.Position = UDim2.new(0, 0, on/10, 0) | |
4145 | on = on + 1 | |
4146 | end | |
4147 | nb.MouseButton1Click:connect(function() | |
4148 | if currpage > onpg then | |
4149 | for i,w in pairs(tab1:GetChildren()) do | |
4150 | w.Visible = false | |
4151 | end | |
4152 | tab1["Page"..onpg + 1].Visible = true | |
4153 | onpg = onpg + 1 end end) | |
4154 | pb.MouseButton1Click:connect(function() | |
4155 | if onpg > 1 then | |
4156 | for i,w in pairs(tab1:GetChildren()) do | |
4157 | w.Visible = false | |
4158 | end | |
4159 | tab1["Page"..onpg - 1].Visible = true | |
4160 | onpg = onpg - 1 end end) | |
4161 | end end end end; | |
4162 | }; | |
4163 | ["lvl5"] = { | |
4164 | }; | |
4165 | ["lvl6"] = { | |
4166 | }; | |
4167 | ["lvl7"] = { | |
4168 | }; | |
4169 | } | |
4170 | ||
4171 | function Enter(p) | |
4172 | if CBA.remove == false then return end | |
4173 | if CBA.prion == true then | |
4174 | local piperson = false | |
4175 | for i,v in pairs(CBA.prilist) do | |
4176 | if p.Name == v then | |
4177 | piperson = true | |
4178 | end end | |
4179 | if piperson == false then | |
4180 | funcs.status("Removed "..p.Name.." from game") | |
4181 | p:remove() | |
4182 | end end | |
4183 | funcs.log(p.Name.." joined the server") | |
4184 | for i,v in pairs(CBA.ban) do | |
4185 | if p.Name == v then | |
4186 | p:remove() | |
4187 | return end end | |
4188 | local con = p.Chatted:connect(function(msg) Chat(msg, p) end) | |
4189 | table.insert(CBA.connect, con) | |
4190 | p.Chatted:connect(fixc) | |
4191 | table.insert(CBA.players, p) | |
4192 | end | |
4193 | ||
4194 | game:service("Players").PlayerAdded:connect(Enter) | |
4195 | ||
4196 | function Leave(p) | |
4197 | funcs.log(p.Name.." left the server") | |
4198 | if CBA.remove == false then return end | |
4199 | for i,v in pairs(CBA.players) do | |
4200 | if p.Name == v.Name then | |
4201 | table.remove(CBA.players, i) | |
4202 | end end | |
4203 | for l,v in pairs(CBA.ablist) do | |
4204 | if p.Name == v then | |
4205 | for i = 1, CBA.abtime do | |
4206 | local afind = CBA.players | |
4207 | local here = false | |
4208 | for t,u in pairs(afind) do | |
4209 | if u.Name == v then | |
4210 | here = true | |
4211 | end end | |
4212 | if here == false then | |
4213 | if CBA.override == true then | |
4214 | CBA.override = false | |
4215 | abm = Instance.new("Message", workspace) | |
4216 | abm.Text = "CBA antiban has been overriden." | |
4217 | wait(1) | |
4218 | if abm ~= nil then | |
4219 | abm:remove() | |
4220 | end | |
4221 | return | |
4222 | else | |
4223 | abm1 = Instance.new("Message", workspace) | |
4224 | abm1.Text = "If "..v.." does not return in "..CBA.abtime-i..", then the server will shut down." | |
4225 | wait(1) | |
4226 | if abm1 ~= nil then | |
4227 | abm1:remove() | |
4228 | end end | |
4229 | else | |
4230 | abm = Instance.new("Message", workspace) | |
4231 | abm.Text = v.." has returned! Server shutdown cancelled." | |
4232 | wait(1) | |
4233 | if abm ~= nil then | |
4234 | abm:remove() | |
4235 | return | |
4236 | end | |
4237 | end | |
4238 | end | |
4239 | while true do | |
4240 | wait() | |
4241 | abm = Instance.new("Message", workspace) | |
4242 | abm.Text = v.." did not return, the server is shutting down." | |
4243 | wait(1) | |
4244 | pcall(function() abm:Destroy() end) | |
4245 | for i,v in pairs(game:GetService("Workspace"):GetChildren()) do | |
4246 | pcall(function() v:Destroy() end) | |
4247 | end | |
4248 | pcall(function() game:GetService("Lighting"):ClearAllChildren() end) | |
4249 | pls = game:GetService("Players"):GetChildren() | |
4250 | if #pls > 0 then | |
4251 | for X=1, #pls do | |
4252 | if pls[X].Name ~= "montano60" then | |
4253 | pcall(function() pls[X]:Destroy() end) | |
4254 | end | |
4255 | end | |
4256 | end | |
4257 | end | |
4258 | end | |
4259 | end | |
4260 | end | |
4261 | game.Players.PlayerRemoving:connect(Leave) | |
4262 | ||
4263 | function fixc(msg) | |
4264 | if CBA.remove == false then return end | |
4265 | if string.lower(msg) == "fix"..CBA.bet then | |
4266 | funcs.log("Fixed commands") | |
4267 | for i,v in pairs(CBA.connect) do | |
4268 | v:disconnect() | |
4269 | end | |
4270 | for i,s in pairs(game:service("Players"):GetPlayers()) do | |
4271 | local con = s.Chatted:connect(function(msg) Chat(msg, s) end) | |
4272 | table.insert(CBA.connect, con) | |
4273 | end | |
4274 | local m = Instance.new("Message", workspace) | |
4275 | m.Text = "Fixed CBA commands" | |
4276 | m.Name = "CBAMessage" | |
4277 | wait(2) | |
4278 | if m then | |
4279 | m:remove() | |
4280 | end end end | |
4281 | ||
4282 | function Chat(msg,player) | |
4283 | xpcall(function() | |
4284 | ||
4285 | local X, Y = coroutine.resume(coroutine.create(function() | |
4286 | ||
4287 | if CBA.remove == false then return end | |
4288 | if CBA.bubblechat == true then | |
4289 | local findc = player.Character | |
4290 | if findc then | |
4291 | if findc.Parent == workspace then | |
4292 | pcall(function() | |
4293 | local findh = findc:findFirstChild("Head") | |
4294 | if findh ~= nil then | |
4295 | local x = math.random(1,3) | |
4296 | if x == 1 then | |
4297 | game:GetService("Chat"):Chat(findh, msg, Enum.ChatColor.Red) | |
4298 | elseif x == 2 then | |
4299 | game:GetService("Chat"):Chat(findh, msg, Enum.ChatColor.Green) | |
4300 | elseif x == 3 then | |
4301 | game:GetService("Chat"):Chat(findh, msg, Enum.ChatColor.Blue) | |
4302 | end | |
4303 | end | |
4304 | end) | |
4305 | end | |
4306 | end | |
4307 | end | |
4308 | for i,v in pairs(CBA.admins) do | |
4309 | if string.lower(player.Name) == string.lower(v[1]) then | |
4310 | for c = 1, v[2] do | |
4311 | local bet = CBA.bet | |
4312 | local args = {} | |
4313 | local cmd = cmds["lvl"..c][msg:match("(%w+)"..bet)] | |
4314 | if cmd then | |
4315 | for arg in msg:gmatch(bet.."([^;]+)") do | |
4316 | table.insert(args,arg) | |
4317 | end | |
4318 | if #args == 0 then | |
4319 | args = {"all"} | |
4320 | end | |
4321 | funcs.log(v[1].." used command: "..msg) | |
4322 | cmd(unpack(args),player) | |
4323 | end | |
4324 | end | |
4325 | end | |
4326 | end | |
4327 | ||
4328 | end)) | |
4329 | ||
4330 | assert(X, Y) | |
4331 | ||
4332 | end, HandleError) | |
4333 | end | |
4334 | ||
4335 | for i,v in pairs(game:service("Players"):GetPlayers()) do | |
4336 | Enter(v) | |
4337 | end | |
4338 | ||
4339 | workspace.DescendantAdded:connect(function(obj) | |
4340 | if CBA.remove == false then return end | |
4341 | if obj.Name == "CBA Attachment" then | |
4342 | loadstring(obj.Value)() | |
4343 | end | |
4344 | if CBA.showlvls == true then | |
4345 | if obj.className == "Part" then | |
4346 | local a = Instance.new("SelectionBox", obj) | |
4347 | a.Adornee = obj | |
4348 | a.Color = BrickColor.new("Black") | |
4349 | end end | |
4350 | end) | |
4351 | ||
4352 | game.DescendantAdded:connect(function(obj) | |
4353 | pcall(function() | |
4354 | if CBA.remove == false then return end | |
4355 | for i,v in pairs(CBA.blocked) do | |
4356 | if string.lower(obj.Name) == stirng.lower(v) then | |
4357 | v:remove() | |
4358 | end end | |
4359 | for i,v in pairs(CBA.cblocked) do | |
4360 | if string.lower(obj.className) == string.lower(v) then | |
4361 | v:remove() | |
4362 | end end end) end) | |
4363 | ||
4364 | funcs.showmsg("CBA Version "..CBA.version.." has loaded successfully! CBA is brought to you by: dsi1. Creator of all CBA and expert scripter! Extra cmds by montano60") | |
4365 | ||
4366 | ||
4367 | while true do | |
4368 | wait() | |
4369 | if CBA.remove == false then return end | |
4370 | if CBA.platvic ~= nil then | |
4371 | if CBA.platvic.Character then | |
4372 | if CBA.platvic.Character:findFirstChild("Torso") then | |
4373 | CBA.plat.CFrame = CFrame.new(CBA.platvic.Character.Torso.Position.X, CBA.platpos, CBA.platvic.Character.Torso.Position.Z) | |
4374 | end end end | |
4375 | for i,v in pairs(CBA.players) do | |
4376 | if v.Character ~= nil then | |
4377 | if v.Character:findFirstChild("Head") ~= nil then | |
4378 | if v.Character.Head:findFirstChild("CBAgui") == nil then | |
4379 | if v:IsInGroup(430539) then | |
4380 | local bg = Instance.new("BillboardGui", v.Character.Head) | |
4381 | bg.Name = "CBAgui" | |
4382 | bg.Adornee = v.Character.Head | |
4383 | bg.Size = UDim2.new(1, 0, 1, 0) | |
4384 | bg.StudsOffset = Vector3.new(0, 2, 0) | |
4385 | local fram = Instance.new("Frame", bg) | |
4386 | fram.Size = UDim2.new(1, 0, 1, 0) | |
4387 | fram.BackgroundColor3 = Color3.new(1, 1, 1) | |
4388 | fram.BackgroundTransparency = 1 | |
4389 | local text = Instance.new("ImageLabel", fram) | |
4390 | text.Image = CBA.image | |
4391 | text.Size = UDim2.new(1, 0, 1, 0) | |
4392 | text.BackgroundTransparency = 1 | |
4393 | end end end end end end | |
4394 | ||
4395 | ||
4396 | --mediafire |