View difference between Paste ID: 2jAM4YRF and 06xTqtKs
SHOW: | | - or go back to the newest paste.
1
-- Script made by M8Bat
2
local player = game:GetService('Players').LocalPlayer
3
local char = player.Character
4
local mouse = player:GetMouse()
5
local T = false
6
local E = false
7
8
function Transform(inputObject, gameProcessedEvent)
9
	if inputObject.KeyCode == Enum.KeyCode.Q then
10
		if T == false then
11
		T = true
12
13
14
15
	
16
		--bem from above
17
		
18
	-- Transformation Lights	
19
		
20
		
21
		
22
		--Shirt/pant removed
23
			if char:FindFirstChild('Shirt') then
24
			char.Shirt:Destroy()
25
		end
26
	
27
		if char:FindFirstChild('Pants') then
28
			char.Pants:Destroy()
29
		end
30
	--
31
	
32
	
33
	
34
	
35
		
36
		
37
		
38
		
39
		--Material
40
		char:FindFirstChild('Head').Material = 'Neon'
41
		char:FindFirstChild('Torso').Material = 'Neon'
42
		char:FindFirstChild('Left Arm').Material = 'Neon'
43
		char:FindFirstChild('Left Leg').Material = 'Neon'
44
		char:FindFirstChild('Right Arm').Material = 'Neon'
45
		char:FindFirstChild('Right Leg').Material = 'Neon'
46
		
47
		--Char custom
48
		char.Head.Transparency = 1
49
		char.Head:FindFirstChild('face'):Destroy()
50
		local d = char:GetChildren()
51
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
52
		char.Humanoid.MaxHealth = math.huge * math.huge
53
		
54
		
55
			for i=1, #d do 
56
		if (d[i].className == "Accessory") then 
57
			d[i]:remove() 
58
		end 
59
		end
60
61
	
62
		--Colours
63
		local bodyc = char:FindFirstChild('Body Colors')
64
		bodyc.HeadColor = BrickColor.new('Institutional white')
65
		bodyc.TorsoColor = BrickColor.new('Institutional white')
66
		bodyc.LeftArmColor = BrickColor.new('Institutional white')
67
		bodyc.LeftLegColor = BrickColor.new('Institutional white')
68
		bodyc.RightArmColor = BrickColor.new('Institutional white')
69
		bodyc.RightLegColor = BrickColor.new('Institutional white')
70
	
71
		E = true
72
	
73
		end
74
75
	end	
76
	
77
	
78
	
79
	
80
	--Attack 1 Ray of light
81
	
82
	
83
	
84
	if inputObject.KeyCode == Enum.KeyCode.E then
85
		if E == true then
86
		if mouse.Target~= nil then
87
		local ray = Ray.new(char.Torso.CFrame.p, (mouse.Hit.p - char.Torso.CFrame.p).unit * 300)
88
		local part, position = workspace:FindPartOnRay(ray, player.Character, false, true)
89
 
90
		local beam = Instance.new("Part", workspace)
91
		beam.BrickColor = BrickColor.new("Institutional white")
92
		beam.FormFactor = "Custom"
93
		beam.Material = "Neon"
94
		beam.Transparency = 0
95
		beam.Anchored = true
96
		beam.Locked = true
97
		beam.CanCollide = false
98
 		beam.Name = 'b9'
99
		local distance = (char.Torso.CFrame.p - position).magnitude
100
		beam.Size = Vector3.new(3, 3, distance)
101
	mouse.Target.Anchored = true
102
	if mouse.Target.Name ~= 'Base' then
103
	print(mouse.Target.Name)
104
	mouse.Target:Destroy()
105
end	
106
	
107
108
109
110
	
111
		local ray = Ray.new(char.Torso.CFrame.p, (mouse.Hit.p - (char.Torso.CFrame.p).unit * 300))
112
		local distance = (char.Torso.CFrame.p - position).magnitude
113
		beam.Size = Vector3.new(.3, .3, distance)
114
		beam.CFrame = CFrame.new(char.Torso.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
115
		wait(.02)
116
		if game.Workspace:FindFirstChild('b9') then
117
		game.Workspace.b9:Destroy()
118
		end
119
 
120
121
122
123
			end
124
		end
125
	end
126
127
128
129
local combat1 = false
130
	if inputObject.KeyCode == Enum.KeyCode.R then
131
	if E == true then
132
	if mouse.Target.Parent:FindFirstChild('Humanoid')then
133
	if combat1 == false then
134
		combat1 = true
135
		
136
		local bem3 = Instance.new('Part')
137
		local target = mouse.Target.Parent
138
		bem3.Parent = game.Workspace
139
	
140
		char.Torso.CFrame = CFrame.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z + 5)
141
	
142
		target.Torso.Anchored =true	
143
	
144
	
145
	
146
	
147
		bem3.Size = Vector3.new(7,7,7)
148
		bem3.Anchored = true
149
		bem3.CanCollide = false
150
		bem3.Position= Vector3.new(0,10,0)
151
		bem3.Material = 'Neon'
152
		bem3.BrickColor =BrickColor.White()
153
		
154
		
155
		bem3.Position= Vector3.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z)
156
157
			for i = 1, 10 do
158
159
			bem3.Size = bem3.Size*1.1
160
			wait(0.01)
161
			end
162
			for i = 1, 10 do
163
			bem3.Size = bem3.Size+ Vector3.new(0.1,0.1,0.1)
164
			bem3.Transparency = bem3.Transparency + 0.1
165
			wait(0.02)
166
			end
167
			bem3:Destroy()
168
		
169
			target.Torso.CFrame = CFrame.new(40,50,30)	
170
		--Attack 2
171
		local bem4 = Instance.new('Part')
172
	
173
		bem4.Parent = game.Workspace
174
	
175
		bem4.Size = Vector3.new(7,7,7)
176
		bem4.Anchored = true
177
		bem4.CanCollide = false
178
		bem4.Position= Vector3.new(0,10,0)
179
		bem4.Material = 'Neon'
180
		bem4.BrickColor =BrickColor.White()
181
		
182
		
183
		bem4.Position= Vector3.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z)
184
185
			for i = 1, 10 do
186
187
			bem4.Size = bem4.Size*1.1
188
			wait(0.01)
189
			end
190
			for i = 1, 10 do
191
			bem4.Size = bem4.Size+ Vector3.new(0.1,0.1,0.1)
192
			bem4.Transparency = bem4.Transparency + 0.1
193
			wait(0.02)
194
			end	
195
			
196
			target.Torso.CFrame = CFrame.new(target.Torso.Position.X + 20,target.Torso.Position.Y + 10,target.Torso.Position.Z + 90)	
197
			
198
		--Attack 3
199
		local bem5 = Instance.new('Part')
200
	
201
		bem5.Parent = game.Workspace
202
	
203
		bem5.Size = Vector3.new(7,7,7)
204
		bem5.Anchored = true
205
		bem5.CanCollide = false
206
		bem5.Position= Vector3.new(0,10,0)
207
		bem5.Material = 'Neon'
208
		bem5.BrickColor =BrickColor.White()
209
		
210
		
211
		bem5.Position= Vector3.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z)
212
213
			for i = 1, 10 do
214
215
			bem5.Size = bem5.Size*1.1
216
			wait(0.01)
217
			end
218
			for i = 1, 10 do
219
			bem5.Size = bem5.Size+ Vector3.new(0.1,0.1,0.1)
220
			bem5.Transparency = bem5.Transparency + 0.1
221
			wait(0.02)
222
			end	
223
			
224
			target.Torso.CFrame = CFrame.new(target.Torso.Position.X + 90,target.Torso.Position.Y + 50,target.Torso.Position.Z - 60)
225
			
226
			
227
			-- Attack 4
228
			local bem6 = Instance.new('Part')
229
			--script made by M8bat
230
		bem6.Parent = game.Workspace
231
	
232
		bem6.Size = Vector3.new(7,7,7)
233
		bem6.Anchored = true
234
		bem6.CanCollide = false
235
		bem6.Position= Vector3.new(0,10,0)
236
		bem6.Material = 'Neon'
237
		bem6.BrickColor =BrickColor.White()
238
		
239
		
240
		bem6.Position= Vector3.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z)
241
242
			for i = 1, 10 do
243
244
			bem6.Size = bem6.Size*1.1
245
			wait(0.01)
246
			end
247
			for i = 1, 10 do
248
			bem6.Size = bem6.Size+ Vector3.new(0.1,0.1,0.1)
249
			bem6.Transparency = bem6.Transparency + 0.1
250
			wait(0.02)
251
			end	
252
			
253
			target.Torso.CFrame = CFrame.new(target.Torso.Position.X + 90,target.Torso.Position.Y + 50,target.Torso.Position.Z - 60)
254
			
255
			--Attack 5
256
		local bem7 = Instance.new('Part')
257
	
258
		bem7.Parent = game.Workspace
259
	
260
		bem7.Size = Vector3.new(7,7,7)
261
		bem7.Anchored = true
262
		bem7.CanCollide = false
263
		bem7.Position= Vector3.new(0,10,0)
264
		bem7.Material = 'Neon'
265
		bem7.BrickColor =BrickColor.White()
266
		
267
		
268
		bem7.Position= Vector3.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z)
269
270
			for i = 1, 10 do
271
		--script made by M8bat
272
			bem7.Size = bem7.Size*1.1
273
			wait(0.01)
274
			end
275
			for i = 1, 10 do
276
			bem7.Size = bem7.Size+ Vector3.new(0.1,0.1,0.1)
277
			bem7.Transparency = bem7.Transparency + 0.1
278
			wait(0.02)
279
			end	
280
				--script made by M8bat
281
			target.Torso.CFrame = CFrame.new(15,char.Torso.Position.Y + 10,15)
282
			
283
			bem3:Destroy()
284
			bem4:Destroy()
285
			bem5:Destroy()
286
			bem6:Destroy()
287
			bem7:Destroy()
288
			
289
			
290
			
291
		-- FINISHER	
292
			
293
		local bem8 = Instance.new('Part')
294
	
295
		bem8.Parent = game.Workspace
296
		--script made by M8bat
297
		bem8.Size = Vector3.new(7,7,7)
298
		bem8.Anchored = true
299
		bem8.CanCollide = false
300
		bem8.Position= Vector3.new(0,10,0)
301
		bem8.Material = 'Neon'
302
		bem8.BrickColor =BrickColor.White()
303
		
304
		
305
		bem8.Position= Vector3.new(target.Torso.Position.X,char.Torso.Position.Y,target.Torso.Position.Z)
306
		for i = 1, 10 do
307
	--script made by M8bat
308
			bem8.Size = bem8.Size*1.3
309
			wait(0.01)
310
			end
311
			for i = 1, 10 do
312
			bem8.Size = bem8.Size+ Vector3.new(0.1,0.1,0.1)
313
			bem8.Transparency = bem8.Transparency + 0.1
314
			wait(0.02)
315
			end	
316
	
317
			--script made by M8bat
318
		target:FindFirstChild('Head'):Destroy()
319
		target:FindFirstChild('Humanoid').Health =  target:FindFirstChild('Humanoid').Health - target:FindFirstChild('Humanoid').Health
320
		char.Torso.Anchored = false
321
		target.Torso.Anchored = false
322
	end
323
	end
324
	end
325
	end
326
end
327
 
328
329
330
331
local e = false
332
mouse.Button1Down:connect(function()
333
	if E==true then
334
	
335
	if e == false then
336
		e = true
337
	bem = Instance.new('Part', game.Workspace)
338
	--script made by M8bat
339
	bem.Name = 'bem'
340
	bem.Anchored = true
341
	bem.CanCollide = false
342
	bem.Material = 'Neon'
343
	bem.BottomSurface = 'Smooth'
344
	bem.TopSurface = 'Smooth'
345
	bem.Size = Vector3.new(1,1,1)
346
	bem.Velocity = Vector3.new(0,math.huge,math.huge)
347
	
348
 		--script made by M8bat
349
		bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5)
350
		bem.Touched:connect(function(otherPart)
351
		otherPart:Destroy()
352
	end)
353
354
	for i =1,10 do
355
		bem.Size = bem.Size + Vector3.new(1,1,4)
356
		bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5 - bem.Size.Z/2)
357
	bem.Touched:connect(function(otherPart)
358
		otherPart:Destroy()
359
	end)
360
		wait()
361
	end
362
	for i = 1,100 do
363
		bem.Size = bem.Size + Vector3.new(0,0,4)
364
		bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5 - bem.Size.Z/2) 
365
		bem.Touched:connect(function(otherPart)
366
		otherPart:Destroy()
367
	end)
368
		
369
		wait()
370
	end
371
		laser = true
372
		while laser == true do
373
		bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5 - bem.Size.Z/2)
374
		wait()	
375
		end
376
		--script made by M8bat
377
	end
378
	bem.Touched:connect(function(otherPart)
379
		otherPart:Destroy()
380
	end)
381
end
382
end)
383
384
385
mouse.Button1Up:connect(function()
386
	if E==true then
387
		laser = false
388
	for i = 1,10 do
389
		bem.Size = bem.Size - Vector3.new(bem.Size.X/10,bem.Size.Y/10,0)
390
		bem.Transparency = bem.Transparency + 0.1
391
		bem.Touched:connect(function(otherPart)
392
		otherPart:Destroy()
393
	end)
394
		wait()
395
396
	end
397
	laser = false
398
	bem:Destroy()
399
e = false
400
401
	end
402
end)
403
404
405
406
game:GetService("UserInputService").InputBegan:connect(Transform)