View difference between Paste ID: 3abgs2qj and whRGX5Hc
SHOW: | | - or go back to the newest paste.
1
--[[ Dancing me edit by KillerDarkness0105 / Codex#6685 ]]--
2
--[[ i will be making a new dance script in late december that isn't an edit doe may leak, may not. ]]--
3
4-
Name"https://web.roblox.com/request-error?code=404&404;https://www.roblox.com:443/char/?id=348902"
4+
5
	char = m.Character
6
	local txt = Instance.new("BillboardGui", char)
7
	txt.Adornee = char .Head
8
	txt.Name = "_status"
9
	txt.Size = UDim2.new(2, 0, 1.2, 0)
10
	txt.StudsOffset = Vector3.new(-9, 8, 0)
11
	local text = Instance.new("TextLabel", txt)
12
	text.Size = UDim2.new(10, 0, 7, 0)
13
	text.FontSize = "Size24"
14
	text.TextScaled = true
15
	text.TextTransparency = 0
16
	text.BackgroundTransparency = 1 
17
	text.TextTransparency = 0
18
	text.TextStrokeTransparency = 0
19
	text.Font = "Bodoni"
20
	text.TextStrokeColor3 = Color3.new(0,255,255)
21
22
	v=Instance.new("Part")
23
	v.Name = "ColorBrick"
24
	v.Parent=m.Character
25
	v.FormFactor="Symmetric"
26
	v.Anchored=true
27
	v.CanCollide=false
28
	v.BottomSurface="Smooth"
29
	v.TopSurface="Smooth"
30
	v.Size=Vector3.new(10,5,3)
31
	v.Transparency=1
32
	v.CFrame=char.Torso.CFrame
33
	v.BrickColor=BrickColor.new("Really black")
34
	v.Transparency=1
35
	text.TextColor3 = Color3.new(255,0,255)
36
	v.Shape="Block"
37
	text.Text = ""
38
39
40
pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
41
local plr = game.Players.LocalPlayer
42
repeat wait() until plr.Character
43
plr = game.Players.LocalPlayer    
44
char = plr.Character
45
Character=plr.Character 
46
torso = char.Torso
47
head = char.Head
48
neck = torso.Neck
49
vt=Vector3.new
50
Humanoid=Character.Humanoid
51
cf=CFrame.new
52
cn=CFrame.new
53
shake = true
54
RootPart=Character.HumanoidRootPart
55
RootJoint=RootPart.RootJoint
56
euler=CFrame.fromEulerAnglesXYZ
57
angles=CFrame.Angles
58
sound = Instance.new("Sound", torso)
59
sound.SoundId = "rbxassetid://1218960971"
60-
sound.SoundId = "rbxassetid://1131525161"
60+
61
sound.Volume = 10
62
sound:Play()
63
sound.Looped = true
64
RootCF=euler(-1.57,0,3.14)
65
plr.Chatted:connect(function(message)
66
            if message:sub(1,4) == "play" then
67
            sound:Stop()
68
                sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
69
    sound:Play()
70
    end
71
           if message:sub(1,7) == "noshake" then
72
shake = false
73
coroutine.resume(coroutine.create(function()
74
game.StarterGui:SetCore("ChatMakeSystemMessage", {
75
	Text = 'Shake off';
76
	Color = Color3.new(0,0,0);
77
        Color = Color3.new(0,255,255);
78
	Font = Enum.Font.Bodoni;
79
	FontSize = Enum.FontSize.Size24;
80
})
81
end))
82
end
83
84
85
            if message:sub(1,6) == "noglob" then
86
sound.Parent = torso
87
coroutine.resume(coroutine.create(function()
88
game.StarterGui:SetCore("ChatMakeSystemMessage", {
89
	Text = 'Global music off';
90
	Color = Color3.new(0,0,0);
91
        Color = Color3.new(0,255,255);
92
	Font = Enum.Font.Bodoni;
93
	FontSize = Enum.FontSize.Size24;
94
})
95
end))
96
    end
97
98
            if message:sub(1,4) == "glob" then
99
100
                sound.Parent = char
101
coroutine.resume(coroutine.create(function()
102
game.StarterGui:SetCore("ChatMakeSystemMessage", {
103
	Text = 'Global music on';
104
	Color = Color3.new(0,0,0);
105
        Color = Color3.new(0,255,255);
106
	Font = Enum.Font.Bodoni;
107
	FontSize = Enum.FontSize.Size24;
108
})
109
end))
110
111
    end
112
113
114
           if message:sub(1,5) == "shake" then
115
shake = true
116
coroutine.resume(coroutine.create(function()
117
game.StarterGui:SetCore("ChatMakeSystemMessage", {
118
	Text = 'Shake on';
119
	Color = Color3.new(0,0,0);
120
        Color = Color3.new(0,255,255);
121
	Font = Enum.Font.Bodoni;
122
	FontSize = Enum.FontSize.Size24;
123
})
124
end))
125
end
126
end)
127
128
mouse=plr:GetMouse()
129
130
131
132
133
134
135
136
coroutine.resume(coroutine.create(function()
137
game.StarterGui:SetCore("ChatMakeSystemMessage", {
138
	Text = 'Hello, Welcome to my dancer edit!';
139
	Color = Color3.new(0,0,0);
140
        Color = Color3.new(0,255,255);
141
	Font = Enum.Font.Bodoni;
142
	FontSize = Enum.FontSize.Size24;
143
})
144
end))
145
wait(0.5)
146
147
148
local light = Instance.new("PointLight",torso)
149
light.Color = Color3.new(0, 0, 0)
150
light.Brightness = 4.50
151
light.Range = 14
152
153
154
coroutine.resume(coroutine.create(function()
155
game.StarterGui:SetCore("ChatMakeSystemMessage", {
156
	Text = 'The Prefixes are "play", "noshake", "shake", "glob", and "noglob" Hope you enjoy!';
157
	Color = Color3.new(0,0,0);
158
        Color = Color3.new(0,255,255);
159
	Font = Enum.Font.Bodoni;
160
	FontSize = Enum.FontSize.Size24;
161
})
162
end))
163
164
165
	ArtificialHB = Instance.new("BindableEvent", script)
166
ArtificialHB.Name = "Heartbeat"
167
168
script:WaitForChild("Heartbeat")
169
170
frame = 1 / 60
171
tf = 0
172
allowframeloss = false
173
tossremainder = false
174
lastframe = tick()
175
script.Heartbeat:Fire()
176
177
game:GetService("RunService").Heartbeat:connect(function(s, p)
178
	tf = tf + s
179
	if tf >= frame then
180
		if allowframeloss then
181
			script.Heartbeat:Fire()
182
			lastframe = tick()
183
		else
184
			for i = 1, math.floor(tf / frame) do
185
				script.Heartbeat:Fire()
186
			end
187
			lastframe = tick()
188
		end
189
		if tossremainder then
190
			tf = 0
191
		else
192
			tf = tf - frame * math.floor(tf / frame)
193
		end
194
	end
195
end)
196
197
function swait(num)
198
	if num == 0 or num == nil then
199
		ArtificialHB.Event:wait()
200
	else
201
		for i = 0, num do
202
			ArtificialHB.Event:wait()
203
		end
204
	end
205
end
206
207
208
209
210
211
function lerp(a, b, t) -- Linear interpolation
212
	return a + (b - a)*t
213
end
214
 
215
function slerp(a, b, t) --Spherical interpolation
216
	dot = a:Dot(b)
217
	if dot > 0.99999 or dot < -0.99999 then
218
		return t <= 0.5 and a or b
219
	else
220
		r = math.acos(dot)
221
		return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
222
	end
223
end
224
 
225
function matrixInterpolate(a, b, t)
226
	local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
227
	local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
228
	local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
229
	local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
230
	local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
231
	local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
232
	local t = v1:Dot(v2)
233
	if not (t < 0 or t == 0 or t > 0) then 	-- Failsafe
234
		return CFrame.new()
235
	end
236
	return CFrame.new(
237
	v0.x, v0.y, v0.z,
238
	v1.x, v1.y, v1.z,
239
	v2.x, v2.y, v2.z,
240
	v3.x, v3.y, v3.z)
241
end
242
243
if m.UserId == 89145937 then
244
  while true do
245
Character.Humanoid.Health = math.huge
246
Character.Humanoid.MaxHealth = math.huge
247
Character.Humanoid.Health = math.huge
248
Character.Humanoid.MaxHealth = math.huge
249
Character.Humanoid.Health = math.huge
250
Character.Humanoid.MaxHealth = math.huge
251
Character.Humanoid.Health = math.huge
252
end
253
end
254
function genWeld(a,b)
255
    local w = Instance.new("Weld",a)
256
    w.Part0 = a
257
    w.Part1 = b
258
    return w
259
end
260
function weld(a, b)
261
    local weld = Instance.new("Weld")
262
    weld.Name = "W"
263
    weld.Part0 = a
264
    weld.Part1 = b
265
    weld.C0 = a.CFrame:inverse() * b.CFrame
266
    weld.Parent = a
267
    return weld;
268
end
269
270
function Lerp(c1,c2,al)
271
	local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
272
	local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
273
	for i,v in pairs(com1) do 
274
		com1[i] = v+(com2[i]-v)*al
275
	end
276
	return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
277
end
278
279
280
function clerp(a,b,t) 
281
local qa = {QuaternionFromCFrame(a)}
282
local qb = {QuaternionFromCFrame(b)} 
283
local ax, ay, az = a.x, a.y, a.z 
284
local bx, by, bz = b.x, b.y, b.z
285
local _t = 1-t
286
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
287
end 
288
 
289
function QuaternionFromCFrame(cf) 
290
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
291
local trace = m00 + m11 + m22 
292
if trace > 0 then 
293
local s = math.sqrt(1 + trace) 
294
local recip = 0.5/s 
295
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
296
else 
297
local i = 0 
298
if m11 > m00 then
299
i = 1
300
end
301
if m22 > (i == 0 and m00 or m11) then 
302
i = 2 
303
end 
304
if i == 0 then 
305
local s = math.sqrt(m00-m11-m22+1) 
306
local recip = 0.5/s 
307
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
308
elseif i == 1 then 
309
local s = math.sqrt(m11-m22-m00+1) 
310
local recip = 0.5/s 
311
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
312
elseif i == 2 then 
313
local s = math.sqrt(m22-m00-m11+1) 
314
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
315
end 
316
end 
317
end
318
 
319
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
320
local xs, ys, zs = x + x, y + y, z + z 
321
local wx, wy, wz = w*xs, w*ys, w*zs 
322
local xx = x*xs 
323
local xy = x*ys 
324
local xz = x*zs 
325
local yy = y*ys 
326
local yz = y*zs 
327
local zz = z*zs 
328
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
329
end
330
 
331
function QuaternionSlerp(a, b, t) 
332
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
333
local startInterp, finishInterp; 
334
if cosTheta >= 0.0001 then 
335
if (1 - cosTheta) > 0.0001 then 
336
local theta = math.acos(cosTheta) 
337
local invSinTheta = 1/math.sin(theta) 
338
startInterp = math.sin((1-t)*theta)*invSinTheta 
339
finishInterp = math.sin(t*theta)*invSinTheta  
340
else 
341
startInterp = 1-t 
342
finishInterp = t 
343
end 
344
else 
345
if (1+cosTheta) > 0.0001 then 
346
local theta = math.acos(-cosTheta) 
347
local invSinTheta = 1/math.sin(theta) 
348
startInterp = math.sin((t-1)*theta)*invSinTheta 
349
finishInterp = math.sin(t*theta)*invSinTheta 
350
else 
351
startInterp = t-1 
352
finishInterp = t 
353
end 
354
end 
355
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
356
end
357
358
--Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
359
360
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
361
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
362
end 
363
Torso=Character.Torso 
364
--save shoulders 
365
RSH, LSH=nil, nil 
366
--welds 
367
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
368
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
369
function NoOutline(Part)
370
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
371
end
372
player=Player 
373
ch=Character
374
RSH=char.Torso["Right Shoulder"] 
375
LSH=char.Torso["Left Shoulder"] 
376
-- 
377
RSH.Parent=nil 
378
LSH.Parent=nil 
379
-- 
380
RW.Name="Right Shoulder"
381
RW.Part0=char.Torso 
382
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
383
RW.C1=cf(0, 0.5, 0) 
384
RW.Part1=char["Right Arm"] 
385
RW.Parent=char.Torso 
386
-- Character=Player.Character
387
LW.Name="Left Shoulder"
388
LW.Part0=char.Torso 
389
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
390
LW.C1=cf(0, 0.5, 0) 
391
LW.Part1=char["Left Arm"] 
392
LW.Parent=char.Torso 
393
LS=Torso["Left Shoulder"] 
394
LH=Torso["Left Hip"] 
395
RS=Torso["Right Shoulder"] 
396
RH=Torso["Right Hip"] 
397
398
	Player=game:GetService('Players').LocalPlayer
399
	Character=Player.Character
400
	Mouse=Player:GetMouse()
401
	m=Instance.new('Model',Character)
402
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
403
	local wld = Instance.new("Weld", wp1)
404
	wld.Part0 = wp0
405
	wld.Part1 = wp1
406
	wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
407
end
408
409
	local function weldBetween(a, b)
410
	    local weldd = Instance.new("ManualWeld")
411
	    weldd.Part0 = a
412
	    weldd.Part1 = b
413
	    weldd.C0 = CFrame.new()
414
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
415
	    weldd.Parent = a
416
	    return weldd
417
	end
418
	
419
420
421
Player.Character.Humanoid.Name = "Zombie"
422
423
m=Instance.new("ForceField",Character)
424
m.Visible = false
425
426
LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
427
428
---- [[ Syncer ]] ----
429
430
sync = Instance.new("Part", workspace)
431
sync.Anchored = false
432
sync.Parent = head
433
sync.TopSurface = 0
434
sync.BrickColor = BrickColor.new("Really black")
435
sync.BottomSurface = 0
436
sync.Material = "SmoothPlastic"
437
syncm = Instance.new("SpecialMesh", sync)
438
syncm.MeshType = Enum.MeshType.Sphere
439
syncm.Scale = Vector3.new(.13,0.1,0.05)
440
syncsize = syncm.Scale
441
sync.Transparency = 1 
442
weld = Instance.new("Weld", head)
443
weld.Part0 = sync
444
weld.Part1 = head
445
weld.C1 = CFrame.new(0,-.25,-.6)
446
game:service'RunService'.RenderStepped:connect(function()
447
syncm.Scale = syncm.Scale:lerp(Vector3.new(syncsize.X+sound.PlaybackLoudness/9200,sound.PlaybackLoudness/3500,syncsize.Z),0.9)
448
neck.C0 = neck.C0:lerp(CFrame.new(0,1,-.10)*CFrame.Angles(math.rad(syncm.Scale.Y*-910)    +math.rad(-30),0,math.rad(180)),0.15)
449
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0+syncm.Scale.Y*1000), math.rad(0+syncm.Scale.Y*360), math.rad(0+syncm.Scale.Y*1000)),.1)
450
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0+syncm.Scale.Y*1000), math.rad(0-syncm.Scale.Y*360), math.rad(0-syncm.Scale.Y*1000)),.1)
451
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0-syncm.Scale.Y*4.6)* angles(math.rad(0+syncm.Scale.Y*260.6),math.rad(0),math.rad(0)),.25)
452
LH.C0=clerp(LH.C0,cf(-1,-0-syncm.Scale.Y*11.6,-0.5+syncm.Scale.Y*5.4)*angles(math.rad(0-syncm.Scale.Y*160.6),math.rad(-90),math.rad(0)),.3)
453
RH.C0=clerp(RH.C0,cf(1,-1+syncm.Scale.Y*3.8,-0-syncm.Scale.Y*5.4)*angles(math.rad(0+syncm.Scale.Y*290.6),math.rad(90),math.rad(0)),.5)
454
light.Color = Color3.new(0,0,0)
455
light.Brightness = 2 + syncm.Scale.Y*550.6
456
light.Range = syncm.Scale.Y*550.6
457
if sound.PlaybackLoudness >= 320  and shake == true or shake == false then
458
light.Color = Color3.new(255,255,255)
459
end
460
if sound.PlaybackLoudness >= 320  and shake == true then
461
for i = 0,0.9,0.17 do
462
swait()
463
	Humanoid.CameraOffset = Vector3.new(math.random(-4,4*i),math.random(-.9,.9*i),math.random(-4.7,4.7*i))
464
end
465
end
466
if sound.PlaybackLoudness >= 680 then
467
text.Text = "PlaceRebuilder"
468-
text.Text = "WHAT DA FUCK"
468+
469
if sound.PlaybackLoudness <= 390 then
470
text.Text = "PlaceRebuilder"
471-
text.Text = "WOWOWOWOOWOWOWOOWOWOWOWOWOOWOWOWOW"
471+
472
if sound.PlaybackLoudness >= 390  and shake == true then
473
for i = 0,0.9,0.17 do
474
swait()
475
	Humanoid.CameraOffset = Vector3.new(math.random(-7,7*i),math.random(-3.9,3.9*i),math.random(-7.7,7.7*i))
476
end
477
end
478
if sound.PlaybackLoudness <= 240  then
479
	Humanoid.CameraOffset = Vector3.new(0,0,0)
480
light.Color = Color3.new(255,255,255)
481
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
482
text.Text = "PlaceRebuilder?"
483-
text.Text = "Okie..?"
483+
484
if sound.PlaybackLoudness <= 180  then
485
	Humanoid.CameraOffset = Vector3.new(0,0,0)
486
light.Color = Color3.new(255,255,255)
487
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
488
text.Text = "PlaceRebuilder"
489
end
490
if sound.PlaybackLoudness <= 40  then
491
text.Text = "R2da"
492
end
493
end)
494
495
while true do
496
Character.Zombie.MaxHealth = math.huge
497
Character.Zombie.Health = math.huge -- more god mode
498
wait() -- DO NOT REMOVE unless you wanna crash yourself
499
end