View difference between Paste ID: 4djBbWjy and A5ZsMSxW
SHOW: | | - or go back to the newest paste.
1
------------------------------------------------------------------------------
2
3-
me = game.Players.DarknessIsFallingLol
3+
me = game.Players.Imtannerbanner56
4
5
h = Instance.new("HopperBin",me.Backpack)
6
7
h.Name = "Batman"
8
9
script.Parent = h
10
11
12
13
bin = script.Parent
14
15
hold = false
16
17
18
19
deb = false
20
21
22
23
torso = me.Character.Torso
24
25
rarm = torso["Right Shoulder"]
26
27
larm = torso["Left Shoulder"]
28
29
leftnorm = larm.C0
30
31
rightnorm = rarm.C0
32
33
34
35
part = Instance.new("Part",me.Character)
36
37
part.Size = Vector3.new(1,1,1)
38
39
part.Position = Vector3.new(0,10,0)
40
41
part.CanCollide = false
42
43
part.Transparency = 1
44
45
46
47
weld = Instance.new("Weld",torso)
48
49
weld.Part0 = torso
50
51
weld.Part1 = part
52
53
weld.C1 = CFrame.fromEulerAnglesXYZ(-1.57,0,0) * CFrame.new(0,0,0)
54
55
56
57
wings = part:clone()
58
59
wings.Parent = me.Character
60
61
wings.Transparency = 0
62
63
64
65
mesh = Instance.new("SpecialMesh",wings)
66
67
mesh.MeshType = "FileMesh"
68
69
mesh.MeshId = "http://www.roblox.com/asset/?id=19367744"
70
71
mesh.TextureId = "http://www.roblox.com/asset/?id=19367734"
72
73
mesh.Scale = Vector3.new(2,2,2)
74
75
76
77
w2 = Instance.new("Weld",torso)
78
79
w2.Part0 = w2.Parent
80
81
w2.Part1 = wings
82
83
w2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.2,-2)
84
85
86
87
brick = part:clone()
88
89
brick.Parent = me.Character
90
91
92
93
wah = Instance.new("Weld",torso)
94
95
wah.Part0 = torso
96
97
wah.Part1 = brick
98
99
wah.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-1.2,-0.5,0)
100
101
102
103
rw = Instance.new("Weld",brick)
104
105
rw.Part0 = nil
106
107
rw.Part1 = nil
108
109
rw.C1 = CFrame.fromEulerAnglesXYZ(-0.6,-0.1,-0.2) * CFrame.new(0,0.5,0.3)
110
111
112
113
star = Instance.new("Part",game.Lighting)
114
115
star.formFactor = "Plate"
116
117
star.Size = Vector3.new(1,0.4,1)
118
119
star.CanCollide = false
120
121
star:BreakJoints()
122
123
124
125
starmesh = Instance.new("SpecialMesh",star)
126
127
starmesh.MeshType = "FileMesh"
128
129
starmesh.MeshId = "http://www.roblox.com/asset/?id=11376946"
130
131
starmesh.TextureId = "http://www.roblox.com/asset/?id=11376931"
132
133
starmesh.Scale = Vector3.new(3,3,3)
134
135
136
137
speed = 0
138
139
maxspeed = 100
140
141
142
143
bin.Selected:connect(function(mouse)
144
145
	speed = 0
146
147
	rw.Part0 = brick
148
149
	rw.Part1 = me.Character["Right Arm"]
150
151
	star.Parent = me.Character
152
153
	wepweld = Instance.new("Weld",me.Character["Right Arm"])
154
155
	wepweld.Part0 = wepweld.Parent
156
157
	wepweld.Part1 = star
158
159
	wepweld.C1 = CFrame.fromEulerAnglesXYZ(1.57,1,0) * CFrame.new(0,1.4,0)
160
161
	mouse.Button1Down:connect(function()
162
163
		if deb then return end
164
165
		deb = true
166
167
		hold = true
168
169
		me.Character.Humanoid.PlatformStand = true
170
171
		bg = Instance.new("BodyGyro",part)
172
173
		bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
174
175
		bv = Instance.new("BodyVelocity",part)
176
177
		bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
178
179
		bg.cframe = CFrame.new(part.Position, mouse.Hit.p)
180
181
		bv.velocity = part.CFrame.lookVector * speed
182
183
		while hold do
184
185
			wait()
186
187
			speed = speed + 2
188
189
			if speed >= maxspeed then
190
191
				speed = maxspeed
192
193
			end
194
195
			bg.cframe = CFrame.new(part.Position, mouse.Hit.p) 
196
197
			bv.velocity = part.CFrame.lookVector * speed
198
199
		end
200
201
	end)
202
203
	mouse.Button1Up:connect(function()
204
205
		hold = false
206
207
		me.Character.Humanoid.PlatformStand = false
208
209
		for i = speed, 0, -8 do
210
211
			wait()
212
213
			speed = i
214
215
			bv.velocity = part.CFrame.lookVector * speed
216
217
		end
218
219
		bg:remove()
220
221
		bv:remove()
222
223
		deb = false
224
225
	end)
226
227
	mouse.KeyDown:connect(function(key)
228
229
		key = key:lower()
230
231
		if key == "q" then
232
233
			local bav = Instance.new("BodyAngularVelocity",torso)
234
235
			bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
236
237
			bav.angularvelocity = torso.CFrame.lookVector * -10
238
239
			wait(0.6)
240
241
			bav:remove()
242
243
		elseif key == "e" then
244
245
			local bav = Instance.new("BodyAngularVelocity",torso)
246
247
			bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
248
249
			bav.angularvelocity = torso.CFrame.lookVector * 10
250
251
			wait(0.6)
252
253
			bav:remove()
254
255
		elseif key == "f" then
256
257
			for i=1, 4 do
258
259
				rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.1,0.05,-0.3)
260
261
				wait()
262
263
			end
264
265
			for i=1, 3 do
266
267
				rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.1,0.4)
268
269
				wait()
270
271
			end
272
273
			local throw = star:clone()
274
275
			throw.Parent = workspace
276
277
			throw.CanCollide = true
278
279
			throw.CFrame = star.CFrame * CFrame.new(0,0,-2)
280
281
			throw.CFrame = CFrame.new(throw.Position, mouse.Hit.p)
282
283
			throw.Velocity = throw.CFrame.lookVector * 230
284
285
			for i=1, 3 do
286
287
				rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.1,0.4)
288
289
				wait()
290
291
			end
292
293
			for i=1, 4 do
294
295
				rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.1,-0.3)
296
297
				wait()
298
299
			end
300
301
			rw.C0 = CFrame.new(0,0,0)
302
303
		end
304
305
	end)
306
307
end)
308
309
310
311
bin.Deselected:connect(function()
312
313
	rw.Part0 = nil
314
315
	rw.Part1 = nil
316
317
	star.Parent = game.Lighting
318
319
	speed = 0
320
321
end)