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