SHOW:
|
|
- or go back to the newest paste.
1 | --// SaviOS by SavageMunkey | |
2 | ||
3 | local Host = game:service'Players'.LocalPlayer | |
4 | local PlayerMouse = Host:GetMouse() | |
5 | local Character = Host.Character | |
6 | ||
7 | pcall(function() | |
8 | Character.Humanoid['SaviOS'..Host.Name].Disabled=true | |
9 | Character.Humanoid['SaviOS'..Host.Name]:Destroy() | |
10 | end) | |
11 | script.Name='SaviOS'..Host.Name | |
12 | ||
13 | local lrs = game:service'RunService'.RenderStepped | |
14 | local ud,c3 = UDim2.new,Color3.new | |
15 | ||
16 | local OS | |
17 | OS = { | |
18 | Backgrounds={263065080,122603145,510593355,167312453,119945204,38397690,167312682,192050536,152026398,167312652,120582545,167493039,274050234,454292754,466900315,177053058,229293848,122646263,159102803,321434238,120214481,120480107,129805827,251350099,134993390,294851220,91427420,159103087,161729354,451983167,111563465,224033486,159103552,490565976,419023708,159111488,254890271,72090809,148038665,201380429,235907960,118966085,184001465,158549839,135040161,569012987,124111954,617785055,127976057,157765107,172813012,261956734,229544221,381428334,141204418,130675970,114611763,569627808,165460147,165460277,123128917,65246335,113000488,210624979,86219936,542893768,485873381,133109970,147298379,147297851,133461415,248254225,542822127,536363798,167312652,542895503,89552732,65151650,101805028,103684980,385601310,57939071,304922993,13511519,473575489,256418140,136004272,46076174,497195310,28143702,158772801,557860938,483527125,125134380,129296064,436986440,331063936,162704842,108531974,156021502,546688542,192509200,193859832,78289792,339807971,156513166,305407040,363144648,60043055,621825797,621828236,179089950,501279669,403674379,275918945,247421728,126655771,478203228,25719408,50358414,7460070,415408253,91215756,85243064,135112694,161131570,684101235,467373053,65891746,24960278,318592132,424415675,17266396,64198567,230444445,156269405,179089950,248285466,202899851,156314932,151133945,514648696,}; | |
19 | Properties = {'AllowClientInsertModels','BrickColor','Color','ShowDevelopmentGui','ResetPlayerGuiOnSpawn','Parent','CustomPhysicalProperties','WaterColor','WaterTransparency','WaterWaveSize','WaterWaveSpeed','AllowThirdPartySales','FilteringEnabled','StreamingEnabled','Gravity','FallenPartsDestroyHeight','Archivable','AbsolutePosition','AbsoluteSize','AccountAge','AccountAgeReplicate','Active','Adornee','AllowAmbientOcclusion','AllowTeamChangeOnTouch','AluminumQuality','AlwaysOnTop','Ambient','AmbientReverb','Anchored','Angularvelocity','AnimationId','Archivable','AreHingesDetected','AttachmentForward','AttachmentPoint','AttachmentPos','AttachmentRight','AttachmentUp','AutoAssignable','AutoButtonColor','AutoColorCharacters','AvailablePhysicalMemory','Axes','BackgroundColor','BackgroundColor3','BackgroundTransparency','BackSurface','BaseTextureId','BaseUrl','Bevel','Roundness','BinType','BlastPressure','BlastRadius','C0','C1','HeadColor','LeftArmColor','RightArmColor','LeftLegColor','RightLegColor','HumanoidRootPartColor','BodyColor','BodyPart','BorderColor','BorderColor3','BorderSizePixel','BottomSurface','BrickColor','Brightness','Browsable','BubbleChat','BubbleChatLifetime','BubbleChatMaxBubbles','Bulge','Button1DownConnectionCount','Button1UpConnectionCount','Button2DownConnectionCount','Button2UpConnectionCount','C0','C1','CameraMode','CameraSubject','CameraType','CanBeDropped','CanCollide','CartoonFactor','CastShadows','CelestialBodiesShown','CFrame','Cframe','Character','CharacterAppearance','CharacterAutoLoads','ChatScrollLength','ClassicChat','ClassName','ClearTextOnFocus','ClipsDescendants','CollisionSoundEnabled','CollisionSoundVolume','Color','ColorShift_Top','ColorShift_Bottom','Bottom','Top','ConstrainedValue','Contro'..'llingHumanoid','ControlMode','ConversationDistance','CoordinateFrame','CorrodedMetalQuality','CPU','CpuCount','CpuSpeed','CreatorId','CreatorType','CurrentAngle','CurrentCamera','CycleOffset','D','DataCap','DataComplexity','DataComplexityLimit','DataCost','DataReady','Deprecated','DeselectedConnectionCount','DesiredAngle','DiamondPlateQuality','Disabled','DistanceFactor','DistributedGameTime','DopplerScale','Draggable','DraggingV1','Duration','EditorFont','EditorFontSize','EditorTabWidth','ElapsedTime','Elasticity','Enabled','ExplosionType','ExtentsOffset','F0','F1','F2','F3','Face','FaceId','Faces','FieldOfView','Focus','FogColor','FogEnd','FogStart','Font','FontSize','Force','FormFactor','Friction','From','FrontSurface','GearGenreSetting','Genre','GeographicLatitude','GfxCard', 'GlobalShadows','Graphic','GrassQuality','Grip','GripForward','GripPos','GripRight','GripUp','Guest','HeadsUpDisplay','Health','Heat','Hit','Humanoid','IceQuality','Icon','IdleConnectionCount','Image','InitialPrompt','InOut','InUse','IsPaused','IsPlaying','JobId','Jump','KeyDownConnectionCount','KeyUpConnectionCount','LeftLeg','LeftRight','LeftSurface','LinkedSource','LocalPlayer','Location','Locked','LODX','LODY','Looped','Material','MaxActivationDistance','MaxCollisionSounds','MaxExtents','MaxForce','MaxHealth','MaxItems','MaxPlayers','MaxSpeed','MaxThrust','MaxTorque','MaxValue','MaxVelocity','MembershipType','MembershipTypeReplicate','MeshId','MeshType','MinValue','Modal','MouseButton1ClickConnectionCount','MouseButton1DownConnectionCount','MouseButton1UpConnectionCount','MouseButton2ClickConnectionCount','MouseButton2DownConnectionCount','MouseButton2UpConnectionCount','MouseDelta','MouseDragConnectionCount','MouseEnterConnectionCount','MouseHit','MouseLeaveConnectionCount','MouseLock','MouseMovedConnectionCount','MouseTarget','MouseTargetFilter','MouseTargetSurface','MoveConnectionCount','MoveState','MultiLine','Name','NameOcclusion','NetworkOw'..'ner','Neutral','NumPlayers','Offset','Opacity','Origin','OsPlatform','OsVer','OutdoorAmbient','OverlayTextureId','P','PantsTemplate','ParamA','ParamB','Parent','PrimaryPart','Part','Part0','Part1','Pitch','PixelShaderModel','PlaceId','PlasticQuality','PlatformStand','PlayCount','PlayerToHideFrom','PlayOnRemove','Point','Port','Position','Preliminary','PrimaryPart','PrivateWorkingSetBytes','Purpose','RAM','Reflectance','ReplicatedSelectedConnectionCount','ResizeableFaces','ResizeIncrement','Resolution','ResponseDialog','RightLeg','RightSurface','RiseVelocity','RobloxLocked','RobloxVersion','RolloffScale','RotVelocity','Scale','Score','ScriptsDisabled','SecondaryColor','Selected','ShadowColor','Shape','Shiny','ShirtTemplate','ShowDeprecatedObjects','ShowDevelopmentGui','ShowPreliminaryObjects','Sides','Sit','Size','SizeConstraint','SizeOffset','SkinColor','SkyboxBk','SkyboxDn','SkyboxFt','SkyboxLf','SkyboxRt','SkyboxUp','SlateQuality','SoundId','Source','SparkleColor','Specular','StarCount','Steer','StickyWheels','StudsBetweenTextures','StudsOffset','StudsPerTileU','StudsPerTileV','Style','Summary','SuperSa'..'feChatReplicate','Surface','Surface0','Surface1','SurfaceInput','Target','TargetFilter','TargetOffset','TargetPoint','TargetRadius','TargetSurface','TeamColor','Terrain','Text','TextBounds','TextColor','TextColor3','TextFits','TextScaled','TextStrokeColor3','TextStrokeTransparency','TextTransparency','Texture','TextureId','TextureSize','TextWrap','TextWrapped','TextXAlignment','TextYAlignment','Throttle','ThrustD','ThrustP','Ticket','Time','TimeOfDay','To','Tone','ToolTip','TopBottom','TopSurface','Torque','HumanoidRootPart','Transparency','TrussDetail','TurnD','TurnP','TurnSpeed','UnitRay','UserDialog','UserId','Value','Version','VertexColor','VideoCaptureEnabled','VideoMemory','VideoQuality','ViewSizeX','ViewSizeY','Visible','Volume','WalkDirection','WalkSpeed','WalkToPart','WalkToPoint','WheelBackwardConnectionCount','WheelForwardConnectionCount','WindowSize','WireRadius','WoodQuality','X','Y','Z'}; | |
20 | DecalAssets={200182847}; | |
21 | --//49,51,51,55,115,97,118 | |
22 | Sounds = { | |
23 | 319758951,485859421,191035676,142312040,165065112,166471137,208240682,226788368,193399717, | |
24 | 274427825,155949200,209864226,211626338,232560219,172427188,180115728,170968526, | |
25 | 148492408,177956804,132399469,218530627,234627720,182411115,188712851,176454530, | |
26 | 685204898,736225554,267915404,180795185,263998927,181428192,266427268,215974232, | |
27 | 177297354,248794208,262158959,282890395,252612142,252614631,252613867,203275374, | |
28 | 244763119,169898604,173060483,181065299,294185225,657230380,574818336, | |
29 | }; | |
30 | RecentlyUsedPrograms={}; | |
31 | UIs={}; | |
32 | Logins={ | |
33 | {'SavageMunkey','abcd12',Color3.new(.1,.1,.1),Color3.new(1,1,1),497195310};--167312453}; | |
34 | {'Artiecsal','sookithearth',c3(0,0,0),c3(1,1,1),122646263}, | |
35 | {'Luke_Ames','xXfatphonesXx',c3(.5,0,0),c3(1,1,1),621828236}, | |
36 | {'Lord_Azure','AzureIsGay',c3(.3,0,0),c3(1,1,1),215152878}, | |
37 | }; | |
38 | Administrators={ | |
39 | 'SavageMunkey', | |
40 | 'Aeodile', | |
41 | }; | |
42 | Effects={}; | |
43 | Functions={}; | |
44 | Assets={}; | |
45 | Apps={ | |
46 | Qeued={}; | |
47 | Generated={}; | |
48 | Open={}; | |
49 | }; | |
50 | Settings={ | |
51 | Fonts = { | |
52 | Header = 'Code', | |
53 | Sub_Header = 'Highway', | |
54 | }; | |
55 | }; | |
56 | }; | |
57 | ||
58 | Functions = OS.Functions | |
59 | Effects = OS.Effects | |
60 | ||
61 | OS.GenCode = math.random()*9e5 | |
62 | ||
63 | local CurrentPlayerData=nil | |
64 | local Official=true | |
65 | ||
66 | function Functions:ConvertColor3(r,g,b) | |
67 | return c3(1-(1/r),1-(10/g),1-(10/b)) --//derped | |
68 | end | |
69 | ||
70 | function Functions:ReturnObjectProperties(Object) | |
71 | assert(pcall(function() | |
72 | assert(game.IsA(Object,'Instance')) | |
73 | end),'Should be ROBLOX instance') | |
74 | local Returns = {} | |
75 | for _, Value in next, OS.Properties do | |
76 | if pcall(function() return Object[Value] end) and (type(Object[Value]) ~= 'userdata' or not Object:FindFirstChild(Value)) then | |
77 | Returns[Value] = Object[Value] | |
78 | end | |
79 | end | |
80 | return Returns | |
81 | end; | |
82 | ||
83 | --print(Functions:ConvertColor3(170, 0, 255)) | |
84 | ||
85 | function Functions:GrabHostData() | |
86 | local PlayerData=nil | |
87 | local Found=0 | |
88 | for Index, Data in next, OS.Logins do | |
89 | if Data[1] == tostring(Host) then | |
90 | PlayerData=Data | |
91 | Found=Found+1 | |
92 | end | |
93 | end | |
94 | if PlayerData then | |
95 | CurrentPlayerData=PlayerData | |
96 | else | |
97 | Official=false | |
98 | CurrentPlayerData={Host.Name,Host.Name:lower():sub(0,5)..'12'..math.random(-50,50),c3(.25,.25,.25),c3(1,1,1),OS.Backgrounds[math.random(1,#OS.Backgrounds)]}; | |
99 | script:Destroy() | |
100 | end | |
101 | if Found > 1 then | |
102 | error('Found more than one('..Found..') data tables for '..Host.Name,2) | |
103 | end | |
104 | end | |
105 | ||
106 | Functions:GrabHostData() | |
107 | ||
108 | table.foreach(CurrentPlayerData,print) | |
109 | ||
110 | function Functions:GetPlayerImg(User) | |
111 | local ID = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username='..tostring(User) | |
112 | return ID | |
113 | end | |
114 | ||
115 | ypcall(function() | |
116 | --workspace['mon-mon']:Destroy() | |
117 | end) | |
118 | ||
119 | local Monitor, G, MainFrame | |
120 | function Functions:MakeMonitor() | |
121 | pcall(function() workspace['mon-mon'..Host.Name]:Destroy() end) | |
122 | local sc=Instance.new('Script', workspace) | |
123 | sc.Name='mon-mon'..Host.Name | |
124 | OS.Assets.FScript=sc | |
125 | Monitor = Instance.new('Part', sc) | |
126 | Monitor.Size = Vector3.new(24,14,.1) | |
127 | Monitor.Anchored = true | |
128 | Monitor.Locked=true | |
129 | Monitor.Transparency=0 | |
130 | Monitor.Color=Color3.new(1,1,1) | |
131 | Monitor.Material='Neon' | |
132 | Monitor.Name='mon-mon' | |
133 | Instance.new('SurfaceLight',Monitor).Face='Back' | |
134 | Monitor.CanCollide = false | |
135 | Monitor.TopSurface,Monitor.BottomSurface=0,0 | |
136 | local Flat = Instance.new('BlockMesh', Monitor) | |
137 | Flat.Scale = Vector3.new(1,1,0) | |
138 | spawn(function() | |
139 | for i = 0,1.025,.025 do | |
140 | --Monitor.Transparency = 1.3-i | |
141 | lrs:wait() | |
142 | end | |
143 | end) | |
144 | end | |
145 | ||
146 | function Functions:MakeNewUi(Type) | |
147 | local Ui = Instance.new(Type) | |
148 | ||
149 | local function TypeIsA(Table, Goal) | |
150 | for i,v in next, Table do | |
151 | if v:lower()==Type:lower() then | |
152 | Goal(Ui) | |
153 | end | |
154 | end | |
155 | end | |
156 | ||
157 | Ui.ClipsDescendants = true | |
158 | Ui.Size = ud(1,0,1,0) | |
159 | Ui.BackgroundTransparency = 1 | |
160 | TypeIsA({'TextButton'}, function(tUi) | |
161 | Ui.AutoButtonColor = false | |
162 | end) | |
163 | Ui.BackgroundColor3 = CurrentPlayerData[3] | |
164 | Ui.BorderSizePixel = 0 | |
165 | TypeIsA({'ImageLabel','ImageButton'}, function(tUi) | |
166 | ||
167 | end) | |
168 | TypeIsA({'TextButton','TextLabel','TextBox'}, function(tUi) | |
169 | tUi.TextColor3 = CurrentPlayerData[4] | |
170 | tUi.Font = OS.Settings.Fonts.Header | |
171 | tUi.Text='' | |
172 | tUi.FontSize = Enum.FontSize.Size18 | |
173 | end) | |
174 | delay(.1,function() | |
175 | OS.UIs[Ui.Name]={Ui,true} | |
176 | local oUi=Ui | |
177 | spawn(function() | |
178 | repeat lrs:wait() until Ui.Parent == nil | |
179 | OS.UIs[oUi.Name]={nil,false} | |
180 | end) | |
181 | end) | |
182 | Ui.ZIndex=7 | |
183 | return Ui | |
184 | end | |
185 | ||
186 | function Functions:Center(Ui) | |
187 | local co={Ui.Size.X.Offset/2, | |
188 | Ui.Size.Y.Offset/2}; | |
189 | return ud(.5,-co[1],.5,-co[2]) | |
190 | end | |
191 | ||
192 | function Functions:CenterOffset(Ui, Offset) | |
193 | local co={Ui.Size.X.Scale, | |
194 | Ui.Size.X.Offset/2, | |
195 | Ui.Size.Y.Scale, | |
196 | Ui.Size.Y.Offset/2 | |
197 | }; | |
198 | return ud(.5+Offset.X.Scale,-co[2]+Offset.X.Offset,.5+Offset.Y.Scale,-co[4]+Offset.Y.Offset) | |
199 | end | |
200 | ||
201 | local TypeDebs={}; | |
202 | function Effects:Type(Ui, Text, Type, Delay) | |
203 | TypeDebs[Ui]=false | |
204 | if Type == 'In' then | |
205 | local Continue = true | |
206 | for i = 0,#Text do | |
207 | if TypeDebs[Ui] then | |
208 | Continue = false | |
209 | return | |
210 | end | |
211 | if not Continue then | |
212 | return | |
213 | end | |
214 | Ui.Text = Text:sub(0,i)..'|' | |
215 | wait(Delay) | |
216 | end | |
217 | Ui.Text = Text | |
218 | elseif Type == 'Out' then | |
219 | local Continue = true | |
220 | for i = 0,#Text do | |
221 | if TypeDebs[Ui] then | |
222 | Continue = false | |
223 | return | |
224 | end | |
225 | if not Continue then | |
226 | return | |
227 | end | |
228 | Ui.Text = Text:sub(0,1-i)..'|' | |
229 | wait(Delay) | |
230 | end | |
231 | Ui.Text = Text | |
232 | else | |
233 | error'Please enter a TransitionType (Out, In)' | |
234 | end | |
235 | end | |
236 | ||
237 | function Functions:Sound(Id ,Rmv) | |
238 | local snd=Instance.new('Sound', Character:WaitForChild'Head' or Monitor or workspace) | |
239 | if Rmv then | |
240 | for index,o in next, snd.Parent:children() do | |
241 | if o:IsA'Sound' and o ~= snd then | |
242 | o:Stop() | |
243 | o:Destroy() | |
244 | end | |
245 | end | |
246 | end | |
247 | snd.EmitterSize=20 | |
248 | snd.SoundId=Functions:Asset(Id) | |
249 | snd.Volume=.6 | |
250 | delay(8,function() | |
251 | if not snd.Looped and snd.IsPlaying==false then | |
252 | snd:Stop() | |
253 | snd:Destroy() | |
254 | end | |
255 | end) | |
256 | return snd | |
257 | end | |
258 | ||
259 | function Effects:Underline(Ui, YOffset, XThickness, YThickness, Color, Fade) | |
260 | local Label = Functions:MakeNewUi('TextLabel') | |
261 | Label.BackgroundColor3 = Color | |
262 | Label.BackgroundTransparency=.2 | |
263 | Label.Size = ud(0,0,0,YThickness) | |
264 | Label.Position = Functions:CenterOffset(Label, ud(0,0,0,YOffset)) | |
265 | Label.Parent = Ui | |
266 | Label.ZIndex = 9 | |
267 | if Fade then | |
268 | Label.BackgroundTransparency = 1 | |
269 | delay(.5,function() | |
270 | Label:TweenSizeAndPosition(ud(0,XThickness,0,YThickness),Functions:CenterOffset(Label,ud(0,-XThickness/2,0,YOffset)),'Out','Back',1,true) | |
271 | end) | |
272 | for i = 0,1.025,.025 do | |
273 | Label.BackgroundTransparency = (1.2 - i) | |
274 | lrs:wait() | |
275 | end | |
276 | else | |
277 | Label.Size = ud(0,XThickness,0,YThickness) | |
278 | Label.Position = Functions:CenterOffset(Label, ud(0,0,0,YOffset)) | |
279 | end | |
280 | return Label | |
281 | end | |
282 | ||
283 | function Functions:Asset(Id) | |
284 | return 'rbxassetid://'..Id | |
285 | end | |
286 | ||
287 | function Functions:PlayerImage(User) | |
288 | return 'http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username='..tostring(User) | |
289 | end | |
290 | ||
291 | function Functions:LoginScreenGui(Size,ltbl,Fade) | |
292 | if Host.PlayerGui:FindFirstChild'nomnompw' then | |
293 | end | |
294 | local limit=16 | |
295 | local SGui = Instance.new('ScreenGui', Host.PlayerGui) | |
296 | SGui.Name='nomnompw' | |
297 | local Box = Functions:MakeNewUi('TextBox') | |
298 | Box.ClearTextOnFocus=true | |
299 | Box.TextColor3 = CurrentPlayerData[3] | |
300 | Box.TextStrokeTransparency=.9 | |
301 | Box.Size=Size | |
302 | Box.Text = 'Enter your Password' | |
303 | Box.Position=Functions:Center(Box) | |
304 | Box.BackgroundTransparency=1 | |
305 | Box.TextStrokeColor3=CurrentPlayerData[3] | |
306 | Box.Parent=SGui | |
307 | Box.BackgroundColor3 = CurrentPlayerData[4] | |
308 | local enabled=true | |
309 | if Fade then | |
310 | Box.Position = Functions:CenterOffset(Box,ud(0,0,-.4,0)) | |
311 | for i = 0,1,.05 do | |
312 | Box.BackgroundTransparency=1-i | |
313 | lrs:wait() | |
314 | end | |
315 | Box:CaptureFocus() | |
316 | end | |
317 | local ev | |
318 | ev=Box.Focused:connect(function() | |
319 | --ev:disconnect() | |
320 | Box.ClearTextOnFocus=false | |
321 | end) | |
322 | local ev2 | |
323 | local lt='' | |
324 | ev2=Box.FocusLost:connect(function() | |
325 | if #Box.Text < 1 or Box.Text == 'Enter your Password' then | |
326 | Box.Text='Enter your Password' | |
327 | Box.ClearTextOnFocus=true | |
328 | end | |
329 | if Box.Text==CurrentPlayerData[2] then | |
330 | ev:disconnect() | |
331 | ev2:disconnect() | |
332 | Box.Active=false | |
333 | Box:TweenPosition(Functions:CenterOffset(Box,ud(0,0,-.55,0)),'Out','Linear',.5,true) | |
334 | Box.TextStrokeTransparency=1 | |
335 | for i = 0,1,.05 do | |
336 | Box.BackgroundTransparency=i | |
337 | Box.TextTransparency=i | |
338 | lrs:wait() | |
339 | end | |
340 | lt=Box.Text | |
341 | SGui:Destroy() | |
342 | end | |
343 | end) | |
344 | Box.BackgroundTransparency=0 | |
345 | if ltbl.loop then | |
346 | while SGui.Parent and enabled do | |
347 | lt=Box.Text | |
348 | if #Box.Text>limit and Box.Text ~= 'Enter your Password' then | |
349 | Box:ReleaseFocus() | |
350 | Box.Active=false | |
351 | local bft=Box.Text | |
352 | Box.Text='Password '..limit..' character limit.' | |
353 | wait(2) | |
354 | Box.Text=bft:sub(0,limit) | |
355 | Box.Active=true | |
356 | Box:CaptureFocus() | |
357 | end | |
358 | if #Box.Text>1 and Box.Text ~= 'Enter your Password' then | |
359 | local nt='' | |
360 | ltbl.ui.Text=nt | |
361 | for i = 1,#Box.Text do | |
362 | nt=nt..'*' | |
363 | end | |
364 | ltbl.ui.Text=nt | |
365 | elseif #Box.Text==0 then | |
366 | if Box.Text ~= 'Enter your Password' then | |
367 | Box.Text='Enter your Password' | |
368 | ltbl.ui.Text='Enter your Password' | |
369 | Box:ReleaseFocus() | |
370 | Box.ClearTextOnFocus=true | |
371 | end | |
372 | end | |
373 | lrs:wait() | |
374 | end | |
375 | end | |
376 | return lt | |
377 | end | |
378 | ||
379 | function Functions:IfRegistered(Player, Function) | |
380 | local Bool = false | |
381 | for Index, Data in next, OS.Logins do | |
382 | local user=Data[1] | |
383 | local pass=Data[2] | |
384 | if user == tostring(Player) then | |
385 | Bool = true | |
386 | end | |
387 | end | |
388 | Function(Bool) | |
389 | end | |
390 | ||
391 | function Functions:CreateProgram(Name, Id, Nick, Description, Click) | |
392 | table.insert(OS.Apps.Qeued,{tostring(Name), tonumber(Id), tostring(NickName), tostring(Description), Click}) | |
393 | end; | |
394 | ||
395 | local Search | |
396 | function Functions:Search(Parent, Function) | |
397 | for Index, Object in next, Parent:children() do | |
398 | pcall(function() | |
399 | Function(Object) | |
400 | end) | |
401 | Functions:Search(Object, Function) | |
402 | end | |
403 | end | |
404 | ||
405 | function Functions:ShowChar() | |
406 | OS.Functions:Search(Character, function(Object) | |
407 | if (Object:IsA'BasePart' or Object:IsA'Decal') and Object.Name ~='HumanoidRootPart' then | |
408 | Object.Transparency = 0 | |
409 | end | |
410 | end) | |
411 | end | |
412 | ||
413 | function Functions:HideChar() | |
414 | OS.Functions:Search(Character, function(Object) | |
415 | if (Object:IsA'BasePart' or Object:IsA'Decal') and Object.Name ~='HumanoidRootPart' then | |
416 | Object.Transparency = 1 | |
417 | end | |
418 | end) | |
419 | end | |
420 | ||
421 | local Notes={}; | |
422 | Functions:CreateProgram('Notepad++', 43360681, 'N++', 'Notepad for your... "personal" needs?', function(HF,TF,CF) | |
423 | local tb = Functions:MakeNewUi('TextButton') | |
424 | tb.Parent=CF | |
425 | tb.TextWrapped=true | |
426 | table.insert(Notes,tb) | |
427 | tb.Text = 'Notepad; '..#Notes | |
428 | tb.TextColor3=CurrentPlayerData[3] | |
429 | tb.BackgroundColor3=CurrentPlayerData[4] | |
430 | tb.Font=OS.Settings.Fonts.Sub_Header | |
431 | tb.TextStrokeTransparency=.9 | |
432 | tb.TextStrokeColor3=CurrentPlayerData[3] | |
433 | tb.TextXAlignment='Left' | |
434 | tb.TextYAlignment='Top' | |
435 | local SGui | |
436 | tb.MouseButton1Click:connect(function() | |
437 | pcall(function() | |
438 | SGui:Destroy() | |
439 | end) | |
440 | if Host.PlayerGui:FindFirstChild'nomnoemnp' then Host.PlayerGui:FindFirstChild'nomnoemnp':Destroy() end | |
441 | SGui = Instance.new('ScreenGui', Host.PlayerGui) | |
442 | SGui.Name='nomnoemnp' | |
443 | local Box = Functions:MakeNewUi('TextBox') | |
444 | Box.ClearTextOnFocus=false | |
445 | Box.TextColor3 = CurrentPlayerData[3] | |
446 | Box.TextStrokeTransparency=.9 | |
447 | Box.Size=ud(1,0,1,0) | |
448 | Box.Position=ud(-1,0,0,0) | |
449 | Box.Text = tb.Text | |
450 | Box.Visible = false | |
451 | Box.TextXAlignment='Left' | |
452 | --Box.MultiLine=true | |
453 | Box.TextYAlignment='Top' | |
454 | Box.BackgroundTransparency=1 | |
455 | Box.TextStrokeColor3=CurrentPlayerData[3] | |
456 | Box.Parent=SGui | |
457 | Box.BackgroundColor3 = CurrentPlayerData[4] | |
458 | Box:CaptureFocus() | |
459 | Box.FocusLost:connect(function() | |
460 | SGui:Destroy() | |
461 | end) | |
462 | local isub = '|' | |
463 | local l=false | |
464 | spawn(function() | |
465 | if tb.Text:sub(#tb.Text,#tb.Text)=='|' then | |
466 | tb.Text=tb.Text:sub(1,#tb.Text-1) | |
467 | end | |
468 | local canc = false | |
469 | spawn(function() | |
470 | while not canc do | |
471 | wait(.6) | |
472 | l=not l | |
473 | if l == true then | |
474 | isub='|' | |
475 | else | |
476 | isub='' | |
477 | end | |
478 | end | |
479 | end) | |
480 | repeat | |
481 | tb.Text=Box.Text..isub | |
482 | lrs:wait() | |
483 | until SGui.Parent ~= Host.PlayerGui | |
484 | if l then | |
485 | tb.Text=tb.Text:sub(1,#tb.Text-1) | |
486 | end | |
487 | --print'canc' | |
488 | canc=true | |
489 | SGui=nil | |
490 | end) | |
491 | end) | |
492 | end) | |
493 | --script.Parent=Host.PlayerGui | |
494 | ||
495 | Functions:CreateProgram('Calculator', 45545182, 'Calc', 'Math stuff man', function(HF,TF,CF) | |
496 | HF.Size = UDim2.new(0,150,0,300) | |
497 | end) | |
498 | ||
499 | local osEVENT = game:service'SoundService':FindFirstChild'osEVENT' | |
500 | if osEVENT==nil then | |
501 | osEVENT = Instance.new('RemoteEvent',game:service'SoundService') | |
502 | osEVENT.Name='osEVENT' | |
503 | end | |
504 | ||
505 | if game.PlaceId == 691043264 then | |
506 | Functions:CreateProgram('Lua', 71157241, 'LUA', 'Execute stuff...', function(HF,TF,CF) | |
507 | local tb = Functions:MakeNewUi('TextButton') | |
508 | tb.Parent=CF | |
509 | tb.TextWrapped=true | |
510 | tb.Text = '' | |
511 | tb.TextColor3=CurrentPlayerData[3] | |
512 | tb.BackgroundColor3=CurrentPlayerData[4] | |
513 | tb.Font=OS.Settings.Fonts.Sub_Header | |
514 | tb.Size=ud(.6,0,.9,0) | |
515 | tb.TextXAlignment='Left' | |
516 | tb.TextYAlignment='Top' | |
517 | ||
518 | local run = Functions:MakeNewUi('TextButton') | |
519 | run.Parent=CF | |
520 | run.Text = 'Run Script' | |
521 | run.BackgroundTransparency=0 | |
522 | run.TextColor3=CurrentPlayerData[4] | |
523 | run.BackgroundColor3=CurrentPlayerData[3] | |
524 | run.Font=OS.Settings.Fonts.Header | |
525 | run.Position=ud(0,0,.95,0) | |
526 | run.TextSize=11 | |
527 | run.Size=ud(.6,0,.05,0) | |
528 | ||
529 | local cleartb = Functions:MakeNewUi('TextButton') | |
530 | cleartb.Parent=CF | |
531 | cleartb.Text = 'Clear Text' | |
532 | cleartb.BackgroundTransparency=0 | |
533 | cleartb.TextColor3=CurrentPlayerData[4] | |
534 | cleartb.BackgroundColor3=CurrentPlayerData[3] | |
535 | cleartb.Font=OS.Settings.Fonts.Header | |
536 | cleartb.Position=ud(0,0,.9,0) | |
537 | cleartb.TextSize=11 | |
538 | cleartb.Size=ud(.6,0,.05,0) | |
539 | ||
540 | local ipos = 0 | |
541 | local timefromlast=0 | |
542 | local longestx=0 | |
543 | ||
544 | local clear = Functions:MakeNewUi('TextButton') | |
545 | clear.Parent=CF | |
546 | clear.Text = 'Clear Output' | |
547 | clear.BackgroundTransparency=0 | |
548 | clear.TextColor3=CurrentPlayerData[4] | |
549 | clear.BackgroundColor3=CurrentPlayerData[3] | |
550 | clear.Font=OS.Settings.Fonts.Header | |
551 | clear.Position=ud(.6,0,.95,0) | |
552 | clear.TextSize=11 | |
553 | clear.Size=ud(.4,0,.05,0) | |
554 | ||
555 | local output = Functions:MakeNewUi('ScrollingFrame') | |
556 | output.Parent=CF | |
557 | output.BackgroundColor3=CurrentPlayerData[3] | |
558 | output.Position=ud(.6,0,0,0) | |
559 | output.BackgroundTransparency=0 | |
560 | output.Size=ud(.4,0,.95,0) | |
561 | ||
562 | function op(argz) | |
563 | local txt,code,clr = argz[1],argz[2],argz[3] | |
564 | clr=clr or Color3.new(1,1,1) | |
565 | txt=' > '..txt or 'NO_TEXT' | |
566 | --print(txt,code,clr) | |
567 | local is = (tostring(code)==tostring(OS.GenCode)) | |
568 | if is then | |
569 | timefromlast=0 | |
570 | local lbl = Functions:MakeNewUi('TextLabel') | |
571 | lbl.Parent=output | |
572 | lbl.Position=ud(0,0,0,ipos) | |
573 | lbl.TextSize=10 | |
574 | if #txt > longestx then | |
575 | longextx=#txt | |
576 | end | |
577 | --txt=txt:gsub('\n','') | |
578 | lbl.TextColor3 = clr | |
579 | lbl.TextWrapped=true | |
580 | local count=0 | |
581 | local notting=true | |
582 | lbl.TextXAlignment='Left' | |
583 | lbl.Text = txt | |
584 | lbl.BackgroundTransparency=1 | |
585 | lbl.Size=ud(33,0,0,lbl.TextBounds.Y+5) | |
586 | ipos=ipos+lbl.TextBounds.Y+2 | |
587 | spawn(function() | |
588 | while notting do | |
589 | lrs:wait() | |
590 | count=count+1 | |
591 | local asx=output.AbsoluteSize.X | |
592 | local tbx=lbl.TextBounds.X | |
593 | --print(tbx,asx) | |
594 | if tbx > asx then | |
595 | lbl.Text=lbl.Text:sub(1+(asx*(count-1)),asx*count)..'\n'..lbl.Text:sub((asx*count)+1) | |
596 | else | |
597 | notting=false | |
598 | end | |
599 | end | |
600 | end) | |
601 | lbl.Size=ud(1,0,0,lbl.TextBounds.Y+5) | |
602 | end | |
603 | end | |
604 | ||
605 | op({'Hello world!', OS.GenCode, Color3.new(1,1,1)}) | |
606 | ||
607 | clear.MouseButton1Click:connect(function() | |
608 | output:ClearAllChildren() | |
609 | ipos=0 | |
610 | longestx=0 | |
611 | timefromlast=0 | |
612 | op({'Cleared output', OS.GenCode, BrickColor.new'Dark green'.Color}) | |
613 | end) | |
614 | ||
615 | cleartb.MouseButton1Click:connect(function() | |
616 | tb.Text='' | |
617 | pcall(function() | |
618 | SGui.Text='' | |
619 | end) | |
620 | end) | |
621 | ||
622 | local oev = osEVENT.OnClientEvent:connect(function(Argz) | |
623 | op(Argz) | |
624 | end) | |
625 | ||
626 | spawn(function() | |
627 | local ii=0 | |
628 | repeat lrs:wait() | |
629 | timefromlast=timefromlast+.05 | |
630 | ii=Functions:IntegerLerp(ii,ipos,.15) | |
631 | if timefromlast < 5 then | |
632 | output.CanvasSize=ud(0,longestx,0,ii) | |
633 | output.CanvasPosition=Vector2.new(0,ii) | |
634 | end | |
635 | until run.Parent ~= CF | |
636 | oev:disconnect() | |
637 | --print'dis' | |
638 | end) | |
639 | ||
640 | run.MouseButton1Click:connect(function() | |
641 | local lscode = [[ | |
642 | local owner = game:service'Players':WaitForChild(']]..Host.Name..[[') | |
643 | local event = game:service'SoundService':WaitForChild'osEVENT' | |
644 | local code = ]]..OS.GenCode..[[ | |
645 | function print(...) | |
646 | local Data, Return = {...}, "" | |
647 | for Index,Value in pairs(Data) do | |
648 | Return = Return .. tostring(Value) .. (Index < #Data and ", " or "") | |
649 | end | |
650 | event:FireClient(owner,{Return,code,Color3.new(1,1,1)}) | |
651 | end | |
652 | function warn(...) | |
653 | local Data, Return = {...}, "" | |
654 | for Index,Value in pairs(Data) do | |
655 | Return = Return .. tostring(Value) .. (Index < #Data and ", " or "") | |
656 | end | |
657 | event:FireClient(owner,{Return,code,Color3.new(1,.5,0)}) | |
658 | end | |
659 | function ferror(...) | |
660 | local Data, Return = {...}, "" | |
661 | for Index,Value in pairs(Data) do | |
662 | Return = Return .. tostring(Value) .. (Index < #Data and ", " or "") | |
663 | end | |
664 | event:FireClient(owner,{Return,code,Color3.new(.8,0,0)}) | |
665 | end | |
666 | delay(20,function() | |
667 | event:FireClient(owner,{'Auto removed script - delay ; 20',code,BrickColor.new'Dark green'.Color}) | |
668 | script:Destroy() | |
669 | end) | |
670 | local script = workspace:WaitForChild(']]..tostring(OS.Assets.FScript.Name)..[[') | |
671 | ]] | |
672 | local formattedcode = [[ | |
673 | pcall(function() | |
674 | local Success, Error = pcall(function() | |
675 | ]]..tb.Text..[[ | |
676 | end) | |
677 | if not Success then | |
678 | local err = Error | |
679 | err=err:gsub('ScriptBuilderScript','OS.sb') | |
680 | err=err:gsub('544','1') | |
681 | ferror(err) | |
682 | local stacks = debug.traceback() | |
683 | stacks=stacks:gsub('ScriptBuilderScript','OS.sb') | |
684 | event:FireClient(owner,{stacks,code,BrickColor.new'Bright blue'.Color}) | |
685 | else | |
686 | event:FireClient(owner,{'Ran script',code,BrickColor.new'Bright blue'.Color}) | |
687 | end | |
688 | end) | |
689 | ]] | |
690 | NS(lscode..'\n\n'..formattedcode, workspace) | |
691 | end) | |
692 | ||
693 | local SGui | |
694 | tb.MouseButton1Click:connect(function() | |
695 | pcall(function() | |
696 | SGui:Destroy() | |
697 | end) | |
698 | if Host.PlayerGui:FindFirstChild'nomnoemnp' then Host.PlayerGui:FindFirstChild'nomnoemnp':Destroy() end | |
699 | SGui = Instance.new('ScreenGui', Host.PlayerGui) | |
700 | SGui.Name='nomnoemnp' | |
701 | local Box = Functions:MakeNewUi('TextBox') | |
702 | Box.ClearTextOnFocus=false | |
703 | Box.TextColor3 = CurrentPlayerData[3] | |
704 | Box.TextStrokeTransparency=.9 | |
705 | Box.Size=ud(1,0,1,0) | |
706 | Box.Position=ud(-1,0,0,0) | |
707 | Box.Text = tb.Text | |
708 | Box.Visible = false | |
709 | Box.TextXAlignment='Left' | |
710 | --Box.MultiLine=true | |
711 | Box.TextYAlignment='Top' | |
712 | Box.BackgroundTransparency=1 | |
713 | Box.TextStrokeColor3=CurrentPlayerData[3] | |
714 | Box.Parent=SGui | |
715 | Box.BackgroundColor3 = CurrentPlayerData[4] | |
716 | Box:CaptureFocus() | |
717 | Box.FocusLost:connect(function() | |
718 | SGui:Destroy() | |
719 | end) | |
720 | local isub = '|' | |
721 | local l=false | |
722 | spawn(function() | |
723 | if tb.Text:sub(#tb.Text,#tb.Text)=='|' then | |
724 | tb.Text=tb.Text:sub(1,#tb.Text-1) | |
725 | end | |
726 | local canc = false | |
727 | spawn(function() | |
728 | while not canc do | |
729 | wait(.6) | |
730 | l=not l | |
731 | if l == true then | |
732 | isub='|' | |
733 | else | |
734 | isub='' | |
735 | end | |
736 | end | |
737 | end) | |
738 | repeat | |
739 | tb.Text=Box.Text..isub | |
740 | lrs:wait() | |
741 | until SGui.Parent ~= Host.PlayerGui | |
742 | if l then | |
743 | tb.Text=tb.Text:sub(1,#tb.Text-1) | |
744 | end | |
745 | canc=true | |
746 | SGui=nil | |
747 | end) | |
748 | end) | |
749 | end) | |
750 | end | |
751 | ||
752 | Functions:CreateProgram('Settings',485882401,'Sett','Also self explanitory...',function(HF,TF,CF) | |
753 | end) | |
754 | ||
755 | spawn(function() | |
756 | local nw={}; | |
757 | for i,v in next, OS.Backgrounds do | |
758 | delay(math.random()*5,function() | |
759 | nw[#nw+1]=v | |
760 | end) | |
761 | end | |
762 | repeat wait() until #nw==#OS.Backgrounds | |
763 | wait(.5) | |
764 | OS.Backgrounds=nw | |
765 | Functions:Notification('Formatted OS.Backgrounds', 4) | |
766 | end) | |
767 | ||
768 | spawn(function() | |
769 | local nw={}; | |
770 | for i,v in next, OS.Sounds do | |
771 | delay(math.random()*5,function() | |
772 | nw[#nw+1]=v | |
773 | end) | |
774 | end | |
775 | repeat wait() until #nw==#OS.Sounds | |
776 | wait(.5) | |
777 | OS.Sounds=nw | |
778 | Functions:Notification('Formatted OS.Sounds', 4) | |
779 | end) | |
780 | ||
781 | Functions:CreateProgram('Gallery', 152445445, 'Images', 'View your favorite, saved, and default images', function(HF,TF,CF) | |
782 | local title = Functions:MakeNewUi('TextLabel') | |
783 | title.TextColor3 = CurrentPlayerData[3] | |
784 | title.TextStrokeTransparency=1 | |
785 | title.Size=ud(1,0,.1,0) | |
786 | title.Text = 'Gallery - '..#OS.Backgrounds..' assets total' | |
787 | title.TextXAlignment='Center' | |
788 | title.TextYAlignment='Center' | |
789 | title.Font = OS.Settings.Fonts.Header | |
790 | title.BackgroundTransparency=1 | |
791 | title.Parent=CF | |
792 | title.BackgroundColor3 = CurrentPlayerData[4] | |
793 | ||
794 | spawn(function() | |
795 | wait(1) | |
796 | Effects:Underline(title, 15, 300, 2, CurrentPlayerData[3], true) | |
797 | end) | |
798 | ||
799 | local scroll = Functions:MakeNewUi('ScrollingFrame') | |
800 | scroll.Size=ud(1,0,.9,0) | |
801 | scroll.Position = ud(0,0,.1,0) | |
802 | scroll.BackgroundTransparency=0 | |
803 | scroll.TopImage=Functions:Asset(317839361) | |
804 | scroll.MidImage=Functions:Asset(317839361) | |
805 | scroll.BottomImage=Functions:Asset(317839361) | |
806 | scroll.ScrollBarThickness = 5 | |
807 | scroll.Parent=CF | |
808 | scroll.BackgroundColor3 = CurrentPlayerData[4] | |
809 | ||
810 | local Loaded = 0 | |
811 | local o,d = 0,0 | |
812 | local curbg = nil | |
813 | local bgs={}; | |
814 | for i, Id in next, OS.Backgrounds do | |
815 | --local Market = game:service'MarketplaceService' | |
816 | --local Asset = Market:GetProductInfo(Id) | |
817 | ||
818 | local Img = Functions:MakeNewUi('ImageButton') | |
819 | Img.Image = Functions:Asset(Id) | |
820 | local scl = 2 | |
821 | local add = .005 | |
822 | local sx,sy=(.089*scl),(.05*scl) | |
823 | Img.Size=ud(sx,0,0,34*2) | |
824 | Img.Position = ud(((sx+add)*o)+.05,0,0,((36*2)*d)) | |
825 | o=o+1 | |
826 | game:service'RunService'.RenderStepped:wait() | |
827 | if sx*(o+1) >= 1 then | |
828 | d=d+1 | |
829 | o=0 | |
830 | scroll.CanvasSize=ud(0,0,0,((36*2)*d)) | |
831 | end | |
832 | Img.BackgroundColor3 = scroll.BackgroundColor3 | |
833 | Img.BorderColor3 = CurrentPlayerData[3] | |
834 | Img.ImageTransparency=1 | |
835 | Img.MouseButton1Down:connect(function() | |
836 | curbg = Img | |
837 | OS.Assets.Background.Image=Functions:Asset(Id) | |
838 | end) | |
839 | Img.Parent=scroll | |
840 | ||
841 | spawn(function() | |
842 | for i = 0,1.05,.05 do | |
843 | Img.ImageTransparency=1-i | |
844 | game:service'RunService'.RenderStepped:wait() | |
845 | end | |
846 | end) | |
847 | bgs[#bgs+1]=Img | |
848 | end | |
849 | while #bgs > 0 do | |
850 | lrs:wait() | |
851 | for i,Img in next, bgs do | |
852 | if Img == nil or Img.Parent == nil then | |
853 | table.remove(bgs,i) | |
854 | else | |
855 | if curbg == Img then | |
856 | Img.BorderSizePixel = 2 | |
857 | else | |
858 | Img.BorderSizePixel=0 | |
859 | end | |
860 | end | |
861 | end | |
862 | end | |
863 | end) | |
864 | ||
865 | Functions:CreateProgram('Explorer', 27854793, 'Expl', 'Explore the game\'s children', function(HF,TF,CF) | |
866 | local funcs = {}; | |
867 | local title = Functions:MakeNewUi('TextLabel') | |
868 | title.TextColor3 = CurrentPlayerData[3] | |
869 | title.TextStrokeTransparency=1 | |
870 | title.Size=ud(1,0,.2,0) | |
871 | title.Text = 'Services' | |
872 | title.TextXAlignment='Center' | |
873 | title.TextYAlignment='Center' | |
874 | title.BackgroundTransparency=1 | |
875 | title.Parent=CF | |
876 | title.BackgroundColor3 = CurrentPlayerData[4] | |
877 | ||
878 | spawn(function() | |
879 | wait(1) | |
880 | Effects:Underline(title, 15, 80, 2, CurrentPlayerData[3], true) | |
881 | end) | |
882 | ||
883 | local scroll = Functions:MakeNewUi('ScrollingFrame') | |
884 | scroll.Size=ud(.8,0,.8,0) | |
885 | scroll.Position = ud(.1,0,.2,0) | |
886 | scroll.BackgroundTransparency=1 | |
887 | scroll.TopImage=Functions:Asset(317839361) | |
888 | scroll.MidImage=Functions:Asset(317839361) | |
889 | scroll.BottomImage=Functions:Asset(317839361) | |
890 | scroll.ScrollBarThickness = 5 | |
891 | scroll.Parent=CF | |
892 | scroll.BackgroundColor3 = CurrentPlayerData[4] | |
893 | ||
894 | function funcs:w() | |
895 | return wait(.05) | |
896 | end | |
897 | ||
898 | local buttons={}; | |
899 | local t = 0 | |
900 | function funcs:clearscroll() | |
901 | t=t+1 | |
902 | buttons={}; | |
903 | for i,v in next, scroll:children() do | |
904 | --funcs:w() | |
905 | pcall(function() | |
906 | spawn(function() | |
907 | v:TweenPosition(ud(1,0,v.Position.Y.Scale,v.Position.Y.Offset),'Out','Quint',2,true) | |
908 | for i = 0,1.05,.05 do | |
909 | pcall(function() | |
910 | v.TextTransparency=v.TextTransparency+.05 | |
911 | end) | |
912 | pcall(function() | |
913 | v.BackgroundTransparency=v.BackgroundTransparency+.05 | |
914 | end) | |
915 | pcall(function() | |
916 | v.TextStrokeTransparency=v.TextStrokeTransparency+.05 | |
917 | end) | |
918 | lrs:wait() | |
919 | end | |
920 | v:Destroy() | |
921 | end) | |
922 | end) | |
923 | end | |
924 | wait(2) | |
925 | end | |
926 | ||
927 | function funcs:bt(i,txt,func) | |
928 | delay(0,function() | |
929 | if t == i then | |
930 | --funcs:w() | |
931 | local button = Functions:MakeNewUi('TextButton') | |
932 | local index = #buttons | |
933 | buttons[index+1]=button | |
934 | local y = 22*(index) | |
935 | scroll.CanvasSize=ud(0,0,0,y) | |
936 | button.TextColor3 = CurrentPlayerData[3] | |
937 | button.TextStrokeTransparency=.9 | |
938 | button.Size=ud(1,0,0,20) | |
939 | button.Position=ud(1,0,0,y) | |
940 | button.Text = txt | |
941 | button.TextXAlignment='Left' | |
942 | button.TextTransparency=1 | |
943 | button.TextSize = 12 | |
944 | button.Font=OS.Settings.Fonts.Header | |
945 | --button.TextYAlignment='Top' | |
946 | button.BackgroundTransparency=.6 | |
947 | button.TextStrokeColor3=CurrentPlayerData[3] | |
948 | button.Parent=scroll | |
949 | button.BackgroundColor3 = CurrentPlayerData[4] | |
950 | spawn(function() | |
951 | button:TweenPosition(ud(0,0,0,y),'Out','Quint',.5,true) | |
952 | for i = 0,1.05,.05 do | |
953 | button.TextTransparency=1-i | |
954 | lrs:wait() | |
955 | end | |
956 | end) | |
957 | local ev | |
958 | ev=button.MouseButton1Click:connect(function() | |
959 | ev:disconnect() | |
960 | func(button) | |
961 | end) | |
962 | return button | |
963 | else | |
964 | return nil | |
965 | end | |
966 | end) | |
967 | end | |
968 | ||
969 | function funcs:showoptions(obj) | |
970 | funcs:clearscroll() | |
971 | local st = t | |
972 | if obj:IsA'Instance' then | |
973 | title.Text = obj:GetFullName() | |
974 | if #obj:children() > 0 then | |
975 | local expl=funcs:bt(st,'Explore',function() | |
976 | funcs:showchildren(obj) | |
977 | end) | |
978 | end | |
979 | pcall(function() | |
980 | if obj ~= game and obj.Parent ~= game then | |
981 | local expl=funcs:bt(st,'Destroy',function() | |
982 | local par = obj.Parent | |
983 | local pn = obj.Name | |
984 | pcall(function() | |
985 | obj:Destroy() | |
986 | end) | |
987 | funcs:clearscroll() | |
988 | local nst = t | |
989 | funcs:bt(nst,'Return to '..pn..'\'s parent object',function() | |
990 | funcs:showchildren(par) | |
991 | end) | |
992 | funcs:bt(nst,'Destroyed '..pn,function() | |
993 | end) | |
994 | end) | |
995 | end | |
996 | end) | |
997 | if obj ~= game then | |
998 | local tag = 'Return to '..obj.Parent.Name..'\'s children' | |
999 | if obj.Parent==game then | |
1000 | tag='Return to explorable services' | |
1001 | end | |
1002 | local ret=funcs:bt(st,tag,function() | |
1003 | funcs:showchildren(obj.Parent) | |
1004 | end) | |
1005 | elseif obj.Parent == game then | |
1006 | funcs:showservs() | |
1007 | end | |
1008 | local sprops=funcs:bt(st,'Show Properties',function() | |
1009 | funcs:clearscroll() | |
1010 | local st2 = t | |
1011 | local rett=funcs:bt(st2,'Return to options for '..obj.Name,function() | |
1012 | funcs:showoptions(obj) | |
1013 | end) | |
1014 | local Props = Functions:ReturnObjectProperties(obj) | |
1015 | Props['Children'] = #obj:children() | |
1016 | for index, value in next, Props do | |
1017 | local prop=funcs:bt(st2,tostring(index)..': '..tostring(value),function() | |
1018 | end) | |
1019 | end | |
1020 | end) | |
1021 | end | |
1022 | end | |
1023 | ||
1024 | function funcs:showchildren(prnt) | |
1025 | funcs:clearscroll() | |
1026 | local st = t | |
1027 | if prnt:IsA'Instance' then | |
1028 | local back=funcs:bt(st,'Show me options for '..prnt.Name,function() | |
1029 | funcs:showoptions(prnt) | |
1030 | end) | |
1031 | for i,v in next, prnt:children() do | |
1032 | pcall(function() | |
1033 | if prnt:IsA'Instance' then | |
1034 | local sub=' - '..v.ClassName | |
1035 | pcall(function() | |
1036 | if prnt==game then | |
1037 | sub='' | |
1038 | end | |
1039 | end) | |
1040 | local child=funcs:bt(st,v.Name..sub,function() | |
1041 | funcs:showoptions(v) | |
1042 | end) | |
1043 | end | |
1044 | end) | |
1045 | end | |
1046 | end | |
1047 | end | |
1048 | function funcs:showservs() | |
1049 | funcs:clearscroll() | |
1050 | local st = t | |
1051 | local servs = {}; | |
1052 | for i,v in next, game:children() do | |
1053 | pcall(function() | |
1054 | if #v:children() > 0 then | |
1055 | table.insert(servs,v) | |
1056 | end | |
1057 | end) | |
1058 | end | |
1059 | local child=funcs:bt(st,'SHOW ME ALL THE DAMN SERVICES!',function() | |
1060 | funcs:showoptions(game) | |
1061 | end) | |
1062 | for i,v in next, servs do | |
1063 | local child = funcs:bt(st,v.Name,function() | |
1064 | funcs:showoptions(v) | |
1065 | end) | |
1066 | end | |
1067 | end | |
1068 | funcs:showservs() | |
1069 | end) | |
1070 | ||
1071 | local Audios={}; | |
1072 | local CurrentPlaying = nil | |
1073 | function Functions:AddSound(Id) | |
1074 | for Index, Sound in next, Audios do | |
1075 | if Sound:IsA'Sound' then | |
1076 | Sound:Stop() | |
1077 | Sound.PlayOnRemove=false | |
1078 | end | |
1079 | end | |
1080 | local Sound = Instance.new('Sound', Monitor) | |
1081 | Sound.SoundId=Functions:Asset(Id) | |
1082 | Sound.Volume=.9 | |
1083 | CurrentPlaying = Sound | |
1084 | table.insert(Audios, Sound) | |
1085 | return Sound | |
1086 | end | |
1087 | ||
1088 | function Functions:IntegerLerp(a,b,c) | |
1089 | return a + (b - a) * c; | |
1090 | end | |
1091 | ||
1092 | Functions:CreateProgram('Messenger',485845332,'MGR','Self explanitory... idiot', function(HF,TF,CF) | |
1093 | end) | |
1094 | ||
1095 | local cur = nil | |
1096 | local curSound = nil | |
1097 | Functions:CreateProgram('SmAudio', 64646186, 'SmA', 'An archive of selected music just for you ;) with extra features as well', function(HF,TF,CF) | |
1098 | local title = Functions:MakeNewUi('TextLabel') | |
1099 | title.TextColor3 = CurrentPlayerData[3] | |
1100 | title.TextStrokeTransparency=1 | |
1101 | title.Size=ud(1,0,.2,0) | |
1102 | title.Text = 'SmAudio Alpha' | |
1103 | title.TextXAlignment='Center' | |
1104 | title.TextYAlignment='Center' | |
1105 | title.Font = OS.Settings.Fonts.Header | |
1106 | title.BackgroundTransparency=1 | |
1107 | title.Parent=CF | |
1108 | title.BackgroundColor3 = CurrentPlayerData[4] | |
1109 | ||
1110 | spawn(function() | |
1111 | wait(1) | |
1112 | Effects:Underline(title, 15, 80, 2, CurrentPlayerData[3], true) | |
1113 | end) | |
1114 | ||
1115 | local scroll = Functions:MakeNewUi('ScrollingFrame') | |
1116 | scroll.Size=ud(.8,0,.8,0) | |
1117 | scroll.Position = ud(.1,0,.2,0) | |
1118 | scroll.BackgroundTransparency=0 | |
1119 | scroll.TopImage=Functions:Asset(317839361) | |
1120 | scroll.MidImage=Functions:Asset(317839361) | |
1121 | scroll.BottomImage=Functions:Asset(317839361) | |
1122 | scroll.ScrollBarThickness = 5 | |
1123 | scroll.Parent=CF | |
1124 | scroll.BackgroundColor3 = CurrentPlayerData[4] | |
1125 | ||
1126 | local max = 0 | |
1127 | spawn(function() | |
1128 | local y = 0 | |
1129 | repeat game:service'RunService'.RenderStepped:wait() | |
1130 | y=Functions:IntegerLerp(y,max,.02) | |
1131 | --print(max) | |
1132 | --print(y) | |
1133 | --scroll.CanvasSize=ud(0,0,0,y) | |
1134 | until CF.Parent == nil | |
1135 | end) | |
1136 | ||
1137 | local play,pause,sound = Functions:Asset(745599404),Functions:Asset(745599001),Functions:Asset(176572847) | |
1138 | ||
1139 | local Loaded = 0 | |
1140 | for i, Id in next, OS.Sounds do | |
1141 | delay((math.random()/(math.random()+.2))*3, function() | |
1142 | local Market = game:service'MarketplaceService' | |
1143 | local Asset = Market:GetProductInfo(Id) | |
1144 | ||
1145 | local Song = Functions:MakeNewUi('ImageButton') | |
1146 | Song.Parent=scroll | |
1147 | Song.Image = play | |
1148 | local clr=CurrentPlayerData[3] | |
1149 | local clr2=CurrentPlayerData[4] | |
1150 | Song.BackgroundColor3=clr | |
1151 | Song.Size=ud(0,45,0,45) | |
1152 | Song.BackgroundTransparency=1 | |
1153 | ||
1154 | local y = (Song.Size.Y.Offset+2)*(i-1) | |
1155 | max=max+(Song.Size.Y.Offset+2) | |
1156 | local x = Song.Size.X.Offset | |
1157 | ||
1158 | local author = Functions:MakeNewUi('TextLabel') | |
1159 | author.TextColor3 = CurrentPlayerData[3] | |
1160 | author.Size=ud(1,-x+10,0,20) | |
1161 | author.Position = ud(0,x+10,0,y) | |
1162 | author.Text = 'Author '..Asset.Creator.Name..' ; '..Asset.Creator.Id | |
1163 | author.TextXAlignment='Left' | |
1164 | author.TextYAlignment='Center' | |
1165 | author.TextSize = 16 | |
1166 | author.Font = OS.Settings.Fonts.Header | |
1167 | author.BackgroundTransparency=1 | |
1168 | author.TextTransparency=1 | |
1169 | author.Parent=scroll | |
1170 | author.BackgroundColor3 = CurrentPlayerData[3] | |
1171 | ||
1172 | local name = Functions:MakeNewUi('TextLabel') | |
1173 | name.TextColor3 = CurrentPlayerData[3] | |
1174 | name.Size=ud(1,-x+10,0,20) | |
1175 | name.Position = ud(0,x+10,0,y+(author.TextSize+2)) | |
1176 | name.Text = 'Name '..Asset.Name | |
1177 | name.TextXAlignment='Left' | |
1178 | name.TextYAlignment='Center' | |
1179 | name.TextSize = 12 | |
1180 | name.TextTransparency=1 | |
1181 | name.Font = OS.Settings.Fonts.Header | |
1182 | name.BackgroundTransparency=1 | |
1183 | name.Parent=scroll | |
1184 | name.BackgroundColor3 = CurrentPlayerData[3] | |
1185 | ||
1186 | local desc = Functions:MakeNewUi('TextLabel') | |
1187 | desc.TextColor3 = CurrentPlayerData[3] | |
1188 | local alg = (((name.TextBounds.X+author.TextBounds.X)/1.5)+(10+(author.TextSize+name.TextSize))) | |
1189 | desc.Size=ud(1,-x-(alg+scroll.ScrollBarThickness),0,46) | |
1190 | desc.Position = ud(1,0,0,y-1) | |
1191 | desc.Text = Asset.Creator.Name..': '..Asset.Description | |
1192 | desc.BorderSizePixel=0 | |
1193 | desc.BorderColor3 = CurrentPlayerData[3] | |
1194 | desc.TextWrapped=true | |
1195 | desc.TextXAlignment='Left' | |
1196 | desc.TextTransparency=1 | |
1197 | desc.TextYAlignment='Top' | |
1198 | desc.TextSize = 12 | |
1199 | desc.Font = OS.Settings.Fonts.Header | |
1200 | desc.BackgroundTransparency=1 | |
1201 | desc.Parent=scroll | |
1202 | desc.BackgroundColor3 = scroll.BackgroundColor3 | |
1203 | desc.ClipsDescendants=false | |
1204 | ||
1205 | local line = Functions:MakeNewUi('TextLabel') | |
1206 | line.TextColor3 = CurrentPlayerData[3] | |
1207 | line.Size=ud(0,1,1,0) | |
1208 | line.Position = ud(0,-4,0,0) | |
1209 | line.Text = '' | |
1210 | line.BackgroundTransparency=0 | |
1211 | line.BackgroundColor3 = CurrentPlayerData[3] | |
1212 | line.Parent=desc | |
1213 | ||
1214 | if Asset.Description=='Audio' or Asset.Description=='RenderMesh' then | |
1215 | desc:Destroy() | |
1216 | else | |
1217 | desc:TweenPosition(ud(0,x+alg,0,y-1),'Out','Quint',1,true) | |
1218 | end | |
1219 | ||
1220 | Song.Position = ud(0,-x,0,y) | |
1221 | ||
1222 | Song.ZIndex=8 | |
1223 | Song.MouseEnter:connect(function() | |
1224 | local t=clr2 | |
1225 | local tt=.15 | |
1226 | clr=c3(t.r-tt,t.b-tt,t.g-tt) | |
1227 | clr2=CurrentPlayerData[3] | |
1228 | end) | |
1229 | Song.MouseLeave:connect(function() | |
1230 | clr=CurrentPlayerData[3] | |
1231 | clr2=CurrentPlayerData[4] | |
1232 | end) | |
1233 | ||
1234 | Song.MouseButton1Click:connect(function() | |
1235 | if cur == Song then | |
1236 | curSound:Pause() | |
1237 | cur=nil | |
1238 | else | |
1239 | cur=Song | |
1240 | curSound = Functions:AddSound(Id) | |
1241 | curSound.Looped = true | |
1242 | curSound:Play() | |
1243 | clr=CurrentPlayerData[3] | |
1244 | clr2=CurrentPlayerData[4] | |
1245 | end | |
1246 | end) | |
1247 | ||
1248 | spawn(function() | |
1249 | for i = 0,1.05,.05 do | |
1250 | desc.TextTransparency=1-i | |
1251 | desc.BackgroundTransparency=1-i | |
1252 | name.TextTransparency=1-i | |
1253 | author.TextTransparency=1-i | |
1254 | game:service'RunService'.RenderStepped:wait() | |
1255 | end | |
1256 | end) | |
1257 | ||
1258 | spawn(function() | |
1259 | repeat game:service'RunService'.RenderStepped:wait() | |
1260 | if cur == Song then | |
1261 | Song.Image = pause | |
1262 | else | |
1263 | Song.Image = play | |
1264 | end | |
1265 | Song.BackgroundColor3=Song.BackgroundColor3:lerp(clr,.25) | |
1266 | Song.ImageColor3=Song.ImageColor3:lerp(clr2,.25) | |
1267 | until CF.Parent == nil | |
1268 | end) | |
1269 | Song:TweenPosition(ud(0,0,0,y),'Out','Quint',.5,true) | |
1270 | Loaded = Loaded + 1 | |
1271 | end) | |
1272 | end | |
1273 | local ii=0 | |
1274 | repeat | |
1275 | wait() | |
1276 | title.Text = 'Loading Assets #'..Loaded | |
1277 | ii=Functions:IntegerLerp(ii,max+10,.04) | |
1278 | scroll.CanvasSize=ud(0,0,0,ii) | |
1279 | scroll.CanvasPosition=Vector2.new(0,ii) | |
1280 | until Loaded == #OS.Sounds | |
1281 | title.Text = 'SmAudio Beta' | |
1282 | end) | |
1283 | ||
1284 | function Functions:GeneratePrograms(Distance) | |
1285 | --print'k' | |
1286 | local Over, Down=0,0 | |
1287 | for Index, Data in next, OS.Apps.Qeued do | |
1288 | if Down > 7 then | |
1289 | return | |
1290 | end | |
1291 | local maximized,ump,ums | |
1292 | lrs:wait() | |
1293 | local Icon = Functions:MakeNewUi('ImageButton') | |
1294 | Icon.Image=Functions:PlayerImage(Host) | |
1295 | Icon.Parent=MainFrame | |
1296 | Icon.BackgroundColor3=CurrentPlayerData[4] | |
1297 | Icon.Image=Functions:Asset(Data[2]) | |
1298 | Icon.Size=ud(0,50,0,50) | |
1299 | Icon.ZIndex=2 | |
1300 | Icon.ImageTransparency=0 | |
1301 | local IconName = Functions:MakeNewUi('TextLabel') | |
1302 | IconName.Font=OS.Settings.Fonts.Header | |
1303 | IconName.Parent=Icon | |
1304 | IconName.TextYAlignment='Bottom' | |
1305 | IconName.TextSize = 10 | |
1306 | IconName.Text= Data[1] | |
1307 | IconName.Size=ud(1,0,0,20) | |
1308 | IconName.Position=ud(0,0,1,-20) | |
1309 | IconName.ZIndex=2 | |
1310 | local bgtp = 1 | |
1311 | Icon.MouseEnter:connect(function() | |
1312 | bgtp=.5 | |
1313 | end) | |
1314 | Icon.MouseLeave:connect(function() | |
1315 | bgtp=1 | |
1316 | end) | |
1317 | local oi = bgtp | |
1318 | lrs:connect(function() | |
1319 | oi=Functions:IntegerLerp(oi,bgtp,.3) | |
1320 | Icon.BackgroundTransparency=oi | |
1321 | end) | |
1322 | OS.Apps.Generated[Data[1]]=Icon | |
1323 | if Over >= 13 then | |
1324 | Down = Down + 1 | |
1325 | Over = 0 | |
1326 | end | |
1327 | Icon.Position=ud(0,15+(60*(Over)),0,15+(60*(Down))) | |
1328 | Over = Over + 1 | |
1329 | Icon.ZIndex=2 | |
1330 | local oic | |
1331 | oic=Icon.MouseButton1Click:connect(function() | |
1332 | local AlreadyOpen=false | |
1333 | for Index, Ting in next, OS.Apps.Open do | |
1334 | for i = 1,#Ting do | |
1335 | if Data[i] == Ting[i] then | |
1336 | AlreadyOpen=true | |
1337 | end | |
1338 | end | |
1339 | end | |
1340 | if AlreadyOpen then | |
1341 | warn'nop' | |
1342 | return | |
1343 | end | |
1344 | table.insert(OS.Apps.Open,{Data[1],Data[2],Data[3]}) | |
1345 | OS.RecentlyUsedPrograms[Data[4]]=Data | |
1346 | local HolderFrame = Functions:MakeNewUi('Frame') | |
1347 | HolderFrame.ZIndex=3 | |
1348 | HolderFrame.BackgroundTransparency=0 | |
1349 | HolderFrame.BorderSizePixel=.1 | |
1350 | HolderFrame.BorderColor3=CurrentPlayerData[3] | |
1351 | HolderFrame.Size=ud(0,600,0,400) | |
1352 | HolderFrame.Name='HF' | |
1353 | HolderFrame.BackgroundColor3=CurrentPlayerData[3] | |
1354 | HolderFrame.Position = Functions:Center(HolderFrame) | |
1355 | HolderFrame.Parent = MainFrame | |
1356 | maximized,ump,ums=false,HolderFrame.Position,HolderFrame.Size | |
1357 | local function Enable() | |
1358 | for i,gui in next, MainFrame:children() do | |
1359 | if gui:IsA'ImageButton' then | |
1360 | gui.Visible=true | |
1361 | end | |
1362 | end | |
1363 | end | |
1364 | local function Disable() | |
1365 | for i,gui in next, MainFrame:children() do | |
1366 | if gui:IsA'ImageButton' then | |
1367 | gui.Visible=false | |
1368 | end | |
1369 | end | |
1370 | end | |
1371 | ||
1372 | local ev1 | |
1373 | ev1=HolderFrame.MouseEnter:connect(function() | |
1374 | --print'k1' | |
1375 | Disable() | |
1376 | end) | |
1377 | local ev2 | |
1378 | ev2=HolderFrame.MouseLeave:connect(function() | |
1379 | --print'k2' | |
1380 | Enable() | |
1381 | end) | |
1382 | local InfoFrame = Functions:MakeNewUi('Frame') | |
1383 | InfoFrame.ZIndex=4 | |
1384 | InfoFrame.BackgroundTransparency=0 | |
1385 | InfoFrame.Size=ud(1,0,0,15) | |
1386 | InfoFrame.Name='TF' | |
1387 | InfoFrame.BackgroundColor3=CurrentPlayerData[3] | |
1388 | for i = 1,3 do | |
1389 | i=i | |
1390 | local CButt = Functions:MakeNewUi('ImageButton') | |
1391 | CButt.Image=Functions:Asset(625953771) | |
1392 | CButt.Parent=InfoFrame | |
1393 | CButt.ImageTransparency=.15 | |
1394 | local OCF | |
1395 | --505680534 | |
1396 | spawn(function() | |
1397 | local up=.75 | |
1398 | local r,g,b=0,0,0 | |
1399 | if (i==1) then | |
1400 | r,g,b=.8,.01,.01 | |
1401 | elseif (i==2) then | |
1402 | r,g,b=.95,.95,0 | |
1403 | elseif (i==3) then | |
1404 | r,g,b=0,.7,0 | |
1405 | end | |
1406 | CButt.ImageColor3 = c3(r,g,b) | |
1407 | CButt.MouseEnter:connect(function() | |
1408 | for i = 0,1,.1 do | |
1409 | CButt.ImageColor3 = CButt.ImageColor3:lerp(c3(r+up,g+up,b+up),.13) | |
1410 | lrs:wait() | |
1411 | end | |
1412 | end) | |
1413 | CButt.MouseLeave:connect(function() | |
1414 | for i = 0,1,.1 do | |
1415 | CButt.ImageColor3 = CButt.ImageColor3:lerp(c3(r,g,b),.13) | |
1416 | lrs:wait() | |
1417 | end | |
1418 | end) | |
1419 | end) | |
1420 | --if not OCF then OCF=function()print'missing func'end;end | |
1421 | if (i==1) then | |
1422 | r,g,b=.8,.01,.01 | |
1423 | local evv | |
1424 | ev1:disconnect() | |
1425 | ev2:disconnect() | |
1426 | evv=CButt.MouseButton1Click:connect(function() | |
1427 | for Index, Ting in next, OS.Apps.Open do | |
1428 | if Data[1] == Ting[1] then | |
1429 | table.remove(OS.Apps.Open, Index) | |
1430 | end | |
1431 | end | |
1432 | evv:disconnect() | |
1433 | local pos = HolderFrame.Position | |
1434 | HolderFrame.Active=false | |
1435 | HolderFrame:Destroy() | |
1436 | end) | |
1437 | elseif (i==2) then | |
1438 | r,g,b=.95,.95,0 | |
1439 | local evv | |
1440 | evv=CButt.MouseButton1Click:connect(function() | |
1441 | if maximized then | |
1442 | HolderFrame:TweenSizeAndPosition(ums,ump,'Out','Sine',.3,true) | |
1443 | maximized=false | |
1444 | else | |
1445 | HolderFrame:TweenSizeAndPosition(ud(1,2,1,-50),ud(0,-1,0,-1),'Out','Quint',.3,true) | |
1446 | maximized=true | |
1447 | end | |
1448 | end) | |
1449 | elseif (i==3) then | |
1450 | r,g,b=0,.7,0 | |
1451 | local evv | |
1452 | ev1:disconnect() | |
1453 | ev2:disconnect() | |
1454 | for Index, Ting in next, OS.Apps.Open do | |
1455 | if Data[1] == Ting[1] then | |
1456 | table.remove(OS.Apps.Open, Index) | |
1457 | end | |
1458 | end | |
1459 | evv=CButt.MouseButton1Click:connect(function() | |
1460 | evv:disconnect() | |
1461 | HolderFrame:TweenSizeAndPosition(ud(0,50,0,50),Icon.Position,'Out','Quint',.5,true) | |
1462 | wait(.2) | |
1463 | HolderFrame:Destroy() | |
1464 | end) | |
1465 | --Functions:AddToTaskBar(Data[1],Data[2],{ump,ums}) | |
1466 | end | |
1467 | --CButt.MouseButton1Click:connect(OCF) | |
1468 | CButt.Size=ud(0,12,0,12) | |
1469 | CButt.Position=Functions:CenterOffset(CButt,ud(.5,-(15*i),0,0)) | |
1470 | --CButt:TweenPosition(Functions:CenterOffset(CButt,ud(0,0,0,-50),'Out','Back',1,true)) | |
1471 | end | |
1472 | InfoFrame.Parent = HolderFrame | |
1473 | local InfoIcon = Functions:MakeNewUi('ImageButton') | |
1474 | InfoIcon.Parent=InfoFrame | |
1475 | InfoIcon.Image=Functions:Asset(Data[2]) | |
1476 | InfoIcon.Size=ud(0,12,0,12) | |
1477 | InfoIcon.ImageTransparency=0 | |
1478 | InfoIcon.Position=ud(0,2,0,3) | |
1479 | InfoIcon.ZIndex=4 | |
1480 | local InfoText = Functions:MakeNewUi('TextButton') | |
1481 | InfoText.BackgroundTransparency=.5 | |
1482 | InfoText.FontSize='Size12' | |
1483 | InfoText.Parent=InfoFrame | |
1484 | InfoText.TextXAlignment='Left' | |
1485 | InfoText.Text= Data[1]--..' \ '..Data[4]--'*C:\Users\\'..Host.Name..'' | |
1486 | InfoText.Size=ud(1,-40,1,0) | |
1487 | InfoText.Position=ud(0,16,0,0) | |
1488 | InfoText.ZIndex=4 | |
1489 | ||
1490 | local md=false | |
1491 | InfoText.MouseButton1Down:connect(function() | |
1492 | md=true | |
1493 | local origp=HolderFrame.Position | |
1494 | local origs=ud(0,600,0,15) | |
1495 | local origmp=OS.Assets.Mouse.Position | |
1496 | HolderFrame.Size = ud(0,600,0,400) | |
1497 | maximized=false | |
1498 | spawn(function() | |
1499 | repeat wait() until OS.MouseDown == false | |
1500 | md=false | |
1501 | end) | |
1502 | while md do | |
1503 | local mp={OS.Assets.Mouse.Position.X.Scale,OS.Assets.Mouse.Position.X.Offset,OS.Assets.Mouse.Position.Y.Scale,OS.Assets.Mouse.Position.Y.Offset}; | |
1504 | local fs={origs.X.Scale,origs.X.Offset,origs.Y.Scale,origs.Y.Offset}; | |
1505 | local fp={origp.X.Scale,origp.X.Offset,origp.Y.Scale,origp.Y.Offset}; | |
1506 | --local a,b= | |
1507 | local x,y=mp[2]-(fs[2]/2),mp[4]-(fs[4]/2) | |
1508 | --print(x,y) | |
1509 | HolderFrame.Position=ud(0,x,0,y) | |
1510 | lrs:wait() | |
1511 | end | |
1512 | end) | |
1513 | InfoText.MouseButton1Up:connect(function() | |
1514 | --md=false | |
1515 | end) | |
1516 | local ContentFrame = Functions:MakeNewUi('Frame') | |
1517 | ContentFrame.ZIndex=4 | |
1518 | ContentFrame.BackgroundTransparency=.1 | |
1519 | ContentFrame.Size=ud(1,-2,1,-17) | |
1520 | ContentFrame.Position=ud(0,1,0,16) | |
1521 | ContentFrame.Name='CF' | |
1522 | ContentFrame.BackgroundColor3=CurrentPlayerData[4] | |
1523 | ContentFrame.Parent = HolderFrame | |
1524 | Data[5](HolderFrame, TitleFrame, ContentFrame) | |
1525 | end) | |
1526 | end | |
1527 | end | |
1528 | ||
1529 | local AtMainScreen=false | |
1530 | function Functions:MakeHomeScreen() | |
1531 | local Background_id = CurrentPlayerData[5] | |
1532 | local BackgroundImg = Functions:MakeNewUi('ImageLabel') | |
1533 | BackgroundImg.Image=Functions:Asset(Background_id) | |
1534 | BackgroundImg.Name='Background' | |
1535 | BackgroundImg.BackgroundTransparency=1 | |
1536 | BackgroundImg.ImageTransparency = .1 | |
1537 | BackgroundImg.Parent=MainFrame | |
1538 | BackgroundImg.ZIndex=1 | |
1539 | BackgroundImg.Size=ud(1,0,1,0) | |
1540 | OS.Assets.Background = BackgroundImg | |
1541 | for i = 0,1.025,.025 do | |
1542 | MainFrame.BackgroundTransparency=i | |
1543 | lrs:wait() | |
1544 | end | |
1545 | local TskBar = Functions:MakeNewUi('TextLabel') | |
1546 | TskBar.Size = ud(1,0,0,52) | |
1547 | TskBar.Parent = MainFrame | |
1548 | TskBar.BackgroundColor3 = CurrentPlayerData[3] | |
1549 | TskBar.BackgroundTransparency = .5 | |
1550 | TskBar.Position = ud(0,0,1,0) | |
1551 | TskBar.ZIndex = 9 | |
1552 | TskBar:TweenPosition(ud(0,0,1,-52.5),'Out','Quint',1.2,true) | |
1553 | for i = 0,.15,.05 do | |
1554 | local TskBarShader = Functions:MakeNewUi('TextLabel') | |
1555 | TskBarShader.BackgroundTransparency = .8 | |
1556 | TskBarShader.BackgroundColor3 = CurrentPlayerData[4] | |
1557 | TskBarShader.BorderSizePixel = 0 | |
1558 | TskBarShader.Size = ud(1,0,.05,0) | |
1559 | TskBarShader.Position = ud(0,0,-i,0) | |
1560 | delay(.2,function() | |
1561 | TskBarShader:TweenPosition(ud(0,0,i+5,0),'Out','Quint',.5,true) | |
1562 | end) | |
1563 | TskBarShader.ZIndex = 9 | |
1564 | TskBarShader.Name = 'shd'..i | |
1565 | --TskBar:ClearAllChildren() | |
1566 | TskBarShader.Parent = TskBar | |
1567 | end | |
1568 | --//tem\\ | |
1569 | local TimeLabel = Instance.new'TextLabel' | |
1570 | TimeLabel.BackgroundTransparency = 1 | |
1571 | TimeLabel.BackgroundColor3 = c3(255,255,255) | |
1572 | TimeLabel.BorderSizePixel = 0 | |
1573 | TimeLabel.ZIndex = 9 | |
1574 | TimeLabel.TextColor3 = CurrentPlayerData[4] | |
1575 | TimeLabel.Font = OS.Settings.Fonts.Sub_Header | |
1576 | TimeLabel.TextScaled = true | |
1577 | TimeLabel.Name = 'TimeLabel' | |
1578 | TimeLabel.TextWrapped = true | |
1579 | TimeLabel.TextStrokeTransparency = .9 | |
1580 | TimeLabel.Text = '00:00:00 PM' | |
1581 | TimeLabel.Parent = TskBar | |
1582 | TimeLabel.Size = ud(.08,0,.3,0) | |
1583 | TimeLabel.Position = ud(.92,-10,0,6) | |
1584 | ||
1585 | local DateLabel = Instance.new'TextLabel' | |
1586 | DateLabel.BackgroundTransparency = 1 | |
1587 | DateLabel.BackgroundColor3 = c3(255,255,255) | |
1588 | DateLabel.BorderSizePixel = 0 | |
1589 | DateLabel.ZIndex = 9 | |
1590 | DateLabel.TextColor3 = CurrentPlayerData[4] | |
1591 | DateLabel.Font = OS.Settings.Fonts.Sub_Header | |
1592 | DateLabel.TextScaled = true | |
1593 | DateLabel.Name = 'DateLabel' | |
1594 | DateLabel.TextWrapped = true | |
1595 | DateLabel.TextStrokeTransparency = .9 | |
1596 | DateLabel.Text = '00/00/0000' | |
1597 | DateLabel.Parent = TskBar | |
1598 | DateLabel.Size = ud(.08,0,.3,0) | |
1599 | DateLabel.Position = ud(.92,-10,.6,-6) | |
1600 | ||
1601 | local Logo = Functions:MakeNewUi'ImageButton' | |
1602 | Logo.BackgroundTransparency = 1 | |
1603 | Logo.BackgroundColor3 = CurrentPlayerData[3] | |
1604 | Logo.BorderSizePixel = 0 | |
1605 | Logo.ZIndex = 10 | |
1606 | Logo.Image = Functions:Asset(265489553) | |
1607 | --Logo.TextColor3 = CurrentPlayerData[4] | |
1608 | --Logo.Font = 'Cartoon' | |
1609 | --Logo.FontSize='Size36' | |
1610 | Logo.Name = 'Logo' | |
1611 | --Logo.TextStrokeTransparency = .9 | |
1612 | --Logo.Text = '∂Y' | |
1613 | Logo.Parent = TskBar | |
1614 | Logo.Size = ud(0,40,0,50) | |
1615 | Logo.Position = ud(0,1,0,1) | |
1616 | local clrcancel=false | |
1617 | local igc,bgc=CurrentPlayerData[4],CurrentPlayerData[3] | |
1618 | Logo.MouseEnter:connect(function() | |
1619 | local continue=true | |
1620 | clrcancel=true | |
1621 | clrcancel=false | |
1622 | spawn(function() | |
1623 | for i = 0,.57,.07 do | |
1624 | Logo.BackgroundTransparency=1-i | |
1625 | lrs:wait() | |
1626 | end | |
1627 | end) | |
1628 | igc,bgc=CurrentPlayerData[3],CurrentPlayerData[4] | |
1629 | end) | |
1630 | Logo.MouseLeave:connect(function() | |
1631 | local continue=true | |
1632 | clrcancel=true | |
1633 | clrcancel=false | |
1634 | spawn(function() | |
1635 | for i = 0,.57,.07 do | |
1636 | Logo.BackgroundTransparency=.5+i | |
1637 | lrs:wait() | |
1638 | end | |
1639 | end) | |
1640 | igc,bgc=CurrentPlayerData[4],CurrentPlayerData[3] | |
1641 | end) | |
1642 | local StartFrameHolder = Functions:MakeNewUi('Frame') | |
1643 | StartFrameHolder.ZIndex=5 | |
1644 | StartFrameHolder.BackgroundTransparency=1 | |
1645 | StartFrameHolder.Size=ud(0,200,.6,0) | |
1646 | StartFrameHolder.Position = ud(0,0,.4,-52) | |
1647 | StartFrameHolder.Parent = MainFrame | |
1648 | local StartFrame = Functions:MakeNewUi('Frame') | |
1649 | StartFrame.ZIndex=9 | |
1650 | StartFrame.BackgroundTransparency=.5 | |
1651 | StartFrame.Size=ud(1,0,1,0) | |
1652 | StartFrame.BorderSizePixel=2 | |
1653 | StartFrame.Name='SF' | |
1654 | StartFrame.BorderColor3=CurrentPlayerData[4] | |
1655 | StartFrame.Position = ud(0,0,1,0) | |
1656 | StartFrame.Parent = StartFrameHolder | |
1657 | ||
1658 | local TestButton = Functions:MakeNewUi('TextButton') | |
1659 | TestButton.ZIndex=6 | |
1660 | TestButton.BackgroundTransparency=.7 | |
1661 | TestButton.Size=ud(1,-6,0,50) | |
1662 | TestButton.Position = ud(0,3,0,3) | |
1663 | TestButton.Text='TEST NOTIFICATIONS' | |
1664 | TestButton.Parent = StartFrame | |
1665 | TestButton.MouseButton1Click:connect(function() | |
1666 | Functions:Notification('Just testing the dank re-alignment and stuff, kek.') | |
1667 | end) | |
1668 | ||
1669 | local sfcc,detection=false,false | |
1670 | StartFrame.MouseEnter:connect(function() | |
1671 | detection=false | |
1672 | sfcc=false | |
1673 | end) | |
1674 | StartFrame.MouseLeave:connect(function() | |
1675 | detection=true | |
1676 | sfcc=true | |
1677 | end) | |
1678 | ||
1679 | local Extended=false | |
1680 | local function Open(trans) | |
1681 | StartFrame:TweenPosition(ud(0,0,0,0),'Out','Sine',.5,true) | |
1682 | for i = 0,1.05,.05 do | |
1683 | for a,b in next, StartFrame:children() do | |
1684 | if b.Name ~= 'SF' then | |
1685 | pcall(function() | |
1686 | b.TextTransparency=b.TextTransparency-.05 | |
1687 | end) | |
1688 | pcall(function() | |
1689 | b.BackgroundTransparency=bBackgroundTransparency-.05 | |
1690 | end) | |
1691 | pcall(function() | |
1692 | b.ImageTransparency=b.ImageTransparency-.05 | |
1693 | end) | |
1694 | end | |
1695 | end | |
1696 | StartFrame.BackgroundTransparency=1-.05 | |
1697 | lrs:wait() | |
1698 | end | |
1699 | StartFrame.BackgroundTransparency=trans | |
1700 | Extended=true | |
1701 | end | |
1702 | local function Close(trans) | |
1703 | StartFrame:TweenPosition(ud(0,0,1,0),'Out','Sine',.5,true) | |
1704 | for i = 0,1,.05 do | |
1705 | for a,b in next, StartFrame:children() do | |
1706 | if b.Name ~= 'SF' then | |
1707 | pcall(function() | |
1708 | b.TextTransparency=b.TextTransparency+.05 | |
1709 | end) | |
1710 | pcall(function() | |
1711 | b.BackgroundTransparency=bBackgroundTransparency+.05 | |
1712 | end) | |
1713 | pcall(function() | |
1714 | b.ImageTransparency=b.ImageTransparency+.05 | |
1715 | end) | |
1716 | end | |
1717 | end | |
1718 | StartFrame.BackgroundTransparency=trans+.05 | |
1719 | lrs:wait() | |
1720 | end | |
1721 | StartFrame.BackgroundTransparency=1 | |
1722 | Extended=false | |
1723 | end | |
1724 | local trans=.45 | |
1725 | PlayerMouse.Button1Down:connect(function() | |
1726 | if sfcc and Extended then | |
1727 | detection=false | |
1728 | Close(trans) | |
1729 | end | |
1730 | end) | |
1731 | PlayerMouse.Button2Down:connect(function() | |
1732 | if sfcc and Extended then | |
1733 | detection=false | |
1734 | Close(trans) | |
1735 | end | |
1736 | end) | |
1737 | Logo.MouseButton1Down:connect(function(x,y) | |
1738 | if Extended then | |
1739 | Close(trans) | |
1740 | else | |
1741 | Open(trans) | |
1742 | end | |
1743 | end) | |
1744 | local Months = { | |
1745 | "January", "Febreuary", "March", "April", "May", "June", | |
1746 | "July", "August", "September", "October", "November", "December" | |
1747 | } | |
1748 | local MonthDays = { | |
1749 | 31, 28, 31, 30, 31, 30, | |
1750 | 31, 31, 30, 31, 30, 31 | |
1751 | } | |
1752 | ||
1753 | function getDay(Date, year) | |
1754 | local month, date = Date:match("(%a+)%s*(%d+)") | |
1755 | local DAYS = tonumber(date) | |
1756 | local leaps = math.floor( (year-2011)/4 - .25 ) + 1 | |
1757 | local Days = {"Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday"} | |
1758 | for _, v in ipairs(MonthDays) do | |
1759 | if Months[_] == month then break end | |
1760 | DAYS = DAYS + v | |
1761 | end | |
1762 | DAYS = math.floor( DAYS + (year-2017) * 365 ) + leaps | |
1763 | return Days[ (DAYS%7 == 0 and 7 or DAYS%7) ] | |
1764 | end | |
1765 | ||
1766 | function getMonthAndDate(days, year) | |
1767 | local leap = year%4 == 0 and 1 or 0 | |
1768 | local month; | |
1769 | for _, v in ipairs(MonthDays) do | |
1770 | if (days-v) < 1 then | |
1771 | month = Months[_] | |
1772 | break | |
1773 | end | |
1774 | days = days - v | |
1775 | end | |
1776 | return month, days | |
1777 | end | |
1778 | local LTime,LDate = '','' | |
1779 | local M = '' | |
1780 | Time = function() | |
1781 | local secondsInDay = 60*60*24 | |
1782 | local time = tick() | |
1783 | local year = math.floor(1970 + time/(365.25*86400)) | |
1784 | local days = math.ceil(((time % (86400*365.25)) )/86400 + 0.25) | |
1785 | local month, date = getMonthAndDate(days, year) | |
1786 | local day = getDay(month..date, year) | |
1787 | local tick = math.fmod(tick(),secondsInDay) | |
1788 | local hour = math.floor(tick/3600) + 5 + -5 | |
1789 | local minute = math.floor(tick/60 - 60*hour) | |
1790 | local seconds = math.floor(math.fmod(tick,60)) | |
1791 | if (hour > 12) then | |
1792 | M = ' PM' hour = hour - 12 | |
1793 | else | |
1794 | M = ' AM' | |
1795 | end | |
1796 | if hour == 0 then | |
1797 | hour = 12 | |
1798 | end | |
1799 | if hour == 24 then | |
1800 | hour = 1 | |
1801 | end | |
1802 | LTime = string.format("%2.0f:%02.0f",hour,minute) | |
1803 | local MonthNums = { | |
1804 | ["January"]=1, ["February"]=2, ["March"]=3, ["April"]=4, ["May"]=5, ["June"]=6, | |
1805 | ["July"]=7, ["August"]=8, ["September"]=9, ["October"]=10, ["November"]=11, ["December"]=12 | |
1806 | } | |
1807 | month=MonthNums[month] | |
1808 | LDate = month..'/'..(days-1)..'/'..year | |
1809 | TimeLabel.Text = LTime..M | |
1810 | DateLabel.Text = LDate | |
1811 | Logo.ImageColor3 = Logo.ImageColor3:lerp(igc,.2) | |
1812 | Logo.BackgroundColor3 = Logo.BackgroundColor3:lerp(bgc,.2) | |
1813 | end | |
1814 | game:service'RunService'.Heartbeat:connect(Time) | |
1815 | AtMainScreen=true | |
1816 | local txt='' | |
1817 | if Official then | |
1818 | txt='Welcome back, '..CurrentPlayerData[1]..', your last session\'s saved data has been loaded' | |
1819 | else | |
1820 | txt='Hello, '..CurrentPlayerData[1]..'. Your data will be saved at the end of this session' | |
1821 | end | |
1822 | delay(math.random(1,4),function() | |
1823 | delay(.3,function() | |
1824 | Functions:PlayerImgNotification('SavageMunkey', 'Creator & Founder of ∂YaviOS - SavageMunkey') | |
1825 | end) | |
1826 | local fr,tl = Functions:Notification(txt,6) | |
1827 | end) | |
1828 | Functions:GeneratePrograms({25,20}) | |
1829 | AtMainScreen=true | |
1830 | return warn'Homescreen Loaded' | |
1831 | end | |
1832 | ||
1833 | function Functions:PlayerImgNotification(Plr, Type) | |
1834 | if not AtMainScreen then return end | |
1835 | local sz=50 | |
1836 | if Type=='join' then | |
1837 | local fr,tl=Functions:Notification('New Player has joined, '..tostring(Plr)..'.', 4) | |
1838 | tl.Size=ud(1,-(sz+5),1,0) | |
1839 | tl.Position=ud(0,sz+5,0,0) | |
1840 | local UserImage = Functions:MakeNewUi('ImageLabel') | |
1841 | UserImage.Image=Functions:PlayerImage(tostring(Plr)) | |
1842 | UserImage.Parent=fr | |
1843 | UserImage.Size=ud(0,sz,1,0) | |
1844 | UserImage.ImageTransparency=0 | |
1845 | UserImage.Position=ud(0,4,0,0) | |
1846 | UserImage.ZIndex=8 | |
1847 | wait(4*1.5) | |
1848 | for i = 0,1.05,.05 do UserImage.ImageTransparency=i lrs:wait() end | |
1849 | elseif Type=='rmv' then | |
1850 | local fr,tl=Functions:Notification('Player has left, '..tostring(Plr)..'.', 4) | |
1851 | tl.Size=ud(1,-(sz+5),1,0) | |
1852 | tl.Position=ud(0,sz+5,0,0) | |
1853 | local UserImage = Functions:MakeNewUi('ImageLabel') | |
1854 | UserImage.Image=Functions:PlayerImage(tostring(Plr)) | |
1855 | UserImage.Parent=fr | |
1856 | UserImage.Size=ud(0,sz,1,0) | |
1857 | UserImage.ImageTransparency=0 | |
1858 | UserImage.Position=ud(0,4,0,0) | |
1859 | UserImage.ZIndex=8 | |
1860 | wait(4*1.5) | |
1861 | for i = 0,1.05,.05 do UserImage.ImageTransparency=i lrs:wait() end | |
1862 | else | |
1863 | local fr,tl=Functions:Notification(Type, 4) | |
1864 | tl.Size=ud(1,-(sz+5),1,0) | |
1865 | tl.Position=ud(0,sz+5,0,0) | |
1866 | local UserImage = Functions:MakeNewUi('ImageLabel') | |
1867 | UserImage.Image=Functions:PlayerImage(tostring(Plr)) | |
1868 | UserImage.Parent=fr | |
1869 | UserImage.Size=ud(0,sz,1,0) | |
1870 | UserImage.ImageTransparency=0 | |
1871 | UserImage.Position=ud(0,4,0,0) | |
1872 | UserImage.ZIndex=8 | |
1873 | wait(4*1.5) | |
1874 | for i = 0,1.05,.05 do UserImage.ImageTransparency=i lrs:wait() end | |
1875 | end | |
1876 | end | |
1877 | ||
1878 | local Notifications={}; | |
1879 | local Notifs=0 | |
1880 | ||
1881 | function Functions:AdjustNotifPositions() | |
1882 | local upv=0 | |
1883 | for i, data in next, Notifications do | |
1884 | --warn('('..tostring(ud(1,-200,.8,-(60*upv)))..')',#Notifications) | |
1885 | pcall(function() | |
1886 | data[1]:TweenPosition(ud(1,-200,.8,-(60*upv)),'Out','Back',.5,true) | |
1887 | end) | |
1888 | upv=upv+1 | |
1889 | wait(.1) | |
1890 | end | |
1891 | end | |
1892 | ||
1893 | function Functions:Notification(Text, ExitDelay) | |
1894 | if not ExitDelay then ExitDelay=4 end | |
1895 | if not AtMainScreen then return end | |
1896 | local v=false | |
1897 | local Frame = Functions:MakeNewUi('Frame') | |
1898 | Frame.ZIndex=8 | |
1899 | Frame.BackgroundTransparency=.25 | |
1900 | Frame.Size=ud(0,200,0,55) | |
1901 | Frame.BackgroundColor3=CurrentPlayerData[4] | |
1902 | Frame.Position = ud(1,0,.8,-(60*Notifs)) | |
1903 | Frame.Parent=MainFrame | |
1904 | Frame:TweenPosition(ud(1,-200,.8,-(60*Notifs)),'Out','Sine',2,true) | |
1905 | table.insert(Notifications,{Frame,ud(1,-200,.8,-(60*Notifs))}) | |
1906 | local Shader1 = Functions:MakeNewUi('Frame') | |
1907 | Shader1.ZIndex=9 | |
1908 | Shader1.BackgroundTransparency=.9 | |
1909 | Shader1.Size=ud(0,2,1,0) | |
1910 | Shader1.BackgroundColor3=CurrentPlayerData[4] | |
1911 | Shader1.Position = ud(0,-2,0,0) | |
1912 | Shader1.Parent=Frame | |
1913 | local Shader2 = Functions:MakeNewUi('Frame') | |
1914 | Shader2.ZIndex=9 | |
1915 | Shader2.BackgroundTransparency=.8 | |
1916 | Shader2.Size=ud(0,1,1,0) | |
1917 | Shader2.BackgroundColor3=CurrentPlayerData[4] | |
1918 | Shader2.Position = ud(0,-1,0,0) | |
1919 | Shader2.Parent=Frame | |
1920 | spawn(function() | |
1921 | Shader1:TweenPosition(ud(0,0,0,0),'Out','Linear',.4,true) | |
1922 | wait(.1) | |
1923 | Shader2:TweenPosition(ud(0,1,0,0),'Out','Linear',.4,true) | |
1924 | end) | |
1925 | local TLabel = Functions:MakeNewUi('TextButton') | |
1926 | TLabel.TextColor3=CurrentPlayerData[4] | |
1927 | TLabel.Position=ud(0,4,0,0) | |
1928 | TLabel.ZIndex=9 | |
1929 | TLabel.Active=true | |
1930 | TLabel.BackgroundTransparency=.98 | |
1931 | TLabel.TextWrapped=true | |
1932 | TLabel.Size=ud(1,-4,1,0) | |
1933 | TLabel.TextXAlignment='Left' | |
1934 | --TLabel.TextYAlignment='Top' | |
1935 | TLabel.Font=OS.Settings.Fonts.Sub_Header | |
1936 | TLabel.FontSize='Size12' | |
1937 | TLabel.TextStrokeColor3=CurrentPlayerData[4] | |
1938 | TLabel.TextStrokeTransparency=1 | |
1939 | TLabel.TextTransparency=1 | |
1940 | TLabel.Parent=Frame | |
1941 | Notifs=Notifs+1 | |
1942 | local tic = Functions:Sound(230336790,false) | |
1943 | tic:Play() | |
1944 | for i = 0,1.02,.02 do | |
1945 | Frame.BackgroundColor3=Frame.BackgroundColor3:lerp(CurrentPlayerData[3],.2) | |
1946 | Frame.BackgroundTransparency=1.5-i | |
1947 | TLabel.TextStrokeTransparency=1.9-i | |
1948 | TLabel.TextTransparency=1-i | |
1949 | lrs:wait() | |
1950 | end | |
1951 | local cc=true | |
1952 | local function Close() | |
1953 | if (not cc) then return end | |
1954 | --print'3' | |
1955 | Frame:TweenPosition(ud(1,0,.8,Frame.Position.Y.Offset),'Out','Sine',3,true) | |
1956 | for i = 0,1.015,.02 do | |
1957 | --Frame.BackgroundColor3=Frame.BackgroundColor3:lerp(c3(0,0,0),.2) | |
1958 | Frame.BackgroundTransparency=.5+i | |
1959 | Shader1.BackgroundTransparency=.9+i | |
1960 | Shader2.BackgroundTransparency=.8+i | |
1961 | TLabel.TextStrokeTransparency=.9+i | |
1962 | TLabel.TextTransparency=i | |
1963 | lrs:wait() | |
1964 | end | |
1965 | val=true | |
1966 | Frame:Destroy() | |
1967 | for i,v in next, Notifications do | |
1968 | if v[1]==Frame then | |
1969 | table.remove(Notifications,i) | |
1970 | end | |
1971 | end | |
1972 | Notifs=Notifs-1 | |
1973 | Functions:AdjustNotifPositions() | |
1974 | end | |
1975 | local ev | |
1976 | ev=TLabel.MouseButton1Click:connect(function() | |
1977 | --print'k' | |
1978 | spawn(Close) | |
1979 | wait() | |
1980 | cc=false | |
1981 | ev:disconnect() | |
1982 | end) | |
1983 | spawn(function() | |
1984 | if cc then | |
1985 | Effects:Type(TLabel, Text, 'In',.01) | |
1986 | wait(ExitDelay*1.2) | |
1987 | --print'k2' | |
1988 | spawn(Close) | |
1989 | wait() | |
1990 | cc=false | |
1991 | ev:disconnect() | |
1992 | end | |
1993 | end) | |
1994 | return Frame, TLabel | |
1995 | end | |
1996 | ||
1997 | function Functions:CreateLogin() | |
1998 | local BFrame = Functions:MakeNewUi('Frame') | |
1999 | BFrame.ZIndex=4 | |
2000 | BFrame.BackgroundTransparency=1 | |
2001 | BFrame.Size=ud(1,0,1,0) | |
2002 | BFrame.Position = ud(0,0,0,0) | |
2003 | BFrame.Parent=MainFrame | |
2004 | local TransFrame = Functions:MakeNewUi('Frame') | |
2005 | TransFrame.ZIndex=8 | |
2006 | TransFrame.BackgroundTransparency=1 | |
2007 | TransFrame.Parent=MainFrame | |
2008 | local Start = Functions:MakeNewUi('TextButton') | |
2009 | local txt='Welcome to SaviOS, '..Host.Name..'.' | |
2010 | Start.Text=txt | |
2011 | Start.Font=OS.Settings.Fonts.Header | |
2012 | Start.TextColor3=CurrentPlayerData[4] | |
2013 | Start.Position=ud(0,0,0,-18) | |
2014 | Start.BackgroundTransparency=1 | |
2015 | Start.TextTransparency=1 | |
2016 | Start.Parent=BFrame | |
2017 | local Sub = Functions:MakeNewUi('TextLabel') | |
2018 | Sub.Parent=BFrame | |
2019 | Sub.TextColor3=CurrentPlayerData[4] | |
2020 | Sub.Text='Loading Decal and Sound Assets.' | |
2021 | Sub.Position=ud(0,0,0,25-18) | |
2022 | Sub.BackgroundTransparency=1 | |
2023 | Sub.TextTransparency=1 | |
2024 | Sub.ZIndex=6 | |
2025 | local Circ = Functions:MakeNewUi('ImageLabel') | |
2026 | Circ.Image=Functions:Asset(502107146) | |
2027 | Circ.Parent=BFrame | |
2028 | Circ.ImageTransparency=0 | |
2029 | Circ.ImageColor3 = CurrentPlayerData[3] | |
2030 | Circ.Size=ud(0,350,0,400) | |
2031 | Circ.Position=Functions:CenterOffset(Circ,ud(0,0,0,0)) | |
2032 | Circ.ZIndex=5 | |
2033 | local con=false | |
2034 | spawn(function() | |
2035 | Effects:Type(Start, txt, 'In',.06) | |
2036 | local nspd=.5 | |
2037 | repeat wait(nspd) | |
2038 | --Start.Text=txt | |
2039 | Circ:TweenSizeAndPosition(ud(0,450,0,500),ud(.5,-450/2,.5,-250),'In','Back',nspd,true) | |
2040 | wait(nspd) | |
2041 | Circ:TweenSizeAndPosition(ud(0,350,0,400),ud(.5,-350/2,.5,-200),'Out','Quint',nspd,true) | |
2042 | --Start.Text=txt..'|' | |
2043 | until con | |
2044 | end) | |
2045 | for i = 0,1.025,.025 do | |
2046 | Start.TextTransparency = 1-i | |
2047 | MainFrame.BackgroundTransparency = 1-i | |
2048 | lrs:wait() | |
2049 | end | |
2050 | local function finish_Load() | |
2051 | Particles=false | |
2052 | Effects:Type(Start, txt, 'Out',.02) | |
2053 | Start.Text='' | |
2054 | Circ:TweenSizeAndPosition(ud(0,15,0,20),ud(.5,-15/2,.5,-10),'In','Quint',2,true) | |
2055 | wait(2) | |
2056 | Circ:TweenSizeAndPosition(ud(0,950,0,1000),ud(.5,-950/2,.5,-500),'In','Back',1,true) | |
2057 | wait(.2) | |
2058 | for i = 0,1.025,.025 do | |
2059 | Sub.TextTransparency = i | |
2060 | Circ.ImageTransparency=i | |
2061 | lrs:wait() | |
2062 | end | |
2063 | Circ:Destroy() | |
2064 | BFrame.Size = ud(0,400,0,210) | |
2065 | BFrame.Position = Functions:Center(BFrame) | |
2066 | spawn(function() | |
2067 | for i = 0,20,.1 do | |
2068 | MainFrame.BackgroundColor3 = MainFrame.BackgroundColor3:lerp(CurrentPlayerData[3],.1) | |
2069 | lrs:wait() | |
2070 | end | |
2071 | end) | |
2072 | Sub.Text='Assets['..(#OS.Backgrounds+#OS.Sounds)..'] Loaded.' | |
2073 | delay(.5,function() | |
2074 | txt='Click here to begin' | |
2075 | Effects:Type(Start, txt, 'In',.05) | |
2076 | delay(.6,function() | |
2077 | Start.Text=txt | |
2078 | end) | |
2079 | end) | |
2080 | for i = 0,1.025,.025 do | |
2081 | Sub.TextTransparency = 1-i | |
2082 | lrs:wait() | |
2083 | end | |
2084 | end | |
2085 | local con2=false | |
2086 | delay(1,function() | |
2087 | for i = 0,1.025,.025 do | |
2088 | Sub.TextTransparency = 1-i | |
2089 | lrs:wait() | |
2090 | end | |
2091 | delay(2,function() | |
2092 | local tbl1={}; | |
2093 | local tbl2={OS.Backgrounds,OS.Sounds,OS.DecalAssets} | |
2094 | for _,__ in next, tbl2 do | |
2095 | for i, Id in next, __ do | |
2096 | table.insert(tbl1, Id) | |
2097 | end | |
2098 | end | |
2099 | for i,v in next, tbl1 do lrs:wait() end | |
2100 | con=true | |
2101 | finish_Load() | |
2102 | con2=true | |
2103 | end) | |
2104 | end) | |
2105 | repeat lrs:wait() until con2 | |
2106 | Start.TextTransparency = 0 | |
2107 | --MainFrame.Transparency = 0 | |
2108 | local LoginScreen | |
2109 | local sclick | |
2110 | sclick=Start.MouseButton1Down:connect(function() | |
2111 | Sub:TweenPosition(ud(0,0,1,50),'In','Quint',1,true) | |
2112 | delay(1, function() | |
2113 | LoginScreen(false) | |
2114 | end) | |
2115 | sclick:disconnect() | |
2116 | end) | |
2117 | function LoginScreen(NewFrame) | |
2118 | OS['Login']=LoginScreen | |
2119 | if NewFrame then | |
2120 | BFrame = Functions:MakeNewUi('Frame') | |
2121 | BFrame.ZIndex=4 | |
2122 | BFrame.BackgroundTransparency=1 | |
2123 | BFrame.Size = ud(0,400,0,210) | |
2124 | BFrame.Position = Functions:Center(BFrame) | |
2125 | BFrame.Parent=MainFrame | |
2126 | end | |
2127 | pcall(function() | |
2128 | Sub:Destroy() | |
2129 | for i = 0,1.025,.025 do | |
2130 | Start.TextTransparency = i | |
2131 | lrs:wait() | |
2132 | end | |
2133 | Start.Parent=nil | |
2134 | end) | |
2135 | local UserImage = Functions:MakeNewUi('ImageLabel') | |
2136 | UserImage.Image=Functions:PlayerImage(Host) | |
2137 | UserImage.Parent=BFrame | |
2138 | UserImage.Size=ud(0,100,0,100) | |
2139 | UserImage.ImageTransparency=1 | |
2140 | UserImage.Position=Functions:CenterOffset(UserImage,ud(0,0,-1,0)) | |
2141 | UserImage:TweenPosition(Functions:CenterOffset(UserImage,ud(0,0,0,-50),'Out','Back',1,true)) | |
2142 | UserImage.ZIndex=8 | |
2143 | local UserImgFrame = Functions:MakeNewUi('ImageLabel') | |
2144 | UserImgFrame.Image=Functions:Asset(502107146) | |
2145 | UserImgFrame.Parent=BFrame | |
2146 | UserImgFrame.ImageTransparency=0 | |
2147 | --UserImgFrame.ImageColor3 = c3(Monitor.Color.r+.2,Monitor.Color.g+.2,Monitor.Color.b+.2) | |
2148 | UserImgFrame.Size=ud(0,100,0,100) | |
2149 | UserImgFrame.Position=Functions:CenterOffset(UserImgFrame,ud(0,0,-1,0)) | |
2150 | UserImgFrame:TweenPosition(Functions:CenterOffset(UserImgFrame,ud(0,0,0,-50),'Out','Back',1,true)) | |
2151 | local Username = Functions:MakeNewUi('TextLabel') | |
2152 | Username.Text = Host.Name | |
2153 | Username.Parent = BFrame | |
2154 | Username.TextTransparency=.9 | |
2155 | Username.Position=ud(0,0,1,0) | |
2156 | Username.ZIndex=9 | |
2157 | Username:TweenPosition(ud(0,0,0,15),'Out','Quint',1,true) | |
2158 | local Password = Functions:MakeNewUi('TextButton') | |
2159 | Password.TextTransparency=1 | |
2160 | Password.Parent=BFrame | |
2161 | Password.Position=ud(0,0,1,0) | |
2162 | Password.Font=OS.Settings.Fonts.Sub_Header | |
2163 | Password.TextStrokeColor3 = Password.TextColor3 | |
2164 | Password.MouseEnter:connect(function() | |
2165 | Password.TextStrokeTransparency=.9 | |
2166 | end) | |
2167 | Password.MouseLeave:connect(function() | |
2168 | Password.TextStrokeTransparency=1 | |
2169 | end) | |
2170 | local canclick=false | |
2171 | Password.MouseButton1Down:connect(function(x,y) | |
2172 | if not canclick then | |
2173 | return | |
2174 | end | |
2175 | canclick=false | |
2176 | --Effects:Particles(x,y) | |
2177 | local val = Functions:LoginScreenGui(ud(0,400,0,28),{loop=true,ui=Password},true) | |
2178 | print('dun',val) | |
2179 | local ss | |
2180 | ss=function(pp) | |
2181 | num=0 | |
2182 | for i,v in next,pp:children() do | |
2183 | num=num+1 | |
2184 | pcall(function() | |
2185 | spawn(function() | |
2186 | for i = 0,1.025,.025 do | |
2187 | if v:IsA'TextButton' or v:IsA'TextBox' or v:IsA'TextLabel' then | |
2188 | v.TextTransparency = i | |
2189 | lrs:wait() | |
2190 | end | |
2191 | end | |
2192 | end) | |
2193 | end) | |
2194 | pcall(function() | |
2195 | spawn(function() | |
2196 | for i = 0,1.025,.025 do | |
2197 | if v:IsA'ImageLabel' then | |
2198 | v.ImageTransparency = i | |
2199 | lrs:wait() | |
2200 | end | |
2201 | end | |
2202 | end) | |
2203 | end) | |
2204 | pcall(function() | |
2205 | v:TweenPosition(ud(2,v.Position.X.Offset,v.Position.Y.Scale,v.Position.Y.Offset),'In','Sine',1,true) | |
2206 | end) | |
2207 | wait(.1) | |
2208 | ss(v) | |
2209 | end | |
2210 | return num | |
2211 | end | |
2212 | ss(BFrame) | |
2213 | wait((num+1.5)-(.4*num)) | |
2214 | BFrame:Destroy() | |
2215 | Functions:MakeHomeScreen() | |
2216 | return {} | |
2217 | --canclick=true | |
2218 | --Gui:Destroy() | |
2219 | end) | |
2220 | delay(.1,function() | |
2221 | Password:TweenPosition(ud(0,0,0,45),'Out','Quint',1,true) | |
2222 | end) | |
2223 | spawn(function() | |
2224 | Effects:Type(Password, 'Enter your Password', 'In',.03) | |
2225 | canclick=true | |
2226 | end) | |
2227 | wait(.3) | |
2228 | spawn(function() | |
2229 | Effects:Underline(Username, 20, 70, 2, CurrentPlayerData[4], true) | |
2230 | end) | |
2231 | for i = 0,1.025,.01 do | |
2232 | --UserName.TextTransparency = 1-i | |
2233 | Password.TextTransparency = 1-i | |
2234 | Username.TextTransparency = 1-i | |
2235 | UserImage.ImageTransparency = 1-i | |
2236 | lrs:wait() | |
2237 | end | |
2238 | Functions:IfRegistered(Host.Name, function(bool) | |
2239 | if bool==true then | |
2240 | for i = 0,20 do | |
2241 | UserImgFrame.ImageColor3 = UserImgFrame.ImageColor3:lerp(c3(.25,1,.25),.1) | |
2242 | lrs:wait() | |
2243 | end | |
2244 | elseif bool and not Official then | |
2245 | for i = 0,20 do | |
2246 | UserImgFrame.ImageColor3 = UserImgFrame.ImageColor3:lerp(c3(1,.25,.25),.1) | |
2247 | lrs:wait() | |
2248 | end | |
2249 | else | |
2250 | for i = 0,20 do | |
2251 | UserImgFrame.ImageColor3 = UserImgFrame.ImageColor3:lerp(c3(.4,0,0),.1) | |
2252 | lrs:wait() | |
2253 | end | |
2254 | end | |
2255 | end) | |
2256 | end | |
2257 | end | |
2258 | ||
2259 | function Functions:Lerp(Speed) | |
2260 | if Monitor and Monitor.Parent~=nil then | |
2261 | ypcall(function() | |
2262 | Monitor.CFrame = Monitor.CFrame:lerp( | |
2263 | Host.Character.HumanoidRootPart.CFrame * | |
2264 | CFrame.new(0,5.5,-6.5) * | |
2265 | CFrame.Angles(-math.rad(12),0,0) | |
2266 | , Speed) | |
2267 | end) | |
2268 | end | |
2269 | end | |
2270 | ||
2271 | function Functions:Boot() | |
2272 | script:ClearAllChildren() | |
2273 | Functions:MakeMonitor() | |
2274 | G = Instance.new('SurfaceGui', Monitor) | |
2275 | G.Adornee = Monitor | |
2276 | G.Face = Enum.NormalId.Back | |
2277 | MainFrame = Functions:MakeNewUi('Frame') | |
2278 | MainFrame.ZIndex=1 | |
2279 | MainFrame.BackgroundTransparency=.3 | |
2280 | MainFrame.BackgroundColor3 = CurrentPlayerData[3] | |
2281 | MainFrame.Parent=G | |
2282 | spawn(function() | |
2283 | --wait(2) | |
2284 | for i = 0,20,.1 do | |
2285 | MainFrame.BackgroundColor3 = MainFrame.BackgroundColor3:lerp(CurrentPlayerData[4],.1) | |
2286 | lrs:wait() | |
2287 | end | |
2288 | end) | |
2289 | local MouseFrame = Instance.new('TextLabel', MainFrame) | |
2290 | MouseFrame.Size = ud(0,5,0,5) | |
2291 | MouseFrame.BackgroundTransparency = 1 | |
2292 | MouseFrame.Text = '' | |
2293 | MouseFrame.ZIndex = 9 | |
2294 | MouseFrame.BackgroundColor3=c3(-1,-1,-1) | |
2295 | MainFrame.MouseMoved:connect(function(x,y) | |
2296 | if MouseFrame.Parent ~= nil then | |
2297 | MouseFrame.Position = ud(0,x+3,0,y+6) | |
2298 | end | |
2299 | end) | |
2300 | --200182847 | |
2301 | local MouseInner = Instance.new('ImageLabel', MouseFrame) | |
2302 | OS.Assets.Mouse=MouseFrame | |
2303 | MouseInner.Size = ud(0,5,0,5) | |
2304 | MouseInner.Position = ud(0,-5,0,-7) | |
2305 | MouseInner.ImageColor3 = CurrentPlayerData[3] | |
2306 | MouseInner.Image = Functions:Asset(284205403) | |
2307 | MouseInner.Name = 'AFriendlyMouse1' | |
2308 | MouseInner.BackgroundTransparency = 1 | |
2309 | MouseInner.ZIndex = 10 | |
2310 | local MouseOuter = Instance.new('ImageLabel', MouseFrame) | |
2311 | MouseOuter.Size = ud(0,7,0,7) | |
2312 | MouseOuter.Position = ud(0,-6,0,-8) | |
2313 | MouseOuter.ImageColor3 = CurrentPlayerData[4] | |
2314 | MouseOuter.Image = Functions:Asset(284205403) | |
2315 | MouseOuter.Name = 'AFriendlyMouse2' | |
2316 | MouseOuter.BackgroundTransparency = 1 | |
2317 | MouseOuter.ZIndex = 9 | |
2318 | local sx,sy=90,100 | |
2319 | local mouseactive=true | |
2320 | PlayerMouse.Button1Down:connect(function() | |
2321 | OS.MouseDown = true | |
2322 | if not mouseactive then return end | |
2323 | local mus=Functions:Sound(341225236) | |
2324 | mus.Pitch=3 | |
2325 | mus:Play() | |
2326 | end) | |
2327 | PlayerMouse.Button1Up:connect(function() | |
2328 | OS.MouseDown = false | |
2329 | if not mouseactive then return end | |
2330 | local mds=Functions:Sound(341225236) | |
2331 | mds.Pitch=2.5 | |
2332 | mds:Play() | |
2333 | local RelativeUi=MouseFrame | |
2334 | local x,y=RelativeUi.Position.X.Offset,RelativeUi.Position.Y.Offset | |
2335 | local Circ = Functions:MakeNewUi('ImageLabel') | |
2336 | Circ.Image=Functions:Asset(284205403) | |
2337 | Circ.Parent=MainFrame | |
2338 | Circ.ImageTransparency=0 | |
2339 | Circ.ImageColor3 = CurrentPlayerData[4] | |
2340 | Circ.Size=ud(0,5,0,5) | |
2341 | local backx,backy=5,6 | |
2342 | Circ.Position=ud(0,x-backx,0,y-backy) | |
2343 | Circ.ZIndex=10 | |
2344 | spawn(function() | |
2345 | Circ:TweenSizeAndPosition(ud(0,sx,0,sy),ud(0,(x-backx)-(sx/2),0,(y-backy)-(sy/2)),'Out','Sine',1,true) | |
2346 | for i = 0,1.05,.05 do | |
2347 | Circ.ImageTransparency=i | |
2348 | lrs:wait() | |
2349 | end | |
2350 | Circ:Destroy() | |
2351 | end) | |
2352 | end) | |
2353 | MainFrame.MouseEnter:connect(function(x,y) | |
2354 | mouseactive=true | |
2355 | game:service'UserInputService'.MouseIconEnabled=false | |
2356 | OS.Functions:HideChar() | |
2357 | end) | |
2358 | MainFrame.MouseLeave:connect(function(x,y) | |
2359 | mouseactive=false | |
2360 | game:service'UserInputService'.MouseIconEnabled=true | |
2361 | OS.Functions:ShowChar() | |
2362 | end) | |
2363 | --Functions:CreateLogin() | |
2364 | Functions:MakeHomeScreen() | |
2365 | end | |
2366 | ||
2367 | lrs:connect(function() | |
2368 | Functions:Lerp(.2) | |
2369 | end) | |
2370 | ||
2371 | Character.Humanoid.Died:connect(function() | |
2372 | Monitor.Parent:Destroy() | |
2373 | game:service'UserInputService'.MouseIconEnabled=true | |
2374 | script:Destroy() | |
2375 | end) | |
2376 | ||
2377 | Host.Chatted:connect(function(msg) | |
2378 | if msg=='g/r' then | |
2379 | Monitor:Destroy() | |
2380 | game:service'UserInputService'.MouseIconEnabled=true | |
2381 | script:Destroy() | |
2382 | end | |
2383 | end) | |
2384 | ||
2385 | local plrz=game:service'Players' | |
2386 | ||
2387 | plrz.PlayerAdded:connect(function(Plr) | |
2388 | Functions:PlayerImgNotification(Plr, 'join') | |
2389 | end) | |
2390 | ||
2391 | plrz.PlayerRemoving:connect(function(Plr) | |
2392 | Functions:PlayerImgNotification(Plr, 'rmv') | |
2393 | end) | |
2394 | ||
2395 | Functions:Boot() | |
2396 | ||
2397 | Host.Chatted:connect(function(msg) | |
2398 | if msg:lower()=='!reboot' then | |
2399 | Functions:Boot() | |
2400 | elseif msg:lower():sub(0,#'!background') == '!background' then | |
2401 | local id = msg:lower():sub(#'!background'+2) | |
2402 | OS.UIs['Background'][1].Image=Functions:Asset(tonumber(id)) | |
2403 | end | |
2404 | end)#include | |
2405 | PASTEBINnew pastetrends API tools faq | |
2406 | search... | |
2407 | ||
2408 | ||
2409 | Guest User | |
2410 | - | |
2411 | ||
2412 | Public Pastes | |
2413 | Untitled | |
2414 | C# | 2 sec ago | |
2415 | Untitled | |
2416 | C++ | 7 sec ago | |
2417 | Untitled | |
2418 | PHP | 12 sec ago | |
2419 | Untitled | |
2420 | 14 sec ago | |
2421 | Untitled | |
2422 | C++ | 15 sec ago | |
2423 | Untitled | |
2424 | 19 sec ago | |
2425 | Untitled | |
2426 | 19 sec ago | |
2427 | Untitled | |
2428 | 19 sec ago | |
2429 | ||
2430 | SHARE | |
2431 | TWEET | |
2432 | ||
2433 | Rocky Admin................................................. | |
2434 | LUAEXPLOITZ OCT 5TH, 2016 (EDITED) 168 NEVER | |
2435 | ||
2436 | Not a member of Pastebin yet? Sign Up, it unlocks many cool features! | |
2437 | rawdownloadcloneembedreportprint Lua 90.60 KB | |
2438 | -- / Rocky2u's Command Script | |
2439 | -- / ROBLOX | SethMilkman | |
2440 | -- / V3RMILLION | Rocky2u | |
2441 | ||
2442 | wait() | |
2443 | ||
2444 | local ADMINS = {danielapt123} | |
2445 | ||
2446 | local BANS = {21799524, 133122258, 103000855, 17278822, 149137060, 61967286, 21640881} | |
2447 | ||
2448 | -- / stuff | |
2449 | ||
2450 | local VERSION = '1.7.3' | |
2451 | local PATCH = '04' | |
2452 | local UPDATED = '10/5/2016' | |
2453 | local CHANGES = [[ | |
2454 | / made ;kick much faster and work faster for others and all | |
2455 | / edited ;loadmap a bit | |
2456 | ]] | |
2457 | ||
2458 | function _G.ADD_ADMIN(ID) table.insert(ADMINS, ID) end | |
2459 | function _G.ADD_BAN(ID) table.insert(BANS, ID) end | |
2460 | ||
2461 | local CHANGELOG = ' UPDATED : ' .. UPDATED .. '\n VERSION : ' .. VERSION .. ' ' .. PATCH .. '\n\n [ ' .. VERSION .. ' ] \n' .. CHANGES | |
2462 | ||
2463 | local gCoreGui = game:GetService('CoreGui') | |
2464 | local gInsertService = game:GetService('InsertService') | |
2465 | local gLighting = game:GetService('Lighting') | |
2466 | local gNetworkClient = game:GetService('NetworkClient') | |
2467 | local gPlayers = game:GetService('Players') | |
2468 | local gWorkspace = game:GetService('Workspace') | |
2469 | ||
2470 | local LP = gPlayers.LocalPlayer | |
2471 | local MOUSE = LP:GetMouse() | |
2472 | ||
2473 | local SERVICES = {} | |
2474 | local COMMANDS = {} | |
2475 | local STD = {} | |
2476 | ||
2477 | SERVICES.EVENTS = {} | |
2478 | ||
2479 | local C_PREFIX = ';' | |
2480 | local S_PREFIX = '\\' | |
2481 | local SPLIT = ' ' | |
2482 | ||
2483 | for i,v in pairs(gCoreGui:GetChildren()) do if v.Name == 'cmdbar_seth' or v.Name == 'notify_seth' then v:destroy() end end | |
2484 | ||
2485 | function UPDATE_CHAT(PLAYER) local C = PLAYER.Chatted:connect(function(M) if CHECK_ADMIN(PLAYER) then DEXECUTE(M, PLAYER) end end) table.insert(SERVICES.EVENTS, C) end | |
2486 | ||
2487 | STD.TABLE = function(T, V) if not T then return false end for i,v in pairs(T) do if v == V then return true end end return false end | |
2488 | STD.ENDAT = function(S, V) local SF = S:find(V) if SF then return S:sub(0, SF - string.len(V)), true else return S, false end end | |
2489 | ||
2490 | function CHECK_ADMIN(PLAYER) if FIND_IN_TABLE(ADMINS, PLAYER.userId) then return true elseif PLAYER.userId == LP.userId then return true end end | |
2491 | ||
2492 | function EXECUTE(STRING) spawn(function() local S, L = loadstring(STRING) if not S then error(L) else S() end end) end | |
2493 | ||
2494 | function FCOMMAND(COMMAND) for i,v in pairs(COMMANDS) do if v.N:lower() == COMMAND:lower() or STD.TABLE(v.A, COMMAND:lower()) then return v end end end | |
2495 | ||
2496 | function GCOMMAND(M) local CMD, HS = STD.ENDAT(M:lower(), SPLIT) if HS then return {CMD, true} else return {CMD, false} end end | |
2497 | ||
2498 | function GPREFIX(STRING) if STRING:sub(1, string.len(C_PREFIX)) == C_PREFIX then return {'COMMAND', string.len(C_PREFIX) + 1} elseif STRING:sub(1, string.len(S_PREFIX)) == S_PREFIX then return {'EXECUTE', string.len(S_PREFIX) + 1} end return end | |
2499 | ||
2500 | function GARGS(STRING) local A = {} local NA = nil local HS = nil local S = STRING repeat NA, HS = STD.ENDAT(S:lower(), SPLIT) if NA ~= '' then table.insert(A, NA) S = S:sub(string.len(NA) + string.len(SPLIT) + 1) end until not HS return A end | |
2501 | ||
2502 | function GCAPARGS(STRING) local A = {} local NA = nil local HS = nil local S = STRING repeat NA, HS = STD.ENDAT(S, SPLIT) if NA ~= '' then table.insert(A, NA) S = S:sub(string.len(NA) + string.len(SPLIT) + 1) end until not HS return A end | |
2503 | ||
2504 | function ECOMMAND(STRING, SPEAKER) repeat if STRING:find(' ') then STRING = STRING:gsub(' ', ' ') end until not STRING:find(' ') local SCMD, A, CMD SCMD = GCOMMAND(STRING) CMD = FCOMMAND(SCMD[1]) if not CMD then return end A = STRING:sub(string.len(SCMD[1]) + string.len(SPLIT) + 1) local ARGS = GARGS(A) CA = GCAPARGS(A) pcall(function() CMD.F(ARGS, SPEAKER) end) end | |
2505 | ||
2506 | function DEXECUTE(STRING, SPEAKER) if not CHECK_ADMIN(SPEAKER) then return end STRING = STRING:gsub('/e ', '') local GP = GPREFIX(STRING) if not GP then return end STRING = STRING:sub(GP[2]) if GP[1] == 'EXECUTE' then EXECUTE(STRING) elseif GP[1] == 'COMMAND' then ECOMMAND(STRING, SPEAKER) end end | |
2507 | ||
2508 | _G.cmd_seth = ECOMMAND | |
2509 | ||
2510 | SERVER_LOCKED = false | |
2511 | ||
2512 | gPlayers.PlayerAdded:connect(function(PLAYER) | |
2513 | if SERVER_LOCKED then PLAYER.CharacterAdded:connect(function() wait() KICK(PLAYER) return end) end | |
2514 | if FIND_IN_TABLE(BANS, PLAYER.userId) then PLAYER.CharacterAdded:connect(function() wait() KICK(PLAYER) return end) end | |
2515 | UPDATE_CHAT(PLAYER) | |
2516 | if CHECK_ADMIN(PLAYER) then PLAYER.CharacterAdded:connect(function() wait() game.Chat:Chat(PLAYER.Character.Head, printStuff .. 'Welcome, you\'re an admin!') end) end | |
2517 | end) | |
2518 | ||
2519 | function ADD_COMMAND(N, D, A, F) table.insert(COMMANDS, {N = N, D = D, A = A, F = F}) end | |
2520 | ||
2521 | function GET_PLAYER(NAME, SPEAKER) | |
2522 | local NAME_TABLE = {} | |
2523 | NAME = NAME:lower() | |
2524 | if NAME == 'me' then | |
2525 | table.insert(NAME_TABLE, SPEAKER.Name) | |
2526 | elseif NAME == 'others' then | |
2527 | for i,v in pairs(gPlayers:GetPlayers()) do if v:IsA('Player') then if v.Name ~= SPEAKER.Name then table.insert(NAME_TABLE, v.Name) end end end | |
2528 | elseif NAME == 'all' then | |
2529 | for i,v in pairs(gPlayers:GetPlayers()) do if v:IsA('Player') then table.insert(NAME_TABLE, v.Name) end end | |
2530 | elseif NAME == 'random' then | |
2531 | table.insert(NAME_TABLE, gPlayers:GetPlayers()[math.random(1, #gPlayers:GetPlayers())].Name) | |
2532 | elseif NAME == 'team' then | |
2533 | for i,v in pairs(gPlayers:GetPlayers()) do if v.TeamColor == SPEAKER.TeamColor then table.insert(NAME_TABLE, v.Name) end end | |
2534 | elseif NAME == 'nonadmins' then | |
2535 | for i,v in pairs(gPlayers:GetPlayers()) do if not CHECK_ADMIN(v) then table.insert(NAME_TABLE, v.Name) end end | |
2536 | elseif NAME == 'admins' then | |
2537 | for i,v in pairs(gPlayers:GetPlayers()) do if CHECK_ADMIN(v) then table.insert(NAME_TABLE, v.Name) end end | |
2538 | elseif NAME == 'nonfriends' then | |
2539 | for i,v in pairs(gPlayers:GetPlayers()) do if not v:IsFriendsWith(SPEAKER.userId) then table.insert(NAME_TABLE, v.Name) end end | |
2540 | elseif NAME == 'friends' then | |
2541 | for i,v in pairs(gPlayers:GetPlayers()) do if v ~= SPEAKER and v:IsFriendsWith(SPEAKER.userId) then table.insert(NAME_TABLE, v.Name) end end | |
2542 | elseif NAME == 'nonguests' then | |
2543 | for i,v in pairs(gPlayers:GetPlayers()) do if not v.Guest then table.insert(NAME_TABLE, v.Name) end end | |
2544 | elseif NAME == 'guests' then | |
2545 | for i,v in pairs(gPlayers:GetPlayers()) do if v.Guest then table.insert(NAME_TABLE, v.Name) end end | |
2546 | elseif NAME == 'nbcs' then | |
2547 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.None then table.insert(NAME_TABLE, v.Name) end end | |
2548 | elseif NAME == 'bcs' then | |
2549 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.BuildersClub then table.insert(NAME_TABLE, v.Name) end end | |
2550 | elseif NAME == 'tbcs' then | |
2551 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.TurboBuildersClub then table.insert(NAME_TABLE, v.Name) end end | |
2552 | elseif NAME == 'obcs' then | |
2553 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.OutrageousBuildersClub then table.insert(NAME_TABLE, v.Name) end end | |
2554 | else | |
2555 | for i,v in pairs(gPlayers:GetPlayers()) do local L_NAME = v.Name:lower() local F = L_NAME:find(NAME) if F == 1 then table.insert(NAME_TABLE, v.Name) end end | |
2556 | end | |
2557 | return NAME_TABLE | |
2558 | end | |
2559 | ||
2560 | function GLS(LOWER, START) local AA = '' for i,v in pairs(CA) do if i > START then if AA ~= '' then AA = AA .. ' ' .. v else AA = AA .. v end end end if not LOWER then return AA else return string.lower(AA) end end | |
2561 | ||
2562 | -- / tables | |
2563 | ||
2564 | local JAILED = {} | |
2565 | ||
2566 | -- / stuff | |
2567 | ||
2568 | printStuff = '[ Rocky2u\'s CMDs ] : ' | |
2569 | ||
2570 | local DATA = game:GetObjects('rbxassetid://291592144')[1] | |
2571 | _G.seth_data = DATA | |
2572 | ||
2573 | local CMDbar = DATA.guis.cmdbar_seth.CMDbar CMDbar.Parent.Parent = gCoreGui | |
2574 | local being_looped = DATA.being_looped | |
2575 | ||
2576 | wait() | |
2577 | ||
2578 | local NOCLIP, JESUSFLY, SWIM = false, false, false | |
2579 | ||
2580 | game:GetService('RunService').Stepped:connect(function() | |
2581 | if NOCLIP then | |
2582 | if LP.Character:FindFirstChild('Humanoid') then LP.Character.Humanoid:ChangeState(11) end | |
2583 | elseif JESUSFLY then | |
2584 | if LP.Character:FindFirstChild('Humanoid') then LP.Character.Humanoid:ChangeState(12) end | |
2585 | elseif SWIM then | |
2586 | if LP.Character:FindFirstChild('Humanoid') then LP.Character.Humanoid:ChangeState(4) end | |
2587 | end | |
2588 | end) | |
2589 | ||
2590 | function FIND_IN_TABLE(TABLE, NAME) | |
2591 | for i = 1, #TABLE do | |
2592 | if TABLE[i] == NAME then | |
2593 | return true | |
2594 | end | |
2595 | end | |
2596 | return false | |
2597 | end | |
2598 | ||
2599 | function GET_IN_TABLE(TABLE, NAME) | |
2600 | for i = 1, #TABLE do | |
2601 | if TABLE[i] == NAME then | |
2602 | return i | |
2603 | end | |
2604 | end | |
2605 | return false | |
2606 | end | |
2607 | ||
2608 | local NOTIFY_1 = false | |
2609 | local NOTIFY_2 = false | |
2610 | ||
2611 | function NOTIFY(M, R, G, B) | |
2612 | spawn(function() | |
2613 | repeat wait() until not NOTIFY_1 | |
2614 | local NOTIFY_SETH = DATA.guis.notify_seth:Clone() NOTIFY_SETH.Parent = gCoreGui | |
2615 | if NOTIFY_SETH then | |
2616 | NOTIFY_SETH.NOTIFY.NOTE.BAR.BackgroundColor3 = Color3.new(R, G, B) | |
2617 | NOTIFY_SETH.NOTIFY.NOTE.Text = ' ' .. M | |
2618 | repeat wait() until not NOTIFY_1 | |
2619 | NOTIFY_1 = true | |
2620 | wait(0.5) | |
2621 | NOTIFY_SETH.NOTIFY:TweenPosition(UDim2.new(0, 0, 0.7, 0), 'InOut', 'Quad', 0.4, false) wait(0.5) | |
2622 | wait(0.5) | |
2623 | repeat wait() until not NOTIFY_2 | |
2624 | NOTIFY_1 = false | |
2625 | NOTIFY_SETH.NOTIFY:TweenPosition(UDim2.new(0, 0, 0.7, -40), 'InOut', 'Quad', 0.4, false) wait(0.5) | |
2626 | wait(0.5) | |
2627 | NOTIFY_2 = true | |
2628 | wait(2.5) | |
2629 | NOTIFY_SETH.NOTIFY:TweenPosition(UDim2.new(0, -225, 0.7, -40), 'InOut', 'Quad', 0.4, false) wait(0.5) | |
2630 | end | |
2631 | wait(1) | |
2632 | NOTIFY_SETH:destroy() | |
2633 | NOTIFY_2 = false | |
2634 | end) | |
2635 | end | |
2636 | ||
2637 | function LOAD_SETH() | |
2638 | spawn(function() | |
2639 | local load_seth = DATA.guis.loader_seth:Clone() load_seth.Parent = gCoreGui | |
2640 | load_seth.MAIN:TweenSizeAndPosition(UDim2.new(0, 300, 0, 200), UDim2.new(0.5, -150, 0.5, -100), 'Out', 'Quad', 0.5, false) wait(0.5) | |
2641 | load_seth.MAIN.TEXT.Text = 'Rocky2u\'s\nCommand Script' | |
2642 | repeat wait() load_seth.MAIN.TEXT.TextTransparency = load_seth.MAIN.TEXT.TextTransparency - 0.1 until load_seth.MAIN.TEXT.TextTransparency < 0 wait(1) | |
2643 | if not gWorkspace.FilteringEnabled then load_seth.MAIN.FE.Text = ' Filtering is disabled' elseif gWorkspace.FilteringEnabled then load_seth.MAIN.FE.Text = ' Filtering is ENABLED' end load_seth.MAIN.FE.TextTransparency = 0 wait(1) | |
2644 | load_seth.MAIN.COMMANDS.Text = ' ' .. #COMMANDS .. ' commands!' load_seth.MAIN.COMMANDS.TextTransparency = 0 wait(1) | |
2645 | load_seth.MAIN.WELCOME.Text = ' Welcome, ' .. LP.Name load_seth.MAIN.WELCOME.TextTransparency = 0 wait(1) | |
2646 | load_seth.MAIN.C.Text = ' Made by SethMilkman' load_seth.MAIN.C.TextTransparency = 0 wait(5) | |
2647 | for i,v in pairs(load_seth.MAIN:GetChildren()) do if v:IsA('TextLabel')and v.Name ~= 'TEXT' then v.TextTransparency = 1 end end wait() | |
2648 | repeat wait() load_seth.MAIN.TEXT.TextTransparency = load_seth.MAIN.TEXT.TextTransparency + 0.1 until load_seth.MAIN.TEXT.TextTransparency == 1 | |
2649 | load_seth.MAIN:TweenSizeAndPosition(UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, 0.5, 0), 'Out', 'Quad', 0.5) | |
2650 | wait(1) | |
2651 | load_seth.MAIN:destroy() | |
2652 | end) | |
2653 | end | |
2654 | ||
2655 | local S_INFO = false | |
2656 | ||
2657 | function SERVER_INFO() | |
2658 | if not S_INFO then | |
2659 | spawn(function() | |
2660 | S_INFO = true | |
2661 | local server_seth = DATA.guis.server_seth:Clone() server_seth.Parent = gCoreGui | |
2662 | if not gWorkspace.FilteringEnabled then server_seth.MAIN.FE.Text = ' FilteringEnabled | false' elseif gWorkspace.FilteringEnabled then server_seth.MAIN.FE.Text = ' FilteringEnabled | true' end | |
2663 | server_seth.MAIN.IP.Text = ' IP Address | ' .. gNetworkClient.ClientReplicator.MachineAddress .. ':' .. gNetworkClient.ClientReplicator.Port | |
2664 | server_seth.MAIN.PLACE_ID.Text = ' PlaceId | ' .. game.PlaceId | |
2665 | server_seth.MAIN.EXIT.MouseButton1Down:connect(function() S_INFO = false server_seth:destroy() end) | |
2666 | while S_INFO do | |
2667 | server_seth.MAIN.PLAYERS.Text = ' Players | ' .. gPlayers.NumPlayers .. ' / ' .. gPlayers.MaxPlayers | |
2668 | server_seth.MAIN.TIME.Text = ' Time | ' .. gLighting.TimeOfDay | |
2669 | wait() | |
2670 | end | |
2671 | end) | |
2672 | end | |
2673 | end | |
2674 | ||
2675 | function KICK(PLAYER) | |
2676 | spawn(function() | |
2677 | local function SKICK() | |
2678 | if PLAYER.Character and PLAYER.Character:FindFirstChild('HumanoidRootPart') and PLAYER.Character:FindFirstChild('Torso') then | |
2679 | PLAYER.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000) | |
2680 | local SP = Instance.new('SkateboardPlatform', PLAYER.Character) SP.Position = PLAYER.Character.HumanoidRootPart.Position SP.Transparency = 1 | |
2681 | spawn(function() | |
2682 | repeat wait() | |
2683 | if PLAYER.Character and PLAYER.Character:FindFirstChild('HumanoidRootPart') then | |
2684 | SP.Position = PLAYER.Character.HumanoidRootPart.Position | |
2685 | end | |
2686 | until not gPlayers:FindFirstChild(PLAYER.Name) | |
2687 | end) | |
2688 | PLAYER.Character.Torso.Anchored = true | |
2689 | end | |
2690 | end | |
2691 | spawn(function() | |
2692 | repeat wait() if PLAYER ~= nil then SKICK() end until not gPlayers:FindFirstChild(PLAYER.Name) | |
2693 | if not gPlayers:FindFirstChild(PLAYER.Name) then | |
2694 | NOTIFY('REMOVED ' .. PLAYER.Name, 255, 255, 255) | |
2695 | end | |
2696 | end) | |
2697 | end) | |
2698 | end | |
2699 | ||
2700 | function FIX_LIGHTING() | |
2701 | gLighting.Ambient = Color3.new(0.5, 0.5, 0.5) | |
2702 | gLighting.Brightness = 1 | |
2703 | gLighting.GlobalShadows = true | |
2704 | gLighting.Outlines = false | |
2705 | gLighting.TimeOfDay = 14 | |
2706 | gLighting.FogEnd = 100000 | |
2707 | end | |
2708 | ||
2709 | function MESSAGE_HINT(TYPE, HEADER, MESSAGE, PLAYER) | |
2710 | local BV = Instance.new('BoolValue', DATA.messages_hints) BV.Name = PLAYER.Name .. '_MSG_HINT' | |
2711 | local SPRAY = gInsertService:LoadAsset(80576967) | |
2712 | local S = SPRAY.Spray:Clone() S.Name = '' S.Handle.Transparency = 1 S.SprayGui:destroy() S.SprayPaint:destroy() S.TextureId = '' | |
2713 | if TYPE == 'MESSAGE' then | |
2714 | local GUI = DATA.guis.message_seth:Clone() GUI.HINT:destroy() GUI.Name = 'SprayGui' GUI.MESSAGE.header.Text = HEADER GUI.MESSAGE.message.Text = MESSAGE GUI.MESSAGE.Visible = true GUI.Parent = S | |
2715 | elseif TYPE == 'HINT' then | |
2716 | local GUI = DATA.guis.message_seth:Clone() GUI.MESSAGE:destroy() GUI.Name = 'SprayGui' GUI.HINT.Text = MESSAGE GUI.HINT.Visible = true GUI.Parent = S | |
2717 | end | |
2718 | for i = 1, 100 do | |
2719 | wait() | |
2720 | PLAYER.Character.Humanoid:EquipTool(S) | |
2721 | end | |
2722 | PLAYER.Character.Humanoid:UnequipTools() | |
2723 | S:destroy() wait() BV:destroy() | |
2724 | end | |
2725 | ||
2726 | function COLOR(PLAYER, BCOLOR) | |
2727 | for i,v in pairs(PLAYER.Character:GetChildren()) do if v:IsA('Shirt') or v:IsA('Pants') then v:destroy() elseif v:IsA('ShirtGraphic') then v.Archivable = false v.Graphic = '' end end | |
2728 | for i,v in pairs(PLAYER.Character.Head:GetChildren()) do if v:IsA('Decal') then v:destroy() end end | |
2729 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
2730 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
2731 | v.BrickColor = BrickColor.new(BCOLOR) | |
2732 | elseif v:IsA('Hat') then | |
2733 | v.Handle.BrickColor = BrickColor.new(BCOLOR) | |
2734 | for a,b in pairs(v.Handle:GetChildren()) do | |
2735 | if b:IsA('SpecialMesh') then | |
2736 | b.TextureId = '' | |
2737 | end | |
2738 | end | |
2739 | end | |
2740 | end | |
2741 | end | |
2742 | ||
2743 | function LAG(PLAYER) | |
2744 | local POS = CFrame.new(math.random(-100000, 100000), math.random(-100000, 100000), math.random(-100000, 100000)) | |
2745 | spawn(function() | |
2746 | repeat wait() | |
2747 | if PLAYER and PLAYER.Character then | |
2748 | PLAYER.CameraMode = 'LockFirstPerson' | |
2749 | PLAYER.Character.HumanoidRootPart.CFrame = POS | |
2750 | PLAYER.Character.Torso.Anchored = true | |
2751 | Instance.new('ForceField', PLAYER.Character) | |
2752 | Instance.new('Smoke', PLAYER.Character.Head) | |
2753 | end | |
2754 | until not gPlayers:FindFirstChild(PLAYER.Name) | |
2755 | end) | |
2756 | end | |
2757 | ||
2758 | local FLYING = false | |
2759 | ||
2760 | if LP.Character and LP.Character:FindFirstChild('Humanoid') then | |
2761 | LP.Character.Humanoid.Died:connect(function() FLYING = false end) | |
2762 | end | |
2763 | ||
2764 | function sFLY() | |
2765 | repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('Torso') and LP.Character:FindFirstChild('Humanoid') | |
2766 | repeat wait() until MOUSE | |
2767 | ||
2768 | local T = LP.Character.Torso | |
2769 | local CONTROL = {F = 0, B = 0, L = 0, R = 0} | |
2770 | local lCONTROL = {F = 0, B = 0, L = 0, R = 0} | |
2771 | local SPEED = 0 | |
2772 | ||
2773 | local function FLY() | |
2774 | FLYING = true | |
2775 | local BG = Instance.new('BodyGyro', T) | |
2776 | local BV = Instance.new('BodyVelocity', T) | |
2777 | BG.P = 9e4 | |
2778 | BG.maxTorque = Vector3.new(9e9, 9e9, 9e9) | |
2779 | BG.cframe = T.CFrame | |
2780 | BV.velocity = Vector3.new(0, 0.1, 0) | |
2781 | BV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
2782 | spawn(function() | |
2783 | repeat wait() | |
2784 | LP.Character.Humanoid.PlatformStand = true | |
2785 | if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then | |
2786 | SPEED = 50 | |
2787 | elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then | |
2788 | SPEED = 0 | |
2789 | end | |
2790 | if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then | |
2791 | BV.velocity = ((gWorkspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((gWorkspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - gWorkspace.CurrentCamera.CoordinateFrame.p)) * SPEED | |
2792 | lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R} | |
2793 | elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then | |
2794 | BV.velocity = ((gWorkspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((gWorkspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - gWorkspace.CurrentCamera.CoordinateFrame.p)) * SPEED | |
2795 | else | |
2796 | BV.velocity = Vector3.new(0, 0.1, 0) | |
2797 | end | |
2798 | BG.cframe = gWorkspace.CurrentCamera.CoordinateFrame | |
2799 | until not FLYING | |
2800 | CONTROL = {F = 0, B = 0, L = 0, R = 0} | |
2801 | lCONTROL = {F = 0, B = 0, L = 0, R = 0} | |
2802 | SPEED = 0 | |
2803 | BG:destroy() | |
2804 | BV:destroy() | |
2805 | LP.Character.Humanoid.PlatformStand = false | |
2806 | end) | |
2807 | end | |
2808 | ||
2809 | MOUSE.KeyDown:connect(function(KEY) | |
2810 | if KEY:lower() == 'w' then | |
2811 | CONTROL.F = 1 | |
2812 | elseif KEY:lower() == 's' then | |
2813 | CONTROL.B = -1 | |
2814 | elseif KEY:lower() == 'a' then | |
2815 | CONTROL.L = -1 | |
2816 | elseif KEY:lower() == 'd' then | |
2817 | CONTROL.R = 1 | |
2818 | end | |
2819 | end) | |
2820 | ||
2821 | MOUSE.KeyUp:connect(function(KEY) | |
2822 | if KEY:lower() == 'w' then | |
2823 | CONTROL.F = 0 | |
2824 | elseif KEY:lower() == 's' then | |
2825 | CONTROL.B = 0 | |
2826 | elseif KEY:lower() == 'a' then | |
2827 | CONTROL.L = 0 | |
2828 | elseif KEY:lower() == 'd' then | |
2829 | CONTROL.R = 0 | |
2830 | end | |
2831 | end) | |
2832 | FLY() | |
2833 | end | |
2834 | ||
2835 | function NOFLY() | |
2836 | FLYING = false | |
2837 | LP.Character.Humanoid.PlatformStand = false | |
2838 | end | |
2839 | ||
2840 | function RESET_MODEL(MODEL) | |
2841 | for i,v in pairs(MODEL:GetChildren()) do | |
2842 | if v:IsA('Part') and v.Name == 'LA_INFECT' or v:IsA('Part') and v.Name == 'RA_INFECT' or v:IsA('Seat') and v.Name == 'FakeTorso' then | |
2843 | v:destroy() | |
2844 | elseif v:IsA('CharacterMesh') or v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Hat') then | |
2845 | v:destroy() | |
2846 | elseif v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
2847 | v.Transparency = 0 | |
2848 | elseif v:IsA('ShirtGraphic') then | |
2849 | v.Archivable = false | |
2850 | v.Graphic = '' | |
2851 | end | |
2852 | end | |
2853 | for i,v in pairs(MODEL.Torso:GetChildren()) do | |
2854 | if v:IsA('SpecialMesh') then | |
2855 | v:destroy() | |
2856 | end | |
2857 | end | |
2858 | if MODEL.Head:FindFirstChild('Mesh') then | |
2859 | MODEL.Head.Mesh:destroy() | |
2860 | end | |
2861 | if MODEL.Torso:FindFirstChild('Neck') then MODEL.Torso.Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(180), 0) end | |
2862 | if MODEL.Torso:FindFirstChild('Left Shoulder') then MODEL.Torso['Left Shoulder'].C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, math.rad(-90), 0) end | |
2863 | if MODEL.Torso:FindFirstChild('Right Shoulder') then MODEL.Torso['Right Shoulder'].C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) end | |
2864 | if MODEL.Torso:FindFirstChild('Left Hip') then MODEL.Torso['Left Hip'].C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0) end | |
2865 | if MODEL.Torso:FindFirstChild('Right Hip') then MODEL.Torso['Right Hip'].C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0) end | |
2866 | end | |
2867 | ||
2868 | function UPDATE_MODEL(MODEL, USERNAME) | |
2869 | local AppModel = gPlayers:GetCharacterAppearanceAsync(gPlayers:GetUserIdFromNameAsync(USERNAME)) | |
2870 | MODEL.Name = USERNAME | |
2871 | for i,v in pairs(AppModel:GetChildren()) do | |
2872 | if v:IsA('SpecialMesh') or v:IsA('BlockMesh') or v:IsA('CylinderMesh') then | |
2873 | v.Parent = MODEL.Head | |
2874 | elseif v:IsA('Decal') then | |
2875 | if MODEL.Head:FindFirstChild('face') then | |
2876 | MODEL.Head.face.Texture = v.Texture | |
2877 | else | |
2878 | local FACE = Instance.new('Decal', MODEL.Head) | |
2879 | FACE.Texture = v.Texture | |
2880 | end | |
2881 | elseif v:IsA('BodyColors') or v:IsA('CharacterMesh') or v:IsA('Shirt') or v:IsA('Pants') or v:IsA('ShirtGraphic') then | |
2882 | if MODEL:FindFirstChild('Body Colors') then | |
2883 | MODEL['Body Colors']:destroy() | |
2884 | end | |
2885 | v.Parent = MODEL | |
2886 | elseif v:IsA('Hat') then | |
2887 | v.Parent = MODEL | |
2888 | v.Handle.CFrame = MODEL.Head.CFrame * CFrame.new(0, MODEL.Head.Size.Y / 2, 0) * v.AttachmentPoint:inverse() | |
2889 | end | |
2890 | end | |
2891 | if not MODEL.Head:FindFirstChild('Mesh') then | |
2892 | local SM = Instance.new('SpecialMesh', MODEL.Head) | |
2893 | SM.MeshType = Enum.MeshType.Head | |
2894 | SM.Scale = Vector3.new(1.25, 1.25, 1.25) | |
2895 | end | |
2896 | end | |
2897 | ||
2898 | function CREEPER(PLAYER) | |
2899 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
2900 | if v:IsA('Shirt') or v:IsA('Pants') then | |
2901 | v:destroy() | |
2902 | elseif v:IsA('ShirtGraphic') then | |
2903 | v.Archivable = false | |
2904 | v.Graphic = '' | |
2905 | end | |
2906 | end | |
2907 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
2908 | if v:IsA('Hat') then | |
2909 | v:destroy() | |
2910 | end | |
2911 | end | |
2912 | PLAYER.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0) | |
2913 | PLAYER.Character.Torso['Right Shoulder'].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(90),0) | |
2914 | PLAYER.Character.Torso['Left Shoulder'].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(-90),0) | |
2915 | PLAYER.Character.Torso['Right Hip'].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(90),0) | |
2916 | PLAYER.Character.Torso['Left Hip'].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(-90),0) | |
2917 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
2918 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
2919 | v.BrickColor = BrickColor.new('Bright green') | |
2920 | end | |
2921 | end | |
2922 | end | |
2923 | ||
2924 | function SHREK(PLAYER) | |
2925 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
2926 | if v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Hat') or v:IsA('CharacterMesh') then | |
2927 | v:destroy() | |
2928 | elseif v:IsA('ShirtGraphic') then | |
2929 | v.Archivable = false | |
2930 | v.Graphic = '' | |
2931 | end | |
2932 | end | |
2933 | for i,v in pairs(PLAYER.Character.Head:GetChildren()) do | |
2934 | if v:IsA('Decal') or v:IsA('SpecialMesh') then | |
2935 | v:destroy() | |
2936 | end | |
2937 | end | |
2938 | if PLAYER.Character:FindFirstChild('Shirt Graphic') then | |
2939 | PLAYER.Character['Shirt Graphic'].Archivable = false | |
2940 | PLAYER.Character['Shirt Graphic'].Graphic = '' | |
2941 | end | |
2942 | local M = Instance.new('SpecialMesh', PLAYER.Character.Head) | |
2943 | local S = Instance.new('Shirt', PLAYER.Character) | |
2944 | local P = Instance.new('Pants', PLAYER.Character) | |
2945 | M.MeshType = 'FileMesh' | |
2946 | M.MeshId = 'http://www.roblox.com/asset/?id=19999257' | |
2947 | M.Offset = Vector3.new(-0.1, 0.1, 0) | |
2948 | M.TextureId = 'http://www.roblox.com/asset/?id=156397869' | |
2949 | S.ShirtTemplate = 'rbxassetid://133078194' | |
2950 | P.PantsTemplate = 'rbxassetid://133078204' | |
2951 | end | |
2952 | ||
2953 | function DUCK(PLAYER) | |
2954 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
2955 | if v:IsA('Part') and v.Name ~= 'Torso' and v.Name ~= 'HumanoidRootPart' then | |
2956 | v.Transparency = 1 | |
2957 | elseif v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Hat') then | |
2958 | v:destroy() | |
2959 | elseif v:IsA('ShirtGraphic') then | |
2960 | v.Archivable = false | |
2961 | v.Graphic = '' | |
2962 | end | |
2963 | end | |
2964 | local DUCK = Instance.new('SpecialMesh', PLAYER.Character.Torso) | |
2965 | DUCK.MeshType = 'FileMesh' | |
2966 | DUCK.MeshId = 'http://www.roblox.com/asset/?id=9419831' | |
2967 | DUCK.TextureId = 'http://www.roblox.com/asset/?id=9419827' | |
2968 | DUCK.Scale = Vector3.new(5, 5, 5) | |
2969 | if PLAYER.Character.Head:FindFirstChild('face') then | |
2970 | PLAYER.Character.Head.face.Transparency = 1 | |
2971 | end | |
2972 | end | |
2973 | ||
2974 | function DOG(PLAYER) | |
2975 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
2976 | if v:IsA('Shirt') or v:IsA('Pants') then | |
2977 | v:destroy() | |
2978 | elseif v:IsA('ShirtGraphic') then | |
2979 | v.Archivable = false | |
2980 | v.Graphic = '' | |
2981 | end | |
2982 | end | |
2983 | PLAYER.Character.Torso.Transparency = 1 | |
2984 | PLAYER.Character.Torso.Neck.C0 = CFrame.new(0, -0.5, -2) * CFrame.Angles(math.rad(90), math.rad(180), 0) | |
2985 | PLAYER.Character.Torso['Right Shoulder'].C0 = CFrame.new(0.5, -1.5, -1.5) * CFrame.Angles(0, math.rad(90), 0) | |
2986 | PLAYER.Character.Torso['Left Shoulder'].C0 = CFrame.new(-0.5, -1.5, -1.5) * CFrame.Angles(0, math.rad(-90), 0) | |
2987 | PLAYER.Character.Torso['Right Hip'].C0 = CFrame.new(1.5, -1, 1.5) * CFrame.Angles(0, math.rad(90), 0) | |
2988 | PLAYER.Character.Torso['Left Hip'].C0 = CFrame.new(-1.5, -1, 1.5) * CFrame.Angles(0, math.rad(-90), 0) | |
2989 | local FakeTorso = Instance.new('Seat', PLAYER.Character) | |
2990 | local BF = Instance.new('BodyForce', FakeTorso) | |
2991 | local W = Instance.new('Weld', PLAYER.Character.Torso) | |
2992 | FakeTorso.Name = 'FakeTorso' | |
2993 | FakeTorso.FormFactor = 'Symmetric' | |
2994 | FakeTorso.TopSurface = 0 | |
2995 | FakeTorso.BottomSurface = 0 | |
2996 | FakeTorso.Size = Vector3.new(3,1,4) | |
2997 | FakeTorso.BrickColor = BrickColor.new('Brown') | |
2998 | FakeTorso.CFrame = PLAYER.Character.Torso.CFrame | |
2999 | BF.Force = Vector3.new(0, FakeTorso:GetMass() * 196.25, 0) | |
3000 | W.Part0 = PLAYER.Character.Torso | |
3001 | W.Part1 = FakeTorso | |
3002 | W.C0 = CFrame.new(0, -0.5, 0) | |
3003 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
3004 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
3005 | v.BrickColor = BrickColor.new('Brown') | |
3006 | end | |
3007 | end | |
3008 | end | |
3009 | ||
3010 | function AYYLMAO(PLAYER) | |
3011 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
3012 | if v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Hat') then | |
3013 | v:destroy() | |
3014 | elseif v:IsA('ShirtGraphic') then | |
3015 | v.Archivable = false | |
3016 | v.Graphic = '' | |
3017 | elseif v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
3018 | v.BrickColor = BrickColor.new('Fossil') | |
3019 | end | |
3020 | end | |
3021 | game:GetObjects('rbxassetid://13837194')[1].Parent = PLAYER.Character | |
3022 | end | |
3023 | ||
3024 | function DECALSPAM(INSTANCE, ID) | |
3025 | for i,v in pairs(INSTANCE:GetChildren()) do | |
3026 | if v:IsA('BasePart') then | |
3027 | spawn(function() | |
3028 | local FACES = {'Back', 'Bottom', 'Front', 'Left', 'Right', 'Top'} | |
3029 | local CURRENT_FACE = 1 | |
3030 | for i = 1, 6 do | |
3031 | local DECAL = Instance.new('Decal', v) | |
3032 | DECAL.Name = 'decal_seth' | |
3033 | DECAL.Texture = 'rbxassetid://' .. ID - 1 | |
3034 | DECAL.Face = FACES[CURRENT_FACE] | |
3035 | CURRENT_FACE = CURRENT_FACE + 1 | |
3036 | end | |
3037 | end) | |
3038 | end | |
3039 | DECALSPAM(v, ID) | |
3040 | end | |
3041 | end | |
3042 | ||
3043 | function UNDECALSPAM(INSTANCE) | |
3044 | for i,v in pairs(INSTANCE:GetChildren()) do | |
3045 | if v:IsA('BasePart') then | |
3046 | for a,b in pairs(v:GetChildren()) do | |
3047 | if b:IsA('Decal') and b.Name == 'decal_seth' then | |
3048 | b:destroy() | |
3049 | end | |
3050 | end | |
3051 | end | |
3052 | UNDECALSPAM(v) | |
3053 | end | |
3054 | end | |
3055 | ||
3056 | function CREATE_DONG(PLAYER, DONG_COLOR) | |
3057 | if PLAYER.Character:FindFirstChild('DONG') then | |
3058 | PLAYER.Character.DONG:destroy() | |
3059 | end | |
3060 | local D = Instance.new('Model', PLAYER.Character) | |
3061 | D.Name = 'DONG' | |
3062 | ||
3063 | local BG = Instance.new('BodyGyro', PLAYER.Character.Torso) | |
3064 | local MAIN = Instance.new('Part', PLAYER.Character['DONG']) | |
3065 | local M1 = Instance.new('CylinderMesh', MAIN) | |
3066 | local W1 = Instance.new('Weld', PLAYER.Character.Head) | |
3067 | local P1 = Instance.new('Part', PLAYER.Character['DONG']) | |
3068 | local M2 = Instance.new('SpecialMesh', P1) | |
3069 | local W2 = Instance.new('Weld', P1) | |
3070 | local B1 = Instance.new('Part', PLAYER.Character['DONG']) | |
3071 | local M3 = Instance.new('SpecialMesh', B1) | |
3072 | local W3 = Instance.new('Weld', B1) | |
3073 | local B2 = Instance.new('Part', PLAYER.Character['DONG']) | |
3074 | local M4 = Instance.new('SpecialMesh', B2) | |
3075 | local W4 = Instance.new('Weld', B2) | |
3076 | ||
3077 | MAIN.TopSurface = 0 MAIN.BottomSurface = 0 MAIN.Name = 'Main' MAIN.formFactor = 3 MAIN.Size = Vector3.new(0.6, 2.5, 0.6) MAIN.BrickColor = BrickColor.new(DONG_COLOR) MAIN.Position = PLAYER.Character.Head.Position MAIN.CanCollide = false | |
3078 | ||
3079 | W1.Part0 = MAIN W1.Part1 = PLAYER.Character.Head W1.C0 = CFrame.new(0, 0.25, 2.1) * CFrame.Angles(math.rad(45), 0, 0) | |
3080 | ||
3081 | P1.Name = 'Mush' P1.BottomSurface = 0 P1.TopSurface = 0 P1.FormFactor = 3 P1.Size = Vector3.new(0.6, 0.6, 0.6) P1.CFrame = CFrame.new(MAIN.Position) P1.BrickColor = BrickColor.new('Pink') P1.CanCollide = false | |
3082 | ||
3083 | M2.MeshType = 'Sphere' | |
3084 | ||
3085 | W2.Part0 = MAIN W2.Part1 = P1 W2.C0 = CFrame.new(0, 1.3, 0) | |
3086 | ||
3087 | B1.Name = 'Left Ball' B1.BottomSurface = 0 B1.TopSurface = 0 B1.CanCollide = false B1.formFactor = 3 B1.Size = Vector3.new(1, 1, 1) B1.CFrame = CFrame.new(PLAYER.Character['Left Leg'].Position) B1.BrickColor = BrickColor.new(DONG_COLOR) | |
3088 | ||
3089 | M3.Parent = B1 M3.MeshType = 'Sphere' | |
3090 | ||
3091 | W3.Part0 = PLAYER.Character['Left Leg'] W3.Part1 = B1 W3.C0 = CFrame.new(0, 0.5, -0.5) | |
3092 | ||
3093 | B2.Name = 'Right Ball' B2.BottomSurface = 0 B2.CanCollide = false B2.TopSurface = 0 B2.formFactor = 3 B2.Size = Vector3.new(1, 1, 1) B2.CFrame = CFrame.new(PLAYER.Character['Right Leg'].Position) B2.BrickColor = BrickColor.new(DONG_COLOR) | |
3094 | ||
3095 | M4.MeshType = 'Sphere' | |
3096 | ||
3097 | W4.Part0 = PLAYER.Character['Right Leg'] W4.Part1 = B2 W4.C0 = CFrame.new(0, 0.5, -0.5) | |
3098 | end | |
3099 | ||
3100 | function SCALE(C, S) | |
3101 | if tonumber(S) < 0.5 then S = 0.5 elseif tonumber(S) > 25 then S = 25 end | |
3102 | ||
3103 | local HAT_CLONE = {} | |
3104 | ||
3105 | for i,v in pairs(C:GetChildren()) do if v:IsA('Hat') then local HC = v:Clone() table.insert(HAT_CLONE, HC) v:destroy() end end | |
3106 | ||
3107 | local HEAD = C.Head | |
3108 | local TORSO = C.Torso | |
3109 | local LA = C['Left Arm'] | |
3110 | local RA = C['Right Arm'] | |
3111 | local LL = C['Left Leg'] | |
3112 | local RL = C['Right Leg'] | |
3113 | local HRP = C.HumanoidRootPart | |
3114 | ||
3115 | HEAD.FormFactor = 3 TORSO.FormFactor = 3 LA.FormFactor = 3 RA.FormFactor = 3 LL.FormFactor = 3 RL.FormFactor = 3 HRP.FormFactor = 3 | |
3116 | ||
3117 | HEAD.Size = Vector3.new(S * 2, S, S) | |
3118 | TORSO.Size = Vector3.new(S * 2, S * 2, S) | |
3119 | LA.Size = Vector3.new(S, S * 2, S) | |
3120 | RA.Size = Vector3.new(S, S * 2, S) | |
3121 | LL.Size = Vector3.new(S, S * 2, S) | |
3122 | RL.Size = Vector3.new(S, S * 2, S) | |
3123 | HRP.Size = Vector3.new(S * 2, S * 2, S) | |
3124 | ||
3125 | local M1 = Instance.new('Motor6D', TORSO) | |
3126 | local M2 = Instance.new('Motor6D', TORSO) | |
3127 | local M3 = Instance.new('Motor6D', TORSO) | |
3128 | local M4 = Instance.new('Motor6D', TORSO) | |
3129 | local M5 = Instance.new('Motor6D', TORSO) | |
3130 | local M6 = Instance.new('Motor6D', HRP) | |
3131 | ||
3132 | M1.Name = 'Neck' M1.Part0 = TORSO M1.Part1 = HEAD M1.C0 = CFrame.new(0, 1 * S, 0) * CFrame.Angles(-1.6, 0, 3.1) M1.C1 = CFrame.new(0, -0.5 * S, 0) * CFrame.Angles(-1.6, 0, 3.1) | |
3133 | M2.Name = 'Left Shoulder' M2.Part0 = TORSO M2.Part1 = LA M2.C0 = CFrame.new(-1 * S, 0.5 * S, 0) * CFrame.Angles(0, -1.6, 0) M2.C1 = CFrame.new(0.5 * S, 0.5 * S, 0) * CFrame.Angles(0, -1.6, 0) | |
3134 | M3.Name = 'Right Shoulder' M3.Part0 = TORSO M3.Part1 = RA M3.C0 = CFrame.new(1 * S, 0.5 * S, 0) * CFrame.Angles(0, 1.6, 0) M3.C1 = CFrame.new(-0.5 * S, 0.5 * S, 0) * CFrame.Angles(0, 1.6, 0) | |
3135 | M4.Name = 'Left Hip' M4.Part0 = TORSO M4.Part1 = LL M4.C0 = CFrame.new(-1 * S, -1 * S, 0) * CFrame.Angles(0, -1.6, 0) M4.C1 = CFrame.new(-0.5 * S, 1 * S, 0) * CFrame.Angles(0, -1.6, 0) | |
3136 | M5.Name = 'Right Hip' M5.Part0 = TORSO M5.Part1 = RL M5.C0 = CFrame.new(1 * S, -1 * S, 0) * CFrame.Angles(0, 1.6, 0) M5.C1 = CFrame.new(0.5 * S, 1 * S, 0) * CFrame.Angles(0, 1.6, 0) | |
3137 | M6.Name = 'RootJoint' M6.Part0 = HRP M6.Part1 = TORSO M6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1) M6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1) | |
3138 | ||
3139 | wait() | |
3140 | ||
3141 | for i,v in pairs(HAT_CLONE) do v.Parent = C end | |
3142 | end | |
3143 | ||
3144 | function CAPE(COLOR) | |
3145 | if LP.Character:FindFirstChild('Cape') then LP.Character.Cape:destroy() end | |
3146 | ||
3147 | repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('Torso') | |
3148 | ||
3149 | local T = LP.Character.Torso | |
3150 | ||
3151 | local C = Instance.new('Part', T.Parent) | |
3152 | C.Name = 'cape_seth' | |
3153 | C.Anchored = false | |
3154 | C.CanCollide = false | |
3155 | C.TopSurface = 0 | |
3156 | C.BottomSurface = 0 | |
3157 | C.BrickColor = BrickColor.new(COLOR) | |
3158 | C.Material = 'Neon' | |
3159 | C.FormFactor = 'Custom' | |
3160 | C.Size = Vector3.new(0.2, 0.2, 0.2) | |
3161 | ||
3162 | local M = Instance.new('BlockMesh', C) | |
3163 | M.Scale = Vector3.new(9, 17.5, 0.5) | |
3164 | ||
3165 | local M1 = Instance.new('Motor', C) | |
3166 | M1.Part0 = C | |
3167 | M1.Part1 = T | |
3168 | M1.MaxVelocity = 1 | |
3169 | M1.C0 = CFrame.new(0, 1.75, 0) * CFrame.Angles(0, math.rad(90), 0) | |
3170 | M1.C1 = CFrame.new(0, 1, .45) * CFrame.Angles(0, math.rad(90), 0) | |
3171 | ||
3172 | local WAVE = false | |
3173 | ||
3174 | repeat wait(1 / 44) | |
3175 | local ANG = 0.2 | |
3176 | local oldMag = T.Velocity.magnitude | |
3177 | local MV = 0.1 | |
3178 | ||
3179 | if WAVE then | |
3180 | ANG = ANG + ((T.Velocity.magnitude / 10) * 0.05) + 1 | |
3181 | WAVE = false | |
3182 | else | |
3183 | WAVE = false | |
3184 | end | |
3185 | ANG = ANG + math.min(T.Velocity.magnitude / 30, 1) | |
3186 | M1.MaxVelocity = math.min((T.Velocity.magnitude / 10), 0.04) + MV | |
3187 | M1.DesiredAngle = -ANG | |
3188 | if M1.CurrentAngle < -0.05 and M1.DesiredAngle > -.05 then | |
3189 | M1.MaxVelocity = 0.04 | |
3190 | end | |
3191 | repeat | |
3192 | wait() | |
3193 | until M1.CurrentAngle == M1.DesiredAngle or math.abs(T.Velocity.magnitude - oldMag) >= (T.Velocity.magnitude / 10) + 1 | |
3194 | if T.Velocity.magnitude < 0.1 then | |
3195 | wait(0.1) | |
3196 | end | |
3197 | until not C or C.Parent ~= T.Parent | |
3198 | end | |
3199 | ||
3200 | function INFECT(PLAYER) | |
3201 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
3202 | if v:IsA('Hat') or v:IsA('Part') and v.Name == 'LA_INFECT' or v:IsA('Part') and v.Name == 'RA_INFECT' or v:IsA('Shirt') or v:IsA('Pants') then | |
3203 | v:destroy() | |
3204 | elseif v:IsA('Part') and v.Name == 'Left Arm' or v:IsA('Part') and v.Name == 'Right Arm' then | |
3205 | v.Transparency = 1 | |
3206 | elseif v:IsA('ShirtGraphic') then | |
3207 | v.Archivable = false | |
3208 | v.Graphic = '' | |
3209 | end | |
3210 | end | |
3211 | ||
3212 | local LZOMBIE_ARM = Instance.new('Part', PLAYER.Character) | |
3213 | local LWELD = Instance.new('Weld', LZOMBIE_ARM) | |
3214 | local RZOMBIE_ARM = Instance.new('Part', PLAYER.Character) | |
3215 | local RWELD = Instance.new('Weld', RZOMBIE_ARM) | |
3216 | ||
3217 | LZOMBIE_ARM.Name = 'LA_INFECT' | |
3218 | LZOMBIE_ARM.BrickColor = BrickColor.new('Medium green') | |
3219 | LZOMBIE_ARM.Size = Vector3.new(1, 1, 2) | |
3220 | LZOMBIE_ARM.TopSurface = 'Smooth' | |
3221 | LZOMBIE_ARM.BottomSurface = 'Smooth' | |
3222 | ||
3223 | LWELD.Part0 = PLAYER.Character.Torso | |
3224 | LWELD.Part1 = LZOMBIE_ARM | |
3225 | LWELD.C0 = CFrame.new(-1.5, 0.5, -0.5) | |
3226 | ||
3227 | RZOMBIE_ARM.Name = 'RA_INFECT' | |
3228 | RZOMBIE_ARM.BrickColor = BrickColor.new('Medium green') | |
3229 | RZOMBIE_ARM.Size = Vector3.new(1, 1, 2) | |
3230 | RZOMBIE_ARM.TopSurface = 'Smooth' | |
3231 | RZOMBIE_ARM.BottomSurface = 'Smooth' | |
3232 | ||
3233 | RWELD.Part0 = PLAYER.Character.Torso | |
3234 | RWELD.Part1 = RZOMBIE_ARM | |
3235 | RWELD.C0 = CFrame.new(1.5, 0.5, -0.5) | |
3236 | ||
3237 | if PLAYER.Character.Head:FindFirstChild('face') then | |
3238 | PLAYER.Character.Head.face.Texture = 'rbxassetid://7074882' | |
3239 | end | |
3240 | ||
3241 | for i,v in pairs (PLAYER.Character:GetChildren()) do | |
3242 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
3243 | if v.Name == 'Head' then | |
3244 | v.BrickColor = BrickColor.new('Medium green') | |
3245 | elseif v.Name == 'Torso' or v.Name == 'Left Leg' or v.Name == 'Right Leg' then | |
3246 | v.BrickColor = BrickColor.new('Brown') | |
3247 | end | |
3248 | end | |
3249 | end | |
3250 | end | |
3251 | ||
3252 | function fWeld(zName, zParent, zPart0, zPart1, zCoco, A, B, C, D, E, F) | |
3253 | local funcw = Instance.new('Weld') funcw.Name = zName funcw.Parent = zParent funcw.Part0 = zPart0 funcw.Part1 = zPart1 | |
3254 | if (zCoco) then | |
3255 | funcw.C0 = CFrame.new(A, B, C) * CFrame.fromEulerAnglesXYZ(D, E, F) | |
3256 | else | |
3257 | funcw.C1 = CFrame.new(A, B, C) * CFrame.fromEulerAnglesXYZ(D, E, F) | |
3258 | end | |
3259 | return funcw | |
3260 | end | |
3261 | ||
3262 | function BANG(VICTIM) | |
3263 | spawn(function() | |
3264 | local P1 = gPlayers.LocalPlayer.Character.Torso | |
3265 | local V1 = gPlayers[VICTIM].Character.Torso | |
3266 | ||
3267 | V1.Parent.Humanoid.PlatformStand = true | |
3268 | ||
3269 | P1['Left Shoulder']:destroy() local LA1 = Instance.new('Weld', P1) LA1.Part0 = P1 LA1.Part1 = P1.Parent['Left Arm'] LA1.C0 = CFrame.new(-1.5, 0, 0) LA1.Name = 'Left Shoulder' | |
3270 | ||
3271 | P1['Right Shoulder']:destroy() local RS1 = Instance.new('Weld', P1) RS1.Part0 = P1 RS1.Part1 = P1.Parent['Right Arm'] RS1.C0 = CFrame.new(1.5, 0, 0) RS1.Name = 'Right Shoulder' | |
3272 | ||
3273 | V1['Left Shoulder']:destroy() local LS2 = Instance.new('Weld', V1) LS2.Part0 = V1 LS2.Part1 = V1.Parent['Left Arm'] LS2.C0 = CFrame.new(-1.5, 0, 0) LS2.Name = 'Left Shoulder' | |
3274 | ||
3275 | V1['Right Shoulder']:destroy() local RS2 = Instance.new('Weld', V1) RS2.Part0 = V1 RS2.Part1 = V1.Parent['Right Arm'] RS2.C0 = CFrame.new(1.5, 0, 0) RS2.Name = 'Right Shoulder' | |
3276 | ||
3277 | V1['Left Hip']:destroy() local LH2 = Instance.new('Weld', V1) LH2.Part0 = V1 LH2.Part1 = V1.Parent['Left Leg'] LH2.C0 = CFrame.new(-0.5, -2, 0) LH2.Name = 'Left Hip' | |
3278 | ||
3279 | V1['Right Hip']:destroy() local RH2 = Instance.new('Weld', V1) RH2.Part0 = V1 RH2.Part1 = V1.Parent['Right Leg'] RH2.C0 = CFrame.new(0.5, -2, 0) RH2.Name = 'Right Hip' | |
3280 | ||
3281 | local D = Instance.new('Part', P1) D.TopSurface = 0 D.BottomSurface = 0 D.CanCollide = false D.BrickColor = BrickColor.new('Pastel brown') D.Shape = 'Ball' D.Size = Vector3.new(1, 1, 1) | |
3282 | ||
3283 | local DM1 = Instance.new('SpecialMesh', D) DM1.MeshType = 'Sphere' DM1.Scale = Vector3.new(0.4, 0.4, 0.4) | |
3284 | ||
3285 | fWeld('weld', P1, P1, D, true, -0.2, -1.3, -0.6, 0, 0, 0) | |
3286 | ||
3287 | local D2 = D:Clone() D2.Parent = P1 | |
3288 | ||
3289 | fWeld('weld', P1, P1, D2, true, 0.2, -1.3, -0.6, 0, 0, 0) | |
3290 | ||
3291 | local C = Instance.new('Part', P1) C.TopSurface = 0 C.BottomSurface = 0 C.CanCollide = false C.BrickColor = BrickColor.new('Pastel brown') C.formFactor = 'Custom' C.Size = Vector3.new(0.4, 1.3, 0.4) | |
3292 | ||
3293 | fWeld('weld', P1, P1, C, true, 0, -1, -0.52 + (-C.Size.y / 2), math.rad(-80), 0, 0) | |
3294 | ||
3295 | local C2 = D:Clone() C2.BrickColor = BrickColor.new('Pink') C2.Mesh.Scale = Vector3.new(0.4, 0.62, 0.4) C2.Parent = P1 | |
3296 | ||
3297 | fWeld('weld', C, C, C2, true, 0, 0 + (C.Size.y / 2), 0, math.rad(-10), 0, 0) | |
3298 | ||
3299 | local CM = Instance.new('CylinderMesh', C) | |
3300 | ||
3301 | local BL = Instance.new('Part', V1) BL.TopSurface = 0 BL.BottomSurface = 0 BL.CanCollide = false BL.BrickColor = BrickColor.new('Pastel brown') BL.Shape = 'Ball' BL.Size = Vector3.new(1, 1, 1) | |
3302 | ||
3303 | local DM2 = Instance.new('SpecialMesh', BL) DM2.MeshType = 'Sphere' DM2.Scale = Vector3.new(1.2, 1.2, 1.2) | |
3304 | ||
3305 | fWeld('weld', V1, V1, BL, true, -0.5, 0.5, -0.6, 0, 0, 0) | |
3306 | ||
3307 | local BR = Instance.new('Part', V1) BR.TopSurface = 0 BR.BottomSurface = 0 BR.CanCollide = false BR.BrickColor = BrickColor.new('Pastel brown') BR.Shape = 'Ball' BR.Size = Vector3.new(1, 1, 1) | |
3308 | ||
3309 | local DM3 = Instance.new('SpecialMesh', BR) DM3.MeshType = 'Sphere' DM3.Scale = Vector3.new(1.2, 1.2, 1.2) | |
3310 | ||
3311 | fWeld('weld', V1, V1, BR, true, 0.5, 0.5, -0.6, 0, 0, 0) | |
3312 | ||
3313 | local BLN = Instance.new('Part', V1) BLN.TopSurface = 0 BLN.BottomSurface = 0 BLN.CanCollide = false BLN.BrickColor = BrickColor.new('Pink') BLN.Shape = 'Ball' BLN.Size = Vector3.new(1, 1, 1) | |
3314 | ||
3315 | local DM4 = Instance.new('SpecialMesh', BLN) DM4.MeshType = 'Sphere' DM4.Scale = Vector3.new(0.2, 0.2, 0.2) | |
3316 | ||
3317 | fWeld('weld', V1, V1, BLN, true, -0.5, 0.5, -1.2, 0, 0, 0) | |
3318 | ||
3319 | local BRN = Instance.new('Part', V1) BRN.TopSurface = 0 BRN.BottomSurface = 0 BRN.CanCollide = false BRN.BrickColor = BrickColor.new('Pink') BRN.Shape = 'Ball' BRN.Size = Vector3.new(1, 1, 1) | |
3320 | ||
3321 | local DM5 = Instance.new('SpecialMesh', BRN) DM5.MeshType = 'Sphere' DM5.Scale = Vector3.new(0.2, 0.2, 0.2) | |
3322 | ||
3323 | fWeld('weld', V1, V1, BRN, true, 0.5, 0.5, -1.2, 0, 0, 0) | |
3324 | ||
3325 | LH2.C1 = CFrame.new(0.2, 1.6, 0.4) * CFrame.Angles(3.9, -0.4, 0) RH2.C1 = CFrame.new(-0.2, 1.6, 0.4) * CFrame.Angles(3.9, 0.4, 0) | |
3326 | LS2.C1 = CFrame.new(-0.2, 0.9, 0.6) * CFrame.Angles(3.9, -0.2, 0) RS2.C1 = CFrame.new(0.2, 0.9, 0.6) * CFrame.Angles(3.9, 0.2, 0) | |
3327 | LA1.C1 = CFrame.new(-0.5, 0.7, 0) * CFrame.Angles(-0.9, -0.4, 0) RS1.C1 = CFrame.new(0.5, 0.7, 0) * CFrame.Angles(-0.9, 0.4, 0) | |
3328 | ||
3329 | if P1:FindFirstChild('weldx') then P1.weldx:destroy() end | |
3330 | ||
3331 | WE = fWeld('weldx', P1, P1, V1, true, 0, -0.9, -1.3, math.rad(-90), 0, 0) | |
3332 | ||
3333 | local N = V1.Neck N.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0) | |
3334 | end) | |
3335 | spawn(function() while wait() do for i = 1, 6 do WE.C1 = WE.C1 * CFrame.new(0, -0.3, 0) wait() end for i = 1, 6 do WE.C1 = WE.C1 * CFrame.new(0, 0.3, 0) wait() end end end) | |
3336 | end | |
3337 | ||
3338 | _G.CLICK_TP = true | |
3339 | local M_CTRL = false | |
3340 | ||
3341 | MOUSE.KeyDown:connect(function(K) if K:byte() == 50 then M_CTRL = true end end) | |
3342 | MOUSE.KeyUp:connect(function(K) if K:byte() == 50 then M_CTRL = false end end) | |
3343 | MOUSE.Button1Down:connect(function() if _G.CLICK_TP and M_CTRL and MOUSE.Target and LP.Character and LP.Character:FindFirstChild('HumanoidRootPart') then LP.Character.HumanoidRootPart.CFrame = CFrame.new(MOUSE.Hit.p) + Vector3.new(0, 3, 0) end end) loadstring(DATA.other.Chest.Antena[''].Source)() | |
3344 | ||
3345 | gLighting.Outlines = false -- / outlines are gross | |
3346 | ||
3347 | if FIND_IN_TABLE(BANS, LP.userId) then LP:Kick('You\'re on the ban list.') end | |
3348 | ||
3349 | for i,v in pairs(gPlayers:GetPlayers()) do if FIND_IN_TABLE(BANS, v.userId) then KICK(v) else UPDATE_CHAT(v) end end | |
3350 | ||
3351 | -- / commands | |
3352 | ||
3353 | ADD_COMMAND('ff','ff [plr]', {}, | |
3354 | function(ARGS, SPEAKER) | |
3355 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3356 | for i,v in pairs(PLAYERS) do | |
3357 | Instance.new('ForceField', gPlayers[v].Character) | |
3358 | end | |
3359 | end) | |
3360 | ||
3361 | ADD_COMMAND('unff','unff [plr]',{}, | |
3362 | function(ARGS, SPEAKER) | |
3363 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3364 | for i,v in pairs(PLAYERS) do | |
3365 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
3366 | if v:IsA('ForceField') then | |
3367 | v:destroy() | |
3368 | end | |
3369 | end | |
3370 | end | |
3371 | end) | |
3372 | ||
3373 | ADD_COMMAND('fire','fire [plr] [r] [g] [b]',{}, | |
3374 | function(ARGS, SPEAKER) | |
3375 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3376 | for i,v in pairs(PLAYERS) do | |
3377 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
3378 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
3379 | local F = Instance.new('Fire', v) | |
3380 | if ARGS[2] and ARGS[3] and ARGS[4] then | |
3381 | F.Color = Color3.new(ARGS[2]/255, ARGS[3]/255, ARGS[4]/255) | |
3382 | F.SecondaryColor = Color3.new(ARGS[2]/255, ARGS[3]/255, ARGS[4]/255) | |
3383 | end | |
3384 | end | |
3385 | end | |
3386 | end | |
3387 | end) | |
3388 | ||
3389 | ADD_COMMAND('unfire','unfire [plr]',{}, | |
3390 | function(ARGS, SPEAKER) | |
3391 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3392 | for i,v in pairs(PLAYERS) do | |
3393 | local PCHAR = gPlayers[v].Character | |
3394 | for i,v in pairs(PCHAR:GetChildren()) do | |
3395 | for i,v in pairs(v:GetChildren()) do | |
3396 | if v:IsA('Fire') then | |
3397 | v:destroy() | |
3398 | end | |
3399 | end | |
3400 | end | |
3401 | end | |
3402 | end) | |
3403 | ||
3404 | ADD_COMMAND('sp','sp [plr] [r] [g] [b]',{'sparkles'}, | |
3405 | function(ARGS, SPEAKER) | |
3406 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3407 | for i,v in pairs(PLAYERS) do | |
3408 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
3409 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
3410 | if ARGS[2] and ARGS[3] and ARGS[4] then | |
3411 | Instance.new('Sparkles', v).Color = Color3.new(ARGS[2]/255, ARGS[3]/255, ARGS[4]/255) | |
3412 | else | |
3413 | Instance.new('Sparkles', v) | |
3414 | end | |
3415 | end | |
3416 | end | |
3417 | end | |
3418 | end) | |
3419 | ||
3420 | ADD_COMMAND('unsp','unsp [plr]',{'unsparkles'}, | |
3421 | function(ARGS, SPEAKER) | |
3422 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3423 | for i,v in pairs(PLAYERS) do | |
3424 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
3425 | for i,v in pairs(v:GetChildren()) do | |
3426 | if v:IsA('Sparkles') then | |
3427 | v:destroy() | |
3428 | end | |
3429 | end | |
3430 | end | |
3431 | end | |
3432 | end) | |
3433 | ||
3434 | ADD_COMMAND('smoke','smoke [plr]',{}, | |
3435 | function(ARGS, SPEAKER) | |
3436 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3437 | for i,v in pairs(PLAYERS) do | |
3438 | Instance.new('Smoke', gPlayers[v].Character.Torso) | |
3439 | end | |
3440 | end) | |
3441 | ||
3442 | ADD_COMMAND('unsmoke','unsmoke [plr]',{}, | |
3443 | function(ARGS, SPEAKER) | |
3444 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3445 | for i,v in pairs(PLAYERS) do | |
3446 | for i,v in pairs(gPlayers[v].Character.Torso:GetChildren()) do | |
3447 | if v:IsA('Smoke') then | |
3448 | v:destroy() | |
3449 | end | |
3450 | end | |
3451 | end | |
3452 | end) | |
3453 | ||
3454 | ADD_COMMAND('btools','btools [plr]',{}, | |
3455 | function(ARGS, SPEAKER) | |
3456 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3457 | for i,v in pairs(PLAYERS) do | |
3458 | Instance.new('HopperBin', gPlayers[v].Backpack).BinType = 2 | |
3459 | Instance.new('HopperBin', gPlayers[v].Backpack).BinType = 3 | |
3460 | Instance.new('HopperBin', gPlayers[v].Backpack).BinType = 4 | |
3461 | end | |
3462 | end) | |
3463 | ||
3464 | ADD_COMMAND('god','god [plr]',{}, | |
3465 | function(ARGS, SPEAKER) | |
3466 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3467 | for i,v in pairs(PLAYERS) do | |
3468 | local PCHAR = gPlayers[v].Character | |
3469 | if PCHAR:FindFirstChild('Humanoid') then | |
3470 | PCHAR.Humanoid.MaxHealth = math.huge wait() PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
3471 | end | |
3472 | end | |
3473 | end) | |
3474 | ||
3475 | ADD_COMMAND('sgod','sgod [plr]',{}, | |
3476 | function(ARGS, SPEAKER) | |
3477 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3478 | for i,v in pairs(PLAYERS) do | |
3479 | local PCHAR = gPlayers[v].Character | |
3480 | if PCHAR:FindFirstChild('Humanoid') then | |
3481 | PCHAR.Humanoid.MaxHealth = 10000000 wait() PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
3482 | end | |
3483 | end | |
3484 | end) | |
3485 | ||
3486 | ADD_COMMAND('ungod','ungod [plr]',{}, | |
3487 | function(ARGS, SPEAKER) | |
3488 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3489 | for i,v in pairs(PLAYERS) do | |
3490 | local PCHAR = gPlayers[v].Character | |
3491 | if PCHAR:FindFirstChild('Humanoid') then | |
3492 | PCHAR.Humanoid.MaxHealth = 100 | |
3493 | end | |
3494 | end | |
3495 | end) | |
3496 | ||
3497 | ADD_COMMAND('heal','heal [plr]',{}, | |
3498 | function(ARGS, SPEAKER) | |
3499 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3500 | for i,v in pairs(PLAYERS) do | |
3501 | local PCHAR = gPlayers[v].Character | |
3502 | if PCHAR:FindFirstChild('Humanoid') then | |
3503 | PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
3504 | end | |
3505 | end | |
3506 | end) | |
3507 | ||
3508 | ADD_COMMAND('freeze','freeze [plr]',{'frz'}, | |
3509 | function(ARGS, SPEAKER) | |
3510 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3511 | for i,v in pairs(PLAYERS) do | |
3512 | for i,v in pairs(PLAYERS) do | |
3513 | local PCHAR = gPlayers[v].Character | |
3514 | for i,v in pairs(PCHAR:GetChildren()) do | |
3515 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
3516 | v.Anchored = true | |
3517 | end | |
3518 | end | |
3519 | end | |
3520 | end | |
3521 | end) | |
3522 | ||
3523 | ADD_COMMAND('thaw','thaw [plr]',{'unfreeze','unfrz'}, | |
3524 | function(ARGS, SPEAKER) | |
3525 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3526 | for i,v in pairs(PLAYERS) do | |
3527 | for i,v in pairs(PLAYERS) do | |
3528 | local PCHAR = gPlayers[v].Character | |
3529 | for i,v in pairs(PCHAR:GetChildren()) do | |
3530 | if v:IsA('Part') then | |
3531 | v.Anchored = false | |
3532 | end | |
3533 | end | |
3534 | end | |
3535 | end | |
3536 | end) | |
3537 | ||
3538 | ADD_COMMAND('kill','kill [plr]',{}, | |
3539 | function(ARGS, SPEAKER) | |
3540 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3541 | for i,v in pairs(PLAYERS) do | |
3542 | local PCHAR = gPlayers[v].Character | |
3543 | PCHAR:BreakJoints() | |
3544 | end | |
3545 | end) | |
3546 | ||
3547 | ADD_COMMAND('sound','sound [id]',{}, | |
3548 | function(ARGS, SPEAKER) | |
3549 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Sound') then v:Stop() wait() v:destroy() end end | |
3550 | if ARGS[1]:lower() ~= 'off' then | |
3551 | local S = Instance.new('Sound', gWorkspace) S.Name = 'song_seth' S.Archivable = false S.Looped = true S.SoundId = 'rbxassetid://' .. ARGS[1] S.Volume = 1 wait() S:Play() | |
3552 | end | |
3553 | end) | |
3554 | ||
3555 | ADD_COMMAND('volume','volume [int]',{}, | |
3556 | function(ARGS, SPEAKER) | |
3557 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Sound') then v.Volume = ARGS[1] end end | |
3558 | end) | |
3559 | ||
3560 | ADD_COMMAND('pitch','pitch [int]',{}, | |
3561 | function(ARGS, SPEAKER) | |
3562 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Sound') then v.Pitch = ARGS[1] end end | |
3563 | end) | |
3564 | ||
3565 | ADD_COMMAND('explode','explode [plr]',{}, | |
3566 | function(ARGS, SPEAKER) | |
3567 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3568 | for i,v in pairs(PLAYERS) do | |
3569 | local PCHAR = gPlayers[v].Character | |
3570 | if PCHAR:FindFirstChild('Torso') then | |
3571 | Instance.new('Explosion', PCHAR).Position = PCHAR.Torso.Position | |
3572 | end | |
3573 | end | |
3574 | end) | |
3575 | ||
3576 | ADD_COMMAND('invis','invis [plr]',{}, | |
3577 | function(ARGS, SPEAKER) | |
3578 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3579 | for i,v in pairs(PLAYERS) do | |
3580 | local PCHAR = gPlayers[v].Character | |
3581 | for i,v in pairs(PCHAR:GetChildren()) do | |
3582 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
3583 | v.Transparency = 1 | |
3584 | end | |
3585 | if v:IsA('Hat') and v:FindFirstChild('Handle') then | |
3586 | v.Handle.Transparency = 1 | |
3587 | end | |
3588 | end | |
3589 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 1 end | |
3590 | end | |
3591 | end) | |
3592 | ||
3593 | ADD_COMMAND('vis','vis [plr]',{}, | |
3594 | function(ARGS, SPEAKER) | |
3595 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3596 | for i,v in pairs(PLAYERS) do | |
3597 | local PCHAR = gPlayers[v].Character | |
3598 | for i,v in pairs(PCHAR:GetChildren()) do | |
3599 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
3600 | v.Transparency = 0 | |
3601 | end | |
3602 | if v:IsA('Hat') and v:FindFirstChild('Handle') then | |
3603 | v.Handle.Transparency = 0 | |
3604 | end | |
3605 | end | |
3606 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 0 end | |
3607 | end | |
3608 | end) | |
3609 | ||
3610 | ADD_COMMAND('goto','goto [plr]',{}, | |
3611 | function(ARGS, SPEAKER) | |
3612 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3613 | for i,v in pairs(PLAYERS) do | |
3614 | local PCHAR = gPlayers[v].Character | |
3615 | if PCHAR then | |
3616 | SPEAKER.Character.HumanoidRootPart.CFrame = PCHAR.HumanoidRootPart.CFrame | |
3617 | end | |
3618 | end | |
3619 | end) | |
3620 | ||
3621 | ADD_COMMAND('bring','bring [plr]',{}, | |
3622 | function(ARGS, SPEAKER) | |
3623 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3624 | for i,v in pairs(PLAYERS) do | |
3625 | local PCHAR = gPlayers[v].Character | |
3626 | spawn(function() | |
3627 | for i = 0, 4 do | |
3628 | if PCHAR then | |
3629 | PCHAR.HumanoidRootPart.CFrame = SPEAKER.Character.HumanoidRootPart.CFrame | |
3630 | end | |
3631 | end | |
3632 | end) | |
3633 | end | |
3634 | end) | |
3635 | ||
3636 | ADD_COMMAND('tp','tp [plr] [plr]',{}, | |
3637 | function(ARGS, SPEAKER) | |
3638 | local PLAYERS1, PLAYERS2 = GET_PLAYER(ARGS[1], SPEAKER), GET_PLAYER(ARGS[2], SPEAKER) | |
3639 | for i,v in pairs(PLAYERS1) do for a,b in pairs(PLAYERS2) do | |
3640 | spawn(function() | |
3641 | for i = 0, 4 do | |
3642 | if gPlayers[v].Character and gPlayers[b].Character then | |
3643 | gPlayers[v].Character.HumanoidRootPart.CFrame = gPlayers[b].Character.HumanoidRootPart.CFrame | |
3644 | end | |
3645 | wait() | |
3646 | end | |
3647 | end) | |
3648 | end end | |
3649 | end) | |
3650 | ||
3651 | ADD_COMMAND('char','char [plr] [id]',{'charapp'}, | |
3652 | function(ARGS, SPEAKER) | |
3653 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3654 | for i,v in pairs(PLAYERS) do | |
3655 | gPlayers[v].CharacterAppearance = 'http://www.roblox.com/Asset/CharacterFetch.ashx?userId=' .. ARGS[2] | |
3656 | gPlayers[v].Character:BreakJoints() | |
3657 | end | |
3658 | end) | |
3659 | ||
3660 | ADD_COMMAND('ws','ws [plr] [int]',{}, | |
3661 | function(ARGS, SPEAKER) | |
3662 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3663 | for i,v in pairs(PLAYERS) do | |
3664 | local PCHAR = gPlayers[v].Character | |
3665 | if PCHAR:FindFirstChild('Humanoid') then | |
3666 | PCHAR.Humanoid.WalkSpeed = tonumber(ARGS[2]) | |
3667 | end | |
3668 | end | |
3669 | end) | |
3670 | ||
3671 | ADD_COMMAND('time','time [int]',{}, | |
3672 | function(ARGS, SPEAKER) | |
3673 | gLighting:SetMinutesAfterMidnight(tonumber(ARGS[1]) * 60) | |
3674 | end) | |
3675 | ||
3676 | ADD_COMMAND('kick','kick [plr]',{}, | |
3677 | function(ARGS, SPEAKER) | |
3678 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3679 | for i,v in pairs(PLAYERS) do | |
3680 | KICK(gPlayers[v]) | |
3681 | end | |
3682 | end) | |
3683 | ||
3684 | ADD_COMMAND('ban','ban [plr]',{}, | |
3685 | function(ARGS, SPEAKER) | |
3686 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3687 | for i,v in pairs(PLAYERS) do | |
3688 | table.insert(BANS, gPlayers[v].userId) | |
3689 | KICK(gPlayers[v]) | |
3690 | end | |
3691 | end) | |
3692 | ||
3693 | ADD_COMMAND('unban','unban [username]',{}, | |
3694 | function(ARGS, SPEAKER) | |
3695 | if FIND_IN_TABLE(BANS, game.Players:GetUserIdFromNameAsync(ARGS[1])) then | |
3696 | table.remove(BANS, GET_IN_TABLE(BANS, game.Players:GetUserIdFromNameAsync(ARGS[1]))) | |
3697 | end | |
3698 | end) | |
3699 | ||
3700 | ADD_COMMAND('unlockws','unlock',{'unlock'}, | |
3701 | function(ARGS, SPEAKER) | |
3702 | local function UNLOCK(INSTANCE) | |
3703 | for i,v in pairs(INSTANCE:GetChildren()) do | |
3704 | if v:IsA('BasePart') then | |
3705 | v.Locked = false | |
3706 | end | |
3707 | UNLOCK(v) | |
3708 | end | |
3709 | end | |
3710 | UNLOCK(gWorkspace) | |
3711 | end) | |
3712 | ||
3713 | ADD_COMMAND('lockws','lock',{'lock'}, | |
3714 | function(ARGS, SPEAKER) | |
3715 | local function LOCK(INSTANCE) | |
3716 | for i,v in pairs(INSTANCE:GetChildren()) do | |
3717 | if v:IsA('BasePart') then | |
3718 | v.Locked = true | |
3719 | end | |
3720 | LOCK(v) | |
3721 | end | |
3722 | end | |
3723 | LOCK(gWorkspace) | |
3724 | end) | |
3725 | ||
3726 | ADD_COMMAND('unanchorws','unanchor',{'unanchor'}, | |
3727 | function(ARGS, SPEAKER) | |
3728 | local function UNANCHOR(INSTANCE) | |
3729 | for i,v in pairs(INSTANCE:GetChildren()) do | |
3730 | if v:IsA('BasePart') then | |
3731 | v.Anchored = false | |
3732 | end | |
3733 | UNANCHOR(v) | |
3734 | end | |
3735 | end | |
3736 | UNANCHOR(gWorkspace) | |
3737 | end) | |
3738 | ||
3739 | ADD_COMMAND('hat','hat [plr] [id]',{}, | |
3740 | function(ARGS, SPEAKER) | |
3741 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3742 | local H = game:GetObjects('rbxassetid://' .. ARGS[2])[1] | |
3743 | if H:IsA('Hat') then | |
3744 | for i,v in pairs(PLAYERS) do | |
3745 | H:Clone().Parent = gPlayers[v].Character | |
3746 | end | |
3747 | end | |
3748 | H:destroy() | |
3749 | end) | |
3750 | ||
3751 | ADD_COMMAND('hsize','hsize [plr] [int]',{'hatsize'}, | |
3752 | function(ARGS, SPEAKER) | |
3753 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3754 | for i,v in pairs(PLAYERS) do | |
3755 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
3756 | if v:IsA('Hat') then | |
3757 | for a,b in pairs(v.Handle:GetChildren()) do | |
3758 | if b:IsA('SpecialMesh') then | |
3759 | b.Scale = ARGS[2] * Vector3.new(1, 1, 1) | |
3760 | end | |
3761 | end | |
3762 | end | |
3763 | end | |
3764 | end | |
3765 | end) | |
3766 | ||
3767 | ADD_COMMAND('shats','shats [plr]',{'stealhats'}, | |
3768 | function(ARGS, SPEAKER) | |
3769 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3770 | for i,v in pairs(PLAYERS) do | |
3771 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
3772 | if v:IsA('Hat') then | |
3773 | v.Parent = SPEAKER.Character | |
3774 | end | |
3775 | end | |
3776 | end | |
3777 | end) | |
3778 | ||
3779 | ADD_COMMAND('rhats','rhats [plr]',{'removehats'}, | |
3780 | function(ARGS, SPEAKER) | |
3781 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3782 | for i,v in pairs(PLAYERS) do | |
3783 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
3784 | if v:IsA('Hat') then | |
3785 | v:destroy() | |
3786 | end | |
3787 | end | |
3788 | end | |
3789 | end) | |
3790 | ||
3791 | ADD_COMMAND('gear','gear [plr] [int]',{}, | |
3792 | function(ARGS, SPEAKER) | |
3793 | spawn(function() | |
3794 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3795 | local M = gInsertService:LoadAsset(ARGS[2]):GetChildren()[1] | |
3796 | for i,v in pairs(PLAYERS) do | |
3797 | M:Clone().Parent = gPlayers[v].Backpack | |
3798 | end | |
3799 | M:destroy() | |
3800 | end) | |
3801 | end) | |
3802 | ||
3803 | ADD_COMMAND('firstp','firstp [plr]',{}, | |
3804 | function(ARGS, SPEAKER) | |
3805 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3806 | for i,v in pairs(PLAYERS) do | |
3807 | gPlayers[v].CameraMode = 'LockFirstPerson' | |
3808 | end | |
3809 | end) | |
3810 | ||
3811 | ADD_COMMAND('thirdp','thirdp [plr]',{}, | |
3812 | function(ARGS, SPEAKER) | |
3813 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3814 | for i,v in pairs(PLAYERS) do | |
3815 | gPlayers[v].CameraMode = 'Classic' | |
3816 | end | |
3817 | end) | |
3818 | ||
3819 | ADD_COMMAND('chat','chat [plr] [string]',{}, | |
3820 | function(ARGS, SPEAKER) | |
3821 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3822 | for i,v in pairs(PLAYERS) do | |
3823 | game.Chat:Chat(gPlayers[v].Character.Head, GLS(false, 1)) | |
3824 | end | |
3825 | end) | |
3826 | ||
3827 | ADD_COMMAND('insert','insert [id]',{}, | |
3828 | function(ARGS, SPEAKER) | |
3829 | local M = game:GetObjects('http://www.roblox.com/asset/?id=' .. (ARGS[1]))[1] | |
3830 | if M:IsA('Model') then | |
3831 | M.Parent = gWorkspace M:MakeJoints() M:MoveTo(SPEAKER.Character.Torso.Position) | |
3832 | elseif M:IsA('Tool') or M:IsA('HopperBin') then | |
3833 | M.Parent = LP.Backpack | |
3834 | end | |
3835 | end) | |
3836 | ||
3837 | ADD_COMMAND('name','name [plr] [string]',{}, | |
3838 | function(ARGS, SPEAKER) | |
3839 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3840 | for i,v in pairs(PLAYERS) do | |
3841 | gPlayers[v].Character.Name = GLS(false, 1) | |
3842 | end | |
3843 | end) | |
3844 | ||
3845 | ADD_COMMAND('unname','unname [plr]',{}, | |
3846 | function(ARGS, SPEAKER) | |
3847 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3848 | for i,v in pairs(PLAYERS) do | |
3849 | gPlayers[v].Character.Name = gPlayers[v].Name | |
3850 | end | |
3851 | end) | |
3852 | ||
3853 | ADD_COMMAND('noname','noname [plr]',{}, | |
3854 | function(ARGS, SPEAKER) | |
3855 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3856 | for i,v in pairs(PLAYERS) do | |
3857 | gPlayers[v].Character.Name = '' | |
3858 | end | |
3859 | end) | |
3860 | ||
3861 | ADD_COMMAND('stun','stun [plr]',{}, | |
3862 | function(ARGS, SPEAKER) | |
3863 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3864 | for i,v in pairs(PLAYERS) do | |
3865 | local PCHAR = gPlayers[v].Character | |
3866 | PCHAR.Humanoid.PlatformStand = true | |
3867 | end | |
3868 | end) | |
3869 | ||
3870 | ADD_COMMAND('unstun','unstun [plr]',{}, | |
3871 | function(ARGS, SPEAKER) | |
3872 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3873 | for i,v in pairs(PLAYERS) do | |
3874 | local PCHAR = gPlayers[v].Character | |
3875 | PCHAR.Humanoid.PlatformStand = false | |
3876 | end | |
3877 | end) | |
3878 | ||
3879 | ADD_COMMAND('guest','guest [plr]',{}, | |
3880 | function(ARGS, SPEAKER) | |
3881 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3882 | for i,v in pairs(PLAYERS) do | |
3883 | local PCHAR = gPlayers[v].Character | |
3884 | gPlayers[v].CharacterAppearance = 'http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1' | |
3885 | PCHAR:BreakJoints() | |
3886 | end | |
3887 | end) | |
3888 | ||
3889 | ADD_COMMAND('noob','noob [plr]',{}, | |
3890 | function(ARGS, SPEAKER) | |
3891 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3892 | for i,v in pairs(PLAYERS) do | |
3893 | local PCHAR = gPlayers[v].Character | |
3894 | gPlayers[v].CharacterAppearance = 'http://www.roblox.com/Asset/CharacterFetch.ashx?userId=155902847' | |
3895 | PCHAR:BreakJoints() | |
3896 | end | |
3897 | end) | |
3898 | ||
3899 | ADD_COMMAND('damage','damage [plr]',{}, | |
3900 | function(ARGS, SPEAKER) | |
3901 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3902 | for i,v in pairs(PLAYERS) do | |
3903 | local PCHAR = gPlayers[v].Character | |
3904 | PCHAR.Humanoid.Health = PCHAR.Humanoid.Health - 25 | |
3905 | end | |
3906 | end) | |
3907 | ||
3908 | ADD_COMMAND('view','view [plr]',{}, | |
3909 | function(ARGS, SPEAKER) | |
3910 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3911 | for i,v in pairs(PLAYERS) do | |
3912 | local PCHAR = gPlayers[v].Character | |
3913 | gWorkspace.CurrentCamera.CameraSubject = PCHAR | |
3914 | end | |
3915 | end) | |
3916 | ||
3917 | ADD_COMMAND('unview','unview',{}, | |
3918 | function() | |
3919 | gWorkspace.CurrentCamera.CameraSubject = gPlayers.LocalPlayer.Character | |
3920 | end) | |
3921 | ||
3922 | ADD_COMMAND('nolimbs','nolimbs [plr]',{}, | |
3923 | function(ARGS, SPEAKER) | |
3924 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3925 | for i,v in pairs(PLAYERS) do | |
3926 | local PCHAR = gPlayers[v].Character | |
3927 | for i,v in pairs(PCHAR:GetChildren()) do | |
3928 | if v:IsA('Part') and v.Name ~= 'Head' and v.Name ~= 'Torso' and v.Name ~= 'HumanoidRootPart' then | |
3929 | v:destroy() | |
3930 | end | |
3931 | end | |
3932 | end | |
3933 | end) | |
3934 | ||
3935 | ADD_COMMAND('box','box [plr]',{}, | |
3936 | function(ARGS, SPEAKER) | |
3937 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3938 | for i,v in pairs(PLAYERS) do | |
3939 | local PCHAR = gPlayers[v].Character | |
3940 | local SB = Instance.new('SelectionBox', PCHAR) | |
3941 | SB.Adornee = SB.Parent | |
3942 | SB.Color = BrickColor.new('' .. (ARGS[2])) | |
3943 | end | |
3944 | end) | |
3945 | ||
3946 | ADD_COMMAND('unbox','nobox [plr]',{}, | |
3947 | function(ARGS, SPEAKER) | |
3948 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3949 | for i,v in pairs(PLAYERS) do | |
3950 | local PCHAR = gPlayers[v].Character | |
3951 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
3952 | if v:IsA('SelectionBox') then | |
3953 | v:destroy() | |
3954 | end | |
3955 | end | |
3956 | end | |
3957 | end) | |
3958 | ||
3959 | ADD_COMMAND('ghost','ghost [plr]',{}, | |
3960 | function(ARGS, SPEAKER) | |
3961 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3962 | for i,v in pairs(PLAYERS) do | |
3963 | local PCHAR = gPlayers[v].Character | |
3964 | for i,v in pairs(PCHAR:GetChildren()) do | |
3965 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
3966 | v.Transparency = 0.5 | |
3967 | end | |
3968 | if v:IsA('Hat') and v:FindFirstChild('Handle') then | |
3969 | v.Transparecy = 0.5 | |
3970 | end | |
3971 | if PCHAR.Head:FindFirstChild('face') then | |
3972 | PCHAR.face.Transparecy = 0.5 | |
3973 | end | |
3974 | end | |
3975 | end | |
3976 | end) | |
3977 | ||
3978 | ADD_COMMAND('sphere','sphere [plr]',{}, | |
3979 | function(ARGS, SPEAKER) | |
3980 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3981 | for i,v in pairs(PLAYERS) do | |
3982 | local PCHAR=gPlayers[v].Character | |
3983 | local SS = Instance.new('SelectionSphere', PCHAR) | |
3984 | SS.Adornee = SS.Parent | |
3985 | end | |
3986 | end) | |
3987 | ||
3988 | ADD_COMMAND('loadmap','loadmap [id]',{}, | |
3989 | function(ARGS, SPEAKER) | |
3990 | if ARGS[1] then | |
3991 | spawn(function() | |
3992 | gWorkspace.Terrain:Clear() | |
3993 | for i,v in pairs(gWorkspace:GetChildren()) do if not v:IsA('Camera') and not v:IsA('Terrain') then v:destroy() end end | |
3994 | wait() | |
3995 | local GO = game:GetObjects('http://www.roblox.com/asset/?id=' .. (ARGS[1]))[1] | |
3996 | GO.Parent = gWorkspace | |
3997 | GO:MakeJoints() | |
3998 | wait() | |
3999 | for i,v in pairs(gPlayers:GetPlayers()) do | |
4000 | local M = Instance.new('Model', gWorkspace) M.Name = 'respawn_seth' | |
4001 | local T = Instance.new('Part', M) T.Name = 'Torso' T.CanCollide = false T.Transparency = 1 | |
4002 | Instance.new('Humanoid', M) | |
4003 | v.Character = M | |
4004 | end | |
4005 | end) | |
4006 | end | |
4007 | end) | |
4008 | ||
4009 | ADD_COMMAND('sky','sky [id]',{}, | |
4010 | function(ARGS, SPEAKER) | |
4011 | if ARGS[1] then | |
4012 | for i,v in pairs(gLighting:GetChildren()) do if v:IsA('Sky') then v:destroy() end end | |
4013 | local SKIES = {'Bk', 'Dn', 'Ft', 'Lf', 'Rt', 'Up'} | |
4014 | local SKY = Instance.new('Sky', gLighting) | |
4015 | for i,v in pairs(SKIES) do | |
4016 | SKY['Skybox' .. v] = 'rbxassetid://' .. ARGS[1] - 1 | |
4017 | end | |
4018 | end | |
4019 | end) | |
4020 | ||
4021 | ADD_COMMAND('ambient','ambient [r] [g] [b]',{}, | |
4022 | function(ARGS, SPEAKER) | |
4023 | if ARGS[1] and ARGS[2] and ARGS[3] then | |
4024 | gLighting.Ambient = Color3.new(ARGS[1], ARGS[2], ARGS[3]) | |
4025 | end | |
4026 | end) | |
4027 | ||
4028 | ADD_COMMAND('jail','jail [plr]',{}, | |
4029 | function(ARGS, SPEAKER) | |
4030 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4031 | for i,v in pairs(PLAYERS) do | |
4032 | if FIND_IN_TABLE(JAILED, gPlayers[v].Name) then return end | |
4033 | table.insert(JAILED, gPlayers[v].Name) | |
4034 | local PCHAR = gPlayers[v].Character | |
4035 | local JAIL = DATA.other.JAIL:Clone() JAIL.Parent = gWorkspace JAIL:MoveTo(PCHAR.Torso.Position) JAIL.Name = 'JAIL_' .. gPlayers[v].Name | |
4036 | repeat wait() | |
4037 | PCHAR = gPlayers[v].Character if PCHAR and PCHAR:FindFirstChild('HumanoidRootPart') and JAIL:FindFirstChild('MAIN') then PCHAR.HumanoidRootPart.CFrame = JAIL.MAIN.CFrame end | |
4038 | until not FIND_IN_TABLE(JAILED, gPlayers[v].Name) | |
4039 | end | |
4040 | end) | |
4041 | ||
4042 | ADD_COMMAND('unjail','unjail [plr]',{}, | |
4043 | function(ARGS, SPEAKER) | |
4044 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4045 | for i,v in pairs(PLAYERS) do | |
4046 | for a,b in pairs(JAILED) do if b == gPlayers[v].Name then table.remove(JAILED, a) end end | |
4047 | if gWorkspace:FindFirstChild('JAIL_' .. gPlayers[v].Name) then gWorkspace['JAIL_' .. gPlayers[v].Name]:destroy() end | |
4048 | end | |
4049 | end) | |
4050 | ||
4051 | ADD_COMMAND('animation','animation [plr] [id]',{'anim'}, | |
4052 | function(ARGS, SPEAKER) | |
4053 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4054 | for i,v in pairs(PLAYERS) do | |
4055 | local ID = ARGS[2] | |
4056 | if ARGS[2] == 'climb' then ID = '180436334' end | |
4057 | if ARGS[2] == 'fall' then ID = '180436148' end | |
4058 | if ARGS[2] == 'jump' then ID = '125750702' end | |
4059 | if ARGS[2] == 'sit' then ID = '178130996' end | |
4060 | for a,b in pairs(gPlayers[v].Character.Animate:GetChildren()) do | |
4061 | if b:IsA('StringValue') then | |
4062 | for c,d in pairs(b:GetChildren()) do | |
4063 | if d:IsA('Animation') then | |
4064 | d.AnimationId = 'rbxassetid://' .. ID | |
4065 | end | |
4066 | end | |
4067 | end | |
4068 | end | |
4069 | end | |
4070 | end) | |
4071 | ||
4072 | ADD_COMMAND('fix','fix [plr]',{}, | |
4073 | function(ARGS, SPEAKER) | |
4074 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4075 | for i,v in pairs(PLAYERS) do | |
4076 | local PCHAR = gPlayers[v].Character | |
4077 | RESET_MODEL(PCHAR) | |
4078 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
4079 | end | |
4080 | end) | |
4081 | ||
4082 | ADD_COMMAND('creeper','creeper [plr]',{'crpr'}, | |
4083 | function(ARGS, SPEAKER) | |
4084 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4085 | for i,v in pairs(PLAYERS) do | |
4086 | CREEPER(gPlayers[v]) | |
4087 | end | |
4088 | end) | |
4089 | ||
4090 | ADD_COMMAND('uncreeper','uncreeper [plr]',{}, | |
4091 | function(ARGS, SPEAKER) | |
4092 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4093 | for i,v in pairs(PLAYERS) do | |
4094 | local PCHAR = gPlayers[v].Character | |
4095 | RESET_MODEL(PCHAR) | |
4096 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
4097 | end | |
4098 | end) | |
4099 | ||
4100 | ADD_COMMAND('shrek','shrek [plr]',{}, | |
4101 | function(ARGS, SPEAKER) | |
4102 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4103 | for i,v in pairs(PLAYERS) do | |
4104 | SHREK(gPlayers[v]) | |
4105 | end | |
4106 | end) | |
4107 | ||
4108 | ADD_COMMAND('unshrek','unshrek [plr]',{}, | |
4109 | function(ARGS, SPEAKER) | |
4110 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4111 | for i,v in pairs(PLAYERS) do | |
4112 | local PCHAR = gPlayers[v].Character | |
4113 | RESET_MODEL(PCHAR) | |
4114 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
4115 | end | |
4116 | end) | |
4117 | ||
4118 | local SPAM = false | |
4119 | ||
4120 | ADD_COMMAND('spam','spam [string]',{}, | |
4121 | function(ARGS, SPEAKER) | |
4122 | SPAM = true | |
4123 | spawn(function() | |
4124 | repeat wait() | |
4125 | gPlayers:Chat(GLS(false, 0)) | |
4126 | until not SPAM | |
4127 | end) | |
4128 | end) | |
4129 | ||
4130 | ADD_COMMAND('nospam','nospam',{}, | |
4131 | function(ARGS, SPEAKER) | |
4132 | SPAM = false | |
4133 | end) | |
4134 | ||
4135 | ADD_COMMAND('nuke','nuke [plr]',{}, | |
4136 | function(ARGS, SPEAKER) | |
4137 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4138 | for i,v in pairs(PLAYERS) do | |
4139 | local PCHAR = gPlayers[v].Character | |
4140 | spawn(function() | |
4141 | if gPlayers[v] and PCHAR and PCHAR:FindFirstChild('Torso') then | |
4142 | local N = Instance.new('Part', gWorkspace) | |
4143 | N.Name = 'nuke_seth' | |
4144 | N.Anchored = true | |
4145 | N.CanCollide = false | |
4146 | N.FormFactor = 'Symmetric' | |
4147 | N.Shape = 'Ball' | |
4148 | N.Size = Vector3.new(1, 1, 1) | |
4149 | N.BrickColor = BrickColor.new('New Yeller') | |
4150 | N.Transparency = 0.5 | |
4151 | N.Reflectance = 0.2 | |
4152 | N.TopSurface = 0 | |
4153 | N.BottomSurface = 0 | |
4154 | N.Touched:connect(function (hit) | |
4155 | if hit and hit.Parent then | |
4156 | local boom = Instance.new('Explosion', gWorkspace) | |
4157 | boom.Position = hit.Position | |
4158 | boom.BlastRadius = 11 | |
4159 | boom.BlastPressure = math.huge | |
4160 | end | |
4161 | end) | |
4162 | local CF = PCHAR.Torso.CFrame | |
4163 | N.CFrame = CF | |
4164 | for i = 0, 111 do | |
4165 | N.Size = N.Size + Vector3.new(5, 5, 5) | |
4166 | N.CFrame = CF | |
4167 | wait(1 / 44) | |
4168 | end | |
4169 | N:destroy() | |
4170 | end | |
4171 | end) | |
4172 | end | |
4173 | end) | |
4174 | ||
4175 | ADD_COMMAND('unnuke','nonuke',{}, | |
4176 | function(ARGS, SPEAKER) | |
4177 | for i,v in pairs(gWorkspace:GetChildren()) do | |
4178 | if v.Name == 'nuke_seth' then | |
4179 | v:destroy() | |
4180 | end | |
4181 | end | |
4182 | end) | |
4183 | ||
4184 | ADD_COMMAND('infect','infect [plr]',{}, | |
4185 | function(ARGS, SPEAKER) | |
4186 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4187 | for i,v in pairs(PLAYERS) do | |
4188 | INFECT(gPlayers[v]) | |
4189 | end | |
4190 | end) | |
4191 | ||
4192 | ADD_COMMAND('uninfect','uninfect [plr]',{}, | |
4193 | function(ARGS, SPEAKER) | |
4194 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4195 | for i,v in pairs(PLAYERS) do | |
4196 | local PCHAR = gPlayers[v].Character | |
4197 | RESET_MODEL(PCHAR) | |
4198 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
4199 | end | |
4200 | end) | |
4201 | ||
4202 | ADD_COMMAND('duck','duck [plr]',{}, | |
4203 | function(ARGS, SPEAKER) | |
4204 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4205 | for i,v in pairs(PLAYERS) do | |
4206 | DUCK(gPlayers[v]) | |
4207 | end | |
4208 | end) | |
4209 | ||
4210 | ADD_COMMAND('unduck','unduck [plr]',{}, | |
4211 | function(ARGS, SPEAKER) | |
4212 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4213 | for i,v in pairs(PLAYERS) do | |
4214 | local PCHAR = gPlayers[v].Character | |
4215 | RESET_MODEL(PCHAR) | |
4216 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
4217 | end | |
4218 | end) | |
4219 | ||
4220 | ADD_COMMAND('disable','disable [plr]',{}, | |
4221 | function(ARGS, SPEAKER) | |
4222 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4223 | for i,v in pairs(PLAYERS) do | |
4224 | local PCHAR = gPlayers[v].Character | |
4225 | if PCHAR:FindFirstChild('Humanoid') then | |
4226 | PCHAR.Humanoid.Name = 'HUMANOID_' .. gPlayers[v].Name | |
4227 | local humanoid = PCHAR['HUMANOID_' .. gPlayers[v].Name] | |
4228 | humanoid.Parent = DATA.humanoids | |
4229 | end | |
4230 | end | |
4231 | end) | |
4232 | ||
4233 | ADD_COMMAND('enable','enable [plr]',{}, | |
4234 | function(ARGS, SPEAKER) | |
4235 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4236 | for i,v in pairs(PLAYERS) do | |
4237 | local PCHAR = gPlayers[v].Character | |
4238 | if PCHAR:FindFirstChild('Humanoid') then | |
4239 | return | |
4240 | else | |
4241 | if DATA.humanoids:FindFirstChild('HUMANOID_' .. gPlayers[v].Name) then | |
4242 | local humanoid = DATA.humanoids['HUMANOID_' .. gPlayers[v].Name] humanoid.Parent = PCHAR humanoid.Name = 'Humanoid' | |
4243 | end | |
4244 | end | |
4245 | end | |
4246 | end) | |
4247 | ||
4248 | ADD_COMMAND('size','size [plr] [int]',{}, | |
4249 | function(ARGS, SPEAKER) | |
4250 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4251 | for i,v in pairs(PLAYERS) do | |
4252 | SCALE(gPlayers[v].Character, ARGS[2]) | |
4253 | end | |
4254 | end) | |
4255 | ||
4256 | ADD_COMMAND('clone','clone [plr]',{}, | |
4257 | function(ARGS, SPEAKER) | |
4258 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4259 | for i,v in pairs(PLAYERS) do | |
4260 | local PCHAR = gPlayers[v].Character PCHAR.Archivable = true | |
4261 | local C = PCHAR:Clone() C.Parent = gWorkspace C:MoveTo(PCHAR:GetModelCFrame().p) C:MakeJoints() | |
4262 | PCHAR.Archivable = false | |
4263 | end | |
4264 | end) | |
4265 | ||
4266 | ADD_COMMAND('spin','spin [plr]',{}, | |
4267 | function(ARGS, SPEAKER) | |
4268 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4269 | for i,v in pairs(PLAYERS) do | |
4270 | local PCHAR = gPlayers[v].Character | |
4271 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
4272 | if v.Name == 'SPIN' then | |
4273 | v:destroy() | |
4274 | end | |
4275 | end | |
4276 | local T = PCHAR.Torso | |
4277 | local BG = Instance.new('BodyGyro', T) BG.Name = 'SPIN' BG.maxTorque = Vector3.new(0, math.huge, 0) BG.P = 11111 BG.cframe = T.CFrame | |
4278 | spawn(function() | |
4279 | repeat wait(1/44) | |
4280 | BG.CFrame = BG.CFrame * CFrame.Angles(0,math.rad(30),0) | |
4281 | until not BG or BG.Parent ~= T | |
4282 | end) | |
4283 | end | |
4284 | end) | |
4285 | ||
4286 | ADD_COMMAND('unspin','unspin [plr]',{}, | |
4287 | function(ARGS, SPEAKER) | |
4288 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4289 | for i,v in pairs(PLAYERS) do | |
4290 | local PCHAR = gPlayers[v].Character | |
4291 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
4292 | if v.Name == 'SPIN' then | |
4293 | v:destroy() | |
4294 | end | |
4295 | end | |
4296 | end | |
4297 | end) | |
4298 | ||
4299 | ADD_COMMAND('dog','dog [plr]',{}, | |
4300 | function(ARGS, SPEAKER) | |
4301 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4302 | for i,v in pairs(PLAYERS) do | |
4303 | DOG(gPlayers[v]) | |
4304 | end | |
4305 | end) | |
4306 | ||
4307 | ADD_COMMAND('undog','undog [plr]',{}, | |
4308 | function(ARGS, SPEAKER) | |
4309 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4310 | for i,v in pairs(PLAYERS) do | |
4311 | local PCHAR = gPlayers[v].Character | |
4312 | RESET_MODEL(PCHAR) | |
4313 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
4314 | end | |
4315 | end) | |
4316 | ||
4317 | ADD_COMMAND('loopheal','loopheal [plr]',{'lheal'}, | |
4318 | function(ARGS, SPEAKER) | |
4319 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4320 | for i,v in pairs(PLAYERS) do | |
4321 | local PCHAR = gPlayers[v].Character | |
4322 | if being_looped:FindFirstChild(gPlayers[v].Name .. '_heal') then | |
4323 | being_looped[gPlayers[v].Name .. '_heal']:destroy() | |
4324 | else | |
4325 | local loopheal = Instance.new('StringValue', being_looped) | |
4326 | loopheal.Name = gPlayers[v].Name .. '_heal' | |
4327 | game:GetService('RunService').RenderStepped:connect(function() | |
4328 | if being_looped:FindFirstChild(gPlayers[v].Name .. '_heal') then | |
4329 | PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
4330 | end | |
4331 | end) | |
4332 | end | |
4333 | end | |
4334 | end) | |
4335 | ||
4336 | ADD_COMMAND('unloopheal','unloopheal [plr]',{'unlheal'}, | |
4337 | function(ARGS, SPEAKER) | |
4338 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4339 | for i,v in pairs(PLAYERS) do | |
4340 | local PCHAR = gPlayers[v].Character | |
4341 | if being_looped:FindFirstChild(gPlayers[v].Name .. '_heal') then | |
4342 | being_looped[gPlayers[v].Name .. '_heal']:destroy() | |
4343 | end | |
4344 | end | |
4345 | end) | |
4346 | ||
4347 | ADD_COMMAND('fling','fling [plr]',{}, | |
4348 | function(ARGS, SPEAKER) | |
4349 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4350 | for i,v in pairs(PLAYERS) do | |
4351 | local PCHAR = gPlayers[v].Character | |
4352 | if PCHAR:FindFirstChild('Humanoid') then | |
4353 | local X | |
4354 | local Z | |
4355 | repeat | |
4356 | X = math.random(-9999, 9999) | |
4357 | until math.abs(X) >= 5555 | |
4358 | repeat | |
4359 | Z = math.random(-9999, 9999) | |
4360 | until math.abs(Z) >= 5555 | |
4361 | PCHAR.Torso.Velocity = Vector3.new(0, 0, 0) | |
4362 | local BF = Instance.new('BodyForce', PCHAR.Torso) BF.force = Vector3.new(X * 4, 9999 * 5, Z * 4) | |
4363 | end | |
4364 | end | |
4365 | end) | |
4366 | ||
4367 | ADD_COMMAND('ayylmao','ayylmao [plr]',{}, | |
4368 | function(ARGS, SPEAKER) | |
4369 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4370 | for i,v in pairs(PLAYERS) do | |
4371 | AYYLMAO(gPlayers[v]) | |
4372 | end | |
4373 | end) | |
4374 | ||
4375 | ADD_COMMAND('nograv','nograv [plr]',{}, | |
4376 | function(ARGS, SPEAKER) | |
4377 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4378 | for i,v in pairs(PLAYERS) do | |
4379 | local PCHAR = gPlayers[v].Character | |
4380 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
4381 | if v.Name == 'nograv' then | |
4382 | v:destroy() | |
4383 | end | |
4384 | end | |
4385 | local BF = Instance.new('BodyForce', PCHAR.Torso) | |
4386 | BF.Name = 'nograv_seth' | |
4387 | BF.Force = Vector3.new(0, 2500, 0) | |
4388 | end | |
4389 | end) | |
4390 | ||
4391 | ADD_COMMAND('grav','grav [plr]',{}, | |
4392 | function(ARGS, SPEAKER) | |
4393 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4394 | for i,v in pairs(PLAYERS) do | |
4395 | local PCHAR = gPlayers[v].Character | |
4396 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
4397 | if v.Name == 'nograv_seth' then | |
4398 | v:destroy() | |
4399 | end | |
4400 | end | |
4401 | end | |
4402 | end) | |
4403 | ||
4404 | ADD_COMMAND('cape','cape [brick color]',{}, | |
4405 | function(ARGS, SPEAKER) | |
4406 | spawn(function() | |
4407 | if LP.Character:FindFirstChild('Cape') then | |
4408 | LP.Character.Cape:destroy() | |
4409 | end | |
4410 | if not ARGS[1] then | |
4411 | ARGS[1] = 'Deep blue' | |
4412 | end | |
4413 | CAPE(GLS(false, 1)) | |
4414 | end) | |
4415 | end) | |
4416 | ||
4417 | ADD_COMMAND('uncape','uncape',{}, | |
4418 | function(ARGS, SPEAKER) | |
4419 | if LP.Character:FindFirstChild('cape_seth') then | |
4420 | LP.Character.cape_seth:destroy() | |
4421 | end | |
4422 | end) | |
4423 | ||
4424 | ADD_COMMAND('paper','paper [plr]',{}, | |
4425 | function(ARGS, SPEAKER) | |
4426 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4427 | for i,v in pairs(PLAYERS) do | |
4428 | local PCHAR = gPlayers[v].Character | |
4429 | for i,v in pairs(PCHAR:GetChildren()) do | |
4430 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
4431 | DATA.other.Paper:Clone().Parent = v | |
4432 | end | |
4433 | end | |
4434 | end | |
4435 | end) | |
4436 | ||
4437 | ADD_COMMAND('punish','punish [plr]',{}, | |
4438 | function(ARGS, SPEAKER) | |
4439 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4440 | for i,v in pairs(PLAYERS) do | |
4441 | local PCHAR = gPlayers[v].Character | |
4442 | PCHAR.Parent = gLighting | |
4443 | end | |
4444 | end) | |
4445 | ||
4446 | ADD_COMMAND('unpunish','unpunish [plr]',{}, | |
4447 | function(ARGS, SPEAKER) | |
4448 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4449 | for i,v in pairs(PLAYERS) do | |
4450 | local PCHAR = gLighting['' .. gPlayers[v].Name] | |
4451 | PCHAR.Parent = gWorkspace | |
4452 | end | |
4453 | end) | |
4454 | ||
4455 | local DISCO = false | |
4456 | ||
4457 | ADD_COMMAND('disco','disco',{}, | |
4458 | function(ARGS, SPEAKER) | |
4459 | DISCO = true | |
4460 | spawn(function() | |
4461 | repeat wait(0.5) gLighting.Ambient = Color3.new(math.random(), math.random(), math.random()) until not DISCO | |
4462 | end) | |
4463 | end) | |
4464 | ||
4465 | ADD_COMMAND('undisco','undisco',{}, | |
4466 | function(ARGS, SPEAKER) | |
4467 | DISCO = false | |
4468 | end) | |
4469 | ||
4470 | ADD_COMMAND('team','team [plr] [team]',{}, | |
4471 | function(ARGS, SPEAKER) | |
4472 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4473 | for i,v in pairs(PLAYERS) do | |
4474 | for a,b in pairs(game.Teams:GetChildren()) do | |
4475 | if string.lower(b.Name) == GLS(true, 1) then | |
4476 | gPlayers[v].Team = b | |
4477 | end | |
4478 | end | |
4479 | end | |
4480 | end) | |
4481 | ||
4482 | ADD_COMMAND('jp','jp [plr] [int]',{}, | |
4483 | function(ARGS, SPEAKER) | |
4484 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4485 | for i,v in pairs(PLAYERS) do | |
4486 | local PCHAR = gPlayers[v].Character | |
4487 | if PCHAR:FindFirstChild('Humanoid') then PCHAR.Humanoid.JumpPower = ARGS[2] end | |
4488 | end | |
4489 | end) | |
4490 | ||
4491 | ADD_COMMAND('vest','vest',{}, | |
4492 | function(ARGS, SPEAKER) | |
4493 | EXECUTE(DATA.scripts.vest_seth.Source) | |
4494 | end) | |
4495 | ||
4496 | ADD_COMMAND('smallhead','smallhead [plr]',{'shead'}, | |
4497 | function(ARGS, SPEAKER) | |
4498 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4499 | for i,v in pairs(PLAYERS) do | |
4500 | local PCHAR = gPlayers[v].Character | |
4501 | PCHAR.Head.Mesh.Scale = Vector3.new(0.5, 0.5, 0.5) | |
4502 | PCHAR.Head.Mesh.Offset = Vector3.new(0, -0.25, 0) | |
4503 | end | |
4504 | end) | |
4505 | ||
4506 | ADD_COMMAND('bighead','bighead [plr]',{'bhead'}, | |
4507 | function(ARGS, SPEAKER) | |
4508 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4509 | for i,v in pairs(PLAYERS) do | |
4510 | local PCHAR = gPlayers[v].Character | |
4511 | PCHAR.Head.Mesh.Scale = Vector3.new(2.25, 2.25, 2.25) | |
4512 | PCHAR.Head.Mesh.Offset = Vector3.new(0, 0.5, 0) | |
4513 | end | |
4514 | end) | |
4515 | ||
4516 | ADD_COMMAND('headsize','headsize [plr] [int]',{'hsize'}, | |
4517 | function(ARGS, SPEAKER) | |
4518 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4519 | for i,v in pairs(PLAYERS) do | |
4520 | local PCHAR = gPlayers[v].Character | |
4521 | if ARGS[2] == 1 then | |
4522 | PCHAR.Head.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25) | |
4523 | PCHAR.Head.Mesh.Offset = Vector3.new(0, 0, 0) | |
4524 | else | |
4525 | PCHAR.Head.Mesh.Scale = ARGS[2] * Vector3.new(1.25, 1.25, 1.25) | |
4526 | end | |
4527 | end | |
4528 | end) | |
4529 | ||
4530 | ADD_COMMAND('fixhead','fixhead [plr]',{'fhead'}, | |
4531 | function(ARGS, SPEAKER) | |
4532 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4533 | for i,v in pairs(PLAYERS) do | |
4534 | local PCHAR = gPlayers[v].Character | |
4535 | PCHAR.Head.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25) | |
4536 | PCHAR.Head.Mesh.Offset = Vector3.new(0, 0, 0) | |
4537 | PCHAR.Head.Transparency = 0 | |
4538 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 0 end | |
4539 | end | |
4540 | end) | |
4541 | ||
4542 | ADD_COMMAND('removehead','removehead [plr]',{'rhead'}, | |
4543 | function(ARGS, SPEAKER) | |
4544 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4545 | for i,v in pairs(PLAYERS) do | |
4546 | local PCHAR = gPlayers[v].Character | |
4547 | PCHAR.Head.Transparency = 1 | |
4548 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 1 end | |
4549 | end | |
4550 | end) | |
4551 | ||
4552 | ADD_COMMAND('stealtools','stealtools [plr]',{'stools'}, | |
4553 | function(ARGS, SPEAKER) | |
4554 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4555 | for i,v in pairs(PLAYERS) do | |
4556 | for i,v in pairs(gPlayers[v].Backpack:GetChildren()) do | |
4557 | if v:IsA('Tool') or v:IsA('HopperBin') then | |
4558 | v.Parent = LP.Backpack | |
4559 | end | |
4560 | end | |
4561 | end | |
4562 | end) | |
4563 | ||
4564 | ADD_COMMAND('removetools','removetools [plr]',{'rtools'}, | |
4565 | function(ARGS, SPEAKER) | |
4566 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4567 | for i,v in pairs(PLAYERS) do | |
4568 | for i,v in pairs(gPlayers[v].Backpack:GetChildren()) do | |
4569 | if v:IsA('Tool') or v:IsA('HopperBin') then | |
4570 | v:destroy() | |
4571 | end | |
4572 | end | |
4573 | end | |
4574 | end) | |
4575 | ||
4576 | ADD_COMMAND('clonetools','clonetools [plr]',{'ctools'}, | |
4577 | function(ARGS, SPEAKER) | |
4578 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4579 | for i,v in pairs(PLAYERS) do | |
4580 | for i,v in pairs(gPlayers[v].Backpack:GetChildren()) do | |
4581 | if v:IsA('Tool') or v:IsA('HopperBin') then | |
4582 | v:Clone().Parent = LP.Backpack | |
4583 | end | |
4584 | end | |
4585 | end | |
4586 | end) | |
4587 | ||
4588 | ADD_COMMAND('dong','dong [plr]',{}, | |
4589 | function(ARGS, SPEAKER) | |
4590 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4591 | for i,v in pairs(PLAYERS) do | |
4592 | local PCHAR = gPlayers[v].Character | |
4593 | if ARGS[2] == 'black' then | |
4594 | CREATE_DONG(gPlayers[v], 'Brown') | |
4595 | end | |
4596 | if ARGS[2] == 'asian' then | |
4597 | CREATE_DONG(gPlayers[v], 'Cool yellow') | |
4598 | end | |
4599 | if ARGS[2] == 'alien' then | |
4600 | CREATE_DONG(gPlayers[v], 'Lime green') | |
4601 | end | |
4602 | if ARGS[2] == 'frozen' then | |
4603 | CREATE_DONG(gPlayers[v], 1019) | |
4604 | end | |
4605 | if not ARGS[2] then | |
4606 | CREATE_DONG(gPlayers[v], 'Pastel brown') | |
4607 | end | |
4608 | end | |
4609 | end) | |
4610 | ||
4611 | ADD_COMMAND('particles','particles [plr] [id]',{'pts'}, | |
4612 | function(ARGS, SPEAKER) | |
4613 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4614 | for i,v in pairs(PLAYERS) do | |
4615 | local PCHAR = gPlayers[v].Character | |
4616 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
4617 | if v:IsA('ParticleEmitter') then | |
4618 | v:destroy() | |
4619 | end | |
4620 | end | |
4621 | wait() | |
4622 | Instance.new('ParticleEmitter', PCHAR.Torso).Texture = 'http://www.roblox.com/asset/?id=' .. ARGS[2] - 1 | |
4623 | end | |
4624 | end) | |
4625 | ||
4626 | ADD_COMMAND('rocket','rocket [plr]',{}, | |
4627 | function(ARGS, SPEAKER) | |
4628 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4629 | for i,v in pairs(PLAYERS) do | |
4630 | local PCHAR = gPlayers[v].Character | |
4631 | spawn(function() | |
4632 | local rocket = DATA.other.rocket_seth:Clone() | |
4633 | rocket.Parent = gWorkspace | |
4634 | local weld = Instance.new('Weld', rocket) | |
4635 | weld.Part0 = weld.Parent | |
4636 | weld.Part1 = PCHAR.Torso | |
4637 | weld.C1 = CFrame.new(0, 0.5, 1) | |
4638 | rocket.force.Force = Vector3.new(0, 15000, 0) | |
4639 | wait(0.5) | |
4640 | PCHAR.HumanoidRootPart.CFrame = PCHAR.HumanoidRootPart.CFrame * CFrame.new(0, 5, 0) | |
4641 | wait(5) | |
4642 | Instance.new('Explosion', rocket).Position = rocket.Position | |
4643 | wait(1) | |
4644 | rocket:destroy() | |
4645 | end) | |
4646 | end | |
4647 | end) | |
4648 | ||
4649 | ADD_COMMAND('blackify','blackify [plr]',{}, | |
4650 | function(ARGS, SPEAKER) | |
4651 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4652 | for i,v in pairs(PLAYERS) do | |
4653 | COLOR(gPlayers[v], 'Really black') | |
4654 | end | |
4655 | end) | |
4656 | ||
4657 | ADD_COMMAND('whitify','whitify [plr]',{}, | |
4658 | function(ARGS, SPEAKER) | |
4659 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4660 | for i,v in pairs(PLAYERS) do | |
4661 | COLOR(gPlayers[v], 'White') | |
4662 | end | |
4663 | end) | |
4664 | ||
4665 | ADD_COMMAND('color','color [plr]',{}, | |
4666 | function(ARGS, SPEAKER) | |
4667 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4668 | for i,v in pairs(PLAYERS) do | |
4669 | COLOR(gPlayers[v], GLS(false, 1)) | |
4670 | end | |
4671 | end) | |
4672 | ||
4673 | ADD_COMMAND('telekinesis','telekinesis',{'tk'}, | |
4674 | function(ARGS, SPEAKER) | |
4675 | EXECUTE(DATA.scripts.tele_seth.Source) | |
4676 | end) | |
4677 | ||
4678 | ADD_COMMAND('sword','sword [plr]',{}, | |
4679 | function(ARGS, SPEAKER) | |
4680 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4681 | for i,v in pairs(PLAYERS) do | |
4682 | ECOMMAND('gear ' .. gPlayers[v].Name .. ' 125013769') | |
4683 | end | |
4684 | end) | |
4685 | ||
4686 | ADD_COMMAND('change','change [plr] [stat] [int/string]',{}, | |
4687 | function(ARGS, SPEAKER) | |
4688 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4689 | for i,v in pairs(PLAYERS) do | |
4690 | if gPlayers[v]:FindFirstChild('leaderstats') then | |
4691 | for i,v in pairs(gPlayers[v].leaderstats:GetChildren()) do | |
4692 | if string.lower(v.Name) == string.lower(ARGS[2]) and v:IsA('IntValue') or v:IsA('NumberValue') then | |
4693 | if ARGS[3] then v.Value = tonumber(ARGS[3]) end | |
4694 | elseif string.lower(v.Name) == string.lower(ARGS[2]) and v:IsA('StringValue') then | |
4695 | v.Value = GLS(false, 2) | |
4696 | end | |
4697 | end | |
4698 | end | |
4699 | end | |
4700 | end) | |
4701 | ||
4702 | ADD_COMMAND('bait','bait',{}, | |
4703 | function(ARGS, SPEAKER) | |
4704 | spawn(function() | |
4705 | local M = Instance.new('Model', gWorkspace) M.Name = 'Touch For Admin!' | |
4706 | local P = Instance.new('Part', M) P.Name = 'Head' P.Position = SPEAKER.Character.Head.Position P.BrickColor = BrickColor.new('Pink') P.Material = 'Neon' | |
4707 | local H = Instance.new('Humanoid', M) | |
4708 | P.Touched:connect(function(RIP) if RIP.Parent.Name ~= SPEAKER.Name or RIP.Parent.Name ~= LP.Name then if RIP.Parent:FindFirstChild('Humanoid') then RIP.Parent.Humanoid:destroy() end end end) | |
4709 | end) | |
4710 | end) | |
4711 | ||
4712 | ADD_COMMAND('pm','pm [plr] [string]',{}, | |
4713 | function(ARGS, SPEAKER) | |
4714 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4715 | for i,v in pairs(PLAYERS) do | |
4716 | if not DATA.messages_hints:FindFirstChild(gPlayers[v].Name .. '_MSG_HINT') then | |
4717 | spawn(function() | |
4718 | MESSAGE_HINT('MESSAGE', 'PM System', GLS(false, 1), gPlayers[v]) | |
4719 | end) | |
4720 | end | |
4721 | end | |
4722 | end) | |
4723 | ||
4724 | ADD_COMMAND('message','message [string]',{'m'}, | |
4725 | function(ARGS, SPEAKER) | |
4726 | for i,v in pairs(gPlayers:GetPlayers()) do | |
4727 | if not DATA.messages_hints:FindFirstChild(v.Name .. '_MSG_HINT') then | |
4728 | spawn(function() | |
4729 | MESSAGE_HINT('MESSAGE', 'Global Message System', GLS(false, 0), v) | |
4730 | end) | |
4731 | end | |
4732 | end | |
4733 | end) | |
4734 | ||
4735 | ADD_COMMAND('hint','hint [string]',{'h'}, | |
4736 | function(ARGS, SPEAKER) | |
4737 | for i,v in pairs(gPlayers:GetPlayers()) do | |
4738 | if not DATA.messages_hints:FindFirstChild(v.Name .. '_MSG_HINT') then | |
4739 | spawn(function() | |
4740 | MESSAGE_HINT('HINT', '', GLS(false, 0), v) | |
4741 | end) | |
4742 | end | |
4743 | end | |
4744 | end) | |
4745 | ||
4746 | ADD_COMMAND('naked','naked [plr]',{}, | |
4747 | function(ARGS, SPEAKER) | |
4748 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4749 | for i,v in pairs(PLAYERS) do | |
4750 | local PCHAR = gPlayers[v].Character | |
4751 | for i,v in pairs(PCHAR:GetChildren()) do | |
4752 | if v:IsA('Hat') or v:IsA('Shirt') or v:IsA('Pants') or v:IsA('ShirtGraphic') then | |
4753 | v:destroy() | |
4754 | end | |
4755 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
4756 | if v:IsA('Decal') then | |
4757 | v:destroy() | |
4758 | end | |
4759 | end | |
4760 | end | |
4761 | end | |
4762 | end) | |
4763 | ||
4764 | ADD_COMMAND('decalspam','decalspam [decal]',{'dspam'}, | |
4765 | function(ARGS, SPEAKER) | |
4766 | if ARGS[1] then | |
4767 | DECALSPAM(gWorkspace, ARGS[1]) | |
4768 | end | |
4769 | end) | |
4770 | ||
4771 | ADD_COMMAND('undecalspam','undecalspam',{'undspam'}, | |
4772 | function(ARGS, SPEAKER) | |
4773 | if ARGS[1] then | |
4774 | UNDECALSPAM(gWorkspace) | |
4775 | end | |
4776 | end) | |
4777 | ||
4778 | ADD_COMMAND('bang','bang [plr]',{'rape'}, | |
4779 | function(ARGS, SPEAKER) | |
4780 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4781 | for i,v in pairs(PLAYERS) do | |
4782 | BANG(gPlayers[v].Name) | |
4783 | end | |
4784 | end) | |
4785 | ||
4786 | ADD_COMMAND('lag','lag [plr]',{}, | |
4787 | function(ARGS, SPEAKER) | |
4788 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4789 | for i,v in pairs(PLAYERS) do | |
4790 | LAG(gPlayers[v]) | |
4791 | end | |
4792 | end) | |
4793 | ||
4794 | ADD_COMMAND('respawn','respawn [plr]',{}, | |
4795 | function(ARGS, SPEAKER) | |
4796 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4797 | for i,v in pairs(PLAYERS) do | |
4798 | local M = Instance.new('Model', gWorkspace) M.Name = 'respawn_seth' | |
4799 | local T = Instance.new('Part', M) T.Name = 'Torso' T.CanCollide = false T.Transparency = 1 | |
4800 | Instance.new('Humanoid', M) | |
4801 | gPlayers[v].Character = M | |
4802 | end | |
4803 | end) | |
4804 | ||
4805 | ADD_COMMAND('face','face [plr] [decal]',{}, | |
4806 | function(ARGS, SPEAKER) | |
4807 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4808 | for i,v in pairs(PLAYERS) do | |
4809 | local PCHAR = gPlayers[v].Character | |
4810 | for i,v in pairs(PCHAR.Head:GetChildren()) do if v:IsA('Decal') then v:destroy() end end | |
4811 | local F = Instance.new('Decal', PCHAR.Head) F.Name = 'face' F.Texture = 'rbxassetid://' .. ARGS[2] - 1 | |
4812 | end | |
4813 | end) | |
4814 | ||
4815 | ADD_COMMAND('shirt','shirt [plr] [decal]',{}, | |
4816 | function(ARGS, SPEAKER) | |
4817 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4818 | for i,v in pairs(PLAYERS) do | |
4819 | local PCHAR = gPlayers[v].Character | |
4820 | for i,v in pairs(PCHAR:GetChildren()) do if v:IsA('Shirt') then v:destroy() end end | |
4821 | local S = Instance.new('Shirt', PCHAR) S.Name = 'Shirt' S.ShirtTemplate = 'rbxassetid://' .. ARGS[2] - 1 | |
4822 | end | |
4823 | end) | |
4824 | ||
4825 | ADD_COMMAND('pants','pants [plr] [decal]',{}, | |
4826 | function(ARGS, SPEAKER) | |
4827 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4828 | for i,v in pairs(PLAYERS) do | |
4829 | local PCHAR = gPlayers[v].Character | |
4830 | for i,v in pairs(PCHAR:GetChildren()) do if v:IsA('Pants') then v:destroy() end end | |
4831 | local P = Instance.new('Pants', PCHAR) P.Name = 'Shirt' P.PantsTemplate = 'rbxassetid://' .. ARGS[2] - 1 | |
4832 | end | |
4833 | end) | |
4834 | ||
4835 | ADD_COMMAND('longneck','longneck [plr]',{'lneck', 'giraffe'}, | |
4836 | function(ARGS, SPEAKER) | |
4837 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4838 | for i,v in pairs(PLAYERS) do | |
4839 | local PCHAR = gPlayers[v].Character | |
4840 | RESET_MODEL(PCHAR) | |
4841 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
4842 | for i,v in pairs(PCHAR:GetChildren()) do if v:IsA('Hat') then v.Handle.Mesh.Offset = Vector3.new(0, 5, 0) end end | |
4843 | if PCHAR.Head:FindFirstChild('Mesh') then PCHAR.Head.Mesh.Offset = Vector3.new(0, 5, 0) end | |
4844 | local G = Instance.new('Part', PCHAR) G.Name = 'giraffe_seth' G.BrickColor = PCHAR.Head.BrickColor G.Size = Vector3.new(2, 1, 1) | |
4845 | local SM = Instance.new('SpecialMesh', G) SM.Scale = Vector3.new(1.25, 5, 1.25) SM.Offset = Vector3.new(0, 2, 0) | |
4846 | local W = Instance.new('Weld', G) W.Part0 = PCHAR.Head W.Part1 = G | |
4847 | end | |
4848 | end) | |
4849 | ||
4850 | ADD_COMMAND('stealchar','stealchar [plr]',{'schar'}, | |
4851 | function(ARGS, SPEAKER) | |
4852 | local PLAYERS1, PLAYERS2 = GET_PLAYER(ARGS[1]) | |
4853 | for i,v in pairs(PLAYERS1) do | |
4854 | RESET_MODEL(SPEAKER.Character) UPDATE_MODEL(SPEAKER.Character, gPlayers[v].Name) | |
4855 | end | |
4856 | end) | |
4857 | ||
4858 | ADD_COMMAND('baseplate','baseplate',{'bp'}, | |
4859 | function(ARGS, SPEAKER) | |
4860 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Model') and v.Name == 'baseplate_seth' then v:destroy() end end | |
4861 | local BP = Instance.new('Part', gWorkspace) BP.Name = 'baseplate_seth' BP.Anchored = true BP.BrickColor = BrickColor.new('Bright green') BP.Size = Vector3.new(2048, 5, 2048) BP.Position = Vector3.new(0, 0, 0) | |
4862 | end) | |
4863 | ||
4864 | ADD_COMMAND('norotate','norotate [plr]',{'nrt'}, | |
4865 | function(ARGS, SPEAKER) | |
4866 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4867 | for i,v in pairs(PLAYERS) do | |
4868 | local PCHAR = gPlayers[v].Character | |
4869 | if PCHAR:FindFirstChild('Humanoid') then PCHAR.Humanoid.AutoRotate = false end | |
4870 | end | |
4871 | end) | |
4872 | ||
4873 | ADD_COMMAND('rotate','rotate [plr]',{'rt'}, | |
4874 | function(ARGS, SPEAKER) | |
4875 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4876 | for i,v in pairs(PLAYERS) do | |
4877 | local PCHAR = gPlayers[v].Character | |
4878 | if PCHAR:FindFirstChild('Humanoid') then PCHAR.Humanoid.AutoRotate = true end | |
4879 | end | |
4880 | end) | |
4881 | ||
4882 | ADD_COMMAND('admin','admin [plr]',{}, | |
4883 | function(ARGS, SPEAKER) | |
4884 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4885 | for i,v in pairs(PLAYERS) do | |
4886 | if not CHECK_ADMIN(gPlayers[v]) then | |
4887 | table.insert(ADMINS, gPlayers[v].userId) | |
4888 | spawn(function() | |
4889 | game.Chat:Chat(gPlayers[v].Character.Head, printStuff .. 'You\'re now an admin!') | |
4890 | wait(3) | |
4891 | game.Chat:Chat(gPlayers[v].Character.Head, printStuff .. 'Give me a try! | ' .. C_PREFIX .. 'ff me') | |
4892 | end) | |
4893 | end | |
4894 | end | |
4895 | end) | |
4896 | ||
4897 | ADD_COMMAND('unadmin','unadmin [plr]',{}, | |
4898 | function(ARGS, SPEAKER) | |
4899 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4900 | for i,v in pairs(PLAYERS) do | |
4901 | if CHECK_ADMIN(gPlayers[v]) then | |
4902 | if FIND_IN_TABLE(ADMINS, gPlayers[v].userId) then | |
4903 | table.remove(ADMINS, GET_IN_TABLE(ADMINS, gPlayers[v].userId)) | |
4904 | game.Chat:Chat(gPlayers[v].Character.Head, printStuff .. 'You\'re no longer an admin.') | |
4905 | end | |
4906 | end | |
4907 | end | |
4908 | end) | |
4909 | ||
4910 | ADD_COMMAND('minzoom','minzoom [plr] [int]',{'minz'}, | |
4911 | function(ARGS, SPEAKER) | |
4912 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4913 | for i,v in pairs(PLAYERS) do | |
4914 | gPlayers[v].CameraMinZoomDistance = ARGS[2] | |
4915 | end | |
4916 | end) | |
4917 | ||
4918 | ADD_COMMAND('maxzoom','maxzoom [plr] [int]',{'maxz'}, | |
4919 | function(ARGS, SPEAKER) | |
4920 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4921 | for i,v in pairs(PLAYERS) do | |
4922 | gPlayers[v].CameraMaxZoomDistance = ARGS[2] | |
4923 | end | |
4924 | end) | |
4925 | ||
4926 | ADD_COMMAND('age','age [plr]',{}, | |
4927 | function(ARGS, SPEAKER) | |
4928 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4929 | for i,v in pairs(PLAYERS) do | |
4930 | NOTIFY(gPlayers[v].Name .. ' | ' .. gPlayers[v].AccountAge, 255, 255, 255) | |
4931 | end | |
4932 | end) | |
4933 | ||
4934 | ADD_COMMAND('hl','hl [plr] [r] [g] [b]',{}, | |
4935 | function(ARGS, SPEAKER) | |
4936 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4937 | for i,v in pairs(PLAYERS) do | |
4938 | local PCHAR = gPlayers[v].Character | |
4939 | if PCHAR:FindFirstChild('Torso') then | |
4940 | local HL = Instance.new('SpotLight', PCHAR.Torso) HL.Name = 'seth_hl' HL.Brightness = 5 HL.Range = 60 | |
4941 | if ARGS[2] and ARGS[3] and ARGS[4] then | |
4942 | HL.Color = Color3.new(ARGS[2], ARGS[3], ARGS[4]) | |
4943 | end | |
4944 | end | |
4945 | end | |
4946 | end) | |
4947 | ||
4948 | ADD_COMMAND('unhl','unhl [plr]',{}, | |
4949 | function(ARGS, SPEAKER) | |
4950 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
4951 | for i,v in pairs(PLAYERS) do | |
4952 | local PCHAR = gPlayers[v].Character | |
4953 | if PCHAR:FindFirstChild('Torso') then | |
4954 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
4955 | if v:IsA('SpotLight') and v.Name == 'seth_hl' then | |
4956 | v:destroy() | |
4957 | end | |
4958 | end | |
4959 | end | |
4960 | end | |
4961 | end) | |
4962 | ||
4963 | -- / extra | |
4964 | ||
4965 | ADD_COMMAND('gravity','gravity [int]',{}, | |
4966 | function(ARGS, SPEAKER) | |
4967 | gWorkspace.Gravity = ARGS[1] | |
4968 | end) | |
4969 | ||
4970 | ADD_COMMAND('loadpaste','loadpaste [pastebin id]',{}, | |
4971 | function(ARGS, SPEAKER) | |
4972 | EXECUTE(game:HttpGet('http://pastebin.com/raw/' .. ARGS[1], true)) | |
4973 | end) | |
4974 | ||
4975 | ADD_COMMAND('printadmins','printadmins',{'padmins'}, | |
4976 | function(ARGS, SPEAKER) | |
4977 | for i,v in pairs(ADMINS) do | |
4978 | print (v) | |
4979 | end | |
4980 | end) | |
4981 | ||
4982 | ADD_COMMAND('printbans','printbans',{'pbans'}, | |
4983 | function(ARGS, SPEAKER) | |
4984 | for i,v in pairs(BANS) do | |
4985 | print (gPlayers:GetNameFromUserIdAsync(v)) | |
4986 | end | |
4987 | end) | |
4988 | ||
4989 | ADD_COMMAND('fixlighting','fixlighting',{'fixl'}, | |
4990 | function(ARGS, SPEAKER) | |
4991 | FIX_LIGHTING() | |
4992 | end) | |
4993 | ||
4994 | ADD_COMMAND('fixfog','fixfog',{'clrfog'}, | |
4995 | function(ARGS, SPEAKER) | |
4996 | gLighting.FogColor = Color3.new(191, 191, 191) | |
4997 | gLighting.FogEnd = 100000000 | |
4998 | gLighting.FogStart = 0 | |
4999 | end) | |
5000 | ||
5001 | ADD_COMMAND('day','day',{}, | |
5002 | function(ARGS, SPEAKER) | |
5003 | gLighting.TimeOfDay = 14 | |
5004 | end) | |
5005 | ||
5006 | ADD_COMMAND('night','night',{}, | |
5007 | function(ARGS, SPEAKER) | |
5008 | gLighting.TimeOfDay = 24 | |
5009 | end) | |
5010 | ||
5011 | ADD_COMMAND('serverlock','serverlock',{'slock'}, | |
5012 | function(ARGS, SPEAKER) | |
5013 | SERVER_LOCKED = true | |
5014 | end) | |
5015 | ||
5016 | ADD_COMMAND('unserverlock','unserverlock',{'unslock'}, | |
5017 | function(ARGS, SPEAKER) | |
5018 | SERVER_LOCKED = false | |
5019 | end) | |
5020 | ||
5021 | ADD_COMMAND('fogend','fogend [int]',{}, | |
5022 | function(ARGS, SPEAKER) | |
5023 | gLighting.FogEnd = ARGS[1] | |
5024 | end) | |
5025 | ||
5026 | ADD_COMMAND('fogcolor','fogcolor [r] [g] [b]',{}, | |
5027 | function(ARGS, SPEAKER) | |
5028 | if ARGS[1] and ARGS[2] and ARGS[3] then | |
5029 | gLighting.FogColor = Color3.new(ARGS[1], ARGS[2], ARGS[3]) | |
5030 | end | |
5031 | end) | |
5032 | ||
5033 | ADD_COMMAND('noclip','noclip',{}, | |
5034 | function(ARGS, SPEAKER) | |
5035 | NOCLIP = true | |
5036 | JESUSFLY = false | |
5037 | SWIM = false | |
5038 | end) | |
5039 | ||
5040 | ADD_COMMAND('clip','clip',{}, | |
5041 | function(ARGS, SPEAKER) | |
5042 | NOCLIP = false | |
5043 | end) | |
5044 | ||
5045 | ADD_COMMAND('jesusfly','jesusfly',{}, | |
5046 | function(ARGS, SPEAKER) | |
5047 | NOCLIP = false | |
5048 | JESUSFLY = true | |
5049 | SWIM = false | |
5050 | end) | |
5051 | ||
5052 | ADD_COMMAND('nojfly','nojfly',{}, | |
5053 | function(ARGS, SPEAKER) | |
5054 | JESUSFLY = false | |
5055 | end) | |
5056 | ||
5057 | ADD_COMMAND('swim','swim',{}, | |
5058 | function(ARGS, SPEAKER) | |
5059 | NOCLIP = false | |
5060 | JESUSFLY = false | |
5061 | SWIM = true | |
5062 | end) | |
5063 | ||
5064 | ADD_COMMAND('noswim','noswim',{}, | |
5065 | function(ARGS, SPEAKER) | |
5066 | SWIM = false | |
5067 | end) | |
5068 | ||
5069 | ADD_COMMAND('fly','fly',{}, | |
5070 | function(ARGS, SPEAKER) | |
5071 | sFLY() | |
5072 | end) | |
5073 | ||
5074 | ADD_COMMAND('unfly','unfly',{}, | |
5075 | function(ARGS, SPEAKER) | |
5076 | NOFLY() | |
5077 | end) | |
5078 | ||
5079 | ADD_COMMAND('prefix','prefix [string]',{}, | |
5080 | function(ARGS, SPEAKER) | |
5081 | if ARGS[1] then | |
5082 | C_PREFIX = ARGS[1] | |
5083 | NOTIFY('Changed prefix to \'' .. ARGS[1] .. '\'', 255, 255, 255) | |
5084 | end | |
5085 | end) | |
5086 | ||
5087 | ADD_COMMAND('version','version',{}, | |
5088 | function(ARGS, SPEAKER) | |
5089 | NOTIFY('VERSION | ' .. VERSION, 255, 255, 255) | |
5090 | end) | |
5091 | ||
5092 | ADD_COMMAND('fe','fe',{}, | |
5093 | function(ARGS, SPEAKER) | |
5094 | spawn(function() | |
5095 | CHECK_FE() | |
5096 | end) | |
5097 | end) | |
5098 | ||
5099 | ADD_COMMAND('changelog','changelog',{}, | |
5100 | function(ARGS, SPEAKER) | |
5101 | CHECK_CHANGELOG() | |
5102 | end) | |
5103 | ||
5104 | ADD_COMMAND('serverinfo','serverinfo',{'sinfo'}, | |
5105 | function(ARGS, SPEAKER) | |
5106 | SERVER_INFO() | |
5107 | end) | |
5108 | ||
5109 | ADD_COMMAND('cmds','cmds',{'commands'}, | |
5110 | function(ARGS, SPEAKER) | |
5111 | LIST_COMMANDS() | |
5112 | end) | |
5113 | ||
5114 | --[[ | |
5115 | for i,v in pairs(COMMANDS) do | |
5116 | print (v.D) | |
5117 | end]] | |
5118 | ||
5119 | -- / noclip | |
5120 | ||
5121 | MOUSE.KeyDown:connect(function(key) | |
5122 | if key:byte() == 29 then | |
5123 | if not NOCLIP then | |
5124 | ECOMMAND('noclip') | |
5125 | elseif NOCLIP then | |
5126 | ECOMMAND('clip') | |
5127 | end | |
5128 | elseif key:byte() == 30 then | |
5129 | if not JESUSFLY then | |
5130 | ECOMMAND('jesusfly') | |
5131 | elseif JESUSFLY then | |
5132 | ECOMMAND('nojfly') | |
5133 | end | |
5134 | end | |
5135 | end) | |
5136 | ||
5137 | -- / after loaded | |
5138 | ||
5139 | function CHECK_FE() | |
5140 | if not gWorkspace.FilteringEnabled then | |
5141 | NOTIFY('Filtering is disabled', 0, 255, 0) | |
5142 | elseif gWorkspace.FilteringEnabled then | |
5143 | NOTIFY('Filtering is ENABLED', 255, 0, 0) | |
5144 | end | |
5145 | end | |
5146 | ||
5147 | function UPDATE_CMDS(SEARCH_CMD) | |
5148 | local FOUND_CMDS = DATA.found_cmds | |
5149 | if gCoreGui:FindFirstChild('cmds_seth') then | |
5150 | local cmds_seth = gCoreGui.cmds_seth | |
5151 | for i,v in pairs(cmds_seth.MAIN.CMDs:GetChildren()) do | |
5152 | v:destroy() | |
5153 | end | |
5154 | for i,v in pairs(FOUND_CMDS:GetChildren()) do | |
5155 | v:destroy() | |
5156 | end | |
5157 | wait() | |
5158 | for i,v in pairs(COMMANDS) do | |
5159 | if string.match(v.D, string.lower(SEARCH_CMD)) then | |
5160 | local F = Instance.new('StringValue', FOUND_CMDS) F.Name = '' F.Value = v.D | |
5161 | end | |
5162 | end | |
5163 | wait() | |
5164 | local YSize = 25 | |
5165 | for i,v in pairs(FOUND_CMDS:GetChildren()) do | |
5166 | local POS = ((i * YSize) - YSize) | |
5167 | local cloneEX = cmds_seth.MAIN.Example:Clone() | |
5168 | cloneEX.Parent = cmds_seth.MAIN.CMDs | |
5169 | cloneEX.Visible = true | |
5170 | cloneEX.Position = UDim2.new(0, 5, 0, POS + 5) | |
5171 | cloneEX.Text = ' - ' .. v.Value | |
5172 | cmds_seth.MAIN.CMDs.CanvasSize = UDim2.new(0, 0, 0, POS + 30) | |
5173 | end | |
5174 | end | |
5175 | end | |
5176 | ||
5177 | function LIST_COMMANDS() | |
5178 | if gCoreGui:FindFirstChild('cmds_seth') then gCoreGui.cmds_seth:destroy() end | |
5179 | local cloneCMDs = DATA.guis.cmds_seth:Clone() | |
5180 | local searchCMDs = cloneCMDs.MAIN.Search | |
5181 | cloneCMDs.MAIN.Header.Text = ' ' .. #COMMANDS .. ' commands' | |
5182 | cloneCMDs.Parent = gCoreGui | |
5183 | cloneCMDs.MAIN.Exit.MouseButton1Down:connect(function() | |
5184 | cloneCMDs:destroy() | |
5185 | end) | |
5186 | cloneCMDs.MAIN.MM.MouseButton1Down:connect(function() | |
5187 | if cloneCMDs.MAIN.CMDs.Visible then | |
5188 | cloneCMDs.MAIN.CMDs.Visible = false | |
5189 | elseif not cloneCMDs.MAIN.CMDs.Visible then | |
5190 | cloneCMDs.MAIN.CMDs.Visible = true | |
5191 | end | |
5192 | end) | |
5193 | local function DISPLAY_CMDS() | |
5194 | for i,v in pairs(COMMANDS) do | |
5195 | local YSize = 25 | |
5196 | local POS = ((i * YSize) - YSize) | |
5197 | local cloneEX = cloneCMDs.MAIN.Example:Clone() | |
5198 | cloneEX.Parent = cloneCMDs.MAIN.CMDs | |
5199 | cloneEX.Visible = true | |
5200 | cloneEX.Position = UDim2.new(0, 5, 0, POS + 5) | |
5201 | cloneEX.Text = ' - ' .. v.D | |
5202 | cloneCMDs.MAIN.CMDs.CanvasSize = UDim2.new(0, 0, 0, POS + 30) | |
5203 | end | |
5204 | end | |
5205 | DISPLAY_CMDS() | |
5206 | searchCMDs.FocusLost:connect(function() | |
5207 | if searchCMDs.Text then | |
5208 | UPDATE_CMDS(searchCMDs.Text) | |
5209 | searchCMDs.Text = ' search commands' | |
5210 | end | |
5211 | end) | |
5212 | end | |
5213 | ||
5214 | local CAN_CHECK = true | |
5215 | ||
5216 | function CHECK_CHANGELOG() | |
5217 | spawn(function() | |
5218 | if CAN_CHECK then | |
5219 | CAN_CHECK = false | |
5220 | local changelogClone = DATA.guis.changelog_seth:Clone() | |
5221 | changelogClone.MAIN.changelog.Text = CHANGELOG | |
5222 | changelogClone.Parent = gCoreGui | |
5223 | wait() | |
5224 | changelogClone.MAIN:TweenPosition(UDim2.new(1, -410, 1, -210), 'InOut', 'Quad', 0.5, false) | |
5225 | wait(10) | |
5226 | changelogClone.MAIN:TweenPosition(UDim2.new(1, -410, 1, 0), 'InOut', 'Quad', 0.5, false) | |
5227 | wait(1) | |
5228 | changelogClone:destroy() | |
5229 | CAN_CHECK = true | |
5230 | end | |
5231 | end) | |
5232 | end | |
5233 | ||
5234 | CHECK_CHANGELOG() | |
5235 | ||
5236 | CMDbar:TweenPosition(UDim2.new(0, 0, 1, -50), 'InOut', 'Quad', 0.5, true) | |
5237 | CMDbar.Parent['']:TweenPosition(UDim2.new(0, 0, 1, -30), 'InOut', 'Quad', 0.5, true) | |
5238 | ||
5239 | CMDbar.FocusLost:connect(function(enterpressed) | |
5240 | if enterpressed and CMDbar.Text ~= '' then | |
5241 | pcall(function() | |
5242 | ECOMMAND(CMDbar.Text, LP) | |
5243 | end) | |
5244 | end | |
5245 | CMDbar:TweenPosition(UDim2.new(0, -200, 1, -50), 'InOut', 'Quad', 0.5, true) | |
5246 | end) | |
5247 | ||
5248 | MOUSE.KeyDown:connect(function(Key) | |
5249 | if Key:byte() == 59 then | |
5250 | CMDbar:TweenPosition(UDim2.new(0, 0, 1, -50), 'InOut', 'Quad', 0.5, true) | |
5251 | CMDbar:CaptureFocus() | |
5252 | end | |
5253 | end) | |
5254 | ||
5255 | -- / loader | |
5256 | ||
5257 | wait() | |
5258 | ||
5259 | LOAD_SETH() | |
5260 | RAW Paste Data | |
5261 | ||
5262 | -- / Rocky2u's Command Script | |
5263 | -- / ROBLOX | SethMilkman | |
5264 | -- / V3RMILLION | Rocky2u | |
5265 | ||
5266 | wait() | |
5267 | ||
5268 | local ADMINS = {danielapt123} | |
5269 | ||
5270 | local BANS = {21799524, 133122258, 103000855, 17278822, 149137060, 61967286, 21640881} | |
5271 | ||
5272 | -- / stuff | |
5273 | ||
5274 | local VERSION = '1.7.3' | |
5275 | local PATCH = '04' | |
5276 | local UPDATED = '10/5/2016' | |
5277 | local CHANGES = [[ | |
5278 | / made ;kick much faster and work faster for others and all | |
5279 | / edited ;loadmap a bit | |
5280 | ]] | |
5281 | ||
5282 | function _G.ADD_ADMIN(ID) table.insert(ADMINS, ID) end | |
5283 | function _G.ADD_BAN(ID) table.insert(BANS, ID) end | |
5284 | ||
5285 | local CHANGELOG = ' UPDATED : ' .. UPDATED .. '\n VERSION : ' .. VERSION .. ' ' .. PATCH .. '\n\n [ ' .. VERSION .. ' ] \n' .. CHANGES | |
5286 | ||
5287 | local gCoreGui = game:GetService('CoreGui') | |
5288 | local gInsertService = game:GetService('InsertService') | |
5289 | local gLighting = game:GetService('Lighting') | |
5290 | local gNetworkClient = game:GetService('NetworkClient') | |
5291 | local gPlayers = game:GetService('Players') | |
5292 | local gWorkspace = game:GetService('Workspace') | |
5293 | ||
5294 | local LP = gPlayers.LocalPlayer | |
5295 | local MOUSE = LP:GetMouse() | |
5296 | ||
5297 | local SERVICES = {} | |
5298 | local COMMANDS = {} | |
5299 | local STD = {} | |
5300 | ||
5301 | SERVICES.EVENTS = {} | |
5302 | ||
5303 | local C_PREFIX = ';' | |
5304 | local S_PREFIX = '\\' | |
5305 | local SPLIT = ' ' | |
5306 | ||
5307 | for i,v in pairs(gCoreGui:GetChildren()) do if v.Name == 'cmdbar_seth' or v.Name == 'notify_seth' then v:destroy() end end | |
5308 | ||
5309 | function UPDATE_CHAT(PLAYER) local C = PLAYER.Chatted:connect(function(M) if CHECK_ADMIN(PLAYER) then DEXECUTE(M, PLAYER) end end) table.insert(SERVICES.EVENTS, C) end | |
5310 | ||
5311 | STD.TABLE = function(T, V) if not T then return false end for i,v in pairs(T) do if v == V then return true end end return false end | |
5312 | STD.ENDAT = function(S, V) local SF = S:find(V) if SF then return S:sub(0, SF - string.len(V)), true else return S, false end end | |
5313 | ||
5314 | function CHECK_ADMIN(PLAYER) if FIND_IN_TABLE(ADMINS, PLAYER.userId) then return true elseif PLAYER.userId == LP.userId then return true end end | |
5315 | ||
5316 | function EXECUTE(STRING) spawn(function() local S, L = loadstring(STRING) if not S then error(L) else S() end end) end | |
5317 | ||
5318 | function FCOMMAND(COMMAND) for i,v in pairs(COMMANDS) do if v.N:lower() == COMMAND:lower() or STD.TABLE(v.A, COMMAND:lower()) then return v end end end | |
5319 | ||
5320 | function GCOMMAND(M) local CMD, HS = STD.ENDAT(M:lower(), SPLIT) if HS then return {CMD, true} else return {CMD, false} end end | |
5321 | ||
5322 | function GPREFIX(STRING) if STRING:sub(1, string.len(C_PREFIX)) == C_PREFIX then return {'COMMAND', string.len(C_PREFIX) + 1} elseif STRING:sub(1, string.len(S_PREFIX)) == S_PREFIX then return {'EXECUTE', string.len(S_PREFIX) + 1} end return end | |
5323 | ||
5324 | function GARGS(STRING) local A = {} local NA = nil local HS = nil local S = STRING repeat NA, HS = STD.ENDAT(S:lower(), SPLIT) if NA ~= '' then table.insert(A, NA) S = S:sub(string.len(NA) + string.len(SPLIT) + 1) end until not HS return A end | |
5325 | ||
5326 | function GCAPARGS(STRING) local A = {} local NA = nil local HS = nil local S = STRING repeat NA, HS = STD.ENDAT(S, SPLIT) if NA ~= '' then table.insert(A, NA) S = S:sub(string.len(NA) + string.len(SPLIT) + 1) end until not HS return A end | |
5327 | ||
5328 | function ECOMMAND(STRING, SPEAKER) repeat if STRING:find(' ') then STRING = STRING:gsub(' ', ' ') end until not STRING:find(' ') local SCMD, A, CMD SCMD = GCOMMAND(STRING) CMD = FCOMMAND(SCMD[1]) if not CMD then return end A = STRING:sub(string.len(SCMD[1]) + string.len(SPLIT) + 1) local ARGS = GARGS(A) CA = GCAPARGS(A) pcall(function() CMD.F(ARGS, SPEAKER) end) end | |
5329 | ||
5330 | function DEXECUTE(STRING, SPEAKER) if not CHECK_ADMIN(SPEAKER) then return end STRING = STRING:gsub('/e ', '') local GP = GPREFIX(STRING) if not GP then return end STRING = STRING:sub(GP[2]) if GP[1] == 'EXECUTE' then EXECUTE(STRING) elseif GP[1] == 'COMMAND' then ECOMMAND(STRING, SPEAKER) end end | |
5331 | ||
5332 | _G.cmd_seth = ECOMMAND | |
5333 | ||
5334 | SERVER_LOCKED = false | |
5335 | ||
5336 | gPlayers.PlayerAdded:connect(function(PLAYER) | |
5337 | if SERVER_LOCKED then PLAYER.CharacterAdded:connect(function() wait() KICK(PLAYER) return end) end | |
5338 | if FIND_IN_TABLE(BANS, PLAYER.userId) then PLAYER.CharacterAdded:connect(function() wait() KICK(PLAYER) return end) end | |
5339 | UPDATE_CHAT(PLAYER) | |
5340 | if CHECK_ADMIN(PLAYER) then PLAYER.CharacterAdded:connect(function() wait() game.Chat:Chat(PLAYER.Character.Head, printStuff .. 'Welcome, you\'re an admin!') end) end | |
5341 | end) | |
5342 | ||
5343 | function ADD_COMMAND(N, D, A, F) table.insert(COMMANDS, {N = N, D = D, A = A, F = F}) end | |
5344 | ||
5345 | function GET_PLAYER(NAME, SPEAKER) | |
5346 | local NAME_TABLE = {} | |
5347 | NAME = NAME:lower() | |
5348 | if NAME == 'me' then | |
5349 | table.insert(NAME_TABLE, SPEAKER.Name) | |
5350 | elseif NAME == 'others' then | |
5351 | for i,v in pairs(gPlayers:GetPlayers()) do if v:IsA('Player') then if v.Name ~= SPEAKER.Name then table.insert(NAME_TABLE, v.Name) end end end | |
5352 | elseif NAME == 'all' then | |
5353 | for i,v in pairs(gPlayers:GetPlayers()) do if v:IsA('Player') then table.insert(NAME_TABLE, v.Name) end end | |
5354 | elseif NAME == 'random' then | |
5355 | table.insert(NAME_TABLE, gPlayers:GetPlayers()[math.random(1, #gPlayers:GetPlayers())].Name) | |
5356 | elseif NAME == 'team' then | |
5357 | for i,v in pairs(gPlayers:GetPlayers()) do if v.TeamColor == SPEAKER.TeamColor then table.insert(NAME_TABLE, v.Name) end end | |
5358 | elseif NAME == 'nonadmins' then | |
5359 | for i,v in pairs(gPlayers:GetPlayers()) do if not CHECK_ADMIN(v) then table.insert(NAME_TABLE, v.Name) end end | |
5360 | elseif NAME == 'admins' then | |
5361 | for i,v in pairs(gPlayers:GetPlayers()) do if CHECK_ADMIN(v) then table.insert(NAME_TABLE, v.Name) end end | |
5362 | elseif NAME == 'nonfriends' then | |
5363 | for i,v in pairs(gPlayers:GetPlayers()) do if not v:IsFriendsWith(SPEAKER.userId) then table.insert(NAME_TABLE, v.Name) end end | |
5364 | elseif NAME == 'friends' then | |
5365 | for i,v in pairs(gPlayers:GetPlayers()) do if v ~= SPEAKER and v:IsFriendsWith(SPEAKER.userId) then table.insert(NAME_TABLE, v.Name) end end | |
5366 | elseif NAME == 'nonguests' then | |
5367 | for i,v in pairs(gPlayers:GetPlayers()) do if not v.Guest then table.insert(NAME_TABLE, v.Name) end end | |
5368 | elseif NAME == 'guests' then | |
5369 | for i,v in pairs(gPlayers:GetPlayers()) do if v.Guest then table.insert(NAME_TABLE, v.Name) end end | |
5370 | elseif NAME == 'nbcs' then | |
5371 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.None then table.insert(NAME_TABLE, v.Name) end end | |
5372 | elseif NAME == 'bcs' then | |
5373 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.BuildersClub then table.insert(NAME_TABLE, v.Name) end end | |
5374 | elseif NAME == 'tbcs' then | |
5375 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.TurboBuildersClub then table.insert(NAME_TABLE, v.Name) end end | |
5376 | elseif NAME == 'obcs' then | |
5377 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.OutrageousBuildersClub then table.insert(NAME_TABLE, v.Name) end end | |
5378 | else | |
5379 | for i,v in pairs(gPlayers:GetPlayers()) do local L_NAME = v.Name:lower() local F = L_NAME:find(NAME) if F == 1 then table.insert(NAME_TABLE, v.Name) end end | |
5380 | end | |
5381 | return NAME_TABLE | |
5382 | end | |
5383 | ||
5384 | function GLS(LOWER, START) local AA = '' for i,v in pairs(CA) do if i > START then if AA ~= '' then AA = AA .. ' ' .. v else AA = AA .. v end end end if not LOWER then return AA else return string.lower(AA) end end | |
5385 | ||
5386 | -- / tables | |
5387 | ||
5388 | local JAILED = {} | |
5389 | ||
5390 | -- / stuff | |
5391 | ||
5392 | printStuff = '[ Rocky2u\'s CMDs ] : ' | |
5393 | ||
5394 | local DATA = game:GetObjects('rbxassetid://291592144')[1] | |
5395 | _G.seth_data = DATA | |
5396 | ||
5397 | local CMDbar = DATA.guis.cmdbar_seth.CMDbar CMDbar.Parent.Parent = gCoreGui | |
5398 | local being_looped = DATA.being_looped | |
5399 | ||
5400 | wait() | |
5401 | ||
5402 | local NOCLIP, JESUSFLY, SWIM = false, false, false | |
5403 | ||
5404 | game:GetService('RunService').Stepped:connect(function() | |
5405 | if NOCLIP then | |
5406 | if LP.Character:FindFirstChild('Humanoid') then LP.Character.Humanoid:ChangeState(11) end | |
5407 | elseif JESUSFLY then | |
5408 | if LP.Character:FindFirstChild('Humanoid') then LP.Character.Humanoid:ChangeState(12) end | |
5409 | elseif SWIM then | |
5410 | if LP.Character:FindFirstChild('Humanoid') then LP.Character.Humanoid:ChangeState(4) end | |
5411 | end | |
5412 | end) | |
5413 | ||
5414 | function FIND_IN_TABLE(TABLE, NAME) | |
5415 | for i = 1, #TABLE do | |
5416 | if TABLE[i] == NAME then | |
5417 | return true | |
5418 | end | |
5419 | end | |
5420 | return false | |
5421 | end | |
5422 | ||
5423 | function GET_IN_TABLE(TABLE, NAME) | |
5424 | for i = 1, #TABLE do | |
5425 | if TABLE[i] == NAME then | |
5426 | return i | |
5427 | end | |
5428 | end | |
5429 | return false | |
5430 | end | |
5431 | ||
5432 | local NOTIFY_1 = false | |
5433 | local NOTIFY_2 = false | |
5434 | ||
5435 | function NOTIFY(M, R, G, B) | |
5436 | spawn(function() | |
5437 | repeat wait() until not NOTIFY_1 | |
5438 | local NOTIFY_SETH = DATA.guis.notify_seth:Clone() NOTIFY_SETH.Parent = gCoreGui | |
5439 | if NOTIFY_SETH then | |
5440 | NOTIFY_SETH.NOTIFY.NOTE.BAR.BackgroundColor3 = Color3.new(R, G, B) | |
5441 | NOTIFY_SETH.NOTIFY.NOTE.Text = ' ' .. M | |
5442 | repeat wait() until not NOTIFY_1 | |
5443 | NOTIFY_1 = true | |
5444 | wait(0.5) | |
5445 | NOTIFY_SETH.NOTIFY:TweenPosition(UDim2.new(0, 0, 0.7, 0), 'InOut', 'Quad', 0.4, false) wait(0.5) | |
5446 | wait(0.5) | |
5447 | repeat wait() until not NOTIFY_2 | |
5448 | NOTIFY_1 = false | |
5449 | NOTIFY_SETH.NOTIFY:TweenPosition(UDim2.new(0, 0, 0.7, -40), 'InOut', 'Quad', 0.4, false) wait(0.5) | |
5450 | wait(0.5) | |
5451 | NOTIFY_2 = true | |
5452 | wait(2.5) | |
5453 | NOTIFY_SETH.NOTIFY:TweenPosition(UDim2.new(0, -225, 0.7, -40), 'InOut', 'Quad', 0.4, false) wait(0.5) | |
5454 | end | |
5455 | wait(1) | |
5456 | NOTIFY_SETH:destroy() | |
5457 | NOTIFY_2 = false | |
5458 | end) | |
5459 | end | |
5460 | ||
5461 | function LOAD_SETH() | |
5462 | spawn(function() | |
5463 | local load_seth = DATA.guis.loader_seth:Clone() load_seth.Parent = gCoreGui | |
5464 | load_seth.MAIN:TweenSizeAndPosition(UDim2.new(0, 300, 0, 200), UDim2.new(0.5, -150, 0.5, -100), 'Out', 'Quad', 0.5, false) wait(0.5) | |
5465 | load_seth.MAIN.TEXT.Text = 'Rocky2u\'s\nCommand Script' | |
5466 | repeat wait() load_seth.MAIN.TEXT.TextTransparency = load_seth.MAIN.TEXT.TextTransparency - 0.1 until load_seth.MAIN.TEXT.TextTransparency < 0 wait(1) | |
5467 | if not gWorkspace.FilteringEnabled then load_seth.MAIN.FE.Text = ' Filtering is disabled' elseif gWorkspace.FilteringEnabled then load_seth.MAIN.FE.Text = ' Filtering is ENABLED' end load_seth.MAIN.FE.TextTransparency = 0 wait(1) | |
5468 | load_seth.MAIN.COMMANDS.Text = ' ' .. #COMMANDS .. ' commands!' load_seth.MAIN.COMMANDS.TextTransparency = 0 wait(1) | |
5469 | load_seth.MAIN.WELCOME.Text = ' Welcome, ' .. LP.Name load_seth.MAIN.WELCOME.TextTransparency = 0 wait(1) | |
5470 | load_seth.MAIN.C.Text = ' Made by SethMilkman' load_seth.MAIN.C.TextTransparency = 0 wait(5) | |
5471 | for i,v in pairs(load_seth.MAIN:GetChildren()) do if v:IsA('TextLabel')and v.Name ~= 'TEXT' then v.TextTransparency = 1 end end wait() | |
5472 | repeat wait() load_seth.MAIN.TEXT.TextTransparency = load_seth.MAIN.TEXT.TextTransparency + 0.1 until load_seth.MAIN.TEXT.TextTransparency == 1 | |
5473 | load_seth.MAIN:TweenSizeAndPosition(UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, 0.5, 0), 'Out', 'Quad', 0.5) | |
5474 | wait(1) | |
5475 | load_seth.MAIN:destroy() | |
5476 | end) | |
5477 | end | |
5478 | ||
5479 | local S_INFO = false | |
5480 | ||
5481 | function SERVER_INFO() | |
5482 | if not S_INFO then | |
5483 | spawn(function() | |
5484 | S_INFO = true | |
5485 | local server_seth = DATA.guis.server_seth:Clone() server_seth.Parent = gCoreGui | |
5486 | if not gWorkspace.FilteringEnabled then server_seth.MAIN.FE.Text = ' FilteringEnabled | false' elseif gWorkspace.FilteringEnabled then server_seth.MAIN.FE.Text = ' FilteringEnabled | true' end | |
5487 | server_seth.MAIN.IP.Text = ' IP Address | ' .. gNetworkClient.ClientReplicator.MachineAddress .. ':' .. gNetworkClient.ClientReplicator.Port | |
5488 | server_seth.MAIN.PLACE_ID.Text = ' PlaceId | ' .. game.PlaceId | |
5489 | server_seth.MAIN.EXIT.MouseButton1Down:connect(function() S_INFO = false server_seth:destroy() end) | |
5490 | while S_INFO do | |
5491 | server_seth.MAIN.PLAYERS.Text = ' Players | ' .. gPlayers.NumPlayers .. ' / ' .. gPlayers.MaxPlayers | |
5492 | server_seth.MAIN.TIME.Text = ' Time | ' .. gLighting.TimeOfDay | |
5493 | wait() | |
5494 | end | |
5495 | end) | |
5496 | end | |
5497 | end | |
5498 | ||
5499 | function KICK(PLAYER) | |
5500 | spawn(function() | |
5501 | local function SKICK() | |
5502 | if PLAYER.Character and PLAYER.Character:FindFirstChild('HumanoidRootPart') and PLAYER.Character:FindFirstChild('Torso') then | |
5503 | PLAYER.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000) | |
5504 | local SP = Instance.new('SkateboardPlatform', PLAYER.Character) SP.Position = PLAYER.Character.HumanoidRootPart.Position SP.Transparency = 1 | |
5505 | spawn(function() | |
5506 | repeat wait() | |
5507 | if PLAYER.Character and PLAYER.Character:FindFirstChild('HumanoidRootPart') then | |
5508 | SP.Position = PLAYER.Character.HumanoidRootPart.Position | |
5509 | end | |
5510 | until not gPlayers:FindFirstChild(PLAYER.Name) | |
5511 | end) | |
5512 | PLAYER.Character.Torso.Anchored = true | |
5513 | end | |
5514 | end | |
5515 | spawn(function() | |
5516 | repeat wait() if PLAYER ~= nil then SKICK() end until not gPlayers:FindFirstChild(PLAYER.Name) | |
5517 | if not gPlayers:FindFirstChild(PLAYER.Name) then | |
5518 | NOTIFY('REMOVED ' .. PLAYER.Name, 255, 255, 255) | |
5519 | end | |
5520 | end) | |
5521 | end) | |
5522 | end | |
5523 | ||
5524 | function FIX_LIGHTING() | |
5525 | gLighting.Ambient = Color3.new(0.5, 0.5, 0.5) | |
5526 | gLighting.Brightness = 1 | |
5527 | gLighting.GlobalShadows = true | |
5528 | gLighting.Outlines = false | |
5529 | gLighting.TimeOfDay = 14 | |
5530 | gLighting.FogEnd = 100000 | |
5531 | end | |
5532 | ||
5533 | function MESSAGE_HINT(TYPE, HEADER, MESSAGE, PLAYER) | |
5534 | local BV = Instance.new('BoolValue', DATA.messages_hints) BV.Name = PLAYER.Name .. '_MSG_HINT' | |
5535 | local SPRAY = gInsertService:LoadAsset(80576967) | |
5536 | local S = SPRAY.Spray:Clone() S.Name = '' S.Handle.Transparency = 1 S.SprayGui:destroy() S.SprayPaint:destroy() S.TextureId = '' | |
5537 | if TYPE == 'MESSAGE' then | |
5538 | local GUI = DATA.guis.message_seth:Clone() GUI.HINT:destroy() GUI.Name = 'SprayGui' GUI.MESSAGE.header.Text = HEADER GUI.MESSAGE.message.Text = MESSAGE GUI.MESSAGE.Visible = true GUI.Parent = S | |
5539 | elseif TYPE == 'HINT' then | |
5540 | local GUI = DATA.guis.message_seth:Clone() GUI.MESSAGE:destroy() GUI.Name = 'SprayGui' GUI.HINT.Text = MESSAGE GUI.HINT.Visible = true GUI.Parent = S | |
5541 | end | |
5542 | for i = 1, 100 do | |
5543 | wait() | |
5544 | PLAYER.Character.Humanoid:EquipTool(S) | |
5545 | end | |
5546 | PLAYER.Character.Humanoid:UnequipTools() | |
5547 | S:destroy() wait() BV:destroy() | |
5548 | end | |
5549 | ||
5550 | function COLOR(PLAYER, BCOLOR) | |
5551 | for i,v in pairs(PLAYER.Character:GetChildren()) do if v:IsA('Shirt') or v:IsA('Pants') then v:destroy() elseif v:IsA('ShirtGraphic') then v.Archivable = false v.Graphic = '' end end | |
5552 | for i,v in pairs(PLAYER.Character.Head:GetChildren()) do if v:IsA('Decal') then v:destroy() end end | |
5553 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
5554 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
5555 | v.BrickColor = BrickColor.new(BCOLOR) | |
5556 | elseif v:IsA('Hat') then | |
5557 | v.Handle.BrickColor = BrickColor.new(BCOLOR) | |
5558 | for a,b in pairs(v.Handle:GetChildren()) do | |
5559 | if b:IsA('SpecialMesh') then | |
5560 | b.TextureId = '' | |
5561 | end | |
5562 | end | |
5563 | end | |
5564 | end | |
5565 | end | |
5566 | ||
5567 | function LAG(PLAYER) | |
5568 | local POS = CFrame.new(math.random(-100000, 100000), math.random(-100000, 100000), math.random(-100000, 100000)) | |
5569 | spawn(function() | |
5570 | repeat wait() | |
5571 | if PLAYER and PLAYER.Character then | |
5572 | PLAYER.CameraMode = 'LockFirstPerson' | |
5573 | PLAYER.Character.HumanoidRootPart.CFrame = POS | |
5574 | PLAYER.Character.Torso.Anchored = true | |
5575 | Instance.new('ForceField', PLAYER.Character) | |
5576 | Instance.new('Smoke', PLAYER.Character.Head) | |
5577 | end | |
5578 | until not gPlayers:FindFirstChild(PLAYER.Name) | |
5579 | end) | |
5580 | end | |
5581 | ||
5582 | local FLYING = false | |
5583 | ||
5584 | if LP.Character and LP.Character:FindFirstChild('Humanoid') then | |
5585 | LP.Character.Humanoid.Died:connect(function() FLYING = false end) | |
5586 | end | |
5587 | ||
5588 | function sFLY() | |
5589 | repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('Torso') and LP.Character:FindFirstChild('Humanoid') | |
5590 | repeat wait() until MOUSE | |
5591 | ||
5592 | local T = LP.Character.Torso | |
5593 | local CONTROL = {F = 0, B = 0, L = 0, R = 0} | |
5594 | local lCONTROL = {F = 0, B = 0, L = 0, R = 0} | |
5595 | local SPEED = 0 | |
5596 | ||
5597 | local function FLY() | |
5598 | FLYING = true | |
5599 | local BG = Instance.new('BodyGyro', T) | |
5600 | local BV = Instance.new('BodyVelocity', T) | |
5601 | BG.P = 9e4 | |
5602 | BG.maxTorque = Vector3.new(9e9, 9e9, 9e9) | |
5603 | BG.cframe = T.CFrame | |
5604 | BV.velocity = Vector3.new(0, 0.1, 0) | |
5605 | BV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
5606 | spawn(function() | |
5607 | repeat wait() | |
5608 | LP.Character.Humanoid.PlatformStand = true | |
5609 | if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then | |
5610 | SPEED = 50 | |
5611 | elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then | |
5612 | SPEED = 0 | |
5613 | end | |
5614 | if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then | |
5615 | BV.velocity = ((gWorkspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((gWorkspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - gWorkspace.CurrentCamera.CoordinateFrame.p)) * SPEED | |
5616 | lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R} | |
5617 | elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then | |
5618 | BV.velocity = ((gWorkspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((gWorkspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - gWorkspace.CurrentCamera.CoordinateFrame.p)) * SPEED | |
5619 | else | |
5620 | BV.velocity = Vector3.new(0, 0.1, 0) | |
5621 | end | |
5622 | BG.cframe = gWorkspace.CurrentCamera.CoordinateFrame | |
5623 | until not FLYING | |
5624 | CONTROL = {F = 0, B = 0, L = 0, R = 0} | |
5625 | lCONTROL = {F = 0, B = 0, L = 0, R = 0} | |
5626 | SPEED = 0 | |
5627 | BG:destroy() | |
5628 | BV:destroy() | |
5629 | LP.Character.Humanoid.PlatformStand = false | |
5630 | end) | |
5631 | end | |
5632 | ||
5633 | MOUSE.KeyDown:connect(function(KEY) | |
5634 | if KEY:lower() == 'w' then | |
5635 | CONTROL.F = 1 | |
5636 | elseif KEY:lower() == 's' then | |
5637 | CONTROL.B = -1 | |
5638 | elseif KEY:lower() == 'a' then | |
5639 | CONTROL.L = -1 | |
5640 | elseif KEY:lower() == 'd' then | |
5641 | CONTROL.R = 1 | |
5642 | end | |
5643 | end) | |
5644 | ||
5645 | MOUSE.KeyUp:connect(function(KEY) | |
5646 | if KEY:lower() == 'w' then | |
5647 | CONTROL.F = 0 | |
5648 | elseif KEY:lower() == 's' then | |
5649 | CONTROL.B = 0 | |
5650 | elseif KEY:lower() == 'a' then | |
5651 | CONTROL.L = 0 | |
5652 | elseif KEY:lower() == 'd' then | |
5653 | CONTROL.R = 0 | |
5654 | end | |
5655 | end) | |
5656 | FLY() | |
5657 | end | |
5658 | ||
5659 | function NOFLY() | |
5660 | FLYING = false | |
5661 | LP.Character.Humanoid.PlatformStand = false | |
5662 | end | |
5663 | ||
5664 | function RESET_MODEL(MODEL) | |
5665 | for i,v in pairs(MODEL:GetChildren()) do | |
5666 | if v:IsA('Part') and v.Name == 'LA_INFECT' or v:IsA('Part') and v.Name == 'RA_INFECT' or v:IsA('Seat') and v.Name == 'FakeTorso' then | |
5667 | v:destroy() | |
5668 | elseif v:IsA('CharacterMesh') or v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Hat') then | |
5669 | v:destroy() | |
5670 | elseif v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
5671 | v.Transparency = 0 | |
5672 | elseif v:IsA('ShirtGraphic') then | |
5673 | v.Archivable = false | |
5674 | v.Graphic = '' | |
5675 | end | |
5676 | end | |
5677 | for i,v in pairs(MODEL.Torso:GetChildren()) do | |
5678 | if v:IsA('SpecialMesh') then | |
5679 | v:destroy() | |
5680 | end | |
5681 | end | |
5682 | if MODEL.Head:FindFirstChild('Mesh') then | |
5683 | MODEL.Head.Mesh:destroy() | |
5684 | end | |
5685 | if MODEL.Torso:FindFirstChild('Neck') then MODEL.Torso.Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(180), 0) end | |
5686 | if MODEL.Torso:FindFirstChild('Left Shoulder') then MODEL.Torso['Left Shoulder'].C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, math.rad(-90), 0) end | |
5687 | if MODEL.Torso:FindFirstChild('Right Shoulder') then MODEL.Torso['Right Shoulder'].C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) end | |
5688 | if MODEL.Torso:FindFirstChild('Left Hip') then MODEL.Torso['Left Hip'].C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0) end | |
5689 | if MODEL.Torso:FindFirstChild('Right Hip') then MODEL.Torso['Right Hip'].C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0) end | |
5690 | end | |
5691 | ||
5692 | function UPDATE_MODEL(MODEL, USERNAME) | |
5693 | local AppModel = gPlayers:GetCharacterAppearanceAsync(gPlayers:GetUserIdFromNameAsync(USERNAME)) | |
5694 | MODEL.Name = USERNAME | |
5695 | for i,v in pairs(AppModel:GetChildren()) do | |
5696 | if v:IsA('SpecialMesh') or v:IsA('BlockMesh') or v:IsA('CylinderMesh') then | |
5697 | v.Parent = MODEL.Head | |
5698 | elseif v:IsA('Decal') then | |
5699 | if MODEL.Head:FindFirstChild('face') then | |
5700 | MODEL.Head.face.Texture = v.Texture | |
5701 | else | |
5702 | local FACE = Instance.new('Decal', MODEL.Head) | |
5703 | FACE.Texture = v.Texture | |
5704 | end | |
5705 | elseif v:IsA('BodyColors') or v:IsA('CharacterMesh') or v:IsA('Shirt') or v:IsA('Pants') or v:IsA('ShirtGraphic') then | |
5706 | if MODEL:FindFirstChild('Body Colors') then | |
5707 | MODEL['Body Colors']:destroy() | |
5708 | end | |
5709 | v.Parent = MODEL | |
5710 | elseif v:IsA('Hat') then | |
5711 | v.Parent = MODEL | |
5712 | v.Handle.CFrame = MODEL.Head.CFrame * CFrame.new(0, MODEL.Head.Size.Y / 2, 0) * v.AttachmentPoint:inverse() | |
5713 | end | |
5714 | end | |
5715 | if not MODEL.Head:FindFirstChild('Mesh') then | |
5716 | local SM = Instance.new('SpecialMesh', MODEL.Head) | |
5717 | SM.MeshType = Enum.MeshType.Head | |
5718 | SM.Scale = Vector3.new(1.25, 1.25, 1.25) | |
5719 | end | |
5720 | end | |
5721 | ||
5722 | function CREEPER(PLAYER) | |
5723 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
5724 | if v:IsA('Shirt') or v:IsA('Pants') then | |
5725 | v:destroy() | |
5726 | elseif v:IsA('ShirtGraphic') then | |
5727 | v.Archivable = false | |
5728 | v.Graphic = '' | |
5729 | end | |
5730 | end | |
5731 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
5732 | if v:IsA('Hat') then | |
5733 | v:destroy() | |
5734 | end | |
5735 | end | |
5736 | PLAYER.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0) | |
5737 | PLAYER.Character.Torso['Right Shoulder'].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(90),0) | |
5738 | PLAYER.Character.Torso['Left Shoulder'].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(-90),0) | |
5739 | PLAYER.Character.Torso['Right Hip'].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(90),0) | |
5740 | PLAYER.Character.Torso['Left Hip'].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(-90),0) | |
5741 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
5742 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
5743 | v.BrickColor = BrickColor.new('Bright green') | |
5744 | end | |
5745 | end | |
5746 | end | |
5747 | ||
5748 | function SHREK(PLAYER) | |
5749 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
5750 | if v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Hat') or v:IsA('CharacterMesh') then | |
5751 | v:destroy() | |
5752 | elseif v:IsA('ShirtGraphic') then | |
5753 | v.Archivable = false | |
5754 | v.Graphic = '' | |
5755 | end | |
5756 | end | |
5757 | for i,v in pairs(PLAYER.Character.Head:GetChildren()) do | |
5758 | if v:IsA('Decal') or v:IsA('SpecialMesh') then | |
5759 | v:destroy() | |
5760 | end | |
5761 | end | |
5762 | if PLAYER.Character:FindFirstChild('Shirt Graphic') then | |
5763 | PLAYER.Character['Shirt Graphic'].Archivable = false | |
5764 | PLAYER.Character['Shirt Graphic'].Graphic = '' | |
5765 | end | |
5766 | local M = Instance.new('SpecialMesh', PLAYER.Character.Head) | |
5767 | local S = Instance.new('Shirt', PLAYER.Character) | |
5768 | local P = Instance.new('Pants', PLAYER.Character) | |
5769 | M.MeshType = 'FileMesh' | |
5770 | M.MeshId = 'http://www.roblox.com/asset/?id=19999257' | |
5771 | M.Offset = Vector3.new(-0.1, 0.1, 0) | |
5772 | M.TextureId = 'http://www.roblox.com/asset/?id=156397869' | |
5773 | S.ShirtTemplate = 'rbxassetid://133078194' | |
5774 | P.PantsTemplate = 'rbxassetid://133078204' | |
5775 | end | |
5776 | ||
5777 | function DUCK(PLAYER) | |
5778 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
5779 | if v:IsA('Part') and v.Name ~= 'Torso' and v.Name ~= 'HumanoidRootPart' then | |
5780 | v.Transparency = 1 | |
5781 | elseif v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Hat') then | |
5782 | v:destroy() | |
5783 | elseif v:IsA('ShirtGraphic') then | |
5784 | v.Archivable = false | |
5785 | v.Graphic = '' | |
5786 | end | |
5787 | end | |
5788 | local DUCK = Instance.new('SpecialMesh', PLAYER.Character.Torso) | |
5789 | DUCK.MeshType = 'FileMesh' | |
5790 | DUCK.MeshId = 'http://www.roblox.com/asset/?id=9419831' | |
5791 | DUCK.TextureId = 'http://www.roblox.com/asset/?id=9419827' | |
5792 | DUCK.Scale = Vector3.new(5, 5, 5) | |
5793 | if PLAYER.Character.Head:FindFirstChild('face') then | |
5794 | PLAYER.Character.Head.face.Transparency = 1 | |
5795 | end | |
5796 | end | |
5797 | ||
5798 | function DOG(PLAYER) | |
5799 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
5800 | if v:IsA('Shirt') or v:IsA('Pants') then | |
5801 | v:destroy() | |
5802 | elseif v:IsA('ShirtGraphic') then | |
5803 | v.Archivable = false | |
5804 | v.Graphic = '' | |
5805 | end | |
5806 | end | |
5807 | PLAYER.Character.Torso.Transparency = 1 | |
5808 | PLAYER.Character.Torso.Neck.C0 = CFrame.new(0, -0.5, -2) * CFrame.Angles(math.rad(90), math.rad(180), 0) | |
5809 | PLAYER.Character.Torso['Right Shoulder'].C0 = CFrame.new(0.5, -1.5, -1.5) * CFrame.Angles(0, math.rad(90), 0) | |
5810 | PLAYER.Character.Torso['Left Shoulder'].C0 = CFrame.new(-0.5, -1.5, -1.5) * CFrame.Angles(0, math.rad(-90), 0) | |
5811 | PLAYER.Character.Torso['Right Hip'].C0 = CFrame.new(1.5, -1, 1.5) * CFrame.Angles(0, math.rad(90), 0) | |
5812 | PLAYER.Character.Torso['Left Hip'].C0 = CFrame.new(-1.5, -1, 1.5) * CFrame.Angles(0, math.rad(-90), 0) | |
5813 | local FakeTorso = Instance.new('Seat', PLAYER.Character) | |
5814 | local BF = Instance.new('BodyForce', FakeTorso) | |
5815 | local W = Instance.new('Weld', PLAYER.Character.Torso) | |
5816 | FakeTorso.Name = 'FakeTorso' | |
5817 | FakeTorso.FormFactor = 'Symmetric' | |
5818 | FakeTorso.TopSurface = 0 | |
5819 | FakeTorso.BottomSurface = 0 | |
5820 | FakeTorso.Size = Vector3.new(3,1,4) | |
5821 | FakeTorso.BrickColor = BrickColor.new('Brown') | |
5822 | FakeTorso.CFrame = PLAYER.Character.Torso.CFrame | |
5823 | BF.Force = Vector3.new(0, FakeTorso:GetMass() * 196.25, 0) | |
5824 | W.Part0 = PLAYER.Character.Torso | |
5825 | W.Part1 = FakeTorso | |
5826 | W.C0 = CFrame.new(0, -0.5, 0) | |
5827 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
5828 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
5829 | v.BrickColor = BrickColor.new('Brown') | |
5830 | end | |
5831 | end | |
5832 | end | |
5833 | ||
5834 | function AYYLMAO(PLAYER) | |
5835 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
5836 | if v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Hat') then | |
5837 | v:destroy() | |
5838 | elseif v:IsA('ShirtGraphic') then | |
5839 | v.Archivable = false | |
5840 | v.Graphic = '' | |
5841 | elseif v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
5842 | v.BrickColor = BrickColor.new('Fossil') | |
5843 | end | |
5844 | end | |
5845 | game:GetObjects('rbxassetid://13837194')[1].Parent = PLAYER.Character | |
5846 | end | |
5847 | ||
5848 | function DECALSPAM(INSTANCE, ID) | |
5849 | for i,v in pairs(INSTANCE:GetChildren()) do | |
5850 | if v:IsA('BasePart') then | |
5851 | spawn(function() | |
5852 | local FACES = {'Back', 'Bottom', 'Front', 'Left', 'Right', 'Top'} | |
5853 | local CURRENT_FACE = 1 | |
5854 | for i = 1, 6 do | |
5855 | local DECAL = Instance.new('Decal', v) | |
5856 | DECAL.Name = 'decal_seth' | |
5857 | DECAL.Texture = 'rbxassetid://' .. ID - 1 | |
5858 | DECAL.Face = FACES[CURRENT_FACE] | |
5859 | CURRENT_FACE = CURRENT_FACE + 1 | |
5860 | end | |
5861 | end) | |
5862 | end | |
5863 | DECALSPAM(v, ID) | |
5864 | end | |
5865 | end | |
5866 | ||
5867 | function UNDECALSPAM(INSTANCE) | |
5868 | for i,v in pairs(INSTANCE:GetChildren()) do | |
5869 | if v:IsA('BasePart') then | |
5870 | for a,b in pairs(v:GetChildren()) do | |
5871 | if b:IsA('Decal') and b.Name == 'decal_seth' then | |
5872 | b:destroy() | |
5873 | end | |
5874 | end | |
5875 | end | |
5876 | UNDECALSPAM(v) | |
5877 | end | |
5878 | end | |
5879 | ||
5880 | function CREATE_DONG(PLAYER, DONG_COLOR) | |
5881 | if PLAYER.Character:FindFirstChild('DONG') then | |
5882 | PLAYER.Character.DONG:destroy() | |
5883 | end | |
5884 | local D = Instance.new('Model', PLAYER.Character) | |
5885 | D.Name = 'DONG' | |
5886 | ||
5887 | local BG = Instance.new('BodyGyro', PLAYER.Character.Torso) | |
5888 | local MAIN = Instance.new('Part', PLAYER.Character['DONG']) | |
5889 | local M1 = Instance.new('CylinderMesh', MAIN) | |
5890 | local W1 = Instance.new('Weld', PLAYER.Character.Head) | |
5891 | local P1 = Instance.new('Part', PLAYER.Character['DONG']) | |
5892 | local M2 = Instance.new('SpecialMesh', P1) | |
5893 | local W2 = Instance.new('Weld', P1) | |
5894 | local B1 = Instance.new('Part', PLAYER.Character['DONG']) | |
5895 | local M3 = Instance.new('SpecialMesh', B1) | |
5896 | local W3 = Instance.new('Weld', B1) | |
5897 | local B2 = Instance.new('Part', PLAYER.Character['DONG']) | |
5898 | local M4 = Instance.new('SpecialMesh', B2) | |
5899 | local W4 = Instance.new('Weld', B2) | |
5900 | ||
5901 | MAIN.TopSurface = 0 MAIN.BottomSurface = 0 MAIN.Name = 'Main' MAIN.formFactor = 3 MAIN.Size = Vector3.new(0.6, 2.5, 0.6) MAIN.BrickColor = BrickColor.new(DONG_COLOR) MAIN.Position = PLAYER.Character.Head.Position MAIN.CanCollide = false | |
5902 | ||
5903 | W1.Part0 = MAIN W1.Part1 = PLAYER.Character.Head W1.C0 = CFrame.new(0, 0.25, 2.1) * CFrame.Angles(math.rad(45), 0, 0) | |
5904 | ||
5905 | P1.Name = 'Mush' P1.BottomSurface = 0 P1.TopSurface = 0 P1.FormFactor = 3 P1.Size = Vector3.new(0.6, 0.6, 0.6) P1.CFrame = CFrame.new(MAIN.Position) P1.BrickColor = BrickColor.new('Pink') P1.CanCollide = false | |
5906 | ||
5907 | M2.MeshType = 'Sphere' | |
5908 | ||
5909 | W2.Part0 = MAIN W2.Part1 = P1 W2.C0 = CFrame.new(0, 1.3, 0) | |
5910 | ||
5911 | B1.Name = 'Left Ball' B1.BottomSurface = 0 B1.TopSurface = 0 B1.CanCollide = false B1.formFactor = 3 B1.Size = Vector3.new(1, 1, 1) B1.CFrame = CFrame.new(PLAYER.Character['Left Leg'].Position) B1.BrickColor = BrickColor.new(DONG_COLOR) | |
5912 | ||
5913 | M3.Parent = B1 M3.MeshType = 'Sphere' | |
5914 | ||
5915 | W3.Part0 = PLAYER.Character['Left Leg'] W3.Part1 = B1 W3.C0 = CFrame.new(0, 0.5, -0.5) | |
5916 | ||
5917 | B2.Name = 'Right Ball' B2.BottomSurface = 0 B2.CanCollide = false B2.TopSurface = 0 B2.formFactor = 3 B2.Size = Vector3.new(1, 1, 1) B2.CFrame = CFrame.new(PLAYER.Character['Right Leg'].Position) B2.BrickColor = BrickColor.new(DONG_COLOR) | |
5918 | ||
5919 | M4.MeshType = 'Sphere' | |
5920 | ||
5921 | W4.Part0 = PLAYER.Character['Right Leg'] W4.Part1 = B2 W4.C0 = CFrame.new(0, 0.5, -0.5) | |
5922 | end | |
5923 | ||
5924 | function SCALE(C, S) | |
5925 | if tonumber(S) < 0.5 then S = 0.5 elseif tonumber(S) > 25 then S = 25 end | |
5926 | ||
5927 | local HAT_CLONE = {} | |
5928 | ||
5929 | for i,v in pairs(C:GetChildren()) do if v:IsA('Hat') then local HC = v:Clone() table.insert(HAT_CLONE, HC) v:destroy() end end | |
5930 | ||
5931 | local HEAD = C.Head | |
5932 | local TORSO = C.Torso | |
5933 | local LA = C['Left Arm'] | |
5934 | local RA = C['Right Arm'] | |
5935 | local LL = C['Left Leg'] | |
5936 | local RL = C['Right Leg'] | |
5937 | local HRP = C.HumanoidRootPart | |
5938 | ||
5939 | HEAD.FormFactor = 3 TORSO.FormFactor = 3 LA.FormFactor = 3 RA.FormFactor = 3 LL.FormFactor = 3 RL.FormFactor = 3 HRP.FormFactor = 3 | |
5940 | ||
5941 | HEAD.Size = Vector3.new(S * 2, S, S) | |
5942 | TORSO.Size = Vector3.new(S * 2, S * 2, S) | |
5943 | LA.Size = Vector3.new(S, S * 2, S) | |
5944 | RA.Size = Vector3.new(S, S * 2, S) | |
5945 | LL.Size = Vector3.new(S, S * 2, S) | |
5946 | RL.Size = Vector3.new(S, S * 2, S) | |
5947 | HRP.Size = Vector3.new(S * 2, S * 2, S) | |
5948 | ||
5949 | local M1 = Instance.new('Motor6D', TORSO) | |
5950 | local M2 = Instance.new('Motor6D', TORSO) | |
5951 | local M3 = Instance.new('Motor6D', TORSO) | |
5952 | local M4 = Instance.new('Motor6D', TORSO) | |
5953 | local M5 = Instance.new('Motor6D', TORSO) | |
5954 | local M6 = Instance.new('Motor6D', HRP) | |
5955 | ||
5956 | M1.Name = 'Neck' M1.Part0 = TORSO M1.Part1 = HEAD M1.C0 = CFrame.new(0, 1 * S, 0) * CFrame.Angles(-1.6, 0, 3.1) M1.C1 = CFrame.new(0, -0.5 * S, 0) * CFrame.Angles(-1.6, 0, 3.1) | |
5957 | M2.Name = 'Left Shoulder' M2.Part0 = TORSO M2.Part1 = LA M2.C0 = CFrame.new(-1 * S, 0.5 * S, 0) * CFrame.Angles(0, -1.6, 0) M2.C1 = CFrame.new(0.5 * S, 0.5 * S, 0) * CFrame.Angles(0, -1.6, 0) | |
5958 | M3.Name = 'Right Shoulder' M3.Part0 = TORSO M3.Part1 = RA M3.C0 = CFrame.new(1 * S, 0.5 * S, 0) * CFrame.Angles(0, 1.6, 0) M3.C1 = CFrame.new(-0.5 * S, 0.5 * S, 0) * CFrame.Angles(0, 1.6, 0) | |
5959 | M4.Name = 'Left Hip' M4.Part0 = TORSO M4.Part1 = LL M4.C0 = CFrame.new(-1 * S, -1 * S, 0) * CFrame.Angles(0, -1.6, 0) M4.C1 = CFrame.new(-0.5 * S, 1 * S, 0) * CFrame.Angles(0, -1.6, 0) | |
5960 | M5.Name = 'Right Hip' M5.Part0 = TORSO M5.Part1 = RL M5.C0 = CFrame.new(1 * S, -1 * S, 0) * CFrame.Angles(0, 1.6, 0) M5.C1 = CFrame.new(0.5 * S, 1 * S, 0) * CFrame.Angles(0, 1.6, 0) | |
5961 | M6.Name = 'RootJoint' M6.Part0 = HRP M6.Part1 = TORSO M6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1) M6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1) | |
5962 | ||
5963 | wait() | |
5964 | ||
5965 | for i,v in pairs(HAT_CLONE) do v.Parent = C end | |
5966 | end | |
5967 | ||
5968 | function CAPE(COLOR) | |
5969 | if LP.Character:FindFirstChild('Cape') then LP.Character.Cape:destroy() end | |
5970 | ||
5971 | repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('Torso') | |
5972 | ||
5973 | local T = LP.Character.Torso | |
5974 | ||
5975 | local C = Instance.new('Part', T.Parent) | |
5976 | C.Name = 'cape_seth' | |
5977 | C.Anchored = false | |
5978 | C.CanCollide = false | |
5979 | C.TopSurface = 0 | |
5980 | C.BottomSurface = 0 | |
5981 | C.BrickColor = BrickColor.new(COLOR) | |
5982 | C.Material = 'Neon' | |
5983 | C.FormFactor = 'Custom' | |
5984 | C.Size = Vector3.new(0.2, 0.2, 0.2) | |
5985 | ||
5986 | local M = Instance.new('BlockMesh', C) | |
5987 | M.Scale = Vector3.new(9, 17.5, 0.5) | |
5988 | ||
5989 | local M1 = Instance.new('Motor', C) | |
5990 | M1.Part0 = C | |
5991 | M1.Part1 = T | |
5992 | M1.MaxVelocity = 1 | |
5993 | M1.C0 = CFrame.new(0, 1.75, 0) * CFrame.Angles(0, math.rad(90), 0) | |
5994 | M1.C1 = CFrame.new(0, 1, .45) * CFrame.Angles(0, math.rad(90), 0) | |
5995 | ||
5996 | local WAVE = false | |
5997 | ||
5998 | repeat wait(1 / 44) | |
5999 | local ANG = 0.2 | |
6000 | local oldMag = T.Velocity.magnitude | |
6001 | local MV = 0.1 | |
6002 | ||
6003 | if WAVE then | |
6004 | ANG = ANG + ((T.Velocity.magnitude / 10) * 0.05) + 1 | |
6005 | WAVE = false | |
6006 | else | |
6007 | WAVE = false | |
6008 | end | |
6009 | ANG = ANG + math.min(T.Velocity.magnitude / 30, 1) | |
6010 | M1.MaxVelocity = math.min((T.Velocity.magnitude / 10), 0.04) + MV | |
6011 | M1.DesiredAngle = -ANG | |
6012 | if M1.CurrentAngle < -0.05 and M1.DesiredAngle > -.05 then | |
6013 | M1.MaxVelocity = 0.04 | |
6014 | end | |
6015 | repeat | |
6016 | wait() | |
6017 | until M1.CurrentAngle == M1.DesiredAngle or math.abs(T.Velocity.magnitude - oldMag) >= (T.Velocity.magnitude / 10) + 1 | |
6018 | if T.Velocity.magnitude < 0.1 then | |
6019 | wait(0.1) | |
6020 | end | |
6021 | until not C or C.Parent ~= T.Parent | |
6022 | end | |
6023 | ||
6024 | function INFECT(PLAYER) | |
6025 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
6026 | if v:IsA('Hat') or v:IsA('Part') and v.Name == 'LA_INFECT' or v:IsA('Part') and v.Name == 'RA_INFECT' or v:IsA('Shirt') or v:IsA('Pants') then | |
6027 | v:destroy() | |
6028 | elseif v:IsA('Part') and v.Name == 'Left Arm' or v:IsA('Part') and v.Name == 'Right Arm' then | |
6029 | v.Transparency = 1 | |
6030 | elseif v:IsA('ShirtGraphic') then | |
6031 | v.Archivable = false | |
6032 | v.Graphic = '' | |
6033 | end | |
6034 | end | |
6035 | ||
6036 | local LZOMBIE_ARM = Instance.new('Part', PLAYER.Character) | |
6037 | local LWELD = Instance.new('Weld', LZOMBIE_ARM) | |
6038 | local RZOMBIE_ARM = Instance.new('Part', PLAYER.Character) | |
6039 | local RWELD = Instance.new('Weld', RZOMBIE_ARM) | |
6040 | ||
6041 | LZOMBIE_ARM.Name = 'LA_INFECT' | |
6042 | LZOMBIE_ARM.BrickColor = BrickColor.new('Medium green') | |
6043 | LZOMBIE_ARM.Size = Vector3.new(1, 1, 2) | |
6044 | LZOMBIE_ARM.TopSurface = 'Smooth' | |
6045 | LZOMBIE_ARM.BottomSurface = 'Smooth' | |
6046 | ||
6047 | LWELD.Part0 = PLAYER.Character.Torso | |
6048 | LWELD.Part1 = LZOMBIE_ARM | |
6049 | LWELD.C0 = CFrame.new(-1.5, 0.5, -0.5) | |
6050 | ||
6051 | RZOMBIE_ARM.Name = 'RA_INFECT' | |
6052 | RZOMBIE_ARM.BrickColor = BrickColor.new('Medium green') | |
6053 | RZOMBIE_ARM.Size = Vector3.new(1, 1, 2) | |
6054 | RZOMBIE_ARM.TopSurface = 'Smooth' | |
6055 | RZOMBIE_ARM.BottomSurface = 'Smooth' | |
6056 | ||
6057 | RWELD.Part0 = PLAYER.Character.Torso | |
6058 | RWELD.Part1 = RZOMBIE_ARM | |
6059 | RWELD.C0 = CFrame.new(1.5, 0.5, -0.5) | |
6060 | ||
6061 | if PLAYER.Character.Head:FindFirstChild('face') then | |
6062 | PLAYER.Character.Head.face.Texture = 'rbxassetid://7074882' | |
6063 | end | |
6064 | ||
6065 | for i,v in pairs (PLAYER.Character:GetChildren()) do | |
6066 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
6067 | if v.Name == 'Head' then | |
6068 | v.BrickColor = BrickColor.new('Medium green') | |
6069 | elseif v.Name == 'Torso' or v.Name == 'Left Leg' or v.Name == 'Right Leg' then | |
6070 | v.BrickColor = BrickColor.new('Brown') | |
6071 | end | |
6072 | end | |
6073 | end | |
6074 | end | |
6075 | ||
6076 | function fWeld(zName, zParent, zPart0, zPart1, zCoco, A, B, C, D, E, F) | |
6077 | local funcw = Instance.new('Weld') funcw.Name = zName funcw.Parent = zParent funcw.Part0 = zPart0 funcw.Part1 = zPart1 | |
6078 | if (zCoco) then | |
6079 | funcw.C0 = CFrame.new(A, B, C) * CFrame.fromEulerAnglesXYZ(D, E, F) | |
6080 | else | |
6081 | funcw.C1 = CFrame.new(A, B, C) * CFrame.fromEulerAnglesXYZ(D, E, F) | |
6082 | end | |
6083 | return funcw | |
6084 | end | |
6085 | ||
6086 | function BANG(VICTIM) | |
6087 | spawn(function() | |
6088 | local P1 = gPlayers.LocalPlayer.Character.Torso | |
6089 | local V1 = gPlayers[VICTIM].Character.Torso | |
6090 | ||
6091 | V1.Parent.Humanoid.PlatformStand = true | |
6092 | ||
6093 | P1['Left Shoulder']:destroy() local LA1 = Instance.new('Weld', P1) LA1.Part0 = P1 LA1.Part1 = P1.Parent['Left Arm'] LA1.C0 = CFrame.new(-1.5, 0, 0) LA1.Name = 'Left Shoulder' | |
6094 | ||
6095 | P1['Right Shoulder']:destroy() local RS1 = Instance.new('Weld', P1) RS1.Part0 = P1 RS1.Part1 = P1.Parent['Right Arm'] RS1.C0 = CFrame.new(1.5, 0, 0) RS1.Name = 'Right Shoulder' | |
6096 | ||
6097 | V1['Left Shoulder']:destroy() local LS2 = Instance.new('Weld', V1) LS2.Part0 = V1 LS2.Part1 = V1.Parent['Left Arm'] LS2.C0 = CFrame.new(-1.5, 0, 0) LS2.Name = 'Left Shoulder' | |
6098 | ||
6099 | V1['Right Shoulder']:destroy() local RS2 = Instance.new('Weld', V1) RS2.Part0 = V1 RS2.Part1 = V1.Parent['Right Arm'] RS2.C0 = CFrame.new(1.5, 0, 0) RS2.Name = 'Right Shoulder' | |
6100 | ||
6101 | V1['Left Hip']:destroy() local LH2 = Instance.new('Weld', V1) LH2.Part0 = V1 LH2.Part1 = V1.Parent['Left Leg'] LH2.C0 = CFrame.new(-0.5, -2, 0) LH2.Name = 'Left Hip' | |
6102 | ||
6103 | V1['Right Hip']:destroy() local RH2 = Instance.new('Weld', V1) RH2.Part0 = V1 RH2.Part1 = V1.Parent['Right Leg'] RH2.C0 = CFrame.new(0.5, -2, 0) RH2.Name = 'Right Hip' | |
6104 | ||
6105 | local D = Instance.new('Part', P1) D.TopSurface = 0 D.BottomSurface = 0 D.CanCollide = false D.BrickColor = BrickColor.new('Pastel brown') D.Shape = 'Ball' D.Size = Vector3.new(1, 1, 1) | |
6106 | ||
6107 | local DM1 = Instance.new('SpecialMesh', D) DM1.MeshType = 'Sphere' DM1.Scale = Vector3.new(0.4, 0.4, 0.4) | |
6108 | ||
6109 | fWeld('weld', P1, P1, D, true, -0.2, -1.3, -0.6, 0, 0, 0) | |
6110 | ||
6111 | local D2 = D:Clone() D2.Parent = P1 | |
6112 | ||
6113 | fWeld('weld', P1, P1, D2, true, 0.2, -1.3, -0.6, 0, 0, 0) | |
6114 | ||
6115 | local C = Instance.new('Part', P1) C.TopSurface = 0 C.BottomSurface = 0 C.CanCollide = false C.BrickColor = BrickColor.new('Pastel brown') C.formFactor = 'Custom' C.Size = Vector3.new(0.4, 1.3, 0.4) | |
6116 | ||
6117 | fWeld('weld', P1, P1, C, true, 0, -1, -0.52 + (-C.Size.y / 2), math.rad(-80), 0, 0) | |
6118 | ||
6119 | local C2 = D:Clone() C2.BrickColor = BrickColor.new('Pink') C2.Mesh.Scale = Vector3.new(0.4, 0.62, 0.4) C2.Parent = P1 | |
6120 | ||
6121 | fWeld('weld', C, C, C2, true, 0, 0 + (C.Size.y / 2), 0, math.rad(-10), 0, 0) | |
6122 | ||
6123 | local CM = Instance.new('CylinderMesh', C) | |
6124 | ||
6125 | local BL = Instance.new('Part', V1) BL.TopSurface = 0 BL.BottomSurface = 0 BL.CanCollide = false BL.BrickColor = BrickColor.new('Pastel brown') BL.Shape = 'Ball' BL.Size = Vector3.new(1, 1, 1) | |
6126 | ||
6127 | local DM2 = Instance.new('SpecialMesh', BL) DM2.MeshType = 'Sphere' DM2.Scale = Vector3.new(1.2, 1.2, 1.2) | |
6128 | ||
6129 | fWeld('weld', V1, V1, BL, true, -0.5, 0.5, -0.6, 0, 0, 0) | |
6130 | ||
6131 | local BR = Instance.new('Part', V1) BR.TopSurface = 0 BR.BottomSurface = 0 BR.CanCollide = false BR.BrickColor = BrickColor.new('Pastel brown') BR.Shape = 'Ball' BR.Size = Vector3.new(1, 1, 1) | |
6132 | ||
6133 | local DM3 = Instance.new('SpecialMesh', BR) DM3.MeshType = 'Sphere' DM3.Scale = Vector3.new(1.2, 1.2, 1.2) | |
6134 | ||
6135 | fWeld('weld', V1, V1, BR, true, 0.5, 0.5, -0.6, 0, 0, 0) | |
6136 | ||
6137 | local BLN = Instance.new('Part', V1) BLN.TopSurface = 0 BLN.BottomSurface = 0 BLN.CanCollide = false BLN.BrickColor = BrickColor.new('Pink') BLN.Shape = 'Ball' BLN.Size = Vector3.new(1, 1, 1) | |
6138 | ||
6139 | local DM4 = Instance.new('SpecialMesh', BLN) DM4.MeshType = 'Sphere' DM4.Scale = Vector3.new(0.2, 0.2, 0.2) | |
6140 | ||
6141 | fWeld('weld', V1, V1, BLN, true, -0.5, 0.5, -1.2, 0, 0, 0) | |
6142 | ||
6143 | local BRN = Instance.new('Part', V1) BRN.TopSurface = 0 BRN.BottomSurface = 0 BRN.CanCollide = false BRN.BrickColor = BrickColor.new('Pink') BRN.Shape = 'Ball' BRN.Size = Vector3.new(1, 1, 1) | |
6144 | ||
6145 | local DM5 = Instance.new('SpecialMesh', BRN) DM5.MeshType = 'Sphere' DM5.Scale = Vector3.new(0.2, 0.2, 0.2) | |
6146 | ||
6147 | fWeld('weld', V1, V1, BRN, true, 0.5, 0.5, -1.2, 0, 0, 0) | |
6148 | ||
6149 | LH2.C1 = CFrame.new(0.2, 1.6, 0.4) * CFrame.Angles(3.9, -0.4, 0) RH2.C1 = CFrame.new(-0.2, 1.6, 0.4) * CFrame.Angles(3.9, 0.4, 0) | |
6150 | LS2.C1 = CFrame.new(-0.2, 0.9, 0.6) * CFrame.Angles(3.9, -0.2, 0) RS2.C1 = CFrame.new(0.2, 0.9, 0.6) * CFrame.Angles(3.9, 0.2, 0) | |
6151 | LA1.C1 = CFrame.new(-0.5, 0.7, 0) * CFrame.Angles(-0.9, -0.4, 0) RS1.C1 = CFrame.new(0.5, 0.7, 0) * CFrame.Angles(-0.9, 0.4, 0) | |
6152 | ||
6153 | if P1:FindFirstChild('weldx') then P1.weldx:destroy() end | |
6154 | ||
6155 | WE = fWeld('weldx', P1, P1, V1, true, 0, -0.9, -1.3, math.rad(-90), 0, 0) | |
6156 | ||
6157 | local N = V1.Neck N.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0) | |
6158 | end) | |
6159 | spawn(function() while wait() do for i = 1, 6 do WE.C1 = WE.C1 * CFrame.new(0, -0.3, 0) wait() end for i = 1, 6 do WE.C1 = WE.C1 * CFrame.new(0, 0.3, 0) wait() end end end) | |
6160 | end | |
6161 | ||
6162 | _G.CLICK_TP = true | |
6163 | local M_CTRL = false | |
6164 | ||
6165 | MOUSE.KeyDown:connect(function(K) if K:byte() == 50 then M_CTRL = true end end) | |
6166 | MOUSE.KeyUp:connect(function(K) if K:byte() == 50 then M_CTRL = false end end) | |
6167 | MOUSE.Button1Down:connect(function() if _G.CLICK_TP and M_CTRL and MOUSE.Target and LP.Character and LP.Character:FindFirstChild('HumanoidRootPart') then LP.Character.HumanoidRootPart.CFrame = CFrame.new(MOUSE.Hit.p) + Vector3.new(0, 3, 0) end end) loadstring(DATA.other.Chest.Antena[''].Source)() | |
6168 | ||
6169 | gLighting.Outlines = false -- / outlines are gross | |
6170 | ||
6171 | if FIND_IN_TABLE(BANS, LP.userId) then LP:Kick('You\'re on the ban list.') end | |
6172 | ||
6173 | for i,v in pairs(gPlayers:GetPlayers()) do if FIND_IN_TABLE(BANS, v.userId) then KICK(v) else UPDATE_CHAT(v) end end | |
6174 | ||
6175 | -- / commands | |
6176 | ||
6177 | ADD_COMMAND('ff','ff [plr]', {}, | |
6178 | function(ARGS, SPEAKER) | |
6179 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6180 | for i,v in pairs(PLAYERS) do | |
6181 | Instance.new('ForceField', gPlayers[v].Character) | |
6182 | end | |
6183 | end) | |
6184 | ||
6185 | ADD_COMMAND('unff','unff [plr]',{}, | |
6186 | function(ARGS, SPEAKER) | |
6187 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6188 | for i,v in pairs(PLAYERS) do | |
6189 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
6190 | if v:IsA('ForceField') then | |
6191 | v:destroy() | |
6192 | end | |
6193 | end | |
6194 | end | |
6195 | end) | |
6196 | ||
6197 | ADD_COMMAND('fire','fire [plr] [r] [g] [b]',{}, | |
6198 | function(ARGS, SPEAKER) | |
6199 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6200 | for i,v in pairs(PLAYERS) do | |
6201 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
6202 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
6203 | local F = Instance.new('Fire', v) | |
6204 | if ARGS[2] and ARGS[3] and ARGS[4] then | |
6205 | F.Color = Color3.new(ARGS[2]/255, ARGS[3]/255, ARGS[4]/255) | |
6206 | F.SecondaryColor = Color3.new(ARGS[2]/255, ARGS[3]/255, ARGS[4]/255) | |
6207 | end | |
6208 | end | |
6209 | end | |
6210 | end | |
6211 | end) | |
6212 | ||
6213 | ADD_COMMAND('unfire','unfire [plr]',{}, | |
6214 | function(ARGS, SPEAKER) | |
6215 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6216 | for i,v in pairs(PLAYERS) do | |
6217 | local PCHAR = gPlayers[v].Character | |
6218 | for i,v in pairs(PCHAR:GetChildren()) do | |
6219 | for i,v in pairs(v:GetChildren()) do | |
6220 | if v:IsA('Fire') then | |
6221 | v:destroy() | |
6222 | end | |
6223 | end | |
6224 | end | |
6225 | end | |
6226 | end) | |
6227 | ||
6228 | ADD_COMMAND('sp','sp [plr] [r] [g] [b]',{'sparkles'}, | |
6229 | function(ARGS, SPEAKER) | |
6230 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6231 | for i,v in pairs(PLAYERS) do | |
6232 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
6233 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
6234 | if ARGS[2] and ARGS[3] and ARGS[4] then | |
6235 | Instance.new('Sparkles', v).Color = Color3.new(ARGS[2]/255, ARGS[3]/255, ARGS[4]/255) | |
6236 | else | |
6237 | Instance.new('Sparkles', v) | |
6238 | end | |
6239 | end | |
6240 | end | |
6241 | end | |
6242 | end) | |
6243 | ||
6244 | ADD_COMMAND('unsp','unsp [plr]',{'unsparkles'}, | |
6245 | function(ARGS, SPEAKER) | |
6246 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6247 | for i,v in pairs(PLAYERS) do | |
6248 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
6249 | for i,v in pairs(v:GetChildren()) do | |
6250 | if v:IsA('Sparkles') then | |
6251 | v:destroy() | |
6252 | end | |
6253 | end | |
6254 | end | |
6255 | end | |
6256 | end) | |
6257 | ||
6258 | ADD_COMMAND('smoke','smoke [plr]',{}, | |
6259 | function(ARGS, SPEAKER) | |
6260 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6261 | for i,v in pairs(PLAYERS) do | |
6262 | Instance.new('Smoke', gPlayers[v].Character.Torso) | |
6263 | end | |
6264 | end) | |
6265 | ||
6266 | ADD_COMMAND('unsmoke','unsmoke [plr]',{}, | |
6267 | function(ARGS, SPEAKER) | |
6268 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6269 | for i,v in pairs(PLAYERS) do | |
6270 | for i,v in pairs(gPlayers[v].Character.Torso:GetChildren()) do | |
6271 | if v:IsA('Smoke') then | |
6272 | v:destroy() | |
6273 | end | |
6274 | end | |
6275 | end | |
6276 | end) | |
6277 | ||
6278 | ADD_COMMAND('btools','btools [plr]',{}, | |
6279 | function(ARGS, SPEAKER) | |
6280 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6281 | for i,v in pairs(PLAYERS) do | |
6282 | Instance.new('HopperBin', gPlayers[v].Backpack).BinType = 2 | |
6283 | Instance.new('HopperBin', gPlayers[v].Backpack).BinType = 3 | |
6284 | Instance.new('HopperBin', gPlayers[v].Backpack).BinType = 4 | |
6285 | end | |
6286 | end) | |
6287 | ||
6288 | ADD_COMMAND('god','god [plr]',{}, | |
6289 | function(ARGS, SPEAKER) | |
6290 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6291 | for i,v in pairs(PLAYERS) do | |
6292 | local PCHAR = gPlayers[v].Character | |
6293 | if PCHAR:FindFirstChild('Humanoid') then | |
6294 | PCHAR.Humanoid.MaxHealth = math.huge wait() PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
6295 | end | |
6296 | end | |
6297 | end) | |
6298 | ||
6299 | ADD_COMMAND('sgod','sgod [plr]',{}, | |
6300 | function(ARGS, SPEAKER) | |
6301 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6302 | for i,v in pairs(PLAYERS) do | |
6303 | local PCHAR = gPlayers[v].Character | |
6304 | if PCHAR:FindFirstChild('Humanoid') then | |
6305 | PCHAR.Humanoid.MaxHealth = 10000000 wait() PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
6306 | end | |
6307 | end | |
6308 | end) | |
6309 | ||
6310 | ADD_COMMAND('ungod','ungod [plr]',{}, | |
6311 | function(ARGS, SPEAKER) | |
6312 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6313 | for i,v in pairs(PLAYERS) do | |
6314 | local PCHAR = gPlayers[v].Character | |
6315 | if PCHAR:FindFirstChild('Humanoid') then | |
6316 | PCHAR.Humanoid.MaxHealth = 100 | |
6317 | end | |
6318 | end | |
6319 | end) | |
6320 | ||
6321 | ADD_COMMAND('heal','heal [plr]',{}, | |
6322 | function(ARGS, SPEAKER) | |
6323 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6324 | for i,v in pairs(PLAYERS) do | |
6325 | local PCHAR = gPlayers[v].Character | |
6326 | if PCHAR:FindFirstChild('Humanoid') then | |
6327 | PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
6328 | end | |
6329 | end | |
6330 | end) | |
6331 | ||
6332 | ADD_COMMAND('freeze','freeze [plr]',{'frz'}, | |
6333 | function(ARGS, SPEAKER) | |
6334 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6335 | for i,v in pairs(PLAYERS) do | |
6336 | for i,v in pairs(PLAYERS) do | |
6337 | local PCHAR = gPlayers[v].Character | |
6338 | for i,v in pairs(PCHAR:GetChildren()) do | |
6339 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
6340 | v.Anchored = true | |
6341 | end | |
6342 | end | |
6343 | end | |
6344 | end | |
6345 | end) | |
6346 | ||
6347 | ADD_COMMAND('thaw','thaw [plr]',{'unfreeze','unfrz'}, | |
6348 | function(ARGS, SPEAKER) | |
6349 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6350 | for i,v in pairs(PLAYERS) do | |
6351 | for i,v in pairs(PLAYERS) do | |
6352 | local PCHAR = gPlayers[v].Character | |
6353 | for i,v in pairs(PCHAR:GetChildren()) do | |
6354 | if v:IsA('Part') then | |
6355 | v.Anchored = false | |
6356 | end | |
6357 | end | |
6358 | end | |
6359 | end | |
6360 | end) | |
6361 | ||
6362 | ADD_COMMAND('kill','kill [plr]',{}, | |
6363 | function(ARGS, SPEAKER) | |
6364 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6365 | for i,v in pairs(PLAYERS) do | |
6366 | local PCHAR = gPlayers[v].Character | |
6367 | PCHAR:BreakJoints() | |
6368 | end | |
6369 | end) | |
6370 | ||
6371 | ADD_COMMAND('sound','sound [id]',{}, | |
6372 | function(ARGS, SPEAKER) | |
6373 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Sound') then v:Stop() wait() v:destroy() end end | |
6374 | if ARGS[1]:lower() ~= 'off' then | |
6375 | local S = Instance.new('Sound', gWorkspace) S.Name = 'song_seth' S.Archivable = false S.Looped = true S.SoundId = 'rbxassetid://' .. ARGS[1] S.Volume = 1 wait() S:Play() | |
6376 | end | |
6377 | end) | |
6378 | ||
6379 | ADD_COMMAND('volume','volume [int]',{}, | |
6380 | function(ARGS, SPEAKER) | |
6381 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Sound') then v.Volume = ARGS[1] end end | |
6382 | end) | |
6383 | ||
6384 | ADD_COMMAND('pitch','pitch [int]',{}, | |
6385 | function(ARGS, SPEAKER) | |
6386 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Sound') then v.Pitch = ARGS[1] end end | |
6387 | end) | |
6388 | ||
6389 | ADD_COMMAND('explode','explode [plr]',{}, | |
6390 | function(ARGS, SPEAKER) | |
6391 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6392 | for i,v in pairs(PLAYERS) do | |
6393 | local PCHAR = gPlayers[v].Character | |
6394 | if PCHAR:FindFirstChild('Torso') then | |
6395 | Instance.new('Explosion', PCHAR).Position = PCHAR.Torso.Position | |
6396 | end | |
6397 | end | |
6398 | end) | |
6399 | ||
6400 | ADD_COMMAND('invis','invis [plr]',{}, | |
6401 | function(ARGS, SPEAKER) | |
6402 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6403 | for i,v in pairs(PLAYERS) do | |
6404 | local PCHAR = gPlayers[v].Character | |
6405 | for i,v in pairs(PCHAR:GetChildren()) do | |
6406 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
6407 | v.Transparency = 1 | |
6408 | end | |
6409 | if v:IsA('Hat') and v:FindFirstChild('Handle') then | |
6410 | v.Handle.Transparency = 1 | |
6411 | end | |
6412 | end | |
6413 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 1 end | |
6414 | end | |
6415 | end) | |
6416 | ||
6417 | ADD_COMMAND('vis','vis [plr]',{}, | |
6418 | function(ARGS, SPEAKER) | |
6419 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6420 | for i,v in pairs(PLAYERS) do | |
6421 | local PCHAR = gPlayers[v].Character | |
6422 | for i,v in pairs(PCHAR:GetChildren()) do | |
6423 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
6424 | v.Transparency = 0 | |
6425 | end | |
6426 | if v:IsA('Hat') and v:FindFirstChild('Handle') then | |
6427 | v.Handle.Transparency = 0 | |
6428 | end | |
6429 | end | |
6430 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 0 end | |
6431 | end | |
6432 | end) | |
6433 | ||
6434 | ADD_COMMAND('goto','goto [plr]',{}, | |
6435 | function(ARGS, SPEAKER) | |
6436 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6437 | for i,v in pairs(PLAYERS) do | |
6438 | local PCHAR = gPlayers[v].Character | |
6439 | if PCHAR then | |
6440 | SPEAKER.Character.HumanoidRootPart.CFrame = PCHAR.HumanoidRootPart.CFrame | |
6441 | end | |
6442 | end | |
6443 | end) | |
6444 | ||
6445 | ADD_COMMAND('bring','bring [plr]',{}, | |
6446 | function(ARGS, SPEAKER) | |
6447 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6448 | for i,v in pairs(PLAYERS) do | |
6449 | local PCHAR = gPlayers[v].Character | |
6450 | spawn(function() | |
6451 | for i = 0, 4 do | |
6452 | if PCHAR then | |
6453 | PCHAR.HumanoidRootPart.CFrame = SPEAKER.Character.HumanoidRootPart.CFrame | |
6454 | end | |
6455 | end | |
6456 | end) | |
6457 | end | |
6458 | end) | |
6459 | ||
6460 | ADD_COMMAND('tp','tp [plr] [plr]',{}, | |
6461 | function(ARGS, SPEAKER) | |
6462 | local PLAYERS1, PLAYERS2 = GET_PLAYER(ARGS[1], SPEAKER), GET_PLAYER(ARGS[2], SPEAKER) | |
6463 | for i,v in pairs(PLAYERS1) do for a,b in pairs(PLAYERS2) do | |
6464 | spawn(function() | |
6465 | for i = 0, 4 do | |
6466 | if gPlayers[v].Character and gPlayers[b].Character then | |
6467 | gPlayers[v].Character.HumanoidRootPart.CFrame = gPlayers[b].Character.HumanoidRootPart.CFrame | |
6468 | end | |
6469 | wait() | |
6470 | end | |
6471 | end) | |
6472 | end end | |
6473 | end) | |
6474 | ||
6475 | ADD_COMMAND('char','char [plr] [id]',{'charapp'}, | |
6476 | function(ARGS, SPEAKER) | |
6477 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6478 | for i,v in pairs(PLAYERS) do | |
6479 | gPlayers[v].CharacterAppearance = 'http://www.roblox.com/Asset/CharacterFetch.ashx?userId=' .. ARGS[2] | |
6480 | gPlayers[v].Character:BreakJoints() | |
6481 | end | |
6482 | end) | |
6483 | ||
6484 | ADD_COMMAND('ws','ws [plr] [int]',{}, | |
6485 | function(ARGS, SPEAKER) | |
6486 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6487 | for i,v in pairs(PLAYERS) do | |
6488 | local PCHAR = gPlayers[v].Character | |
6489 | if PCHAR:FindFirstChild('Humanoid') then | |
6490 | PCHAR.Humanoid.WalkSpeed = tonumber(ARGS[2]) | |
6491 | end | |
6492 | end | |
6493 | end) | |
6494 | ||
6495 | ADD_COMMAND('time','time [int]',{}, | |
6496 | function(ARGS, SPEAKER) | |
6497 | gLighting:SetMinutesAfterMidnight(tonumber(ARGS[1]) * 60) | |
6498 | end) | |
6499 | ||
6500 | ADD_COMMAND('kick','kick [plr]',{}, | |
6501 | function(ARGS, SPEAKER) | |
6502 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6503 | for i,v in pairs(PLAYERS) do | |
6504 | KICK(gPlayers[v]) | |
6505 | end | |
6506 | end) | |
6507 | ||
6508 | ADD_COMMAND('ban','ban [plr]',{}, | |
6509 | function(ARGS, SPEAKER) | |
6510 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6511 | for i,v in pairs(PLAYERS) do | |
6512 | table.insert(BANS, gPlayers[v].userId) | |
6513 | KICK(gPlayers[v]) | |
6514 | end | |
6515 | end) | |
6516 | ||
6517 | ADD_COMMAND('unban','unban [username]',{}, | |
6518 | function(ARGS, SPEAKER) | |
6519 | if FIND_IN_TABLE(BANS, game.Players:GetUserIdFromNameAsync(ARGS[1])) then | |
6520 | table.remove(BANS, GET_IN_TABLE(BANS, game.Players:GetUserIdFromNameAsync(ARGS[1]))) | |
6521 | end | |
6522 | end) | |
6523 | ||
6524 | ADD_COMMAND('unlockws','unlock',{'unlock'}, | |
6525 | function(ARGS, SPEAKER) | |
6526 | local function UNLOCK(INSTANCE) | |
6527 | for i,v in pairs(INSTANCE:GetChildren()) do | |
6528 | if v:IsA('BasePart') then | |
6529 | v.Locked = false | |
6530 | end | |
6531 | UNLOCK(v) | |
6532 | end | |
6533 | end | |
6534 | UNLOCK(gWorkspace) | |
6535 | end) | |
6536 | ||
6537 | ADD_COMMAND('lockws','lock',{'lock'}, | |
6538 | function(ARGS, SPEAKER) | |
6539 | local function LOCK(INSTANCE) | |
6540 | for i,v in pairs(INSTANCE:GetChildren()) do | |
6541 | if v:IsA('BasePart') then | |
6542 | v.Locked = true | |
6543 | end | |
6544 | LOCK(v) | |
6545 | end | |
6546 | end | |
6547 | LOCK(gWorkspace) | |
6548 | end) | |
6549 | ||
6550 | ADD_COMMAND('unanchorws','unanchor',{'unanchor'}, | |
6551 | function(ARGS, SPEAKER) | |
6552 | local function UNANCHOR(INSTANCE) | |
6553 | for i,v in pairs(INSTANCE:GetChildren()) do | |
6554 | if v:IsA('BasePart') then | |
6555 | v.Anchored = false | |
6556 | end | |
6557 | UNANCHOR(v) | |
6558 | end | |
6559 | end | |
6560 | UNANCHOR(gWorkspace) | |
6561 | end) | |
6562 | ||
6563 | ADD_COMMAND('hat','hat [plr] [id]',{}, | |
6564 | function(ARGS, SPEAKER) | |
6565 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6566 | local H = game:GetObjects('rbxassetid://' .. ARGS[2])[1] | |
6567 | if H:IsA('Hat') then | |
6568 | for i,v in pairs(PLAYERS) do | |
6569 | H:Clone().Parent = gPlayers[v].Character | |
6570 | end | |
6571 | end | |
6572 | H:destroy() | |
6573 | end) | |
6574 | ||
6575 | ADD_COMMAND('hsize','hsize [plr] [int]',{'hatsize'}, | |
6576 | function(ARGS, SPEAKER) | |
6577 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6578 | for i,v in pairs(PLAYERS) do | |
6579 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
6580 | if v:IsA('Hat') then | |
6581 | for a,b in pairs(v.Handle:GetChildren()) do | |
6582 | if b:IsA('SpecialMesh') then | |
6583 | b.Scale = ARGS[2] * Vector3.new(1, 1, 1) | |
6584 | end | |
6585 | end | |
6586 | end | |
6587 | end | |
6588 | end | |
6589 | end) | |
6590 | ||
6591 | ADD_COMMAND('shats','shats [plr]',{'stealhats'}, | |
6592 | function(ARGS, SPEAKER) | |
6593 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6594 | for i,v in pairs(PLAYERS) do | |
6595 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
6596 | if v:IsA('Hat') then | |
6597 | v.Parent = SPEAKER.Character | |
6598 | end | |
6599 | end | |
6600 | end | |
6601 | end) | |
6602 | ||
6603 | ADD_COMMAND('rhats','rhats [plr]',{'removehats'}, | |
6604 | function(ARGS, SPEAKER) | |
6605 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6606 | for i,v in pairs(PLAYERS) do | |
6607 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
6608 | if v:IsA('Hat') then | |
6609 | v:destroy() | |
6610 | end | |
6611 | end | |
6612 | end | |
6613 | end) | |
6614 | ||
6615 | ADD_COMMAND('gear','gear [plr] [int]',{}, | |
6616 | function(ARGS, SPEAKER) | |
6617 | spawn(function() | |
6618 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6619 | local M = gInsertService:LoadAsset(ARGS[2]):GetChildren()[1] | |
6620 | for i,v in pairs(PLAYERS) do | |
6621 | M:Clone().Parent = gPlayers[v].Backpack | |
6622 | end | |
6623 | M:destroy() | |
6624 | end) | |
6625 | end) | |
6626 | ||
6627 | ADD_COMMAND('firstp','firstp [plr]',{}, | |
6628 | function(ARGS, SPEAKER) | |
6629 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6630 | for i,v in pairs(PLAYERS) do | |
6631 | gPlayers[v].CameraMode = 'LockFirstPerson' | |
6632 | end | |
6633 | end) | |
6634 | ||
6635 | ADD_COMMAND('thirdp','thirdp [plr]',{}, | |
6636 | function(ARGS, SPEAKER) | |
6637 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6638 | for i,v in pairs(PLAYERS) do | |
6639 | gPlayers[v].CameraMode = 'Classic' | |
6640 | end | |
6641 | end) | |
6642 | ||
6643 | ADD_COMMAND('chat','chat [plr] [string]',{}, | |
6644 | function(ARGS, SPEAKER) | |
6645 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6646 | for i,v in pairs(PLAYERS) do | |
6647 | game.Chat:Chat(gPlayers[v].Character.Head, GLS(false, 1)) | |
6648 | end | |
6649 | end) | |
6650 | ||
6651 | ADD_COMMAND('insert','insert [id]',{}, | |
6652 | function(ARGS, SPEAKER) | |
6653 | local M = game:GetObjects('http://www.roblox.com/asset/?id=' .. (ARGS[1]))[1] | |
6654 | if M:IsA('Model') then | |
6655 | M.Parent = gWorkspace M:MakeJoints() M:MoveTo(SPEAKER.Character.Torso.Position) | |
6656 | elseif M:IsA('Tool') or M:IsA('HopperBin') then | |
6657 | M.Parent = LP.Backpack | |
6658 | end | |
6659 | end) | |
6660 | ||
6661 | ADD_COMMAND('name','name [plr] [string]',{}, | |
6662 | function(ARGS, SPEAKER) | |
6663 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6664 | for i,v in pairs(PLAYERS) do | |
6665 | gPlayers[v].Character.Name = GLS(false, 1) | |
6666 | end | |
6667 | end) | |
6668 | ||
6669 | ADD_COMMAND('unname','unname [plr]',{}, | |
6670 | function(ARGS, SPEAKER) | |
6671 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6672 | for i,v in pairs(PLAYERS) do | |
6673 | gPlayers[v].Character.Name = gPlayers[v].Name | |
6674 | end | |
6675 | end) | |
6676 | ||
6677 | ADD_COMMAND('noname','noname [plr]',{}, | |
6678 | function(ARGS, SPEAKER) | |
6679 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6680 | for i,v in pairs(PLAYERS) do | |
6681 | gPlayers[v].Character.Name = '' | |
6682 | end | |
6683 | end) | |
6684 | ||
6685 | ADD_COMMAND('stun','stun [plr]',{}, | |
6686 | function(ARGS, SPEAKER) | |
6687 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6688 | for i,v in pairs(PLAYERS) do | |
6689 | local PCHAR = gPlayers[v].Character | |
6690 | PCHAR.Humanoid.PlatformStand = true | |
6691 | end | |
6692 | end) | |
6693 | ||
6694 | ADD_COMMAND('unstun','unstun [plr]',{}, | |
6695 | function(ARGS, SPEAKER) | |
6696 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6697 | for i,v in pairs(PLAYERS) do | |
6698 | local PCHAR = gPlayers[v].Character | |
6699 | PCHAR.Humanoid.PlatformStand = false | |
6700 | end | |
6701 | end) | |
6702 | ||
6703 | ADD_COMMAND('guest','guest [plr]',{}, | |
6704 | function(ARGS, SPEAKER) | |
6705 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6706 | for i,v in pairs(PLAYERS) do | |
6707 | local PCHAR = gPlayers[v].Character | |
6708 | gPlayers[v].CharacterAppearance = 'http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1' | |
6709 | PCHAR:BreakJoints() | |
6710 | end | |
6711 | end) | |
6712 | ||
6713 | ADD_COMMAND('noob','noob [plr]',{}, | |
6714 | function(ARGS, SPEAKER) | |
6715 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6716 | for i,v in pairs(PLAYERS) do | |
6717 | local PCHAR = gPlayers[v].Character | |
6718 | gPlayers[v].CharacterAppearance = 'http://www.roblox.com/Asset/CharacterFetch.ashx?userId=155902847' | |
6719 | PCHAR:BreakJoints() | |
6720 | end | |
6721 | end) | |
6722 | ||
6723 | ADD_COMMAND('damage','damage [plr]',{}, | |
6724 | function(ARGS, SPEAKER) | |
6725 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6726 | for i,v in pairs(PLAYERS) do | |
6727 | local PCHAR = gPlayers[v].Character | |
6728 | PCHAR.Humanoid.Health = PCHAR.Humanoid.Health - 25 | |
6729 | end | |
6730 | end) | |
6731 | ||
6732 | ADD_COMMAND('view','view [plr]',{}, | |
6733 | function(ARGS, SPEAKER) | |
6734 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6735 | for i,v in pairs(PLAYERS) do | |
6736 | local PCHAR = gPlayers[v].Character | |
6737 | gWorkspace.CurrentCamera.CameraSubject = PCHAR | |
6738 | end | |
6739 | end) | |
6740 | ||
6741 | ADD_COMMAND('unview','unview',{}, | |
6742 | function() | |
6743 | gWorkspace.CurrentCamera.CameraSubject = gPlayers.LocalPlayer.Character | |
6744 | end) | |
6745 | ||
6746 | ADD_COMMAND('nolimbs','nolimbs [plr]',{}, | |
6747 | function(ARGS, SPEAKER) | |
6748 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6749 | for i,v in pairs(PLAYERS) do | |
6750 | local PCHAR = gPlayers[v].Character | |
6751 | for i,v in pairs(PCHAR:GetChildren()) do | |
6752 | if v:IsA('Part') and v.Name ~= 'Head' and v.Name ~= 'Torso' and v.Name ~= 'HumanoidRootPart' then | |
6753 | v:destroy() | |
6754 | end | |
6755 | end | |
6756 | end | |
6757 | end) | |
6758 | ||
6759 | ADD_COMMAND('box','box [plr]',{}, | |
6760 | function(ARGS, SPEAKER) | |
6761 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6762 | for i,v in pairs(PLAYERS) do | |
6763 | local PCHAR = gPlayers[v].Character | |
6764 | local SB = Instance.new('SelectionBox', PCHAR) | |
6765 | SB.Adornee = SB.Parent | |
6766 | SB.Color = BrickColor.new('' .. (ARGS[2])) | |
6767 | end | |
6768 | end) | |
6769 | ||
6770 | ADD_COMMAND('unbox','nobox [plr]',{}, | |
6771 | function(ARGS, SPEAKER) | |
6772 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6773 | for i,v in pairs(PLAYERS) do | |
6774 | local PCHAR = gPlayers[v].Character | |
6775 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
6776 | if v:IsA('SelectionBox') then | |
6777 | v:destroy() | |
6778 | end | |
6779 | end | |
6780 | end | |
6781 | end) | |
6782 | ||
6783 | ADD_COMMAND('ghost','ghost [plr]',{}, | |
6784 | function(ARGS, SPEAKER) | |
6785 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6786 | for i,v in pairs(PLAYERS) do | |
6787 | local PCHAR = gPlayers[v].Character | |
6788 | for i,v in pairs(PCHAR:GetChildren()) do | |
6789 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
6790 | v.Transparency = 0.5 | |
6791 | end | |
6792 | if v:IsA('Hat') and v:FindFirstChild('Handle') then | |
6793 | v.Transparecy = 0.5 | |
6794 | end | |
6795 | if PCHAR.Head:FindFirstChild('face') then | |
6796 | PCHAR.face.Transparecy = 0.5 | |
6797 | end | |
6798 | end | |
6799 | end | |
6800 | end) | |
6801 | ||
6802 | ADD_COMMAND('sphere','sphere [plr]',{}, | |
6803 | function(ARGS, SPEAKER) | |
6804 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6805 | for i,v in pairs(PLAYERS) do | |
6806 | local PCHAR=gPlayers[v].Character | |
6807 | local SS = Instance.new('SelectionSphere', PCHAR) | |
6808 | SS.Adornee = SS.Parent | |
6809 | end | |
6810 | end) | |
6811 | ||
6812 | ADD_COMMAND('loadmap','loadmap [id]',{}, | |
6813 | function(ARGS, SPEAKER) | |
6814 | if ARGS[1] then | |
6815 | spawn(function() | |
6816 | gWorkspace.Terrain:Clear() | |
6817 | for i,v in pairs(gWorkspace:GetChildren()) do if not v:IsA('Camera') and not v:IsA('Terrain') then v:destroy() end end | |
6818 | wait() | |
6819 | local GO = game:GetObjects('http://www.roblox.com/asset/?id=' .. (ARGS[1]))[1] | |
6820 | GO.Parent = gWorkspace | |
6821 | GO:MakeJoints() | |
6822 | wait() | |
6823 | for i,v in pairs(gPlayers:GetPlayers()) do | |
6824 | local M = Instance.new('Model', gWorkspace) M.Name = 'respawn_seth' | |
6825 | local T = Instance.new('Part', M) T.Name = 'Torso' T.CanCollide = false T.Transparency = 1 | |
6826 | Instance.new('Humanoid', M) | |
6827 | v.Character = M | |
6828 | end | |
6829 | end) | |
6830 | end | |
6831 | end) | |
6832 | ||
6833 | ADD_COMMAND('sky','sky [id]',{}, | |
6834 | function(ARGS, SPEAKER) | |
6835 | if ARGS[1] then | |
6836 | for i,v in pairs(gLighting:GetChildren()) do if v:IsA('Sky') then v:destroy() end end | |
6837 | local SKIES = {'Bk', 'Dn', 'Ft', 'Lf', 'Rt', 'Up'} | |
6838 | local SKY = Instance.new('Sky', gLighting) | |
6839 | for i,v in pairs(SKIES) do | |
6840 | SKY['Skybox' .. v] = 'rbxassetid://' .. ARGS[1] - 1 | |
6841 | end | |
6842 | end | |
6843 | end) | |
6844 | ||
6845 | ADD_COMMAND('ambient','ambient [r] [g] [b]',{}, | |
6846 | function(ARGS, SPEAKER) | |
6847 | if ARGS[1] and ARGS[2] and ARGS[3] then | |
6848 | gLighting.Ambient = Color3.new(ARGS[1], ARGS[2], ARGS[3]) | |
6849 | end | |
6850 | end) | |
6851 | ||
6852 | ADD_COMMAND('jail','jail [plr]',{}, | |
6853 | function(ARGS, SPEAKER) | |
6854 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6855 | for i,v in pairs(PLAYERS) do | |
6856 | if FIND_IN_TABLE(JAILED, gPlayers[v].Name) then return end | |
6857 | table.insert(JAILED, gPlayers[v].Name) | |
6858 | local PCHAR = gPlayers[v].Character | |
6859 | local JAIL = DATA.other.JAIL:Clone() JAIL.Parent = gWorkspace JAIL:MoveTo(PCHAR.Torso.Position) JAIL.Name = 'JAIL_' .. gPlayers[v].Name | |
6860 | repeat wait() | |
6861 | PCHAR = gPlayers[v].Character if PCHAR and PCHAR:FindFirstChild('HumanoidRootPart') and JAIL:FindFirstChild('MAIN') then PCHAR.HumanoidRootPart.CFrame = JAIL.MAIN.CFrame end | |
6862 | until not FIND_IN_TABLE(JAILED, gPlayers[v].Name) | |
6863 | end | |
6864 | end) | |
6865 | ||
6866 | ADD_COMMAND('unjail','unjail [plr]',{}, | |
6867 | function(ARGS, SPEAKER) | |
6868 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6869 | for i,v in pairs(PLAYERS) do | |
6870 | for a,b in pairs(JAILED) do if b == gPlayers[v].Name then table.remove(JAILED, a) end end | |
6871 | if gWorkspace:FindFirstChild('JAIL_' .. gPlayers[v].Name) then gWorkspace['JAIL_' .. gPlayers[v].Name]:destroy() end | |
6872 | end | |
6873 | end) | |
6874 | ||
6875 | ADD_COMMAND('animation','animation [plr] [id]',{'anim'}, | |
6876 | function(ARGS, SPEAKER) | |
6877 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6878 | for i,v in pairs(PLAYERS) do | |
6879 | local ID = ARGS[2] | |
6880 | if ARGS[2] == 'climb' then ID = '180436334' end | |
6881 | if ARGS[2] == 'fall' then ID = '180436148' end | |
6882 | if ARGS[2] == 'jump' then ID = '125750702' end | |
6883 | if ARGS[2] == 'sit' then ID = '178130996' end | |
6884 | for a,b in pairs(gPlayers[v].Character.Animate:GetChildren()) do | |
6885 | if b:IsA('StringValue') then | |
6886 | for c,d in pairs(b:GetChildren()) do | |
6887 | if d:IsA('Animation') then | |
6888 | d.AnimationId = 'rbxassetid://' .. ID | |
6889 | end | |
6890 | end | |
6891 | end | |
6892 | end | |
6893 | end | |
6894 | end) | |
6895 | ||
6896 | ADD_COMMAND('fix','fix [plr]',{}, | |
6897 | function(ARGS, SPEAKER) | |
6898 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6899 | for i,v in pairs(PLAYERS) do | |
6900 | local PCHAR = gPlayers[v].Character | |
6901 | RESET_MODEL(PCHAR) | |
6902 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
6903 | end | |
6904 | end) | |
6905 | ||
6906 | ADD_COMMAND('creeper','creeper [plr]',{'crpr'}, | |
6907 | function(ARGS, SPEAKER) | |
6908 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6909 | for i,v in pairs(PLAYERS) do | |
6910 | CREEPER(gPlayers[v]) | |
6911 | end | |
6912 | end) | |
6913 | ||
6914 | ADD_COMMAND('uncreeper','uncreeper [plr]',{}, | |
6915 | function(ARGS, SPEAKER) | |
6916 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6917 | for i,v in pairs(PLAYERS) do | |
6918 | local PCHAR = gPlayers[v].Character | |
6919 | RESET_MODEL(PCHAR) | |
6920 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
6921 | end | |
6922 | end) | |
6923 | ||
6924 | ADD_COMMAND('shrek','shrek [plr]',{}, | |
6925 | function(ARGS, SPEAKER) | |
6926 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6927 | for i,v in pairs(PLAYERS) do | |
6928 | SHREK(gPlayers[v]) | |
6929 | end | |
6930 | end) | |
6931 | ||
6932 | ADD_COMMAND('unshrek','unshrek [plr]',{}, | |
6933 | function(ARGS, SPEAKER) | |
6934 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6935 | for i,v in pairs(PLAYERS) do | |
6936 | local PCHAR = gPlayers[v].Character | |
6937 | RESET_MODEL(PCHAR) | |
6938 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
6939 | end | |
6940 | end) | |
6941 | ||
6942 | local SPAM = false | |
6943 | ||
6944 | ADD_COMMAND('spam','spam [string]',{}, | |
6945 | function(ARGS, SPEAKER) | |
6946 | SPAM = true | |
6947 | spawn(function() | |
6948 | repeat wait() | |
6949 | gPlayers:Chat(GLS(false, 0)) | |
6950 | until not SPAM | |
6951 | end) | |
6952 | end) | |
6953 | ||
6954 | ADD_COMMAND('nospam','nospam',{}, | |
6955 | function(ARGS, SPEAKER) | |
6956 | SPAM = false | |
6957 | end) | |
6958 | ||
6959 | ADD_COMMAND('nuke','nuke [plr]',{}, | |
6960 | function(ARGS, SPEAKER) | |
6961 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
6962 | for i,v in pairs(PLAYERS) do | |
6963 | local PCHAR = gPlayers[v].Character | |
6964 | spawn(function() | |
6965 | if gPlayers[v] and PCHAR and PCHAR:FindFirstChild('Torso') then | |
6966 | local N = Instance.new('Part', gWorkspace) | |
6967 | N.Name = 'nuke_seth' | |
6968 | N.Anchored = true | |
6969 | N.CanCollide = false | |
6970 | N.FormFactor = 'Symmetric' | |
6971 | N.Shape = 'Ball' | |
6972 | N.Size = Vector3.new(1, 1, 1) | |
6973 | N.BrickColor = BrickColor.new('New Yeller') | |
6974 | N.Transparency = 0.5 | |
6975 | N.Reflectance = 0.2 | |
6976 | N.TopSurface = 0 | |
6977 | N.BottomSurface = 0 | |
6978 | N.Touched:connect(function (hit) | |
6979 | if hit and hit.Parent then | |
6980 | local boom = Instance.new('Explosion', gWorkspace) | |
6981 | boom.Position = hit.Position | |
6982 | boom.BlastRadius = 11 | |
6983 | boom.BlastPressure = math.huge | |
6984 | end | |
6985 | end) | |
6986 | local CF = PCHAR.Torso.CFrame | |
6987 | N.CFrame = CF | |
6988 | for i = 0, 111 do | |
6989 | N.Size = N.Size + Vector3.new(5, 5, 5) | |
6990 | N.CFrame = CF | |
6991 | wait(1 / 44) | |
6992 | end | |
6993 | N:destroy() | |
6994 | end | |
6995 | end) | |
6996 | end | |
6997 | end) | |
6998 | ||
6999 | ADD_COMMAND('unnuke','nonuke',{}, | |
7000 | function(ARGS, SPEAKER) | |
7001 | for i,v in pairs(gWorkspace:GetChildren()) do | |
7002 | if v.Name == 'nuke_seth' then | |
7003 | v:destroy() | |
7004 | end | |
7005 | end | |
7006 | end) | |
7007 | ||
7008 | ADD_COMMAND('infect','infect [plr]',{}, | |
7009 | function(ARGS, SPEAKER) | |
7010 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7011 | for i,v in pairs(PLAYERS) do | |
7012 | INFECT(gPlayers[v]) | |
7013 | end | |
7014 | end) | |
7015 | ||
7016 | ADD_COMMAND('uninfect','uninfect [plr]',{}, | |
7017 | function(ARGS, SPEAKER) | |
7018 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7019 | for i,v in pairs(PLAYERS) do | |
7020 | local PCHAR = gPlayers[v].Character | |
7021 | RESET_MODEL(PCHAR) | |
7022 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
7023 | end | |
7024 | end) | |
7025 | ||
7026 | ADD_COMMAND('duck','duck [plr]',{}, | |
7027 | function(ARGS, SPEAKER) | |
7028 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7029 | for i,v in pairs(PLAYERS) do | |
7030 | DUCK(gPlayers[v]) | |
7031 | end | |
7032 | end) | |
7033 | ||
7034 | ADD_COMMAND('unduck','unduck [plr]',{}, | |
7035 | function(ARGS, SPEAKER) | |
7036 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7037 | for i,v in pairs(PLAYERS) do | |
7038 | local PCHAR = gPlayers[v].Character | |
7039 | RESET_MODEL(PCHAR) | |
7040 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
7041 | end | |
7042 | end) | |
7043 | ||
7044 | ADD_COMMAND('disable','disable [plr]',{}, | |
7045 | function(ARGS, SPEAKER) | |
7046 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7047 | for i,v in pairs(PLAYERS) do | |
7048 | local PCHAR = gPlayers[v].Character | |
7049 | if PCHAR:FindFirstChild('Humanoid') then | |
7050 | PCHAR.Humanoid.Name = 'HUMANOID_' .. gPlayers[v].Name | |
7051 | local humanoid = PCHAR['HUMANOID_' .. gPlayers[v].Name] | |
7052 | humanoid.Parent = DATA.humanoids | |
7053 | end | |
7054 | end | |
7055 | end) | |
7056 | ||
7057 | ADD_COMMAND('enable','enable [plr]',{}, | |
7058 | function(ARGS, SPEAKER) | |
7059 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7060 | for i,v in pairs(PLAYERS) do | |
7061 | local PCHAR = gPlayers[v].Character | |
7062 | if PCHAR:FindFirstChild('Humanoid') then | |
7063 | return | |
7064 | else | |
7065 | if DATA.humanoids:FindFirstChild('HUMANOID_' .. gPlayers[v].Name) then | |
7066 | local humanoid = DATA.humanoids['HUMANOID_' .. gPlayers[v].Name] humanoid.Parent = PCHAR humanoid.Name = 'Humanoid' | |
7067 | end | |
7068 | end | |
7069 | end | |
7070 | end) | |
7071 | ||
7072 | ADD_COMMAND('size','size [plr] [int]',{}, | |
7073 | function(ARGS, SPEAKER) | |
7074 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7075 | for i,v in pairs(PLAYERS) do | |
7076 | SCALE(gPlayers[v].Character, ARGS[2]) | |
7077 | end | |
7078 | end) | |
7079 | ||
7080 | ADD_COMMAND('clone','clone [plr]',{}, | |
7081 | function(ARGS, SPEAKER) | |
7082 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7083 | for i,v in pairs(PLAYERS) do | |
7084 | local PCHAR = gPlayers[v].Character PCHAR.Archivable = true | |
7085 | local C = PCHAR:Clone() C.Parent = gWorkspace C:MoveTo(PCHAR:GetModelCFrame().p) C:MakeJoints() | |
7086 | PCHAR.Archivable = false | |
7087 | end | |
7088 | end) | |
7089 | ||
7090 | ADD_COMMAND('spin','spin [plr]',{}, | |
7091 | function(ARGS, SPEAKER) | |
7092 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7093 | for i,v in pairs(PLAYERS) do | |
7094 | local PCHAR = gPlayers[v].Character | |
7095 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
7096 | if v.Name == 'SPIN' then | |
7097 | v:destroy() | |
7098 | end | |
7099 | end | |
7100 | local T = PCHAR.Torso | |
7101 | local BG = Instance.new('BodyGyro', T) BG.Name = 'SPIN' BG.maxTorque = Vector3.new(0, math.huge, 0) BG.P = 11111 BG.cframe = T.CFrame | |
7102 | spawn(function() | |
7103 | repeat wait(1/44) | |
7104 | BG.CFrame = BG.CFrame * CFrame.Angles(0,math.rad(30),0) | |
7105 | until not BG or BG.Parent ~= T | |
7106 | end) | |
7107 | end | |
7108 | end) | |
7109 | ||
7110 | ADD_COMMAND('unspin','unspin [plr]',{}, | |
7111 | function(ARGS, SPEAKER) | |
7112 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7113 | for i,v in pairs(PLAYERS) do | |
7114 | local PCHAR = gPlayers[v].Character | |
7115 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
7116 | if v.Name == 'SPIN' then | |
7117 | v:destroy() | |
7118 | end | |
7119 | end | |
7120 | end | |
7121 | end) | |
7122 | ||
7123 | ADD_COMMAND('dog','dog [plr]',{}, | |
7124 | function(ARGS, SPEAKER) | |
7125 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7126 | for i,v in pairs(PLAYERS) do | |
7127 | DOG(gPlayers[v]) | |
7128 | end | |
7129 | end) | |
7130 | ||
7131 | ADD_COMMAND('undog','undog [plr]',{}, | |
7132 | function(ARGS, SPEAKER) | |
7133 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7134 | for i,v in pairs(PLAYERS) do | |
7135 | local PCHAR = gPlayers[v].Character | |
7136 | RESET_MODEL(PCHAR) | |
7137 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
7138 | end | |
7139 | end) | |
7140 | ||
7141 | ADD_COMMAND('loopheal','loopheal [plr]',{'lheal'}, | |
7142 | function(ARGS, SPEAKER) | |
7143 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7144 | for i,v in pairs(PLAYERS) do | |
7145 | local PCHAR = gPlayers[v].Character | |
7146 | if being_looped:FindFirstChild(gPlayers[v].Name .. '_heal') then | |
7147 | being_looped[gPlayers[v].Name .. '_heal']:destroy() | |
7148 | else | |
7149 | local loopheal = Instance.new('StringValue', being_looped) | |
7150 | loopheal.Name = gPlayers[v].Name .. '_heal' | |
7151 | game:GetService('RunService').RenderStepped:connect(function() | |
7152 | if being_looped:FindFirstChild(gPlayers[v].Name .. '_heal') then | |
7153 | PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
7154 | end | |
7155 | end) | |
7156 | end | |
7157 | end | |
7158 | end) | |
7159 | ||
7160 | ADD_COMMAND('unloopheal','unloopheal [plr]',{'unlheal'}, | |
7161 | function(ARGS, SPEAKER) | |
7162 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7163 | for i,v in pairs(PLAYERS) do | |
7164 | local PCHAR = gPlayers[v].Character | |
7165 | if being_looped:FindFirstChild(gPlayers[v].Name .. '_heal') then | |
7166 | being_looped[gPlayers[v].Name .. '_heal']:destroy() | |
7167 | end | |
7168 | end | |
7169 | end) | |
7170 | ||
7171 | ADD_COMMAND('fling','fling [plr]',{}, | |
7172 | function(ARGS, SPEAKER) | |
7173 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7174 | for i,v in pairs(PLAYERS) do | |
7175 | local PCHAR = gPlayers[v].Character | |
7176 | if PCHAR:FindFirstChild('Humanoid') then | |
7177 | local X | |
7178 | local Z | |
7179 | repeat | |
7180 | X = math.random(-9999, 9999) | |
7181 | until math.abs(X) >= 5555 | |
7182 | repeat | |
7183 | Z = math.random(-9999, 9999) | |
7184 | until math.abs(Z) >= 5555 | |
7185 | PCHAR.Torso.Velocity = Vector3.new(0, 0, 0) | |
7186 | local BF = Instance.new('BodyForce', PCHAR.Torso) BF.force = Vector3.new(X * 4, 9999 * 5, Z * 4) | |
7187 | end | |
7188 | end | |
7189 | end) | |
7190 | ||
7191 | ADD_COMMAND('ayylmao','ayylmao [plr]',{}, | |
7192 | function(ARGS, SPEAKER) | |
7193 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7194 | for i,v in pairs(PLAYERS) do | |
7195 | AYYLMAO(gPlayers[v]) | |
7196 | end | |
7197 | end) | |
7198 | ||
7199 | ADD_COMMAND('nograv','nograv [plr]',{}, | |
7200 | function(ARGS, SPEAKER) | |
7201 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7202 | for i,v in pairs(PLAYERS) do | |
7203 | local PCHAR = gPlayers[v].Character | |
7204 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
7205 | if v.Name == 'nograv' then | |
7206 | v:destroy() | |
7207 | end | |
7208 | end | |
7209 | local BF = Instance.new('BodyForce', PCHAR.Torso) | |
7210 | BF.Name = 'nograv_seth' | |
7211 | BF.Force = Vector3.new(0, 2500, 0) | |
7212 | end | |
7213 | end) | |
7214 | ||
7215 | ADD_COMMAND('grav','grav [plr]',{}, | |
7216 | function(ARGS, SPEAKER) | |
7217 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7218 | for i,v in pairs(PLAYERS) do | |
7219 | local PCHAR = gPlayers[v].Character | |
7220 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
7221 | if v.Name == 'nograv_seth' then | |
7222 | v:destroy() | |
7223 | end | |
7224 | end | |
7225 | end | |
7226 | end) | |
7227 | ||
7228 | ADD_COMMAND('cape','cape [brick color]',{}, | |
7229 | function(ARGS, SPEAKER) | |
7230 | spawn(function() | |
7231 | if LP.Character:FindFirstChild('Cape') then | |
7232 | LP.Character.Cape:destroy() | |
7233 | end | |
7234 | if not ARGS[1] then | |
7235 | ARGS[1] = 'Deep blue' | |
7236 | end | |
7237 | CAPE(GLS(false, 1)) | |
7238 | end) | |
7239 | end) | |
7240 | ||
7241 | ADD_COMMAND('uncape','uncape',{}, | |
7242 | function(ARGS, SPEAKER) | |
7243 | if LP.Character:FindFirstChild('cape_seth') then | |
7244 | LP.Character.cape_seth:destroy() | |
7245 | end | |
7246 | end) | |
7247 | ||
7248 | ADD_COMMAND('paper','paper [plr]',{}, | |
7249 | function(ARGS, SPEAKER) | |
7250 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7251 | for i,v in pairs(PLAYERS) do | |
7252 | local PCHAR = gPlayers[v].Character | |
7253 | for i,v in pairs(PCHAR:GetChildren()) do | |
7254 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
7255 | DATA.other.Paper:Clone().Parent = v | |
7256 | end | |
7257 | end | |
7258 | end | |
7259 | end) | |
7260 | ||
7261 | ADD_COMMAND('punish','punish [plr]',{}, | |
7262 | function(ARGS, SPEAKER) | |
7263 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7264 | for i,v in pairs(PLAYERS) do | |
7265 | local PCHAR = gPlayers[v].Character | |
7266 | PCHAR.Parent = gLighting | |
7267 | end | |
7268 | end) | |
7269 | ||
7270 | ADD_COMMAND('unpunish','unpunish [plr]',{}, | |
7271 | function(ARGS, SPEAKER) | |
7272 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7273 | for i,v in pairs(PLAYERS) do | |
7274 | local PCHAR = gLighting['' .. gPlayers[v].Name] | |
7275 | PCHAR.Parent = gWorkspace | |
7276 | end | |
7277 | end) | |
7278 | ||
7279 | local DISCO = false | |
7280 | ||
7281 | ADD_COMMAND('disco','disco',{}, | |
7282 | function(ARGS, SPEAKER) | |
7283 | DISCO = true | |
7284 | spawn(function() | |
7285 | repeat wait(0.5) gLighting.Ambient = Color3.new(math.random(), math.random(), math.random()) until not DISCO | |
7286 | end) | |
7287 | end) | |
7288 | ||
7289 | ADD_COMMAND('undisco','undisco',{}, | |
7290 | function(ARGS, SPEAKER) | |
7291 | DISCO = false | |
7292 | end) | |
7293 | ||
7294 | ADD_COMMAND('team','team [plr] [team]',{}, | |
7295 | function(ARGS, SPEAKER) | |
7296 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7297 | for i,v in pairs(PLAYERS) do | |
7298 | for a,b in pairs(game.Teams:GetChildren()) do | |
7299 | if string.lower(b.Name) == GLS(true, 1) then | |
7300 | gPlayers[v].Team = b | |
7301 | end | |
7302 | end | |
7303 | end | |
7304 | end) | |
7305 | ||
7306 | ADD_COMMAND('jp','jp [plr] [int]',{}, | |
7307 | function(ARGS, SPEAKER) | |
7308 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7309 | for i,v in pairs(PLAYERS) do | |
7310 | local PCHAR = gPlayers[v].Character | |
7311 | if PCHAR:FindFirstChild('Humanoid') then PCHAR.Humanoid.JumpPower = ARGS[2] end | |
7312 | end | |
7313 | end) | |
7314 | ||
7315 | ADD_COMMAND('vest','vest',{}, | |
7316 | function(ARGS, SPEAKER) | |
7317 | EXECUTE(DATA.scripts.vest_seth.Source) | |
7318 | end) | |
7319 | ||
7320 | ADD_COMMAND('smallhead','smallhead [plr]',{'shead'}, | |
7321 | function(ARGS, SPEAKER) | |
7322 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7323 | for i,v in pairs(PLAYERS) do | |
7324 | local PCHAR = gPlayers[v].Character | |
7325 | PCHAR.Head.Mesh.Scale = Vector3.new(0.5, 0.5, 0.5) | |
7326 | PCHAR.Head.Mesh.Offset = Vector3.new(0, -0.25, 0) | |
7327 | end | |
7328 | end) | |
7329 | ||
7330 | ADD_COMMAND('bighead','bighead [plr]',{'bhead'}, | |
7331 | function(ARGS, SPEAKER) | |
7332 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7333 | for i,v in pairs(PLAYERS) do | |
7334 | local PCHAR = gPlayers[v].Character | |
7335 | PCHAR.Head.Mesh.Scale = Vector3.new(2.25, 2.25, 2.25) | |
7336 | PCHAR.Head.Mesh.Offset = Vector3.new(0, 0.5, 0) | |
7337 | end | |
7338 | end) | |
7339 | ||
7340 | ADD_COMMAND('headsize','headsize [plr] [int]',{'hsize'}, | |
7341 | function(ARGS, SPEAKER) | |
7342 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7343 | for i,v in pairs(PLAYERS) do | |
7344 | local PCHAR = gPlayers[v].Character | |
7345 | if ARGS[2] == 1 then | |
7346 | PCHAR.Head.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25) | |
7347 | PCHAR.Head.Mesh.Offset = Vector3.new(0, 0, 0) | |
7348 | else | |
7349 | PCHAR.Head.Mesh.Scale = ARGS[2] * Vector3.new(1.25, 1.25, 1.25) | |
7350 | end | |
7351 | end | |
7352 | end) | |
7353 | ||
7354 | ADD_COMMAND('fixhead','fixhead [plr]',{'fhead'}, | |
7355 | function(ARGS, SPEAKER) | |
7356 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7357 | for i,v in pairs(PLAYERS) do | |
7358 | local PCHAR = gPlayers[v].Character | |
7359 | PCHAR.Head.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25) | |
7360 | PCHAR.Head.Mesh.Offset = Vector3.new(0, 0, 0) | |
7361 | PCHAR.Head.Transparency = 0 | |
7362 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 0 end | |
7363 | end | |
7364 | end) | |
7365 | ||
7366 | ADD_COMMAND('removehead','removehead [plr]',{'rhead'}, | |
7367 | function(ARGS, SPEAKER) | |
7368 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7369 | for i,v in pairs(PLAYERS) do | |
7370 | local PCHAR = gPlayers[v].Character | |
7371 | PCHAR.Head.Transparency = 1 | |
7372 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 1 end | |
7373 | end | |
7374 | end) | |
7375 | ||
7376 | ADD_COMMAND('stealtools','stealtools [plr]',{'stools'}, | |
7377 | function(ARGS, SPEAKER) | |
7378 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7379 | for i,v in pairs(PLAYERS) do | |
7380 | for i,v in pairs(gPlayers[v].Backpack:GetChildren()) do | |
7381 | if v:IsA('Tool') or v:IsA('HopperBin') then | |
7382 | v.Parent = LP.Backpack | |
7383 | end | |
7384 | end | |
7385 | end | |
7386 | end) | |
7387 | ||
7388 | ADD_COMMAND('removetools','removetools [plr]',{'rtools'}, | |
7389 | function(ARGS, SPEAKER) | |
7390 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7391 | for i,v in pairs(PLAYERS) do | |
7392 | for i,v in pairs(gPlayers[v].Backpack:GetChildren()) do | |
7393 | if v:IsA('Tool') or v:IsA('HopperBin') then | |
7394 | v:destroy() | |
7395 | end | |
7396 | end | |
7397 | end | |
7398 | end) | |
7399 | ||
7400 | ADD_COMMAND('clonetools','clonetools [plr]',{'ctools'}, | |
7401 | function(ARGS, SPEAKER) | |
7402 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7403 | for i,v in pairs(PLAYERS) do | |
7404 | for i,v in pairs(gPlayers[v].Backpack:GetChildren()) do | |
7405 | if v:IsA('Tool') or v:IsA('HopperBin') then | |
7406 | v:Clone().Parent = LP.Backpack | |
7407 | end | |
7408 | end | |
7409 | end | |
7410 | end) | |
7411 | ||
7412 | ADD_COMMAND('dong','dong [plr]',{}, | |
7413 | function(ARGS, SPEAKER) | |
7414 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7415 | for i,v in pairs(PLAYERS) do | |
7416 | local PCHAR = gPlayers[v].Character | |
7417 | if ARGS[2] == 'black' then | |
7418 | CREATE_DONG(gPlayers[v], 'Brown') | |
7419 | end | |
7420 | if ARGS[2] == 'asian' then | |
7421 | CREATE_DONG(gPlayers[v], 'Cool yellow') | |
7422 | end | |
7423 | if ARGS[2] == 'alien' then | |
7424 | CREATE_DONG(gPlayers[v], 'Lime green') | |
7425 | end | |
7426 | if ARGS[2] == 'frozen' then | |
7427 | CREATE_DONG(gPlayers[v], 1019) | |
7428 | end | |
7429 | if not ARGS[2] then | |
7430 | CREATE_DONG(gPlayers[v], 'Pastel brown') | |
7431 | end | |
7432 | end | |
7433 | end) | |
7434 | ||
7435 | ADD_COMMAND('particles','particles [plr] [id]',{'pts'}, | |
7436 | function(ARGS, SPEAKER) | |
7437 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7438 | for i,v in pairs(PLAYERS) do | |
7439 | local PCHAR = gPlayers[v].Character | |
7440 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
7441 | if v:IsA('ParticleEmitter') then | |
7442 | v:destroy() | |
7443 | end | |
7444 | end | |
7445 | wait() | |
7446 | Instance.new('ParticleEmitter', PCHAR.Torso).Texture = 'http://www.roblox.com/asset/?id=' .. ARGS[2] - 1 | |
7447 | end | |
7448 | end) | |
7449 | ||
7450 | ADD_COMMAND('rocket','rocket [plr]',{}, | |
7451 | function(ARGS, SPEAKER) | |
7452 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7453 | for i,v in pairs(PLAYERS) do | |
7454 | local PCHAR = gPlayers[v].Character | |
7455 | spawn(function() | |
7456 | local rocket = DATA.other.rocket_seth:Clone() | |
7457 | rocket.Parent = gWorkspace | |
7458 | local weld = Instance.new('Weld', rocket) | |
7459 | weld.Part0 = weld.Parent | |
7460 | weld.Part1 = PCHAR.Torso | |
7461 | weld.C1 = CFrame.new(0, 0.5, 1) | |
7462 | rocket.force.Force = Vector3.new(0, 15000, 0) | |
7463 | wait(0.5) | |
7464 | PCHAR.HumanoidRootPart.CFrame = PCHAR.HumanoidRootPart.CFrame * CFrame.new(0, 5, 0) | |
7465 | wait(5) | |
7466 | Instance.new('Explosion', rocket).Position = rocket.Position | |
7467 | wait(1) | |
7468 | rocket:destroy() | |
7469 | end) | |
7470 | end | |
7471 | end) | |
7472 | ||
7473 | ADD_COMMAND('blackify','blackify [plr]',{}, | |
7474 | function(ARGS, SPEAKER) | |
7475 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7476 | for i,v in pairs(PLAYERS) do | |
7477 | COLOR(gPlayers[v], 'Really black') | |
7478 | end | |
7479 | end) | |
7480 | ||
7481 | ADD_COMMAND('whitify','whitify [plr]',{}, | |
7482 | function(ARGS, SPEAKER) | |
7483 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7484 | for i,v in pairs(PLAYERS) do | |
7485 | COLOR(gPlayers[v], 'White') | |
7486 | end | |
7487 | end) | |
7488 | ||
7489 | ADD_COMMAND('color','color [plr]',{}, | |
7490 | function(ARGS, SPEAKER) | |
7491 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7492 | for i,v in pairs(PLAYERS) do | |
7493 | COLOR(gPlayers[v], GLS(false, 1)) | |
7494 | end | |
7495 | end) | |
7496 | ||
7497 | ADD_COMMAND('telekinesis','telekinesis',{'tk'}, | |
7498 | function(ARGS, SPEAKER) | |
7499 | EXECUTE(DATA.scripts.tele_seth.Source) | |
7500 | end) | |
7501 | ||
7502 | ADD_COMMAND('sword','sword [plr]',{}, | |
7503 | function(ARGS, SPEAKER) | |
7504 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7505 | for i,v in pairs(PLAYERS) do | |
7506 | ECOMMAND('gear ' .. gPlayers[v].Name .. ' 125013769') | |
7507 | end | |
7508 | end) | |
7509 | ||
7510 | ADD_COMMAND('change','change [plr] [stat] [int/string]',{}, | |
7511 | function(ARGS, SPEAKER) | |
7512 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7513 | for i,v in pairs(PLAYERS) do | |
7514 | if gPlayers[v]:FindFirstChild('leaderstats') then | |
7515 | for i,v in pairs(gPlayers[v].leaderstats:GetChildren()) do | |
7516 | if string.lower(v.Name) == string.lower(ARGS[2]) and v:IsA('IntValue') or v:IsA('NumberValue') then | |
7517 | if ARGS[3] then v.Value = tonumber(ARGS[3]) end | |
7518 | elseif string.lower(v.Name) == string.lower(ARGS[2]) and v:IsA('StringValue') then | |
7519 | v.Value = GLS(false, 2) | |
7520 | end | |
7521 | end | |
7522 | end | |
7523 | end | |
7524 | end) | |
7525 | ||
7526 | ADD_COMMAND('bait','bait',{}, | |
7527 | function(ARGS, SPEAKER) | |
7528 | spawn(function() | |
7529 | local M = Instance.new('Model', gWorkspace) M.Name = 'Touch For Admin!' | |
7530 | local P = Instance.new('Part', M) P.Name = 'Head' P.Position = SPEAKER.Character.Head.Position P.BrickColor = BrickColor.new('Pink') P.Material = 'Neon' | |
7531 | local H = Instance.new('Humanoid', M) | |
7532 | P.Touched:connect(function(RIP) if RIP.Parent.Name ~= SPEAKER.Name or RIP.Parent.Name ~= LP.Name then if RIP.Parent:FindFirstChild('Humanoid') then RIP.Parent.Humanoid:destroy() end end end) | |
7533 | end) | |
7534 | end) | |
7535 | ||
7536 | ADD_COMMAND('pm','pm [plr] [string]',{}, | |
7537 | function(ARGS, SPEAKER) | |
7538 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7539 | for i,v in pairs(PLAYERS) do | |
7540 | if not DATA.messages_hints:FindFirstChild(gPlayers[v].Name .. '_MSG_HINT') then | |
7541 | spawn(function() | |
7542 | MESSAGE_HINT('MESSAGE', 'PM System', GLS(false, 1), gPlayers[v]) | |
7543 | end) | |
7544 | end | |
7545 | end | |
7546 | end) | |
7547 | ||
7548 | ADD_COMMAND('message','message [string]',{'m'}, | |
7549 | function(ARGS, SPEAKER) | |
7550 | for i,v in pairs(gPlayers:GetPlayers()) do | |
7551 | if not DATA.messages_hints:FindFirstChild(v.Name .. '_MSG_HINT') then | |
7552 | spawn(function() | |
7553 | MESSAGE_HINT('MESSAGE', 'Global Message System', GLS(false, 0), v) | |
7554 | end) | |
7555 | end | |
7556 | end | |
7557 | end) | |
7558 | ||
7559 | ADD_COMMAND('hint','hint [string]',{'h'}, | |
7560 | function(ARGS, SPEAKER) | |
7561 | for i,v in pairs(gPlayers:GetPlayers()) do | |
7562 | if not DATA.messages_hints:FindFirstChild(v.Name .. '_MSG_HINT') then | |
7563 | spawn(function() | |
7564 | MESSAGE_HINT('HINT', '', GLS(false, 0), v) | |
7565 | end) | |
7566 | end | |
7567 | end | |
7568 | end) | |
7569 | ||
7570 | ADD_COMMAND('naked','naked [plr]',{}, | |
7571 | function(ARGS, SPEAKER) | |
7572 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7573 | for i,v in pairs(PLAYERS) do | |
7574 | local PCHAR = gPlayers[v].Character | |
7575 | for i,v in pairs(PCHAR:GetChildren()) do | |
7576 | if v:IsA('Hat') or v:IsA('Shirt') or v:IsA('Pants') or v:IsA('ShirtGraphic') then | |
7577 | v:destroy() | |
7578 | end | |
7579 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
7580 | if v:IsA('Decal') then | |
7581 | v:destroy() | |
7582 | end | |
7583 | end | |
7584 | end | |
7585 | end | |
7586 | end) | |
7587 | ||
7588 | ADD_COMMAND('decalspam','decalspam [decal]',{'dspam'}, | |
7589 | function(ARGS, SPEAKER) | |
7590 | if ARGS[1] then | |
7591 | DECALSPAM(gWorkspace, ARGS[1]) | |
7592 | end | |
7593 | end) | |
7594 | ||
7595 | ADD_COMMAND('undecalspam','undecalspam',{'undspam'}, | |
7596 | function(ARGS, SPEAKER) | |
7597 | if ARGS[1] then | |
7598 | UNDECALSPAM(gWorkspace) | |
7599 | end | |
7600 | end) | |
7601 | ||
7602 | ADD_COMMAND('bang','bang [plr]',{'rape'}, | |
7603 | function(ARGS, SPEAKER) | |
7604 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7605 | for i,v in pairs(PLAYERS) do | |
7606 | BANG(gPlayers[v].Name) | |
7607 | end | |
7608 | end) | |
7609 | ||
7610 | ADD_COMMAND('lag','lag [plr]',{}, | |
7611 | function(ARGS, SPEAKER) | |
7612 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7613 | for i,v in pairs(PLAYERS) do | |
7614 | LAG(gPlayers[v]) | |
7615 | end | |
7616 | end) | |
7617 | ||
7618 | ADD_COMMAND('respawn','respawn [plr]',{}, | |
7619 | function(ARGS, SPEAKER) | |
7620 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7621 | for i,v in pairs(PLAYERS) do | |
7622 | local M = Instance.new('Model', gWorkspace) M.Name = 'respawn_seth' | |
7623 | local T = Instance.new('Part', M) T.Name = 'Torso' T.CanCollide = false T.Transparency = 1 | |
7624 | Instance.new('Humanoid', M) | |
7625 | gPlayers[v].Character = M | |
7626 | end | |
7627 | end) | |
7628 | ||
7629 | ADD_COMMAND('face','face [plr] [decal]',{}, | |
7630 | function(ARGS, SPEAKER) | |
7631 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7632 | for i,v in pairs(PLAYERS) do | |
7633 | local PCHAR = gPlayers[v].Character | |
7634 | for i,v in pairs(PCHAR.Head:GetChildren()) do if v:IsA('Decal') then v:destroy() end end | |
7635 | local F = Instance.new('Decal', PCHAR.Head) F.Name = 'face' F.Texture = 'rbxassetid://' .. ARGS[2] - 1 | |
7636 | end | |
7637 | end) | |
7638 | ||
7639 | ADD_COMMAND('shirt','shirt [plr] [decal]',{}, | |
7640 | function(ARGS, SPEAKER) | |
7641 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7642 | for i,v in pairs(PLAYERS) do | |
7643 | local PCHAR = gPlayers[v].Character | |
7644 | for i,v in pairs(PCHAR:GetChildren()) do if v:IsA('Shirt') then v:destroy() end end | |
7645 | local S = Instance.new('Shirt', PCHAR) S.Name = 'Shirt' S.ShirtTemplate = 'rbxassetid://' .. ARGS[2] - 1 | |
7646 | end | |
7647 | end) | |
7648 | ||
7649 | ADD_COMMAND('pants','pants [plr] [decal]',{}, | |
7650 | function(ARGS, SPEAKER) | |
7651 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7652 | for i,v in pairs(PLAYERS) do | |
7653 | local PCHAR = gPlayers[v].Character | |
7654 | for i,v in pairs(PCHAR:GetChildren()) do if v:IsA('Pants') then v:destroy() end end | |
7655 | local P = Instance.new('Pants', PCHAR) P.Name = 'Shirt' P.PantsTemplate = 'rbxassetid://' .. ARGS[2] - 1 | |
7656 | end | |
7657 | end) | |
7658 | ||
7659 | ADD_COMMAND('longneck','longneck [plr]',{'lneck', 'giraffe'}, | |
7660 | function(ARGS, SPEAKER) | |
7661 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7662 | for i,v in pairs(PLAYERS) do | |
7663 | local PCHAR = gPlayers[v].Character | |
7664 | RESET_MODEL(PCHAR) | |
7665 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
7666 | for i,v in pairs(PCHAR:GetChildren()) do if v:IsA('Hat') then v.Handle.Mesh.Offset = Vector3.new(0, 5, 0) end end | |
7667 | if PCHAR.Head:FindFirstChild('Mesh') then PCHAR.Head.Mesh.Offset = Vector3.new(0, 5, 0) end | |
7668 | local G = Instance.new('Part', PCHAR) G.Name = 'giraffe_seth' G.BrickColor = PCHAR.Head.BrickColor G.Size = Vector3.new(2, 1, 1) | |
7669 | local SM = Instance.new('SpecialMesh', G) SM.Scale = Vector3.new(1.25, 5, 1.25) SM.Offset = Vector3.new(0, 2, 0) | |
7670 | local W = Instance.new('Weld', G) W.Part0 = PCHAR.Head W.Part1 = G | |
7671 | end | |
7672 | end) | |
7673 | ||
7674 | ADD_COMMAND('stealchar','stealchar [plr]',{'schar'}, | |
7675 | function(ARGS, SPEAKER) | |
7676 | local PLAYERS1, PLAYERS2 = GET_PLAYER(ARGS[1]) | |
7677 | for i,v in pairs(PLAYERS1) do | |
7678 | RESET_MODEL(SPEAKER.Character) UPDATE_MODEL(SPEAKER.Character, gPlayers[v].Name) | |
7679 | end | |
7680 | end) | |
7681 | ||
7682 | ADD_COMMAND('baseplate','baseplate',{'bp'}, | |
7683 | function(ARGS, SPEAKER) | |
7684 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Model') and v.Name == 'baseplate_seth' then v:destroy() end end | |
7685 | local BP = Instance.new('Part', gWorkspace) BP.Name = 'baseplate_seth' BP.Anchored = true BP.BrickColor = BrickColor.new('Bright green') BP.Size = Vector3.new(2048, 5, 2048) BP.Position = Vector3.new(0, 0, 0) | |
7686 | end) | |
7687 | ||
7688 | ADD_COMMAND('norotate','norotate [plr]',{'nrt'}, | |
7689 | function(ARGS, SPEAKER) | |
7690 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7691 | for i,v in pairs(PLAYERS) do | |
7692 | local PCHAR = gPlayers[v].Character | |
7693 | if PCHAR:FindFirstChild('Humanoid') then PCHAR.Humanoid.AutoRotate = false end | |
7694 | end | |
7695 | end) | |
7696 | ||
7697 | ADD_COMMAND('rotate','rotate [plr]',{'rt'}, | |
7698 | function(ARGS, SPEAKER) | |
7699 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7700 | for i,v in pairs(PLAYERS) do | |
7701 | local PCHAR = gPlayers[v].Character | |
7702 | if PCHAR:FindFirstChild('Humanoid') then PCHAR.Humanoid.AutoRotate = true end | |
7703 | end | |
7704 | end) | |
7705 | ||
7706 | ADD_COMMAND('admin','admin [plr]',{}, | |
7707 | function(ARGS, SPEAKER) | |
7708 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7709 | for i,v in pairs(PLAYERS) do | |
7710 | if not CHECK_ADMIN(gPlayers[v]) then | |
7711 | table.insert(ADMINS, gPlayers[v].userId) | |
7712 | spawn(function() | |
7713 | game.Chat:Chat(gPlayers[v].Character.Head, printStuff .. 'You\'re now an admin!') | |
7714 | wait(3) | |
7715 | game.Chat:Chat(gPlayers[v].Character.Head, printStuff .. 'Give me a try! | ' .. C_PREFIX .. 'ff me') | |
7716 | end) | |
7717 | end | |
7718 | end | |
7719 | end) | |
7720 | ||
7721 | ADD_COMMAND('unadmin','unadmin [plr]',{}, | |
7722 | function(ARGS, SPEAKER) | |
7723 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7724 | for i,v in pairs(PLAYERS) do | |
7725 | if CHECK_ADMIN(gPlayers[v]) then | |
7726 | if FIND_IN_TABLE(ADMINS, gPlayers[v].userId) then | |
7727 | table.remove(ADMINS, GET_IN_TABLE(ADMINS, gPlayers[v].userId)) | |
7728 | game.Chat:Chat(gPlayers[v].Character.Head, printStuff .. 'You\'re no longer an admin.') | |
7729 | end | |
7730 | end | |
7731 | end | |
7732 | end) | |
7733 | ||
7734 | ADD_COMMAND('minzoom','minzoom [plr] [int]',{'minz'}, | |
7735 | function(ARGS, SPEAKER) | |
7736 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7737 | for i,v in pairs(PLAYERS) do | |
7738 | gPlayers[v].CameraMinZoomDistance = ARGS[2] | |
7739 | end | |
7740 | end) | |
7741 | ||
7742 | ADD_COMMAND('maxzoom','maxzoom [plr] [int]',{'maxz'}, | |
7743 | function(ARGS, SPEAKER) | |
7744 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7745 | for i,v in pairs(PLAYERS) do | |
7746 | gPlayers[v].CameraMaxZoomDistance = ARGS[2] | |
7747 | end | |
7748 | end) | |
7749 | ||
7750 | ADD_COMMAND('age','age [plr]',{}, | |
7751 | function(ARGS, SPEAKER) | |
7752 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7753 | for i,v in pairs(PLAYERS) do | |
7754 | NOTIFY(gPlayers[v].Name .. ' | ' .. gPlayers[v].AccountAge, 255, 255, 255) | |
7755 | end | |
7756 | end) | |
7757 | ||
7758 | ADD_COMMAND('hl','hl [plr] [r] [g] [b]',{}, | |
7759 | function(ARGS, SPEAKER) | |
7760 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7761 | for i,v in pairs(PLAYERS) do | |
7762 | local PCHAR = gPlayers[v].Character | |
7763 | if PCHAR:FindFirstChild('Torso') then | |
7764 | local HL = Instance.new('SpotLight', PCHAR.Torso) HL.Name = 'seth_hl' HL.Brightness = 5 HL.Range = 60 | |
7765 | if ARGS[2] and ARGS[3] and ARGS[4] then | |
7766 | HL.Color = Color3.new(ARGS[2], ARGS[3], ARGS[4]) | |
7767 | end | |
7768 | end | |
7769 | end | |
7770 | end) | |
7771 | ||
7772 | ADD_COMMAND('unhl','unhl [plr]',{}, | |
7773 | function(ARGS, SPEAKER) | |
7774 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
7775 | for i,v in pairs(PLAYERS) do | |
7776 | local PCHAR = gPlayers[v].Character | |
7777 | if PCHAR:FindFirstChild('Torso') then | |
7778 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
7779 | if v:IsA('SpotLight') and v.Name == 'seth_hl' then | |
7780 | v:destroy() | |
7781 | end | |
7782 | end | |
7783 | end | |
7784 | end | |
7785 | end) | |
7786 | ||
7787 | -- / extra | |
7788 | ||
7789 | ADD_COMMAND('gravity','gravity [int]',{}, | |
7790 | function(ARGS, SPEAKER) | |
7791 | gWorkspace.Gravity = ARGS[1] | |
7792 | end) | |
7793 | ||
7794 | ADD_COMMAND('loadpaste','loadpaste [pastebin id]',{}, | |
7795 | function(ARGS, SPEAKER) | |
7796 | EXECUTE(game:HttpGet('http://pastebin.com/raw/' .. ARGS[1], true)) | |
7797 | end) | |
7798 | ||
7799 | ADD_COMMAND('printadmins','printadmins',{'padmins'}, | |
7800 | function(ARGS, SPEAKER) | |
7801 | for i,v in pairs(ADMINS) do | |
7802 | print (v) | |
7803 | end | |
7804 | end) | |
7805 | ||
7806 | ADD_COMMAND('printbans','printbans',{'pbans'}, | |
7807 | function(ARGS, SPEAKER) | |
7808 | for i,v in pairs(BANS) do | |
7809 | print (gPlayers:GetNameFromUserIdAsync(v)) | |
7810 | end | |
7811 | end) | |
7812 | ||
7813 | ADD_COMMAND('fixlighting','fixlighting',{'fixl'}, | |
7814 | function(ARGS, SPEAKER) | |
7815 | FIX_LIGHTING() | |
7816 | end) | |
7817 | ||
7818 | ADD_COMMAND('fixfog','fixfog',{'clrfog'}, | |
7819 | function(ARGS, SPEAKER) | |
7820 | gLighting.FogColor = Color3.new(191, 191, 191) | |
7821 | gLighting.FogEnd = 100000000 | |
7822 | gLighting.FogStart = 0 | |
7823 | end) | |
7824 | ||
7825 | ADD_COMMAND('day','day',{}, | |
7826 | function(ARGS, SPEAKER) | |
7827 | gLighting.TimeOfDay = 14 | |
7828 | end) | |
7829 | ||
7830 | ADD_COMMAND('night','night',{}, | |
7831 | function(ARGS, SPEAKER) | |
7832 | gLighting.TimeOfDay = 24 | |
7833 | end) | |
7834 | ||
7835 | ADD_COMMAND('serverlock','serverlock',{'slock'}, | |
7836 | function(ARGS, SPEAKER) | |
7837 | SERVER_LOCKED = true | |
7838 | end) | |
7839 | ||
7840 | ADD_COMMAND('unserverlock','unserverlock',{'unslock'}, | |
7841 | function(ARGS, SPEAKER) | |
7842 | SERVER_LOCKED = false | |
7843 | end) | |
7844 | ||
7845 | ADD_COMMAND('fogend','fogend [int]',{}, | |
7846 | function(ARGS, SPEAKER) | |
7847 | gLighting.FogEnd = ARGS[1] | |
7848 | end) | |
7849 | ||
7850 | ADD_COMMAND('fogcolor','fogcolor [r] [g] [b]',{}, | |
7851 | function(ARGS, SPEAKER) | |
7852 | if ARGS[1] and ARGS[2] and ARGS[3] then | |
7853 | gLighting.FogColor = Color3.new(ARGS[1], ARGS[2], ARGS[3]) | |
7854 | end | |
7855 | end) | |
7856 | ||
7857 | ADD_COMMAND('noclip','noclip',{}, | |
7858 | function(ARGS, SPEAKER) | |
7859 | NOCLIP = true | |
7860 | JESUSFLY = false | |
7861 | SWIM = false | |
7862 | end) | |
7863 | ||
7864 | ADD_COMMAND('clip','clip',{}, | |
7865 | function(ARGS, SPEAKER) | |
7866 | NOCLIP = false | |
7867 | end) | |
7868 | ||
7869 | ADD_COMMAND('jesusfly','jesusfly',{}, | |
7870 | function(ARGS, SPEAKER) | |
7871 | NOCLIP = false | |
7872 | JESUSFLY = true | |
7873 | SWIM = false | |
7874 | end) | |
7875 | ||
7876 | ADD_COMMAND('nojfly','nojfly',{}, | |
7877 | function(ARGS, SPEAKER) | |
7878 | JESUSFLY = false | |
7879 | end) | |
7880 | ||
7881 | ADD_COMMAND('swim','swim',{}, | |
7882 | function(ARGS, SPEAKER) | |
7883 | NOCLIP = false | |
7884 | JESUSFLY = false | |
7885 | SWIM = true | |
7886 | end) | |
7887 | ||
7888 | ADD_COMMAND('noswim','noswim',{}, | |
7889 | function(ARGS, SPEAKER) | |
7890 | SWIM = false | |
7891 | end) | |
7892 | ||
7893 | ADD_COMMAND('fly','fly',{}, | |
7894 | function(ARGS, SPEAKER) | |
7895 | sFLY() | |
7896 | end) | |
7897 | ||
7898 | ADD_COMMAND('unfly','unfly',{}, | |
7899 | function(ARGS, SPEAKER) | |
7900 | NOFLY() | |
7901 | end) | |
7902 | ||
7903 | ADD_COMMAND('prefix','prefix [string]',{}, | |
7904 | function(ARGS, SPEAKER) | |
7905 | if ARGS[1] then | |
7906 | C_PREFIX = ARGS[1] | |
7907 | NOTIFY('Changed prefix to \'' .. ARGS[1] .. '\'', 255, 255, 255) | |
7908 | end | |
7909 | end) | |
7910 | ||
7911 | ADD_COMMAND('version','version',{}, | |
7912 | function(ARGS, SPEAKER) | |
7913 | NOTIFY('VERSION | ' .. VERSION, 255, 255, 255) | |
7914 | end) | |
7915 | ||
7916 | ADD_COMMAND('fe','fe',{}, | |
7917 | function(ARGS, SPEAKER) | |
7918 | spawn(function() | |
7919 | CHECK_FE() | |
7920 | end) | |
7921 | end) | |
7922 | ||
7923 | ADD_COMMAND('changelog','changelog',{}, | |
7924 | function(ARGS, SPEAKER) | |
7925 | CHECK_CHANGELOG() | |
7926 | end) | |
7927 | ||
7928 | ADD_COMMAND('serverinfo','serverinfo',{'sinfo'}, | |
7929 | function(ARGS, SPEAKER) | |
7930 | SERVER_INFO() | |
7931 | end) | |
7932 | ||
7933 | ADD_COMMAND('cmds','cmds',{'commands'}, | |
7934 | function(ARGS, SPEAKER) | |
7935 | LIST_COMMANDS() | |
7936 | end) | |
7937 | ||
7938 | --[[ | |
7939 | for i,v in pairs(COMMANDS) do | |
7940 | print (v.D) | |
7941 | end]] | |
7942 | ||
7943 | -- / noclip | |
7944 | ||
7945 | MOUSE.KeyDown:connect(function(key) | |
7946 | if key:byte() == 29 then | |
7947 | if not NOCLIP then | |
7948 | ECOMMAND('noclip') | |
7949 | elseif NOCLIP then | |
7950 | ECOMMAND('clip') | |
7951 | end | |
7952 | elseif key:byte() == 30 then | |
7953 | if not JESUSFLY then | |
7954 | ECOMMAND('jesusfly') | |
7955 | elseif JESUSFLY then | |
7956 | ECOMMAND('nojfly') | |
7957 | end | |
7958 | end | |
7959 | end) | |
7960 | ||
7961 | -- / after loaded | |
7962 | ||
7963 | function CHECK_FE() | |
7964 | if not gWorkspace.FilteringEnabled then | |
7965 | NOTIFY('Filtering is disabled', 0, 255, 0) | |
7966 | elseif gWorkspace.FilteringEnabled then | |
7967 | NOTIFY('Filtering is ENABLED', 255, 0, 0) | |
7968 | end | |
7969 | end | |
7970 | ||
7971 | function UPDATE_CMDS(SEARCH_CMD) | |
7972 | local FOUND_CMDS = DATA.found_cmds | |
7973 | if gCoreGui:FindFirstChild('cmds_seth') then | |
7974 | local cmds_seth = gCoreGui.cmds_seth | |
7975 | for i,v in pairs(cmds_seth.MAIN.CMDs:GetChildren()) do | |
7976 | v:destroy() | |
7977 | end | |
7978 | for i,v in pairs(FOUND_CMDS:GetChildren()) do | |
7979 | v:destroy() | |
7980 | end | |
7981 | wait() | |
7982 | for i,v in pairs(COMMANDS) do | |
7983 | if string.match(v.D, string.lower(SEARCH_CMD)) then | |
7984 | local F = Instance.new('StringValue', FOUND_CMDS) F.Name = '' F.Value = v.D | |
7985 | end | |
7986 | end | |
7987 | wait() | |
7988 | local YSize = 25 | |
7989 | for i,v in pairs(FOUND_CMDS:GetChildren()) do | |
7990 | local POS = ((i * YSize) - YSize) | |
7991 | local cloneEX = cmds_seth.MAIN.Example:Clone() | |
7992 | cloneEX.Parent = cmds_seth.MAIN.CMDs | |
7993 | cloneEX.Visible = true | |
7994 | cloneEX.Position = UDim2.new(0, 5, 0, POS + 5) | |
7995 | cloneEX.Text = ' - ' .. v.Value | |
7996 | cmds_seth.MAIN.CMDs.CanvasSize = UDim2.new(0, 0, 0, POS + 30) | |
7997 | end | |
7998 | end | |
7999 | end | |
8000 | ||
8001 | function LIST_COMMANDS() | |
8002 | if gCoreGui:FindFirstChild('cmds_seth') then gCoreGui.cmds_seth:destroy() end | |
8003 | local cloneCMDs = DATA.guis.cmds_seth:Clone() | |
8004 | local searchCMDs = cloneCMDs.MAIN.Search | |
8005 | cloneCMDs.MAIN.Header.Text = ' ' .. #COMMANDS .. ' commands' | |
8006 | cloneCMDs.Parent = gCoreGui | |
8007 | cloneCMDs.MAIN.Exit.MouseButton1Down:connect(function() | |
8008 | cloneCMDs:destroy() | |
8009 | end) | |
8010 | cloneCMDs.MAIN.MM.MouseButton1Down:connect(function() | |
8011 | if cloneCMDs.MAIN.CMDs.Visible then | |
8012 | cloneCMDs.MAIN.CMDs.Visible = false | |
8013 | elseif not cloneCMDs.MAIN.CMDs.Visible then | |
8014 | cloneCMDs.MAIN.CMDs.Visible = true | |
8015 | end | |
8016 | end) | |
8017 | local function DISPLAY_CMDS() | |
8018 | for i,v in pairs(COMMANDS) do | |
8019 | local YSize = 25 | |
8020 | local POS = ((i * YSize) - YSize) | |
8021 | local cloneEX = cloneCMDs.MAIN.Example:Clone() | |
8022 | cloneEX.Parent = cloneCMDs.MAIN.CMDs | |
8023 | cloneEX.Visible = true | |
8024 | cloneEX.Position = UDim2.new(0, 5, 0, POS + 5) | |
8025 | cloneEX.Text = ' - ' .. v.D | |
8026 | cloneCMDs.MAIN.CMDs.CanvasSize = UDim2.new(0, 0, 0, POS + 30) | |
8027 | end | |
8028 | end | |
8029 | DISPLAY_CMDS() | |
8030 | searchCMDs.FocusLost:connect(function() | |
8031 | if searchCMDs.Text then | |
8032 | UPDATE_CMDS(searchCMDs.Text) | |
8033 | searchCMDs.Text = ' search commands' | |
8034 | end | |
8035 | end) | |
8036 | end | |
8037 | ||
8038 | local CAN_CHECK = true | |
8039 | ||
8040 | function CHECK_CHANGELOG() | |
8041 | spawn(function() | |
8042 | if CAN_CHECK then | |
8043 | CAN_CHECK = false | |
8044 | local changelogClone = DATA.guis.changelog_seth:Clone() | |
8045 | changelogClone.MAIN.changelog.Text = CHANGELOG | |
8046 | changelogClone.Parent = gCoreGui | |
8047 | wait() | |
8048 | changelogClone.MAIN:TweenPosition(UDim2.new(1, -410, 1, -210), 'InOut', 'Quad', 0.5, false) | |
8049 | wait(10) | |
8050 | changelogClone.MAIN:TweenPosition(UDim2.new(1, -410, 1, 0), 'InOut', 'Quad', 0.5, false) | |
8051 | wait(1) | |
8052 | changelogClone:destroy() | |
8053 | CAN_CHECK = true | |
8054 | end | |
8055 | end) | |
8056 | end | |
8057 | ||
8058 | CHECK_CHANGELOG() | |
8059 | ||
8060 | CMDbar:TweenPosition(UDim2.new(0, 0, 1, -50), 'InOut', 'Quad', 0.5, true) | |
8061 | CMDbar.Parent['']:TweenPosition(UDim2.new(0, 0, 1, -30), 'InOut', 'Quad', 0.5, true) | |
8062 | ||
8063 | CMDbar.FocusLost:connect(function(enterpressed) | |
8064 | if enterpressed and CMDbar.Text ~= '' then | |
8065 | pcall(function() | |
8066 | ECOMMAND(CMDbar.Text, LP) | |
8067 | end) | |
8068 | end | |
8069 | CMDbar:TweenPosition(UDim2.new(0, -200, 1, -50), 'InOut', 'Quad', 0.5, true) | |
8070 | end) | |
8071 | ||
8072 | MOUSE.KeyDown:connect(function(Key) | |
8073 | if Key:byte() == 59 then | |
8074 | CMDbar:TweenPosition(UDim2.new(0, 0, 1, -50), 'InOut', 'Quad', 0.5, true) | |
8075 | CMDbar:CaptureFocus() | |
8076 | end | |
8077 | end) |