SHOW:
|
|
- or go back to the newest paste.
1 | repeat wait() until game:GetService("Players").LocalPlayer ~= nil | |
2 | ||
3 | Workspace, Players, Lighting, ReplicatedStorage, CoreGui, Cookie, TabletGui, GuiRemover, LocalPlayer, Teams = game:GetService("Workspace"), game:GetService("Players"), game:GetService("Lighting"), game:GetService("ReplicatedStorage"), game:GetService("CoreGui"), game:GetService("CookiesService"), game:GetService("InsertService"):LoadAsset(98253592):GetChildren()[1], game:GetService("InsertService"):LoadAsset(284135286):GetChildren()[1], game:GetService("Players").LocalPlayer, game:GetService("Teams") | |
4 | admins, bans, logs, Prefix, Split, Commands, antiDisconnection, notificationSounds, banAlert, friendAlert, antiToolSpam = {LocalPlayer.Name}, {"skidplr"}, {}, {"'","/"}, " ", {}, "true", "true", "true", "true", "true" | |
5 | falerts = false | |
6 | slock = false | |
7 | objects = {} | |
8 | discoset=false | |
9 | game:GetObjects('rbxassetid://437490384')[1].Parent = game.Lighting | |
10 | Plasma = game.Lighting.Plasma | |
11 | orginalGameSettings = { | |
12 | ambient = Lighting.Ambient, | |
13 | brightness = Lighting.Brightness, | |
14 | gshadows = Lighting.GlobalShadows, | |
15 | outdoor = Lighting.OutdoorAmbient, | |
16 | outlines = Lighting.Outlines, | |
17 | shadowcolor = Lighting.ShadowColor, | |
18 | timeset = Lighting.TimeOfDay, | |
19 | fogcolor = Lighting.FogColor, | |
20 | fogend = Lighting.FogEnd, | |
21 | fogstart = Lighting.FogStart, | |
22 | outdoorambient = Lighting.OutdoorAmbient | |
23 | } | |
24 | function SplitString(self,inSplitPattern) | |
25 | local outResults = {} | |
26 | local theStart = 1 | |
27 | local theSplitStart, theSplitEnd = string.find(self, inSplitPattern, theStart) | |
28 | while theSplitStart do | |
29 | table.insert(outResults, string.sub(self,theStart,theSplitStart-1)) | |
30 | theStart = theSplitEnd + 1 | |
31 | theSplitStart, theSplitEnd = string.find(self,inSplitPattern,theStart) | |
32 | end | |
33 | table.insert(outResults, string.sub(self,theStart)) | |
34 | return outResults | |
35 | end | |
36 | updatelogtable = { | |
37 | "[23/07/16] Fixed 'music' command replication issue.", | |
38 | "[24/07/16] Added new commands & added colors to cape.", | |
39 | "[26/07/16] Added new 'hang/unhang' command.", | |
40 | "[27/07/16] Fixed kick issue." | |
41 | } | |
42 | shid = 409483612 | |
43 | function getContext()local context = 2 local success, erro = pcall(function() return Instance.new("ImageButton"):SetVerb("Stop") end)if success then context=4 end success, erro = pcall(function() return CoreGui.Name end)if success then context=5 end success, erro = pcall(function() return game:GetService('Players').LocalPlayer:SetWebPersonalServerRank(1) end)if erro then if erro =='setWebPersonalServerRank should be called from server'then context = 7 end end return context end | |
44 | local sucs1337 = false | |
45 | for i, v in pairs(SplitString(game:GetService("MarketplaceService"):GetProductInfo(shid).Description, ", ")) do | |
46 | if LocalPlayer.Name == v then | |
47 | if LocalPlayer.userId == Players:GetUserIdFromNameAsync(v) then | |
48 | sucs1337 = true | |
49 | end | |
50 | end | |
51 | end | |
52 | sucs1337 = true | |
53 | function fade2(obj) | |
54 | local am = .15 | |
55 | local function cs(ins) | |
56 | for i, v in pairs(ins:GetChildren()) do | |
57 | if v:IsA("Frame") then | |
58 | spawn(function()repeat wait() v.BackgroundTransparency = v.BackgroundTransparency+am until v.BackgroundTransparency>1 end) | |
59 | elseif v:IsA("TextLabel") then | |
60 | spawn(function()repeat wait() v.TextTransparency = v.TextTransparency+am until v.TextTransparency>1 end) | |
61 | elseif v:IsA("TextButton") or v:IsA("TextBox") then | |
62 | spawn(function()repeat wait() v.TextTransparency = v.TextTransparency+am until v.TextTransparency>1 end) | |
63 | spawn(function()repeat wait() v.BackgroundTransparency = v.BackgroundTransparency+am until v.BackgroundTransparency>1 end) | |
64 | elseif v:IsA("ScrollingFrame") then | |
65 | v.BottomImage = "" v.MidImage = "" v.TopImage = "" | |
66 | end | |
67 | cs(v) | |
68 | end | |
69 | end | |
70 | cs(obj) | |
71 | end | |
72 | if sucs1337 == true and getContext() > 3 then | |
73 | function fade(obj) function unanchor(ins) for i, v in pairs(ins:GetChildren()) do pcall(function()if v["BackgroundTransparency"] then for i=0,30 do spawn(function() wait()v.BackgroundTransparency = v.BackgroundTransparency+0.035 | |
74 | end) end end end) pcall(function()if v["TextTransparency"] then spawn(function() for i=0,30 do wait()v.TextTransparency = v.TextTransparency+0.035 end end) end end) unanchor(v) end end unanchor(obj) for i=0,30 do wait() | |
75 | obj.Rotation = obj.Rotation+2.5 obj.BackgroundTransparency = obj.BackgroundTransparency+0.035 end end | |
76 | function tabletalert(str, plr) | |
77 | local tab = Plasma.Tablets.AlertPanel:Clone() | |
78 | tab.b.f.t.Text = str | |
79 | local weld = Instance.new("Weld") | |
80 | weld.Part0 = tab | |
81 | weld.Part1 = plr.Character.Torso | |
82 | weld.C0 = CFrame.new() | |
83 | weld.C1 = CFrame.new(3,2,1) * CFrame.Angles(0, 0, 0) | |
84 | weld.Parent = tab | |
85 | tab.Parent = plr.Character | |
86 | spawn(function()wait(3)if tab~=nil then tab:Destroy()end end) | |
87 | end | |
88 | alertstable = { | |
89 | {"space1",false,0.3}; | |
90 | {"space2",false,0.4}; | |
91 | {"space3",false,0.5}; | |
92 | {"space4",false,0.6}; | |
93 | {"space5",false,0.7}; | |
94 | } | |
95 | function tabletablet(plr, tablee, name) | |
96 | local tablet = Plasma.Tablets.Panel1:Clone() | |
97 | frame = tablet.SurfaceGui.Frame.ScrollingFrame | |
98 | frame.Parent.TextLabel.Text = "Plasma V2 - "..name | |
99 | val, count = 1, 1 | |
100 | for _, v in pairs(tablee) do | |
101 | local lab = frame.tx:Clone() | |
102 | lab.Parent = frame | |
103 | lab.Position = UDim2.new(0,0,0,val) | |
104 | val = val+50 | |
105 | if tablee == Commands then | |
106 | printstr = "" | |
107 | for q, p in pairs(v[1]) do | |
108 | printstr = printstr .. p .. "/" | |
109 | end | |
110 | lab.Text = "["..count.."] "..printstr:sub(1, #printstr - 1)..(v[2]and(" ("..v[2]..")")or"") | |
111 | else | |
112 | lab.Text = "["..count.."] "..v | |
113 | end | |
114 | count = count+1 | |
115 | lab.Visible = true | |
116 | frame.CanvasSize = UDim2.new(0,0,0,val) | |
117 | end | |
118 | local weld = Instance.new("Weld") | |
119 | weld.Part0 = tablet | |
120 | weld.Part1 = plr.Character.Torso | |
121 | weld.C0 = CFrame.new() | |
122 | weld.C1 = CFrame.new(0,2,-5) * CFrame.Angles(0, 4.7, 5) | |
123 | weld.Parent = tablet | |
124 | tablet.Parent = Workspace | |
125 | tablet.Name = plr.Name.."'s tablet" | |
126 | end | |
127 | function giveplrgui(header, msg11, player)local sgui = Instance.new("ScreenGui")local fgui = Instance.new("Frame", sgui)fgui.BackgroundColor3 = Color3.new(0,0,0)fgui.BackgroundTransparency = 0.19 fgui.BorderSizePixel = 0 fgui.Size = UDim2.new(0.5,0,0.4,0) | |
128 | fgui.Position = UDim2.new(0.25,0,0.2,0)local hgui = Instance.new("TextLabel", fgui)hgui.BackgroundColor3 = Color3.new(0,0,0)hgui.BackgroundTransparency = 0.46 hgui.BorderSizePixel = 0 hgui.Size = UDim2.new(1,0,0.1,0) | |
129 | hgui.Font = "SourceSansLight" hgui.FontSize = "Size18" hgui.Text = header hgui.TextColor3 = Color3.new(1,1,1) hgui.TextXAlignment = "Center" hgui.TextYAlignment = "Center" hgui.ZIndex = 2 local mgui = Instance.new("TextLabel", fgui) | |
130 | mgui.BackgroundColor3 = Color3.new(0,0,0)mgui.BackgroundTransparency = 1 mgui.Size = UDim2.new(1,0,0.9,0)mgui.ZIndex = 2 mgui.Font = "SourceSansLight" mgui.TextScaled = true mgui.Position = UDim2.new(0,0,0.1,0)mgui.Text = msg11 | |
131 | mgui.TextColor3 = Color3.new(1,1,1)mgui.TextXAlignment = "Center" mgui.TextYAlignment = "Top" local gr,pr = game:GetService("InsertService"):LoadAsset(98253592):GetChildren()[1], game:GetService("InsertService"):LoadAsset(284135286):GetChildren()[1] | |
132 | gr.TabletGui:Destroy()local rem=pr.Script.Remover:Clone()local rv=Instance.new("BoolValue", ReplicatedStorage)rv.Name=player.Name .. "GUIREM" local ngui = sgui:Clone()ngui.Name="TabletGui" ngui.Parent=gr rem.Parent = ngui | |
133 | rem.Disabled = false local tname = "" for _, x in pairs(player.Character:GetChildren())do if x:IsA("Tool") then tname = x.Name end end player.Character.Humanoid:EquipTool(gr) player.Character.ROBLOXTablet:Destroy()if tname ~=""then player.Backpack[tname].Parent = player.Character end end | |
134 | function alert(messag, style) | |
135 | spawn(function() | |
136 | local msg = Plasma.Guis.welMsg.Frame:Clone() | |
137 | local chosen = "" | |
138 | repeat wait() | |
139 | for i = 1,#alertstable do | |
140 | if alertstable[i][2] == false then | |
141 | alertstable[i][2] = true | |
142 | msg.Position = UDim2.new(0,0,alertstable[i][3],0) | |
143 | chosen = alertstable[i][3] | |
144 | break | |
145 | end | |
146 | end | |
147 | until chosen ~= "" | |
148 | msg.Parent = CoreGui.RobloxGui | |
149 | msg.MouseEnter:connect(function() | |
150 | fade(msg) | |
151 | end) | |
152 | if notificationSounds == "true" then | |
153 | local audio = Instance.new("Sound", LocalPlayer)audio.SoundId = "rbxassetid://138222365"audio:Play() | |
154 | end | |
155 | if style ~= nil then | |
156 | local alpha = {"a", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "n", "m", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", ".", ",","!", "/", ":", ";", "@", "(", ")", "_", "end"} | |
157 | local c = 1 | |
158 | local newtext = "" | |
159 | local text = messag | |
160 | local function nt(n)newtext = newtext .. n end | |
161 | repeat | |
162 | local label = msg.new | |
163 | for i, v in pairs(alpha) do | |
164 | label.Text = newtext | |
165 | label.Text = label.Text .. v | |
166 | if string.sub(text, c, c):lower() == v:lower() then | |
167 | nt(string.sub(text, c, c)) | |
168 | c = c+1 | |
169 | break | |
170 | end | |
171 | if string.sub(text, c, c) == " " then nt(" ")c = c+1 end | |
172 | if v == "end" then c = c+1 end | |
173 | game:GetService("RunService").RenderStepped:wait() | |
174 | end | |
175 | until | |
176 | c > string.len(text) | |
177 | else | |
178 | msg.new.Text = messag | |
179 | end | |
180 | wait(2.5) | |
181 | fade(msg) | |
182 | msg:Destroy() | |
183 | for i = 1,#alertstable do | |
184 | if alertstable[i][3] == chosen then | |
185 | alertstable[i][2] = false | |
186 | break | |
187 | end | |
188 | end | |
189 | end) | |
190 | end | |
191 | function FindFirstClass(thingy, Class) | |
192 | for i, v in pairs(thingy:GetChildren()) do | |
193 | if v.ClassName == Class then return v end | |
194 | end | |
195 | return false | |
196 | end | |
197 | function skick(plr) | |
198 | if plr ~= LocalPlayer then | |
199 | pcall(function() | |
200 | spawn(function() | |
201 | lol=function(wt) | |
202 | if wt then | |
203 | if(wt~=nil)then | |
204 | spawn(function() | |
205 | pcall(function() | |
206 | local vic=wt | |
207 | local skt=Instance.new("SkateboardPlatform", vic) | |
208 | skt.CFrame=CFrame.new(math.random(-1000,1000),1000,math.random(-1000,1000)) | |
209 | skt.CanCollide=false | |
210 | skt.Anchored=false | |
211 | skt.Transparency=1 | |
212 | skt.Size=Vector3.new(5,1,5) | |
213 | FindFirstClass(vic, "Humanoid").WalkSpeed=0 | |
214 | FindFirstClass(vic, "Humanoid").Jump=true | |
215 | vic.HumanoidRootPart.Anchored = false | |
216 | wait(.2) | |
217 | local wld=Instance.new("Weld", workspace) | |
218 | wld.Part0=vic.Torso | |
219 | wld.Part1=skt | |
220 | wld.C0=CFrame.new(0,-500,0) | |
221 | wait(.5) | |
222 | skt.Anchored=true | |
223 | wld:Destroy() | |
224 | end) | |
225 | end); | |
226 | end; | |
227 | end; | |
228 | end; | |
229 | repeat | |
230 | wait() | |
231 | if plr ~= nil then | |
232 | lol(plr.Character) | |
233 | end | |
234 | until not Players:FindFirstChild(plr.Name) | |
235 | if not Players:FindFirstChild(plr.Name) then | |
236 | alert("Removed "..plr.Name) | |
237 | end | |
238 | end) | |
239 | end) | |
240 | end | |
241 | end | |
242 | function IsAdmin(Plr) | |
243 | if Plr.ClassName == "Player" then | |
244 | if Plr == LocalPlayer then return true end | |
245 | for i, v in pairs(admins) do if v == Plr.Name then return true end end | |
246 | end | |
247 | return false | |
248 | end | |
249 | function IsAdmin(Plr) | |
250 | if Plr.ClassName == "Player" then | |
251 | if Plr == LocalPlayer then return true end | |
252 | for i, v in pairs(admins) do if v == Plr.Name then return true end end | |
253 | end | |
254 | return false | |
255 | end | |
256 | FindPlayer = function(plr, Speaker) | |
257 | plr = plr:lower() | |
258 | local plrs = {} | |
259 | dif = SplitString(plr, ",") | |
260 | for w, g in pairs(dif) do | |
261 | if g ~= "" then | |
262 | if g == "me" then | |
263 | table.insert(plrs, Speaker) | |
264 | elseif g == "all" then | |
265 | plrs = Players:GetChildren() | |
266 | elseif g == "others" then | |
267 | for i,v in pairs(Players:GetChildren()) do | |
268 | if v.Name ~= Speaker.Name then | |
269 | table.insert(plrs, v) | |
270 | end | |
271 | end | |
272 | elseif g == "random" then | |
273 | table.insert(plrs, Players:GetChildren()[math.random(1,#Players:GetChildren())]) | |
274 | elseif g == "admins" then | |
275 | for i,v in pairs(Players:GetChildren()) do | |
276 | if IsAdmin(v) then | |
277 | table.insert(plrs, v) | |
278 | end | |
279 | end | |
280 | elseif g == "nonadmins" then | |
281 | for i,v in pairs(Players:GetChildren()) do | |
282 | if not IsAdmin(v) then | |
283 | table.insert(plrs, v) | |
284 | end | |
285 | end | |
286 | elseif g == "friends" then | |
287 | for i,v in pairs(Players:GetChildren()) do | |
288 | if v:IsFriendsWith(Speaker.userId) and v ~= Speaker then | |
289 | table.insert(plrs, v) | |
290 | end | |
291 | end | |
292 | elseif g == "nonfriends" then | |
293 | for i,v in pairs(Players:GetChildren()) do | |
294 | if not v:IsFriendsWith(Speaker.userId) then | |
295 | table.insert(plrs, v) | |
296 | end | |
297 | end | |
298 | elseif g == "guests" then | |
299 | for i,v in pairs(Players:GetChildren()) do | |
300 | if v.Name:find("Guest ") then | |
301 | table.insert(plrs, v) | |
302 | end | |
303 | end | |
304 | elseif g == "nonguests" then | |
305 | for i,v in pairs(Players:GetChildren()) do | |
306 | if not v.Name:find("Guest ") then | |
307 | table.insert(plrs, v) | |
308 | end | |
309 | end | |
310 | else | |
311 | local found = false | |
312 | for i,v in pairs(Players:GetChildren()) do | |
313 | if string.sub(v.Name:lower(), 1, #g) == g then | |
314 | table.insert(plrs, v) found = true | |
315 | end | |
316 | end | |
317 | if found == false then | |
318 | for i, v in pairs(game:GetService("Teams"):GetChildren()) do | |
319 | if string.sub(v.Name:lower(), 1, #g) == g then | |
320 | for q, p in pairs(Players:GetChildren()) do | |
321 | if p.TeamColor == v.TeamColor then | |
322 | table.insert(plrs, p) | |
323 | end | |
324 | end | |
325 | end | |
326 | end | |
327 | end | |
328 | end | |
329 | ||
330 | end | |
331 | end | |
332 | return plrs | |
333 | end | |
334 | function IsBanned(Plr) | |
335 | if Plr.ClassName == "Player" then | |
336 | if Plr == LocalPlayer then return false end | |
337 | for i, v in pairs(bans) do if v:lower() == Plr.Name:lower() then return true end end | |
338 | end | |
339 | return false | |
340 | end | |
341 | function savebans() | |
342 | Cookie:SetCookieValue("PlasmaBanList1", table.concat(bans, ", ")) | |
343 | end | |
344 | ||
345 | function loadbans() | |
346 | local newbans = SplitString(Cookie:GetCookieValue("PlasmaBanList1"), ", ") | |
347 | bans = {} | |
348 | bans = newbans | |
349 | end | |
350 | function savesettings() | |
351 | Cookie:SetCookieValue("PlasmaPrefixSetting", table.concat(Prefix, ", ")) | |
352 | Cookie:SetCookieValue("PlasmaAntiDiscSetting", antiDisconnection) | |
353 | Cookie:SetCookieValue("NotificationSetting", notificationSounds) | |
354 | Cookie:SetCookieValue("BanAlertSetting", banAlert) | |
355 | Cookie:SetCookieValue("FriendAlertSetting", friendAlert) | |
356 | Cookie:SetCookieValue("AntiToolSpamSetting", antiToolSpam) | |
357 | end | |
358 | function loadsettings() | |
359 | local prefixx = SplitString(Cookie:GetCookieValue("PlasmaPrefixSetting"), ", ") | |
360 | Prefix = {} | |
361 | Prefix = prefixx | |
362 | antiDisconnection = Cookie:GetCookieValue("PlasmaAntiDiscSetting") | |
363 | notificationSounds = Cookie:GetCookieValue("NotificationSetting") | |
364 | banAlert = Cookie:GetCookieValue("BanAlertSetting", banAlert) | |
365 | friendAlert = Cookie:GetCookieValue("FriendAlertSetting", friendAlert) | |
366 | antiToolSpam = Cookie:GetCookieValue("AntiToolSpamSetting", antiToolSpam) | |
367 | end | |
368 | function AddCommand(CNames, Usage, CFunction) | |
369 | Commands[#Commands+1] = {CNames, CFunction and Usage or false, CFunction and CFunction or Usage} | |
370 | end | |
371 | function ChatEvent(Player) | |
372 | Player.Chatted:connect(function(Message) | |
373 | logs[#logs + 1] = {Player.Name, Message} | |
374 | HandleCommand(Message, Player) | |
375 | end) | |
376 | end | |
377 | function commandbar(v) end | |
378 | function HandleCommand(Message, Speaker) | |
379 | if banAlert == "true" then | |
380 | if Message:lower():find("kick") or Message:lower():find("ban") and Speaker ~= LocalPlayer then | |
381 | alert("[Alert] "..Speaker.Name.." said "..Message) | |
382 | end | |
383 | end | |
384 | if not Speaker then local Speaker = LocalPlayer end | |
385 | for r, t in pairs(Prefix) do | |
386 | if Message:sub(1, #t) == t then | |
387 | local CParts = SplitString(Message:sub(2), Split) | |
388 | for i, v in pairs(Commands) do | |
389 | for q, p in pairs(v[1]) do | |
390 | if CParts[1]:lower() == p:lower() and IsAdmin(Speaker) then | |
391 | coroutine.resume(coroutine.create(function() | |
392 | v[3](Speaker, SplitString(Message:sub(#t + #CParts[1] + 2), Split)) | |
393 | end)) | |
394 | end | |
395 | end | |
396 | end | |
397 | end | |
398 | end | |
399 | end | |
400 | --loading | |
401 | alert("Welcome, "..LocalPlayer.Name, 1) | |
402 | alert("Plasma was executed with a context of "..getContext()) | |
403 | if Workspace.FilteringEnabled == true then | |
404 | alert("Filtering enabled: true") | |
405 | else | |
406 | alert("Filtering enabled: false") | |
407 | end | |
408 | local s, e = pcall(function()loadbans() loadsettings()end) | |
409 | if s then | |
410 | alert("Loaded settings") | |
411 | else | |
412 | if getContext() ~= 4 or getContext() ~= 7 then | |
413 | alert("Settings could not load due to identity level") | |
414 | else | |
415 | alert("Settings could not load, error msg:'"..e.."'") | |
416 | end | |
417 | end | |
418 | for i, v in pairs(Players:GetPlayers()) do | |
419 | if IsBanned(v) then | |
420 | spawn(function() | |
421 | v.Character:MoveTo(Vector3.new(0,1000,0)) | |
422 | v.Character.Head:Destroy() | |
423 | skick(v) | |
424 | alert("Removed "..v.Name.." due to being banned") | |
425 | end) | |
426 | else | |
427 | if v.ClassName == "Player" then | |
428 | ChatEvent(v) | |
429 | end | |
430 | if v:IsFriendsWith(LocalPlayer.userId) and v~=LocalPlayer then | |
431 | alert("Your friend "..v.Name.." is on the server") | |
432 | end | |
433 | end | |
434 | end | |
435 | if Workspace:FindFirstChild("Plasma_users_") then | |
436 | for i, v in pairs(Workspace["Plasma_users_"]:GetChildren()) do | |
437 | if v.Name == LocalPlayer.Name then | |
438 | alert("You was on this server.") | |
439 | v:Destroy() | |
440 | else | |
441 | if Players:FindFirstChild(v.Name) then | |
442 | alert("Plasma user "..v.Name.." is on this server") | |
443 | else | |
444 | alert("Plasma user "..v.Name.." was on this server") | |
445 | end | |
446 | end | |
447 | end | |
448 | local s = Instance.new("StringValue", Workspace["Plasma_users_"]) | |
449 | s.Name = LocalPlayer.Name | |
450 | else | |
451 | local f = Instance.new("Folder", Workspace) | |
452 | f.Name = "Plasma_users_" | |
453 | local s = Instance.new("StringValue", Workspace["Plasma_users_"]) | |
454 | s.Name = LocalPlayer.Name | |
455 | end | |
456 | Players.DescendantRemoving:connect(function(v) | |
457 | if v.ClassName == "Player" then | |
458 | if v:IsFriendsWith(LocalPlayer.userId) then | |
459 | alert("Your friend "..v.Name.." has left the server") | |
460 | end | |
461 | spawn(function() | |
462 | for q, p in pairs(admins) do | |
463 | if Players:FindFirstChild(p) and v:IsFriendsWith(p.userId) then | |
464 | tabletalert("Your friend "..v.Name.." has left the server", Players:FindFirstChild(p)) | |
465 | end | |
466 | end | |
467 | end) | |
468 | end | |
469 | end) | |
470 | Players.ChildAdded:connect(function(v) | |
471 | wait() | |
472 | if v.ClassName == "Player" then | |
473 | if v:IsFriendsWith(LocalPlayer.userId) then | |
474 | alert("Your friend "..v.Name.." has joined the server") | |
475 | end | |
476 | spawn(function() | |
477 | for q, p in pairs(admins) do | |
478 | if Players:FindFirstChild(p) and v:IsFriendsWith(Players:FindFirstChild(p).userId) then | |
479 | tabletalert("Your friend "..v.Name.." has joined the server", Players:FindFirstChild(p)) | |
480 | end | |
481 | end | |
482 | end) | |
483 | if IsBanned(v) or slock then | |
484 | if not IsAdmin(v) then | |
485 | v.Character:MoveTo(Vector3.new(0,1000,0)) | |
486 | v.Character.Head:Destroy() | |
487 | skick(v) | |
488 | alert(v.Name.." tried to join") | |
489 | end | |
490 | else | |
491 | ChatEvent(v) | |
492 | end | |
493 | end | |
494 | end) | |
495 | print("[Plasma] asset ver - "..Plasma.pro.Value) | |
496 | ||
497 | if antiDisconnection == "true" then | |
498 | LocalPlayer.Idled:connect(function(time) | |
499 | time=time-1200 local count = 1 repeat wait() string.sub(tostring(time), count, count) count=count+1 until string.sub(tostring(time), count, count) == "." | |
500 | alert("You are idle. You will be disconnected in "..string.sub(tostring(time), 2, count-1).." seconds") | |
501 | end) | |
502 | end | |
503 | if game.PlaceId == 177052655 then | |
504 | local s, e = pcall(function() | |
505 | local function re() | |
506 | local found = false | |
507 | for _, v in pairs(LocalPlayer.PlayerGui:GetChildren()) do | |
508 | if v.Name:lower():find("no ff") then | |
509 | v:Destroy() | |
510 | found = true | |
511 | end | |
512 | end | |
513 | if found then | |
514 | alert("Removed anti-gui") | |
515 | end | |
516 | end | |
517 | re() | |
518 | LocalPlayer.CharacterAdded:connect(function() | |
519 | re() | |
520 | end) | |
521 | end) | |
522 | if s then alert("Loaded Twisted Murderer Settings") else alert("Twisted Murderer Settings Could Not Load") end | |
523 | end | |
524 | if antiToolSpam == "true" then | |
525 | added = 0 | |
526 | LocalPlayer.Backpack.ChildAdded:connect(function(ad) | |
527 | if added > 15 then | |
528 | ad:Destroy() | |
529 | LocalPlayer.Backpack.Name = "Backpack1" | |
530 | alert("Somenone tried to spam your tools") | |
531 | wait(1) | |
532 | LocalPlayer.Backpack1:ClearAllChildren() | |
533 | wait(2) | |
534 | LocalPlayer.Backpack1.Name = "Backpack" | |
535 | end | |
536 | added = added+1 | |
537 | spawn(function() | |
538 | wait(3) | |
539 | added = added-1 | |
540 | end) | |
541 | end) | |
542 | end | |
543 | function localcmdbar() | |
544 | local Mouse = LocalPlayer:GetMouse() | |
545 | local gui = Plasma.Guis.cmd.TextBox:Clone() | |
546 | gui.Parent = CoreGui.RobloxGui | |
547 | local active = false | |
548 | function animate() | |
549 | if not active then | |
550 | active = true | |
551 | gui.Visible = true | |
552 | gui.Position = UDim2.new(0, 0,0.7, -10) | |
553 | spawn(function() | |
554 | repeat wait()gui.BackgroundTransparency = gui.BackgroundTransparency-0.05 until gui.BackgroundTransparency<0.480 | |
555 | end) | |
556 | spawn(function() | |
557 | repeat wait()gui.TextTransparency = gui.TextTransparency-0.08 until gui.TextTransparency<0 | |
558 | end) | |
559 | else | |
560 | active = false | |
561 | spawn(function() | |
562 | for i=0,20 do | |
563 | gui.Position=gui.Position+UDim2.new(0,50,0,0) | |
564 | wait() | |
565 | end | |
566 | end) | |
567 | spawn(function() | |
568 | repeat wait()gui.BackgroundTransparency = gui.BackgroundTransparency+0.04 until gui.BackgroundTransparency>1 | |
569 | end) | |
570 | spawn(function() | |
571 | repeat wait()gui.TextTransparency = gui.TextTransparency+0.5 until gui.TextTransparency>1 | |
572 | end) | |
573 | end | |
574 | end | |
575 | Mouse.KeyDown:connect(function(Key)if Key=="'" then animate() end end) | |
576 | Mouse.KeyDown:connect(function(Key)if Key==";" then if active then gui:CaptureFocus() end end end) | |
577 | gui.FocusLost:connect(function(e) | |
578 | if e then | |
579 | HandleCommand(Prefix[1] .. gui.Text, LocalPlayer) | |
580 | gui.Text="Press ';' or click here to focus" | |
581 | end | |
582 | end) | |
583 | end | |
584 | localcmdbar() | |
585 | AddCommand({"kill", "breakjoints"},"plr", function(Speaker, Params) | |
586 | if Params[1] then | |
587 | local Plrs = FindPlayer(Params[1], Speaker) | |
588 | for i, v in pairs(Plrs) do | |
589 | if v and v.Character then | |
590 | v.Character:BreakJoints() | |
591 | end | |
592 | end | |
593 | end | |
594 | end) | |
595 | AddCommand({"kick"},"plr", function(Speaker, Params) | |
596 | if Params[1] then | |
597 | local Plrs = FindPlayer(Params[1], Speaker) | |
598 | for i, v in pairs(Plrs) do | |
599 | if v and v ~= Speaker then | |
600 | v.Character:MoveTo(Vector3.new(0,1000,0)) | |
601 | v.Character.Head:Destroy() | |
602 | skick(v) | |
603 | end | |
604 | end | |
605 | end | |
606 | end) | |
607 | AddCommand({"loopkill"},"plr", function(Speaker, Params) | |
608 | if Params[1] then | |
609 | local Plrs = FindPlayer(Params[1], Speaker) | |
610 | for i, v in pairs(Plrs) do | |
611 | spawn(function() | |
612 | local val = Instance.new("StringValue", CoreGui.RobloxGui) | |
613 | val.Name = v.Name.." loop kill" | |
614 | v.Character:BreakJoints() | |
615 | repeat wait() pcall(function()v.Character:BreakJoints()end) until val.Name ~= v.Name.." loop kill" | |
616 | end) | |
617 | ||
618 | end | |
619 | end | |
620 | end) | |
621 | AddCommand({"unloopkill"},"plr", function(Speaker, Params) | |
622 | if Params[1] then | |
623 | local Plrs = FindPlayer(Params[1], Speaker) | |
624 | for i, v in pairs(Plrs) do | |
625 | pcall(function() | |
626 | local p = CoreGui.RobloxGui[v.Name.." loop kill"] | |
627 | p.Name = "" | |
628 | p:Destroy() | |
629 | end) | |
630 | end | |
631 | end | |
632 | end) | |
633 | AddCommand({"time"},"num", function(Speaker, Params) | |
634 | if Params[1] then | |
635 | Lighting:SetMinutesAfterMidnight(tonumber(Params[1]) * 60) | |
636 | end | |
637 | end) | |
638 | AddCommand({"darken"}, function(Speaker, Params) | |
639 | Lighting.Ambient = Color3.new(0,0,0) | |
640 | Lighting.TimeOfDay = 0 | |
641 | Lighting.FogColor = Color3.new(0,0,0) | |
642 | Lighting.FogEnd = 100 | |
643 | end) | |
644 | AddCommand({"lighten"}, function(Speaker, Params) | |
645 | Lighting.Ambient = Color3.new(255/255,255/255,255/255) | |
646 | Lighting.FogColor = Color3.new(0,0,0) | |
647 | Lighting.FogEnd = 100000 | |
648 | end) | |
649 | AddCommand({"ban"},"plr", function(Speaker, Params) | |
650 | if Params[1] then | |
651 | local Plrs = FindPlayer(Params[1], Speaker) | |
652 | for i, v in pairs(Plrs) do | |
653 | if v then | |
654 | table.insert(bans, v.Name) | |
655 | alert(Speaker.Name.." banned "..v.Name) | |
656 | spawn(function() | |
657 | v.Character:MoveTo(Vector3.new(0,1000,0)) | |
658 | v.Character.Head:Destroy() | |
659 | skick(v) | |
660 | tabletalert("Banned "..v.Name, Speaker) | |
661 | savebans() | |
662 | end) | |
663 | end | |
664 | end | |
665 | end | |
666 | end) | |
667 | AddCommand({"admin"},"plr", function(Speaker, Params) | |
668 | if Params[1] then | |
669 | local Plrs = FindPlayer(Params[1], Speaker) | |
670 | for i, v in pairs(Plrs) do | |
671 | if not IsAdmin(v) then | |
672 | table.insert(admins, v.Name) | |
673 | tabletalert("You are now an admin!", v) | |
674 | alert(Speaker.Name.." has given admin to "..v.Name) | |
675 | end | |
676 | end | |
677 | end | |
678 | end) | |
679 | AddCommand({"unadmin"},"plr", function(Speaker, Params) | |
680 | if Params[1] then | |
681 | local Plrs = FindPlayer(Params[1], Speaker) | |
682 | for i, v in pairs(Plrs) do | |
683 | if v ~= LocalPlayer then | |
684 | for q, p in pairs(admins) do | |
685 | if v.Name:lower() == p:lower() then | |
686 | table.remove(admins, q) | |
687 | alert(Speaker.Name.." has removed admin from "..v.Name) | |
688 | end | |
689 | end | |
690 | end | |
691 | end | |
692 | end | |
693 | end) | |
694 | AddCommand({"age"},"plr", function(Speaker, Params) | |
695 | if Params[1] then | |
696 | local Plrs = FindPlayer(Params[1], Speaker) | |
697 | for i, v in pairs(Plrs) do | |
698 | if Speaker==LocalPlayer then | |
699 | alert(v.Name.."'s age is "..v.AccountAge.." days old") | |
700 | else | |
701 | tabletalert(v.Name.."'s age is "..v.AccountAge.." days old", Speaker) | |
702 | end | |
703 | end | |
704 | end | |
705 | end) | |
706 | AddCommand({"s","execute"},"script", function(Speaker, Params) | |
707 | if Params[1] then | |
708 | local sc = ""for _, v in pairs(Params)do sc=sc..v.." "end | |
709 | if Speaker==LocalPlayer then | |
710 | s, e = pcall(function()loadstring(sc)()end) | |
711 | if s then tabletalert("Successfully executed",Speaker) else tabletalert("Error: "..e,Speaker)end | |
712 | else | |
713 | if sc:lower():find("localplayer") or sc:lower():find("repeat") or sc:lower():find("playergui") or sc:lower():find("for i =") then | |
714 | tabletalert("Script filtered.",Speaker) | |
715 | else | |
716 | s, e = pcall(function()loadstring(sc)()end) | |
717 | if s then tabletalert("Successfully executed",Speaker) else tabletalert("Error: "..e,Speaker)end | |
718 | end | |
719 | end | |
720 | end | |
721 | end) | |
722 | AddCommand({"ambient"},"num num num", function(Speaker, Params) | |
723 | if Params[1] and Params[2] and Params[3] then | |
724 | Lighting.Ambient = Color3.new(Params[1]/255,Params[2]/255,Params[3]/255) | |
725 | end | |
726 | end) | |
727 | AddCommand({"brightness"},"num", function(Speaker, Params) | |
728 | if Params[1] then | |
729 | Lighting.Brightness = Params[1] | |
730 | end | |
731 | end) | |
732 | AddCommand({"bighead"},"plr", function(Speaker, Params) | |
733 | if Params[1] then | |
734 | local Plrs = FindPlayer(Params[1], Speaker) | |
735 | for i, v in pairs(Plrs) do | |
736 | local mesh = v.Character:FindFirstChild("Head"):FindFirstChild("Mesh") | |
737 | if mesh then | |
738 | mesh.Scale = Vector3.new(3,3,3) | |
739 | mesh.Offset = Vector3.new(0,0.8,0) | |
740 | end | |
741 | end | |
742 | end | |
743 | end) | |
744 | AddCommand({"normalhead"},"plr", function(Speaker, Params) | |
745 | if Params[1] then | |
746 | local Plrs = FindPlayer(Params[1], Speaker) | |
747 | for i, v in pairs(Plrs) do | |
748 | local mesh = v.Character:FindFirstChild("Head"):FindFirstChild("Mesh") | |
749 | if mesh then | |
750 | mesh.Scale = Vector3.new(1.25,1.25,1.25) | |
751 | mesh.Offset = Vector3.new(0,0,0) | |
752 | end | |
753 | end | |
754 | end | |
755 | end) | |
756 | AddCommand({"slock","serverlock"}, function(Speaker, Params) | |
757 | slock = true | |
758 | tabletalert("Server is locked", Speaker) | |
759 | alert("Server has been locked by "..Speaker.Name) | |
760 | end) | |
761 | AddCommand({"unslock","unserverlock"}, function(Speaker, Params) | |
762 | slock = false | |
763 | tabletalert("Server is unlocked", Speaker) | |
764 | alert("Server has been unlocked by "..Speaker.Name) | |
765 | end) | |
766 | AddCommand({"bring"},"plr", function(Speaker, Params) | |
767 | if Params[1] then | |
768 | local Plrs = FindPlayer(Params[1], Speaker) | |
769 | for i, v in pairs(Plrs) do | |
770 | for i=0,3 do | |
771 | v.Character.HumanoidRootPart.CFrame = Speaker.Character.HumanoidRootPart.CFrame | |
772 | wait() | |
773 | end | |
774 | end | |
775 | end | |
776 | end) | |
777 | AddCommand({"goto"},"plr", function(Speaker, Params) | |
778 | if Params[1] then | |
779 | local Plrs = FindPlayer(Params[1], Speaker) | |
780 | for i, v in pairs(Plrs) do | |
781 | for i=0,3 do | |
782 | Speaker.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame | |
783 | wait() | |
784 | end | |
785 | end | |
786 | end | |
787 | end) | |
788 | AddCommand({"tp"},"plr plr", function(Speaker, Params) | |
789 | if Params[1] and Params[2] then | |
790 | local Plrs = FindPlayer(Params[1], Speaker) | |
791 | local Plrs2 = FindPlayer(Params[2], Speaker) | |
792 | for i, v in pairs(Plrs) do | |
793 | for q, p in pairs(Plrs2) do | |
794 | for i=0,3 do | |
795 | v.Character.HumanoidRootPart.CFrame = p.Character.HumanoidRootPart.CFrame | |
796 | wait() | |
797 | end | |
798 | end | |
799 | end | |
800 | end | |
801 | end) | |
802 | AddCommand({"ws","speed","walkspeed"},"plr numb", function(Speaker, Params) | |
803 | if Params[1] and Params[2] then | |
804 | local Plrs = FindPlayer(Params[1], Speaker) | |
805 | for i, v in pairs(Plrs) do | |
806 | v.Character.Humanoid.WalkSpeed = Params[2] | |
807 | end | |
808 | end | |
809 | end) | |
810 | AddCommand({"size"},"plr numb", function(Speaker, Params) | |
811 | if Params[1] and Params[2] then | |
812 | local Plrs = FindPlayer(Params[1], Speaker) | |
813 | for i, v in pairs(Plrs) do | |
814 | if tonumber(Params[2]) > 50 then | |
815 | Params[2] = 50 | |
816 | end | |
817 | sizeofplr = Params[2] | |
818 | local ags = {c = v.Character, t = v.Character.Torso, r = v.Character.HumanoidRootPart} | |
819 | ags.t.Anchored = true ags.t.BottomSurface = 0 ags.t.TopSurface = 0 | |
820 | local welds = {} | |
821 | for i2,v2 in pairs(ags.c:children()) do | |
822 | if v2:IsA('BasePart') then | |
823 | v2.Anchored = true | |
824 | end | |
825 | end | |
826 | local function size(p) | |
827 | for i2,v2 in pairs(p:children()) do | |
828 | if (v2:IsA('Weld') or v2:IsA('Motor') or v2:IsA('Motor6D')) and v2.Part1 and v2.Part1:IsA("Part") then | |
829 | local p1 = v2.Part1 | |
830 | p1.Anchored = true | |
831 | v2.Part1 = nil | |
832 | local r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12 = v2.C0:components() v2.C0 = CFrame.new(r1*sizeofplr,r2*sizeofplr,r3*sizeofplr,r4,r5,r6,r7,r8,r9,r10,r11,r12) | |
833 | local r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12 = v2.C1:components() v2.C1 = CFrame.new(r1*sizeofplr,r2*sizeofplr,r3*sizeofplr,r4,r5,r6,r7,r8,r9,r10,r11,r12) | |
834 | if p1.Name ~= 'Head' and p1.Name ~= 'Torso' then | |
835 | p1.formFactor = 3 | |
836 | p1.Size = p1.Size*sizeofplr | |
837 | elseif p1.Name ~= 'Torso' then | |
838 | p1.Anchored = true | |
839 | for i3,v3 in pairs(p1:children()) do if v3:IsA('Weld') then v3.Part0 = nil v3.Part1.Anchored = true end end | |
840 | p1.formFactor = 3 p1.Size = p1.Size*sizeofplr | |
841 | for i3,v3 in pairs(p1:children()) do if v3:IsA('Weld') then v3.Part0 = p1 v3.Part1.Anchored = false end end | |
842 | end | |
843 | if v2.Parent == ags.t then p1.BottomSurface = 0 p1.TopSurface = 0 end | |
844 | p1.Anchored = false | |
845 | v2.Part1 = p1 | |
846 | if v2.Part0 == ags.t then table.insert(welds,v2) p1.Anchored = true v2.Part0 = nil end | |
847 | elseif v2:IsA('CharacterMesh') then | |
848 | local bp = tostring(v2.BodyPart):match('%w+.%w+.(%w+)') | |
849 | local msh = Instance.new('SpecialMesh') | |
850 | elseif v2:IsA('SpecialMesh') and v2.Parent ~= ags.c.Head then | |
851 | v2.Scale = v2.Scale*sizeofplr | |
852 | end | |
853 | size(v2) | |
854 | end | |
855 | end | |
856 | size(ags.c) | |
857 | ags.t.formFactor = 3 | |
858 | ags.t.Size = ags.t.Size*sizeofplr | |
859 | for i2,v2 in pairs(welds) do v2.Part0 = ags.t v2.Part1.Anchored = false end | |
860 | for i2,v2 in pairs(ags.c:children()) do if v2:IsA('BasePart') then v2.Anchored = false end end | |
861 | local weld = Instance.new('Weld',ags.r) weld.Part0 = ags.r weld.Part1 = ags.t | |
862 | end | |
863 | end | |
864 | end) | |
865 | AddCommand({"face"},"plr numb", function(Speaker, Params) | |
866 | if Params[1] and Params[2] then | |
867 | local Plrs = FindPlayer(Params[1], Speaker) | |
868 | for i, v in pairs(Plrs) do | |
869 | v.Character.Head.face.Texture = "rbxassetid://"..Params[2] | |
870 | end | |
871 | end | |
872 | end) | |
873 | AddCommand({"fling"},"plr", function(Speaker, Params) | |
874 | if Params[1] then | |
875 | local Plrs = FindPlayer(Params[1], Speaker) | |
876 | for i, v in pairs(Plrs) do | |
877 | v.Character.Humanoid.Sit = true | |
878 | v.Character.Torso.Velocity = Vector3.new(0,0,0) | |
879 | local frc = Instance.new("BodyForce", v.Character.Torso) | |
880 | frc.force = Vector3.new(math.random(-9999,9999)*4,9999*5,math.random(-9999,9999)*4) | |
881 | table.insert(objects, frc) | |
882 | end | |
883 | end | |
884 | end) | |
885 | AddCommand({"change"},"plr stat numb", function(Speaker, Params) | |
886 | if Params[1] and Params[2] and Params[3]then | |
887 | local Plrs = FindPlayer(Params[1], Speaker) | |
888 | for i, v in pairs(Plrs) do | |
889 | if v:FindFirstChild("leaderstats") then | |
890 | for q, p in pairs(v.leaderstats:GetChildren()) do | |
891 | if p.Name:lower() == Params[2]:lower() then | |
892 | p.Value = Params[3] | |
893 | end | |
894 | end | |
895 | end | |
896 | end | |
897 | end | |
898 | end) | |
899 | AddCommand({"cape"},"plr white/black", function(Speaker, Params) | |
900 | if Params[1] and Params[2] then | |
901 | local Plrs = FindPlayer(Params[1], Speaker) | |
902 | for i, v in pairs(Plrs) do | |
903 | spawn(function() | |
904 | if v.Character:FindFirstChild("Cape") then v.Character.Cape:Destroy() end | |
905 | local cap = Plasma.Parts.Cape:Clone() | |
906 | if Params[2]:lower() == "white" then | |
907 | cap.BrickColor=BrickColor.new("Institutional white") | |
908 | elseif Params[2]:lower() == "red" then | |
909 | cap.BrickColor=BrickColor.new("Really red") | |
910 | elseif Params[2]:lower() == "blue" then | |
911 | cap.BrickColor=BrickColor.new("Really blue") | |
912 | elseif Params[2]:lower() == "green" then | |
913 | cap.BrickColor=BrickColor.new("Lime green") | |
914 | elseif Params[2]:lower() == "yellow" then | |
915 | cap.BrickColor=BrickColor.new("New Yeller") | |
916 | elseif Params[2]:lower() == "black" then | |
917 | cap.BrickColor=BrickColor.new("Really black") | |
918 | elseif Params[2]:lower() == "pink" then | |
919 | cap.BrickColor=BrickColor.new("Hot pink") | |
920 | elseif Params[2]:lower() == "plasma" then | |
921 | cap.BrickColor=BrickColor.new("Really black") | |
922 | cap.Decal.Transparency = 0 | |
923 | end | |
924 | local weld = Instance.new("Weld") | |
925 | weld.Part0 = cap | |
926 | weld.Part1 = v.Character.Torso | |
927 | weld.C0 = CFrame.new() | |
928 | weld.C1 = CFrame.new(0,-1,0.6) * CFrame.Angles(-0.1, 0, 0) | |
929 | weld.Parent = cap | |
930 | cap.Parent = v.Character | |
931 | v.Character.Humanoid.Running:connect(function(speed) | |
932 | if speed > 0 then | |
933 | weld.C1 = CFrame.new(0,-0.8,1.35) * CFrame.Angles(-0.5, 0, 0) | |
934 | else | |
935 | weld.C1 = CFrame.new(0,-1,0.6) * CFrame.Angles(-0.1, 0, 0) | |
936 | end | |
937 | end) | |
938 | end) | |
939 | end | |
940 | end | |
941 | end) | |
942 | AddCommand({"explode"},"plr", function(Speaker, Params) | |
943 | if Params[1] then | |
944 | local Plrs = FindPlayer(Params[1], Speaker) | |
945 | for i, v in pairs(Plrs) do | |
946 | spawn(function()for x=0,10 do local ex = Instance.new("Explosion") ex.BlastRadius = 100 ex.Position = v.Character.Torso.Position ex.Parent = v.Character wait()end end) | |
947 | end | |
948 | end | |
949 | end) | |
950 | AddCommand({"uncape"},"plr", function(Speaker, Params) | |
951 | if Params[1] then | |
952 | local Plrs = FindPlayer(Params[1], Speaker) | |
953 | for i, v in pairs(Plrs) do | |
954 | if v.Character:FindFirstChild("Cape") then v.Character.Cape:Destroy() end | |
955 | end | |
956 | end | |
957 | end) | |
958 | AddCommand({"god"},"plr", function(Speaker, Params) | |
959 | if Params[1] then | |
960 | local Plrs = FindPlayer(Params[1], Speaker) | |
961 | for i, v in pairs(Plrs) do | |
962 | v.Character.Humanoid.MaxHealth = math.huge | |
963 | end | |
964 | end | |
965 | end) | |
966 | AddCommand({"ungod"},"plr", function(Speaker, Params) | |
967 | if Params[1] then | |
968 | local Plrs = FindPlayer(Params[1], Speaker) | |
969 | for i, v in pairs(Plrs) do | |
970 | v.Character.Humanoid.MaxHealth = 100 | |
971 | end | |
972 | end | |
973 | end) | |
974 | AddCommand({"health"},"plr num", function(Speaker, Params) | |
975 | if Params[1] and Params[2] then | |
976 | local Plrs = FindPlayer(Params[1], Speaker) | |
977 | for i, v in pairs(Plrs) do | |
978 | v.Character.Humanoid.MaxHealth = Params[2] | |
979 | v.Character.Humanoid.Health = Params[2]-1 | |
980 | end | |
981 | end | |
982 | end) | |
983 | AddCommand({"heal"},"plr", function(Speaker, Params) | |
984 | if Params[1] then | |
985 | local Plrs = FindPlayer(Params[1], Speaker) | |
986 | for i, v in pairs(Plrs) do | |
987 | v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth | |
988 | end | |
989 | end | |
990 | end) | |
991 | AddCommand({"invisible","invis"},"plr", function(Speaker, Params) | |
992 | if Params[1] then | |
993 | local Plrs = FindPlayer(Params[1], Speaker) | |
994 | for i, v in pairs(Plrs) do | |
995 | if v.Character.Head:FindFirstChild("face") then | |
996 | v.Character.Head.face.Parent = v.Character | |
997 | end | |
998 | invis = | |
999 | function(instance) | |
1000 | for i,v in pairs(instance:GetChildren()) do | |
1001 | if v:IsA("BasePart") then | |
1002 | v.Transparency = 1 | |
1003 | end | |
1004 | invis(v) | |
1005 | end | |
1006 | end | |
1007 | invis(v.Character) | |
1008 | end | |
1009 | end | |
1010 | end) | |
1011 | AddCommand({"visible","vis"},"plr", function(Speaker, Params) | |
1012 | if Params[1] then | |
1013 | local Plrs = FindPlayer(Params[1], Speaker) | |
1014 | for i, v in pairs(Plrs) do | |
1015 | if v.Character:FindFirstChild("face") then | |
1016 | v.Character.face.Parent = v.Character.Head | |
1017 | end | |
1018 | vis = | |
1019 | function(instance) | |
1020 | for i,v in pairs(instance:GetChildren()) do | |
1021 | if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then | |
1022 | v.Transparency = 0 | |
1023 | end | |
1024 | vis(v) | |
1025 | end | |
1026 | end | |
1027 | vis(v.Character) | |
1028 | end | |
1029 | end | |
1030 | end) | |
1031 | AddCommand({"btools"},"plr", function(Speaker, Params) | |
1032 | if Params[1] then | |
1033 | local Plrs = FindPlayer(Params[1], Speaker) | |
1034 | for i, v in pairs(Plrs) do | |
1035 | local a = Instance.new("HopperBin", v.Backpack) a.BinType = 2 a.TextureId = "" a.Name = "Move tool" | |
1036 | local b = Instance.new("HopperBin", v.Backpack) b.BinType = 3 b.TextureId = "" b.Name = "Copy tool" | |
1037 | local c = Instance.new("HopperBin", v.Backpack) c.BinType = 4 c.TextureId = "" c.Name = "Delete tool" | |
1038 | local d = game:GetService("InsertService"):LoadAsset(18474459):GetChildren()[1] d.Parent = v.Backpack d.TextureId = "" d.Name = "Paint tool" | |
1039 | end | |
1040 | end | |
1041 | end) | |
1042 | AddCommand({"char"},"plr numb", function(Speaker, Params) | |
1043 | if Params[1] and Params[2] then | |
1044 | local Plrs = FindPlayer(Params[1], Speaker) | |
1045 | for i, v in pairs(Plrs) do | |
1046 | v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..Params[2] | |
1047 | v.Character:BreakJoints() | |
1048 | end | |
1049 | end | |
1050 | end) | |
1051 | AddCommand({"unchar"},"plr", function(Speaker, Params) | |
1052 | if Params[1] then | |
1053 | local Plrs = FindPlayer(Params[1], Speaker) | |
1054 | for i, v in pairs(Plrs) do | |
1055 | v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..v.userId | |
1056 | v.Character:BreakJoints() | |
1057 | end | |
1058 | end | |
1059 | end) | |
1060 | AddCommand({"punish"},"plr", function(Speaker, Params) | |
1061 | if Params[1] then | |
1062 | local Plrs = FindPlayer(Params[1], Speaker) | |
1063 | for i, v in pairs(Plrs) do | |
1064 | v.Character.Parent = Lighting | |
1065 | end | |
1066 | end | |
1067 | end) | |
1068 | AddCommand({"unpunish"},"plr", function(Speaker, Params) | |
1069 | if Params[1] then | |
1070 | local Plrs = FindPlayer(Params[1], Speaker) | |
1071 | for i, v in pairs(Plrs) do | |
1072 | v.Character.Parent = Workspace | |
1073 | end | |
1074 | end | |
1075 | end) | |
1076 | AddCommand({"music", "setmusic"},"music id", function(Speaker, Params) | |
1077 | if Params[1] then | |
1078 | for i, v in pairs(Workspace:children()) do if v:IsA("Sound") then v:Destroy() end end | |
1079 | if Workspace:FindFirstChild("PlasmaMusic") then | |
1080 | Workspace.PlasmaMusic:ClearAllChildren() | |
1081 | else | |
1082 | local m = Instance.new("Model", Workspace) | |
1083 | m.Name = "PlasmaMusic" | |
1084 | end | |
1085 | local s = Instance.new("Sound", Workspace.PlasmaMusic) | |
1086 | s.SoundId = "http://www.roblox.com/asset/?id=" .. Params[1] | |
1087 | s.Volume = 1 | |
1088 | s.Pitch = 1 | |
1089 | s.Looped = true | |
1090 | wait(1) | |
1091 | s:Play() | |
1092 | end | |
1093 | end) | |
1094 | AddCommand({"stopmusic", "unmusic"}, function(Speaker, Params) | |
1095 | for i, v in pairs(Workspace:children()) do if v:IsA("Sound") then v:Destroy() end end | |
1096 | if Workspace:FindFirstChild("PlasmaMusic") then | |
1097 | Workspace.PlasmaMusic:ClearAllChildren() | |
1098 | end | |
1099 | end) | |
1100 | AddCommand({"flare"},"plr", function(Speaker, Params) | |
1101 | if Params[1] then | |
1102 | local Plrs = FindPlayer(Params[1], Speaker) | |
1103 | for i, v in pairs(Plrs) do | |
1104 | local flare = Plasma.Parts.flareLight:Clone() | |
1105 | flare.Parent = v.Character.Torso | |
1106 | flare.Enabled = true | |
1107 | local light = Instance.new("PointLight", v.Character.Torso) | |
1108 | light.Brightness = 5 | |
1109 | light.Color = Color3.new(255/255,0/255,0/255) | |
1110 | light.Range = 10 | |
1111 | light.Name = "flarelight" | |
1112 | end | |
1113 | end | |
1114 | end) | |
1115 | AddCommand({"rocket"},"plr", function(Speaker, Params) | |
1116 | if Params[1] then | |
1117 | local Plrs = FindPlayer(Params[1], Speaker) | |
1118 | for i, v in pairs(Plrs) do | |
1119 | spawn(function() | |
1120 | local rocket = Plasma.Parts.Rocket:Clone() | |
1121 | local weld = Instance.new("Weld") | |
1122 | weld.Part0 = rocket | |
1123 | weld.Part1 = v.Character.Torso | |
1124 | weld.C0 = CFrame.new() | |
1125 | weld.C1 = CFrame.new(0,1,0.9) * CFrame.Angles(-0.05, 0, 0) | |
1126 | weld.Parent = rocket | |
1127 | rocket.Parent = v.Character | |
1128 | rocket.ParticleEmitter.Enabled = true | |
1129 | wait(0.5) | |
1130 | local Force = Instance.new("BodyForce", v.Character.Torso) | |
1131 | Force.force = Vector3.new(0,10300,0) | |
1132 | wait(1.5) | |
1133 | local expload = Instance.new("Explosion", Workspace) | |
1134 | expload.Position = v.Character.Torso.Position | |
1135 | end) | |
1136 | end | |
1137 | end | |
1138 | end) | |
1139 | AddCommand({"jail"},"plr", function(Speaker, Params) | |
1140 | if Params[1] then | |
1141 | local Plrs = FindPlayer(Params[1], Speaker) | |
1142 | for i, v in pairs(Plrs) do | |
1143 | spawn(function() | |
1144 | local jail = Plasma.Parts.jail:Clone() | |
1145 | jail.Parent = Workspace | |
1146 | jail:MoveTo(v.Character.Torso.Position) | |
1147 | jail.Name = v.Name.."'s jail" | |
1148 | v.Character.HumanoidRootPart.CFrame = jail.spawn.CFrame | |
1149 | ||
1150 | local event = v.CharacterAdded:connect(function() | |
1151 | v.Character:WaitForChild("HumanoidRootPart").CFrame = jail.spawn.CFrame | |
1152 | wait(2) | |
1153 | v.Character.HumanoidRootPart.CFrame = jail.spawn.CFrame | |
1154 | end) | |
1155 | local event2 = Workspace.ChildRemoved:connect(function(x) | |
1156 | pcall(function() | |
1157 | if x == jail then | |
1158 | event:disconnect() | |
1159 | event2:disconnect() | |
1160 | end | |
1161 | end) | |
1162 | end) | |
1163 | end) | |
1164 | end | |
1165 | end | |
1166 | end) | |
1167 | AddCommand({"unjail"},"plr", function(Speaker, Params) | |
1168 | if Params[1] then | |
1169 | local Plrs = FindPlayer(Params[1], Speaker) | |
1170 | for i, v in pairs(Plrs) do | |
1171 | spawn(function() | |
1172 | if Workspace:FindFirstChild(v.Name.."'s jail") then | |
1173 | Workspace[v.Name.."'s jail"]:Destroy() | |
1174 | end | |
1175 | end) | |
1176 | end | |
1177 | end | |
1178 | end) | |
1179 | AddCommand({"hang"},"plr", function(Speaker, Params) | |
1180 | if Params[1] then | |
1181 | local Plrs = FindPlayer(Params[1], Speaker) | |
1182 | for i, v in pairs(Plrs) do | |
1183 | plr = v.Character | |
1184 | plr.HumanoidRootPart.Anchored = true | |
1185 | hang = Plasma.Parts.hang:Clone() | |
1186 | hang.Parent = plr | |
1187 | hang:MoveTo(plr.Torso.Position-Vector3.new(0,0,5)) | |
1188 | pcall(function() | |
1189 | plr.HumanoidRootPart.CFrame = hang.main.CFrame | |
1190 | function weld(p, cf) | |
1191 | local weld1 = Instance.new("Weld") | |
1192 | weld1.Part0 = p | |
1193 | weld1.Part1 = plr.Torso | |
1194 | weld1.C0 = CFrame.new() | |
1195 | weld1.C1 = cf | |
1196 | weld1.Parent = p | |
1197 | end | |
1198 | weld(plr["Right Arm"], CFrame.new(0.8,0.3,-0.6) * CFrame.Angles(0, 0.5, 4)) | |
1199 | weld(plr["Left Arm"], CFrame.new(-0.8,0.3,-0.6) * CFrame.Angles(0, -0.5, -4)) | |
1200 | plr.Humanoid.Name = "Humanoid1" | |
1201 | end) | |
1202 | end | |
1203 | end | |
1204 | end) | |
1205 | AddCommand({"unhang"},"plr", function(Speaker, Params) | |
1206 | if Params[1] then | |
1207 | local Plrs = FindPlayer(Params[1], Speaker) | |
1208 | for i, v in pairs(Plrs) do | |
1209 | v.Character.Head:Destroy() | |
1210 | end | |
1211 | end | |
1212 | end) | |
1213 | AddCommand({"clearbase"},"plr -only for babasf", function(Speaker, Params) | |
1214 | if Params[1] then | |
1215 | local Plrs = FindPlayer(Params[1], Speaker) | |
1216 | for i, v in pairs(Plrs) do | |
1217 | if Workspace:FindFirstChild("ActiveParts") then | |
1218 | Workspace.ActiveParts[v.Name.."'s parts"]:ClearAllChildren() | |
1219 | end | |
1220 | end | |
1221 | end | |
1222 | end) | |
1223 | AddCommand({"unflare"},"plr", function(Speaker, Params) | |
1224 | if Params[1] then | |
1225 | local Plrs = FindPlayer(Params[1], Speaker) | |
1226 | for i, v in pairs(Plrs) do | |
1227 | for _, p in pairs(v.Character.Torso:GetChildren()) do | |
1228 | if p.Name == "flareLight" or p.Name == "flarelight" then | |
1229 | p:Destroy() | |
1230 | end | |
1231 | end | |
1232 | end | |
1233 | end | |
1234 | end) | |
1235 | AddCommand({"damage"},"plr numb", function(Speaker, Params) | |
1236 | if Params[1] and Params[2] then | |
1237 | local Plrs = FindPlayer(Params[1], Speaker) | |
1238 | for i, v in pairs(Plrs) do | |
1239 | v.Character.Humanoid.Health = v.Character.Humanoid.Health-Params[2] | |
1240 | end | |
1241 | end | |
1242 | end) | |
1243 | AddCommand({"fix"}, function(Speaker, Params) | |
1244 | Lighting.Ambient = orginalGameSettings.ambient | |
1245 | Lighting.Brightness = orginalGameSettings.brightness | |
1246 | Lighting.GlobalShadows = orginalGameSettings.gshadows | |
1247 | Lighting.Outlines = orginalGameSettings.outlines | |
1248 | Lighting.ShadowColor = orginalGameSettings.shadowcolor | |
1249 | Lighting.TimeOfDay = orginalGameSettings.timeset | |
1250 | Lighting.FogColor = orginalGameSettings.fogcolor | |
1251 | Lighting.OutdoorAmbient = orginalGameSettings.outdoorambient | |
1252 | Lighting.FogEnd = orginalGameSettings.fogend | |
1253 | Lighting.FogStart = Lighting.fogstart | |
1254 | end) | |
1255 | ||
1256 | AddCommand({"disco"}, function(Speaker, Params) | |
1257 | discoset=true | |
1258 | repeat | |
1259 | if discoset==false then return end | |
1260 | local color = Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255) | |
1261 | Lighting.Ambient = color | |
1262 | Lighting.OutdoorAmbient = color | |
1263 | Lighting.FogColor = color | |
1264 | wait(0.1) | |
1265 | until discoset==false | |
1266 | end) | |
1267 | AddCommand({"undisco"}, function(Speaker, Params) | |
1268 | discoset=false | |
1269 | end) | |
1270 | AddCommand({"removetools","rtools"},"plr", function(Speaker, Params) | |
1271 | if Params[1] then | |
1272 | local Plrs = FindPlayer(Params[1], Speaker) | |
1273 | for i, v in pairs(Plrs) do | |
1274 | v.Backpack:ClearAllChildren() | |
1275 | end | |
1276 | end | |
1277 | end) | |
1278 | AddCommand({"clone"},"plr", function(Speaker, Params) | |
1279 | if Params[1] then | |
1280 | local Plrs = FindPlayer(Params[1], Speaker) | |
1281 | for i, v in pairs(Plrs) do | |
1282 | if v and v.Character then | |
1283 | v.Character.Archivable = true | |
1284 | local cl = v.Character:Clone() | |
1285 | cl.Parent = Workspace | |
1286 | table.insert(objects,cl) | |
1287 | cl:MoveTo(v.Character:GetModelCFrame().p) | |
1288 | cl:MakeJoints() | |
1289 | v.Character.Archivable = false | |
1290 | end | |
1291 | end | |
1292 | end | |
1293 | end) | |
1294 | AddCommand({"clean","clr"}, function(Speaker, Params) | |
1295 | for _, v in pairs(objects) do v:Destroy() end | |
1296 | objects = {} | |
1297 | end) | |
1298 | AddCommand({"clearterrain"}, function(Speaker, Params) | |
1299 | if Params[1] and Params[2] then | |
1300 | local Plrs = FindPlayer(Params[1], Speaker) | |
1301 | for i, v in pairs(Plrs) do | |
1302 | Workspace.Terrain:Clear() | |
1303 | end | |
1304 | end | |
1305 | end) | |
1306 | ||
1307 | AddCommand({"ff"},"plr", function(Speaker, Params) | |
1308 | if Params[1] then | |
1309 | local Plrs = FindPlayer(Params[1], Speaker) | |
1310 | for i, v in pairs(Plrs) do | |
1311 | Instance.new("ForceField", v.Character) | |
1312 | end | |
1313 | end | |
1314 | end) | |
1315 | AddCommand({"tchat"},"plr str", function(Speaker, Params) | |
1316 | if Params[1] then | |
1317 | local Plrs = FindPlayer(Params[1], Speaker) | |
1318 | local chat = "" | |
1319 | for i, v in pairs(Params) do | |
1320 | chat = chat .. v .. " " | |
1321 | end | |
1322 | tabletalert(chat, Speaker) | |
1323 | end | |
1324 | end) | |
1325 | AddCommand({"unff"},"plr", function(Speaker, Params) | |
1326 | if Params[1] then | |
1327 | local Plrs = FindPlayer(Params[1], Speaker) | |
1328 | for i, v in pairs(Plrs) do | |
1329 | for x, k in pairs(v.Character:GetChildren()) do | |
1330 | if k.Name == "ForceField" then | |
1331 | k:Destroy() | |
1332 | end | |
1333 | end | |
1334 | end | |
1335 | end | |
1336 | end) | |
1337 | AddCommand({"fire"},"plr (r b g)", function(Speaker, Params) | |
1338 | if Params[1] then | |
1339 | local Plrs = FindPlayer(Params[1], Speaker) | |
1340 | for i, v in pairs(Plrs) do | |
1341 | local f = Instance.new("Fire", v.Character.Torso) f.Size = 10 | |
1342 | if Params[2] then | |
1343 | f.Color = Color3.new(Params[2]/255,Params[3]/255,Params[4]/255) | |
1344 | end | |
1345 | end | |
1346 | end | |
1347 | end) | |
1348 | AddCommand({"sparkles","sp"},"plr (r b g)", function(Speaker, Params) | |
1349 | if Params[1] then | |
1350 | local Plrs = FindPlayer(Params[1], Speaker) | |
1351 | for i, v in pairs(Plrs) do | |
1352 | local s = Instance.new("Sparkles", v.Character.Torso) | |
1353 | if Params[2] then | |
1354 | s.SparkleColor = Color3.new(Params[2]/255,Params[3]/255,Params[4]/255) | |
1355 | end | |
1356 | end | |
1357 | end | |
1358 | end) | |
1359 | AddCommand({"unsparkles","unsp"},"plr", function(Speaker, Params) | |
1360 | if Params[1] then | |
1361 | local Plrs = FindPlayer(Params[1], Speaker) | |
1362 | for i, v in pairs(Plrs) do | |
1363 | if v.Character.Torso:FindFirstChild("Sparkles") then | |
1364 | v.Character.Torso.Sparkles:Destroy() | |
1365 | end | |
1366 | end | |
1367 | end | |
1368 | end) | |
1369 | AddCommand({"unfire"},"plr", function(Speaker, Params) | |
1370 | if Params[1] then | |
1371 | local Plrs = FindPlayer(Params[1], Speaker) | |
1372 | for i, v in pairs(Plrs) do | |
1373 | if v.Character.Torso:FindFirstChild("Fire") then | |
1374 | v.Character.Torso.Fire:Destroy() | |
1375 | end | |
1376 | end | |
1377 | end | |
1378 | end) | |
1379 | AddCommand({"gear"},"plr num", function(Speaker, Params) | |
1380 | if Params[1] and Params[2] then | |
1381 | local Plrs = FindPlayer(Params[1], Speaker) | |
1382 | local gr = game:GetService("InsertService"):LoadAsset(Params[2]):GetChildren()[1] | |
1383 | for i, v in pairs(Plrs) do | |
1384 | if v and v.Backpack then | |
1385 | gr:Clone().Parent = v.Backpack | |
1386 | end | |
1387 | end | |
1388 | end | |
1389 | end) | |
1390 | AddCommand({"copytools","stealtools"},"plr plr", function(Speaker, Params) | |
1391 | if Params[1] and Params[2] then | |
1392 | local Plrs = FindPlayer(Params[1], Speaker) | |
1393 | local Plrs2 = FindPlayer(Params[2], Speaker) | |
1394 | for i, v in pairs(Plrs) do | |
1395 | for q, p in pairs(Plrs2) do | |
1396 | for _, k in pairs(v.Backpack:GetChildren()) do | |
1397 | k:Clone().Parent = p.Backpack | |
1398 | end | |
1399 | end | |
1400 | end | |
1401 | end | |
1402 | end) | |
1403 | AddCommand({"nograv", "nogravity"},"plr", function(Speaker, Params) | |
1404 | if Params[1] then | |
1405 | local Plrs = FindPlayer(Params[1], Speaker) | |
1406 | for i, v in pairs(Plrs) do | |
1407 | if v and v.Character and v.Character:findFirstChild("Torso") then | |
1408 | local frc = Instance.new("BodyForce", v.Character.Torso) frc.Name = "pl_frc" frc.force = Vector3.new(0,0,0) | |
1409 | for a, prt in pairs(v.Character:children()) do | |
1410 | if prt:IsA("BasePart") then | |
1411 | frc.force = frc.force + Vector3.new(0,prt:GetMass()*150,0) | |
1412 | elseif prt:IsA("Hat") then | |
1413 | frc.force = frc.force + Vector3.new(0,prt.Handle:GetMass()*150,0) | |
1414 | end | |
1415 | end | |
1416 | end | |
1417 | end | |
1418 | end | |
1419 | end) | |
1420 | AddCommand({"grav"},"plr", function(Speaker, Params) | |
1421 | local Plrs = FindPlayer(Params[1], Speaker) | |
1422 | for i, v in pairs(Plrs) do | |
1423 | if v.Character.Torso:FindFirstChild("pl_frc") then | |
1424 | v.Character.Torso["pl_frc"]:Destroy() | |
1425 | end | |
1426 | end | |
1427 | end) | |
1428 | AddCommand({"drop", "trip"},"plr", function(Speaker, Params) | |
1429 | if Params[1] then | |
1430 | local Plrs = FindPlayer(Params[1], Speaker) | |
1431 | for i, v in pairs(Plrs) do | |
1432 | v.Character.Humanoid.PlatformStand = true | |
1433 | end | |
1434 | end | |
1435 | end) | |
1436 | AddCommand({"jump"},"plr", function(Speaker, Params) | |
1437 | if Params[1] then | |
1438 | local Plrs = FindPlayer(Params[1], Speaker) | |
1439 | for i, v in pairs(Plrs) do | |
1440 | v.Character.Humanoid.Jump = true | |
1441 | end | |
1442 | end | |
1443 | end) | |
1444 | AddCommand({"sit"},"plr", function(Speaker, Params) | |
1445 | if Params[1] then | |
1446 | local Plrs = FindPlayer(Params[1], Speaker) | |
1447 | for i, v in pairs(Plrs) do | |
1448 | v.Character.Humanoid.Sit = true | |
1449 | end | |
1450 | end | |
1451 | end) | |
1452 | AddCommand({"headless"},"plr", function(Speaker, Params) | |
1453 | if Params[1] then | |
1454 | local Plrs = FindPlayer(Params[1], Speaker) | |
1455 | for i, v in pairs(Plrs) do | |
1456 | v.Character.Head.Transparency = 1 | |
1457 | pcall(function()v.Character.Head.face:Destroy()end) | |
1458 | end | |
1459 | end | |
1460 | end) | |
1461 | AddCommand({"hat"},"plr id", function(Speaker, Params) | |
1462 | if Params[1] and Params[2] then | |
1463 | local Plrs = FindPlayer(Params[1], Speaker) | |
1464 | if #Plrs > 0 then | |
1465 | local gr = game:GetService("InsertService"):LoadAsset(Params[2]):GetChildren()[1] | |
1466 | for i, v in pairs(Plrs) do | |
1467 | if v and v.Backpack then | |
1468 | gr:Clone().Parent = v.Character | |
1469 | end | |
1470 | end | |
1471 | end | |
1472 | end | |
1473 | end) | |
1474 | AddCommand({"freeze"},"plr", function(Speaker, Params) | |
1475 | if Params[1] then | |
1476 | local Plrs = FindPlayer(Params[1], Speaker) | |
1477 | for i, v in pairs(Plrs) do | |
1478 | v.Character.Torso.Anchored = true | |
1479 | end | |
1480 | end | |
1481 | end) | |
1482 | AddCommand({"thaw"},"plr", function(Speaker, Params) | |
1483 | if Params[1] then | |
1484 | local Plrs = FindPlayer(Params[1], Speaker) | |
1485 | for i, v in pairs(Plrs) do | |
1486 | for x, p in pairs(v.Character:GetChildren()) do | |
1487 | if p.ClassName == "Part" then | |
1488 | p.Anchored = false | |
1489 | end | |
1490 | end | |
1491 | v.Character.Humanoid.WalkSpeed = 16 | |
1492 | end | |
1493 | end | |
1494 | end) | |
1495 | AddCommand({"skybox"},"id", function(Speaker, Params) | |
1496 | if Params[1] then | |
1497 | for i, v in pairs(Lighting:GetChildren()) do | |
1498 | if v:IsA("Sky") then | |
1499 | v:Destroy() | |
1500 | end | |
1501 | end | |
1502 | local id = "rbxassetid://" .. Params[1] | |
1503 | local sk = Instance.new("Sky", Lighting) | |
1504 | sk.SkyboxBk = id | |
1505 | sk.SkyboxDn = id | |
1506 | sk.SkyboxFt = id | |
1507 | sk.SkyboxLf = id | |
1508 | sk.SkyboxRt = id | |
1509 | sk.SkyboxUp = id | |
1510 | end | |
1511 | end) | |
1512 | AddCommand({"name"},"plr str", function(Speaker, Params) | |
1513 | if Params[1] and Params[2] then | |
1514 | local Plrs = FindPlayer(Params[1], Speaker) | |
1515 | local name = "" | |
1516 | for i, v in pairs(Params) do | |
1517 | if i ~= 1 then | |
1518 | name = name .. v .. " " | |
1519 | end | |
1520 | end | |
1521 | for i, v in pairs(Plrs) do | |
1522 | v.Character.Name = name | |
1523 | end | |
1524 | end | |
1525 | end) | |
1526 | AddCommand({"chat"},"plr str", function(Speaker, Params) | |
1527 | if Params[1] and Params[2] then | |
1528 | local Plrs = FindPlayer(Params[1], Speaker) | |
1529 | local chat = "" | |
1530 | local ChatService = game:GetService("Chat") | |
1531 | for i, v in pairs(Params) do | |
1532 | if i ~= 1 then | |
1533 | chat = chat .. v .. " " | |
1534 | end | |
1535 | end | |
1536 | for i, v in pairs(Plrs) do | |
1537 | ChatService:Chat(v.Character.Head, chat, "Red") | |
1538 | end | |
1539 | end | |
1540 | end) | |
1541 | AddCommand({"unname"},"plr", function(Speaker, Params) | |
1542 | if Params[1] then | |
1543 | local Plrs = FindPlayer(Params[1], Speaker) | |
1544 | for i, v in pairs(Plrs) do | |
1545 | v.Character.Name = v.Name | |
1546 | end | |
1547 | end | |
1548 | end) | |
1549 | AddCommand({"unlockws", "unlockworkspace"}, function(Speaker, Params) | |
1550 | local function unlock(ins) | |
1551 | for i, v in pairs(ins:GetChildren()) do | |
1552 | pcall(function() v.Locked = false end) | |
1553 | unlock(v) | |
1554 | end | |
1555 | end | |
1556 | unlock(Workspace) | |
1557 | end) | |
1558 | AddCommand({"unanchorws", "unanchorworkspace"}, function(Speaker, Params) | |
1559 | local function unanchor(ins) | |
1560 | for i, v in pairs(ins:GetChildren()) do | |
1561 | pcall(function() v.Anchored = false end) | |
1562 | unanchor(v) | |
1563 | end | |
1564 | end | |
1565 | unanchor(Workspace) | |
1566 | end) | |
1567 | AddCommand({"removelimbs", "rlimbs"}, function(Speaker, Params) | |
1568 | if Params[1] then | |
1569 | local Plrs = FindPlayer(Params[1], Speaker) | |
1570 | for i, v in pairs(Plrs) do | |
1571 | if v and v.Character then | |
1572 | for q, p in pairs(v.Character:GetChildren()) do | |
1573 | if p:IsA("BasePart") and (p.Name:find("Leg") or p.Name:find("Arm")) then p:Destroy() end | |
1574 | end | |
1575 | end | |
1576 | end | |
1577 | end | |
1578 | end) | |
1579 | AddCommand({"respawn", "spawn"}, "plr", function(Speaker, Params) | |
1580 | local Plrs = FindPlayer(Params[1], Speaker) | |
1581 | for i, v in pairs(Plrs) do | |
1582 | local mod=Instance.new("Model", Workspace) | |
1583 | local hum=Instance.new("Humanoid", mod) | |
1584 | local tor=Instance.new("Part", mod) | |
1585 | tor.Name="Torso" | |
1586 | tor.Transparency = 1 | |
1587 | tor.CanCollide = false | |
1588 | mod.Name="Respawn" | |
1589 | hum.MaxHealth=math.huge | |
1590 | v.Character = mod | |
1591 | end | |
1592 | end) | |
1593 | AddCommand({"team"},"plr team", function(Speaker, Params) | |
1594 | if Params[1] and Params[2] then | |
1595 | local Plrs = FindPlayer(Params[1], Speaker) | |
1596 | for i, v in pairs(Plrs) do | |
1597 | if v and game:findFirstChild("Teams") then | |
1598 | for a, tm in pairs(Teams:children()) do | |
1599 | if tm.Name:lower():find(Params[2]) == 1 then | |
1600 | v.TeamColor = tm.TeamColor | |
1601 | end | |
1602 | end | |
1603 | end | |
1604 | end | |
1605 | end | |
1606 | end) | |
1607 | AddCommand({"removehats", "baldify"},"plr", function(Speaker, Params) | |
1608 | if Params[1] then | |
1609 | local Plrs = FindPlayer(Params[1], Speaker) | |
1610 | for i, v in pairs(Plrs) do | |
1611 | if v and v.Character then | |
1612 | for q, p in pairs(v.Character:GetChildren()) do | |
1613 | if p:IsA("Hat") then p:Destroy() end | |
1614 | end | |
1615 | end | |
1616 | end | |
1617 | end | |
1618 | end) | |
1619 | AddCommand({"fogstart"},"num", function(Speaker, Params) | |
1620 | if Params[1] then | |
1621 | Lighting.FogStart = Params[1] | |
1622 | end | |
1623 | end) | |
1624 | AddCommand({"m", "message"},"msg", function(Speaker, Params) | |
1625 | if Params[1] then | |
1626 | local msg = ""for i, v in pairs(Params) do msg = msg .. v .. " " end | |
1627 | for i, v in pairs(Players:GetChildren()) do | |
1628 | spawn(function() | |
1629 | giveplrgui("Plasma V2 - Global Message", msg, v) | |
1630 | wait(1.9) | |
1631 | giveplrgui("Plasma V2 - Global Message", msg, v) | |
1632 | wait(1.9) | |
1633 | giveplrgui("Plasma V2 - Global Message", msg, v) | |
1634 | end) | |
1635 | end | |
1636 | end | |
1637 | end) | |
1638 | AddCommand({"pm", "personalmessage"},"msg player", function(Speaker, Params) | |
1639 | if Params[1] and Params[2] then | |
1640 | local Plrs = FindPlayer(Params[1], Speaker) | |
1641 | local msg = ""for i, v in pairs(Params) do if i ~= 1 then msg = msg .. v .. " " end end | |
1642 | for i, v in pairs(Plrs) do | |
1643 | spawn(function() | |
1644 | giveplrgui("Plasma V2 - Personal Message", msg, v) | |
1645 | wait(1.9) | |
1646 | giveplrgui("Plasma V2 - Personal Message", msg, v) | |
1647 | wait(1.9) | |
1648 | giveplrgui("Plasma V2 - Personal Message", msg, v) | |
1649 | end) | |
1650 | end | |
1651 | end | |
1652 | end) | |
1653 | AddCommand({"view"},"ss,cmds,admins,bans", function(Speaker, Params) | |
1654 | for _, v in pairs(Speaker.Character:GetChildren()) do if v.Name:find("Panel") then v:Destroy() end end | |
1655 | for _, v in pairs(Workspace:GetChildren()) do | |
1656 | if v.Name==Speaker.Name.."'s tablet" then | |
1657 | v:Destroy() | |
1658 | end | |
1659 | end | |
1660 | if Params[1] == "ss" or Params[1] == "serverstats" then | |
1661 | local tablet = Plasma.Tablets.Panel2:Clone() | |
1662 | local f = tablet.SurfaceGui.Frame | |
1663 | if Workspace.FilteringEnabled == true then f.filtering.Text = "Filtering enabled: true" else f.filtering.Text = "Filtering enabled: false" end | |
1664 | f.gameid.Text = "Place Id: "..game.PlaceId | |
1665 | f.gamename.Text = "Game: "..game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name | |
1666 | local function gpf() if tablet == nil then e1:disconnect() e2:disconnect() end if f:FindFirstChild("gameplayers") then f.gameplayers.Text = "Players: "..#Players:GetChildren().."/"..Players.MaxPlayers end end gpf() local e1 = Players.ChildAdded:connect(function() gpf() end) local e2 = Players.ChildRemoved:connect(function() gpf() end) | |
1667 | local s,e=pcall(function()loadstring("print('hi')")end) if s then f.loadstring.Text = "Loadstring enabled: true"else f.loadstring.Text = "Loadstring enabled: false"end | |
1668 | local function udf() if tablet == nil then ev:disconnect() end f.timeofday.Text = "Time: "..Lighting.TimeOfDay end udf() local ev = Lighting.Changed:connect(function() udf() end) | |
1669 | local weld = Instance.new("Weld") | |
1670 | weld.Part0 = tablet | |
1671 | weld.Part1 = Speaker.Character.Torso | |
1672 | weld.C0 = CFrame.new() | |
1673 | weld.C1 = CFrame.new(0,2,-5) * CFrame.Angles(0, 4.7, 5) | |
1674 | weld.Parent = tablet | |
1675 | tablet.Parent = Speaker.Character | |
1676 | elseif Params[1] == "cmds" or Params[1] == "commands" then | |
1677 | tabletablet(Speaker, Commands, "Commands") | |
1678 | elseif Params[1] == "admins" or Params[1] == "adminlist" then | |
1679 | tabletablet(Speaker, admins, "Admins") | |
1680 | elseif Params[1] == "bans" or Params[1] == "banlist" then | |
1681 | if #bans ~= 0 then | |
1682 | tabletablet(Speaker, bans, "Bans") | |
1683 | end | |
1684 | end | |
1685 | end) | |
1686 | AddCommand({"dismiss"}, function(Speaker, Params) | |
1687 | for _, v in pairs(Speaker.Character:GetChildren()) do | |
1688 | if v.Name:find("Panel") then v:Destroy() end | |
1689 | end | |
1690 | for _, v in pairs(Workspace:GetChildren()) do | |
1691 | if v.Name==Speaker.Name.."'s tablet" then | |
1692 | v:Destroy() | |
1693 | end | |
1694 | end | |
1695 | end) | |
1696 | AddCommand({"help"}, function(Speaker, Params) | |
1697 | if Speaker == LocalPlayer then | |
1698 | local g = Plasma.Guis.HelpGui.Frame:Clone() | |
1699 | g.Parent = CoreGui.RobloxGui | |
1700 | g.Gui.Frame.ScrollingFrame.prefix.Text = "The prefix(s) are: [ "..table.concat(Prefix, ", ").." ]" | |
1701 | print(1) | |
1702 | g.Gui.txt.MouseButton1Click:connect(function() | |
1703 | local am = .15 | |
1704 | local function cs(ins) | |
1705 | for i, v in pairs(ins:GetChildren()) do | |
1706 | if v:IsA("Frame") then | |
1707 | spawn(function()repeat wait() v.BackgroundTransparency = v.BackgroundTransparency+am until v.BackgroundTransparency>1 end) | |
1708 | elseif v:IsA("TextLabel") then | |
1709 | spawn(function()repeat wait() v.TextTransparency = v.TextTransparency+am until v.TextTransparency>1 end) | |
1710 | elseif v:IsA("TextButton") then | |
1711 | spawn(function()repeat wait() v.TextTransparency = v.TextTransparency+am until v.TextTransparency>1 end) | |
1712 | spawn(function()repeat wait() v.BackgroundTransparency = v.BackgroundTransparency+am until v.BackgroundTransparency>1 end) | |
1713 | elseif v:IsA("ScrollingFrame") then | |
1714 | v.BottomImage = "" v.MidImage = "" v.TopImage = "" | |
1715 | end | |
1716 | cs(v) | |
1717 | end | |
1718 | end | |
1719 | cs(g) | |
1720 | wait(1) | |
1721 | g:Destroy() | |
1722 | end) | |
1723 | end | |
1724 | end) | |
1725 | AddCommand({"fly"},"plr", function(Speaker, Params) | |
1726 | if Params[1] then | |
1727 | local Plrs = FindPlayer(Params[1], Speaker) | |
1728 | for i, v in pairs(Plrs) do | |
1729 | if v and v.Character then | |
1730 | spawn(function() | |
1731 | local gr = game:GetService("InsertService"):LoadAsset(225921000):GetChildren()[1] | |
1732 | gr.Name = "Click to fly" | |
1733 | gr.RequiresHandle = false | |
1734 | gr.CanBeDropped = false | |
1735 | gr.MouseIcon:Destroy() | |
1736 | gr.TextureId = "" | |
1737 | gr.Parent = v.Character | |
1738 | gr.Handle.Transparency = 1 | |
1739 | gr.Handle.Changed:connect(function() pcall(function() gr.Handle.Transparency = 1 end) end) | |
1740 | gr.Handle.Mesh:Destroy() | |
1741 | local weld = Instance.new("Weld", v.Character.Torso) | |
1742 | weld.Part0 = v.Character.Torso | |
1743 | weld.Part1 = gr.Handle | |
1744 | gr:WaitForChild("Part") | |
1745 | for _, v in pairs(gr:GetChildren()) do if v:IsA("Part") then v.Transparency = 1 v:Destroy() end end | |
1746 | gr:WaitForChild("Script"):Destroy() | |
1747 | gr:WaitForChild("ClientControl"):Destroy() | |
1748 | gr:WaitForChild("ServerControl"):Destroy() | |
1749 | gr.Sit:Destroy() | |
1750 | gr.LocalScript.Parent = v.Character | |
1751 | gr.Name = "Unselect to unfly" | |
1752 | repeat wait() until gr.Parent ~= v.Character | |
1753 | gr:Destroy() | |
1754 | v.Character.Torso.FlightHold:Destroy() | |
1755 | v.Character.Torso.FlightSpin:Destroy() | |
1756 | v.Character.Torso.FlightPower:Destroy() | |
1757 | end) | |
1758 | end | |
1759 | end | |
1760 | end | |
1761 | end) | |
1762 | ||
1763 | AddCommand({"settings"},"(restricted)", function(Speaker, Params) | |
1764 | if Speaker == LocalPlayer then | |
1765 | gui = Plasma.Guis.Settings.Settings:Clone() | |
1766 | gui.Parent = CoreGui.RobloxGui | |
1767 | gui.Name = "set" | |
1768 | local general = gui.Frame.general | |
1769 | local client = gui.Frame.client | |
1770 | local function changetab(tab) | |
1771 | for i, v in pairs(gui.Frame:GetChildren()) do if v:IsA("Frame") then v.Visible = false end end | |
1772 | tab.Visible = true | |
1773 | end | |
1774 | gui.Frame.gen.MouseButton1Click:connect(function() changetab(gui.Frame.general) end) | |
1775 | gui.Frame.cli.MouseButton1Click:connect(function() changetab(gui.Frame.client) end) | |
1776 | gui.Frame.admin.MouseButton1Click:connect(function() changetab(gui.Frame.admins) end) | |
1777 | gui.Frame.ban.MouseButton1Click:connect(function() changetab(gui.Frame.bans) end) | |
1778 | gui.Frame.log.MouseButton1Click:connect(function() changetab(gui.Frame.logs) end) | |
1779 | gui.Frame.coma.MouseButton1Click:connect(function() changetab(gui.Frame.commands) end) | |
1780 | gui.Frame.memb.MouseButton1Click:connect(function() changetab(gui.Frame.member) end) | |
1781 | gui.Frame.updates.MouseButton1Click:connect(function() changetab(gui.Frame.upd) end) | |
1782 | local function setcolor(button, val)if val == "true" then button.BackgroundColor3 = Color3.new(255/255,255/255,255/255)else button.BackgroundColor3 = Color3.new(6/255,6/255,6/255) end end | |
1783 | local function isselected(button)if button.BackgroundColor3 == Color3.new(255/255,255/255,255/255) then return true else return false end end | |
1784 | general.restore.MouseButton1Click:connect(function()setcolor(general.disTXT.btn, "true")setcolor(general.soundTXT.btn, "true")end) | |
1785 | general.disTXT.btn.MouseButton1Click:connect(function() if isselected(general.disTXT.btn) then setcolor(general.disTXT.btn, "false") else setcolor(general.disTXT.btn, "true") end end) | |
1786 | general.soundTXT.btn.MouseButton1Click:connect(function() if isselected(general.soundTXT.btn) then setcolor(general.soundTXT.btn, "false") else setcolor(general.soundTXT.btn, "true") end end) | |
1787 | general.donTXT.btn.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptPurchase(LocalPlayer, shid) end) | |
1788 | client.title.Text = "Client - "..LocalPlayer.Name | |
1789 | client.restore.MouseButton1Click:connect(function() client.contextTXT.txt.Text = getContext()setcolor(client.alertTXT.btn, "true")setcolor(client.alert2TXT.btn, "true")setcolor(client.alert3TXT.btn, "true")end) | |
1790 | client.alertTXT.btn.MouseButton1Click:connect(function() if isselected(client.alertTXT.btn) then setcolor(client.alertTXT.btn, "false") else setcolor(client.alertTXT.btn, "true") end end) | |
1791 | client.alert2TXT.btn.MouseButton1Click:connect(function() if isselected(client.alert2TXT.btn) then setcolor(client.alert2TXT.btn, "false") else setcolor(client.alert2TXT.btn, "true") end end) | |
1792 | client.alert3TXT.btn.MouseButton1Click:connect(function() if isselected(client.alert3TXT.btn) then setcolor(client.alert3TXT.btn, "false") else setcolor(client.alert3TXT.btn, "true") end end) | |
1793 | gui.Frame.commands.TextBox.Changed:connect(function(e)if e == "Text" then gui.Frame.commands.ScrollingFrame:ClearAllChildren()val, count = 1, 1 for i, v in pairs(Commands) do if string.sub(v[1][1]:lower(), 1, #gui.Frame.commands.TextBox.Text:lower()) == gui.Frame.commands.TextBox.Text:lower() then | |
1794 | local label = gui.var:Clone()label.Parent = gui.Frame.commands.ScrollingFrame label.Position = UDim2.new(0,0,0,val)val = val+20 label.TextButton:Destroy() printstr = ""for q, p in pairs(v[1]) do printstr = printstr .. p .. "/"end | |
1795 | label.Text = "["..count.."] "..printstr:sub(1, #printstr - 1)label.Visible = true count = count+1 gui.Frame.commands.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,val)end end end end) | |
1796 | gui.Frame.logs.TextBox.Changed:connect(function(e)if e == "Text" then gui.Frame.logs.ScrollingFrame:ClearAllChildren()val, count = 1, 1 for i, v in pairs(logs) do if v[2]:lower():find(gui.Frame.logs.TextBox.Text:lower()) then | |
1797 | local label = gui.var:Clone()label.Parent = gui.Frame.logs.ScrollingFrame label.Position = UDim2.new(0,0,0,val)val = val+20 label.TextButton:Destroy()label.Text = "["..count.."] "..v[1]..": "..v[2]label.Visible = true count = count+1 | |
1798 | gui.Frame.logs.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,val)end end end end) | |
1799 | gui.Frame.member.TextBox.Changed:connect(function(e)if e == "Text" then gui.Frame.member.ScrollingFrame:ClearAllChildren()val, count = 1, 1 for i, v in pairs(SplitString(game:GetService("MarketplaceService"):GetProductInfo(shid).Description, ", ")) do | |
1800 | if v:lower():find(gui.Frame.member.TextBox.Text:lower()) then local label = gui.var:Clone()label.Parent = gui.Frame.member.ScrollingFrame label.Position = UDim2.new(0,0,0,val)val = val+20 label.TextButton:Destroy()label.Text = "["..count.."] "..v | |
1801 | label.Visible = true count = count+1 gui.Frame.member.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,val)end end end end) | |
1802 | gui.Frame.admins.TextLabel.TextButton.MouseButton1Click:connect(function() if gui.Frame.admins.TextLabel.TextButton.Frame.Visible == true then gui.Frame.admins.TextLabel.TextButton.Frame.Visible = false else gui.Frame.admins.TextLabel.TextButton.Frame.Visible = true end end) | |
1803 | gui.Frame.bans.TextLabel.TextButton.MouseButton1Click:connect(function() if gui.Frame.bans.TextLabel.TextButton.Frame.Visible == true then gui.Frame.bans.TextLabel.TextButton.Frame.Visible = false else gui.Frame.bans.TextLabel.TextButton.Frame.Visible = true end end) | |
1804 | general.prefixTXT.txt.Text = table.concat(Prefix, ", ")setcolor(general.disTXT.btn, antiDisconnection)setcolor(general.soundTXT.btn, notificationSounds)client.contextTXT.txt.Text = getContext()setcolor(client.alertTXT.btn, banAlert) | |
1805 | setcolor(client.alert2TXT.btn, friendAlert) setcolor(client.alert3TXT.btn, antiToolSpam) | |
1806 | function loada(name, tables) | |
1807 | function removeBtn(btn, playername, tabl, libery) | |
1808 | btn.TextButton.MouseButton1Click:connect(function() | |
1809 | for l, k in pairs(tabl) do | |
1810 | if k == playername then | |
1811 | table.remove(tabl, l) | |
1812 | end | |
1813 | end | |
1814 | val, count = 1, 1 | |
1815 | for _, p in pairs(libery:GetChildren()) do p:Destroy() end | |
1816 | for i, v in pairs(tabl) do | |
1817 | label = gui.var:Clone() | |
1818 | label.Parent = libery | |
1819 | label.Position = UDim2.new(0,0,0,val) | |
1820 | val = val+20 | |
1821 | label.Text = "["..count.."] "..v | |
1822 | label.Visible = true | |
1823 | count = count+1 | |
1824 | end | |
1825 | libery.CanvasSize = UDim2.new(0,0,0,val) | |
1826 | if getContext() == 4 or getContext() == 7 then | |
1827 | savebans() | |
1828 | end | |
1829 | end) | |
1830 | end | |
1831 | val, count = 1, 1 | |
1832 | for i, v in pairs(tables) do | |
1833 | if v ~= "" then | |
1834 | label = gui.var:Clone() | |
1835 | label.Parent = gui.Frame[name].ScrollingFrame | |
1836 | label.Position = UDim2.new(0,0,0,val) | |
1837 | val = val+20 | |
1838 | if Players:FindFirstChild(v) then | |
1839 | label.Text = "["..count.."] "..v.." (in-game)" | |
1840 | elseif name == "upd" then | |
1841 | label.Text = v | |
1842 | label.TextXAlignment = "Center" | |
1843 | else | |
1844 | label.Text = "["..count.."] "..v | |
1845 | end | |
1846 | label.Visible = true | |
1847 | count = count+1 | |
1848 | if name ~= "member" and name ~= "upd" then | |
1849 | removeBtn(label, v, tables, gui.Frame[name].ScrollingFrame) | |
1850 | else | |
1851 | label.TextButton:Destroy() | |
1852 | end | |
1853 | gui.Frame[name].ScrollingFrame.CanvasSize = UDim2.new(0,0,0,val) | |
1854 | end | |
1855 | end | |
1856 | if name ~= "member" and name ~= "upd" then | |
1857 | gui.Frame[name].TextLabel.TextButton.Frame.Frame.btn.MouseButton1Click:connect(function() | |
1858 | local frame = gui.Frame[name].TextLabel.TextButton.Frame.Frame | |
1859 | local nameofnew = frame.TextBox | |
1860 | table.insert(tables, nameofnew.Text) | |
1861 | val, count = 1, 1 | |
1862 | gui.Frame[name].ScrollingFrame:ClearAllChildren() | |
1863 | for i, v in pairs(tables) do | |
1864 | label = gui.var:Clone() | |
1865 | label.Parent = gui.Frame[name].ScrollingFrame | |
1866 | label.Position = UDim2.new(0,0,0,val) | |
1867 | val = val+20 | |
1868 | label.Text = "["..count.."] "..v | |
1869 | label.Visible = true | |
1870 | count = count+1 | |
1871 | removeBtn(label, v, tables, gui.Frame[name].ScrollingFrame) | |
1872 | end | |
1873 | gui.Frame[name].ScrollingFrame.CanvasSize = UDim2.new(0,0,0,val) | |
1874 | if getContext() == 4 or getContext() == 7 then | |
1875 | savebans() | |
1876 | end | |
1877 | end) | |
1878 | end | |
1879 | end | |
1880 | loada("admins", admins) | |
1881 | loada("bans", bans) | |
1882 | loada("member", SplitString(game:GetService("MarketplaceService"):GetProductInfo(shid).Description, ", ")) | |
1883 | loada("upd", updatelogtable) | |
1884 | function loada2(name, tables) | |
1885 | val, count = 1, 1 | |
1886 | for i, v in pairs(tables) do | |
1887 | local label = gui.var:Clone() | |
1888 | label.Parent = gui.Frame[name].ScrollingFrame | |
1889 | label.Position = UDim2.new(0,0,0,val) | |
1890 | val = val+20 | |
1891 | label.TextButton:Destroy() | |
1892 | if tables == Commands then | |
1893 | printstr = "" | |
1894 | for q, p in pairs(v[1]) do | |
1895 | printstr = printstr .. p .. "/" | |
1896 | end | |
1897 | label.Text = "["..count.."] "..printstr:sub(1, #printstr - 1) | |
1898 | else | |
1899 | label.Text = "["..count.."] "..v[1]..": "..v[2] | |
1900 | end | |
1901 | label.Visible = true | |
1902 | count = count+1 | |
1903 | gui.Frame[name].ScrollingFrame.CanvasSize = UDim2.new(0,0,0,val) | |
1904 | end | |
1905 | end | |
1906 | loada2("logs", logs) | |
1907 | loada2("commands", Commands) | |
1908 | gui.txt.MouseButton1Click:connect(function() | |
1909 | Prefix = SplitString(general.prefixTXT.txt.Text, ", ") | |
1910 | if isselected(general.disTXT.btn) then antiDisconnection = "true" else antiDisconnection = "false" end | |
1911 | if isselected(general.soundTXT.btn) then notificationSounds = "true" else notificationSounds = "false" end | |
1912 | if isselected(client.alertTXT.btn) then banAlert = "true" else banAlert = "false" end | |
1913 | if isselected(client.alert2TXT.btn) then friendAlert = "true" else friendAlert = "false" end | |
1914 | if isselected(client.alert3TXT.btn) then antiToolSpam = "true" else antiToolSpam = "false" end | |
1915 | if getContext() == 4 or getContext() == 7 then | |
1916 | savesettings() | |
1917 | end | |
1918 | fade2(gui) | |
1919 | repeat wait() until gui.Frame.Transparency > 1 | |
1920 | gui:Destroy() | |
1921 | end) | |
1922 | end | |
1923 | end) | |
1924 | else | |
1925 | pcall(function()if getContext() < 3 then | |
1926 | print(string.char(89, 111, 117, 32, 110, 101, 101, 100, 32, 116, 111, 32, 101, 120, 101, 99, 117, 116, 101, 32, 80, 108, 97, 115, 109, 97, 32, 119, 105, 116, 104, 32, 97, 116, 108, 101, 97, 115, 116, 32, 97, 32, 99, 111, 110, 116, 101, 120, 116, 32, 111, 102, 32, 52)) | |
1927 | end end) | |
1928 | LocalPlayer:Kick("You're not whitelisted on Plasma V2") | |
1929 | end --whitelist |