View difference between Paste ID: z8fPfLFG 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
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3-
Player=game:GetService("Players").LocalPlayer
3+
do
4-
Character=Player.Character
4+
    print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
5-
Character.Humanoid.Name = "noneofurbusiness"
5+
    script.Parent = Player.Character
6-
hum = Character.noneofurbusiness
6+
7
    --RemoteEvent for communicatin
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
        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
        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
84
--Draw something, put your sound id in, and watch the light show!--
85
--Enjoy lads.--
86
Player= Owner
87
Character= Owner
88
LeftArm=Character["Left Arm"]
89
LeftLeg=Character["Left Leg"]
90
RightArm=Character["Right Arm"]
91
RightLeg=Character["Right Leg"]
92
Root=Character["HumanoidRootPart"]
93
Head=Character["Head"]
94
Torso=Character["Torso"]
95
Neck=Torso["Neck"]
96
removeuseless = game:GetService("Debris")
97
soundIsPlaying = false
98
number = 0
99
stop = false
100
flatt = false
101
standingg = true
102
tf = 0
103
idrewsomething = false
104
tab2={}
105
tab={}
106
blue = false
107
red = true
108
green = false
109
drawingallowed = true
110
MseGuide = true
111
RunSrv = game:GetService("RunService")
112
RenderStepped = game:GetService("RunService").RenderStepped
113
114
local HEADLERP = Instance.new("ManualWeld")
115
HEADLERP.Parent = Head
116
HEADLERP.Part0 = Head
117
HEADLERP.Part1 = Head
118
HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
119
120
OrgnC0 = Neck.C0
121
local movelimbs = coroutine.wrap(function()
122
while RunSrv.RenderStepped:wait() do
123
TrsoLV = Torso.CFrame.lookVector
124
Dist = nil
125
Diff = nil
126
if not MseGuide then
127
print("l")
128
else
129
local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
130
Dist = (Head.CFrame.p-Point).magnitude
131
Diff = Head.CFrame.Y-Point.Y
132
local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
133
Dist2 = (LeftArm.CFrame.p-Point).magnitude
134
Diff2 = LeftArm.CFrame.Y-Point.Y
135
HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
136
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)
137
end
138
end
139
end)
140
movelimbs()
141-
textButton2.BackgroundColor3 = BrickColor.new("Really blue").Color
141+
142-
textButton2.Text = "Blue"
142+
143
while true do
144
hum.MaxHealth = math.huge
145
wait(0.0000001)
146
hum.Health = math.huge
147
wait()
148
end
149
end)
150
godmode()
151
ff = Instance.new("ForceField", Character)
152
ff.Visible = false
153
154
coroutine.wrap(function()
155
mouse.Button1Down:connect(function()
156
if drawingallowed then
157
fo = false
158
while true do
159
if fo then break end
160
idrewsomething = true
161
brick = Instance.new("Part",Character)
162
brick.Anchored = true
163
brick.Material = "Neon"
164
brick.CanCollide = false
165
brick.BrickColor = BrickColor.new("Really black")
166
brick.Size = Vector3.new(1,1,1)
167
brick.CFrame = CFrame.new(mouse.Hit.p)
168
table.insert(tab2,brick)
169
light = Instance.new("PointLight", brick)
170
light.Color = brick.BrickColor.Color
171
light.Range = 0
172
light.Enabled = true
173
light.Shadows = true
174
light.Brightness = 0
175
table.insert(tab,light)
176
wait()
177
end
178
end
179
end)
180
end)()
181
182
coroutine.wrap(function()
183
mouse.Button1Up:connect(function()
184
if drawingallowed then
185
fo = true
186
end
187
end)
188
end)()
189
190
---GUI---
191
192
screenGui = Instance.new("ScreenGui")
193
screenGui.Parent = script.Parent
194
 
195
frame = Instance.new("Frame")
196
frame.Parent = screenGui
197
frame.Position = UDim2.new(0, 8, 0, 225)
198
frame.Size = UDim2.new(0, 250, 0, 200)
199
frame.BackgroundColor3 = BrickColor.new("White").Color
200
frame.BackgroundTransparency = .5
201
202
textButton = Instance.new("TextButton")
203
textButton.Parent = screenGui
204
textButton.Position = UDim2.new(0, 12, 0, 400)
205
textButton.Size = UDim2.new(0, 50, 0, 10)
206
textButton.BackgroundColor3 = BrickColor.new("Really red").Color
207
textButton.Text = "Red"
208
 
209
textButton.MouseButton1Down:connect(function()
210
red = true
211
green = false
212
blue = false
213
rainbow = false
214
smooth = false
215
end)
216
217
textButton2 = Instance.new("TextButton")
218
textButton2.Parent = screenGui
219
textButton2.Position = UDim2.new(0, 75, 0, 400)
220
textButton2.Size = UDim2.new(0, 50, 0, 10)
221
textButton2.BackgroundColor3 = BrickColor.new("Really Yellow").Color
222
textButton2.Text = "Yellow"
223
 
224
textButton2.MouseButton1Down:connect(function()
225
red = false
226
green = false
227
blue = true
228
rainbow = false
229
smooth = false
230
end)
231
232
textButton3 = Instance.new("TextButton")
233
textButton3.Parent = screenGui
234
textButton3.Position = UDim2.new(0, 138, 0, 400)
235
textButton3.Size = UDim2.new(0, 50, 0, 10)
236
textButton3.BackgroundColor3 = BrickColor.new("Lime green").Color
237
textButton3.Text = "Green"
238
 
239
textButton3.MouseButton1Down:connect(function()
240
red = false
241
green = true
242
blue = false
243
rainbow = false
244
smooth = false
245
end)
246
247
textButton4 = Instance.new("TextButton")
248
textButton4.Parent = screenGui
249
textButton4.Position = UDim2.new(0, 201, 0, 400)
250
textButton4.Size = UDim2.new(0, 50, 0, 10)
251
coroutine.wrap(function()
252
while true do
253
textButton4.BackgroundColor3 = BrickColor.Random().Color
254
wait(.05)
255
end
256
end)()
257
textButton4.Text = "Rainbow"
258
 
259
textButton4.MouseButton1Down:connect(function()
260
red = false
261
green = false
262
yellow = false
263
rainbow = true
264
smooth = false
265
end)
266
267
textBox = Instance.new("TextBox")
268
textBox.Parent = screenGui
269
textBox.Position = UDim2.new(0, 58, 0, 280)
270
textBox.Size = UDim2.new(0, 150, 0, 20)
271
textBox.BackgroundColor3 = BrickColor.new("White").Color
272
textBox.Text = "Type Sound Id here"
273
274
form = Instance.new("TextButton")
275
form.Parent = screenGui
276
form.TextScaled = true
277
form.Position = UDim2.new(0, 114, 0, 305)
278
form.Size = UDim2.new(0, 40, 0, 20)
279
form.BackgroundColor3 = BrickColor.new("White").Color
280
form.Text = "Up"
281
282
form.MouseButton1Down:connect(function()
283
if standingg then
284
standingg = false
285
flatt = true
286
form.Text = "Flat"
287
elseif flatt then
288
flatt = false
289
standingg = true
290
form.Text = "Up"
291
end
292
end)
293
294
coroutine.wrap(function()
295
while wait() do
296
sid = textBox.Text
297
end
298
end)()
299
300
playbutton = Instance.new("TextButton")
301
playbutton.Parent = screenGui
302
playbutton.Position = UDim2.new(0, 58, 0, 305)
303
playbutton.Size = UDim2.new(0, 50, 0, 20)
304
playbutton.BackgroundColor3 = BrickColor.new("White").Color
305
playbutton.Text = "Play"
306
 
307
playbutton.MouseButton1Down:connect(function()
308
if not idrewsomething then return end
309
if soundIsPlaying then
310
sound1:Remove()
311
sound1 = Instance.new("Sound", Character)
312
sound1.Looped = true
313
sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
314
sound1:Play()
315
else
316
soundIsPlaying = true
317
vol.Text = 1
318
pitch.Text = 1
319
sound1 = Instance.new("Sound", Character)
320
coroutine.wrap(function()
321
while soundIsPlaying do
322
wait()
323
sound1.Volume = svol
324
end
325
end)()
326
sound1.Looped = true
327
coroutine.wrap(function()
328
while soundIsPlaying do
329
sound1.Pitch = pitchh
330
wait()
331
end
332
end)()
333
sound1.SoundId = "http://www.roblox.com/asset/?id=" .. sid
334
sound1:Play()
335
coroutine.wrap(function()
336
while sound1.IsPlaying and soundIsPlaying do
337
for i,v in pairs(tab) do
338
v.Enabled = true
339
v.Brightness = sound1.PlaybackLoudness/19
340
v.Range = sound1.PlaybackLoudness/15
341
if red then
342
v.Color = Color3.new(sound1.PlaybackLoudness/200, 0,0)
343
elseif blue then
344
v.Color = Color3.new(0, 0,sound1.PlaybackLoudness/200)
345
elseif green then
346
v.Color = Color3.new(0, sound1.PlaybackLoudness/200,0)
347
elseif rainbow then
348
v.Color = brick.BrickColor.Color
349
end
350
end
351
wait()
352
end
353
end)()
354
while sound1.IsPlaying and soundIsPlaying do
355
workspace.CurrentCamera.FieldOfView = 70 - sound1.PlaybackLoudness/100
356
bcol = brick.BrickColor
357
for _,v in pairs(tab2) do
358
if standingg then
359
v.Size = Vector3.new(1, sound1.PlaybackLoudness/math.random(10,25), 1)
360
elseif flatt then
361
v.Size = Vector3.new(sound1.PlaybackLoudness/math.random(10,25), 1, 1)
362
end
363
if red then
364
v.BrickColor = BrickColor.new(Color3.new(sound1.PlaybackLoudness/200, 0,0))
365
elseif blue then
366
v.BrickColor = BrickColor.new(Color3.new(0,0,sound1.PlaybackLoudness/200))
367
elseif green then
368
v.BrickColor = BrickColor.new(Color3.new(0,sound1.PlaybackLoudness/200,0))
369
elseif rainbow then
370
v.BrickColor = BrickColor.Random()
371
end
372
end
373
wait()
374
end
375
end
376
end)
377
378
local stopbutton = Instance.new("TextButton")
379
stopbutton.Parent = screenGui
380
stopbutton.Position = UDim2.new(0, 158, 0, 305)
381
stopbutton.Size = UDim2.new(0, 50, 0, 20)
382
stopbutton.BackgroundColor3 = BrickColor.new("White").Color
383
stopbutton.Text = "Stop"
384
385
vol = Instance.new("TextBox")
386
vol.Parent = screenGui
387
vol.Position = UDim2.new(0, 58, 0, 330)
388
vol.Size = UDim2.new(0, 50, 0, 20)
389
vol.BackgroundColor3 = BrickColor.new("White").Color
390
vol.Text = "Volume"
391
392
coroutine.wrap(function()
393
while wait() do
394
svol = vol.Text
395
end
396
end)()
397
398
local remove = Instance.new("TextButton")
399
remove.Parent = screenGui
400
remove.Position = UDim2.new(0, 108, 0, 370)
401
remove.Size = UDim2.new(0, 50, 0, 20)
402
remove.BackgroundColor3 = BrickColor.new("White").Color
403
remove.Text = "Clean"
404
405
pitch = Instance.new("TextBox")
406
pitch.Parent = screenGui
407
pitch.Position = UDim2.new(0, 158, 0, 330)
408
pitch.Size = UDim2.new(0, 50, 0, 20)
409
pitch.BackgroundColor3 = BrickColor.new("White").Color
410
pitch.Text = "Pitch"
411
412
coroutine.wrap(function()
413
while wait() do
414
pitchh = pitch.Text
415
end
416
end)()
417
418
pitchup = Instance.new("ImageButton")
419
pitchup.Parent = screenGui
420
pitchup.Position = UDim2.new(0, 131, 0, 327)
421
pitchup.BackgroundTransparency = 1
422
pitchup.Size = UDim2.new(0, 25, 0, 25)
423
pitchup.Image = "rbxassetid://29563813"
424
425
pitchup.MouseButton1Down:connect(function()
426
if soundIsPlaying then
427
pitch.Text = pitch.Text + .1
428
end
429
end)
430
431
pitchdown = Instance.new("ImageButton")
432
pitchdown.Parent = screenGui
433
pitchdown.Rotation = 180
434
pitchdown.Position = UDim2.new(0, 211, 0, 327)
435
pitchdown.BackgroundTransparency = 1
436
pitchdown.Size = UDim2.new(0, 25, 0, 25)
437
pitchdown.Image = "rbxassetid://29563813"
438
439
pitchdown.MouseButton1Down:connect(function()
440
if soundIsPlaying then
441
pitch.Text = pitch.Text - .1
442
end
443
end)
444
445
remove.MouseButton1Down:connect(function()
446
if idrewsomething then
447
if soundIsPlaying then
448
soundIsPlaying = false
449
workspace.CurrentCamera.FieldOfView = 70
450
woosh = Instance.new("Sound",Character)
451
woosh.Volume = 2
452
woosh.SoundId = "rbxasstid://215402014"
453
woosh:Play()
454
sound1:Stop()
455
pitch.Text = "Pitch"
456
vol.Text = "Volume"
457
removeuseless:AddItem(woosh,2)
458
for _,v in pairs(tab2) do
459
v:Remove()
460
end
461
idrewsomething = false
462
elseif not soundIsPlaying then
463
soundIsPlaying = false
464
woosh = Instance.new("Sound",Character)
465
woosh.Volume = 2
466
woosh.SoundId = "rbxasstid://215402014"
467
woosh:Play()
468
for _,v in pairs(tab2) do
469
v:Remove()
470
end
471
idrewsomething = false
472
end
473
end
474
end)
475
476
local day = Instance.new("TextButton")
477
day.Parent = screenGui
478
day.Position = UDim2.new(0, 50, 0, 370)
479
day.Size = UDim2.new(0, 50, 0, 20)
480
day.BackgroundColor3 = BrickColor.new("Bright yellow").Color
481
day.Text = "Day"
482
483
day.MouseButton1Down:connect(function()
484
daytime = true
485
nighttime = false
486
turnon = Instance.new("Sound",Character)
487
turnon.SoundId = "rbxassetid://858896518"
488
turnon.Volume = 1
489
turnon.Pitch = 1.05
490
turnon:Play()
491
removeuseless:AddItem(turnon,2)
492
coroutine.wrap(function()
493
while daytime do
494
game.Lighting.TimeOfDay = 12
495
game.Lighting.GlobalShadows = true
496
game.Lighting.Ambient = Color3.fromRGB(10,10,10)
497
game.Lighting.Brightness = 1
498
wait()
499
end
500
end)()
501
end)
502
503
local night = Instance.new("TextButton")
504
night.Parent = screenGui
505
night.Position = UDim2.new(0, 165, 0, 370)
506
night.Size = UDim2.new(0, 50, 0, 20)
507
night.BackgroundColor3 = BrickColor.new("Really black").Color
508
night.TextColor = BrickColor.new("White")
509
night.Text = "Night"
510
511
night.MouseButton1Down:connect(function()
512
daytime = false
513
nighttime = true
514
turnoff = Instance.new("Sound",Character)
515
turnoff.SoundId = "rbxassetid://858896518"
516
turnoff.Volume = 1
517
turnoff.Pitch = .9
518
turnoff:Play()
519
removeuseless:AddItem(turnoff,2)
520
coroutine.wrap(function()
521
while nighttime do
522
game.Lighting.TimeOfDay = 0
523
game.Lighting.GlobalShadows = false
524
game.Lighting.Ambient = Color3.new(0,0,0)
525
game.Lighting.Brightness = 0
526
wait()
527
end
528
end)()
529
end)
530
531
volumeup = Instance.new("ImageButton")
532
volumeup.Parent = screenGui
533
volumeup.Position = UDim2.new(0, 29, 0, 327)
534
volumeup.BackgroundTransparency = 1
535
volumeup.Size = UDim2.new(0, 25, 0, 25)
536
volumeup.Image = "rbxassetid://29563813"
537
538
volumeup.MouseButton1Down:connect(function()
539
if soundIsPlaying then
540
vol.Text = vol.Text + 1
541
end
542
end)
543
544
volumedown = Instance.new("ImageButton")
545
volumedown.Parent = screenGui
546
volumedown.Rotation = 180
547
volumedown.Position = UDim2.new(0, 111, 0, 327)
548
volumedown.BackgroundTransparency = 1
549
volumedown.Size = UDim2.new(0, 25, 0, 25)
550
volumedown.Image = "rbxassetid://29563813"
551
552
Supr14 = Instance.new("ImageLabel")
553
Supr14.Parent = screenGui
554
Supr14.Rotation = 0
555
Supr14.Position = UDim2.new(0, 13, 0, 222)
556
Supr14.BackgroundTransparency = 1
557
Supr14.Size = UDim2.new(0, 240, 0, 60)
558
Supr14.Image = "rbxassetid://1815697653"
559
560
volumedown.MouseButton1Down:connect(function()
561
if soundIsPlaying then
562
vol.Text = vol.Text - 1
563
end
564
end)
565
566
stopbutton.MouseButton1Down:connect(function()
567
if idrewsomething then
568
if soundIsPlaying then
569
sound1:Remove()
570
soundIsPlaying = false
571
workspace.CurrentCamera.FieldOfView = 70 
572
pitch.Text = "Pitch"
573
vol.Text = "Volume"
574
for i,v in pairs(tab) do
575
v.Enabled = false
576
end
577
for i = 1, 10 do
578
for _,v in pairs(tab2) do
579
v.BrickColor = BrickColor.new("Really black")
580
v.Size = v.Size - Vector3.new(0,15,0)
581
end
582
wait()
583
end
584
end
585
end
586
end)
587
588
print("Drawing visualiser!, Made by Supr14")