View difference between Paste ID: Hwruiz9Y and DskMdEGq
SHOW: | | - or go back to the newest paste.
1-
--==Made by LuisPambid==--
1+
--==Made by chucky4523==--
2
3
local player=game.Players.LocalPlayer
4
local char=player.Character
5
repeat wait() until player and char
6
local torso=char.Torso
7
local head=char.Head
8
local human=char.Humanoid
9
local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
10
local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
11
local c=function(f) coroutine.resume(coroutine.create(f)) end
12
local p=function(f) pcall(f) end
13
local add={
14
	Part=function(par, a, c, col, t, s, cf)
15
		local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new()  end)
16
		return p
17
	end,	
18
	Wedge=function(par, a, c, col, t, s, cf)
19
		local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new()  end)
20
		return p
21
	end,
22
	Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
23
		local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos  end)
24
		return g
25
	end,
26
	Weld=function(par, p1, cf)
27
		local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
28
		return w
29
	end,
30
	Mesh=function(ins, par, s, of, t)
31
		local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
32
		return m
33
	end
34
}
35
local scriptname="GANGNAM STYLE" --Name here
36
pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() player.PlayerGui[scriptname]:remove()  end)
37
local model=Instance.new("Model", char) model.Name="Objects"
38
local modelB=Instance.new("Model", char) modelB.Name=scriptname
39
local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
40
local bin=Instance.new("HopperBin", player.Backpack) bin.Name=scriptname
41
local skincolor="Really black"
42
local body={}
43
local animate={}
44
local obj={}
45
function createParts()
46
	--==PARTS==--
47
	body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
48
	body.Torso=add.Part(model, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
49
	body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
50
	body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
51
	--==WELDS==--
52
	body.HeadW=add.Weld(body.Head, torso, CFrame.new(0, 1.5, 0))
53
	body.TorsoW=add.Weld(body.Torso, torso, nil)
54
	body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
55
	body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
56
	--==WELDS==--
57
	add.Weld(body.Head, head, nil)
58
	add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
59
	add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
60
	add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -.5, 0))
61
	add.Weld(leg.Right, body.LegRight, CFrame.new(0, -.5, 0))
62
	---------------------------------------------------------------------------------------
63
	animate={
64
		["Head"]=function(cf)
65
			body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
66
		end;
67
		["Torso"]=function(cf) body.Torso.Transparency=0 torso.Transparency=1
68
			body.TorsoW.C1=cf
69
		end;
70
		["ArmLeft"]=function(cf)
71
			body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
72
		end;
73
		["ArmRight"]=function(cf)
74
			body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
75
		end;
76
		["LegLeft"]=function(cf)
77
			body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
78
		end;
79
		["LegRight"]=function(cf)
80
			body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
81
		end;
82
	}
83
	--==Objects==--
84
end
85
function removeParts()
86
	p(function()
87
		for i, v in pairs(model:children()) do v:remove() end	for i, v in pairs(modelB:children()) do v:remove() end	for i, v in pairs(char:children()) do v.Transparency=0 end
88
	end)
89
end
90
function play(id, pitch)
91
	c(function()
92
		local sound=Instance.new("Sound", torso)
93
		sound.Pitch=pitch
94
		sound.SoundId=id
95
		sound:play()
96
		wait(1)
97
		sound:remove()
98
	end)
99
end
100
local lyrics=0
101
local dance=0
102
local dancing=false
103
local onDancing=false
104
local startpos=false
105
bin.Selected:connect(function(mouse) createParts() onDancing=true
106
	for i=0, 1, .1 do wait()
107
		animate.Head(CFrame.Angles(math.rad(45), 0, 0))
108
		animate.ArmLeft(CFrame.new(1*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
109
		animate.ArmRight(CFrame.new(-1*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, -math.rad(45)*i))
110
		animate.LegLeft(CFrame.Angles(0, 0, -math.rad(15)*i))
111
		animate.LegRight(CFrame.Angles(0, 0, math.rad(15)*i))
112
	end
113
	while onDancing do wait() lyrics=lyrics+1 dance=dance+1
114
		if lyrics==1 then game:GetService("Chat"):Chat(head, "Op", "Blue") end
115
		if lyrics==2 then game:GetService("Chat"):Chat(head, "Op", "Blue") end
116
		if lyrics==4 then game:GetService("Chat"):Chat(head, "Oppa GANGNAM STYLE!", "Blue") end
117
		if dance<=2 and dancing==false then print(dance)
118
			dancing=true
119
			startpos=false
120
			for i=0, 1, .1 do wait()
121
				animate.Head(CFrame.Angles(math.rad(45*i), 0, 0))
122
				animate.Torso(CFrame.Angles(0, 0, math.rad(-5+10*i)))
123
				animate.ArmLeft(CFrame.new(1, .5*i, -.5)*CFrame.Angles(math.rad(90+45*i), 0, math.rad(45)))
124
				animate.ArmRight(CFrame.new(-1, .5*i, -.5)*CFrame.Angles(math.rad(90+45*i), 0, -math.rad(45)))
125
				animate.LegLeft(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, -math.rad(15)))
126
				animate.LegRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, math.rad(15)))
127
			end
128
			for i=0, 1, .1 do wait()
129
				animate.Head(CFrame.Angles(math.rad(45-45*i), 0, 0))
130
				animate.Torso(CFrame.Angles(0, 0, math.rad(5-10*i)))
131
				animate.ArmLeft(CFrame.new(1, .5-.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, math.rad(45)))
132
				animate.ArmRight(CFrame.new(-1, .5-.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, -math.rad(45)))
133
				animate.LegLeft(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(15)))
134
				animate.LegRight(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, math.rad(15)))
135
			end
136
			dancing=false
137
		elseif dance>=2 and dance<5 and dancing==false then print(dance)
138
			dancing=true
139
			startpos=false
140
			for i=0, 1, .1 do wait()
141
				animate.Head(CFrame.Angles(math.rad(45*i), 0, 0))
142
				animate.Torso(CFrame.Angles(0, 0, math.rad(-5+10*i)))
143
				animate.ArmLeft(CFrame.new(1, .5*i, -.5)*CFrame.Angles(math.rad(90+45*i), 0, math.rad(45)))
144
				animate.ArmRight(CFrame.Angles(math.rad(180+math.random(-45, 45)*i), 0, -math.rad(math.random(-45, 45)*i)))
145
				animate.LegLeft(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, -math.rad(15)))
146
				animate.LegRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, math.rad(15)))
147
			end
148
			for i=0, 1, .1 do wait()
149
				animate.Head(CFrame.Angles(math.rad(45-45*i), 0, 0))
150
				animate.Torso(CFrame.Angles(0, 0, math.rad(5-10*i)))
151
				animate.ArmLeft(CFrame.new(1, .5-.5*i, -.5)*CFrame.Angles(math.rad(135-45*i), 0, math.rad(45)))
152
				animate.ArmRight(CFrame.Angles(math.rad(180+math.random(-45, 45)*i), 0, -math.rad(math.random(-45, 45)*i)))
153
				animate.LegLeft(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(15)))
154
				animate.LegRight(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, math.rad(15)))
155
			end
156
			dancing=false
157
		elseif dance>=5 and dance<10 and dancing==false then print(dance)
158
			dancing=true
159
			if startpos==false then
160
				startpos=true
161
				game:GetService("Chat"):Chat(head, "EH SEXY LADY!", "Blue")
162
				for i=0, 1, .1 do wait()
163
					animate.Head(CFrame.Angles(math.rad(15), 0, 0))
164
					animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
165
					animate.ArmLeft(CFrame.new(.2*i, 0, 0)*CFrame.Angles(0, 0, math.rad(15)*i))
166
					animate.ArmRight(CFrame.new(-.2*i, 0, 0)*CFrame.Angles(0, 0, -math.rad(15)*i))
167
				end
168
			end
169
			for i=0, 1, .2 do wait()
170
				torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2
171
				animate.Head(CFrame.Angles(math.rad(15), 0, 0))
172
				animate.Torso(CFrame.Angles(0, -math.rad(90), math.rad(-5+10*i)))
173
				animate.LegLeft(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, -math.rad(15)))
174
				animate.LegRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, math.rad(15)))
175
			end
176
			for i=0, 1, .2 do wait()
177
				torso.CFrame=torso.CFrame+torso.CFrame.lookVector*.2
178
				animate.Head(CFrame.Angles(math.rad(15), 0, 0))
179
				animate.Torso(CFrame.Angles(0, -math.rad(90), math.rad(5-10*i)))
180
				animate.LegLeft(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(15)))
181
				animate.LegRight(CFrame.new(0, .5-(.5*i), 0)*CFrame.Angles(0, 0, math.rad(15)))
182
			end
183
			dancing=false
184
		elseif dance<=10 then
185
			dance=0
186
			lyrics=0
187
		end
188
	end
189
end)
190
bin.Deselected:connect(function() onDancing=false body.Torso.Transparency=1 removeParts() torso.Transparency=0 end)