View difference between Paste ID: EGqEH1N9 and CGPWBjg6
SHOW: | | - or go back to the newest paste.
1
local Plr = game.Players.LocalPlayer
2
local Char =  Plr.Character
3
local Cam = game.Workspace.CurrentCamera
4
local Run = game:GetService('RunService')
5
local Path = nil
6
local Cv = false
7-
local visenable = false
7+
local Clr = 'Lime green'
8-
local Clr = 'Really red'
8+
9-
local TBox = nil
9+
local Songs = {161967422,146651067,176255971,155188958,187197902}
10
local ID = 000000
11-
local Songs = {142404192,178043049,180440170,180442904,180466429}
11+
12
function Armor(Part,Size,Color,Val,VColor)
13
	
14-
local mr = math.rad
14+
15-
Char.HumanoidRootPart.RootJoint.C0 = CFrame.new(mr(-1.56),mr(-.3),mr(1.5))
15+
16-
Char.Humanoid.WalkSpeed = -16
16+
17
	P.BrickColor =  BrickColor.new(Color)
18
	P.Parent = Char
19
	P.FormFactor = 'Custom'
20
	P.Anchored = false
21
	P.Size = Size
22
	P.BottomSurface = 'Smooth'
23
	P.TopSurface = 'Smooth'
24
	P.Locked = true
25
	Path = P
26
	
27
	if Val then
28
		local Box = Instance.new('SelectionBox',P)
29
		Box.Adornee = P
30
		Box.Color = BrickColor.new(VColor)
31
		Box.Transparency = .5
32
	end
33
	
34
	local Weld = Instance.new('Weld')
35
	Weld.Parent = P
36
	Weld.Part0 = Part
37
	Weld.Part1 = P
38-
		TBox = Box
38+
39
40
Plr:GetMouse().KeyDown:connect(function(key)
41
	if key == 'm' then
42
		ID = nil
43
		ID = Songs[math.random(1,#Songs)]
44
		for _,v in pairs(Plr.Character.Head:GetChildren()) do
45
			if v.ClassName == 'Sound' then
46
				v.Looped=false
47
				v.PlayOnRemove=false
48
				v:Pause()
49
				wait()
50
				v:remove()
51
			end
52
		end
53
		local S=Instance.new('Sound',Plr.Character.Head)
54
		S.Volume=1
55
		S.SoundId='rbxassetid://'..ID
56
		wait()
57
		Chat('Now playing '..game:GetService("MarketplaceService"):GetProductInfo(ID)['Name'])
58
		S:Play()
59
	elseif key == 'n' then
60
		for _,v in pairs(Plr.Character.Head:GetChildren()) do
61
			if v.ClassName == 'Sound' then
62
				v.Looped=false
63
				v.PlayOnRemove=false
64
				v:Pause()
65
				wait()
66
				v:remove()
67
			end
68
		end
69
	elseif key == 'v' then
70
		for _,v in pairs(Plr.Character:GetChildren()) do
71
			if v.ClassName == 'Part' and v.Transparency==0 then
72
				v.Transparency=1
73
				Char.Humanoid.WalkSpeed=50
74
			elseif v.ClassName == 'Part' and v.Transparency==1 then
75
				v.Transparency=0
76
				Char.Humanoid.WalkSpeed=16
77-
		TBox.Transparency = 0
77+
			else
78
			end
79-
			if v.ClassName == 'Part'  then
79+
80-
				spawn(function()
80+
81-
					for i = 0,1,.1 do
81+
82-
						v.Transparency = v.Transparency + .1
82+
83-
						TBox.Transparency = TBox.Transparency + .1
83+
84-
						Plr.Character.Humanoid.WalkSpeed = Plr.Character.Humanoid.WalkSpeed + 1
84+
85-
						Plr.Character.Head.face.Transparency = Plr.Character.Head.face.Transparency + .1
85+
86-
						wait()
86+
87
			v.PlayOnRemove=false
88-
				end)
88+
89
			wait()
90
			v:remove()
91-
	elseif key == "b" then
91+
92-
		TBox.Transparency = 1
92+
93
end)
94-
			if v.ClassName == 'Part'  then
94+
95-
				spawn(function()
95+
96-
					for i = 0,1,.1 do
96+
97-
						v.Transparency = v.Transparency - .1
97+
98-
						TBox.Transparency = TBox.Transparency - .1
98+
99-
						Plr.Character.Humanoid.WalkSpeed = Plr.Character.Humanoid.WalkSpeed - 1
99+
100-
						Plr.Character.Head.face.Transparency = Plr.Character.Head.face.Transparency - 1
100+
101-
						wait()
101+
102
	Frame.BackgroundTransparency = 1
103-
				end)
103+
104
	local Txt = Instance.new('TextLabel',Frame)
105
	Txt.BackgroundTransparency = 1
106
	Txt.Size = UDim2.new(1,0,1,0)
107-
	Plr.Character.Humanoid.WalkSpeed=16
107+
108
	Txt.FontSize = 'Size24'
109
	Txt.Text = ''
110
	Txt.TextColor3 = Color3.new(255/255,255/255,255/255)
111
	Txt.TextStrokeColor3 = Color3.new(0/255,0/255,0/255)
112
	Txt.TextStrokeTransparency = .5
113
	Txt.TextWrapped = true
114
	Txt.TextScaled = false
115
	delay(wait(),function()
116
		for v = 1, #msg do
117
			Txt.Text=string.sub(msg,1,v)
118
			wait(.07)
119
		end;
120
		wait(1)
121
		for v = 1, #Txt.Text do
122
			Txt.Text=string.sub(msg,-1,v)
123
			wait(.05)
124
		end;
125
		Gui:remove()
126
	end)
127
	end)
128
	else
129
	end
130
end
131
132
Plr.Chatted:connect(function(msg)
133
	Chat(msg)
134
end)
135
136
function SetHeadPos()
137
local run,error = ypcall(function()
138
	local Weld = Instance.new("Weld")
139
	Weld.Part0 = Char.Torso
140
	Weld.Part1 = Char["Head"]
141
	Weld.C0 = CFrame.new(0, 1.4, 0)
142
	Weld.Parent = Weld.Part0
143
	
144
	pcall(function()
145
		for _,v in pairs(Char.Head:GetChildren()) do
146
			if v.ClassName=='SpecialMesh' then
147
				v:remove()
148
			end
149
		end
150
	end)
151
		
152
	if Char:findFirstChild('Head') then
153
		pcall(function()
154
			for _,v in pairs(Char:GetChildren()) do
155
				if v.ClassName == 'Hat' or v.ClassName == 'SpecialMesh' then
156
					v:remove()
157
				end
158
			end
159
			local jointPosition = Weld.Part0.CFrame:toWorldSpace(CFrame.new(0, 1.5, 0))
160
			local cframe = CFrame.new(jointPosition.p,Plr:GetMouse().Hit.p)
161
			Weld.C0 = Weld.Part0.CFrame:toObjectSpace(cframe)
162
		end)
163
	end
164
end)
165
if not run then end
166
end
167
168
Run.Heartbeat:connect(SetHeadPos)
169
170
wait() -- Black armor--
171
Armor(Char['Right Arm'],Vector3.new(1.1,2.1,1.1),'Really blue',false,Clr)
172
Armor(Char['Left Arm'],Vector3.new(1.1,2.1,1.1),'Really red',false,Clr)
173
Armor(Char['Torso'],Vector3.new(2.01,2.01,1.01),'Really blue',true,Clr)
174
Armor(Char['Head'],Vector3.new(1.5,1.5,1.5),'Really red',false,Clr)
175
Armor(Char['Right Leg'],Vector3.new(1.1,2.1,1.1),'Really blue',false,Clr)
176
Armor(Char['Left Leg'],Vector3.new(1.1,2.1,1.1),'Really red',false,Clr)
177
178
179
-- Tool --
180
local T=Instance.new('HopperBin',Plr.Backpack)
181
T.Name='Boom'
182
183
T.Selected:connect(function(MSE)
184
	MSE.Button1Down:connect(function()
185
		
186
		local Bullet = nil
187
		local Client = MSE.Target.Position
188
		
189
		if Client == nil then return end
190
		
191
		local P=Instance.new('Part',workspace)
192
		P.Transparency=1
193
		P.Name='Bullet'
194
		P.Anchored=false
195
		P.Position=Vector3.new(Plr.Character['Right Arm'].Position.X, Plr.Character['Right Arm'].Position.Y, Plr.Character['Right Arm'].Position.Z)
196
		P.CanCollide=true
197
		P.Locked=true
198-
Armor(Char['Right Arm'],Vector3.new(1.1,2.1,1.1),'Really black',false,Clr)
198+
199-
Armor(Char['Left Arm'],Vector3.new(1.1,2.1,1.1),'Really black',false,Clr)
199+
200-
Armor(Char['Torso'],Vector3.new(2.01,2.01,1.01),'Really black',true,Clr)
200+
201-
Armor(Char['Head'],Vector3.new(1.5,1.5,1.5),'Really black',false,Clr)
201+
202-
Armor(Char['Right Leg'],Vector3.new(1.1,2.1,1.1),'Really black',false,Clr)
202+
203-
Armor(Char['Left Leg'],Vector3.new(1.1,2.1,1.1),'Really black',false,Clr)
203+
204
		Box.Adornee=P
205
		Box.Color=BrickColor.new('Teal')
206
		Box.Transparency=.5
207
		
208
		P.Touched:connect(function(part)
209
			Box.Transparency=1
210
			P.Transparency=1
211
			
212
			local function asd()
213
				coroutine.resume(coroutine.create(function()
214
				local PA=Instance.new('Part',workspace)
215
				PA.Transparency=1
216
				local Box2=Instance.new('SelectionBox',PA)
217
				Box2.Adornee=PA
218
				Box2.Color=BrickColor.new('Teal')
219
				Box2.Transparency=.1
220
				PA.Anchored=false
221
				PA.CanCollide=false
222
				PA.Locked=true
223
				PA.Name = 'Bullet_Explosion'
224
				PA.FormFactor='Custom'
225
				PA.Position=Vector3.new(part.Position.X,part.Position.Y,part.Position.Z)
226
				PA.Size=Vector3.new(math.random(1,8.5),math.random(1,8.5),math.random(1,8.5))
227
				PA.Rotation=Vector3.new(math.random(1.5,275),math.random(1.5,215),math.random(1.5,200))
228
	
229
				Bullet = PA
230
	
231
				if part.ClassName == 'Humanoid' then
232
					part.Health:TakeDamage(5)
233
				end
234
	
235-
		P.Touched:connect(function(objp)
235+
236-
			objp.Anchored=true
236+
237-
			wait(.3)
237+
238-
			objp.Anchored=false
238+
239
				end)	
240
	
241
				local S=Instance.new('Sound',PA)
242
				S.Volume=1
243
				S.SoundId='rbxassetid://165969964'
244
				wait()
245
				S:Play()
246
				wait(S.TimeLength)
247
				S:Pause()
248
		
249
				end))
250
			end --function asd end
251
			
252
			for i = 0,4,1 do
253
				asd()
254
			end
255
			
256
			wait(math.random(.1,1))
257
			P:remove()
258
			Bullet:remove()
259
					
260
		end)
261
		
262
	end)
263
end)
264
--