View difference between Paste ID: PFGhiJp5 and MnG6P6t3
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
 
3
local Player,game,owner = owner,game
4
 
5
local RealPlayer = Player
6
 
7
do print("FE Compatibility code V3 by Desered_ROBLOX")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
8
--Draw something, put your sound id in, and watch the light show!--
9
--Enjoy lads.--
10
Player=game:GetService("Players").LocalPlayer
11
Character=Player.Character
12
Character.Humanoid.Name = "noneofurbusiness"
13
hum = Character.noneofurbusiness
14
LeftArm=Character["Left Arm"]
15
LeftLeg=Character["Left Leg"]
16
RightArm=Character["Right Arm"]
17
RightLeg=Character["Right Leg"]
18
Root=Character["HumanoidRootPart"]
19
Head=Character["Head"]
20
Torso=Character["Torso"]
21
Neck=Torso["Neck"]
22
mouse = Player:GetMouse()
23
removeuseless = game:GetService("Debris")
24
soundIsPlaying = false
25
number = 0
26
stop = false
27
flatt = false
28
standingg = true
29
tf = 0
30
idrewsomething = false
31
tab2={}
32
tab={}
33
blue = false
34
red = true
35
green = false
36
drawingallowed = true
37
MseGuide = true
38
RunSrv = game:GetService("RunService")
39
RenderStepped = game:GetService("RunService").RenderStepped
40
41
local HEADLERP = Instance.new("ManualWeld")
42
HEADLERP.Parent = Head
43
HEADLERP.Part0 = Head
44
HEADLERP.Part1 = Head
45
HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
46
47
OrgnC0 = Neck.C0
48
local movelimbs = coroutine.wrap(function()
49
while RunSrv.RenderStepped:wait() do
50
TrsoLV = Torso.CFrame.lookVector
51
Dist = nil
52
Diff = nil
53
if not MseGuide then
54
print("l")
55
else
56
local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
57
Dist = (Head.CFrame.p-Point).magnitude
58
Diff = Head.CFrame.Y-Point.Y
59
local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
60
Dist2 = (LeftArm.CFrame.p-Point).magnitude
61
Diff2 = LeftArm.CFrame.Y-Point.Y
62
HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
63
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)
64
end
65
end
66
end)
67
movelimbs()
68
69
godmode = coroutine.wrap(function()---- so you don't get killed by fucking random things
70
while true do
71
hum.MaxHealth = math.huge
72
wait(0.0000001)
73
hum.Health = math.huge
74
wait()
75
end
76
end)
77
godmode()
78
ff = Instance.new("ForceField", Character)
79
ff.Visible = false
80
81
coroutine.wrap(function()
82
mouse.Button1Down:connect(function()
83
if drawingallowed then
84
fo = false
85
while true do
86
if fo then break end
87
idrewsomething = true
88
brick = Instance.new("Part",Character)
89
brick.Anchored = true
90
brick.Material = "Neon"
91
brick.CanCollide = false
92
brick.BrickColor = BrickColor.new("Really black")
93
brick.Size = Vector3.new(1,1,1)
94
brick.CFrame = CFrame.new(mouse.Hit.p)
95
table.insert(tab2,brick)
96
light = Instance.new("PointLight", brick)
97
light.Color = brick.BrickColor.Color
98
light.Range = 0
99
light.Enabled = true
100
light.Shadows = true
101
light.Brightness = 0
102
table.insert(tab,light)
103
wait()
104
end
105
end
106
end)
107
end)()
108
109
coroutine.wrap(function()
110
mouse.Button1Up:connect(function()
111
if drawingallowed then
112
fo = true
113
end
114
end)
115
end)()
116
117
---GUI---
118
119
screenGui = Instance.new("ScreenGui")
120
screenGui.Parent = script.Parent
121
 
122
frame = Instance.new("Frame")
123
frame.Parent = screenGui
124
frame.Position = UDim2.new(0, 8, 0, 225)
125
frame.Size = UDim2.new(0, 250, 0, 200)
126
frame.BackgroundColor3 = BrickColor.new("White").Color
127
frame.BackgroundTransparency = .5
128
129
textButton = Instance.new("TextButton")
130
textButton.Parent = screenGui
131
textButton.Position = UDim2.new(0, 12, 0, 400)
132
textButton.Size = UDim2.new(0, 50, 0, 10)
133
textButton.BackgroundColor3 = BrickColor.new("Really red").Color
134
textButton.Text = "Red"
135
 
136
textButton.MouseButton1Down:connect(function()
137
red = true
138
green = false
139
blue = false
140
rainbow = false
141
smooth = false
142
end)
143
144
textButton2 = Instance.new("TextButton")
145
textButton2.Parent = screenGui
146
textButton2.Position = UDim2.new(0, 75, 0, 400)
147
textButton2.Size = UDim2.new(0, 50, 0, 10)
148
textButton2.BackgroundColor3 = BrickColor.new("Really blue").Color
149
textButton2.Text = "Blue"
150
 
151
textButton2.MouseButton1Down:connect(function()
152
red = false
153
green = false
154
blue = true
155
rainbow = false
156
smooth = false
157
end)
158
159
textButton3 = Instance.new("TextButton")
160
textButton3.Parent = screenGui
161
textButton3.Position = UDim2.new(0, 138, 0, 400)
162
textButton3.Size = UDim2.new(0, 50, 0, 10)
163
textButton3.BackgroundColor3 = BrickColor.new("Lime green").Color
164
textButton3.Text = "Green"
165
 
166
textButton3.MouseButton1Down:connect(function()
167
red = false
168
green = true
169
blue = false
170
rainbow = false
171
smooth = false
172
end)
173
174
textButton4 = Instance.new("TextButton")
175
textButton4.Parent = screenGui
176
textButton4.Position = UDim2.new(0, 201, 0, 400)
177
textButton4.Size = UDim2.new(0, 50, 0, 10)
178
coroutine.wrap(function()
179
while true do
180
textButton4.BackgroundColor3 = BrickColor.Random().Color
181
wait(.05)
182
end
183
end)()
184
textButton4.Text = "Rainbow"
185
 
186
textButton4.MouseButton1Down:connect(function()
187
red = false
188
green = false
189
blue = false
190
rainbow = true
191
smooth = false
192
end)
193
194
textBox = Instance.new("TextBox")
195
textBox.Parent = screenGui
196
textBox.Position = UDim2.new(0, 58, 0, 280)
197
textBox.Size = UDim2.new(0, 150, 0, 20)
198
textBox.BackgroundColor3 = BrickColor.new("White").Color
199
textBox.Text = "Type Sound Id here"
200
201
form = Instance.new("TextButton")
202
form.Parent = screenGui
203
form.TextScaled = true
204
form.Position = UDim2.new(0, 114, 0, 305)
205
form.Size = UDim2.new(0, 40, 0, 20)
206
form.BackgroundColor3 = BrickColor.new("White").Color
207
form.Text = "Up"
208
209
form.MouseButton1Down:connect(function()
210
if standingg then
211
standingg = false
212
flatt = true
213
form.Text = "Flat"
214
elseif flatt then
215
flatt = false
216
standingg = true
217
form.Text = "Up"
218
end
219
end)
220
221
coroutine.wrap(function()
222
while wait() do
223
sid = textBox.Text
224
end
225
end)()
226
227
playbutton = Instance.new("TextButton")
228
playbutton.Parent = screenGui
229
playbutton.Position = UDim2.new(0, 58, 0, 305)
230
playbutton.Size = UDim2.new(0, 50, 0, 20)
231
playbutton.BackgroundColor3 = BrickColor.new("White").Color
232
playbutton.Text = "Play"
233
 
234
playbutton.MouseButton1Down:connect(function()
235
if not idrewsomething then return end
236
if soundIsPlaying then
237
sound1:Remove()
238
sound1 = Instance.new("Sound", Character)
239
sound1.Looped = true
240
sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
241
sound1:Play()
242
else
243
soundIsPlaying = true
244
vol.Text = 1
245
pitch.Text = 1
246
sound1 = Instance.new("Sound", Character)
247
coroutine.wrap(function()
248
while soundIsPlaying do
249
wait()
250
sound1.Volume = svol
251
end
252
end)()
253
sound1.Looped = true
254
coroutine.wrap(function()
255
while soundIsPlaying do
256
sound1.Pitch = pitchh
257
wait()
258
end
259
end)()
260
sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
261
sound1:Play()
262
coroutine.wrap(function()
263
while sound1.IsPlaying and soundIsPlaying do
264
for i,v in pairs(tab) do
265
v.Enabled = true
266
v.Brightness = sound1.PlaybackLoudness/19
267
v.Range = sound1.PlaybackLoudness/15
268
if red then
269
v.Color = Color3.new(sound1.PlaybackLoudness/200, 0,0)
270
elseif blue then
271
v.Color = Color3.new(0, 0,sound1.PlaybackLoudness/200)
272
elseif green then
273
v.Color = Color3.new(0, sound1.PlaybackLoudness/200,0)
274
elseif rainbow then
275
v.Color = brick.BrickColor.Color
276
end
277
end
278
wait()
279
end
280
end)()
281
while sound1.IsPlaying and soundIsPlaying do
282
workspace.CurrentCamera.FieldOfView = 70 - sound1.PlaybackLoudness/100
283
bcol = brick.BrickColor
284
for _,v in pairs(tab2) do
285
if standingg then
286
v.Size = Vector3.new(1, sound1.PlaybackLoudness/math.random(10,25), 1)
287
elseif flatt then
288
v.Size = Vector3.new(sound1.PlaybackLoudness/math.random(10,25), 1, 1)
289
end
290
if red then
291
v.BrickColor = BrickColor.new(Color3.new(sound1.PlaybackLoudness/200, 0,0))
292
elseif blue then
293
v.BrickColor = BrickColor.new(Color3.new(0,0,sound1.PlaybackLoudness/200))
294
elseif green then
295
v.BrickColor = BrickColor.new(Color3.new(0,sound1.PlaybackLoudness/200,0))
296
elseif rainbow then
297
v.BrickColor = BrickColor.Random()
298
end
299
end
300
wait()
301
end
302
end
303
end)
304
305
local stopbutton = Instance.new("TextButton")
306
stopbutton.Parent = screenGui
307
stopbutton.Position = UDim2.new(0, 158, 0, 305)
308
stopbutton.Size = UDim2.new(0, 50, 0, 20)
309
stopbutton.BackgroundColor3 = BrickColor.new("White").Color
310
stopbutton.Text = "Stop"
311
312
vol = Instance.new("TextBox")
313
vol.Parent = screenGui
314
vol.Position = UDim2.new(0, 58, 0, 330)
315
vol.Size = UDim2.new(0, 50, 0, 20)
316
vol.BackgroundColor3 = BrickColor.new("White").Color
317
vol.Text = "Volume"
318
319
coroutine.wrap(function()
320
while wait() do
321
svol = vol.Text
322
end
323
end)()
324
325
local remove = Instance.new("TextButton")
326
remove.Parent = screenGui
327
remove.Position = UDim2.new(0, 108, 0, 370)
328
remove.Size = UDim2.new(0, 50, 0, 20)
329
remove.BackgroundColor3 = BrickColor.new("White").Color
330
remove.Text = "Clean"
331
332
pitch = Instance.new("TextBox")
333
pitch.Parent = screenGui
334
pitch.Position = UDim2.new(0, 158, 0, 330)
335
pitch.Size = UDim2.new(0, 50, 0, 20)
336
pitch.BackgroundColor3 = BrickColor.new("White").Color
337
pitch.Text = "Pitch"
338
339
coroutine.wrap(function()
340
while wait() do
341
pitchh = pitch.Text
342
end
343
end)()
344
345
pitchup = Instance.new("ImageButton")
346
pitchup.Parent = screenGui
347
pitchup.Position = UDim2.new(0, 131, 0, 327)
348
pitchup.BackgroundTransparency = 1
349
pitchup.Size = UDim2.new(0, 25, 0, 25)
350
pitchup.Image = "rbxassetid://29563813"
351
352
pitchup.MouseButton1Down:connect(function()
353
if soundIsPlaying then
354
pitch.Text = pitch.Text + .1
355
end
356
end)
357
358
pitchdown = Instance.new("ImageButton")
359
pitchdown.Parent = screenGui
360
pitchdown.Rotation = 180
361
pitchdown.Position = UDim2.new(0, 211, 0, 327)
362
pitchdown.BackgroundTransparency = 1
363
pitchdown.Size = UDim2.new(0, 25, 0, 25)
364
pitchdown.Image = "rbxassetid://29563813"
365
366
pitchdown.MouseButton1Down:connect(function()
367
if soundIsPlaying then
368
pitch.Text = pitch.Text - .1
369
end
370
end)
371
372
remove.MouseButton1Down:connect(function()
373
if idrewsomething then
374
if soundIsPlaying then
375
soundIsPlaying = false
376
workspace.CurrentCamera.FieldOfView = 70
377
woosh = Instance.new("Sound",Character)
378
woosh.Volume = 2
379
woosh.SoundId = "rbxasstid://215402014"
380
woosh:Play()
381
sound1:Stop()
382
pitch.Text = "Pitch"
383
vol.Text = "Volume"
384
removeuseless:AddItem(woosh,2)
385
for _,v in pairs(tab2) do
386
v:Remove()
387
end
388
idrewsomething = false
389
elseif not soundIsPlaying then
390
soundIsPlaying = false
391
woosh = Instance.new("Sound",Character)
392
woosh.Volume = 2
393
woosh.SoundId = "rbxasstid://215402014"
394
woosh:Play()
395
for _,v in pairs(tab2) do
396
v:Remove()
397
end
398
idrewsomething = false
399
end
400
end
401
end)
402
403
local day = Instance.new("TextButton")
404
day.Parent = screenGui
405
day.Position = UDim2.new(0, 50, 0, 370)
406
day.Size = UDim2.new(0, 50, 0, 20)
407
day.BackgroundColor3 = BrickColor.new("Bright yellow").Color
408
day.Text = "Day"
409
410
day.MouseButton1Down:connect(function()
411
daytime = true
412
nighttime = false
413
turnon = Instance.new("Sound",Character)
414
turnon.SoundId = "rbxassetid://858896518"
415
turnon.Volume = 1
416
turnon.Pitch = 1.05
417
turnon:Play()
418
removeuseless:AddItem(turnon,2)
419
coroutine.wrap(function()
420
while daytime do
421
game.Lighting.TimeOfDay = 12
422
game.Lighting.GlobalShadows = true
423
game.Lighting.Ambient = Color3.fromRGB(10,10,10)
424
game.Lighting.Brightness = 1
425
wait()
426
end
427
end)()
428
end)
429
430
local night = Instance.new("TextButton")
431
night.Parent = screenGui
432
night.Position = UDim2.new(0, 165, 0, 370)
433
night.Size = UDim2.new(0, 50, 0, 20)
434
night.BackgroundColor3 = BrickColor.new("Really black").Color
435
night.TextColor = BrickColor.new("White")
436
night.Text = "Night"
437
438
night.MouseButton1Down:connect(function()
439
daytime = false
440
nighttime = true
441
turnoff = Instance.new("Sound",Character)
442
turnoff.SoundId = "rbxassetid://858896518"
443
turnoff.Volume = 1
444
turnoff.Pitch = .9
445
turnoff:Play()
446
removeuseless:AddItem(turnoff,2)
447
coroutine.wrap(function()
448
while nighttime do
449
game.Lighting.TimeOfDay = 0
450
game.Lighting.GlobalShadows = false
451
game.Lighting.Ambient = Color3.new(0,0,0)
452
game.Lighting.Brightness = 0
453
wait()
454
end
455
end)()
456
end)
457
458
volumeup = Instance.new("ImageButton")
459
volumeup.Parent = screenGui
460
volumeup.Position = UDim2.new(0, 29, 0, 327)
461
volumeup.BackgroundTransparency = 1
462
volumeup.Size = UDim2.new(0, 25, 0, 25)
463
volumeup.Image = "rbxassetid://29563813"
464
465
volumeup.MouseButton1Down:connect(function()
466
if soundIsPlaying then
467
vol.Text = vol.Text + 1
468
end
469
end)
470
471
volumedown = Instance.new("ImageButton")
472
volumedown.Parent = screenGui
473
volumedown.Rotation = 180
474
volumedown.Position = UDim2.new(0, 111, 0, 327)
475
volumedown.BackgroundTransparency = 1
476
volumedown.Size = UDim2.new(0, 25, 0, 25)
477
volumedown.Image = "rbxassetid://29563813"
478
479
Supr14 = Instance.new("ImageLabel")
480
Supr14.Parent = screenGui
481
Supr14.Rotation = 0
482
Supr14.Position = UDim2.new(0, 13, 0, 222)
483
Supr14.BackgroundTransparency = 1
484
Supr14.Size = UDim2.new(0, 240, 0, 60)
485
Supr14.Image = "rbxassetid://1815697653"
486
487
volumedown.MouseButton1Down:connect(function()
488
if soundIsPlaying then
489
vol.Text = vol.Text - 1
490
end
491
end)
492
493
stopbutton.MouseButton1Down:connect(function()
494
if idrewsomething then
495
if soundIsPlaying then
496
sound1:Remove()
497
soundIsPlaying = false
498
workspace.CurrentCamera.FieldOfView = 70 
499
pitch.Text = "Pitch"
500
vol.Text = "Volume"
501
for i,v in pairs(tab) do
502
v.Enabled = false
503
end
504
for i = 1, 10 do
505
for _,v in pairs(tab2) do
506
v.BrickColor = BrickColor.new("Really black")
507
v.Size = v.Size - Vector3.new(0,15,0)
508
end
509
wait()
510
end
511
end
512
end
513
end)
514
515
print("Drawing visualiser!, Made by Supr14")