SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --TTX Probe-- |
| 1 | + | --SmokeDelsinMade-- |
| 2 | - | wait'';--Creator is Unknown, many say they made it, don't believe them they are just wannabe nobs |
| 2 | + | wait'';--Creator is Unknown,Many have seen, many say they made it, don't believe them they are just wannabe nobs,but this is a new era. For i have remade it and will update it. |
| 3 | script.Parent= Instance.new'Glue'; | |
| 4 | mode="Destroy" | |
| 5 | sound=false | |
| 6 | engulfed=false | |
| 7 | song='walrus' | |
| 8 | pa=8 | |
| 9 | banned={}
| |
| 10 | test=false;--testing mode | |
| 11 | scropt='' | |
| 12 | scropting=false | |
| 13 | ofx=true | |
| 14 | ifx=true | |
| 15 | local ascript=[[]] | |
| 16 | ||
| 17 | scropts={}
| |
| 18 | plr=game.Players.LocalPlayer | |
| 19 | mouse=plr:GetMouse() | |
| 20 | cam=workspace.CurrentCamera | |
| 21 | p=Instance.new("Part")
| |
| 22 | p.FormFactor='Custom' | |
| 23 | p.TopSurface="Smooth" | |
| 24 | p.BottomSurface='Smooth' | |
| 25 | - | p.BrickColor=BrickColor.new'White'; |
| 25 | + | p.BrickColor=BrickColor.new'Purple'; |
| 26 | p.Transparency=0.5; | |
| 27 | p.Size=Vector3.new(1.5,1.5,1.5) | |
| 28 | p.Anchored=true | |
| 29 | p.CanCollide=false; | |
| 30 | p.Name='ttx' | |
| 31 | pc=p:clone''; | |
| 32 | pc.Name='pc' | |
| 33 | ||
| 34 | pc.Size=Vector3.new(0.75,0.75,0.75); | |
| 35 | - | pc.BrickColor=BrickColor.new'Really black' |
| 35 | + | pc.BrickColor=BrickColor.new'Purple' |
| 36 | local sel=Instance.new("SelectionBox")
| |
| 37 | - | sel.Color=BrickColor.new("Really black")
|
| 37 | + | sel.Color=BrickColor.new("Purple")
|
| 38 | sel.Transparency=0 | |
| 39 | sel.Name='sel' | |
| 40 | local color=sel.Color | |
| 41 | local sel2=Instance.new("SelectionBox")
| |
| 42 | - | sel2.Color=BrickColor.new("Institutional white")
|
| 42 | + | sel2.Color=BrickColor.new("Purple")
|
| 43 | sel2.Transparency=1 | |
| 44 | sel2.Name='sel2' | |
| 45 | local blo=Instance.new("BlockMesh",pc)
| |
| 46 | blo.Name='blo' | |
| 47 | local s=Instance.new("Sound")
| |
| 48 | s.SoundId="http://www.roblox.com/asset?id=12222170" | |
| 49 | s.Volume=1 | |
| 50 | s.Pitch=3.25 | |
| 51 | s.Name='s' | |
| 52 | local s2=Instance.new("Sound")
| |
| 53 | s2.SoundId="http://www.roblox.com/asset?id=130806888" | |
| 54 | s2.Volume=1 | |
| 55 | s2.Pitch=1 | |
| 56 | s2.Name='s2' | |
| 57 | local s3=Instance.new("Sound")
| |
| 58 | s3.SoundId="http://www.roblox.com/asset?id=138092144" | |
| 59 | s3.Volume=1 | |
| 60 | s3.Pitch=1 | |
| 61 | s3.Name='s3' | |
| 62 | local s4=Instance.new("Sound")
| |
| 63 | s4.SoundId="http://www.roblox.com/asset?id=130791043" | |
| 64 | s4.Volume=1 | |
| 65 | s4.Pitch=1 | |
| 66 | s4.Name='s4' | |
| 67 | local s5=Instance.new("Sound")
| |
| 68 | s5.SoundId="http://www.roblox.com/asset?id=143301643" | |
| 69 | s5.Volume=1 | |
| 70 | s5.Pitch=1 | |
| 71 | s5.Name='s5' | |
| 72 | ||
| 73 | game:service'ContentProvider':Preload(s5.SoundId) | |
| 74 | ||
| 75 | local light=Instance.new('PointLight')
| |
| 76 | light.Range=10 | |
| 77 | light.Brightness=5 | |
| 78 | light.Shadows=true | |
| 79 | - | light.Color=BrickColor.new("White").Color
|
| 79 | + | light.Color=BrickColor.new("Purple").Color
|
| 80 | light.Name='light' | |
| 81 | ||
| 82 | local bg = Instance.new("BillboardGui")
| |
| 83 | bg.Adornee = p | |
| 84 | bg.Size = UDim2.new(6, 0, 1, 0) | |
| 85 | bg.StudsOffset = Vector3.new(-1.6, 2, 0) | |
| 86 | bg.Name='bg' | |
| 87 | ||
| 88 | local frame = Instance.new("Frame")
| |
| 89 | frame.Size = UDim2.new(1, 0, 1, 0) | |
| 90 | frame.BackgroundTransparency = 1 | |
| 91 | frame.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 92 | frame.Name='frame' | |
| 93 | ||
| 94 | local text = Instance.new("TextLabel")
| |
| 95 | text.BackgroundTransparency=1 | |
| 96 | text.Position = UDim2.new(0.15, 0, 0.25, 0) | |
| 97 | text.Size = UDim2.new(1.2, 0, 0.7, 0) | |
| 98 | - | text.Text = "penal servitude" |
| 98 | + | text.Text = "SmokeDelsins 4 dimensional cube by SmokeDelsin" |
| 99 | text.Font="SourceSansBold" | |
| 100 | text.TextScaled=true | |
| 101 | text.TextStrokeTransparency=0 | |
| 102 | - | text.TextStrokeColor3=Color3.new(255,255,255) |
| 102 | + | text.TextStrokeColor3=Color3.new(1,1,1) |
| 103 | text.TextColor3=Color3.new(1,1,1) | |
| 104 | text.Name='text' | |
| 105 | ||
| 106 | function chat(txt) | |
| 107 | game:service'Chat':Chat(p,txt,math.random(1,2)) | |
| 108 | s3:Play() | |
| 109 | local cb=sel.Color | |
| 110 | - | sel.Color=BrickColor.new("Lime green")
|
| 110 | + | sel.Color=BrickColor.new("Dark purple")
|
| 111 | wait(0.57) | |
| 112 | sel.Color=cb | |
| 113 | end | |
| 114 | ||
| 115 | ||
| 116 | ||
| 117 | local schemes={
| |
| 118 | - | Normal={
|
| 118 | + | q={
|
| 119 | - | pmc="White"; |
| 119 | + | pmc="Red"; |
| 120 | pcm="Really black"; | |
| 121 | - | selc="Really black"; |
| 121 | + | selc="Bright blue"; |
| 122 | - | selc2="Institutional white"; |
| 122 | + | selc2="Bright red"; |
| 123 | - | light='White'; |
| 123 | + | light='Red'; |
| 124 | - | name="Normal" |
| 124 | + | name="q" |
| 125 | }; | |
| 126 | - | Inverse={
|
| 126 | + | e={
|
| 127 | - | pmc="Really black"; |
| 127 | + | pmc="Blue"; |
| 128 | - | pcm="White"; |
| 128 | + | |
| 129 | - | selc="Institutional white"; |
| 129 | + | selc="Bright red"; |
| 130 | - | selc2="Really black"; |
| 130 | + | selc2="Bright blue"; |
| 131 | - | light='White'; |
| 131 | + | light='Red'; |
| 132 | - | name="Inverse" |
| 132 | + | name="e" |
| 133 | }; | |
| 134 | Neon={
| |
| 135 | - | pmc="Really red"; |
| 135 | + | pmc="Purple"; |
| 136 | - | pcm="Lime green"; |
| 136 | + | pcm="Blue"; |
| 137 | - | selc="Lime green"; |
| 137 | + | selc="Dark purple"; |
| 138 | - | selc2="Really red"; |
| 138 | + | selc2="Dark purple"; |
| 139 | - | light='Lime green'; |
| 139 | + | light='Purple'; |
| 140 | name="Neon" | |
| 141 | }; | |
| 142 | Greenlight={
| |
| 143 | - | pmc="Really black"; |
| 143 | + | pmc="Purple"; |
| 144 | - | pcm='Institutional white'; |
| 144 | + | pcm="Dark blue"; |
| 145 | - | selc='Lime green'; |
| 145 | + | selc="Dark blue"; |
| 146 | - | selc2='Really black'; |
| 146 | + | selc2="Dark purple"; |
| 147 | - | light='Lime green'; |
| 147 | + | light='Blue'; |
| 148 | name='Greenlight' | |
| 149 | }; | |
| 150 | Calm={
| |
| 151 | - | pmc="Really black"; |
| 151 | + | |
| 152 | - | pcm='Institutional white'; |
| 152 | + | |
| 153 | - | selc='Teal'; |
| 153 | + | |
| 154 | - | selc2='Really black'; |
| 154 | + | |
| 155 | - | light='Teal'; |
| 155 | + | pmc="Purple"; |
| 156 | - | name='Calm' |
| 156 | + | pcm="Dark blue"; |
| 157 | selc="Light blue"; | |
| 158 | selc2="Dark purple"; | |
| 159 | light='Blue'; | |
| 160 | - | pmc="Camo"; |
| 160 | + | |
| 161 | - | pcm="Lime green"; |
| 161 | + | |
| 162 | - | selc="Really red"; |
| 162 | + | |
| 163 | - | selc2="Toothpaste"; |
| 163 | + | |
| 164 | - | light='Lime green'; |
| 164 | + | |
| 165 | - | name="CoolkidTheme" |
| 165 | + | |
| 166 | ['EpicSax']='http://www.roblox.com/asset?id=130775431'; | |
| 167 | ['Trolled']='http://www.roblox.com/asset?id=142633540'; | |
| 168 | ['Doge']='http://www.roblox.com/asset?id=150794704'; | |
| 169 | ['PFS']='http://www.roblox.com/asset?id=130783719'; | |
| 170 | ['120BOOM']='http://www.roblox.com/asset?id=142279108'; | |
| 171 | ['Raining Tacos']='http://www.roblox.com/asset?id=142376088'; | |
| 172 | ['Pootis Man']='http://www.roblox.com/asset?id=142334905'; | |
| 173 | ['Pootis']='http://www.roblox.com/asset?id=148636758'; | |
| 174 | ['freshprince']='http://www.roblox.com/asset?id=154237445'; | |
| 175 | ['dog']='http://www.roblox.com/asset?id=215027605' | |
| 176 | } | |
| 177 | ||
| 178 | for _,v in pairs(songbank) do | |
| 179 | ypcall(function() | |
| 180 | - | ['freshprince']='http://www.roblox.com/asset?id=154237445' |
| 180 | + | |
| 181 | end) | |
| 182 | end | |
| 183 | ||
| 184 | coroutine.wrap(function() | |
| 185 | local angle=0; | |
| 186 | repeat | |
| 187 | angle=angle+1; | |
| 188 | local a=math.rad(angle); | |
| 189 | p.CFrame=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-15)*CFrame.Angles(a,a,a); | |
| 190 | pc.CFrame=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-15)*CFrame.Angles(-a,-a,-a); | |
| 191 | wait''; | |
| 192 | until false | |
| 193 | end)(); | |
| 194 | newLocalScript=function(source,parent) | |
| 195 | local clone=script:clone''; | |
| 196 | clone:clearAllChildren''; | |
| 197 | for _,v in next,{'Source','DSource','source','code'}do
| |
| 198 | local f=Instance.new('StringValue',clone);
| |
| 199 | f.Name=v; | |
| 200 | f.Value=source; | |
| 201 | end; | |
| 202 | clone.Parent=parent; | |
| 203 | return clone; | |
| 204 | end; | |
| 205 | cmds={}
| |
| 206 | modes={
| |
| 207 | {n="Destroy",color="Neon orange",func=function(thing)
| |
| 208 | local a=thing.Parent | |
| 209 | s4:Play() | |
| 210 | if thing.Parent.Name~="Workspace" and thing.Name~='ttx' and thing.Parent.Name~='ttx' then | |
| 211 | thing.Parent:Destroy() | |
| 212 | elseif thing.Parent.Name=="Workspace" and thing.Name~='Base' and thing.Name~="Baseplate" and thing.Name~='ttx' then | |
| 213 | thing:Destroy() | |
| 214 | end | |
| 215 | end | |
| 216 | }; | |
| 217 | {n="Break",color="Royal purple",func=function(thing)
| |
| 218 | if thing.className=="Part" and thing.Name~='Base' and thing.Name~='Baseplate' then | |
| 219 | s4:Play() | |
| 220 | for i = 1,4 do | |
| 221 | local a=thing:clone() | |
| 222 | thing:BreakJoints() | |
| 223 | a.Parent=workspace | |
| 224 | a.FormFactor="Custom" | |
| 225 | a.Size=Vector3.new(thing.Size.x/math.random(1.2,2),thing.Size.y/math.random(1.05,2),thing.Size.z/math.random(1.2,2)) | |
| 226 | a:BreakJoints() | |
| 227 | local f=Instance.new("Fire",a)
| |
| 228 | f.Size=(a.Size.x+a.Size.y+a.Size.z)/2 | |
| 229 | local ex=Instance.new("Explosion")
| |
| 230 | ex.Position=thing.Position | |
| 231 | ex.BlastPressure=35 | |
| 232 | ex.BlastRadius=15 | |
| 233 | ex.Parent=workspace | |
| 234 | thing:Destroy() | |
| 235 | Spawn(function() | |
| 236 | wait(3) | |
| 237 | a:Destroy() | |
| 238 | end) | |
| 239 | end | |
| 240 | end | |
| 241 | end | |
| 242 | }; | |
| 243 | {n="Kick",color="Really red",func=function(thing)
| |
| 244 | if thing.Parent.Name~="Workspace" then | |
| 245 | s4:Play() | |
| 246 | ypcall(function() | |
| 247 | if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then | |
| 248 | ypcall(function() | |
| 249 | game:service'Players':findFirstChild(thing.Parent.Name):Destroy() | |
| 250 | end) | |
| 251 | end | |
| 252 | end) | |
| 253 | end | |
| 254 | end | |
| 255 | }; | |
| 256 | {n="Ban",color="Br. yellowish green",func=function(thing)
| |
| 257 | s4:Play() | |
| 258 | if thing.Parent.Name~="Workspace" then | |
| 259 | ypcall(function() | |
| 260 | if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then | |
| 261 | ypcall(function() | |
| 262 | table.insert(banned,thing.Parent.Name) | |
| 263 | game:service'Players':findFirstChild(thing.Parent.Name):Destroy() | |
| 264 | end) | |
| 265 | end | |
| 266 | end) | |
| 267 | end | |
| 268 | end | |
| 269 | }; | |
| 270 | {n="Kill",color="Dark red",func=function(thing)
| |
| 271 | s4:Play() | |
| 272 | if thing.Parent.Name~="Workspace" then | |
| 273 | ypcall(function() | |
| 274 | if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then | |
| 275 | ypcall(function() | |
| 276 | game:service'Players':findFirstChild(thing.Parent.Name).Character:BreakJoints() | |
| 277 | end) | |
| 278 | end | |
| 279 | end) | |
| 280 | end | |
| 281 | end | |
| 282 | }; | |
| 283 | {n="Ff",color="Really blue",func=function(thing)
| |
| 284 | s4:Play() | |
| 285 | if thing.Parent.Name~="Workspace" then | |
| 286 | if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then | |
| 287 | ypcall(function() | |
| 288 | if not thing.Parent.Torso.ForceField then | |
| 289 | Instance.new("ForceField",thing.Parent.Torso)
| |
| 290 | else | |
| 291 | thing.Parent.Torso.ForceField:Destroy() | |
| 292 | end | |
| 293 | end) | |
| 294 | end | |
| 295 | end | |
| 296 | end | |
| 297 | } | |
| 298 | } | |
| 299 | addCommand=function(commandName,_cmds,commandDesc,commandFunc) | |
| 300 | cmds[commandName]={['cmds']=_cmds,desc=commandDesc,func=commandFunc};
| |
| 301 | end | |
| 302 | onChatted=function(msg) | |
| 303 | for _,v in next,cmds do | |
| 304 | local used=false; | |
| 305 | for cmd in v.cmds:gmatch'([^(.*),?]+)'do | |
| 306 | if(msg:match(cmd)and used==false)then | |
| 307 | local rest=msg:match(cmd..'(.*)'); | |
| 308 | pcall(v.func,rest); | |
| 309 | used=true; | |
| 310 | end; | |
| 311 | end; | |
| 312 | end; | |
| 313 | end; | |
| 314 | getPlayers=function(msg) | |
| 315 | local players={};--noob nob
| |
| 316 | for _,v in next,game.Players:players''do | |
| 317 | if(v.Name:lower():sub(1,#msg)==msg:lower()) then | |
| 318 | table.insert(players,v); | |
| 319 | end; | |
| 320 | end; | |
| 321 | return players; | |
| 322 | end; | |
| 323 | addCommand('Disconnect','disc/,disconnect/','Disconnects your player from the game',function(msg)
| |
| 324 | plr:Destroy()''; | |
| 325 | end); | |
| 326 | addCommand('Kick','kick/','Kicks <Player>',function(msg)
| |
| 327 | for _,player in next,getPlayers(msg)do | |
| 328 | player:Destroy()''; | |
| 329 | end; | |
| 330 | end); | |
| 331 | addCommand('Banish', 'ban/', 'Banish <Player>', function(msg)
| |
| 332 | for _,player in next,getPlayers(msg)do | |
| 333 | table.insert(banned,player.Name) | |
| 334 | player:Destroy()''; | |
| 335 | end; | |
| 336 | end); | |
| 337 | addCommand('Fix', 'fix/', 'Fix probe', function(msg)
| |
| 338 | local current=workspace:findFirstChild'ttx'; | |
| 339 | if(current)then | |
| 340 | current:destroy(); | |
| 341 | end; | |
| 342 | p=backup:clone(); | |
| 343 | p.Parent=workspace; | |
| 344 | pc=p.pc | |
| 345 | sel=p.sel | |
| 346 | bg=p.bg | |
| 347 | frame=p.frame | |
| 348 | text=p.Text | |
| 349 | sel2=pc.sel2 | |
| 350 | s=p.s | |
| 351 | s2=p.s2 | |
| 352 | s3=p.s3 | |
| 353 | s4=p.s4 | |
| 354 | s5=p.s5 | |
| 355 | light=pc.light | |
| 356 | end); | |
| 357 | ||
| 358 | addCommand('Nil disconnect','nild/', "Disconnect a nil player", function(msg)
| |
| 359 | ||
| 360 | end) | |
| 361 | ||
| 362 | addCommand('Clean' ,'clean/', 'Clean Workspace', function(msg)
| |
| 363 | for _,v in pairs(workspace:children()) do | |
| 364 | ypcall(function() | |
| 365 | if game:GetService("Players"):GetPlayerFromCharacter(v) == nil then
| |
| 366 | if v.Name~="Base" and v.Name~="Baseplate" and v.Name~='ttx' then | |
| 367 | v:Destroy() | |
| 368 | end | |
| 369 | end | |
| 370 | end) | |
| 371 | end | |
| 372 | end); | |
| 373 | ||
| 374 | addCommand('Crash','cr/','Crashes a <Player>',function(msg)
| |
| 375 | for _,player in next,getPlayers(msg)do | |
| 376 | newLocalScript([[game.Players.LocalPlayer:kick'']], player.Backpack or player.Character) | |
| 377 | end; | |
| 378 | end) | |
| 379 | print'a'; | |
| 380 | addCommand('Lag', 'lag/', 'Lags a <Player>',function(msg)
| |
| 381 | for _,player in ipairs(getPlayers(msg))do | |
| 382 | newLocalScript([[ | |
| 383 | wait''; | |
| 384 | script.Parent=workspace.currentCamera; | |
| 385 | addLoop=function() | |
| 386 | repeat | |
| 387 | for _,v in next,{'Message','Hint','Part','Message','Message','Hint','Seat'}do
| |
| 388 | pcall(function() | |
| 389 | local i=Instance.new(v,workspace.currentCamera); | |
| 390 | i.Text='lag'; | |
| 391 | end); | |
| 392 | end; | |
| 393 | wait''; | |
| 394 | if(math.random(1,10)==1)then | |
| 395 | coroutine.wrap(addLoop)(); | |
| 396 | end; | |
| 397 | until false; | |
| 398 | end; | |
| 399 | coroutine.wrap(addLoop)(); | |
| 400 | ]],player.Character); | |
| 401 | end; | |
| 402 | end); | |
| 403 | ||
| 404 | addCommand('Fixl','fixl/','Fixes lighting',function(msg)
| |
| 405 | game.Lighting.Brightness=7 | |
| 406 | game.Lighting.TimeOfDay='14:00:00' | |
| 407 | game.Lighting.GlobalShadows=true | |
| 408 | game.Lighting.Outlines=true | |
| 409 | game.Lighting.ShadowColor=Color3.new(179,179,179) | |
| 410 | game.Lighting.Ambient=Color3.new(128,128,128) | |
| 411 | game.Lighting.FogStart=0 | |
| 412 | game.Lighting.FogEnd=100000 | |
| 413 | end) | |
| 414 | ||
| 415 | addCommand('Rejoin','rj/','Rejoins player',function(msg)
| |
| 416 | game:GetService('TeleportService'):Teleport(game.PlaceId)
| |
| 417 | end) | |
| 418 | ||
| 419 | addCommand('Create','create/', 'Creates a <script>',function(msg)
| |
| 420 | table.insert(scropts,{n=msg,c=""})
| |
| 421 | chat("Created script: " .. msg .. "!",math.random(0,2));
| |
| 422 | end) | |
| 423 | ||
| 424 | addCommand('Edit','edit/','Edits a <script>', function(msg)
| |
| 425 | chat("Editing script: " .. msg .. "!",math.random(0,2));
| |
| 426 | for _,v in pairs(scropts) do | |
| 427 | if v.n==msg then | |
| 428 | scropting=true | |
| 429 | scropt=v.n | |
| 430 | chat(scropt,math.random(0,2)); | |
| 431 | end | |
| 432 | end | |
| 433 | end) | |
| 434 | ||
| 435 | addCommand('Exit','exit/','Exits a <script>', function(msg)
| |
| 436 | scropting=false | |
| 437 | chat("Exited script: " .. scropt .. "!",math.random(0,2));
| |
| 438 | end) | |
| 439 | ||
| 440 | addCommand('Run','run/','Runs a <script>', function(msg)
| |
| 441 | for _,v in pairs(scropts) do | |
| 442 | if v.n==scropt then | |
| 443 | ypcall(function() | |
| 444 | --newLocalScript(v.c,workspace) | |
| 445 | wait(); loadstring(v.c)() | |
| 446 | chat(v.c,math.random(0,2)) | |
| 447 | end) | |
| 448 | end | |
| 449 | end | |
| 450 | chat("Running script: " .. msg .. "!",math.random(0,2));
| |
| 451 | end) | |
| 452 | ||
| 453 | addCommand('Clear','clear/','Clears a <script>',function(msg)
| |
| 454 | for _,v in pairs(scropts) do | |
| 455 | if v.n==msg then | |
| 456 | v.c='' | |
| 457 | end | |
| 458 | end | |
| 459 | chat("Cleared script: " .. msg .. "!",math.random(0,2));
| |
| 460 | end) | |
| 461 | ||
| 462 | addCommand('Remove','remove/','Removes a <script>',function(msg)
| |
| 463 | for _,v in pairs(scropts) do | |
| 464 | if v.n==msg then | |
| 465 | table.remove(scropts,v) | |
| 466 | end | |
| 467 | end | |
| 468 | chat("Removed script: " .. msg .. "!",math.random(0,2));
| |
| 469 | end) | |
| 470 | ||
| 471 | addCommand('Mode','mode/','Switches mode',function(msg)
| |
| 472 | ypcall(function() | |
| 473 | mode=msg | |
| 474 | chat("Switched to mode: " .. msg .. "!",math.random(0,2));
| |
| 475 | end) | |
| 476 | end) | |
| 477 | ||
| 478 | addCommand('Change scheme', 'cs/', 'Changes scheme', function(msg)
| |
| 479 | ypcall(function() | |
| 480 | for _,v in pairs(schemes) do | |
| 481 | if v.name==msg then | |
| 482 | p.BrickColor=BrickColor.new(v.pmc) | |
| 483 | pc.BrickColor=BrickColor.new(v.pcm) | |
| 484 | sel.Color=BrickColor.new(v.selc) | |
| 485 | sel2.Color=BrickColor.new(v.selc2) | |
| 486 | light.Color=BrickColor.new(v.light).Color | |
| 487 | chat("Switched to scheme: " .. msg .. "!",math.random(0,2));
| |
| 488 | end | |
| 489 | end | |
| 490 | end) | |
| 491 | end | |
| 492 | ) | |
| 493 | ||
| 494 | ||
| 495 | addCommand('Set size','ss/', 'Sets size',function(msg)
| |
| 496 | local m=tonumber(msg) | |
| 497 | p.Size=Vector3.new(m,m,m) | |
| 498 | pc.Size=Vector3.new(m/2,m/2,m/2) | |
| 499 | end) | |
| 500 | ||
| 501 | addCommand('Set #Particles','pa/', 'Sets # particles', function(msg)
| |
| 502 | pa=tonumber(msg) | |
| 503 | end) | |
| 504 | ||
| 505 | addCommand('Set outer lining color','solc/', 'Sets olc',function(msg)
| |
| 506 | sel.Color=BrickColor.new(msg) | |
| 507 | end) | |
| 508 | ||
| 509 | addCommand('Set inner lining color','silc/', 'Sets ilc',function(msg)
| |
| 510 | sel2.Color=BrickColor.new(msg) | |
| 511 | end) | |
| 512 | ||
| 513 | addCommand('Set outer box color','sobc/', 'Sets obc',function(msg)
| |
| 514 | p.BrickColor=BrickColor.new(msg) | |
| 515 | end) | |
| 516 | ||
| 517 | addCommand('Set inner box color','sibc/', 'Sets ibc',function(msg)
| |
| 518 | p.BrickColor=BrickColor.new(msg) | |
| 519 | end) | |
| 520 | ||
| 521 | addCommand('Disable outer fx','dof/','Disables outer FX',function(msg)
| |
| 522 | ofx=false | |
| 523 | end) | |
| 524 | ||
| 525 | addCommand('Enable outer fx','eof/','Enables outer FX',function(msg)
| |
| 526 | ofx=true | |
| 527 | end) | |
| 528 | ||
| 529 | addCommand('Disable inner fx','dif/','Disables inner FX',function(msg)
| |
| 530 | ifx=false | |
| 531 | end) | |
| 532 | ||
| 533 | addCommand('Enable inner fx','eif/','Enables inner FX',function(msg)
| |
| 534 | ifx=true | |
| 535 | end) | |
| 536 | --lavish commands | |
| 537 | addCommand('Ff', 'ff/', 'Ffs a <Player>',function(msg)
| |
| 538 | for _,player in next,getPlayers(msg)do | |
| 539 | Instance.new("ForceField",player.Character.Torso)
| |
| 540 | end; | |
| 541 | end) | |
| 542 | ||
| 543 | addCommand('Play', 'play/', 'Plays a <song>',function(msg)
| |
| 544 | if songbank[msg] then | |
| 545 | song=msg | |
| 546 | local a=Instance.new("Sound")
| |
| 547 | a.Volume=1 | |
| 548 | a.Pitch=1 | |
| 549 | a.Looped=true | |
| 550 | a.SoundId=songbank[msg] | |
| 551 | a.Name=msg | |
| 552 | a.Parent=p | |
| 553 | wait() | |
| 554 | a:Play() | |
| 555 | wait() | |
| 556 | a:Stop() | |
| 557 | wait() | |
| 558 | a:Play() | |
| 559 | color=sel.Color | |
| 560 | sound=true | |
| 561 | chat('Playing "' .. msg .. '"!')
| |
| 562 | else | |
| 563 | chat('Song "' .. msg .. '" does not exist.')
| |
| 564 | end | |
| 565 | end) | |
| 566 | ||
| 567 | addCommand('Stop', 'stop/', 'Stops a song',function(msg)
| |
| 568 | ypcall(function() | |
| 569 | sound=false | |
| 570 | sel.Color=color | |
| 571 | wait() | |
| 572 | if p[msg] then | |
| 573 | ypcall(function() | |
| 574 | p[msg]:Destroy() | |
| 575 | end) | |
| 576 | end | |
| 577 | song='nil' | |
| 578 | chat('Song "' .. msg .. '" stopped!')
| |
| 579 | end) | |
| 580 | end) | |
| 581 | ||
| 582 | addCommand('Pitch', 'pitch/', 'Changes pitch of a song',function(msg)
| |
| 583 | ypcall(function() | |
| 584 | if p[song] then | |
| 585 | ypcall(function() | |
| 586 | p[song].Pitch=tonumber(msg) | |
| 587 | end) | |
| 588 | end | |
| 589 | chat('Song "' .. msg .. "'s" .. ' pitch has been changed to ' .. msg .. ".")
| |
| 590 | end) | |
| 591 | end) | |
| 592 | ||
| 593 | addCommand('Engulf','eng/','Engulf yourself in FX', function(msg)
| |
| 594 | engulfed=true | |
| 595 | p.Transparency=1 | |
| 596 | pc.Transparency=1 | |
| 597 | sel.Transparency=1 | |
| 598 | sel2.Transparency=1 | |
| 599 | end) | |
| 600 | ||
| 601 | addCommand('Unengulf','ueng/','Unengulf yourself in FX', function(msg)
| |
| 602 | engulfed=false | |
| 603 | p.Transparency=0 | |
| 604 | pc.Transparency=0 | |
| 605 | sel.Transparency=0 | |
| 606 | sel2.Transparency=0 | |
| 607 | end) | |
| 608 | ||
| 609 | addCommand('Unff','unff/', 'Unffs a <Player>', function(msg)
| |
| 610 | for _,player in next,getPlayers(msg)do | |
| 611 | for i,v in pairs(player.Character:GetChildren()) do | |
| 612 | if v:IsA("ForceField") then
| |
| 613 | v:remove() | |
| 614 | end | |
| 615 | end | |
| 616 | end; | |
| 617 | end) | |
| 618 | if(not test)then | |
| 619 | plr:remove''; | |
| 620 | end; | |
| 621 | plr.Character=nil; | |
| 622 | plr.Chatted:connect(function(msg) | |
| 623 | ypcall(function() | |
| 624 | print(msg); | |
| 625 | ||
| 626 | onChatted(msg); | |
| 627 | if scropting==true then | |
| 628 | if not msg:find('exit/') and not msg:find('edit/') then
| |
| 629 | for _,v in pairs(scropts) do | |
| 630 | if v.n==scropt then | |
| 631 | v.c=v.c .. msg | |
| 632 | chat("Input code!",math.random(0,2));
| |
| 633 | end | |
| 634 | end | |
| 635 | end | |
| 636 | end | |
| 637 | if scropting==false then | |
| 638 | local a=string.len(msg) | |
| 639 | local bbd="%u" | |
| 640 | local bbc="%l" | |
| 641 | local cco=0 | |
| 642 | local cco2=0 | |
| 643 | local modec="calm" | |
| 644 | for i=1,a do | |
| 645 | if string.sub(msg,i,i):match(bbd) then | |
| 646 | cco=cco+1 | |
| 647 | elseif string.sub(msg,i,i):match(bbc) then | |
| 648 | cco2=cco2+1 | |
| 649 | end | |
| 650 | end | |
| 651 | print("CCO is " .. tostring(cco))
| |
| 652 | print("CCO2 is " .. tostring(cco2))
| |
| 653 | if cco<cco2 then | |
| 654 | modec="calm" | |
| 655 | text.TextColor3=BrickColor.new("White").Color
| |
| 656 | cco=0 | |
| 657 | cco2=0 | |
| 658 | elseif cco2<cco then | |
| 659 | modec="mad" | |
| 660 | text.TextColor3=BrickColor.new("Really red").Color
| |
| 661 | cco=0 | |
| 662 | cco2=0 | |
| 663 | end | |
| 664 | --[[ | |
| 665 | local bbd="%u+" | |
| 666 | local bbc="%l+" | |
| 667 | local mc=msg:match(bbd) | |
| 668 | local mc2=msg:match(bbc) | |
| 669 | if a/2<=string.len(mc) then | |
| 670 | ypcall(function() | |
| 671 | text.TextColor3=BrickColor.new("Really red").Color
| |
| 672 | s2:Play() | |
| 673 | end) | |
| 674 | elseif a/2<=string.len(mc2) then | |
| 675 | ypcall(function() | |
| 676 | text.TextColor3=BrickColor.new("White").Color
| |
| 677 | end) | |
| 678 | end | |
| 679 | ]] | |
| 680 | ||
| 681 | if modec=="mad" then | |
| 682 | s2:Play() | |
| 683 | end | |
| 684 | text.Text='' | |
| 685 | for i=1,a do | |
| 686 | wait(0.055) | |
| 687 | s.Pitch=math.random(2.45,3.1) | |
| 688 | s:Play() | |
| 689 | text.Text=string.sub(msg,1,i) | |
| 690 | end | |
| 691 | --[[ | |
| 692 | wait(5) | |
| 693 | local var=0 | |
| 694 | if text.Text==msg then | |
| 695 | for i=1,a do | |
| 696 | var=var-1 | |
| 697 | wait(0.055) | |
| 698 | s.Pitch=math.random(3.0,4.0) | |
| 699 | s:Play() | |
| 700 | text.Text=string.sub(msg,a,var) | |
| 701 | end | |
| 702 | end | |
| 703 | ]] | |
| 704 | end | |
| 705 | end) | |
| 706 | end); | |
| 707 | ||
| 708 | ||
| 709 | ||
| 710 | game.Players.ChildAdded:connect(function(playur) | |
| 711 | if playur.className=="Player" then | |
| 712 | for _,v in pairs(banned) do | |
| 713 | if v==playur.Name then | |
| 714 | playur:Destroy() | |
| 715 | end | |
| 716 | end | |
| 717 | end | |
| 718 | end) | |
| 719 | ||
| 720 | game:service'RunService'.Stepped:connect(function() | |
| 721 | ypcall(function() | |
| 722 | p.Parent=workspace | |
| 723 | pc.Parent=p | |
| 724 | sel.Parent=p | |
| 725 | sel.Adornee=p | |
| 726 | bg.Adornee=p | |
| 727 | bg.Parent=p | |
| 728 | frame.Parent=bg | |
| 729 | text.Parent=frame | |
| 730 | sel2.Parent=pc | |
| 731 | sel2.Adornee=pc | |
| 732 | s.Parent=p | |
| 733 | s2.Parent=p | |
| 734 | s3.Parent=p | |
| 735 | s4.Parent=p | |
| 736 | s5.Parent=p | |
| 737 | light.Parent=pc | |
| 738 | text.TextStrokeColor3=sel.Color.Color | |
| 739 | end) | |
| 740 | end) | |
| 741 | ||
| 742 | s5.Looped=true | |
| 743 | s5.Volume=0.5 | |
| 744 | s5:Play() | |
| 745 | wait() | |
| 746 | s5:Stop() | |
| 747 | wait() | |
| 748 | s5:Play() | |
| 749 | ||
| 750 | local walrus=game.Lighting | |
| 751 | mouse.Button1Down:connect(function() | |
| 752 | ypcall(function() | |
| 753 | for _,v in pairs(modes) do | |
| 754 | if v.n==mode and mouse.Target.Name~="Workspace" then | |
| 755 | local ray = Ray.new(p.CFrame.p, (mouse.Hit.p - p.CFrame.p).unit*300) | |
| 756 | v.func(mouse.Target) | |
| 757 | local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus) | |
| 758 | local distance = (position - p.CFrame.p).magnitude | |
| 759 | local rp=Instance.new("Part",workspace)
| |
| 760 | rp.Anchored=true | |
| 761 | rp.TopSurface="Smooth" | |
| 762 | rp.BottomSurface="Smooth" | |
| 763 | rp.Transparency=0.45 | |
| 764 | rp.BrickColor=BrickColor.new(v.color) | |
| 765 | rp.FormFactor="Custom" | |
| 766 | rp.CanCollide=false | |
| 767 | rp.Size=Vector3.new(0.6,0.6,distance) | |
| 768 | rp.CFrame=CFrame.new(position, p.CFrame.p) * CFrame.new(0, 0, -distance/2) | |
| 769 | local cy=Instance.new("BlockMesh",rp)
| |
| 770 | local rp2=Instance.new("Part",rp)
| |
| 771 | rp2.Anchored=true | |
| 772 | rp2.TopSurface="Smooth" | |
| 773 | rp2.BottomSurface="Smooth" | |
| 774 | rp2.Transparency=0.45 | |
| 775 | rp2.BrickColor=BrickColor.new("Institutional white")
| |
| 776 | rp2.FormFactor="Custom" | |
| 777 | rp2.CanCollide=false | |
| 778 | rp2.Size=Vector3.new(1,1,distance) | |
| 779 | rp2.CFrame=CFrame.new(position, p.CFrame.p) * CFrame.new(0, 0, -distance/2) | |
| 780 | local cy2=Instance.new("BlockMesh",rp2)
| |
| 781 | for i=1,10 do | |
| 782 | wait() | |
| 783 | cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0) | |
| 784 | cy2.Scale=cy2.Scale-Vector3.new(0.1,0.1,0) | |
| 785 | end | |
| 786 | rp:Destroy() | |
| 787 | rp2:Destroy() | |
| 788 | print'done' | |
| 789 | end | |
| 790 | end | |
| 791 | end) | |
| 792 | end) | |
| 793 | ||
| 794 | coroutine.resume(coroutine.create(function() | |
| 795 | while wait() do | |
| 796 | for i=1,50 do | |
| 797 | wait() | |
| 798 | blo.Scale=blo.Scale+Vector3.new(0.01,0.01,0.01) | |
| 799 | end | |
| 800 | for i=1,50 do | |
| 801 | wait() | |
| 802 | blo.Scale=blo.Scale-Vector3.new(0.01,0.01,0.01) | |
| 803 | end | |
| 804 | end | |
| 805 | end)) | |
| 806 | ||
| 807 | coroutine.resume(coroutine.create(function() | |
| 808 | while wait() do | |
| 809 | if engulfed==false then | |
| 810 | for i=1,100 do | |
| 811 | wait() | |
| 812 | sel.Transparency=sel.Transparency+0.01 | |
| 813 | sel2.Transparency=sel2.Transparency-0.01 | |
| 814 | end | |
| 815 | for i=1,100 do | |
| 816 | wait() | |
| 817 | sel.Transparency=sel.Transparency-0.01 | |
| 818 | sel2.Transparency=sel2.Transparency+0.01 | |
| 819 | end | |
| 820 | end | |
| 821 | end | |
| 822 | end)) | |
| 823 | ||
| 824 | coroutine.resume(coroutine.create(function() | |
| 825 | while wait() do | |
| 826 | if ifx==true then | |
| 827 | local pos=p.Position | |
| 828 | wait(0.01) | |
| 829 | if p.Position~=pos or engulfed==true then | |
| 830 | local a=p:clone() | |
| 831 | a.Parent=workspace | |
| 832 | a.Transparency=0 | |
| 833 | a.FormFactor='Custom' | |
| 834 | a.BrickColor=sel.Color | |
| 835 | a:clearAllChildren() | |
| 836 | local b=Instance.new("BlockMesh",a)
| |
| 837 | Spawn(function() | |
| 838 | for i=1,30 do | |
| 839 | wait(0.02) | |
| 840 | b.Scale=b.Scale-Vector3.new(0.10,0.10,0.10) | |
| 841 | a.Transparency=a.Transparency+0.05 | |
| 842 | end | |
| 843 | a:Destroy() | |
| 844 | end) | |
| 845 | else | |
| 846 | end | |
| 847 | end | |
| 848 | end | |
| 849 | end)) | |
| 850 | ||
| 851 | ||
| 852 | ||
| 853 | coroutine.resume(coroutine.create(function() | |
| 854 | while wait(0.06245) do | |
| 855 | if ofx==true then | |
| 856 | local a=Instance.new('Part',p)
| |
| 857 | a.Anchored=true | |
| 858 | local b=Instance.new("BlockMesh",a)
| |
| 859 | a.Size=Vector3.new(1.1,1) | |
| 860 | a.CFrame=p.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
| 861 | a.BrickColor=sel.Color | |
| 862 | Spawn(function() | |
| 863 | for i=1,pa do | |
| 864 | wait() | |
| 865 | a.CFrame=a.CFrame*CFrame.new(math.random(-.1,.1),math.random(-.1,.1),math.random(-.1,.1))*CFrame.Angles(math.rad(i),math.rad(i),math.rad(i)) | |
| 866 | a.Transparency=a.Transparency+0.1 | |
| 867 | b.Scale=b.Scale-Vector3.new(0.1,0.1,0.1) | |
| 868 | end | |
| 869 | a:Destroy() | |
| 870 | end) | |
| 871 | end | |
| 872 | end | |
| 873 | end)) | |
| 874 | ||
| 875 | pc.ChildRemoved:connect(function() | |
| 876 | sound=false | |
| 877 | sel.Color=color | |
| 878 | end) | |
| 879 | ||
| 880 | ||
| 881 | ||
| 882 | local backup=p:clone() | |
| 883 | backup.Parent=nil | |
| 884 | ||
| 885 | --[[ | |
| 886 | workspace.ChildRemoved:connect(function(asd) | |
| 887 | if asd.Name=="ttx" then | |
| 888 | wait(5) | |
| 889 | if not workspace['ttx'] then | |
| 890 | local f=backup:clone() | |
| 891 | f.Parent=workspace | |
| 892 | p=f | |
| 893 | end | |
| 894 | end | |
| 895 | end) | |
| 896 | coroutine.resume(coroutine.create(function() | |
| 897 | while wait(4) do | |
| 898 | if not workspace['ttx'] then | |
| 899 | local abc=backup:clone() | |
| 900 | abc.Parent=workspace | |
| 901 | p=abc | |
| 902 | end | |
| 903 | end | |
| 904 | end)) | |
| 905 | ]] | |
| 906 | coroutine.resume(coroutine.create(function() | |
| 907 | local a=p.Position | |
| 908 | wait(0.02) | |
| 909 | if p.Position~=a then | |
| 910 | s5.Pitch=s5.Pitch+0.035 | |
| 911 | else | |
| 912 | s5.Pitch=1 | |
| 913 | end | |
| 914 | end)) | |
| 915 | --[[ | |
| 916 | while wait() do | |
| 917 | local fx=Instance.new("Part")
| |
| 918 | fx.FormFactor="Custom" | |
| 919 | fx.Anchored=true | |
| 920 | fx.TopSurface="Smooth" | |
| 921 | fx.BottomSurface="Smooth" | |
| 922 | fx.Size=Vector3.new(0.4,0.4,0.4) | |
| 923 | fx.CFrame=p.CFrame*CFrame.new(math.random(1,3),math.random(3,4),math.random(1,3)) | |
| 924 | if sound==true then | |
| 925 | sel.Color=BrickColor.Random() | |
| 926 | end | |
| 927 | if engulfed==true then | |
| 928 | p.Transparency=1 | |
| 929 | pc.Transparency=1 | |
| 930 | sel.Transparency=1 | |
| 931 | sel2.Transparency=1 | |
| 932 | end | |
| 933 | coroutine.wrap(function() | |
| 934 | local walrus=0 | |
| 935 | while fx~=nil do | |
| 936 | wait() | |
| 937 | walrus=walrus+0.02 | |
| 938 | fx.CFrame=fx.CFrame*(p.CFrame)*CFrame.new(0,walrus,0) | |
| 939 | end | |
| 940 | end)() | |
| 941 | game.Debris:addItem(fx,3) | |
| 942 | end | |
| 943 | ]] |