SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | - | Player=game:GetService("Players").LocalPlayer |
3 | + | do |
4 | print("FE Compatibility code by Mokiros") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | - | mouse = Player:GetMouse() |
15 | + | return t |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | - | RenderStepped = game:GetService("RunService").RenderStepped |
32 | + | end |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | - | while RunSrv.RenderStepped:wait() do |
42 | + | else |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | --Draw something, put your sound id in, and watch the light show!-- | |
84 | --Enjoy lads.-- | |
85 | Player=owner | |
86 | Character=Player.Character | |
87 | Character.Humanoid.Name = "noneofurbusiness" | |
88 | hum = Character.noneofurbusiness | |
89 | LeftArm=Character["Left Arm"] | |
90 | LeftLeg=Character["Left Leg"] | |
91 | RightArm=Character["Right Arm"] | |
92 | RightLeg=Character["Right Leg"] | |
93 | Root=Character["HumanoidRootPart"] | |
94 | Head=Character["Head"] | |
95 | Torso=Character["Torso"] | |
96 | Neck=Torso["Neck"] | |
97 | removeuseless = game:GetService("Debris") | |
98 | soundIsPlaying = false | |
99 | number = 0 | |
100 | stop = false | |
101 | flatt = false | |
102 | standingg = true | |
103 | tf = 0 | |
104 | idrewsomething = false | |
105 | tab2={} | |
106 | tab={} | |
107 | blue = false | |
108 | red = true | |
109 | green = false | |
110 | drawingallowed = true | |
111 | MseGuide = true | |
112 | RunSrv = game:GetService("RunService") | |
113 | Stepped = game:GetService("RunService").Stepped | |
114 | ||
115 | local HEADLERP = Instance.new("ManualWeld") | |
116 | HEADLERP.Parent = Head | |
117 | HEADLERP.Part0 = Head | |
118 | HEADLERP.Part1 = Head | |
119 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
120 | ||
121 | OrgnC0 = Neck.C0 | |
122 | local movelimbs = coroutine.wrap(function() | |
123 | while RunSrv.Stepped:wait() do | |
124 | TrsoLV = Torso.CFrame.lookVector | |
125 | Dist = nil | |
126 | Diff = nil | |
127 | if not MseGuide then | |
128 | print("l") | |
129 | else | |
130 | local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
131 | Dist = (Head.CFrame.p-Point).magnitude | |
132 | Diff = Head.CFrame.Y-Point.Y | |
133 | local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
134 | Dist2 = (LeftArm.CFrame.p-Point).magnitude | |
135 | Diff2 = LeftArm.CFrame.Y-Point.Y | |
136 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
137 | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) | |
138 | end | |
139 | end | |
140 | end) | |
141 | movelimbs() | |
142 | ||
143 | godmode = coroutine.wrap(function()---- so you don't get killed by fucking random things | |
144 | while true do | |
145 | hum.MaxHealth = math.huge | |
146 | wait(0.0000001) | |
147 | hum.Health = math.huge | |
148 | wait() | |
149 | end | |
150 | end) | |
151 | godmode() | |
152 | ff = Instance.new("ForceField", Character) | |
153 | ff.Visible = false | |
154 | ||
155 | coroutine.wrap(function() | |
156 | mouse.Button1Down:connect(function() | |
157 | if drawingallowed then | |
158 | fo = false | |
159 | while true do | |
160 | if fo then break end | |
161 | idrewsomething = true | |
162 | brick = Instance.new("Part",Character) | |
163 | brick.Anchored = true | |
164 | brick.Material = "Neon" | |
165 | brick.CanCollide = false | |
166 | brick.BrickColor = BrickColor.new("Really black") | |
167 | brick.Size = Vector3.new(1,1,1) | |
168 | brick.CFrame = CFrame.new(mouse.Hit.p) | |
169 | table.insert(tab2,brick) | |
170 | light = Instance.new("PointLight", brick) | |
171 | light.Color = brick.BrickColor.Color | |
172 | light.Range = 0 | |
173 | light.Enabled = true | |
174 | light.Shadows = true | |
175 | light.Brightness = 0 | |
176 | table.insert(tab,light) | |
177 | wait() | |
178 | end | |
179 | end | |
180 | end) | |
181 | end)() | |
182 | ||
183 | coroutine.wrap(function() | |
184 | mouse.Button1Up:connect(function() | |
185 | if drawingallowed then | |
186 | fo = true | |
187 | end | |
188 | end) | |
189 | end)() | |
190 | ||
191 | ---GUI--- | |
192 | ||
193 | screenGui = Instance.new("ScreenGui") | |
194 | screenGui.Parent = script.Parent | |
195 | ||
196 | frame = Instance.new("Frame") | |
197 | frame.Parent = screenGui | |
198 | frame.Position = UDim2.new(0, 8, 0, 225) | |
199 | frame.Size = UDim2.new(0, 250, 0, 200) | |
200 | frame.BackgroundColor3 = BrickColor.new("White").Color | |
201 | frame.BackgroundTransparency = .5 | |
202 | ||
203 | textButton = Instance.new("TextButton") | |
204 | textButton.Parent = screenGui | |
205 | textButton.Position = UDim2.new(0, 12, 0, 400) | |
206 | textButton.Size = UDim2.new(0, 50, 0, 10) | |
207 | textButton.BackgroundColor3 = BrickColor.new("Really red").Color | |
208 | textButton.Text = "Red" | |
209 | ||
210 | textButton.MouseButton1Down:connect(function() | |
211 | red = true | |
212 | green = false | |
213 | blue = false | |
214 | rainbow = false | |
215 | smooth = false | |
216 | end) | |
217 | ||
218 | textButton2 = Instance.new("TextButton") | |
219 | textButton2.Parent = screenGui | |
220 | textButton2.Position = UDim2.new(0, 75, 0, 400) | |
221 | textButton2.Size = UDim2.new(0, 50, 0, 10) | |
222 | textButton2.BackgroundColor3 = BrickColor.new("Really blue").Color | |
223 | textButton2.Text = "Blue" | |
224 | ||
225 | textButton2.MouseButton1Down:connect(function() | |
226 | red = false | |
227 | green = false | |
228 | blue = true | |
229 | rainbow = false | |
230 | smooth = false | |
231 | end) | |
232 | ||
233 | textButton3 = Instance.new("TextButton") | |
234 | textButton3.Parent = screenGui | |
235 | textButton3.Position = UDim2.new(0, 138, 0, 400) | |
236 | textButton3.Size = UDim2.new(0, 50, 0, 10) | |
237 | textButton3.BackgroundColor3 = BrickColor.new("Lime green").Color | |
238 | textButton3.Text = "Green" | |
239 | ||
240 | textButton3.MouseButton1Down:connect(function() | |
241 | red = false | |
242 | green = true | |
243 | blue = false | |
244 | rainbow = false | |
245 | smooth = false | |
246 | end) | |
247 | ||
248 | textButton4 = Instance.new("TextButton") | |
249 | textButton4.Parent = screenGui | |
250 | textButton4.Position = UDim2.new(0, 201, 0, 400) | |
251 | textButton4.Size = UDim2.new(0, 50, 0, 10) | |
252 | coroutine.wrap(function() | |
253 | while true do | |
254 | textButton4.BackgroundColor3 = BrickColor.Random().Color | |
255 | wait(.05) | |
256 | end | |
257 | end)() | |
258 | textButton4.Text = "Rainbow" | |
259 | ||
260 | textButton4.MouseButton1Down:connect(function() | |
261 | red = false | |
262 | green = false | |
263 | blue = false | |
264 | rainbow = true | |
265 | smooth = false | |
266 | end) | |
267 | ||
268 | textBox = Instance.new("TextBox") | |
269 | textBox.Parent = screenGui | |
270 | textBox.Position = UDim2.new(0, 58, 0, 280) | |
271 | textBox.Size = UDim2.new(0, 150, 0, 20) | |
272 | textBox.BackgroundColor3 = BrickColor.new("White").Color | |
273 | textBox.Text = "Type Sound Id here" | |
274 | ||
275 | form = Instance.new("TextButton") | |
276 | form.Parent = screenGui | |
277 | form.TextScaled = true | |
278 | form.Position = UDim2.new(0, 114, 0, 305) | |
279 | form.Size = UDim2.new(0, 40, 0, 20) | |
280 | form.BackgroundColor3 = BrickColor.new("White").Color | |
281 | form.Text = "Up" | |
282 | ||
283 | form.MouseButton1Down:connect(function() | |
284 | if standingg then | |
285 | standingg = false | |
286 | flatt = true | |
287 | form.Text = "Flat" | |
288 | elseif flatt then | |
289 | flatt = false | |
290 | standingg = true | |
291 | form.Text = "Up" | |
292 | end | |
293 | end) | |
294 | ||
295 | coroutine.wrap(function() | |
296 | while wait() do | |
297 | sid = textBox.Text | |
298 | end | |
299 | end)() | |
300 | ||
301 | playbutton = Instance.new("TextButton") | |
302 | playbutton.Parent = screenGui | |
303 | playbutton.Position = UDim2.new(0, 58, 0, 305) | |
304 | playbutton.Size = UDim2.new(0, 50, 0, 20) | |
305 | playbutton.BackgroundColor3 = BrickColor.new("White").Color | |
306 | playbutton.Text = "Play" | |
307 | ||
308 | playbutton.MouseButton1Down:connect(function() | |
309 | if not idrewsomething then return end | |
310 | if soundIsPlaying then | |
311 | sound1:Remove() | |
312 | sound1 = Instance.new("Sound", Character) | |
313 | sound1.Looped = true | |
314 | sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid | |
315 | sound1:Play() | |
316 | else | |
317 | soundIsPlaying = true | |
318 | vol.Text = 1 | |
319 | pitch.Text = 1 | |
320 | sound1 = Instance.new("Sound", Character) | |
321 | coroutine.wrap(function() | |
322 | while soundIsPlaying do | |
323 | wait() | |
324 | sound1.Volume = svol | |
325 | end | |
326 | end)() | |
327 | sound1.Looped = true | |
328 | coroutine.wrap(function() | |
329 | while soundIsPlaying do | |
330 | sound1.Pitch = pitchh | |
331 | wait() | |
332 | end | |
333 | end)() | |
334 | sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid | |
335 | sound1:Play() | |
336 | coroutine.wrap(function() | |
337 | while sound1.IsPlaying and soundIsPlaying do | |
338 | for i,v in pairs(tab) do | |
339 | v.Enabled = true | |
340 | v.Brightness = sound1.PlaybackLoudness/19 | |
341 | v.Range = sound1.PlaybackLoudness/15 | |
342 | if red then | |
343 | v.Color = Color3.new(sound1.PlaybackLoudness/200, 0,0) | |
344 | elseif blue then | |
345 | v.Color = Color3.new(0, 0,sound1.PlaybackLoudness/200) | |
346 | elseif green then | |
347 | v.Color = Color3.new(0, sound1.PlaybackLoudness/200,0) | |
348 | elseif rainbow then | |
349 | v.Color = brick.BrickColor.Color | |
350 | end | |
351 | end | |
352 | wait() | |
353 | end | |
354 | end)() | |
355 | while sound1.IsPlaying and soundIsPlaying do | |
356 | workspace.CurrentCamera.FieldOfView = 70 - sound1.PlaybackLoudness/100 | |
357 | bcol = brick.BrickColor | |
358 | for _,v in pairs(tab2) do | |
359 | if standingg then | |
360 | v.Size = Vector3.new(1, sound1.PlaybackLoudness/math.random(10,25), 1) | |
361 | elseif flatt then | |
362 | v.Size = Vector3.new(sound1.PlaybackLoudness/math.random(10,25), 1, 1) | |
363 | end | |
364 | if red then | |
365 | v.BrickColor = BrickColor.new(Color3.new(sound1.PlaybackLoudness/200, 0,0)) | |
366 | elseif blue then | |
367 | v.BrickColor = BrickColor.new(Color3.new(0,0,sound1.PlaybackLoudness/200)) | |
368 | elseif green then | |
369 | v.BrickColor = BrickColor.new(Color3.new(0,sound1.PlaybackLoudness/200,0)) | |
370 | elseif rainbow then | |
371 | v.BrickColor = BrickColor.Random() | |
372 | end | |
373 | end | |
374 | wait() | |
375 | end | |
376 | end | |
377 | end) | |
378 | ||
379 | local stopbutton = Instance.new("TextButton") | |
380 | stopbutton.Parent = screenGui | |
381 | stopbutton.Position = UDim2.new(0, 158, 0, 305) | |
382 | stopbutton.Size = UDim2.new(0, 50, 0, 20) | |
383 | stopbutton.BackgroundColor3 = BrickColor.new("White").Color | |
384 | stopbutton.Text = "Stop" | |
385 | ||
386 | vol = Instance.new("TextBox") | |
387 | vol.Parent = screenGui | |
388 | vol.Position = UDim2.new(0, 58, 0, 330) | |
389 | vol.Size = UDim2.new(0, 50, 0, 20) | |
390 | vol.BackgroundColor3 = BrickColor.new("White").Color | |
391 | vol.Text = "Volume" | |
392 | ||
393 | coroutine.wrap(function() | |
394 | while wait() do | |
395 | svol = vol.Text | |
396 | end | |
397 | end)() | |
398 | ||
399 | local remove = Instance.new("TextButton") | |
400 | remove.Parent = screenGui | |
401 | remove.Position = UDim2.new(0, 108, 0, 370) | |
402 | remove.Size = UDim2.new(0, 50, 0, 20) | |
403 | remove.BackgroundColor3 = BrickColor.new("White").Color | |
404 | remove.Text = "Clean" | |
405 | ||
406 | pitch = Instance.new("TextBox") | |
407 | pitch.Parent = screenGui | |
408 | pitch.Position = UDim2.new(0, 158, 0, 330) | |
409 | pitch.Size = UDim2.new(0, 50, 0, 20) | |
410 | pitch.BackgroundColor3 = BrickColor.new("White").Color | |
411 | pitch.Text = "Pitch" | |
412 | ||
413 | coroutine.wrap(function() | |
414 | while wait() do | |
415 | pitchh = pitch.Text | |
416 | end | |
417 | end)() | |
418 | ||
419 | pitchup = Instance.new("ImageButton") | |
420 | pitchup.Parent = screenGui | |
421 | pitchup.Position = UDim2.new(0, 131, 0, 327) | |
422 | pitchup.BackgroundTransparency = 1 | |
423 | pitchup.Size = UDim2.new(0, 25, 0, 25) | |
424 | pitchup.Image = "rbxassetid://29563813" | |
425 | ||
426 | pitchup.MouseButton1Down:connect(function() | |
427 | if soundIsPlaying then | |
428 | pitch.Text = pitch.Text + .1 | |
429 | end | |
430 | end) | |
431 | ||
432 | pitchdown = Instance.new("ImageButton") | |
433 | pitchdown.Parent = screenGui | |
434 | pitchdown.Rotation = 180 | |
435 | pitchdown.Position = UDim2.new(0, 211, 0, 327) | |
436 | pitchdown.BackgroundTransparency = 1 | |
437 | pitchdown.Size = UDim2.new(0, 25, 0, 25) | |
438 | pitchdown.Image = "rbxassetid://29563813" | |
439 | ||
440 | pitchdown.MouseButton1Down:connect(function() | |
441 | if soundIsPlaying then | |
442 | pitch.Text = pitch.Text - .1 | |
443 | end | |
444 | end) | |
445 | ||
446 | remove.MouseButton1Down:connect(function() | |
447 | if idrewsomething then | |
448 | if soundIsPlaying then | |
449 | soundIsPlaying = false | |
450 | workspace.CurrentCamera.FieldOfView = 70 | |
451 | woosh = Instance.new("Sound",Character) | |
452 | woosh.Volume = 2 | |
453 | woosh.SoundId = "rbxasstid://215402014" | |
454 | woosh:Play() | |
455 | sound1:Stop() | |
456 | pitch.Text = "Pitch" | |
457 | vol.Text = "Volume" | |
458 | removeuseless:AddItem(woosh,2) | |
459 | for _,v in pairs(tab2) do | |
460 | v:Remove() | |
461 | end | |
462 | idrewsomething = false | |
463 | elseif not soundIsPlaying then | |
464 | soundIsPlaying = false | |
465 | woosh = Instance.new("Sound",Character) | |
466 | woosh.Volume = 2 | |
467 | woosh.SoundId = "rbxasstid://215402014" | |
468 | woosh:Play() | |
469 | for _,v in pairs(tab2) do | |
470 | v:Remove() | |
471 | end | |
472 | idrewsomething = false | |
473 | end | |
474 | end | |
475 | end) | |
476 | ||
477 | local day = Instance.new("TextButton") | |
478 | day.Parent = screenGui | |
479 | day.Position = UDim2.new(0, 50, 0, 370) | |
480 | day.Size = UDim2.new(0, 50, 0, 20) | |
481 | day.BackgroundColor3 = BrickColor.new("Bright yellow").Color | |
482 | day.Text = "Day" | |
483 | ||
484 | day.MouseButton1Down:connect(function() | |
485 | daytime = true | |
486 | nighttime = false | |
487 | turnon = Instance.new("Sound",Character) | |
488 | turnon.SoundId = "rbxassetid://858896518" | |
489 | turnon.Volume = 1 | |
490 | turnon.Pitch = 1.05 | |
491 | turnon:Play() | |
492 | removeuseless:AddItem(turnon,2) | |
493 | coroutine.wrap(function() | |
494 | while daytime do | |
495 | game.Lighting.TimeOfDay = 12 | |
496 | game.Lighting.GlobalShadows = true | |
497 | game.Lighting.Ambient = Color3.fromRGB(10,10,10) | |
498 | game.Lighting.Brightness = 1 | |
499 | wait() | |
500 | end | |
501 | end)() | |
502 | end) | |
503 | ||
504 | local night = Instance.new("TextButton") | |
505 | night.Parent = screenGui | |
506 | night.Position = UDim2.new(0, 165, 0, 370) | |
507 | night.Size = UDim2.new(0, 50, 0, 20) | |
508 | night.BackgroundColor3 = BrickColor.new("Really black").Color | |
509 | night.TextColor = BrickColor.new("White") | |
510 | night.Text = "Night" | |
511 | ||
512 | night.MouseButton1Down:connect(function() | |
513 | daytime = false | |
514 | nighttime = true | |
515 | turnoff = Instance.new("Sound",Character) | |
516 | turnoff.SoundId = "rbxassetid://858896518" | |
517 | turnoff.Volume = 1 | |
518 | turnoff.Pitch = .9 | |
519 | turnoff:Play() | |
520 | removeuseless:AddItem(turnoff,2) | |
521 | coroutine.wrap(function() | |
522 | while nighttime do | |
523 | game.Lighting.TimeOfDay = 0 | |
524 | game.Lighting.GlobalShadows = false | |
525 | game.Lighting.Ambient = Color3.new(0,0,0) | |
526 | game.Lighting.Brightness = 0 | |
527 | wait() | |
528 | end | |
529 | end)() | |
530 | end) | |
531 | ||
532 | volumeup = Instance.new("ImageButton") | |
533 | volumeup.Parent = screenGui | |
534 | volumeup.Position = UDim2.new(0, 29, 0, 327) | |
535 | volumeup.BackgroundTransparency = 1 | |
536 | volumeup.Size = UDim2.new(0, 25, 0, 25) | |
537 | volumeup.Image = "rbxassetid://29563813" | |
538 | ||
539 | volumeup.MouseButton1Down:connect(function() | |
540 | if soundIsPlaying then | |
541 | vol.Text = vol.Text + 1 | |
542 | end | |
543 | end) | |
544 | ||
545 | volumedown = Instance.new("ImageButton") | |
546 | volumedown.Parent = screenGui | |
547 | volumedown.Rotation = 180 | |
548 | volumedown.Position = UDim2.new(0, 111, 0, 327) | |
549 | volumedown.BackgroundTransparency = 1 | |
550 | volumedown.Size = UDim2.new(0, 25, 0, 25) | |
551 | volumedown.Image = "rbxassetid://29563813" | |
552 | ||
553 | Supr14 = Instance.new("ImageLabel") | |
554 | Supr14.Parent = screenGui | |
555 | Supr14.Rotation = 0 | |
556 | Supr14.Position = UDim2.new(0, 13, 0, 222) | |
557 | Supr14.BackgroundTransparency = 1 | |
558 | Supr14.Size = UDim2.new(0, 240, 0, 60) | |
559 | Supr14.Image = "rbxassetid://1815697653" | |
560 | ||
561 | volumedown.MouseButton1Down:connect(function() | |
562 | if soundIsPlaying then | |
563 | vol.Text = vol.Text - 1 | |
564 | end | |
565 | end) | |
566 | ||
567 | jester = Instance.new("Part",Character) | |
568 | jester.Size = Vector3.new(2,2,2) | |
569 | jester.CFrame = Head.CFrame | |
570 | jester.CanCollide = false | |
571 | jesterWeld = Instance.new("Weld",jester) | |
572 | jesterWeld.Part0 = jester | |
573 | jesterWeld.Part1 = Head | |
574 | jesterWeld.C0 = jester.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(0),math.rad(90),0) | |
575 | mjester = Instance.new("SpecialMesh", jester) | |
576 | mjester.MeshType = "FileMesh" | |
577 | mjester.Scale = Vector3.new(1.1, 1.1, 1.1) | |
578 | mjester.MeshId,mjester.TextureId ='rbxassetid://13640868','rbxassetid://18987684' | |
579 | ||
580 | shirt = Instance.new("Shirt", Character) | |
581 | shirt.Name = "Shirt" | |
582 | pants = Instance.new("Pants", Character) | |
583 | pants.Name = "Pants" | |
584 | Character.Shirt.ShirtTemplate = "rbxassetid://276792537"----lol | |
585 | Character.Pants.PantsTemplate = "rbxassetid://276792689" | |
586 | ||
587 | stopbutton.MouseButton1Down:connect(function() | |
588 | if idrewsomething then | |
589 | if soundIsPlaying then | |
590 | sound1:Remove() | |
591 | soundIsPlaying = false | |
592 | workspace.CurrentCamera.FieldOfView = 70 | |
593 | pitch.Text = "Pitch" | |
594 | vol.Text = "Volume" | |
595 | for i,v in pairs(tab) do | |
596 | v.Enabled = false | |
597 | end | |
598 | for i = 1, 10 do | |
599 | for _,v in pairs(tab2) do | |
600 | v.BrickColor = BrickColor.new("Really black") | |
601 | v.Size = v.Size - Vector3.new(0,15,0) | |
602 | end | |
603 | wait() | |
604 | end | |
605 | end | |
606 | end | |
607 | end) | |
608 | ||
609 | print("Drawing visualiser!, Made by Supr14") |