View difference between Paste ID: 6bnF9JLP and aL89v9kr
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2-
player = game.Players.LocalPlayer
2+
3
4-
mouse = player:GetMouse()
4+
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
88
wait()
89
player = owner
90
char = player.Character
91
92
print("WHAT UP")
93
94
armed = false
95
canfire = false
96
enabled = true
97
equipped = false
98
99
mouse.Icon = "rbxassetid://311756275"
100
101
rightshoulder = char.Torso["Right Shoulder"]:Clone()
102
leftshoulder = char.Torso["Left Shoulder"]:Clone()
103
torso = char.HumanoidRootPart.RootJoint:Clone()
104
105
hed = Instance.new("Weld", char.Torso)
106
hed.Part0 = char.Torso
107
hed.Part1 = char.Head
108
hed.C0 = CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0)
109
110
-- the bow stuff
111
112
bow = Instance.new("Model")
113
bow.Parent = game.Workspace
114
bow.Name = "bow"
115
116
handle = Instance.new("Part")
117
handle.CFrame = CFrame.new(Vector3.new(-48.1999893, 2.79998732, -58.2000122)) * CFrame.Angles(-3.1415927410126, 0, -0)
118
handle.Size = Vector3.new(0.200000003, 1.20000005, 0.200000003)
119
handle.BrickColor = BrickColor.new("Pine Cone")
120
handle.Friction = 0.30000001192093
121
handle.Shape = Enum.PartType.Block
122
handle.Name = "Handle"
123
handle.Parent = bow
124
handle.CanCollide = false
125
126
leg2 = Instance.new("Part")
127
leg2.CFrame = CFrame.new(Vector3.new(-48.1999931, 1.25002313, -58.2000008)) * CFrame.Angles(-3.1415927410126, 0, -0)
128
leg2.Size = Vector3.new(0.200000003, 1.90000021, 0.200000003)
129
leg2.BrickColor = BrickColor.new("Pine Cone")
130
leg2.Friction = 0.30000001192093
131
leg2.Shape = Enum.PartType.Block
132
leg2.Name = "Leg2"
133
leg2.Parent = bow
134
leg2.CanCollide = false
135
136
cap2 = Instance.new("Part")
137
cap2.CFrame = CFrame.new(Vector3.new(-48.2000046, 0.300019979, -58.2000008)) * CFrame.Angles(1.5707963705063, 0, -0)
138
cap2.TopSurface = Enum.SurfaceType.Smooth
139
cap2.BottomSurface = Enum.SurfaceType.Smooth
140
cap2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
141
cap2.BrickColor = BrickColor.new("Pine Cone")
142
cap2.Friction = 0.30000001192093
143
cap2.Shape = Enum.PartType.Cylinder
144
cap2.Name = "Cap2"
145
cap2.Parent = bow
146
cap2.CanCollide = false
147
148
joint2 = Instance.new("Part")
149
joint2.CFrame = CFrame.new(Vector3.new(-48.1999893, 2.19999003, -58.2000237)) * CFrame.Angles(1.5707963705063, 0, -0)
150
joint2.TopSurface = Enum.SurfaceType.Smooth
151
joint2.BottomSurface = Enum.SurfaceType.Smooth
152
joint2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
153
joint2.BrickColor = BrickColor.new("Pine Cone")
154
joint2.Friction = 0.30000001192093
155
joint2.Shape = Enum.PartType.Cylinder
156
joint2.Name = "Joint2"
157
joint2.Parent = bow
158
joint2.CanCollide = false
159
160
joint1 = Instance.new("Part")
161
joint1.CFrame = CFrame.new(Vector3.new(-48.2000008, 3.39998126, -58.2000275)) * CFrame.Angles(1.5707963705063, 0, -0)
162
joint1.TopSurface = Enum.SurfaceType.Smooth
163
joint1.BottomSurface = Enum.SurfaceType.Smooth
164
joint1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
165
joint1.BrickColor = BrickColor.new("Pine Cone")
166
joint1.Friction = 0.30000001192093
167
joint1.Shape = Enum.PartType.Cylinder
168
joint1.Name = "Joint1"
169
joint1.Parent = bow
170
joint1.CanCollide = false
171
172
leg1 = Instance.new("Part")
173
leg1.CFrame = CFrame.new(Vector3.new(-48.1999931, 4.35000753, -58.2000122)) * CFrame.Angles(-3.1415927410126, 0, -0)
174
leg1.Size = Vector3.new(0.200000003, 1.90000021, 0.200000003)
175
leg1.BrickColor = BrickColor.new("Pine Cone")
176
leg1.Friction = 0.30000001192093
177
leg1.Shape = Enum.PartType.Block
178
leg1.Name = "Leg1"
179
leg1.Parent = bow
180
leg1.CanCollide = false
181
182
cap1 = Instance.new("Part")
183
cap1.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0)
184
cap1.TopSurface = Enum.SurfaceType.Smooth
185
cap1.BottomSurface = Enum.SurfaceType.Smooth
186
cap1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
187
cap1.BrickColor = BrickColor.new("Pine Cone")
188
cap1.Friction = 0.30000001192093
189
cap1.Shape = Enum.PartType.Cylinder
190
cap1.Name = "Cap1"
191
cap1.Parent = bow
192
cap1.CanCollide = false
193
194
stringpart = Instance.new("Part")
195
stringpart.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0)
196
stringpart.TopSurface = Enum.SurfaceType.Smooth
197
stringpart.BottomSurface = Enum.SurfaceType.Smooth
198
stringpart.Size = Vector3.new(0.1, 0.1, 0.1)
199
stringpart.Transparency = 1
200
stringpart.BrickColor = BrickColor.new("Mid grey")
201
stringpart.Friction = 0.30000001192093
202
stringpart.Shape = Enum.PartType.Cylinder
203
stringpart.Name = "StringAttachment"
204
stringpart.Parent = bow
205
stringpart.CanCollide = false
206
207
arrow = Instance.new("Model")
208
arrow.Parent = game.Workspace
209
arrow.Name = "arrow"
210
211
feather1 = Instance.new("WedgePart")
212
feather1.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.90000844, -56.1500168)) * CFrame.Angles(-0, 0, -0)
213
feather1.TopSurface = Enum.SurfaceType.Smooth
214
feather1.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
215
feather1.BrickColor = BrickColor.new("Crimson")
216
feather1.Friction = 0.30000001192093
217
feather1.Name = "Feather"
218
feather1.Parent = arrow
219
feather1.CanCollide = false
220
feather1.Transparency = 1
221
222
feather2 = Instance.new("WedgePart")
223
feather2.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.50003171, -56.1500168)) * CFrame.Angles(-0, 0, -3.1415927410126)
224
feather2.TopSurface = Enum.SurfaceType.Smooth
225
feather2.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
226
feather2.BrickColor = BrickColor.new("Crimson")
227
feather2.Friction = 0.30000001192093
228
feather2.Name = "Feather"
229
feather2.Parent = arrow
230
feather2.CanCollide = false
231
feather2.Transparency = 1
232
233
arrowhead = Instance.new("WedgePart")
234
arrowhead.CFrame = CFrame.new(Vector3.new(-48.2999992, 2.80002427, -59.4500008)) * CFrame.Angles(-0, 0, -0)
235
arrowhead.TopSurface = Enum.SurfaceType.Smooth
236
arrowhead.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
237
arrowhead.Friction = 0.30000001192093
238
arrowhead.Name = "Arrowhead"
239
arrowhead.Parent = arrow
240
arrowhead.CanCollide = false
241
arrowhead.Transparency = 1
242
243
arrowcap = Instance.new("Part")
244
arrowcap.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0)
245
arrowcap.TopSurface = Enum.SurfaceType.Smooth
246
arrowcap.BottomSurface = Enum.SurfaceType.Smooth
247
arrowcap.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
248
arrowcap.BrickColor = BrickColor.new("Dirt brown")
249
arrowcap.Friction = 0.30000001192093
250
arrowcap.Shape = Enum.PartType.Cylinder
251
arrowcap.Name = "ArrowCap"
252
arrowcap.Parent = arrow
253
arrowcap.CanCollide = false
254
arrowcap.Transparency = 1
255
256
arrowbody = Instance.new("Part")
257
arrowbody.CFrame = CFrame.new(Vector3.new(0, 3, 0)) * CFrame.Angles(-0, 0, -0)
258
arrowbody.Size = Vector3.new(0.200000003, 0.200000003, 3.60000014)
259
arrowbody.BrickColor = BrickColor.new("Dirt brown")
260
arrowbody.Friction = 0.30000001192093
261
arrowbody.Shape = Enum.PartType.Block
262
arrowbody.Name = "ArrowBody"
263
arrowbody.Parent = arrow
264
arrowbody.CanCollide = false
265
arrowbody.Transparency = 1
266
267
feather3 = Instance.new("WedgePart")
268
feather3.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.50004983, -55.9500198)) * CFrame.Angles(-0, 0, -3.1415927410126)
269
feather3.TopSurface = Enum.SurfaceType.Smooth
270
feather3.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
271
feather3.BrickColor = BrickColor.new("Crimson")
272
feather3.Friction = 0.30000001192093
273
feather3.Name = "Feather"
274
feather3.Parent = arrow
275
feather3.CanCollide = false
276
feather3.Transparency = 1
277
278
feather4 = Instance.new("WedgePart")
279
feather4.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.90003037, -55.9500198)) * CFrame.Angles(-0, 0, -0)
280
feather4.TopSurface = Enum.SurfaceType.Smooth
281
feather4.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
282
feather4.BrickColor = BrickColor.new("Crimson")
283
feather4.Friction = 0.30000001192093
284
feather4.Name = "Feather"
285
feather4.Parent = arrow
286
feather4.CanCollide = false
287
feather4.Transparency = 1
288
289
-- the welds
290
291
whandle = Instance.new("Weld", char["Left Arm"])
292
whandle.Part0 = char.Torso
293
whandle.Part1 = handle
294
whandle.C0 = CFrame.new(0, 0, 0.6) * CFrame.Angles(0, 0, math.rad(45))
295
296
wstringpart = Instance.new("Weld", handle)
297
wstringpart.Part0 = handle
298
wstringpart.Part1 = stringpart
299
wstringpart.C0 = CFrame.new(0, -0.3, -0.3) * CFrame.new(0, 0, 0)
300
301
wjoint1 = Instance.new("Weld", handle)
302
wjoint1.Part0 = handle
303
wjoint1.Part1 = joint1
304
wjoint1.C0 = CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0)
305
306
wjoint2 = Instance.new("Weld", handle)
307
wjoint2.Part0 = handle
308
wjoint2.Part1 = joint2
309
wjoint2.C0 = CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0)
310
311
wleg1 = Instance.new("Weld", joint1)
312
wleg1.Part0 = joint1
313
wleg1.Part1 = leg1
314
wleg1.C0 = CFrame.new(0, 0.95, 0) * CFrame.Angles(0, 0, 0)
315
316
wleg2 = Instance.new("Weld", joint2)
317
wleg2.Part0 = joint2
318
wleg2.Part1 = leg2
319
wleg2.C0 = CFrame.new(0, -0.95, 0) * CFrame.Angles(0, 0, 0)
320
321
wcap1 = Instance.new("Weld", leg1)
322
wcap1.Part0 = leg1
323
wcap1.Part1 = cap1
324
wcap1.C0 = CFrame.new(0, 0.95, 0) * CFrame.Angles(0, 0, 0)
325
326
wcap2 = Instance.new("Weld", leg2)
327
wcap2.Part0 = leg2
328
wcap2.Part1 = cap2
329
wcap2.C0 = CFrame.new(0, -0.95, 0) * CFrame.Angles(0, 0, 0)
330
331
cap1att = Instance.new("Attachment", cap1)
332
cap1att.Position = Vector3.new(0, 0, -0.05)
333
cap2att = Instance.new("Attachment", cap2)
334
cap2att.Position = Vector3.new(0, 0, -0.05)
335
stringatt = Instance.new("Attachment", stringpart)
336
stringp1 = Instance.new("RodConstraint", stringpart)
337
stringp1.Color = BrickColor.new("Mid grey")
338
stringp1.Visible = true
339
stringp1.Attachment0 = stringatt
340
stringp1.Attachment1 = cap1att
341
stringp2 = Instance.new("RodConstraint", stringpart)
342
stringp2.Color = BrickColor.new("Mid grey")
343
stringp2.Visible = true
344
stringp2.Attachment0 = stringatt
345
stringp2.Attachment1 = cap2att
346
347
warrowhead1 = Instance.new("Weld", arrowbody)
348
warrowhead1.Part0 = arrowbody
349
warrowhead1.Part1 = arrowhead
350
warrowhead1.C0 = CFrame.new(0, 0, -1.95)
351
352
wfeather1 = Instance.new("Weld", arrowbody)
353
wfeather1.Part0 = arrowbody
354
wfeather1.Part1 = feather1
355
wfeather1.C0 = CFrame.new(0, 0.2, 1.45)
356
357
wfeather2 = Instance.new("Weld", arrowbody)
358
wfeather2.Part0 = arrowbody
359
wfeather2.Part1 = feather2
360
wfeather2.C0 = CFrame.new(0, 0.2, 1.4)
361
362
wfeather3 = Instance.new("Weld", arrowbody)
363
wfeather3.Part0 = arrowbody
364
wfeather3.Part1 = feather3
365
wfeather3.C0 = CFrame.new(0, -0.2, 1.45) * CFrame.Angles(0, 0, 3.15)
366
367
wfeather4 = Instance.new("Weld", arrowbody)
368
wfeather4.Part0 = arrowbody
369
wfeather4.Part1 = feather4
370
wfeather4.C0 = CFrame.new(0, -0.2, 1.4) * CFrame.Angles(0, 0, 3.15)
371
372
warrow = Instance.new("Weld", char.Torso)
373
warrow.Part0 = char.Torso
374
warrow.Part1 = arrowbody
375
warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575)
376
377
warrowcap = Instance.new("Weld", arrowbody)
378
warrowcap.Part0 = arrowbody
379
warrowcap.Part1 = arrowcap
380
warrowcap.C0 = CFrame.new(0, 0, 1.8)
381
382
-- sounds
383
384
pullbacksound = Instance.new("Sound", handle)
385
pullbacksound.SoundId = "rbxassetid://609348868"
386
387
firesound = Instance.new("Sound", handle)
388
firesound.SoundId = "rbxassetid://609348009"
389
firesound.PlaybackSpeed = 1.05
390
391
function velocity(v)
392
	print("killvel")
393
	vel = coroutine.wrap(function()
394
		wait(0.05)
395
		v:Remove()
396
	end)
397
	vel()
398
end
399
400
function killz(playa,hitz,kneef)
401
	local heyy = hitz
402
	if hitz == "Right Arm" then
403
	local Limb = playa:FindFirstChild("Right Arm")
404
	local ters = playa:FindFirstChild('Torso')
405
		if Limb and ters then
406
			if ters:FindFirstChild('Right Shoulder') then ters["Right Shoulder"]:Destroy() end
407
			for i,v in pairs(Limb:GetChildren()) do
408
				if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
409
					v:Destroy()
410
				end
411
			end
412
			Limb.CFrame = ters.CFrame * CFrame.new(1.5, 0, 0)
413
			local Joint = Instance.new("Glue")
414
			Joint.Name = "RightShoulder"
415
			Joint.Part0 = ters
416
			Joint.Part1 = Limb
417
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
418
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
419
			Joint.Parent = ters
420
421
			local B = Instance.new("Part")
422
			B.TopSurface = 0
423
			B.BottomSurface = 0
424
			B.formFactor = "Symmetric"
425
			B.Size = Vector3.new(1, 1, 1)
426
			B.Transparency = 1
427
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
428
			B.Parent = playa
429
			local W = Instance.new("Weld")
430
			W.Part0 = Limb
431
			W.Part1 = B
432
			W.C0 = CFrame.new(0, -0.5, 0)
433
			W.Parent = Limb
434
			local coru = coroutine.wrap(function()
435
				local uno = Instance.new('Part',workspace)
436
				local dos = Instance.new('Part',workspace)
437
				uno.CFrame = playa:FindFirstChild(hitz).CFrame
438
				dos.CFrame = kneef.CFrame
439
				local weld = Instance.new('Weld',kneef)
440
				weld.Part0 = playa:FindFirstChild(hitz)
441
				weld.Part1 = kneef
442
				weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
443
				uno:Destroy()
444
				dos:Destroy()
445
			end)
446
			coru()
447
		end	
448
	elseif hitz == "Left Arm" then
449
		local Limb = playa:FindFirstChild("Left Arm")
450
	local ters = playa:FindFirstChild('Torso')
451
		if Limb and ters then
452
			if ters:FindFirstChild('Left Shoulder') then ters["Left Shoulder"]:Destroy() end
453
			for i,v in pairs(Limb:GetChildren()) do
454
				if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
455
					v:Destroy()
456
				end
457
			end
458
			Limb.CFrame = ters.CFrame * CFrame.new(-1.5, 0, 0)
459
			local Joint = Instance.new("Glue")
460
			Joint.Name = "LeftShoulder"
461
			Joint.Part0 = ters
462
			Joint.Part1 = Limb
463
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
464
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
465
			Joint.Parent = ters
466
467
			local B = Instance.new("Part")
468
			B.TopSurface = 0
469
			B.BottomSurface = 0
470
			B.formFactor = "Symmetric"
471
			B.Size = Vector3.new(1, 1, 1)
472
			B.Transparency = 1
473
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
474
			B.Parent = playa
475
			local W = Instance.new("Weld")
476
			W.Part0 = ters
477
			W.Part1 = B
478
			W.C0 = CFrame.new(0, -0.5, 0)
479
			W.Parent = Limb
480
			local coru = coroutine.wrap(function()
481
				local uno = Instance.new('Part',workspace)
482
				local dos = Instance.new('Part',workspace)
483
				uno.CFrame = playa:FindFirstChild(hitz).CFrame
484
				dos.CFrame = kneef.CFrame
485
				local weld = Instance.new('Weld',kneef)
486
				weld.Part0 = playa:FindFirstChild(hitz)
487
				weld.Part1 = kneef
488
				weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
489
				uno:Destroy()
490
				dos:Destroy()
491
			end)
492
			coru()
493
		end
494
	elseif hitz == "Right Leg" then
495
		local Limb = playa:FindFirstChild("Right Leg")
496
	local ters = playa:FindFirstChild('Torso')
497
		if Limb and ters then
498
			if ters:FindFirstChild('Right Hip') then ters["Right Hip"]:Destroy() end
499
			for i,v in pairs(Limb:GetChildren()) do
500
				if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
501
					v:Destroy()
502
				end
503
			end
504
		Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0)
505
			local Joint = Instance.new("Glue")
506
			Joint.Name = "Right Hip"
507
			Joint.Part0 = ters
508
			Joint.Part1 = Limb
509
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
510
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
511
			Joint.Parent = ters
512
			local B = Instance.new("Part")
513
			B.TopSurface = 0
514
			B.BottomSurface = 0
515
			B.formFactor = "Symmetric"
516
			B.Size = Vector3.new(1, 1, 1)
517
			B.Transparency = 1
518
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
519
			B.Parent = playa
520
			local W = Instance.new("Weld")
521
			W.Part0 = Limb
522
			W.Part1 = B
523
			W.C0 = CFrame.new(0, -0.5, 0)
524
			W.Parent = Limb
525
			local coru = coroutine.wrap(function()
526
				local uno = Instance.new('Part',workspace)
527
				local dos = Instance.new('Part',workspace)
528
				uno.CFrame = playa:FindFirstChild(hitz).CFrame
529
				dos.CFrame = kneef.CFrame
530
				local weld = Instance.new('Weld',kneef)
531
				weld.Part0 = playa:FindFirstChild(hitz)
532
				weld.Part1 = kneef
533
				weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
534
				uno:Destroy()
535
				dos:Destroy()
536
				if playa:FindFirstChild('HumanoidRootPart') then
537
			if playa.HumanoidRootPart:FindFirstChild('RootJoint') then
538
					playa.HumanoidRootPart:FindFirstChild('RootJoint'):Destroy()
539
					wait()
540
			end
541
			while playa.HumanoidRootPart:FindFirstChild('RootJoint') do 
542
						wait()
543
					end
544
			playa:FindFirstChild('HumanoidRootPart'):Destroy()
545
			end
546
			end)
547
			coru()
548
		end
549
	elseif hitz == "Left Leg" then
550
		local Limb = playa:FindFirstChild("Left Leg")
551
	local ters = playa:FindFirstChild('Torso')
552
		if Limb and ters then
553
			if ters:FindFirstChild('Left Hip') then ters["Left Hip"]:Destroy() end
554
			for i,v in pairs(Limb:GetChildren()) do
555
				if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
556
					v:Destroy()
557
				end
558
			end
559
		Limb.CFrame = ters.CFrame * CFrame.new(0.5, -2, 0)
560
			Limb.CFrame = ters.CFrame * CFrame.new(-0.5, -2, 0)
561
			local Joint = Instance.new("Glue")
562
			Joint.Name = "LeftHip"
563
			Joint.Part0 = ters
564
			Joint.Part1 = Limb
565
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
566
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
567
			Joint.Parent = ters
568
569
			local B = Instance.new("Part")
570
			B.TopSurface = 0
571
			B.BottomSurface = 0
572
			B.formFactor = "Symmetric"
573
			B.Size = Vector3.new(1, 1, 1)
574
			B.Transparency = 1
575
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
576
			B.Parent = playa
577
			local W = Instance.new("Weld")
578
			W.Part0 = Limb
579
			W.Part1 = B
580
			W.C0 = CFrame.new(0, -0.5, 0)
581
			W.Parent = Limb
582
			Limb.CanCollide = false
583
			local coru = coroutine.wrap(function()
584
				local uno = Instance.new('Part',workspace)
585
				local dos = Instance.new('Part',workspace)
586
				uno.CFrame = playa:FindFirstChild(hitz).CFrame
587
				dos.CFrame = kneef.CFrame
588
				local weld = Instance.new('Weld',kneef)
589
				weld.Part0 = playa:FindFirstChild(hitz)
590
				weld.Part1 = kneef
591
				weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
592
				uno:Destroy()
593
				dos:Destroy()
594
				if playa:FindFirstChild('HumanoidRootPart') then
595
			if playa.HumanoidRootPart:FindFirstChild('RootJoint') then
596
				playa.HumanoidRootPart:FindFirstChild('RootJoint'):Destroy()
597
			end
598
			while playa.HumanoidRootPart:FindFirstChild('RootJoint') do 
599
						wait()
600
					end
601
			playa:FindFirstChild('HumanoidRootPart'):Destroy()
602
			end
603
			end)
604
			coru()
605
		end
606
	else
607
		local playa2 = playa
608
		playa.Archivable = true
609
		local playa = playa:Clone()
610
		playa.Archivable = false
611
		playa2:Destroy()
612
		playa.Parent = workspace
613
		local Gibs = game.Workspace
614
		local Torso = playa.Torso
615
		local Head = playa:FindFirstChild("Head")
616
		local function Scan(ch)
617
		local e
618
		for e = 1,#ch do
619
			Scan(ch[e]:GetChildren())
620
			if (ch[e].ClassName == "Weld" and ch[e].Part1.Name ~= 'Projectile') or ch[e].ClassName == "Motor6D" then
621
				ch[e]:remove()
622
			end
623
		end
624
	end
625
	Scan(playa:GetChildren())
626
		if playa:FindFirstChild('HumanoidRootPart') then
627
			playa:FindFirstChild('HumanoidRootPart'):Destroy()
628
		end
629
		local hum2 = playa:FindFirstChildOfClass("Humanoid")
630
631
632
	if hum2 ~= nil then
633
		hum2.Name = "Humanoid2"
634
		hum2.PlatformStand = true
635
		hum2.Health = 0
636
	end
637
	local ch = playa:GetChildren()
638
	local i
639
	for i = 1,#ch do
640
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
641
			ch[i]:remove()
642
		end
643
	end
644
645
		if Head then
646
			local Neck = Instance.new("Weld")
647
			Neck.Name = "Neck"
648
			Neck.Part0 = Torso
649
			Neck.Part1 = Head
650
			Neck.C0 = CFrame.new(0, 1.5, 0)
651
			Neck.C1 = CFrame.new()
652
			Neck.Parent = Torso
653
		end
654
		local Limb = playa:FindFirstChild("Right Arm")
655
		if Limb then
656
657
			Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
658
			local Joint = Instance.new("Glue")
659
			Joint.Name = "RightShoulder"
660
			Joint.Part0 = Torso
661
			Joint.Part1 = Limb
662
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
663
			Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
664
			Joint.Parent = Torso
665
666
			local B = Instance.new("Part")
667
			B.TopSurface = 0
668
			B.BottomSurface = 0
669
			B.formFactor = "Symmetric"
670
			B.Size = Vector3.new(1, 1, 1)
671
			B.Transparency = 1
672
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
673
			B.Parent = playa
674
			local W = Instance.new("Weld")
675
			W.Part0 = Limb
676
			W.Part1 = B
677
			W.C0 = CFrame.new(0, -0.5, 0)
678
			W.Parent = Limb
679
		end
680
		local Limb = playa:FindFirstChild("Left Arm")
681
		if Limb then
682
683
			Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
684
			local Joint = Instance.new("Glue")
685
			Joint.Name = "LeftShoulder"
686
			Joint.Part0 = Torso
687
			Joint.Part1 = Limb
688
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
689
			Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
690
			Joint.Parent = Torso
691
692
			local B = Instance.new("Part")
693
			B.TopSurface = 0
694
			B.BottomSurface = 0
695
			B.formFactor = "Symmetric"
696
			B.Size = Vector3.new(1, 1, 1)
697
			B.Transparency = 1
698
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
699
			B.Parent = playa
700
			local W = Instance.new("Weld")
701
			W.Part0 = Limb
702
			W.Part1 = B
703
			W.C0 = CFrame.new(0, -0.5, 0)
704
			W.Parent = Limb
705
		end
706
		local Limb = playa:FindFirstChild("Right Leg")
707
		if Limb then
708
709
			Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
710
			local Joint = Instance.new("Glue")
711
			Joint.Name = "RightHip"
712
			Joint.Part0 = Torso
713
			Joint.Part1 = Limb
714
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
715
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
716
			Joint.Parent = Torso
717
718
			local B = Instance.new("Part")
719
			B.TopSurface = 0
720
			B.BottomSurface = 0
721
			B.formFactor = "Symmetric"
722
			B.Size = Vector3.new(1, 1, 1)
723
			B.Transparency = 1
724
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
725
			B.Parent = playa
726
			local W = Instance.new("Weld")
727
			W.Part0 = Limb
728
			W.Part1 = B
729
			W.C0 = CFrame.new(0, -0.5, 0)
730
			W.Parent = Limb
731
		end
732
		local Limb = playa:FindFirstChild("Left Leg")
733
		if Limb then
734
735
			Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
736
			local Joint = Instance.new("Glue")
737
			Joint.Name = "LeftHip"
738
			Joint.Part0 = Torso
739
			Joint.Part1 = Limb
740
			Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
741
			Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
742
			Joint.Parent = Torso
743
744
			local B = Instance.new("Part")
745
			B.TopSurface = 0
746
			B.BottomSurface = 0
747
			B.formFactor = "Symmetric"
748
			B.Size = Vector3.new(1, 1, 1)
749
			B.Transparency = 1
750
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
751
			B.Parent = playa
752
			local W = Instance.new("Weld")
753
			W.Part0 = Limb
754
			W.Part1 = B
755
			W.C0 = CFrame.new(0, -0.5, 0)
756
			W.Parent = Limb
757
		end
758
		--[
759
		local Bar = Instance.new("Part")
760
		Bar.TopSurface = 0
761
		Bar.BottomSurface = 0
762
		Bar.formFactor = "Symmetric"
763
		Bar.Size = Vector3.new(1, 1, 1)
764
		Bar.Transparency = 1
765
		Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
766
		Bar.Parent = playa
767
		local Weld = Instance.new("Weld")
768
		Weld.Part0 = Torso
769
		Weld.Part1 = Bar
770
		Weld.C0 = CFrame.new(0, 0.5, 0)
771
		Weld.Parent = Torso
772
		--]]
773
		playa.Parent = Gibs
774
		local coru = coroutine.wrap(function()
775
			print(hitz.Name)
776
				local uno = Instance.new('Part',workspace)
777
				local dos = Instance.new('Part',workspace)
778
				uno.CFrame = playa:FindFirstChild(heyy).CFrame
779
				dos.CFrame = kneef.CFrame
780
				local weld = Instance.new('Weld',kneef)
781
				weld.Part0 = playa:FindFirstChild(heyy)
782
				weld.Part1 = kneef
783
				weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
784
				uno:Destroy()
785
				dos:Destroy()
786
			end)
787
			coru()
788
	game.Debris:AddItem(playa, 15)
789
	end	
790
end
791
792
function checkarms()
793
	check = coroutine.wrap(function()
794
		rshould = char.Torso:FindFirstChild("Right Shoulder")
795
		lshould = char.Torso:FindFirstChild("Left Shoulder")
796
		
797
		if rshould == nil then
798
			rightshoulder:Clone().Parent = char.Torso
799
		end
800
		if lshould == nil then
801
			rightshoulder:Clone().Parent = char.Torso
802
		end
803
	end)
804
	check()
805
end
806
807
mouse.KeyDown:connect(function(k)
808
	key = k:lower()
809
	
810
	if key == "e" and enabled == true and equipped == true then
811
		if armed == false then
812
			tors = Instance.new("Weld", char.HumanoidRootPart)
813
			tors.Part0 = char.HumanoidRootPart
814
			tors.Part1 = char.Torso
815
			tors.C0 = CFrame.new(0, 0, 0) * CFrame.new(0, 0, 0)
816
817
			crarm = Instance.new("Weld", char.Torso)
818
			crarm.Part0 = char.Torso
819
			crarm.Part1 = char["Right Arm"]
820
			crarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(1.5, 0, 0)
821
		
822
			clarm = Instance.new("Weld", char.Torso)
823
			clarm.Part0 = char.Torso
824
			clarm.Part1 = char["Left Arm"]
825
			clarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0)
826
		
827
			enabled = false
828
			for i = 0, 1, 0.1 do
829
				crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 1.5, 0) * CFrame.Angles(3.14, 0, 0), i)
830
				wait()
831
			end
832
			for i, v in pairs(arrow:GetChildren()) do
833
				v.Transparency = 0
834
			end
835
			feather1.Transparency = 0.25
836
			feather2.Transparency = 0.25
837
			feather3.Transparency = 0.25
838
			feather4.Transparency = 0.25
839
			
840
			warrow.Part0 = char["Right Arm"]
841
			warrow.C0 = CFrame.new(-0.5, -2.7, -0.2) * CFrame.Angles(-1.575, 0.075, -0.5)
842
			
843
				for i = 0, 1, 0.05 do
844
				tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.5, 0), i)
845
				whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, -0.05, 0), i)
846
				clarm.C0 = clarm.C0:lerp(CFrame.new(-1.6, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i)
847
				crarm.C0 = crarm.C0:lerp(CFrame.new(-1.35, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575), i)
848
				wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0), i)
849
				wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0), i)
850
				wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0), i)
851
				hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 1.5, 0), i)
852
				wait()
853
			end
854
			pullbacksound:Play()
855
			warrow.Part0 = stringpart
856
			warrow.C0 = CFrame.new(-0.1, 0, 1.9) * CFrame.Angles(3.15, 0.04, 0)
857
			for i = 0, 1, 0.025 do
858
				tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.5, 0), i)
859
				whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, -0.05, 0), i)
860
				clarm.C0 = clarm.C0:lerp(CFrame.new(-1.95, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i)
861
				crarm.C0 = crarm.C0:lerp(CFrame.new(1, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575), i)
862
				wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.4, 0, 0), i)
863
				wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.4, 0, 0), i)
864
				wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -3) * CFrame.new(0, 0, 0), i)
865
				hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, -0.1) * CFrame.Angles(0, 1.5, -0.25), i)
866
				wait()
867
			end
868
			armed = true
869
			enabled = true
870
		elseif armed == true and equipped == true then
871
			enabled = false
872
			for i = 0,1,0.05 do
873
				clarm.C0 = clarm.C0:lerp(CFrame.new(-1.6, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i)
874
				crarm.C0 = crarm.C0:lerp(CFrame.new(-1.3, 0.4, -1) * CFrame.Angles(1.575, 0.1, -1.575), i)
875
				wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0), i)
876
				wjoint2.C0 = wjoint2.C0:lerp(CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0), i)
877
				wstringpart.C0 = wstringpart.C0:lerp(CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0), i)
878
				wait()
879
			end
880
			warrow.Part0 = char["Right Arm"]
881
			warrow.C0 = CFrame.new(-0.5, -2.65, -0.2) * CFrame.Angles(-1.575, 0.075, -0.4)
882
			for i = 0,1,0.05 do
883
				crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 1.5, 0) * CFrame.Angles(3.14, 0, 0), i)
884
				tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
885
				whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i)
886
				clarm.C0 = clarm.C0:lerp(CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), i)
887
				crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i)
888
				hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0), i)
889
				wait()
890
			end
891
			
892
			for i, v in pairs(arrow:GetChildren()) do
893
				v.Transparency = 1
894
			end
895
			warrow.Part0 = char.Torso
896
			warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575)
897
			
898
			for i = 0, 1, 0.1 do
899
				crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i)
900
				wait()
901
			end
902
			armed = false
903
			enabled = true
904
			clarm:Remove()
905
			crarm:Remove()
906
			tors:Remove()
907
			rightshoulder:Clone().Parent = char.Torso
908
			leftshoulder:Clone().Parent = char.Torso
909
			torso:Clone().Parent = char.HumanoidRootPart
910
			checkarms()
911
		end
912
	elseif key == "z" then
913
		if armed == true or enabled == false then return end
914
		clarm = Instance.new("Weld", char.Torso)
915
		clarm.Part0 = char.Torso
916
		clarm.Part1 = char["Left Arm"]
917
		clarm.C0 = CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0)
918
		if equipped == false then
919
			enabled = false
920
			for i = 0, 1, 0.075 do
921
				clarm.C0 = clarm.C0:lerp(CFrame.new(-0.5, 0, 0.25) * CFrame.Angles(math.rad(-90), 0, math.rad(75)), i)
922
				wait()
923
			end
924
			whandle.C0 = CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0)
925
			whandle.Part0 = char["Left Arm"]
926
			for i = 0, 1, 0.075 do
927
				clarm.C0 = clarm.C0:lerp(CFrame.new(-2, 0.6, 0) * CFrame.Angles(0, 0, math.rad(-90)), i)
928
				wait()
929
			end
930
			for i = 0, 1, 0.075 do
931
				clarm.C0 = clarm.C0:lerp(CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0), i)
932
				wait()
933
			end
934
			enabled = true
935
			equipped = true
936
		elseif equipped == true then
937
			if armed == true or enabled == false then return end
938
			enabled = false
939
			for i = 0, 1, 0.075 do
940
				clarm.C0 = clarm.C0:lerp(CFrame.new(-2, 0.6, 0) * CFrame.Angles(0, 0, math.rad(-90)), i)
941
				wait()
942
			end
943
			for i = 0, 1, 0.075 do
944
				clarm.C0 = clarm.C0:lerp(CFrame.new(-0.5, 0, 0.25) * CFrame.Angles(math.rad(-90), 0, math.rad(75)), i)
945
				whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i)
946
				wait()
947
			end
948
			whandle.C0 = CFrame.new(0, 0, 0.6) * CFrame.Angles(0, 0, math.rad(45))
949
			whandle.Part0 = char.Torso
950
			for i = 0, 1, 0.075 do
951
				clarm.C0 = clarm.C0:lerp(CFrame.Angles(0, 0, 0) * CFrame.new(-1.5, 0, 0), i)
952
				wait()
953
			end
954
			equipped = false
955
			enabled = true
956
		end
957
		clarm:Remove()
958
		leftshoulder:Clone().Parent = char.Torso
959
	end
960
end)
961
962
mouse.Button1Down:connect(function()
963
	if armed == false or enabled == false or equipped == false then return end
964
	firesound:Play()
965
	enabled = false
966
	armed = false
967
	wjoint1.C0 = CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.1, 0, 0)
968
	wjoint2.C0 = CFrame.new(0, -0.6, 0) * CFrame.Angles(0.1, 0, 0)
969
	wstringpart.C0 = CFrame.new(0, -0.5, -0.3) * CFrame.new(0, 0, 0)
970
	crarm.C0 = CFrame.new(1.2, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575)
971
	newarrow = arrow:Clone()
972
	newarrow.Parent = game.Workspace
973
	newarrow.Name = "flyingarrow"
974
	newarrow.ArrowBody.CFrame = CFrame.new(newarrow.ArrowBody.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,0,math.pi/1.15)
975
	char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/100,0)
976
	local fly = Instance.new('BodyVelocity',newarrow.ArrowBody)
977
	fly.Velocity = (newarrow.ArrowBody.CFrame*CFrame.Angles(0,0,math.pi/2)).lookVector*200
978
	newarrow.Arrowhead.Touched:connect(function(hit)
979
		if hit.Parent and hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Transparency < 1 and newarrow.Arrowhead.CanCollide == false and hit.Parent:FindFirstChildOfClass('Humanoid').Health > 0 and hit.Parent ~= char then
980
			velocity(fly)
981
			newarrow.Arrowhead.CanCollide = true
982
			game:GetService('Debris'):AddItem(newarrow.Arrowhead,15)
983
			tone = math.random(1, 3)
984
			local sound = Instance.new('Sound',newarrow.Arrowhead)
985
			if tone == 1 then sound.SoundId = "rbxassetid://220833967" end
986
			if tone == 2 then sound.SoundId = "rbxassetid://220833976" end
987
			if tone == 3 then sound.SoundId = "rbxassetid://220834000" end
988
			sound.PlaybackSpeed = 1
989
			sound:Play()
990
			newarrow.Arrowhead.Anchored = true
991
			hit.Anchored = true
992
			if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Name == "Torso" or hit.Name == "Head" then
993
				hit.Parent:FindFirstChildOfClass('Humanoid').Health = 0
994
			end
995
			wait()
996
			hit.Anchored = false
997
			newarrow.Arrowhead.Anchored = false
998
			killz(hit.Parent,hit.Name,newarrow.Arrowhead)
999
		elseif hit.Parent and hit.Parent.Parent:FindFirstChildOfClass('Humanoid') and hit.Transparency < 1 and newarrow.Arrowhead.CanCollide == false and hit.Parent.Parent:FindFirstChildOfClass('Humanoid').Health > 0 and hit.Parent.Parent ~= char and hit.Parent.Parent:FindFirstChild('Head') then
1000
			velocity(fly)
1001
			game:GetService('Debris'):AddItem(newarrow.Arrowhead,15)
1002
			newarrow.Arrowhead.CanCollide = true
1003
			tone = math.random(1, 3)
1004
			local sound = Instance.new('Sound',newarrow.Arrowhead)
1005
			if tone == 1 then sound.SoundId = "rbxassetid://220833967" end
1006
			if tone == 2 then sound.SoundId = "rbxassetid://220833976" end
1007
			if tone == 3 then sound.SoundId = "rbxassetid://220834000" end
1008
			sound.PlaybackSpeed = 1
1009
			sound:Play()
1010
			newarrow.Arrowhead.Anchored = true
1011
			hit.Anchored = true
1012
			if hit.Parent.Parent:FindFirstChildOfClass('Humanoid') then
1013
				hit.Parent.Parent:FindFirstChildOfClass('Humanoid').Health = 0
1014
			end
1015
			wait()
1016
			newarrow.Arrowhead.Anchored = false
1017
			hit.Anchored = false
1018
			killz(hit.Parent.Parent,hit.Name,newarrow.Arrowhead)
1019
		elseif hit.Parent and hit.Parent ~= char and hit.Parent.Parent ~= char and hit.Transparency < 1 and newarrow.Arrowhead.CanCollide == false then
1020
			velocity(fly)
1021
			game:GetService('Debris'):AddItem(newarrow.Arrowhead,15)
1022
			newarrow.Arrowhead.CanCollide = true
1023
			local sound = Instance.new('Sound',newarrow.Arrowhead)
1024
			sound.SoundId = 'rbxassetid://267585646'
1025
			sound:Play()
1026
		end
1027
	end)
1028
	
1029
	for i, v in pairs(arrow:GetChildren()) do
1030
		v.Transparency = 1
1031
	end
1032
	warrow.Part0 = char.Torso
1033
	warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575)
1034
	wait(0.5)
1035
	for i = 0, 1, 0.05 do
1036
		tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
1037
		whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, 0, 0), i)
1038
		clarm.C0 = clarm.C0:lerp(CFrame.new(-1.5, 0, 0) * CFrame.Angles(0, 0, 0), i)
1039
		crarm.C0 = crarm.C0:lerp(CFrame.new(1.5, 0, 0) * CFrame.Angles(0, 0, 0), i)
1040
		hed.C0 = hed.C0:lerp(CFrame.new(0, 1.55, 0) * CFrame.Angles(0, 0, 0), i)
1041
		wait()
1042
	end
1043
	clarm:Remove()
1044
	crarm:Remove()
1045
	tors:Remove()
1046
	rightshoulder:Clone().Parent = char.Torso
1047
	leftshoulder:Clone().Parent = char.Torso
1048
	torso:Clone().Parent = char.HumanoidRootPart
1049
	checkarms()
1050
	enabled = true
1051
end)