View difference between Paste ID: a6m9nStS and kNAgBT18
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter (And Rohan_Kishiba technically >:])
2
 
3
 
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
    print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
    script.Parent = Player.Character
9
 
10
    --RemoteEvent for communicating
11
    local Event = Instance.new("RemoteEvent")
12
    Event.Name = "UserInput_Event"
13
 
14
    --Fake event to make stuff like Mouse.KeyDown work
15
    local function fakeEvent()
16
        local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
        t.connect = t.Connect
18
        return t
19
    end
20
 
21
    --Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
    end}
27
    --Merged 2 functions into one by checking amount of arguments
28
    CAS.UnbindAction = CAS.BindAction
29
 
30
    --This function will trigger the events that have been :Connect()'ed
31
    local function te(self,ev,...)
32
        local t = m[ev]
33
        if t and t._fakeEvent and t.Function then
34
            t.Function(...)
35
        end
36
    end
37
    m.TrigEvent = te
38-
plr = game:service'Players'.LocalPlayer
38+
    UIS.TrigEvent = te
39
 
40-
mouse = plr:GetMouse()
40+
    Event.OnServerEvent:Connect(function(plr,io)
41
        if plr~=Player then return end
42
        if io.isMouse then
43
            m.Target = io.Target
44
            m.Hit = io.Hit
45
        else
46
            local b = io.UserInputState == Enum.UserInputState.Begin
47
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
            end
50
            for _,t in pairs(CAS.Actions) do
51
                for _,k in pairs(t.Keys) do
52
                    if k==io.KeyCode then
53
                        t.Function(t.Name,io.UserInputState,io)
54
                    end
55
                end
56
            end
57
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
        end
60
    end)
61
    Event.Parent = NLS([==[
62
    local Player = game:GetService("Players").Rohan_Kishiba
63
    local Event = script:WaitForChild("UserInput_Event")
64
 
65
    local UIS = game:GetService("UserInputService")
66
    local input = function(io,a)
67
        if a then return end
68
        --Since InputObject is a client-side instance, we create and pass table instead
69
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
    end
71
    UIS.InputBegan:Connect(input)
72
    UIS.InputEnded:Connect(input)
73
 
74
    local Mouse = Player:GetMouse()
75
    local h,t
76
    --Give the server mouse data 30 times every second, but only if the values changed
77
    --If player is not moving their mouse, client won't fire events
78
    while wait(1/30) do
79
        if h~=Mouse.Hit or t~=Mouse.Target then
80
            h,t=Mouse.Hit,Mouse.Target
81
            Event:FireServer({isMouse=true,Target=t,Hit=h})
82
        end
83
    end]==],Player.Character)
84
    Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
--Created with PenguinAnonymous's compiler
88
--PenguinAnonymous is not responsible for damages caused to your game
89
--Please stop using my plugin to create abusive scripts
90
--Errors: 
91
local runDummyScript = function(f,scri)
92
local oldenv = getfenv(f)
93
local newenv = setmetatable({}, {
94
__index = function(_, k)
95
if k:lower() == 'script' then
96
return scri
97
else
98
return oldenv[k]
99
end
100
end
101
})
102
setfenv(f, newenv)
103
ypcall(function() f() end)
104
end
105
cors = {}
106
mas = Instance.new("Model",game:GetService("Lighting")) 
107
mas.Name = "CompiledModel"
108
o1 = Instance.new("LocalScript")
109
o1.Name = "Wubstep"
110
o1.Parent = mas
111
table.insert(cors,function()
112
wait()
113
runDummyScript(function()
114
115
function clerp(c1,c2,al)
116
    local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
117
    local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
118
    for i,v in pairs(com1) do 
119
        com1[i] = v+(com2[i]-v)*al
120
    end
121
    return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
122
end
123
124
plr = game:service'Players'.Rohan_Kishiba
125
char = plr.Character
126
humanoid = char:findFirstChild("Humanoid")
127
torso = char:findFirstChild("Torso")
128
head = char.Head
129
ra = char:findFirstChild("Right Arm")
130
la = char:findFirstChild("Left Arm")
131
rl = char:findFirstChild("Right Leg")
132
ll = char:findFirstChild("Left Leg")
133
rs = torso:findFirstChild("Right Shoulder")
134
ls = torso:findFirstChild("Left Shoulder")
135
rh = torso:findFirstChild("Right Hip")
136
lh = torso:findFirstChild("Left Hip")
137
neck = torso:findFirstChild("Neck")
138
rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
139
rootpart = char:findFirstChild("HumanoidRootPart")
140
camera = workspace.CurrentCamera
141
anim = char:findFirstChild("Animate")
142
143
if char:FindFirstChild("Animate") then
144
	char.Animate:Destroy()
145
end
146
humanoid.Animator:Destroy()
147
148
local rm = Instance.new("Weld", torso)
149
rm.C0 = CFrame.new(1.5, 0.5, 0)
150
rm.C1 = CFrame.new(0, 0.5, 0)
151
rm.Part0 = torso
152
rm.Part1 = ra
153
154
local lm = Instance.new("Weld", torso)
155
lm.C0 = CFrame.new(-1.5, 0.5, 0)
156
lm.C1 = CFrame.new(0, 0.5, 0)
157
lm.Part0 = torso
158
lm.Part1 = la
159
160
local rlegm = Instance.new("Weld", torso)
161
rlegm.C0 = CFrame.new(0.5, -1, 0)
162
rlegm.C1 = CFrame.new(0, 1, 0)
163
rlegm.Part0 = torso
164
rlegm.Part1 = rl
165
local llegm = Instance.new("Weld", torso)
166
llegm.C0 = CFrame.new(-0.5, -1, 0)
167
llegm.C1 = CFrame.new(0, 1, 0)
168
llegm.Part0 = torso
169
llegm.Part1 = ll
170
171
neck.C0 = CFrame.new(0, 1, 0)
172
neck.C1 = CFrame.new(0, -.5, 0)
173
174
rj.C0 = CFrame.new()
175
rj.C1 = CFrame.new()
176
177
local Rbx = LoadLibrary("RbxUtility")
178
local Create = Rbx.Create
179
180
GUI = Create("ScreenGui"){
181
	Parent = plr.PlayerGui,
182
	Enabled = true,
183
	ResetOnSpawn = true,
184
	Name = "WubstepGUI"
185
}
186
187
Main = Create("Frame"){
188
	Parent = GUI,
189
	BackgroundColor3 = Color3.new(50/255,50/255,50/255),
190
	BorderColor3 = Color3.new(27/255,42/255,53/255),
191
	BorderSizePixel = 0,
192
	BackgroundTransparency = 0,
193
	Size = UDim2.new(0.2,0,0.5,0),
194
	Position = UDim2.new(-1.2,0,0.25,0),
195
	ZIndex = 1,
196
	Visible = true,
197
	Selectable = false,
198
	Name = "Main"
199
}
200
201
IDBox = Create("TextBox"){
202
	Parent = Main,
203
	BackgroundColor3 = Color3.new(9/255,9/255,9/255),
204
	BackgroundTransparency = 0.7,
205
	BorderColor3 = Color3.new(255/255,255/255,255/255),
206
	BorderSizePixel = 5,
207
	Name = "ID",
208
	Position = UDim2.new(0.05,0,0.03,0),
209
	Selectable = true,
210
	ShowNativeInput = true,
211
	ClearTextOnFocus = true,
212
	Size = UDim2.new(0.9,0,0.15,0),
213
	Visible = true,
214
	ZIndex = 2,
215
	Text = "ID",
216
	TextWrapped = true,
217
	TextScaled = true,
218
	TextColor3 = Color3.new(255/255,255/255,255/255),
219
	TextStrokeTransparency = 0,
220
	TextStrokeColor3 = Color3.new(0,0,0)
221
}
222
223
PlayButton = Create("TextButton"){
224
	Parent = Main,
225
	BackgroundTransparency = 0,
226
	BackgroundColor3 = Color3.new(9/255,9/255,9/255),
227
	BorderSizePixel = 0,
228
	BorderColor3 = Color3.new(27/255,42/255,53/255),
229
	Name = "Play",
230
	Modal = false,
231
	Position = UDim2.new(0.05,0,0.205,0),
232
	Size = UDim2.new(0.9,0,0.1,0),
233
	ZIndex = 2,
234
	Text = "Play",
235
	TextScaled = true,
236
	TextStrokeColor3 = Color3.new(0,0,0),
237
	TextStrokeTransparency = 1,
238
	TextColor3 = Color3.new(255/255,255/255,255/255),
239
	TextWrapped = true
240
}
241
242
VolumeInc = Create("TextButton"){
243
	Parent = Main,
244
	BackgroundColor3 = Color3.new(0,7/255,48/255),
245
	BorderSizePixel = 2,
246
	Modal = false,
247
	Name = "+",
248
	Position = UDim2.new(0.75,0,0.325,0),
249
	Size = UDim2.new(0.2,0,0.34,0),
250
	Visible = true,
251
	TextScaled = true,
252
	TextColor3 = Color3.new(255/255,255/255,255/255),
253
	TextStrokeTransparency = 1,
254
	Text = "+"
255
}
256
257
VolumeDec = Create("TextButton"){
258
	Parent = Main,
259
	BackgroundColor3 = Color3.new(48/255,0,0),
260
	BorderSizePixel = 2,
261
	Modal = false,
262
	Name = "+",
263
	Position = UDim2.new(0.05,0,0.325,0),
264
	Size = UDim2.new(0.2,0,0.34,0),
265
	Visible = true,
266
	TextScaled = true,
267
	TextColor3 = Color3.new(255/255,255/255,255/255),
268
	TextStrokeTransparency = 1,
269
	Text = "-"
270
}
271
272
VolText = Create("TextLabel"){
273
	Parent = Main,
274
	BackgroundColor3 = Color3.new(255/255,255/255,255/255),
275
	BackgroundTransparency = 1,
276
	BorderColor3 = Color3.new(27/255,42/255,53/255),
277
	BorderSizePixel = 0,
278
	Name = "Volume",
279
	Position = UDim2.new(0.175,0,0.325,0),
280
	Size = UDim2.new(0.64,0,0.1,0),
281
	Visible = true,
282
	Text = "Volume",
283
	TextColor3 = Color3.new(255/255,255/255,255/255),
284
	TextScaled = true,
285
	TextStrokeColor3 = Color3.new(0,0,0),
286
	TextStrokeTransparency = 0
287
}
288
289
VolNum = Create("TextLabel"){
290
	Parent = Main,
291
	BackgroundTransparency = 1,
292
	BorderSizePixel = 0,
293
	Name = "###",
294
	Position = UDim2.new(0.175,0,0.45,0),
295
	Size = UDim2.new(0.64,0,0.2,0),
296
	TextStrokeTransparency = 0,
297
	TextColor3 = Color3.new(255/255,255/255,255/255),
298
	Text = "1",
299
	TextScaled = true
300
}
301
302
HeadphText = Create("TextLabel"){
303
	Parent = Main,
304
	BackgroundTransparency = 1,
305
	BorderSizePixel = 0,
306
	Name = "Headphones",
307
	Position = UDim2.new(0.05,0,0.7,0),
308
	Size = UDim2.new(0.64,0,0.1,0),
309
	TextStrokeTransparency = 0,
310
	TextColor3 = Color3.new(255/255,255/255,255/255),
311
	Text = "Headphones",
312
	TextScaled = true
313
}
314
315
NotesText = Create("TextLabel"){
316
	Parent = Main,
317
	BackgroundTransparency = 1,
318
	BorderSizePixel = 0,
319
	Name = "Notes",
320
	Position = UDim2.new(0.05,0,0.85,0),
321
	Size = UDim2.new(0.64,0,0.1,0),
322
	TextStrokeTransparency = 0,
323
	TextColor3 = Color3.new(255/255,255/255,255/255),
324
	Text = "Notes",
325
	TextScaled = true
326
}
327
328
Check1 = Create("TextButton"){
329
	Parent = Main,
330
	BackgroundTransparency = 0.7,
331
	BackgroundColor3 = Color3.new(50/255,50/255,50/255),
332
	BorderSizePixel = 5,
333
	BorderColor3 = Color3.new(0,0,0),
334
	Name = "Check1",
335
	Modal = false,
336
	Position = UDim2.new(0.78,0,0.7,0),
337
	Size = UDim2.new(0.13,0,0.1,0),
338
	ZIndex = 2,
339
	Text = "",
340
	TextScaled = true,
341
	TextStrokeColor3 = Color3.new(0,0,0),
342
	TextStrokeTransparency = 1,
343
	TextColor3 = Color3.new(255/255,255/255,255/255),
344
	TextWrapped = true
345
}
346
347
Check2 = Create("TextButton"){
348
	Parent = Main,
349
	BackgroundTransparency = 0.7,
350
	BackgroundColor3 = Color3.new(50/255,50/255,50/255),
351
	BorderSizePixel = 5,
352
	BorderColor3 = Color3.new(0,0,0),
353
	Name = "Check2",
354
	Modal = false,
355
	Position = UDim2.new(0.78,0,0.85,0),
356
	Size = UDim2.new(0.13,0,0.1,0),
357
	ZIndex = 2,
358
	Text = "",
359
	TextScaled = true,
360
	TextStrokeColor3 = Color3.new(0,0,0),
361
	TextStrokeTransparency = 1,
362
	TextColor3 = Color3.new(255/255,255/255,255/255),
363
	TextWrapped = true
364
}
365
366
Checkmark1 = Create("ImageLabel"){
367
	Parent = Check1,
368
	Size = UDim2.new(1,0,1,0),
369
	Position = UDim2.new(0,0,0,0),
370
	BorderSizePixel = 0,
371
	BackgroundTransparency = 1,
372
	Image = "rbxassetid://55565289",
373
}
374
375
Checkmark2 = Create("ImageLabel"){
376
	Parent = Check2,
377
	Size = UDim2.new(1,0,1,0),
378
	Position = UDim2.new(0,0,0,0),
379
	BorderSizePixel = 0,
380
	BackgroundTransparency = 1,
381
	Image = "rbxassetid://55565289",
382
}
383
384
OpenButton = Create("TextButton"){
385
	Parent = GUI,
386
	BackgroundTransparency = 0.7,
387
	BackgroundColor3 = Color3.new(50/255,50/255,50/255),
388
	BorderSizePixel = 5,
389
	BorderColor3 = Color3.new(0,0,0),
390
	Name = "Open/Close",
391
	Modal = false,
392
	Position = UDim2.new(0,0,0.7,0),
393
	Size = UDim2.new(0.13,0,0.1,0),
394
	ZIndex = 2,
395
	Text = "Wubstep",
396
	TextScaled = true,
397
	TextStrokeColor3 = Color3.new(0,0,0),
398
	TextStrokeTransparency = 0,
399
	TextColor3 = Color3.new(255/255,255/255,255/255),
400
	TextWrapped = true
401
}
402
403
local Open = false
404
local Debounce = false
405
OpenButton.MouseButton1Down:connect(function()
406
	if Open == false and Debounce == false then
407
		Debounce = true
408
		Main:TweenPosition(UDim2.new(0.4, 0, 0.25, 0),"Out","Quad",3,false)
409
		repeat wait() until Main.Position == UDim2.new(0.4,0,0.25,0)
410
		wait(0.2)
411
		Open = true
412
		Debounce = false
413
	elseif Open == true and Debounce == false then
414
		Debounce = true
415
		Main:TweenPosition(UDim2.new(-1.2, 0, 0.25, 0),"Out","Quad",5,false)
416
		repeat wait() until Main.Position == UDim2.new(-1.2,0,0.25,0)
417
		wait(0.2)
418
		Open = false
419
		Debounce = false
420
	end
421
end)
422
423
local Volume = 1
424
VolumeInc.MouseButton1Down:connect(function()
425
	if Volume < 10 then
426
		Volume = Volume + 0.5
427
	end
428
end)
429
VolumeDec.MouseButton1Down:connect(function()
430
	if Volume > 0 then
431
		Volume = Volume - 0.5
432
	end
433
end)
434
435
humanoid.WalkSpeed = 7
436
437
local s = Instance.new('Sound', head)
438
s.Volume = Volume
439
s.SoundId = "rbxassetid://0" --EG: Music to my ears
440
s.Looped = true
441
s:play()
442
443
PlayButton.MouseButton1Down:connect(function()
444
	s.SoundId = "rbxassetid://"..IDBox.Text
445
end)
446
447
rsc0 = rm.C0
448
lsc0 = lm.C0
449
neckc0 = neck.C0
450
rootc0 = rj.C0
451
llc0 = llegm.C0
452
rlc0 = rlegm.C0
453
speed = 0.25
454
angle = 0
455
anglespeed = 1
456
457
local Hat = Instance.new('Part', char)
458
Hat.FormFactor = 'Custom'
459
Hat.Size = Vector3.new(1,1,1)
460
Hat.CanCollide = false
461
Hat.Locked = true
462
Hat.Name = 'Headphones'
463
Hat:breakJoints()
464
Hat.TopSurface = 0
465
Hat.BottomSurface = 0
466
local Mesh = Instance.new('SpecialMesh', Hat)
467
Mesh.MeshId = "http://www.roblox.com/asset/?id=1051545"
468
Mesh.TextureId = "rbxassetid://186142634"
469
470
local Weld = Instance.new('Weld', Hat)
471
Weld.Part0 = Hat
472
Weld.Part1 = head
473
Weld.C1 = CFrame.new(0, .2, 0)
474
475
local HP = true
476
local Not = true
477
Check1.MouseButton1Down:connect(function()
478
	if HP == true then
479
		HP = false
480
		Hat.Transparency = 0
481
		Checkmark1.Visible = true
482
	elseif HP == false then
483
		HP = true
484
		Hat.Transparency = 1
485
		Checkmark1.Visible = false
486
	end
487
end)
488
Check2.MouseButton1Down:connect(function()
489
	if Not == true then
490
		Not = false
491
		Checkmark2.Visible = false
492
	elseif Not == false then
493
		Not = true
494
		Checkmark2.Visible = true
495
	end
496
end)
497
498
local SplashEffect = Instance.new('Part')
499
Instance.new("CylinderMesh", SplashEffect);
500
SplashEffect.Size = Vector3.new(.2,.2,.2)
501
SplashEffect.Anchored = true
502
SplashEffect.Transparency = 1
503
SplashEffect.CanCollide = false
504
SplashEffect.Locked = true
505
SplashEffect.Material = "Neon"
506
local surfacegui = Instance.new('SurfaceGui', SplashEffect)
507
surfacegui.Face = 'Top'
508
surfacegui.CanvasSize = Vector2.new(800,800)
509
local SplashEffectImage = Instance.new('ImageLabel', surfacegui)
510
SplashEffectImage.Size = UDim2.new(1,0,1,0)
511
SplashEffectImage.Image = "rbxassetid://166139049"
512
SplashEffectImage.BackgroundTransparency = 1
513
SplashEffectImage.Name = 'Effect'
514
SplashEffectImage.ImageColor3 = Color3.new(223/255, 0, 255/255)
515
local light = Instance.new('PointLight', SplashEffect)
516
517
local SplashEffect2 = SplashEffect:clone()
518
SplashEffect2:ClearAllChildren()
519
Instance.new("CylinderMesh", SplashEffect2);
520
local surfacegui2 = Instance.new('SurfaceGui', SplashEffect2)
521
surfacegui2.Face = 'Top'
522
surfacegui2.CanvasSize = Vector2.new(800,800)
523
local SplashEffect2Image = Instance.new('ImageLabel', surfacegui2)
524
SplashEffect2Image.Size = UDim2.new(1,0,1,0)
525
SplashEffect2Image.Image = "rbxassetid://166139049"
526
SplashEffect2Image.BackgroundTransparency = 1
527
SplashEffect2Image.Name = 'Effect'
528
SplashEffect2Image.ImageColor3 = Color3.new(223/255, 0, 255/255)
529
local light2 = Instance.new('PointLight', SplashEffect2)
530
531
local Crack = Instance.new('Part')
532
Crack.Size = Vector3.new(12, .2, 12)
533
Crack.Anchored = true
534
Crack.Transparency = 1
535
Crack.CanCollide = false
536
537
Images = {"rbxassetid://109516732", "rbxassetid://185526499"}
538
local Image = Instance.new('Decal', Crack)
539
Image.Face = 'Top'
540
541
542
local SplashColors = {Color3.new(223/255, 0, 255/255), Color3.new(223/255, 0, 255/255), Color3.new(226/255, 156/255, 210/255), Color3.new(120/255, 91/255, 169/255), Color3.new(8/255, 146/255, 208/255), Color3.new(0,0,1), Color3.new(127/255, 255/255, 212/255)}
543
local Splash1cframe
544
local Splash2cframe
545
546
function math_pos(float)
547
    if float < 0 then float = 0 end
548
    return float
549
end
550
function math_neg(float)
551
    if float > 0 then float = 0 end
552
    return float
553
end
554
function math_max(float, max)
555
    if float > max then float = max end
556
    return float
557
end
558
function math_min(float, min)
559
    if float > min then float = min end
560
    return float
561
end
562
pchar = char
563
Part = function(x,y,z,color,tr,cc,an,parent)
564
    local p = Instance.new('Part',parent)
565
    p.formFactor = 'Custom'
566
    p.Size = Vector3.new(x,y,z)
567
    p.BrickColor = BrickColor.new(color)
568
	p.Material = "Neon"
569
    p.CanCollide = cc
570
    p.Transparency = tr
571
    p.Anchored = an
572
    p.TopSurface,p.BottomSurface = 0,0
573
    p.Locked=true
574
    p:BreakJoints()
575
    return p
576
end
577
Mesh = function(par,num,x,y,z)
578
    local msh = _
579
    if num == 1 then
580
        msh = Instance.new("CylinderMesh",par)
581
    elseif num == 2 then
582
        msh = Instance.new("SpecialMesh",par)
583
        msh.MeshType = 3
584
    elseif num == 3 then
585
        msh = Instance.new("BlockMesh",par)
586
    elseif num == 4 then
587
        msh = Instance.new("SpecialMesh",par)
588-
				game:GetService("RunService").RenderStepped:wait()
588+
589
    elseif type(num) == 'string' then
590
        msh = Instance.new("SpecialMesh",par)
591
        msh.MeshId = num
592
    end 
593
    msh.Scale = Vector3.new(x,y,z)
594
    return msh
595
end
596
function explosion(col1,col2,cfr,sz,rng,dmg)
597
    local a= Part(1,1,1,col1,.5,false,true,pchar)
598
    local a2= Part(1,1,1,col2,.5,false,true,pchar)
599
    local a3= Part(1,1,1,col2,.5,false,true,pchar)
600
    v1,v2,v3=sz.x,sz.y,sz.z
601
    local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
602
    local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
603
    local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
604
    a.CFrame=cfr
605
    a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
606
    a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
607
    for i,v in pairs(workspace:children()) do
608
        if v:IsA("Model") and v:findFirstChild("Humanoid") then
609
            if v:findFirstChild("Head") and v:findFirstChild("Torso") then
610
                if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
611
                    v.Humanoid.Health=v.Humanoid.Health-dmg
612
                    v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2))
613
                end
614
            end
615
        end
616
    end
617
    Spawn(function()
618
        while true do
619
            wait()
620
            if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
621
            m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
622
            m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
623
            m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
624
            a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))
625
            a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2))
626
            a.Transparency=a.Transparency+0.05
627
            a2.Transparency=a2.Transparency+0.05
628
            a3.Transparency=a3.Transparency+0.05
629
        end
630
    end)
631
end
632
633
local lasttick
634
local Action = false
635
local db = false
636-
		game:GetService("RunService").RenderStepped:wait()
636+
637
638
mouse.KeyDown:connect(function(k)
639
    if k:byte() == 32 then
640
        if not jumped then
641
        lasttick = tick()
642
        end
643-
game:service'RunService'.RenderStepped:connect(function()
643+
644
		cd = true
645
		local Colors = {"New Yeller","Really red","Really blue","Royal purple","Pastel orange","Lime green","Hot pink","Toothpaste","Institutional white"}
646
		local Col1 = Colors[math.random(1,#Colors)]
647
		local Col2 = Colors[math.random(1,#Colors)]
648
		explosion(Col1,Col2,torso.CFrame,Vector3.new(80,80,80),60,80)
649
		cd = false
650
	elseif k:lower() == "f" and db == false then
651
		db = true
652
		local Rbx = LoadLibrary("RbxUtility")
653
		local Cre = Rbx.Create
654
		local Colors = {"New Yeller","Really red","Really blue","Royal purple","Pastel orange","Lime green","Hot pink","Toothpaste","Institutional white"}
655
		local sh = Cre("Part"){
656
			Parent = char,
657
			Size = Vector3.new(0.2,0.2,0.2),
658
			Anchored = true,
659
			CanCollide = false,
660
			Material = "Neon",
661
			BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]),
662
			CFrame = torso.CFrame
663
		}
664
		local msh = Cre("SpecialMesh"){
665
			MeshType = "Sphere",
666
			Scale = Vector3.new(0.01,0.01,0.01),
667
			Parent = sh
668
		}
669
		game:GetService("Debris"):AddItem(sh,25)
670
		coroutine.resume(coroutine.create(function()
671
			local a = 0
672
			for i=0,150 do
673
				game:GetService("RunService").Stepped:wait()
674
				sh.CFrame = torso.CFrame
675
				msh.Scale = msh.Scale + Vector3.new(math.floor(i/18),math.floor(i/18),math.floor(i/18))
676
				sh.Transparency = i/150
677
				a = a + 1
678
				if a >= 3 then
679
					a = 0
680
					sh.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
681
				end
682
				for i,v in pairs(game.Workspace:GetChildren()) do
683
					if v and v.Name ~= plr.Name and v:FindFirstChild("Humanoid") then
684
						if v:FindFirstChild("Torso") then
685
							if (v.Torso.Position - torso.Position).magnitude <= i then
686
								v:BreakJoints()
687
							end
688
						end
689
					end
690
				end
691
			end
692
			db = false
693
		end))
694
    end
695
end)
696
697
plr.Chatted:connect(function(msg)
698
    if msg == "/e dance" or msg == "/emote dance" then
699
        Action = 'Dancing'
700
    end
701
    if msg == "/e dance2" or msg == "/emote dance2" then
702
        Action = 'Dancing2'
703
    end
704
    if msg == "/e dance3" or msg == "/emote dance3" then
705
        Action = 'Dancing3'
706
    end
707
end)
708
709
local screengui = Instance.new('ScreenGui', plr.PlayerGui)
710
screengui.Name = "Vinyl's Effect"
711
local frame = Instance.new('ImageLabel', screengui)
712
frame.Size = UDim2.new(1,250,1,250)
713
frame.Position = UDim2.new(0,-125,0,-125)
714
frame.Image = "rbxassetid://186263828"
715
frame.BackgroundTransparency = 1
716
717
local parts = Instance.new('Model', char)
718
719
coroutine.resume(coroutine.create(function()
720
	while true do
721
		game:GetService("RunService").Stepped:wait()
722
		VolNum.Text = Volume
723
		s.Volume = Volume
724
	end
725
end))
726
727
local Notes = {}
728
game:service'RunService'.Stepped:connect(function()
729
    angle = (angle % 100) + anglespeed/10
730
    local rscf = rsc0
731
    local lscf = lsc0
732
    local rjcf = rootc0
733
    local ncf = neckc0
734
    local rlcf = rlc0
735
    local llcf = llc0
736
    local jumpray = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
737
    local jumphit, jumppos = workspace:FindPartOnRayWithIgnoreList(jumpray, {char, parts, Crack, SplashEffect, SplashEffect2})
738
        do --Right leg effect
739
            local ray = Ray.new(rl.CFrame.p, ((rl.CFrame*CFrame.new(0,-1,0)).p - rl.Position).unit*1)
740
            local hit,hitz, normal = workspace:FindPartOnRay(ray, char)
741
            if hit and hit:IsA'BasePart' and hitz then
742
                if SplashEffect.Parent == nil then
743
                local COLOR = SplashColors[math.random(1,#SplashColors)];
744
                    SplashEffect.Parent = parts
745
                    SplashEffect.Transparency = 0.2
746
                    SplashEffect.BrickColor = BrickColor.new(COLOR)
747
                    SplashEffect.Size = Vector3.new(.2,.2,.2)
748
                    SplashEffectImage.ImageColor3 = COLOR;
749
                    SplashEffectImage.ImageTransparency = 0
750
                    SplashEffect.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.65, 0)
751
                    Splash1cframe = SplashEffect.CFrame
752
                    light.Color = SplashEffectImage.ImageColor3
753
                    light.Brightness = 1
754
                    light.Range = 8
755
					if Not == true then
756
                    for i = 1, math.random(6,10) do
757
                        local Note = Instance.new('Part', parts)
758
                        Note.CanCollide = false
759
                        Note.Material = "Neon"
760
                        Note.Anchored = true
761
                        Note.CFrame = SplashEffect.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20)
762
                        Note.Color = SplashEffectImage.ImageColor3
763
                        Note.Size = Vector3.new(1,1,1)
764
                        local mesh = Instance.new('SpecialMesh', Note)
765
                        mesh.MeshId = "rbxassetid://1088207"
766
                        mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5)
767
                        table.insert(Notes,Note)
768
                    end
769
					end
770
                    wait(1)
771
                    SplashEffect.Parent = nil
772
                    Splash1cframe = nil
773
                end
774
            end
775
        end
776
        do --Left leg effect
777
            local ray = Ray.new(ll.CFrame.p, ((ll.CFrame*CFrame.new(0,-1,0)).p - ll.Position).unit*1)
778
            local hit,hitz, normal = workspace:FindPartOnRay(ray, char)
779
            if hit and hit:IsA'BasePart' and hitz then
780
                if SplashEffect2.Parent == nil then
781
                    local COLOR = SplashColors[math.random(1,#SplashColors)];
782
                    SplashEffect2.Parent = parts
783
                    SplashEffect2.Transparency = 0.2
784
785
                    SplashEffect2.BrickColor = BrickColor.new(COLOR)
786
                    SplashEffect2.Size = Vector3.new(.2,.2,.2)
787
                    SplashEffect2Image.ImageColor3 = COLOR;
788
                    SplashEffect2Image.ImageTransparency = 0
789
                    SplashEffect2.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.65, 0)
790
                    Splash2cframe = SplashEffect2.CFrame
791
                    light2.Color = SplashEffect2Image.ImageColor3
792
                    light2.Brightness = 1
793
                    light2.Range = 8
794
					if Not == true then
795
                    for i = 1, math.random(6,10) do
796
                        local Note = Instance.new('Part', parts)
797
                        Note.CanCollide = false
798
                        Note.Material = "Neon"
799
                        Note.Anchored = true
800
                        Note.CFrame = SplashEffect2.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20)
801
                        Note.Color = SplashEffect2Image.ImageColor3
802
                        Note.Size = Vector3.new(1,1,1)
803
                        local mesh = Instance.new('SpecialMesh', Note)
804
                        mesh.MeshId = "rbxassetid://1088207"
805
                        mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5)
806
                        table.insert(Notes,Note)
807
                    end
808
					end
809
                    wait(1)
810
                    SplashEffect2.Parent = nil
811
                    Splash2cframe = nil
812
                end
813
            end
814
        end
815
    if Action == 'Dancing' then
816
        anglespeed = .95
817
        llcf = llc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2)-.12, 0, -.02)
818
        rlcf = rlc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2), 0, .02)
819
        rscf = rsc0 * CFrame.Angles(math.rad(70) - math.asin(math.sin(angle))*1.5, 0, 0)
820
        lscf = lsc0 * CFrame.Angles(math.rad(10) - math.asin(math.sin(angle))*.45, 0, -.1)
821
        rjcf = rootc0 * CFrame.new(0, -.2 + -math_neg(math.asin(math.sin(angle))*2), 0) * CFrame.Angles(-math_pos(math.asin(math.sin(angle))*.2), 0, 0)
822
        ncf = neckc0 * CFrame.Angles(-math_neg(math.asin(math.sin(angle))*.2), 0, 0)
823
    elseif Action == 'Dancing2' then
824
        anglespeed = 1.15
825
        llcf = llc0 * CFrame.new(0, -math_neg(math.sin((angle+2)*2))*.2, math_neg(math.sin((angle+4)*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, -.02)
826
        rlcf = rlc0 * CFrame.new(0, -math_neg(math.sin(angle*2))*.2, math_neg(math.sin(angle*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, .02)
827
        rscf = rsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, -.2 + math.abs(math.asin(math.sin(angle)))*.35)
828
        lscf = lsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, .2 - math.abs(math.asin(math.sin(angle)))*.35)
829
        rjcf = rootc0 * CFrame.new(0, -.1 + -math_neg(math.sin(angle*2)*.8), 0) * CFrame.Angles(0, 0, 0)
830
        ncf = neckc0 * CFrame.Angles(-math_neg(math.sin(angle/2)*.2), 0, math.asin(math.sin(angle))*.2)
831
    elseif Action == 'Dancing3' then
832
        anglespeed = .95
833
        rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0) * CFrame.Angles(0,math.asin(math.sin(angle))*.05,0)
834
        rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.5, -math_pos(-math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.4,0,.075 + -math.asin(math.sin(angle))*.05)
835
        llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.5, -math_pos(math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.4,0,-.075 + -math.asin(math.sin(angle))*.05)
836
        rscf = rsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8)
837
        lscf = lsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8)
838
        ncf = neckc0 * CFrame.Angles(0,-math.asin(math.sin(angle))*.5,0)
839
    elseif Action == false then
840
        if not jumphit then
841
            anglespeed = 2
842
            rlcf = rlc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 - math.asin(math.sin(angle))*.05, 0, 0)
843
            llcf = llc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 + math.asin(math.sin(angle))*.05, 0, 0)
844
            lscf = lsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) - math.asin(math.sin(angle))*.05, 0, 0)
845
            rscf = rsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) + math.asin(math.sin(angle))*.05, 0, 0)
846
        elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude < 2 then
847
            anglespeed = .75
848
            ncf = neckc0 * CFrame.Angles(math.abs(math.asin(math.sin(angle))*.15), math.asin(math.sin(angle))*.15, 0)
849
            rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0)
850
            rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.25, -math_pos(-math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.24,0,.075 + -math.asin(math.sin(angle))*.05)
851
            llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.25, -math_pos(math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.24,0,-.075 + -math.asin(math.sin(angle))*.05)
852
            rscf = rsc0 * CFrame.Angles(-math.asin(math.sin(angle))*.25, 0, .015)
853-
        game:service'RunService'.RenderStepped:wait()
853+
854
        elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude > 2 then
855
            anglespeed = 1
856
            rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.025, .05 - math.cos(angle*2)*.025, 0) * CFrame.Angles(-.15 + -math.abs(math.cos(angle)*.025),math.asin(math.sin(angle))*.025,0)
857
            rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(math.cos(angle - 0.25)*.3), math_neg(-math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 + math.asin(math.sin(angle))*.4,0,.025 + -math.asin(math.sin(angle))*.025)
858
            llcf = llc0 * CFrame.new(0, -.05 + math_pos(-math.cos(angle - 0.25)*.3), math_neg(math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 - math.asin(math.sin(angle))*.4,0,-.025 + -math.asin(math.sin(angle))*.025)
859-
        game:service'RunService'.RenderStepped:wait()
859+
860
            lscf = lsc0 * CFrame.Angles(.5 + math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2)
861
        end
862
    end
863
    if SplashEffect.Parent ~= nil then
864
        if light then
865-
        game:service'RunService'.RenderStepped:wait()
865+
866
            light.Brightness = light.Brightness - .045
867
        end
868
        SplashEffect.Size = SplashEffect.Size + Vector3.new(1.25,0,1.25)
869
        SplashEffectImage.ImageTransparency = SplashEffectImage.ImageTransparency + .045
870
        SplashEffect.Transparency = SplashEffect.Transparency + .025
871-
        game:service'RunService'.RenderStepped:wait()
871+
872
    end
873
874
    if Crack.Parent ~= nil then
875
        if Image.Transparency > 1 then Crack.Parent = nil end
876
        Image.Transparency = Image.Transparency + .045
877-
        game:service'RunService'.RenderStepped:wait()
877+
878
879
    if SplashEffect2.Parent ~= nil then
880
        if light2 then
881
            light2.Range = light2.Range + 1
882
            light2.Brightness = light2.Brightness - .045
883-
        game:service'RunService'.RenderStepped:wait()
883+
884
        SplashEffect2.Size = SplashEffect2.Size + Vector3.new(1.25,0,1.25)
885
        SplashEffect2Image.ImageTransparency = SplashEffect2Image.ImageTransparency + .045
886
        SplashEffect2.Transparency = SplashEffect2.Transparency + .025
887
        SplashEffect2.CFrame = Splash2cframe
888
    end
889
890
    for i,v in pairs(Notes) do
891
        if v and v:IsA'BasePart' then
892
            if v.Transparency > 1 then
893
                v:Destroy()
894
                table.remove(Notes, i)
895
            end
896
            v.CFrame = v.CFrame * CFrame.new(0,0,-.285)
897
            v.Transparency = v.Transparency + .025
898
        end
899
    end
900
901
    if Action ~= false then
902
        if torso.Velocity.magnitude > 2 then
903
            Action = false
904
        end
905
    end
906
907
    rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
908
    llegm.C0 = clerp(llegm.C0,llcf,speed)
909
    rj.C0 = clerp(rj.C0,rjcf,speed)
910
    rm.C0 = clerp(rm.C0,rscf,speed)
911
    lm.C0 = clerp(lm.C0,lscf,speed)
912
    rj.C0 = clerp(rj.C0,rjcf,speed)
913
    neck.C0 = clerp(neck.C0,ncf,speed)
914
end)
915
916
plr.Chatted:connect(function(msg)
917
    if (msg:sub(1,4) == "/mc ") then
918
        s:stop();
919
        s.SoundId = "rbxassetid://"..msg:sub(5);
920
        s:play();
921
	elseif msg:lower() == "/mc epicsaxguy" then
922
		s:stop()
923
		s.SoundId = "rbxassetid://130775431"
924
		s:play()
925
	elseif msg:lower() == "/mc shirushi" then
926
		s:stop()
927
		s.SoundId = "rbxassetid://186565262"
928
		s:play()
929
    end
930
end)
931
932
933
while true do
934
    for i = 0,140,15 do
935
        frame.Size = UDim2.new(1,350 - i,1,350 - i)
936
        frame.Rotation = 0+math.random()
937
        frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
938
        game:service'RunService'.Stepped:wait()
939
    end
940
    for i = 140,5, -15 do
941
        frame.Size = UDim2.new(1,350 - i,1,350 - i)
942
        frame.Rotation = 0+math.random(-10,10)/10
943
        frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
944
        game:service'RunService'.Stepped:wait()
945
    end
946
    for i = 5,25,15 do
947
        frame.Rotation = 0-math.random()
948
        frame.Size = UDim2.new(1,350 - i,1,350 - i)
949
        frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
950
        game:service'RunService'.Stepped:wait()
951
    end
952
    for i = 25,0,-15 do
953
        frame.Rotation = 0+math.random()
954
        frame.Size = UDim2.new(1,350 - i,1,350 - i)
955
        frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
956
        game:service'RunService'.Stepped:wait()
957
    end
958
    for i = 0,75,-15 do
959
        frame.Rotation = 0-math.random()
960
        frame.Size = UDim2.new(1,350 - i,1,350 - i)
961
        frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
962
        game:service'RunService'.Stepped:wait()
963
    end
964
    for i = 75,0,-15 do
965
        frame.Rotation = 0
966
        frame.Size = UDim2.new(1,350 - i,1,350 - i)
967
        frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5)
968
        game:service'RunService'.Stepped:wait()
969
    end
970
end
971
end,o1)
972
end)
973
mas.Parent = workspace
974
mas:MakeJoints()
975
local mas1 = mas:GetChildren()
976
for i=1,#mas1 do
977
	mas1[i].Parent = script 
978
	ypcall(function() mas1[i]:MakeJoints() end)
979
end
980
mas:Destroy()
981
for i=1,#cors do
982
spawn(cors[i])
983
end
984
985
game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
986
game:GetService("Lighting").Brightness = 1
987
game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
988
game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
989
game:GetService("Lighting").GlobalShadows = true
990
game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
991
game:GetService("Lighting").Outlines = true
992
game:GetService("Lighting").GeographicLatitude = 41.733299255371
993
game:GetService("Lighting").TimeOfDay = "14:00:00"
994
game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
995
game:GetService("Lighting").FogEnd = 100000
996
game:GetService("Lighting").FogStart = 0