View difference between Paste ID: KbVt1TYr and qMYES8F2
SHOW: | | - or go back to the newest paste.
1-
--[[ Iris Soldier by Cit]]--
1+
2
E - Draw arrow (press E again to put it back)
3
Left Click - Fire
4-
	Q = Spin
4+
5-
	F = Iris Shot
5+
6-
	R = Irish Rush
6+
7-
  ]]
7+
8-
Player=game:GetService("Players").LocalPlayer
8+
9-
Character=Player.Character 
9+
10-
PlayerGui=Player.PlayerGui 
10+
11-
Backpack=Player.Backpack 
11+
12-
Torso=Character.Torso 
12+
13-
Head=Character.Head 
13+
14-
Humanoid=Character.Humanoid
14+
15-
cam=game.Workspace.CurrentCamera
15+
16-
m=Instance.new('Model',Character)
16+
17-
LeftArm=Character["Left Arm"] 
17+
18-
LeftLeg=Character["Left Leg"] 
18+
19-
RightArm=Character["Right Arm"] 
19+
20-
RightLeg=Character["Right Leg"] 
20+
21-
LS=Torso["Left Shoulder"] 
21+
22-
LH=Torso["Left Hip"] 
22+
23-
RS=Torso["Right Shoulder"] 
23+
24-
RH=Torso["Right Hip"] 
24+
25-
Neck=Torso.Neck
25+
26-
it=Instance.new
26+
27-
attacktype=1
27+
28-
vt=Vector3.new
28+
29-
cf=CFrame.new
29+
30-
euler=CFrame.fromEulerAnglesXYZ
30+
31-
angles=CFrame.Angles
31+
32-
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
32+
33-
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
33+
34-
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
34+
35-
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
35+
36-
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
36+
37-
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
37+
38-
RootPart=Character.HumanoidRootPart
38+
39-
RootJoint=RootPart.RootJoint
39+
40-
RootCF=euler(-1.57,0,3.14)
40+
41-
attack = false 
41+
42-
attackdebounce = false 
42+
43-
deb=false
43+
44-
equipped=true
44+
45-
hand=false
45+
46-
MMouse=nil
46+
47-
combo=0
47+
48-
mana=0
48+
49-
trispeed=.2
49+
50-
attackmode='none'
50+
51-
local idle=0
51+
52-
local Anim="Idle"
52+
53-
local Effects={}
53+
54-
local gun=false
54+
55-
local shoot=false
55+
56-
player=nil 
56+
57-
local colorscheme = {"Gold","New yeller","Really black","Daisy orange","Black"}
57+
58-
local hitsounds = {"199149137","199149186","199149221","199149235","199149269","199149297"}
58+
59-
local render = game:GetService("RunService").RenderStepped
59+
60-
local bltb = {}
60+
61
cap2 = Instance.new("Part")
62-
---------------Cape Section--------------
62+
63-
--[[      Modified by Sol/Citrus     ]]--
63+
64
cap2.BottomSurface = Enum.SurfaceType.Smooth
65-
local verlet = {}
65+
66-
verlet.step_time = 1 / 50
66+
67-
verlet.gravity = Vector3.new(0, -150, 0) --//
67+
68
cap2.Shape = Enum.PartType.Cylinder
69-
local char = game.Players.LocalPlayer.Character
69+
70-
local torso = char:WaitForChild("Torso")
70+
71-
local parts = {}
71+
72-
local render = game:GetService("RunService").RenderStepped
72+
73
joint2 = Instance.new("Part")
74-
wait(2)
74+
75
joint2.TopSurface = Enum.SurfaceType.Smooth
76-
local point = {}
76+
77-
local link = {}
77+
78-
local rope = {}
78+
79
joint2.Friction = 0.30000001192093
80-
local function ccw(A,B,C)
80+
81-
    return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
81+
82
joint2.Parent = bow
83
joint2.CanCollide = false
84-
local function intersect(A,B,C,D)
84+
85-
    return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
85+
86
joint1.CFrame = CFrame.new(Vector3.new(-48.2000008, 3.39998126, -58.2000275)) * CFrame.Angles(1.5707963705063, 0, -0)
87
joint1.TopSurface = Enum.SurfaceType.Smooth
88-
local function vec2(v)
88+
89-
	return Vector2.new(v.x, v.z)
89+
90
joint1.BrickColor = BrickColor.new("Really black")
91
joint1.Friction = 0.30000001192093
92-
function point:step()
92+
93-
	if not self.fixed then
93+
94-
		local derivative = (self.position - self.last_position) * 0.95
94+
95-
		self.last_position = self.position
95+
96-
		self.position = self.position + derivative + ((verlet.gravity + (torso.CFrame.lookVector * -90)) * verlet.step_time ^ 2) --//
96+
97-
		--[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
97+
98-
		local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
98+
99-
		local pointE = self.position + torso.CFrame.lookVector * 100
99+
100-
		local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
100+
101-
		if not doIntersect then
101+
102-
			self.postition = self.position - torso.CFrame.lookVector * 10
102+
103-
		end]]
103+
104
leg1.Parent = bow
105
leg1.CanCollide = false
106
107-
function link:step()
107+
108-
	for i = 1, 1 do
108+
109-
		local distance = self.point1.position - self.point2.position
109+
110-
		local magnitude = distance.magnitude
110+
111-
		local differance = (self.length - magnitude) / magnitude
111+
112-
		local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
112+
113-
		if not self.point1.fixed then
113+
114-
			self.point1.position = self.point1.position + translation
114+
115
cap1.Name = "Cap1"
116-
		if not self.point2.fixed then
116+
117-
			self.point2.position = self.point2.position - translation
117+
118
119
stringpart = Instance.new("Part")
120
stringpart.CFrame = CFrame.new(Vector3.new(-48.2000046, 5.29999113, -58.2000122)) * CFrame.Angles(1.5707963705063, 0, -0)
121
stringpart.TopSurface = Enum.SurfaceType.Smooth
122-
function verlet.new(class, a, b, c)
122+
123-
	if class == "Point" then
123+
124-
		local new = {}
124+
125-
		setmetatable(new, {__index = point})
125+
126-
		new.class = class
126+
127-
		new.position = a or Vector3.new()
127+
128-
		new.last_position = new.position
128+
129-
		new.velocity = verlet.gravity
129+
130-
		new.fixed = false
130+
131-
		return new
131+
132-
	elseif class == "Link" then
132+
133-
		local new = {}
133+
134-
		setmetatable(new, {__index = link})
134+
135-
		new.class = class
135+
136-
		new.point1 = a
136+
137-
		new.point2 = b
137+
138-
		new.length = c or (a.position - b.position).magnitude
138+
139-
		return new
139+
140-
	elseif class == "Rope" then
140+
141-
		local new = {}
141+
142-
		setmetatable(new, {__index = link})
142+
143-
		new.class = class
143+
144-
		new.start_point = a
144+
145-
		new.finish_point = b
145+
146-
		new.points = {}
146+
147-
		new.links = {}
147+
148-
		local inc = (b - a) / 10
148+
149-
		for i = 0, 10 do
149+
150-
			table.insert(new.points, verlet.new("Point", a + (i * inc)))
150+
151
feather2.BrickColor = BrickColor.new("Ghost grey")
152-
		for i = 2, #new.points do
152+
153-
			table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
153+
154
feather2.Parent = arrow
155-
		return new
155+
156
feather2.Transparency = 1
157
158
arrowhead = Instance.new("WedgePart")
159-
local tris = {}
159+
160-
local triParts = {}
160+
161
arrowhead.Size = Vector3.new(0.200000003, 0.200000003, 0.299999952)
162-
local function GetDiscoColor(hue)
162+
163-
 local section = hue % 1 * 3
163+
164-
 local secondary = 0.5 * math.pi * (section % 1)
164+
165-
 if section < 1 then
165+
166-
  return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
166+
167-
 elseif section < 2 then
167+
168-
  return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
168+
169-
 else
169+
170-
  return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
170+
171-
 end
171+
172
arrowcap.BottomSurface = Enum.SurfaceType.Smooth
173
arrowcap.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
174-
local function setupPart(part)
174+
175-
	part.Anchored = true
175+
176-
	part.FormFactor = 3
176+
177-
	part.CanCollide = false
177+
178-
	part.TopSurface = 10
178+
179-
	part.BottomSurface = 10
179+
180-
	part.LeftSurface = 10
180+
181-
	part.RightSurface = 10
181+
182-
	part.FrontSurface = 10
182+
183-
	part.BackSurface = 10
183+
184-
	part.Material = "Neon"
184+
185-
	local m = Instance.new("SpecialMesh", part)
185+
186-
	m.MeshType = "Wedge"
186+
187-
	m.Scale = Vector3.new(0.2, 1, 1)
187+
188-
	return part
188+
189
arrowbody.Parent = arrow
190
arrowbody.CanCollide = false
191-
local function CFrameFromTopBack(at, top, back)
191+
192-
	local right = top:Cross(back)
192+
193-
	return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x,  right.y, top.y, back.y, right.z, top.z, back.z)
193+
194
feather3.CFrame = CFrame.new(Vector3.new(-48.3000031, 2.50004983, -55.9500198)) * CFrame.Angles(-0, 0, -3.1415927410126)
195
feather3.TopSurface = Enum.SurfaceType.Smooth
196-
local function drawTri(parent, a, b, c)
196+
197-
	local this = {}
197+
198-
	local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
198+
199-
	local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
199+
200-
	function this:Set(a, b, c)
200+
201-
		local ab, bc, ca = b-a, c-b, a-c
201+
202-
		local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
202+
203-
		local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
203+
204-
		local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
204+
205-
		local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
205+
206-
		if edg1 < edg2 then
206+
207-
			if edg1 >= edg3 then		
207+
208-
				a, b, c = c, a, b
208+
209-
				ab, bc, ca = ca, ab, bc
209+
210-
				abm = cam
210+
211
feather4.Parent = arrow
212-
		else
212+
213-
			if edg2 < edg3 then
213+
214-
				a, b, c = b, c, a
214+
215-
				ab, bc, ca = bc, ca, ab
215+
216-
				abm = bcm
216+
217-
			else
217+
218-
				a, b, c = c, a, b
218+
219-
				ab, bc, ca = ca, ab, bc
219+
220-
				abm = cam
220+
221
222
wstringpart = Instance.new("Weld", handle)
223-
	 
223+
224-
		local len1 = -ca:Dot(ab)/abm
224+
225-
		local len2 = abm - len1
225+
226-
		local width = (ca + ab.unit*len1).magnitude
226+
227-
	 
227+
228-
		local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
228+
229-
	 
229+
230-
		if len1 > 0.2 then
230+
231-
			mPart1.Parent = parent
231+
232-
			mPart1.Size = Vector3.new(0.2, width, len1)
232+
233-
			mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
233+
234-
		else
234+
235-
			mPart1.Parent = nil
235+
236
237
wleg1 = Instance.new("Weld", joint1)
238-
		if len2 > 0.2 then
238+
239-
			mPart2.Parent = parent
239+
240-
			mPart2.Size = Vector3.new(0.2, width, len2)
240+
241-
			mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
241+
242-
		else
242+
243-
			mPart2.Parent = nil
243+
244
wleg2.Part1 = leg2
245
wleg2.C0 = CFrame.new(0, -0.95, 0) * CFrame.Angles(0, 0, 0)
246-
	function this:SetProperty(prop, value)
246+
247-
		mPart1[prop] = value
247+
248-
		mPart2[prop] = value
248+
249
wcap1.Part1 = cap1
250-
	this:Set(a, b, c)
250+
251-
	function this:Destroy()
251+
252-
		mPart1:Destroy()
252+
253-
		mPart2:Destroy()
253+
254
wcap2.Part1 = cap2
255-
	this.p1 = mPart1
255+
256-
	this.p2 = mPart2
256+
257-
	this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
257+
258-
	this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
258+
259-
	return this
259+
260
cap2att.Position = Vector3.new(0, 0, -0.05)
261
stringatt = Instance.new("Attachment", stringpart)
262-
function verlet.draw(object, id)
262+
263-
	if object.class == "Point" then
263+
264-
		local part = parts[id]
264+
265-
		part.BrickColor = BrickColor.new(1, 1, 1)
265+
266-
		part.Transparency = 0
266+
267-
		part.formFactor = 3
267+
268-
		part.Anchored = true
268+
269-
		part.CanCollide = false
269+
270-
		part.TopSurface = 0
270+
271-
		part.BottomSurface = 0
271+
272-
		part.Size = Vector3.new(0.35, 0.35, 0.35)
272+
273-
		part.Material = "Neon"
273+
274-
		part.CFrame = CFrame.new(object.position)
274+
275-
		part.Parent = torso
275+
276-
		return part
276+
277-
	elseif object.class == "Link" then
277+
278-
		local part = parts[id]
278+
279-
		local dist = (object.point1.position - object.point2.position).magnitude
279+
280-
		part.Size = Vector3.new(0.2, 0.2, dist)
280+
281-
		part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
281+
282-
		part.Parent = torso
282+
283-
		return part
283+
284
wfeather2.Part0 = arrowbody
285
wfeather2.Part1 = feather2
286
wfeather2.C0 = CFrame.new(0, 0.2, 1.4)
287-
function verlet.clear()
287+
288-
	for _, v in pairs(workspace:GetChildren()) do
288+
289-
		if v.Name == "Part" then
289+
290-
			v:Destroy()
290+
291
wfeather3.C0 = CFrame.new(0, -0.2, 1.45) * CFrame.Angles(0, 0, 3.15)
292
293
wfeather4 = Instance.new("Weld", arrowbody)
294
wfeather4.Part0 = arrowbody
295-
local points = {}
295+
296-
local links = {}
296+
297
298-
for x = 0, 2 do
298+
299-
	points[x] = {}
299+
300-
	for y = 0, 3 do
300+
301-
		points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
301+
302-
		points[x][y].fixed = y == 0
302+
303
warrowcap = Instance.new("Weld", arrowbody)
304
warrowcap.Part0 = arrowbody
305
warrowcap.Part1 = arrowcap
306-
for x = 1, 2 do
306+
307-
	for y = 0, 3 do
307+
308-
		links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
308+
309
310
pullbacksound = Instance.new("Sound", handle)
311
pullbacksound.SoundId = "rbxassetid://609348868"
312-
for x = 0, 2 do
312+
313-
	for y = 1, 3 do
313+
314-
		links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
314+
315
firesound.PlaybackSpeed = 1.05
316
317
function velocity(v)
318-
render:connect(function()
318+
319-
	for x = 0, 2 do
319+
320-
		for y = 0, 3 do
320+
321-
			if y == 0 then
321+
322-
				points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
322+
323-
			else
323+
324-
				points[x][y]:step()
324+
325
326
function killz(playa,hitz,kneef)
327
	local heyy = hitz
328-
	for i = 1, #links do
328+
329-
		links[i]:step()
329+
330
	local ters = playa:FindFirstChild('Torso')
331-
	for i = 1, #tris do
331+
332-
		triParts[#triParts + 1] = tris[i].p1
332+
333-
		triParts[#triParts + 1] = tris[i].p2
333+
334
				if v:IsA('Weld') or v:IsA('Motor6D') or v:IsA('Glue') then
335-
	tris = {}
335+
336-
	for x = 1, 2 do
336+
337-
		for y = 1, 3 do
337+
338-
			tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
338+
339-
			tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
339+
340
			Joint.Name = "RightShoulder"
341
			Joint.Part0 = ters
342
			Joint.Part1 = Limb
343
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
344-
--<<-------------End Cape Section------------>>--
344+
345
			Joint.Parent = ters
346-
mouse=Player:GetMouse()
346+
347-
--save shoulders 
347+
348-
RSH, LSH=nil, nil 
348+
349-
--welds 
349+
350-
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
350+
351-
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
351+
352-
LH=Torso["Left Hip"]
352+
353-
RH=Torso["Right Hip"]
353+
354-
TorsoColor=Torso.BrickColor
354+
355-
function NoOutline(Part)
355+
356-
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
356+
357
			W.Part1 = B
358-
player=Player 
358+
359-
ch=Character
359+
360-
RSH=ch.Torso["Right Shoulder"] 
360+
361-
LSH=ch.Torso["Left Shoulder"] 
361+
362-
-- 
362+
363-
RSH.Parent=nil 
363+
364-
LSH.Parent=nil 
364+
365-
-- 
365+
366-
RW.Name="Right Shoulder"
366+
367-
RW.Part0=ch.Torso 
367+
368-
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
368+
369-
RW.C1=cf(0, 0.5, 0) 
369+
370-
RW.Part1=ch["Right Arm"] 
370+
371-
RW.Parent=ch.Torso 
371+
372-
-- 
372+
373-
LW.Name="Left Shoulder"
373+
374-
LW.Part0=ch.Torso 
374+
375-
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
375+
376-
LW.C1=cf(0, 0.5, 0) 
376+
377-
LW.Part1=ch["Left Arm"] 
377+
378-
LW.Parent=ch.Torso 
378+
379
			for i,v in pairs(Limb:GetChildren()) do
380-
local Stats=Instance.new("BoolValue")
380+
381-
Stats.Name="Stats"
381+
382-
Stats.Parent=Character
382+
383-
local Atk=Instance.new("NumberValue")
383+
384-
Atk.Name="Damage"
384+
385-
Atk.Parent=Stats
385+
386-
Atk.Value=1
386+
387-
local Def=Instance.new("NumberValue")
387+
388-
Def.Name="Defense"
388+
389-
Def.Parent=Stats
389+
390-
Def.Value=1
390+
391-
local Speed=Instance.new("NumberValue")
391+
392-
Speed.Name="Speed"
392+
393-
Speed.Parent=Stats
393+
394-
Speed.Value=1
394+
395-
local Mvmt=Instance.new("NumberValue")
395+
396-
Mvmt.Name="Movement"
396+
397-
Mvmt.Parent=Stats
397+
398-
Mvmt.Value=1
398+
399
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
400-
local donum=0
400+
401
			local W = Instance.new("Weld")
402-
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
402+
403-
local fp=it("Part")
403+
404-
fp.formFactor=formfactor 
404+
405-
fp.Parent=parent
405+
406-
fp.Reflectance=reflectance
406+
407-
fp.Transparency=transparency
407+
408-
fp.CanCollide=false 
408+
409-
fp.Locked=true
409+
410-
fp.BrickColor=brickcolor
410+
411-
fp.Name=name
411+
412-
fp.Size=size
412+
413-
fp.Position=Torso.Position 
413+
414-
NoOutline(fp)
414+
415-
fp.Material="SmoothPlastic"
415+
416-
fp:BreakJoints()
416+
417-
return fp 
417+
418-
end 
418+
419
		end
420-
function mesh(Mesh,part,meshtype,meshid,offset,scale)
420+
421-
local mesh=it(Mesh) 
421+
422-
mesh.Parent=part
422+
423-
if Mesh=="SpecialMesh" then
423+
424-
mesh.MeshType=meshtype
424+
425-
if meshid~="nil" then
425+
426-
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
426+
427
					v:Destroy()
428
				end
429-
mesh.Offset=offset
429+
430-
mesh.Scale=scale
430+
431-
return mesh
431+
432
			Joint.Name = "Right Hip"
433
			Joint.Part0 = ters
434-
function weld(parent,part0,part1,c0)
434+
435-
local weld=it("Weld") 
435+
436-
weld.Parent=parent
436+
437-
weld.Part0=part0 
437+
438-
weld.Part1=part1 
438+
439-
weld.C0=c0
439+
440-
return weld
440+
441
			B.formFactor = "Symmetric"
442
			B.Size = Vector3.new(1, 1, 1)
443
			B.Transparency = 1
444-
function Rainbow(hue)
444+
445-
 local section = hue % 1 * 3
445+
446-
 local secondary = 0.5 * math.pi * (section % 1)
446+
447-
 if section < 1 then
447+
448-
  return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
448+
449-
 elseif section < 2 then
449+
450-
  return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
450+
451-
 else
451+
452-
  return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
452+
453-
 end
453+
454
				uno.CFrame = playa:FindFirstChild(hitz).CFrame
455
				dos.CFrame = kneef.CFrame
456
				local weld = Instance.new('Weld',kneef)
457-
function UpdatePart(pt,clr)
457+
458-
	pt.BrickColor = BrickColor.new(clr)
458+
459
				weld.C0 = uno.CFrame:toObjectSpace(dos.CFrame)
460
				uno:Destroy()
461-
local Color1=Torso.BrickColor
461+
462
				if playa:FindFirstChild('HumanoidRootPart') then
463-
local bodvel=Instance.new("BodyVelocity")
463+
464-
local bg=Instance.new("BodyGyro")
464+
465
					wait()
466-
function swait(num)
466+
467-
if num==0 or num==nil then
467+
468-
game:service'RunService'.Stepped:wait(0)
468+
469
					end
470-
for i=0,num do
470+
471-
game:service'RunService'.Stepped:wait(0)
471+
472
			end)
473
			coru()
474
		end
475
	elseif hitz == "Left Leg" then
476
		local Limb = playa:FindFirstChild("Left Leg")
477-
so = function(id,par,vol,pit) 
477+
478-
coroutine.resume(coroutine.create(function()
478+
479-
local sou = Instance.new("Sound",par or workspace)
479+
480-
sou.Volume=vol
480+
481-
sou.Pitch=pit or 1
481+
482-
sou.SoundId=id
482+
483-
swait() 
483+
484-
sou:play() 
484+
485-
game:GetService("Debris"):AddItem(sou,6)
485+
486-
end))
486+
487
			local Joint = Instance.new("Glue")
488
			Joint.Name = "LeftHip"
489-
function clerp(a,b,t) 
489+
490-
local qa = {QuaternionFromCFrame(a)}
490+
491-
local qb = {QuaternionFromCFrame(b)} 
491+
492-
local ax, ay, az = a.x, a.y, a.z 
492+
493-
local bx, by, bz = b.x, b.y, b.z
493+
494-
local _t = 1-t
494+
495-
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
495+
496-
end 
496+
497
			B.BottomSurface = 0
498-
function QuaternionFromCFrame(cf) 
498+
499-
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
499+
500-
local trace = m00 + m11 + m22 
500+
501-
if trace > 0 then 
501+
502-
local s = math.sqrt(1 + trace) 
502+
503-
local recip = 0.5/s 
503+
504-
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
504+
505-
else 
505+
506-
local i = 0 
506+
507-
if m11 > m00 then
507+
508-
i = 1
508+
509
			local coru = coroutine.wrap(function()
510-
if m22 > (i == 0 and m00 or m11) then 
510+
511-
i = 2 
511+
512-
end 
512+
513-
if i == 0 then 
513+
514-
local s = math.sqrt(m00-m11-m22+1) 
514+
515-
local recip = 0.5/s 
515+
516-
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
516+
517-
elseif i == 1 then 
517+
518-
local s = math.sqrt(m11-m22-m00+1) 
518+
519-
local recip = 0.5/s 
519+
520-
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
520+
521-
elseif i == 2 then 
521+
522-
local s = math.sqrt(m22-m00-m11+1) 
522+
523-
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
523+
524-
end 
524+
525-
end 
525+
526
					end
527
			playa:FindFirstChild('HumanoidRootPart'):Destroy()
528-
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
528+
529-
local xs, ys, zs = x + x, y + y, z + z 
529+
530-
local wx, wy, wz = w*xs, w*ys, w*zs 
530+
531-
local xx = x*xs 
531+
532-
local xy = x*ys 
532+
533-
local xz = x*zs 
533+
534-
local yy = y*ys 
534+
535-
local yz = y*zs 
535+
536-
local zz = z*zs 
536+
537-
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
537+
538
		playa.Parent = workspace
539
		local Gibs = game.Workspace
540-
function QuaternionSlerp(a, b, t) 
540+
541-
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
541+
542-
local startInterp, finishInterp; 
542+
543-
if cosTheta >= 0.0001 then 
543+
544-
if (1 - cosTheta) > 0.0001 then 
544+
545-
local theta = math.acos(cosTheta) 
545+
546-
local invSinTheta = 1/math.sin(theta) 
546+
547-
startInterp = math.sin((1-t)*theta)*invSinTheta 
547+
548-
finishInterp = math.sin(t*theta)*invSinTheta  
548+
549-
else 
549+
550-
startInterp = 1-t 
550+
551-
finishInterp = t 
551+
552-
end 
552+
553-
else 
553+
554-
if (1+cosTheta) > 0.0001 then 
554+
555-
local theta = math.acos(-cosTheta) 
555+
556-
local invSinTheta = 1/math.sin(theta) 
556+
557-
startInterp = math.sin((t-1)*theta)*invSinTheta 
557+
558-
finishInterp = math.sin(t*theta)*invSinTheta 
558+
559-
else 
559+
560-
startInterp = t-1 
560+
561-
finishInterp = t 
561+
562-
end 
562+
563-
end 
563+
564-
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
564+
565
	for i = 1,#ch do
566
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
567-
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
567+
568-
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
568+
569-
end 
569+
570
571-
ppart = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
571+
572-
  local fp = it("Part")
572+
573-
  fp.formFactor = formfactor
573+
574-
  fp.Parent = parent
574+
575-
  fp.Reflectance = reflectance
575+
576-
  fp.Transparency = transparency
576+
577-
  fp.CanCollide = false
577+
578-
  fp.Locked = true
578+
579-
  fp.BrickColor = brickcolor
579+
580-
  fp.Name = name
580+
581-
  fp.Size = size
581+
582-
  fp.Position = EffectPart.Position
582+
583-
  NoOutline(fp)
583+
584-
  fp.Material = "Neon"
584+
585-
  fp:BreakJoints()
585+
586-
  return fp
586+
587
			Joint.Part1 = Limb
588
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
589-
nooutline = function(part)
589+
590-
  part.TopSurface = 10
590+
591
592
			local B = Instance.new("Part")
593
			B.TopSurface = 0
594-
part2 = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
594+
595-
  local fp = it("Part")
595+
596-
  fp.formFactor = formfactor
596+
597-
  fp.Parent = parent
597+
598-
  fp.Reflectance = reflectance
598+
599-
  fp.Transparency = transparency
599+
600-
  fp.CanCollide = false
600+
601-
  fp.Locked = true
601+
602-
  fp.BrickColor = BrickColor.new(tostring(brickcolor))
602+
603-
  fp.Name = name
603+
604-
  fp.Size = size
604+
605-
  fp.Position = Character.Torso.Position
605+
606-
  nooutline(fp)
606+
607-
  fp.Material = material
607+
608-
  fp:BreakJoints()
608+
609-
  return fp
609+
610
			local Joint = Instance.new("Glue")
611
			Joint.Name = "LeftShoulder"
612-
local MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
612+
613-
  local prt = ppart(3, game.Workspace, 0, 1, brickcolor, "Effect", vt())
613+
614-
  if Type ~= 2 then
614+
615-
    prt.Anchored = true
615+
616-
  end
616+
617-
  prt.CFrame = cframe
617+
618-
  local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
618+
619-
  game:GetService("Debris"):AddItem(prt, 5)
619+
620-
  coroutine.resume(coroutine.create(function(Part, Mesh, dur)
620+
621-
    local wld = nil
621+
622-
    if dur == 2 then
622+
623-
      wld = weld(Part, Part, parent, euler(0, 0, 0) * cf(0, 0, 0))
623+
624-
    end
624+
625-
    for i = 0, 1, delay do
625+
626-
      swait()
626+
627-
      if dur == 1 then
627+
628-
        Part.CFrame = Part.CFrame
628+
629-
      else
629+
630-
        if dur == 2 then
630+
631-
          wld.C0 = cframe
631+
632-
        end
632+
633-
      end
633+
634-
      Part.Transparency = i
634+
635-
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
635+
636-
    end
636+
637-
    Part.Parent = nil
637+
638-
  end
638+
639-
), prt, msh, Type)
639+
640
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
641
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
642-
ChargeBall = function(parent, t)
642+
643-
  local counter = 0
643+
644-
  local size = 1
644+
645-
  for i = 0, t do
645+
646-
    swait()
646+
647-
    counter = counter + 1
647+
648-
    if (counter) % 10 == 0 then 
648+
649-
      if size == 3 then
649+
650-
        MagicRing(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))), parent.CFrame, 0.5, 0.5, 0.5, 1, 1, 1, 0.1, 3, parent)
650+
651-
      else
651+
652-
        if size == 2 then
652+
653-
          MagicRing(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))), parent.CFrame, 0.5, 0.5, 0.5, 1, 1, 1, 0.1, 3, parent)
653+
654-
        end
654+
655-
      end
655+
656-
    end
656+
657-
    if (counter) % 5 == 0 then
657+
658-
      if size == 1 then
658+
659-
        MagicBlock(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))), parent.CFrame, 0.5, 0.5, 0.5, 1, 1, 1, 0.1, 3, parent)
659+
660-
      else
660+
661-
        if size == 2 then
661+
662-
          MagicBlock(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))), parent.CFrame, 0.5, 0.5, 0.5, 1, 1, 1, 0.1, 3, parent)
662+
663-
        else
663+
664-
          if size == 3 then
664+
665-
            MagicBlock(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))), parent.CFrame, 0.5, 0.5, 0.5, 1, 1, 1, 0.1, 3, parent)
665+
666-
          end
666+
667-
        end
667+
668-
      end
668+
669-
    end
669+
670-
  end
670+
671
			B.TopSurface = 0
672
			B.BottomSurface = 0
673
			B.formFactor = "Symmetric"
674-
MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
674+
675-
  local prt = ppart(3, workspace, 0, 0, brickcolor, "Effect", vt())
675+
676-
  prt.Anchored = true
676+
677-
  prt.CFrame = cframe
677+
678-
  local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
678+
679-
  game:GetService("Debris"):AddItem(prt, 5)
679+
680-
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
680+
681
			W.C0 = CFrame.new(0, -0.5, 0)
682
			W.Parent = Limb
683-
MagicWaveThing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
683+
684-
  local prt = ppart(3, game.Workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
684+
685-
  prt.Anchored = true
685+
686-
  prt.CFrame = cframe
686+
687-
  local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
687+
688-
  game:GetService("Debris"):AddItem(prt, 5)
688+
689-
  coroutine.resume(coroutine.create(function(Part, Mesh)
689+
690-
    for i = 0, 1, delay do
690+
691-
      swait()
691+
692-
      Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
692+
693-
      Part.Transparency = i
693+
694-
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
694+
695-
    end
695+
696-
    Part.Parent = nil
696+
697-
  end
697+
698-
), prt, msh)
698+
699
		playa.Parent = Gibs
700
		local coru = coroutine.wrap(function()
701-
MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
701+
702-
  local prt = ppart(3, game.Workspace, 0, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
702+
703-
  prt.Anchored = true
703+
704-
  prt.CFrame = cframe
704+
705-
  local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
705+
706-
  game:GetService("Debris"):AddItem(prt, 5)
706+
707-
  coroutine.resume(coroutine.create(function(Part, Mesh)
707+
708-
    for i = 0, 1, delay do
708+
709-
      wait()
709+
710-
      Part.CFrame = Part.CFrame * euler(math.rad(-50, 50), math.rad(-50, 50), math.rad(-50, 50))
710+
711-
      Part.Transparency = i
711+
712-
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
712+
713-
    end
713+
714-
    Part.Parent = nil
714+
715-
  end
715+
716-
), prt, msh)
716+
717
718
function checkarms()
719-
MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
719+
720-
  local prt = ppart(3, game.Workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
720+
721-
  prt.Anchored = true
721+
722-
  prt.CFrame = cframe
722+
723-
  local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(0.1, 0.1, 0.1))
723+
724-
  game:GetService("Debris"):AddItem(prt, 2)
724+
725-
  coroutine.resume(coroutine.create(function(Part, Mesh)
725+
726-
    for i = 0, 2, delay do
726+
727-
      wait()
727+
728-
      Part.CFrame = Part.CFrame
728+
729-
      Part.Transparency = i
729+
730-
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
730+
731-
    end
731+
732-
    Part.Parent = nil
732+
733-
  end
733+
734-
), prt, msh)
734+
735
	
736
	if key == "e" and enabled == true and equipped == true then
737-
MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
737+
738-
  local prt = ppart(3, workspace, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
738+
739-
  prt.Anchored = true
739+
740-
  prt.CFrame = cframe
740+
741-
  local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
741+
742-
  game:GetService("Debris"):AddItem(prt, 5)
742+
743-
  coroutine.resume(coroutine.create(function(Part, Mesh)
743+
744-
    for i = 0, 1, delay do
744+
745-
      wait()
745+
746-
      Part.CFrame = Part.CFrame
746+
747-
      Part.Transparency = i
747+
748-
      Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
748+
749-
    end
749+
750-
    Part.Parent = nil
750+
751-
  end
751+
752-
), prt, msh)
752+
753
			for i, v in pairs(arrow:GetChildren()) do
754
				v.Transparency = 0
755-
Blast = function(parent)
755+
756-
  MagicBlock(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))), parent.CFrame, 4, 4, 4, 0.2, 0.2, 0.2, 0.01)
756+
757-
  MagicWaveThing(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))), parent.CFrame, 4, 4, 4, 0.2, 0.2, 0.2, 0.01)
757+
758
			feather3.Transparency = 0.25
759
			feather4.Transparency = 0.25
760-
computeDirection = function(vec)
760+
761-
  local lenSquared = vec.magnitude * vec.magnitude
761+
762-
  local invSqrt = 1 / math.sqrt(lenSquared)
762+
763-
  return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
763+
764
				for i = 0, 1, 0.05 do
765
				tors.C0 = tors.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(0, -1.5, 0), i)
766-
MagniDamage = function(Part, dis, mind, maxd, force, knock)
766+
767-
  for _,c in pairs(workspace:children()) do
767+
768-
    local hum = c:findFirstChild("Humanoid")
768+
769-
    if hum ~= nil then
769+
770-
      local head = c:findFirstChild("Torso")
770+
771-
      if head ~= nil then
771+
772-
        local targ = head.Position - Part.Position
772+
773-
        local mag = targ.magnitude
773+
774-
        if mag <= dis and c.Name ~= Character.Name then
774+
775-
          Damagefunc2(Part, hum.Parent.Torso, mind, maxd, force, knock, RootPart, 0.2, 1)
775+
776-
        end
776+
777-
      end
777+
778-
    end
778+
779-
  end
779+
780
				whandle.C0 = whandle.C0:lerp(CFrame.new(0.4, -1, 0) * CFrame.Angles(1.575, -0.05, 0), i)
781
				clarm.C0 = clarm.C0:lerp(CFrame.new(-1.95, 0.45, -0.10) * CFrame.Angles(1.2, 0, -1.575), i)
782
				crarm.C0 = crarm.C0:lerp(CFrame.new(1, 0.6, -1) * CFrame.Angles(1.575, 0, -1.575), i)
783
				wjoint1.C0 = wjoint1.C0:lerp(CFrame.new(0, 0.6, 0) * CFrame.Angles(-0.4, 0, 0), i)
784-
function ShowDamage2(Pos, Text, Time, Color)
784+
785-
	local Rate = (1 / 30)
785+
786-
	local Pos = (Pos or Vector3.new(0, 0, 0))
786+
787-
	local Text = (Text or "")
787+
788-
	local Time = (Time or 2)
788+
789-
	local Color = (Color or Color3.new(1, 0, 0))
789+
790-
	local EffectPart = part2("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
790+
791-
	EffectPart.Anchored = true
791+
792-
	local BillboardGui = Instance.new("BillboardGui")
792+
793-
	BillboardGui.Size = UDim2.new(3, 0, 3, 0)
793+
794-
	BillboardGui.Adornee = EffectPart
794+
795-
	local TextLabel = Instance.new("TextLabel")
795+
796-
	TextLabel.BackgroundTransparency = 1
796+
797-
	TextLabel.Size = UDim2.new(1, 0, 1, 0)
797+
798-
	TextLabel.Text = Text
798+
799-
	TextLabel.TextColor3 = Color
799+
800-
	TextLabel.TextScaled = true
800+
801-
	TextLabel.Font = Enum.Font.ArialBold
801+
802-
	TextLabel.Parent = BillboardGui
802+
803-
	BillboardGui.Parent = EffectPart
803+
804-
	game.Debris:AddItem(EffectPart, (Time + 0.1))
804+
805-
	EffectPart.Parent = game:GetService("Workspace")
805+
806-
	Delay(0, function()
806+
807-
		local Frames = (Time / Rate)
807+
808-
		for Frame = 1, Frames do
808+
809-
			wait(Rate)
809+
810-
			local Percent = (Frame / Frames)
810+
811-
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
811+
812-
			TextLabel.TextTransparency = Percent
812+
813
			for i, v in pairs(arrow:GetChildren()) do
814-
		if EffectPart and EffectPart.Parent then
814+
815-
			EffectPart:Destroy()
815+
816
			warrow.Part0 = char.Torso
817
			warrow.C0 = CFrame.new(0, 0, 0.5) * CFrame.Angles(-1.575, 0, 1.575)
818
			
819
			for i = 0, 1, 0.1 do
820-
Damagefunc2=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
820+
821-
        if hit.Parent==nil then
821+
822-
                return
822+
823-
        end
823+
824-
        local h=hit.Parent:FindFirstChild("Humanoid")
824+
825-
        for _,v in pairs(hit.Parent:children()) do
825+
826-
        if v:IsA("Humanoid") then
826+
827-
        h=v
827+
828-
        end
828+
829-
        end
829+
830-
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
830+
831-
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
831+
832-
        end
832+
833-
        if hit.Parent.className=="Hat" then
833+
834-
        hit=hit.Parent.Parent:findFirstChild("Head")
834+
835-
        end
835+
836-
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
836+
837-
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
837+
838-
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
838+
839-
                        return
839+
840-
                end]]
840+
841-
--                        hs(hit,1.2) 
841+
842-
                        local c=Instance.new("ObjectValue")
842+
843-
                        c.Name="creator"
843+
844-
                        c.Value=game:service("Players").LocalPlayer
844+
845-
                        c.Parent=h
845+
846-
                        game:GetService("Debris"):AddItem(c,.5)
846+
847-
                local Damage=math.random(minim,maxim)
847+
848-
--                h:TakeDamage(Damage)
848+
849-
                local  blocked=false
849+
850-
                local  block=hit.Parent:findFirstChild("Block")
850+
851-
                if block~=nil then
851+
852-
                print(block.className)
852+
853-
                if block.className=="NumberValue" then
853+
854-
                if block.Value>0 then
854+
855-
                blocked=true
855+
856-
                if decreaseblock==nil then
856+
857-
                block.Value=block.Value-1
857+
858-
                end
858+
859-
                end
859+
860-
                end
860+
861-
                if block.className=="IntValue" then
861+
862-
                if block.Value>0 then
862+
863-
                blocked=true
863+
864-
                if decreaseblock~=nil then
864+
865-
                block.Value=block.Value-1
865+
866-
                end
866+
867-
                end
867+
868-
                end
868+
869-
                end
869+
870-
                if blocked==false then
870+
871-
--                h:TakeDamage(Damage)
871+
872-
                h.Health=h.Health-Damage
872+
873-
                ShowDamage2((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
873+
874-
                else
874+
875-
                h.Health=h.Health-(Damage/2)
875+
876-
                ShowDamage2((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
876+
877-
                end
877+
878-
                if Type=="Knockdown" then
878+
879-
                local hum=hit.Parent.Humanoid
879+
880-
hum.PlatformStand=true
880+
881-
coroutine.resume(coroutine.create(function(HHumanoid)
881+
882-
swait(1)
882+
883-
HHumanoid.PlatformStand=false
883+
884-
end),hum)
884+
885-
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
885+
886-
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
886+
887-
local bodvol=Instance.new("BodyVelocity")
887+
888-
bodvol.velocity=angle*knockback
888+
889-
bodvol.P=5000
889+
890-
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
890+
891-
bodvol.Parent=hit
891+
892-
local rl=Instance.new("BodyAngularVelocity")
892+
893-
rl.P=3000
893+
894-
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
894+
895-
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
895+
896-
rl.Parent=hit
896+
897-
game:GetService("Debris"):AddItem(bodvol,.5)
897+
898-
game:GetService("Debris"):AddItem(rl,.5)
898+
899-
                elseif Type=="Normal" then
899+
900-
                local vp=Instance.new("BodyVelocity")
900+
901-
                vp.P=500
901+
902-
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
902+
903-
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
903+
904-
                if KnockbackType==1 then
904+
905-
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
905+
906-
                elseif KnockbackType==2 then
906+
907-
                vp.velocity=Property.CFrame.lookVector*knockback
907+
908-
                end
908+
909-
                if knockback>0 then
909+
910-
                        vp.Parent=hit.Parent.Torso
910+
911-
                end
911+
912-
                game:GetService("Debris"):AddItem(vp,.5)
912+
913-
                elseif Type=="Up" then
913+
914-
                local bodyVelocity=Instance.new("BodyVelocity")
914+
915-
                bodyVelocity.velocity=vt(0,60,0)
915+
916-
                bodyVelocity.P=5000
916+
917-
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
917+
918-
                bodyVelocity.Parent=hit
918+
919-
                game:GetService("Debris"):AddItem(bodyVelocity,1)
919+
920-
                local rl=Instance.new("BodyAngularVelocity")
920+
921-
                rl.P=3000
921+
922-
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
922+
923-
                rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
923+
924-
                rl.Parent=hit
924+
925-
                game:GetService("Debris"):AddItem(rl,.5)
925+
926-
                elseif Type=="Snare" then
926+
927-
                local bp=Instance.new("BodyPosition")
927+
928-
                bp.P=2000
928+
929-
                bp.D=100
929+
930-
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
930+
931-
                bp.position=hit.Parent.Torso.Position
931+
932-
                bp.Parent=hit.Parent.Torso
932+
933-
                game:GetService("Debris"):AddItem(bp,1)
933+
934-
                elseif Type=="Target" then
934+
935-
	            local Targetting = false
935+
936-
                if Targetting==false then
936+
937-
                ZTarget=hit.Parent.Torso
937+
938-
                coroutine.resume(coroutine.create(function(Part) 
938+
939-
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
939+
940-
                swait(5)
940+
941-
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
941+
942-
                end),ZTarget)
942+
943-
                local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
943+
944-
                local  targetgui=Instance.new("BillboardGui")
944+
945-
                targetgui.Parent=ZTarget
945+
946-
                targetgui.Size=UDim2.new(10,100,10,100)
946+
947-
                local targ=Instance.new("ImageLabel")
947+
948-
                targ.Parent=targetgui
948+
949-
                targ.BackgroundTransparency=1
949+
950-
                targ.Image="rbxassetid://4834067"
950+
951-
                targ.Size=UDim2.new(1,0,1,0)
951+
952-
                cam.CameraType="Scriptable"
952+
953-
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
953+
954-
                local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
954+
955-
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
955+
956-
                Targetting=true
956+
957-
                RocketTarget=ZTarget
957+
958-
                for i=1,Property do
958+
959-
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
959+
960-
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
960+
961-
                swait()
961+
962-
                end
962+
963-
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
963+
964-
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
964+
965-
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
965+
966-
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
966+
967-
                end
967+
968-
                Targetting=false
968+
969-
                RocketTarget=nil
969+
970-
                targetgui.Parent=nil
970+
971-
                cam.CameraType="Custom"
971+
972-
                end
972+
973-
                end
973+
974-
                        local debounce=Instance.new("BoolValue")
974+
local player = game:service("Players").LocalPlayer
975-
                        debounce.Name="DebounceHit"
975+
local mouse = player:GetMouse()
976-
                        debounce.Parent=hit.Parent
976+
local cam = workspace.CurrentCamera
977-
                        debounce.Value=true
977+
local char = player.Character
978-
                        game:GetService("Debris"):AddItem(debounce,Delay)
978+
local Torsoz = char:findFirstChild("Torso")
979-
                        c=Instance.new("ObjectValue")
979+
local RA = char:findFirstChild("Right Arm")
980-
                        c.Name="creator"
980+
local LA = char:findFirstChild("Left Arm")
981-
                        c.Value=Player
981+
local RL = char:findFirstChild("Right Leg")
982-
                        c.Parent=h
982+
local LL = char:findFirstChild("Left Leg")
983-
                        game:GetService("Debris"):AddItem(c,.5)
983+
local H = char:findFirstChild("Head")
984-
        end
984+
local Hu = char:findFirstChild("Humanoid")
985
local RS = Torsoz:findFirstChild("Right Shoulder")
986-
--<----------------------------------S w o r d  C r e a t i o n---------------------------------->--
986+
local LS = Torsoz:findFirstChild("Left Shoulder")
987
local RH = Torsoz:findFirstChild("Right Hip")
988-
	user=game:service'Players'.localPlayer
988+
local LH = Torsoz:findFirstChild("Left Hip")
989-
	char=user.Character
989+
local N = Torsoz:findFirstChild("Neck")
990-
	mouse=user:GetMouse()
990+
local NV = Vector3.new(0,0,0)
991-
	m=Instance.new('Model',char)
991+
local FOV = 70
992-
	iris = m
992+
local Shift, Space, Sitting = false,false,false
993-
	game:service'Lighting'.Outlines=false
993+
local GravPoint = 0
994
local Diving = false
995
local DivingCooldown = 0
996-
local Handle  = Instance.new("Part", m)
996+
local DivingDir = NV
997-
			Handle:BreakJoints()
997+
local DivingCF = CFrame.new(0,0,0)
998-
			Handle.TopSurface = "Smooth"
998+
local DivingBG, DivingBV
999-
			Handle.Transparency = 0			Handle.Material = "SmoothPlastic"
999+
local HWallRunning = false
1000-
			Handle.Name = 'Handle'
1000+
local HWRGravDrop = false
1001-
			Handle.BottomSurface = "Smooth"
1001+
local HWRLastPart
1002-
			Handle.FormFactor = "Custom" Handle.CanCollide = false
1002+
local HWRCooldown = 0
1003-
			Handle.BrickColor = BrickColor.new("Really black")
1003+
local HWRDir
1004-
			Handle.Size = Vector3.new(0.337107092, 1.12369001, 0.337107033)
1004+
local VWallRunning = false
1005-
			    local Handleweld = Instance.new("ManualWeld")
1005+
local VWRLastPart
1006-
   Handleweld.Part0 = Character["Right Arm"]
1006+
local VWRCooldown = 0
1007-
   Handleweld.Part1 = Handle  Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1007+
local VWRLeft,VWRRight = false,false
1008-
   Handleweld.C1 = CFrame.new(-0.000732421875, -0.0344696045, -0.945665836, -0.999993205, 0, 0, 0, 0, -1, 0, -0.999993086, 0)
1008+
local Sliding = false
1009-
    Handleweld.Parent = Character["Right Arm"]
1009+
local SlideCooldown = 0
1010
local Standing = true
1011-
					local HandleMesh = Instance.new("CylinderMesh",Handle)
1011+
local Action = "Standing"
1012-
				HandleMesh.Name = "Mesh"
1012+
local animplus = true
1013-
				HandleMesh.Offset = Vector3.new(0, 0, 0)
1013+
local animspeed = 0
1014-
				HandleMesh.Scale = Vector3.new(1, 1, 1)
1014+
local animangle = 0.01
1015-
				
1015+
local Joint1, Joint2, Joint3, Joint4, Joint5
1016-
local Part  = Instance.new("Part", m)
1016+
1017-
			Part:BreakJoints()
1017+
for i, v in pairs(char:children()) do
1018-
			Part.TopSurface = "Smooth"
1018+
if (v.className == "LocalScript" and v.Name == "ParkourSkrip") or v.className == "NumberValue" or v.className == "BoolValue" or v.className == "Model" or v.Name == "Animate" then
1019-
			Part.Material = "SmoothPlastic"
1019+
v:remove()
1020-
			Part.Transparency = 0			Part.Name = 'Part'
1020+
1021-
			Part.BottomSurface = "Smooth"
1021+
1022-
			Part.FormFactor = "Custom" Part.CanCollide = false
1022+
1023-
			Part.BrickColor = BrickColor.new("Really black")
1023+
local loadids = {112474909, 112474911, 112474909}
1024-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
1024+
1025-
			    local Partweld = Instance.new("ManualWeld")
1025+
local stamina = 10000
1026-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1026+
local maxstamina = 10000
1027-
   Partweld.C1 = CFrame.new(0, -0.842823029, -0.393207669, 0.99998641, 0, 1.77634477e-015, -1.32347999e-023, 1, 0, -1.77634477e-015, 0, 0.99998641)
1027+
local defsprint = 28
1028-
    Partweld.Parent = Part		
1028+
local sprint = defsprint  
1029-
					local PartMesh = Instance.new("BlockMesh",Part)
1029+
1030-
				PartMesh.Name = "Mesh"
1030+
local pause = Instance.new("BoolValue", char)
1031-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1031+
pause.Name = "Pause"
1032-
				PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
1032+
pause.Value = false
1033-
				
1033+
local flow = Instance.new("NumberValue", char)
1034-
local Part  = Instance.new("Part", m)
1034+
flow.Name = "Flow"
1035-
			Part:BreakJoints()
1035+
flow.Value = 0
1036-
			Part.TopSurface = "Smooth"
1036+
local flowcooldown = 0
1037-
			Part.Material = "Neon"
1037+
1038-
			Part.Transparency = 0			Part.Name = 'Part1'
1038+
local m = Instance.new("Model", char)
1039-
			Part.BottomSurface = "Smooth"
1039+
m.Name = "FlowChainPartz"
1040-
			Part.FormFactor = "Custom" Part.CanCollide = false
1040+
1041-
			Part.BrickColor = BrickColor.new("Cyan")
1041+
local P = Instance.new("Part")
1042-
			Part.Size = Vector3.new(0.337107092, 0.224738032, 0.337107033)
1042+
P.Name = "TrailPart"
1043-
			    local Partweld = Instance.new("ManualWeld")
1043+
P.formFactor = "Custom"
1044-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1044+
P.Size = Vector3.new(0.2,0.2,0.2)
1045-
   Partweld.C1 = CFrame.new(-4.00543213e-005, 0.674224854, -1.33514404e-005, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1045+
P.Locked = true
1046-
    Partweld.Parent = Part		
1046+
P.Anchored = true
1047-
					local PartMesh = Instance.new("SpecialMesh",Part)
1047+
P.CanCollide = false
1048-
					PartMesh.MeshId = ""
1048+
P.TopSurface = 0
1049-
					PartMesh.MeshType = Enum.MeshType.Sphere				PartMesh.Name = "Mesh"
1049+
P.BottomSurface = 0
1050-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1050+
1051-
				PartMesh.Scale = Vector3.new(1, 1, 1)
1051+
script.Name = "ParkourSkrip"
1052-
				
1052+
1053-
				table.insert(bltb, Part)				
1053+
local hue = 0
1054-
				
1054+
1055-
local Part  = Instance.new("Part", m)
1055+
function HSV(H,S,V)
1056-
			Part:BreakJoints()
1056+
H = H % 360
1057-
			Part.TopSurface = "Smooth"
1057+
local C = V * S
1058-
			Part.Material = "SmoothPlastic"
1058+
local H2 = H/60
1059-
			Part.Transparency = 0			Part.Name = 'Part'
1059+
local X = C * (1 - math.abs((H2 %2) -1))
1060-
			Part.BottomSurface = "Smooth"
1060+
local color = Color3.new(0,0,0)
1061-
			Part.FormFactor = "Custom" Part.CanCollide = false
1061+
if H2 <= 0 then
1062-
			Part.BrickColor = BrickColor.new("Really black")
1062+
color = Color3.new(C,0,0)
1063-
			Part.Size = Vector3.new(0.561845124, 0.200000003, 0.449476033)
1063+
elseif 0 <= H2 and H2 <= 1 then
1064-
			    local Partweld = Instance.new("ManualWeld")
1064+
color = Color3.new(C,X,0)
1065-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1065+
elseif 1 <= H2 and H2 <= 2 then
1066-
   Partweld.C1 = CFrame.new(0, -0.730434418, 7.62939453e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1066+
color = Color3.new(X,C,0)
1067-
    Partweld.Parent = Part		
1067+
elseif 2 <= H2 and H2 <= 3 then
1068-
					local PartMesh = Instance.new("CylinderMesh",Part)
1068+
color = Color3.new(0,C,X)
1069-
				PartMesh.Name = "Mesh"
1069+
elseif 3 <= H2 and H2 <= 4 then
1070-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1070+
color = Color3.new(0,X,C)
1071-
				PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
1071+
elseif 4 <= H2 and H2 <= 5 then
1072-
				
1072+
color = Color3.new(X,0,C)
1073-
				
1073+
elseif 5 <= H2 and H2 <= 6 then
1074-
				
1074+
color = Color3.new(C,0,X)
1075-
local Part  = Instance.new("Part", m)
1075+
1076-
			Part:BreakJoints()
1076+
local m = V - C
1077-
			Part.TopSurface = "Smooth"
1077+
return Color3.new(color.r + m, color.g + m, color.b + m)
1078-
			Part.Material = "SmoothPlastic"
1078+
1079-
			Part.Transparency = 0			Part.Name = 'Part'
1079+
1080-
			Part.BottomSurface = "Smooth"
1080+
function GetWeld(weld)
1081-
			Part.FormFactor = "Custom" Part.CanCollide = false
1081+
if weld:findFirstChild("XAngle") == nil then
1082-
			Part.BrickColor = BrickColor.new("Really black")
1082+
local a = Instance.new("NumberValue", weld)
1083-
			Part.Size = Vector3.new(0.561845124, 0.200000003, 0.449476033)
1083+
a.Name = "XAngle"
1084-
			    local Partweld = Instance.new("ManualWeld")
1084+
1085-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1085+
if weld:findFirstChild("YAngle") == nil then
1086-
   Partweld.C1 = CFrame.new(0, -0.730434418, 7.62939453e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1086+
local a = Instance.new("NumberValue", weld)
1087-
    Partweld.Parent = Part		
1087+
a.Name = "YAngle"
1088-
					local PartMesh = Instance.new("CylinderMesh",Part)
1088+
1089-
				PartMesh.Name = "Mesh"
1089+
if weld:findFirstChild("ZAngle") == nil then
1090-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1090+
local a = Instance.new("NumberValue", weld)
1091-
				PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
1091+
a.Name = "ZAngle"
1092-
				
1092+
1093-
local Part  = Instance.new("Part", m)
1093+
return weld.C0.p, Vector3.new(weld.XAngle.Value, weld.YAngle.Value, weld.ZAngle.Value)
1094-
			Part:BreakJoints()
1094+
1095-
			Part.TopSurface = "Smooth"
1095+
1096-
			Part.Material = "Neon"
1096+
function SetWeld(weld, i, loops, origpos,origangle, nextpos,nextangle)
1097-
			Part.Transparency = 0			Part.Name = 'Part2'
1097+
if weld:findFirstChild("XAngle") == nil then
1098-
			Part.BottomSurface = "Smooth"
1098+
local a = Instance.new("NumberValue", weld)
1099-
			Part.FormFactor = "Custom" Part.CanCollide = false
1099+
a.Name = "XAngle"
1100-
			Part.BrickColor = BrickColor.new("Cyan")
1100+
1101-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
1101+
if weld:findFirstChild("YAngle") == nil then
1102-
			    local Partweld = Instance.new("ManualWeld")
1102+
local a = Instance.new("NumberValue", weld)
1103-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1103+
a.Name = "YAngle"
1104-
   Partweld.C1 = CFrame.new(0, -0.955184937, -0.179762959, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1104+
1105-
    Partweld.Parent = Part		
1105+
if weld:findFirstChild("ZAngle") == nil then
1106-
					local PartMesh = Instance.new("CylinderMesh",Part)
1106+
local a = Instance.new("NumberValue", weld)
1107-
				PartMesh.Name = "Mesh"
1107+
a.Name = "ZAngle"
1108-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1108+
1109-
				PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
1109+
1110-
				
1110+
local tox,toy,toz = 0,0,0
1111-
				table.insert(bltb, Part)
1111+
if origangle.x > nextangle.x then
1112-
				
1112+
tox = -math.abs(origangle.x - nextangle.x) /loops*i
1113-
local Part  = Instance.new("Part", m)
1113+
1114-
			Part:BreakJoints()
1114+
tox = math.abs(origangle.x - nextangle.x) /loops*i
1115-
			Part.TopSurface = "Smooth"
1115+
1116-
			Part.Material = "SmoothPlastic"
1116+
if origangle.y > nextangle.y then
1117-
			Part.Transparency = 0			Part.Name = 'Part'
1117+
toy = -math.abs(origangle.y - nextangle.y) /loops*i
1118-
			Part.BottomSurface = "Smooth"
1118+
1119-
			Part.FormFactor = "Custom" Part.CanCollide = false
1119+
toy = math.abs(origangle.y - nextangle.y) /loops*i
1120-
			Part.BrickColor = BrickColor.new("Really black")
1120+
1121-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
1121+
if origangle.z > nextangle.z then
1122-
			    local Partweld = Instance.new("ManualWeld")
1122+
toz = -math.abs(origangle.z - nextangle.z) /loops*i
1123-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1123+
1124-
   Partweld.C1 = CFrame.new(0, -0.842823029, -0.393225789, 0.99998641, 0, 1.77634477e-015, -1.32347999e-023, 1, 0, -1.77634477e-015, 0, 0.99998641)
1124+
toz = math.abs(origangle.z - nextangle.z) /loops*i
1125-
    Partweld.Parent = Part		
1125+
1126-
					local PartMesh = Instance.new("BlockMesh",Part)
1126+
1127-
				PartMesh.Name = "Mesh"
1127+
local tox2,toy2,toz2 = 0,0,0
1128-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1128+
if origpos.x > nextpos.x then
1129-
				PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
1129+
tox2 = -math.abs(origpos.x - nextpos.x) /loops*i
1130-
				
1130+
1131-
local Part  = Instance.new("Part", m)
1131+
tox2 = math.abs(origpos.x - nextpos.x) /loops*i
1132-
			Part:BreakJoints()
1132+
1133-
			Part.TopSurface = "Smooth"
1133+
if origpos.y > nextpos.y then
1134-
			Part.Material = "SmoothPlastic"
1134+
toy2 = -math.abs(origpos.y - nextpos.y) /loops*i
1135-
			Part.Transparency = 0			Part.Name = 'Part'
1135+
1136-
			Part.BottomSurface = "Smooth"
1136+
toy2 = math.abs(origpos.y - nextpos.y) /loops*i
1137-
			Part.FormFactor = "Custom" Part.CanCollide = false
1137+
1138-
			Part.BrickColor = BrickColor.new("Really black")
1138+
if origpos.z > nextpos.z then
1139-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
1139+
toz2 = -math.abs(origpos.z - nextpos.z) /loops*i
1140-
			    local Partweld = Instance.new("ManualWeld")
1140+
1141-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1141+
toz2 = math.abs(origpos.z - nextpos.z) /loops*i
1142-
   Partweld.C1 = CFrame.new(0.597281575, -0.842823029, -0.00578403473, -0.258815438, 0, 0.965912819, 0, 1, 0, -0.965912819, 0, -0.258815438)
1142+
1143-
    Partweld.Parent = Part		
1143+
1144-
					local PartMesh = Instance.new("BlockMesh",Part)
1144+
weld.XAngle.Value = origangle.x + tox
1145-
				PartMesh.Name = "Mesh"
1145+
weld.YAngle.Value = origangle.y + toy
1146-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1146+
weld.ZAngle.Value = origangle.z + toz
1147-
				PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
1147+
weld.C0 = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2) * CFrame.Angles(origangle.x + tox,origangle.y + toy,origangle.z + toz)
1148-
				
1148+
1149-
local Part  = Instance.new("Part", m)
1149+
1150-
			Part:BreakJoints()
1150+
function LoadTextures()
1151-
			Part.TopSurface = "Smooth"
1151+
local pls = game:service("ContentProvider")
1152-
			Part.Material = "Neon"
1152+
for i, v in pairs(loadids) do
1153-
			Part.Transparency = 0.5			Part.Name = 'Part3'
1153+
pls:Preload("http://www.roblox.com/asset/?id="..v)
1154-
			Part.BottomSurface = "Smooth"
1154+
wait(0.04)
1155-
			Part.FormFactor = "Custom" Part.CanCollide = false
1155+
1156-
			Part.BrickColor = BrickColor.new("Cyan")
1156+
1157-
			Part.Size = Vector3.new(0.200000003, 4.62046242, 0.449476063)
1157+
LoadTextures()
1158-
			    local Partweld = Instance.new("ManualWeld")
1158+
1159-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1159+
function CreateGui()
1160-
   Partweld.C1 = CFrame.new(3.24249268e-005, -3.32155609, -4.76837158e-007, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1160+
for i, v in pairs(player.PlayerGui:children()) do
1161-
    Partweld.Parent = Part		
1161+
if v.className == "ScreenGui" and v.Name == "staminaGui" then
1162-
					local PartMesh = Instance.new("BlockMesh",Part)
1162+
v:remove()
1163-
				PartMesh.Name = "Mesh"
1163+
1164-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1164+
1165-
				PartMesh.Scale = Vector3.new(0.230356485, 1, 1)
1165+
local g = Instance.new("ScreenGui", player.PlayerGui)
1166-
				
1166+
g.Name = "staminaGui"
1167-
				table.insert(bltb, Part)
1167+
1168-
				
1168+
local c = Instance.new("Frame", g)
1169-
local Part  = Instance.new("Part", m)
1169+
c.Visible = false
1170-
			Part:BreakJoints()
1170+
c.Size = UDim2.new(0,86,0,320)
1171-
			Part.TopSurface = "Smooth"
1171+
c.BackgroundTransparency = 1
1172-
			Part.Material = "SmoothPlastic"
1172+
c.Position = UDim2.new(1,-96,0.5,-160)
1173-
			Part.Transparency = 0			Part.Name = 'Part'
1173+
c.Name = "Container"
1174-
			Part.BottomSurface = "Smooth"
1174+
1175-
			Part.FormFactor = "Custom" Part.CanCollide = false
1175+
local t = Instance.new("TextLabel", c)
1176-
			Part.BrickColor = BrickColor.new("Really black")
1176+
t.Size = UDim2.new(0,0,-0.1,0)
1177-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
1177+
t.Position = UDim2.new(0.3,0,0.5,0)
1178-
			    local Partweld = Instance.new("ManualWeld")
1178+
t.TextXAlignment = "Right"
1179-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1179+
t.Font = "ArialBold"
1180-
   Partweld.C1 = CFrame.new(0.597218513, -0.842823029, 0.00602054596, 0.258815646, 0, 0.9659127, 0, 1, 0, -0.9659127, 0, 0.258815646)
1180+
t.TextTransparency = 0.1
1181-
    Partweld.Parent = Part		
1181+
t.TextColor3 = Color3.new(0,0.6,0.8)
1182-
					local PartMesh = Instance.new("BlockMesh",Part)
1182+
t.TextStrokeColor3 = Color3.new(0,0.2,0.8)
1183-
				PartMesh.Name = "Mesh"
1183+
t.TextStrokeTransparency = 0.3
1184-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1184+
t.FontSize = 6
1185-
				PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
1185+
t.BackgroundTransparency = 1
1186-
				
1186+
local t2 = t:Clone()
1187-
local Part  = Instance.new("Part", m)
1187+
t2.Parent = c
1188-
			Part:BreakJoints()
1188+
t2.Size = UDim2.new(0,0,0.1,0)
1189-
			Part.TopSurface = "Smooth"
1189+
local l = t:Clone()
1190-
			Part.Material = "Neon"
1190+
l.Parent = c
1191-
			Part.Transparency = 0			Part.Name = 'Part4'
1191+
l.Size = UDim2.new(0,0,0,0)
1192-
			Part.BottomSurface = "Smooth"
1192+
l.Text = "-----"
1193-
			Part.FormFactor = "Custom" Part.CanCollide = false
1193+
1194-
			Part.BrickColor = BrickColor.new("Cyan")
1194+
local f1 = Instance.new("Frame", c)
1195-
			Part.Size = Vector3.new(0.337107092, 1.12369001, 0.200000003)
1195+
f1.Name = "Backing"
1196-
			    local Partweld = Instance.new("ManualWeld")
1196+
f1.ClipsDescendants = true
1197-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1197+
f1.Size = UDim2.new(1,0,0,0)
1198-
   Partweld.C1 = CFrame.new(0, 0, -0.123583317, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1198+
f1.BackgroundColor3 = Color3.new(0.8,0,0)
1199-
    Partweld.Parent = Part		
1199+
f1.BackgroundTransparency = 1
1200-
					local PartMesh = Instance.new("CylinderMesh",Part)
1200+
local f1img = Instance.new("ImageLabel", f1)
1201-
				PartMesh.Name = "Mesh"
1201+
f1img.BackgroundTransparency = 1
1202-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1202+
f1img.Image = "http://www.roblox.com/asset/?id=112474909"
1203-
				PartMesh.Scale = Vector3.new(1, 1, 0.561845064)
1203+
f1img.Size = UDim2.new(1,0,0,c.Size.Y.Offset)
1204-
				
1204+
1205-
				table.insert(bltb, Part)
1205+
local f2 = Instance.new("Frame", c)
1206-
				
1206+
f2.Name = "Overlay"
1207-
local Part  = Instance.new("Part", m)
1207+
f2.ClipsDescendants = true
1208-
			Part:BreakJoints()
1208+
f2.Size = UDim2.new(1,0,1,0)
1209-
			Part.TopSurface = "Smooth"
1209+
f2.BackgroundColor3 = Color3.new(0,0,0.8)
1210-
			Part.Material = "SmoothPlastic"
1210+
f2.BackgroundTransparency = 1
1211-
			Part.Transparency = 0			Part.Name = 'Part'
1211+
local f2img = Instance.new("ImageLabel", f2)
1212-
			Part.BottomSurface = "Smooth"
1212+
f2img.BackgroundTransparency = 1
1213-
			Part.FormFactor = "Custom" Part.CanCollide = false
1213+
f2img.Image = "http://www.roblox.com/asset/?id=112474911"
1214-
			Part.BrickColor = BrickColor.new("Really black")
1214+
f2img.Size = UDim2.new(1,0,0,c.Size.Y.Offset)
1215-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
1215+
1216-
			    local Partweld = Instance.new("ManualWeld")
1216+
function Calculate()
1217-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1217+
local ysize = c.Size.Y.Offset
1218-
   Partweld.C1 = CFrame.new(0, -0.842823029, 0.393286943, 0.99998641, 1.07852229e-016, -0, -1.14204248e-016, 1, -2.3803019e-013, -0, 2.38031816e-013, 0.99998641)
1218+
local per = (stamina/maxstamina) * c.Size.Y.Offset
1219-
    Partweld.Parent = Part		
1219+
local rem = (-(stamina/maxstamina-1)) * c.Size.Y.Offset
1220-
					local PartMesh = Instance.new("BlockMesh",Part)
1220+
f1.Size = UDim2.new(1,0,0,rem)
1221-
				PartMesh.Name = "Mesh"
1221+
f2.Size = UDim2.new(1,0,0,per)
1222-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1222+
f2.Position = UDim2.new(0,0,0,rem)
1223-
				PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
1223+
f2img.Position = UDim2.new(0,0,0,-rem)
1224-
				
1224+
t.Text = math.floor(stamina)
1225-
local Part  = Instance.new("Part", m)
1225+
t2.Text = maxstamina
1226-
			Part:BreakJoints()
1226+
1227-
			Part.TopSurface = "Smooth"
1227+
Calculate()
1228-
			Part.Material = "Neon"
1228+
1229-
			Part.Transparency = 0			Part.Name = 'Part5'
1229+
wait(0.01)
1230-
			Part.BottomSurface = "Smooth"
1230+
c.Visible = true
1231-
			Part.FormFactor = "Custom" Part.CanCollide = false
1231+
1232-
			Part.BrickColor = BrickColor.new("Cyan")
1232+
CreateGui()
1233-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
1233+
1234-
			    local Partweld = Instance.new("ManualWeld")
1234+
player.CharacterAdded:connect(function()
1235-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1235+
1236-
   Partweld.C1 = CFrame.new(0, -0.842823029, -0.230328798, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1236+
Torsoz = char:findFirstChild("Torso")
1237-
    Partweld.Parent = Part		
1237+
RA = char:findFirstChild("Right Arm")
1238-
					local PartMesh = Instance.new("CylinderMesh",Part)
1238+
LA = char:findFirstChild("Left Arm")
1239-
				PartMesh.Name = "Mesh"
1239+
RL = char:findFirstChild("Right Leg")
1240-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1240+
LL = char:findFirstChild("Left Leg")
1241-
				PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
1241+
H = char:findFirstChild("Head")
1242-
				
1242+
Hu = char:findFirstChild("Humanoid")
1243-
				table.insert(bltb, Part)
1243+
RS = Torsoz:findFirstChild("Right Shoulder")
1244-
				
1244+
LS = Torsoz:findFirstChild("Left Shoulder")
1245-
local Part  = Instance.new("Part", m)
1245+
RH = Torsoz:findFirstChild("Right Hip")
1246-
			Part:BreakJoints()
1246+
LH = Torsoz:findFirstChild("Left Hip")
1247-
			Part.TopSurface = "Smooth"
1247+
N = Torsoz:findFirstChild("Neck")
1248-
			Part.Material = "Neon"
1248+
stamina = maxstamina
1249-
			Part.Transparency = 0			Part.Name = 'Part6'
1249+
CreateGui()
1250-
			Part.BottomSurface = "Smooth"
1250+
1251-
			Part.FormFactor = "Custom" Part.CanCollide = false
1251+
1252-
			Part.BrickColor = BrickColor.new("Cyan")
1252+
function RAY(pos, dir, startpos, endpos, distleft, collidedlist)
1253-
			Part.Size = Vector3.new(0.337107092, 0.200000003, 0.337107033)
1253+
collidedlist = collidedlist or {char}
1254-
			    local Partweld = Instance.new("ManualWeld")
1254+
startpos = startpos or pos
1255-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1255+
distleft = distleft or dir.unit * dir.magnitude
1256-
   Partweld.C1 = CFrame.new(0, -0.618034363, 9.53674316e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1256+
endpos = endpos or pos + distleft
1257-
    Partweld.Parent = Part		
1257+
local ray = Ray.new(pos, distleft)
1258-
					local PartMesh = Instance.new("CylinderMesh",Part)
1258+
local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist)
1259-
				PartMesh.Name = "Mesh"
1259+
1260-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1260+
local p = P:Clone()
1261-
				PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
1261+
p.Parent = char
1262-
				
1262+
p.Size = Vector3.new(0.4,0.4,0.4)
1263-
				table.insert(bltb, Part)
1263+
p.BrickColor = BrickColor.new("Lime green")
1264-
				
1264+
p.CanCollide = false
1265-
local Part  = Instance.new("Part", m)
1265+
p.CFrame = CFrame.new(enz)
1266-
			Part:BreakJoints()
1266+
p.Transparency = 0.3
1267-
			Part.TopSurface = "Smooth"
1267+
]]
1268-
			Part.Material = "SmoothPlastic"
1268+
if hitz ~= nil then
1269-
			Part.Transparency = 0			Part.Name = 'Part'
1269+
if hitz.CanCollide == false then
1270-
			Part.BottomSurface = "Smooth"
1270+
table.insert(collidedlist, hitz)
1271-
			Part.FormFactor = "Custom" Part.CanCollide = false
1271+
local newpos = enz
1272-
			Part.BrickColor = BrickColor.new("Really black")
1272+
local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude)
1273-
			Part.Size = Vector3.new(0.200000003, 4.60922527, 0.224738017)
1273+
if newdistleft ~= NV then
1274-
			    local Partweld = Instance.new("ManualWeld")
1274+
return RAY(newpos-(dir*0.01), dir, startpos, endpos, newdistleft+(dir*0.01), collidedlist)
1275-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1275+
1276-
   Partweld.C1 = CFrame.new(0, -3.3159256, -1.14440918e-005, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1276+
1277-
    Partweld.Parent = Part		
1277+
1278-
					local PartMesh = Instance.new("BlockMesh",Part)
1278+
1279-
				PartMesh.Name = "Mesh"
1279+
return hitz, enz, ray
1280-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1280+
1281-
				PartMesh.Scale = Vector3.new(0.561845124, 1, 1)
1281+
1282-
				
1282+
function Sit()
1283-
local Part  = Instance.new("Part", m)
1283+
Standing = false
1284-
			Part:BreakJoints()
1284+
local hitz,enz = RAY(Torsoz.Position, Vector3.new(0,-4.1,0))
1285-
			Part.TopSurface = "Smooth"
1285+
local tordir = Vector3.new(Torsoz.CFrame.lookVector.x,0,Torsoz.CFrame.lookVector.z)
1286-
			Part.Material = "Neon"
1286+
if (hitz ~= nil and hitz.CanCollide == true) then
1287-
			Part.Transparency = 0			Part.Name = 'Part7'
1287+
local cf = CFrame.new(enz+Vector3.new(0,1.28,0), enz+Vector3.new(0,1.28,0)+tordir) * CFrame.Angles(math.pi/6,0,0)
1288-
			Part.BottomSurface = "Smooth"
1288+
local hitz2,enz2 = RAY(enz+Vector3.new(0,2.25,0), tordir*-2.2)
1289-
			Part.FormFactor = "Custom" Part.CanCollide = false
1289+
Hu.PlatformStand = true
1290-
			Part.BrickColor = BrickColor.new("Cyan")
1290+
Torsoz.CFrame = cf
1291-
			Part.Size = Vector3.new(0.337107092, 0.200000003, 0.337107033)
1291+
local bp = Instance.new("BodyPosition", Torsoz)
1292-
			    local Partweld = Instance.new("ManualWeld")
1292+
bp.Name = "StaminaBodyObject"
1293-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1293+
bp.maxForce = Vector3.new(1/0,1/0,1/0)
1294-
   Partweld.C1 = CFrame.new(0, 0.618049622, 9.53674316e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1294+
bp.D = 100
1295-
    Partweld.Parent = Part		
1295+
bp.position = cf.p
1296-
					local PartMesh = Instance.new("CylinderMesh",Part)
1296+
local bg = Instance.new("BodyGyro", Torsoz)
1297-
				PartMesh.Name = "Mesh"
1297+
bg.Name = "StaminaBodyObject"
1298-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1298+
bg.maxTorque = Vector3.new(1/0,1/0,1/0)
1299-
				PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
1299+
bg.cframe = cf
1300-
				
1300+
bg.D = 100
1301-
				table.insert(bltb, Part)
1301+
SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.34,-1,0.2), Vector3.new((math.pi/2)-(math.pi/6),0,math.pi/8))
1302-
				
1302+
SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.34,-1,0.2), Vector3.new((math.pi/2)-(math.pi/6),0,-math.pi/8))
1303-
local Part  = Instance.new("Part", m)
1303+
1304-
			Part:BreakJoints()
1304+
if hitz2 ~= nil and hitz2.CanCollide == true then
1305-
			Part.TopSurface = "Smooth"
1305+
Joint3.C0 = CFrame.new(0.9,0.4,-0.45) * CFrame.Angles(0,math.pi/2.13,0) * CFrame.Angles(math.pi/2.3,0,0)
1306-
			Part.Material = "Neon"
1306+
Joint4.C0 = CFrame.new(-0.9,0.4,-0.4) * CFrame.Angles(0,-math.pi/2.05,0) * CFrame.Angles(math.pi/2.3,0,0)
1307-
			Part.Transparency = 0			Part.Name = 'Part8'
1307+
Joint5.C0 = CFrame.new(0,1,0) * CFrame.Angles(-math.pi/8.8,0,0)
1308-
			Part.BottomSurface = "Smooth"
1308+
1309-
			Part.FormFactor = "Custom" Part.CanCollide = false
1309+
SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.4,0.4,0.1), Vector3.new(-(math.pi/6)-(math.pi/10),0,math.pi/9))
1310-
			Part.BrickColor = BrickColor.new("Cyan")
1310+
SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.4,0.4,0.1), Vector3.new(-(math.pi/6)-(math.pi/10),0,-math.pi/9))
1311-
			Part.Size = Vector3.new(0.337107092, 1.12369001, 0.200000003)
1311+
SetWeld(Joint5,1,1, NV,NV, Vector3.new(0,1,0), Vector3.new(-math.pi/12,0,0))
1312-
			    local Partweld = Instance.new("ManualWeld")
1312+
1313-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1313+
1314-
   Partweld.C1 = CFrame.new(0, 0, 0.117978811, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1314+
Sitting = true
1315-
    Partweld.Parent = Part		
1315+
Action = "Sitting"
1316-
					local PartMesh = Instance.new("CylinderMesh",Part)
1316+
1317-
				PartMesh.Name = "Mesh"
1317+
1318-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1318+
1319-
				PartMesh.Scale = Vector3.new(1, 1, 0.561845064)
1319+
1320-
				
1320+
function Stand()
1321-
				table.insert(bltb, Part)
1321+
Hu.PlatformStand = false
1322-
				
1322+
if Sitting == true then
1323-
local Part  = Instance.new("Part", m)
1323+
local tordir = Torsoz.Position + (Torsoz.CFrame.lookVector*10000)
1324-
			Part:BreakJoints()
1324+
local cf = CFrame.new(Torsoz.Position + Vector3.new(0,1.8,0), Vector3.new(tordir.x,Torsoz.Position.y,tordir.z))
1325-
			Part.TopSurface = "Smooth"
1325+
Torsoz.CFrame = cf
1326-
			Part.Material = "SmoothPlastic"
1326+
1327-
			Part.Transparency = 0			Part.Name = 'Part'
1327+
for i, v in pairs(Torsoz:children()) do
1328-
			Part.BottomSurface = "Smooth"
1328+
if v.Name == "StaminaBodyObject" then
1329-
			Part.FormFactor = "Custom" Part.CanCollide = false
1329+
v:remove()
1330-
			Part.BrickColor = BrickColor.new("Really black")
1330+
1331-
			Part.Size = Vector3.new(0.561845124, 0.200000003, 0.561845005)
1331+
1332-
			    local Partweld = Instance.new("ManualWeld")
1332+
RH.Part0 = nil
1333-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1333+
LH.Part0 = nil
1334-
   Partweld.C1 = CFrame.new(0, -0.842823029, 9.53674316e-006, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1334+
RS.Part0 = nil
1335-
    Partweld.Parent = Part		
1335+
LS.Part0 = nil
1336-
					local PartMesh = Instance.new("CylinderMesh",Part)
1336+
Joint1.Part0 = Torsoz
1337-
				PartMesh.Name = "Mesh"
1337+
Joint1.Part1 = RL
1338-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1338+
Joint1.C0 = CFrame.new(0.5,-1,0)
1339-
				PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
1339+
Joint1.C1 = CFrame.new(0,1,0)
1340-
				
1340+
Joint2.Part0 = Torsoz
1341-
local Part  = Instance.new("Part", m)
1341+
Joint2.Part1 = LL
1342-
			Part:BreakJoints()
1342+
Joint2.C0 = CFrame.new(-0.5,-1,0)
1343-
			Part.TopSurface = "Smooth"
1343+
Joint2.C1 = CFrame.new(0,1,0)
1344-
			Part.Material = "Neon"
1344+
Joint3.Part0 = Torsoz
1345-
			Part.Transparency = 0			Part.Name = 'Part9'
1345+
Joint3.Part1 = RA
1346-
			Part.BottomSurface = "Smooth"
1346+
Joint3.C0 = CFrame.new(1.5,0.5,0)
1347-
			Part.FormFactor = "Custom" Part.CanCollide = false
1347+
Joint3.C1 = CFrame.new(0,0.5,0)
1348-
			Part.BrickColor = BrickColor.new("Cyan")
1348+
Joint4.Part0 = Torsoz
1349-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
1349+
Joint4.Part1 = LA
1350-
			    local Partweld = Instance.new("ManualWeld")
1350+
Joint4.C0 = CFrame.new(-1.5,0.5,0)
1351-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1351+
Joint4.C1 = CFrame.new(0,0.5,0)
1352-
   Partweld.C1 = CFrame.new(0.53044498, -0.842823029, 0.0229825974, 0.258815438, -1.97460321e-017, -0.965912819, 3.30120669e-017, 1, -1.15873321e-017, 0.965912819, -2.88872116e-017, 0.258815438)
1352+
Joint5.Part0 = Torsoz
1353-
    Partweld.Parent = Part		
1353+
Joint5.Part1 = H
1354-
					local PartMesh = Instance.new("BlockMesh",Part)
1354+
Joint5.C0 = CFrame.new(0,1,0)
1355-
				PartMesh.Name = "Mesh"
1355+
Joint5.C1 = CFrame.new(0,-0.5,0)
1356-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1356+
Sitting = false
1357-
				PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
1357+
Diving = false
1358-
				
1358+
Standing = true
1359-
				table.insert(bltb, Part)
1359+
Action = "Standing"
1360-
				
1360+
1361-
local Part  = Instance.new("Part", m)
1361+
1362-
			Part:BreakJoints()
1362+
--------------------------------------- Dive ----------------------------------
1363-
			Part.TopSurface = "Smooth"
1363+
1364-
			Part.Material = "SmoothPlastic"
1364+
function Dive()
1365-
			Part.Transparency = 0			Part.Name = 'Part'
1365+
stamina = stamina - 10
1366-
			Part.BottomSurface = "Smooth"
1366+
flow.Value = flow.Value + 10
1367-
			Part.FormFactor = "Custom" Part.CanCollide = false
1367+
if flow.Value > 100 then
1368-
			Part.BrickColor = BrickColor.new("Really black")
1368+
flow.Value = 100
1369-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
1369+
1370-
			    local Partweld = Instance.new("ManualWeld")
1370+
Standing = false
1371-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1371+
local dir = Vector3.new(Torsoz.CFrame.lookVector.x,0,Torsoz.CFrame.lookVector.z)
1372-
   Partweld.C1 = CFrame.new(0.529430389, -0.842823029, 0.0128250122, 0.258815438, 1.35525272e-020, -0.965912819, -3.50722156e-021, 1, 1.35524351e-020, 0.965912819, 0, 0.258815438)
1372+
GravPoint = 18
1373-
    Partweld.Parent = Part		
1373+
DivingDir = dir
1374-
					local PartMesh = Instance.new("BlockMesh",Part)
1374+
local cf = CFrame.new(Torsoz.Position, dir+Vector3.new(0,Torsoz.Position.y,0))
1375-
				PartMesh.Name = "Mesh"
1375+
DivingCF = cf
1376-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1376+
DivingDir = dir
1377-
				PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
1377+
Hu.PlatformStand = true
1378-
				
1378+
local bv = Instance.new("BodyVelocity", Torsoz)
1379-
local Part  = Instance.new("Part", m)
1379+
bv.Name = "StaminaBodyObject"
1380-
			Part:BreakJoints()
1380+
bv.maxForce = Vector3.new(1/0,1/0,1/0)
1381-
			Part.TopSurface = "Smooth"
1381+
bv.velocity = Vector3.new(DivingDir.x*24,GravPoint,DivingDir.z*24)
1382-
			Part.Material = "SmoothPlastic"
1382+
DivingBV = bv
1383-
			Part.Transparency = 0			Part.Name = 'Part'
1383+
local bg = Instance.new("BodyGyro", Torsoz)
1384-
			Part.BottomSurface = "Smooth"
1384+
bg.Name = "StaminaBodyObject"
1385-
			Part.FormFactor = "Custom" Part.CanCollide = false
1385+
bg.maxTorque = Vector3.new(1/0,1/0,1/0)
1386-
			Part.BrickColor = BrickColor.new("Really black")
1386+
bg.cframe = CFrame.new(Torsoz.Position, Torsoz.Position+bv.velocity) * CFrame.Angles(-math.pi/2,0,0)
1387-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
1387+
bg.D = 100
1388-
			    local Partweld = Instance.new("ManualWeld")
1388+
DivingBG = bg
1389-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1389+
1390-
   Partweld.C1 = CFrame.new(0.529132843, -0.842823029, -0.0117540359, -0.258815706, -3.25260652e-018, -0.965912759, 3.89845789e-017, 1, -1.38099317e-017, 0.965912759, -4.1236952e-017, -0.258815706)
1390+
local joint = Joint3
1391-
    Partweld.Parent = Part		
1391+
joint.C1 = CFrame.new(0,0.5,0)
1392-
					local PartMesh = Instance.new("BlockMesh",Part)
1392+
local joint2 = Joint4
1393-
				PartMesh.Name = "Mesh"
1393+
joint2.C1 = CFrame.new(0,0.5,0)
1394-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1394+
local joint3 = Joint1
1395-
				PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
1395+
joint3.C1 = CFrame.new(0,1,0)
1396-
				
1396+
local joint4 = Joint2
1397-
local Part  = Instance.new("Part", m)
1397+
joint4.C1 = CFrame.new(0,1,0)
1398-
			Part:BreakJoints()
1398+
1399-
			Part.TopSurface = "Smooth"
1399+
local joint5 = Joint5
1400-
			Part.Material = "SmoothPlastic"
1400+
1401-
			Part.Transparency = 0			Part.Name = 'Part'
1401+
Diving = true
1402-
			Part.BottomSurface = "Smooth"
1402+
Action = "Diving"
1403-
			Part.FormFactor = "Custom" Part.CanCollide = false
1403+
1404-
			Part.BrickColor = BrickColor.new("Really black")
1404+
for i = 1, 8 do
1405-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.337107062)
1405+
SetWeld(joint,i,8, Vector3.new(1.5,0.5,0), NV, Vector3.new(1.45,0.5,0.1), Vector3.new(-0.2,-math.pi/9,math.pi/13))
1406-
			    local Partweld = Instance.new("ManualWeld")
1406+
SetWeld(joint2,i,8, Vector3.new(-1.5,0.5,0), NV, Vector3.new(-1.45,0.5,0.1), Vector3.new(-0.2,math.pi/9,-math.pi/13))
1407-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1407+
SetWeld(joint3,i,8, Vector3.new(0.5,-1,0), NV, Vector3.new(0.5,-1,0.03), Vector3.new(-0.2,-math.pi/10,math.pi/14))
1408-
   Partweld.C1 = CFrame.new(0, -0.842823029, -0.393235803, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1408+
SetWeld(joint4,i,8, Vector3.new(-0.5,-1,0), NV, Vector3.new(-0.5,-1,0.03), Vector3.new(-0.2,math.pi/10,-math.pi/14))
1409-
    Partweld.Parent = Part		
1409+
SetWeld(joint5,i,8, Vector3.new(0,1,0), NV, Vector3.new(0,1,0), Vector3.new(0.45,0,0))
1410-
					local PartMesh = Instance.new("BlockMesh",Part)
1410+
wait(0.025)
1411-
				PartMesh.Name = "Mesh"
1411+
1412-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1412+
1413-
				PartMesh.Scale = Vector3.new(0.561845124, 0.561845064, 1)
1413+
local counter = 0
1414-
				
1414+
while Diving == true do
1415-
local Part  = Instance.new("Part", m)
1415+
counter = counter + 1
1416-
			Part:BreakJoints()
1416+
bg.Parent = Torsoz
1417-
			Part.TopSurface = "Smooth"
1417+
local hitz, enz = RAY(Torsoz.Position, bv.velocity.unit*4.6)
1418-
			Part.Material = "Neon"
1418+
if hitz ~= nil and hitz.CanCollide == true then
1419-
			Part.Transparency = 0			Part.Name = 'Part10'
1419+
local hitz2, enz2 = RAY(Torsoz.Position, Vector3.new(0,-4,0))
1420-
			Part.BottomSurface = "Smooth"
1420+
if hitz2 ~= nil then
1421-
			Part.FormFactor = "Custom" Part.CanCollide = false
1421+
Diving = "Rolling"
1422-
			Part.BrickColor = BrickColor.new("Cyan")
1422+
Action = "DiveRolling"
1423-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
1423+
1424-
			    local Partweld = Instance.new("ManualWeld")
1424+
Torsoz.CFrame = Torsoz.CFrame * CFrame.new(0,-0.3,0)
1425-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1425+
Torsoz.Velocity = NV
1426-
   Partweld.C1 = CFrame.new(-0.525370121, -0.842823029, 0.0256881714, 0.258815676, -6.64073831e-019, 0.9659127, 1.05359266e-018, 1, 4.06573049e-019, -0.9659127, 9.14795583e-019, 0.258815676)
1426+
flow.Value = 0
1427-
    Partweld.Parent = Part		
1427+
break
1428-
					local PartMesh = Instance.new("BlockMesh",Part)
1428+
1429-
				PartMesh.Name = "Mesh"
1429+
1430-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1430+
if counter > 190 then
1431-
				PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
1431+
break
1432-
				
1432+
1433-
				table.insert(bltb, Part)
1433+
wait(0.02)
1434-
				
1434+
1435-
local Part  = Instance.new("Part", m)
1435+
1436-
			Part:BreakJoints()
1436+
bv.velocity = (dir*20) + Vector3.new(0,-0.5,0)
1437-
			Part.TopSurface = "Smooth"
1437+
1438-
			Part.Material = "Neon"
1438+
local bgcf = bg.cframe
1439-
			Part.Transparency = 0			Part.Name = 'Part11'
1439+
local haslanded = false
1440-
			Part.BottomSurface = "Smooth"
1440+
local count = 0
1441-
			Part.FormFactor = "Custom" Part.CanCollide = false
1441+
1442-
			Part.BrickColor = BrickColor.new("Cyan")
1442+
while haslanded == false do
1443-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
1443+
bg.cframe = bgcf * CFrame.Angles(-0.3*count,0,0)
1444-
			    local Partweld = Instance.new("ManualWeld")
1444+
local hitz, enz = RAY(Torsoz.Position, ((Torsoz.CFrame*CFrame.new(0,-1,0)).p - Torsoz.CFrame.p).unit*1.6)
1445-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1445+
if hitz ~= nil and hitz.CanCollide == true then
1446-
   Partweld.C1 = CFrame.new(0, -0.730434418, 0.174170732, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1446+
haslanded = true
1447-
    Partweld.Parent = Part		
1447+
1448-
					local PartMesh = Instance.new("CylinderMesh",Part)
1448+
local hitz2, enz2 = RAY(Torsoz.Position, Vector3.new(0,-3.8,0))
1449-
				PartMesh.Name = "Mesh"
1449+
if hitz2 == nil then
1450-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1450+
Torsoz.Velocity = NV
1451-
				PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
1451+
break
1452-
				
1452+
elseif haslanded == true then
1453-
				table.insert(bltb, Part)
1453+
local bp = Instance.new("BodyPosition", Torsoz)
1454-
				
1454+
bp.Name = "StaminaJumpFix"
1455-
local Part  = Instance.new("Part", m)
1455+
bp.maxForce = Vector3.new(0,1/0,0)
1456-
			Part:BreakJoints()
1456+
bp.P = 7000
1457-
			Part.TopSurface = "Smooth"
1457+
bp.position = enz2 + Vector3.new(0,2.8,0)
1458-
			Part.Material = "Neon"
1458+
game:service("Debris"):AddItem(bp, 0.3)
1459-
			Part.Transparency = 0			Part.Name = 'Part12'
1459+
1460-
			Part.BottomSurface = "Smooth"
1460+
bv.velocity = (dir*20) + Vector3.new(0,-(Torsoz.Position - enz2).magnitude*3,0)
1461-
			Part.FormFactor = "Custom" Part.CanCollide = false
1461+
1462-
			Part.BrickColor = BrickColor.new("Cyan")
1462+
1463-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
1463+
count = count + 1
1464-
			    local Partweld = Instance.new("ManualWeld")
1464+
if count <= 6 then
1465-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1465+
local i = count
1466-
   Partweld.C1 = CFrame.new(-0.59340477, -0.842823029, 0.00790405273, -0.258815557, 0, -0.9659127, 0, 1, 0, 0.9659127, 0, -0.258815557)
1466+
local j1,j1a = GetWeld(joint)
1467-
    Partweld.Parent = Part		
1467+
local j2,j2a = GetWeld(joint2)
1468-
					local PartMesh = Instance.new("BlockMesh",Part)
1468+
local j3,j3a = GetWeld(joint3)
1469-
				PartMesh.Name = "Mesh"
1469+
local j4,j4a = GetWeld(joint4)
1470-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1470+
local j5,j5a = GetWeld(joint5)
1471-
				PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
1471+
SetWeld(joint,i,6, j1,j1a, Vector3.new(1.35,0.5,-0.2), Vector3.new(math.pi/2.6,0,-math.pi/5.8))
1472-
				
1472+
SetWeld(joint2,i,6, j2,j2a, Vector3.new(-1.35,0.5,-0.2), Vector3.new(math.pi/2.6,0,math.pi/5.8))
1473-
				table.insert(bltb, Part)
1473+
SetWeld(joint3,i,6, j3,j3a, Vector3.new(0.51,0.4,-0.6), Vector3.new(-0.1,0,0.05))
1474-
				
1474+
SetWeld(joint4,i,6, j4,j4a, Vector3.new(-0.51,0.4,-0.6), Vector3.new(-0.1,0,-0.05))
1475-
local Part  = Instance.new("Part", m)
1475+
SetWeld(joint5,i,6, j5,j5a, Vector3.new(0,1,0), Vector3.new(-0.4,0,0))
1476-
			Part:BreakJoints()
1476+
elseif count >= 50 then
1477-
			Part.TopSurface = "Smooth"
1477+
break
1478-
			Part.Material = "Neon"
1478+
1479-
			Part.Transparency = 0			Part.Name = 'Part13'
1479+
wait(0.02)
1480-
			Part.BottomSurface = "Smooth"
1480+
1481-
			Part.FormFactor = "Custom" Part.CanCollide = false
1481+
1482-
			Part.BrickColor = BrickColor.new("Cyan")
1482+
Torsoz.Velocity = NV
1483-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.382054657)
1483+
1484-
			    local Partweld = Instance.new("ManualWeld")
1484+
Stand()
1485-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1485+
DivingCooldown = 9
1486-
   Partweld.C1 = CFrame.new(0.00023651123, -0.842823029, -0.364931583, 0.99998641, -2.62516024e-017, -1.67287184e-026, 2.62512451e-017, 1, 3.6862117e-018, 1.67287184e-026, -3.68626216e-018, 0.99998641)
1486+
1487-
    Partweld.Parent = Part		
1487+
1488-
					local PartMesh = Instance.new("BlockMesh",Part)
1488+
function FindSurface(part, position)
1489-
				PartMesh.Name = "Mesh"
1489+
local obj = part.CFrame:pointToObjectSpace(position)
1490-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1490+
local siz = part.Size/2
1491-
				PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 1)
1491+
for i,v in pairs(Enum.NormalId:GetEnumItems()) do
1492-
				
1492+
local vec = Vector3.FromNormalId(v)
1493-
				table.insert(bltb, Part)
1493+
local wvec = part.CFrame:vectorToWorldSpace(vec)
1494-
				
1494+
local vz = (obj)/(siz*vec)
1495-
local Part  = Instance.new("Part", m)
1495+
if (math.abs(vz.X-1) < 0.01 or math.abs(vz.Y-1) < 0.01 or math.abs(vz.Z-1) < 0.01) then
1496-
			Part:BreakJoints()
1496+
return wvec,vec
1497-
			Part.TopSurface = "Smooth"
1497+
1498-
			Part.Material = "Neon"
1498+
1499-
			Part.Transparency = 0			Part.Name = 'Part14'
1499+
if part.className == "WedgePart" then
1500-
			Part.BottomSurface = "Smooth"
1500+
return part.CFrame:vectorToWorldSpace(Vector3.new(0,0.707,-0.707)), Vector3.new(0,0.707,-0.707)
1501-
			Part.FormFactor = "Custom" Part.CanCollide = false
1501+
1502-
			Part.BrickColor = BrickColor.new("Cyan")
1502+
1503-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.348343939)
1503+
1504-
			    local Partweld = Instance.new("ManualWeld")
1504+
function HWallRun(part, pos, side)
1505-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1505+
if (part.className == "Part" and part.Shape == Enum.PartType.Block) or part.className ~= "Part" then
1506-
   Partweld.C1 = CFrame.new(0.598263144, -0.842823029, 0.00432395935, -0.258815438, 0, 0.965912819, 0, 1, 0, -0.965912819, 0, -0.258815438)
1506+
flow.Value = flow.Value + 9
1507-
    Partweld.Parent = Part		
1507+
Standing = false
1508-
					local PartMesh = Instance.new("BlockMesh",Part)
1508+
HWallRunning = true
1509-
				PartMesh.Name = "Mesh"
1509+
Action = "HWallRunning"
1510-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1510+
GravPoint = 10
1511-
				PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 0.922500014)
1511+
HWRLastPart = part
1512-
				
1512+
local dir, dirc = FindSurface(part, pos)
1513-
				table.insert(bltb, Part)
1513+
towall = -dir
1514-
				
1514+
dir = (CFrame.new(NV, dir) * CFrame.Angles(0,side,0)).lookVector
1515-
local Part  = Instance.new("Part", m)
1515+
1516-
			Part:BreakJoints()
1516+
local bv = Instance.new("BodyVelocity", Torsoz)
1517-
			Part.TopSurface = "Smooth"
1517+
bv.Name = "StaminaBodyObject"
1518-
			Part.Material = "Neon"
1518+
bv.maxForce = Vector3.new(1/0,1/0,1/0)
1519-
			Part.Transparency = 0			Part.Name = 'Part15'
1519+
bv.P = 9000
1520-
			Part.BottomSurface = "Smooth"
1520+
bv.velocity = (dir*(sprint-0.5)) + Vector3.new(0,GravPoint,0)
1521-
			Part.FormFactor = "Custom" Part.CanCollide = false
1521+
local bg = Instance.new("BodyGyro", Torsoz)
1522-
			Part.BrickColor = BrickColor.new("Cyan")
1522+
bg.Name = "StaminaBodyObject"
1523-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.449476063)
1523+
bg.maxTorque = Vector3.new(1/0,1/0,1/0)
1524-
			    local Partweld = Instance.new("ManualWeld")
1524+
bg.cframe = CFrame.new(Torsoz.Position+(towall*-2), Torsoz.Position) * CFrame.Angles(0,-side,-side/4.2)
1525-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1525+
bg.D = 100
1526-
   Partweld.C1 = CFrame.new(0, -0.842823029, 0.398794174, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1526+
1527-
    Partweld.Parent = Part		
1527+
local sid = Instance.new("Snap")
1528-
					local PartMesh = Instance.new("BlockMesh",Part)
1528+
1529-
				PartMesh.Name = "Mesh"
1529+
local joint1 = Joint3
1530-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1530+
if side == -math.pi/2 then
1531-
				PartMesh.Scale = Vector3.new(0.230356485, 0.618029416, 1)
1531+
SetWeld(joint1,1,1, NV,NV, Vector3.new(1.5,0.5,0), Vector3.new(math.pi/1.3,0.1,math.pi/2.5))
1532-
				
1532+
1533-
				table.insert(bltb, Part)
1533+
sid = joint1
1534-
				
1534+
SetWeld(joint1,1,1, NV,NV, Vector3.new(1.4,0.6,0), Vector3.new(-math.pi/12,0,math.pi/7))
1535-
local Part  = Instance.new("Part", m)
1535+
1536-
			Part:BreakJoints()
1536+
local j1c0 = joint1.C0
1537-
			Part.TopSurface = "Smooth"
1537+
1538-
			Part.Material = "Neon"
1538+
local joint2 = Joint4
1539-
			Part.Transparency = 0			Part.Name = 'Part16'
1539+
if side == math.pi/2 then
1540-
			Part.BottomSurface = "Smooth"
1540+
SetWeld(joint2,1,1, NV,NV, Vector3.new(-1.5,0.5,0), Vector3.new(math.pi/1.3,-0.1,-math.pi/2.5))
1541-
			Part.FormFactor = "Custom" Part.CanCollide = false
1541+
1542-
			Part.BrickColor = BrickColor.new("Cyan")
1542+
sid = joint2
1543-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
1543+
SetWeld(joint2,1,1, NV,NV, Vector3.new(-1.4,0.6,0), Vector3.new(-math.pi/12,0,-math.pi/7))
1544-
			    local Partweld = Instance.new("ManualWeld")
1544+
1545-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1545+
local j2c0 = joint2.C0
1546-
   Partweld.C1 = CFrame.new(0, -0.955184937, 0.174145699, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1546+
1547-
    Partweld.Parent = Part		
1547+
local joint3 = Joint1
1548-
					local PartMesh = Instance.new("CylinderMesh",Part)
1548+
joint3.C1 = CFrame.new(0,1,0)
1549-
				PartMesh.Name = "Mesh"
1549+
if side == -math.pi/2 then
1550-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1550+
SetWeld(joint3,1,1, NV,NV, Vector3.new(0.5,-0.38,-0.3), Vector3.new(0,math.pi/2,0.14))
1551-
				PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
1551+
1552-
				
1552+
SetWeld(joint3,1,1, NV,NV, Vector3.new(0.5,-0.8,-0.2), Vector3.new(0,math.pi/2,0.2))
1553-
				table.insert(bltb, Part)
1553+
1554-
				
1554+
1555-
local Part  = Instance.new("Part", m)
1555+
local joint4 = Joint2
1556-
			Part:BreakJoints()
1556+
joint4.C1 = CFrame.new(0,1,0)
1557-
			Part.TopSurface = "Smooth"
1557+
if side == -math.pi/2 then
1558-
			Part.Material = "Neon"
1558+
SetWeld(joint4,1,1, NV,NV, Vector3.new(-0.5,-0.8,-0.2), Vector3.new(0,0,0.2))
1559-
			Part.Transparency = 0.5			Part.Name = 'Part17'
1559+
1560-
			Part.BottomSurface = "Smooth"
1560+
SetWeld(joint4,1,1, NV,NV, Vector3.new(-0.5,-0.38,-0.3), Vector3.new(0,0,0.14))
1561-
			Part.FormFactor = "Custom" Part.CanCollide = false
1561+
1562-
			Part.BrickColor = BrickColor.new("Cyan")
1562+
1563-
			Part.Size = Vector3.new(0.200000003, 1.01132107, 0.449476063)
1563+
local joint5 = Joint5
1564-
			    local Partweld = Instance.new("ManualWeld")
1564+
SetWeld(joint5,1,1,NV,NV,Vector3.new(0,0.9,0),Vector3.new(0,0,side/7))
1565-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1565+
1566-
   Partweld.C1 = CFrame.new(-8.39233398e-005, -6.13697433, 0.00012421608, -0.99998641, 0, 5.96042398e-008, 0, 1, 0, -5.96042398e-008, 0, -0.99998641)
1566+
Torsoz.CFrame = CFrame.new(pos+(towall*-2), pos) * CFrame.Angles(0,-side,-side/2.2)
1567-
    Partweld.Parent = Part		
1567+
bg.cframe = CFrame.new(pos+(towall*-2), pos) * CFrame.Angles(0,-side,-side/2.2)
1568-
					local PartMesh = Instance.new("SpecialMesh",Part)
1568+
1569-
					PartMesh.MeshId = ""
1569+
local aniangle = 0
1570-
					PartMesh.MeshType = Enum.MeshType.Wedge				PartMesh.Name = "Mesh"
1570+
local aniplus = true
1571-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1571+
local aniangle2 = 0
1572-
				PartMesh.Scale = Vector3.new(0.221366972, 1, 1)
1572+
local aniplus2 = true
1573-
				
1573+
1574-
				table.insert(bltb, Part)
1574+
local prevpart = part
1575-
				
1575+
HWRLastPart = part
1576-
local Part  = Instance.new("Part", m)
1576+
while HWallRunning == true do
1577-
			Part:BreakJoints()
1577+
1578-
			Part.TopSurface = "Smooth"
1578+
if aniangle > math.pi then
1579-
			Part.Material = "SmoothPlastic"
1579+
aniplus = false
1580-
			Part.Transparency = 0			Part.Name = 'Part'
1580+
elseif aniangle < -math.pi then
1581-
			Part.BottomSurface = "Smooth"
1581+
aniplus = true  
1582-
			Part.FormFactor = "Custom" Part.CanCollide = false
1582+
1583-
			Part.BrickColor = BrickColor.new("Really black")
1583+
if aniplus == true then
1584-
			Part.Size = Vector3.new(0.561845124, 0.200000003, 0.449476033)
1584+
aniangle = aniangle + 0.95
1585-
			    local Partweld = Instance.new("ManualWeld")
1585+
elseif aniplus == false then
1586-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1586+
aniangle = aniangle - 0.95
1587-
   Partweld.C1 = CFrame.new(0, -0.955184937, -2.38418579e-007, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1587+
1588-
    Partweld.Parent = Part		
1588+
1589-
					local PartMesh = Instance.new("CylinderMesh",Part)
1589+
if aniangle2 > math.pi then
1590-
				PartMesh.Name = "Mesh"
1590+
aniplus2 = false
1591-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1591+
elseif aniangle2 < -math.pi then
1592-
				PartMesh.Scale = Vector3.new(1, 0.561845064, 1)
1592+
aniplus2 = true  
1593-
				
1593+
1594-
local Part  = Instance.new("Part", m)
1594+
if aniplus2 == true then
1595-
			Part:BreakJoints()
1595+
aniangle2 = aniangle2 + 0.23
1596-
			Part.TopSurface = "Smooth"
1596+
elseif aniplus2 == false then
1597-
			Part.Material = "Neon"
1597+
aniangle2 = aniangle2 - 0.23
1598-
			Part.Transparency = 0			Part.Name = 'Part18'
1598+
1599-
			Part.BottomSurface = "Smooth"
1599+
1600-
			Part.FormFactor = "Custom" Part.CanCollide = false
1600+
Hu.PlatformStand = true
1601-
			Part.BrickColor = BrickColor.new("Cyan")
1601+
local hitz, enz = RAY(Torsoz.Position, Vector3.new(0,-3,0))
1602-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
1602+
local hitz2, enz2 = RAY(Torsoz.Position, towall*3.4)
1603-
			    local Partweld = Instance.new("ManualWeld")
1603+
1604-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1604+
--- if player ends wall run on ground
1605-
   Partweld.C1 = CFrame.new(0, -0.842823029, 0.230348349, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1605+
if hitz ~= nil and hitz.CanCollide == true then
1606-
    Partweld.Parent = Part		
1606+
bg.cframe = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side,0)
1607-
					local PartMesh = Instance.new("CylinderMesh",Part)
1607+
local offset = (bg.cframe.p.y+enz2.y) - bg.cframe.p.y
1608-
				PartMesh.Name = "Mesh"
1608+
Torsoz.CFrame = CFrame.new(Vector3.new(bg.cframe.p.x,offset,bg.cframe.p.z), enz2) * CFrame.Angles(0,-side,0)
1609-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1609+
Torsoz.Velocity = NV
1610-
				PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
1610+
break
1611-
				
1611+
1612-
				table.insert(bltb, Part)
1612+
1613-
				
1613+
---- if new wall found --------
1614-
local Part  = Instance.new("Part", m)
1614+
if hitz2 ~= nil and hitz2.CanCollide == true then
1615-
			Part:BreakJoints()
1615+
if hitz2 ~= prevpart then
1616-
			Part.TopSurface = "Smooth"
1616+
local direct = CFrame.new(Torsoz.Position, Torsoz.Position+dir) * CFrame.Angles(0,side,0)
1617-
			Part.Material = "Neon"
1617+
local hitz3, enz3 = RAY(Torsoz.Position, (direct * CFrame.Angles(0,-side/2.3,0)).lookVector*4)
1618-
			Part.Transparency = 0			Part.Name = 'Part19'
1618+
if hitz3 ~= nil then
1619-
			Part.BottomSurface = "Smooth"
1619+
Torsoz.CFrame = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side*1.1,-side/2.2)
1620-
			Part.FormFactor = "Custom" Part.CanCollide = false
1620+
bg.cframe = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side*1.1,-side/2.2)
1621-
			Part.BrickColor = BrickColor.new("Cyan")
1621+
dir, dirc = FindSurface(hitz2, enz2)
1622-
			Part.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
1622+
towall = -dir
1623-
			    local Partweld = Instance.new("ManualWeld")
1623+
dir = (CFrame.new(NV, dir) * CFrame.Angles(0,side,0)).lookVector
1624-
   Partweld.Part0 =  Handle   Partweld.Part1 = Part  Partweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1624+
prevpart = hitz2
1625-
   Partweld.C1 = CFrame.new(0, -0.730434418, -0.179762959, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1625+
HWRLastPart = hitz2
1626-
    Partweld.Parent = Part		
1626+
1627-
					local PartMesh = Instance.new("CylinderMesh",Part)
1627+
---- if player fails to find new wall to run on
1628-
				PartMesh.Name = "Mesh"
1628+
Torsoz.CFrame = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
1629-
				PartMesh.Offset = Vector3.new(0, 0, 0)
1629+
bg.cframe = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
1630-
				PartMesh.Scale = Vector3.new(0.561845124, 0.618029416, 0.561845064)
1630+
Torsoz.Velocity = NV
1631-
				
1631+
HWRCooldown = 5
1632-
				table.insert(bltb, Part)
1632+
break
1633-
				
1633+
1634-
local hitbox  = Instance.new("Part", m)
1634+
1635-
			hitbox:BreakJoints()
1635+
--- continue to wall run
1636-
			hitbox.TopSurface = "Smooth"
1636+
Torsoz.CFrame = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side,-side/2.2)
1637-
			hitbox.Material = "SmoothPlastic"
1637+
bg.cframe = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side,-side/2.2)
1638-
			hitbox.Transparency = 1			hitbox.Name = 'hitbox'
1638+
1639-
			hitbox.BottomSurface = "Smooth"
1639+
---- if player ends wall run at end of wall
1640-
			hitbox.FormFactor = "Custom" hitbox.CanCollide = false
1640+
Torsoz.CFrame = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
1641-
			hitbox.BrickColor = BrickColor.new("Really black")
1641+
bg.cframe = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
1642-
			hitbox.Size = Vector3.new(0.200000003, 5.60922527, 0.624738038)
1642+
Torsoz.Velocity = NV
1643-
			    local hitboxweld = Instance.new("ManualWeld")
1643+
HWRCooldown = 5
1644-
   hitboxweld.Part0 =  Handle   hitboxweld.Part1 = hitbox  hitboxweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1644+
break
1645-
   hitboxweld.C1 = CFrame.new(0, -3.8159256, -1.12056732e-005, 0.99998641, 0, 0, 0, 1, 0, 0, 0, 0.99998641)
1645+
1646-
    hitboxweld.Parent = hitbox		
1646+
1647-
					local hitboxMesh = Instance.new("BlockMesh",hitbox)
1647+
local hitz3, enz3 = RAY(Torsoz.Position, Torsoz.CFrame.lookVector*2)
1648-
				hitboxMesh.Name = "Mesh"
1648+
if hitz3 ~= nil and hitz3.CanCollide == true then
1649-
				hitboxMesh.Offset = Vector3.new(0, 0, 0)
1649+
Torsoz.CFrame = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
1650-
				hitboxMesh.Scale = Vector3.new(0.561845124, 1, 1)
1650+
bg.cframe = CFrame.new(Torsoz.Position, Torsoz.Position+dir)
1651-
				
1651+
Torsoz.Velocity = NV
1652-
local Wedge  = Instance.new("WedgePart", m)
1652+
HWRCooldown = 5
1653-
			Wedge:BreakJoints()
1653+
break
1654-
			Wedge.TopSurface = "Smooth"
1654+
1655-
			Wedge.Material = "SmoothPlastic"
1655+
1656-
			Wedge.Transparency = 0			Wedge.Name = 'Wedge'
1656+
bv.Parent = Torsoz
1657-
			Wedge.BottomSurface = "Smooth"
1657+
bv.velocity = (dir*(sprint-0.5)) + Vector3.new(0,GravPoint,0)
1658-
			Wedge.FormFactor = "Custom" Wedge.CanCollide = false
1658+
bg.cframe = bg.cframe * CFrame.Angles(aniangle/80,aniangle/80,0)
1659-
			Wedge.BrickColor = BrickColor.new("Really black")
1659+
Torsoz.CFrame = Torsoz.CFrame * CFrame.Angles(aniangle/80,aniangle/80,0)
1660-
			Wedge.Size = Vector3.new(0.200000003, 0.561845124, 0.224738076)
1660+
local j3,j3a = GetWeld(joint3)
1661-
			    local Wedgeweld = Instance.new("ManualWeld")
1661+
local j4,j4a = GetWeld(joint4)
1662-
   Wedgeweld.Part0 =  Handle   Wedgeweld.Part1 = Wedge  Wedgeweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1662+
SetWeld(joint3,1,1, j3,j3a, j3,Vector3.new(-0.2+(aniangle/4),0,0))
1663-
   Wedgeweld.C1 = CFrame.new(7.62939453e-006, -5.9009819, -4.0769577e-005, -0.999992788, 1.60944605e-010, -8.94063589e-007, 1.60504526e-010, 0.999993563, -4.18958729e-010, 7.897562e-007, -4.18840851e-010, -0.999986649)
1663+
SetWeld(joint4,1,1, j4,j4a, j4,Vector3.new(-0.2+(-aniangle/4),0,0))
1664-
    Wedgeweld.Parent = Wedge		
1664+
if side == math.pi/2 then
1665-
					local WedgeMesh = Instance.new("SpecialMesh",Wedge)
1665+
local j1,j1a = GetWeld(joint1)
1666-
					WedgeMesh.MeshId = ""
1666+
SetWeld(joint1,1,1, j1,j1a, j1, Vector3.new(0,0,0.8+(aniangle2/14)))
1667-
					WedgeMesh.MeshType = Enum.MeshType.Wedge				WedgeMesh.Name = "Mesh"
1667+
1668-
				WedgeMesh.Offset = Vector3.new(0, 0, 0)
1668+
local j2,j2a = GetWeld(joint2)
1669-
				WedgeMesh.Scale = Vector3.new(0.561845124, 1, 1)
1669+
SetWeld(joint2,1,1, j2,j2a, j2, Vector3.new(0,0,-0.8-(aniangle2/14)))
1670
end
1671
 
1672
wait(0.025)
1673-
EffectPart2 = part2(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Institutional white", "EffectPart2", Vector3.new(0.200000003, 0.200000003, 0.200000003))
1673+
if GravPoint < -100 then
1674-
EffectPart2weld = weld(m, Character["Left Arm"], EffectPart2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
1674+
bg.cframe = CFrame.new(enz2+(towall*-2), enz2) * CFrame.Angles(0,-side,0)
1675-
EffectPart = part2(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Institutional white", "EffectPart", Vector3.new(0.200000003, 0.200000003, 0.200000003))
1675+
local offset = math.abs((bg.cframe.p.y+enz2.y) - bg.cframe.p.y)
1676-
EffectPartweld = weld(m, Handle, EffectPart, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
1676+
Torsoz.CFrame = CFrame.new(Vector3.new(bg.cframe.p.x,offset,bg.cframe.p.z), enz2) * CFrame.Angles(0,-side,0)
1677-
mesh("BlockMesh", EffectPart, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
1677+
break
1678
end
1679
 
1680
end
1681-
coroutine.resume(coroutine.create(function()
1681+
1682-
while wait() do 
1682+
if HWallRunning == "Jumping" then
1683-
	for i,v in pairs(bltb) do
1683+
HWRCooldown = 6
1684-
			if v:IsA("Part") or v:IsA("WedgePart") then
1684+
joint1.C1 = CFrame.new(0,0.5,0)
1685-
					UpdatePart(v,Rainbow(math.noise(0.5, 0.5, 0.5 + (time()/0.5))))
1685+
1686-
				
1686+
joint2.C1 = CFrame.new(0,0.5,0)
1687
if side == -math.pi/2 then
1688
joint2.C0 = CFrame.new(-1.35,0.5,0) * CFrame.Angles(0,side/2.4,-math.pi/3)
1689
else
1690-
end)) --work
1690+
joint2.C0 = CFrame.new(-1.35,0.5,0) * CFrame.Angles(0,side/2.4,-math.pi/4)
1691
end
1692-
local function weldBetween(a, b, name)
1692+
1693-
    local weld = Instance.new("ManualWeld")
1693+
joint3.C1 = CFrame.new(0,1,0)
1694-
    weld.Part0 = a
1694+
if side == -math.pi/2 then
1695-
    weld.Part1 = b
1695+
joint3.C0 = CFrame.new(0.5,-0.8,0) * CFrame.Angles(0,math.pi+(side/2.4),-math.pi/4)
1696-
    weld.C0 = CFrame.new()
1696+
1697-
    weld.C1 = b.CFrame:inverse() * a.CFrame
1697+
joint3.C0 = CFrame.new(0.5,-0.8,0) * CFrame.Angles(0,(side/2.4),math.pi/4)
1698-
    weld.Parent = a
1698+
1699-
	weld.Name=name or 'weldb1'
1699+
joint4.MaxVelocity = 10
1700-
	weld.Parent=m
1700+
joint4.DesiredAngle = 0
1701-
    return weld;
1701+
joint4.C1 = CFrame.new(0,1,0)
1702
if side == -math.pi/2 then
1703
joint4.C0 = CFrame.new(-0.5,-0.8,0) * CFrame.Angles(0,math.pi+(side/2.4),math.pi/4)
1704-
Mesh2 = function(par,num,x,y,z)
1704+
1705-
    local msh = _
1705+
joint4.C0 = CFrame.new(-0.5,-0.8,0) * CFrame.Angles(0,(side/2.4),-math.pi/4)
1706-
    if num == 1 then
1706+
1707-
        msh = Instance.new("CylinderMesh",par)
1707+
1708-
    elseif num == 2 then
1708+
local joint5 = Joint5
1709-
        msh = Instance.new("SpecialMesh",par)
1709+
joint5.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(0,side/2.4,0)
1710-
        msh.MeshType = 3
1710+
joint5.C0 = CFrame.new(0,1,0)
1711-
    elseif num == 3 then
1711+
1712-
        msh = Instance.new("BlockMesh",par)
1712+
local j1,j1a = GetWeld(joint1)
1713-
    elseif num == 4 then
1713+
local j2,j2a = GetWeld(joint2)
1714-
        msh = Instance.new("SpecialMesh",par)
1714+
local j3,j3a = GetWeld(joint3)
1715-
        msh.MeshType = "Torso"
1715+
local j4,j4a = GetWeld(joint4)
1716-
    elseif type(num) == 'string' then
1716+
local j5,j5a = GetWeld(joint5)
1717-
        msh = Instance.new("SpecialMesh",par)
1717+
1718-
        msh.MeshId = num
1718+
GravPoint = 26
1719-
    end 
1719+
local collidecount = 0
1720-
    msh.Scale = Vector3.new(x,y,z)
1720+
local bgangle = side/2
1721-
    return msh
1721+
local count = 1
1722
local dir2 = (CFrame.new(NV, dir) * CFrame.Angles(0,-side/2.4,0)).lookVector
1723
HWRDir = dir2
1724-
Weld2 = function(p0,p1,x,y,z,rx,ry,rz,par)
1724+
bv.velocity = (dir2*(sprint+5)) + Vector3.new(0,GravPoint,0)
1725-
    local w = Instance.new('Motor',par or p0)
1725+
while HWallRunning == "Jumping" do
1726-
    w.Part0 = p0
1726+
local hitz, enz = RAY(Torsoz.Position, Vector3.new(0,-4,0))
1727-
    w.Part1 = p1
1727+
local hitz2, enz2 = RAY(Torsoz.Position, dir2*1.4)
1728-
    w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
1728+
if hitz ~= nil and hitz.CanCollide == true then
1729-
    return w
1729+
local offset = math.abs(enz.y - Torsoz.CFrame.p.y)
1730
Torsoz.CFrame = CFrame.new(enz+Vector3.new(0,2.9,0), enz+Vector3.new(0,2.9,0)+dir2)
1731
Torsoz.Velocity = NV
1732
break
1733-
--------------------[[ Outfit Begin ]]--------------------
1733+
1734
 
1735
if hitz2 ~= nil and hitz2.CanCollide == true then
1736-
for _,v in pairs(Character:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
1736+
collidecount = collidecount + 1
1737-
local hat = part(3,Character,0,0,BrickColor.new("Really black"),"Hood",vt(0.5,1,1.02))
1737+
if collidecount == 4 then
1738-
Mesh2(hat,'http://www.roblox.com/asset/?id=16952952',1.05,1.05,1.05) --hood
1738+
Torsoz.CFrame = CFrame.new(Torsoz.Position, Torsoz.Position+dir2) * CFrame.new(0,0,0.4)
1739-
Weld2(Character.Head,hat,0,-.25,0,0,0,0,hat)
1739+
Torsoz.Velocity = Vector3.new(0,Torsoz.Velocity.y,0)
1740
HWRCooldown = 5
1741-
Coat = Instance.new("Part",Character)
1741+
VWRCooldown = 5
1742-
Coat.TopSurface = "Smooth"
1742+
wait(0.02)
1743-
Coat.BottomSurface = "Smooth"
1743+
break
1744-
Coat.Material = "Neon"
1744+
1745-
Coat.Size = Vector3.new(1.05, 1.05, 1.05)
1745+
1746-
Coat.CanCollide = false
1746+
1747-
Coat.Transparency = 0
1747+
if side/2 > 0 then
1748-
Coat.BrickColor = BrickColor.new("Institutional white")
1748+
if bgangle > 0.2 then
1749-
CoatMesh = Instance.new("SpecialMesh", Coat)
1749+
bgangle = bgangle - 0.055
1750-
CoatMesh.MeshType = "Brick"
1750+
1751-
CoatMesh.Scale = Vector3.new(2,1.8,1.1)
1751+
1752-
CoatWeld = Instance.new("Weld",Character)
1752+
if bgangle < -0.2 then
1753-
CoatWeld.Part0 = Character.Torso
1753+
bgangle = bgangle + 0.055
1754-
CoatWeld.Part1 = Coat
1754+
1755-
CoatWeld.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
1755+
1756
 
1757-
CoatRA = Instance.new("Part",Character)
1757+
if count <= 5 then
1758-
CoatRA.TopSurface = "Smooth"
1758+
if side == -math.pi/2 then
1759-
CoatRA.BottomSurface = "Smooth"
1759+
SetWeld(joint1,count,5, j1,j1a, Vector3.new(1.35,0.5,0), Vector3.new(0,side/2.4,math.pi/4))
1760-
CoatRA.Size = Vector3.new(1, 1, 1)
1760+
SetWeld(joint2,count,5, j2,j2a, Vector3.new(-1.35,0.5,0), Vector3.new(0,side/2.4,-math.pi/3))
1761-
CoatRA.CanCollide = false
1761+
SetWeld(joint3,count,5, j3,j3a, Vector3.new(0.5,-0.8,0), Vector3.new(0,-side/1.7,0))
1762-
CoatRA.Transparency = 0
1762+
joint3.C0 = joint3.C0 * CFrame.Angles((-math.pi/4)/5*count,0,0)
1763-
CoatRA.Material = "Neon"
1763+
SetWeld(joint4,count,5, j4,j4a, Vector3.new(-0.5,-0.8,0), Vector3.new(0,-side/1.7,0))
1764-
CoatRA.BrickColor = BrickColor.new("Institutional white")
1764+
joint4.C0 = joint4.C0 * CFrame.Angles((math.pi/4)/5*count,0,0)
1765-
CoatRAMesh = Instance.new("SpecialMesh", CoatRA)
1765+
1766-
CoatRAMesh.MeshType = "Brick"
1766+
SetWeld(joint1,count,5, j1,j1a, Vector3.new(1.35,0.5,0), Vector3.new(0,side/2.4,math.pi/3))
1767-
CoatRAMesh.Scale = Vector3.new(1.1,1.8,1.1)
1767+
SetWeld(joint2,count,5, j2,j2a, Vector3.new(-1.35,0.5,0), Vector3.new(0,side/2.4,-math.pi/4))
1768-
CoatRAWeld = Instance.new("Weld",Character)
1768+
SetWeld(joint3,count,5, j3,j3a, Vector3.new(0.5,-0.8,0), Vector3.new(0,-side/1.7,0))
1769-
CoatRAWeld.Part0 = Character["Right Arm"]
1769+
joint3.C0 = joint3.C0 * CFrame.Angles((math.pi/4)/5*count,0,0)
1770-
CoatRAWeld.Part1 = CoatRA
1770+
SetWeld(joint4,count,5, j4,j4a, Vector3.new(-0.5,-0.8,0), Vector3.new(0,-side/1.7,0))
1771-
CoatRAWeld.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
1771+
joint4.C0 = joint4.C0 * CFrame.Angles((-math.pi/4)/5*count,0,0)
1772
end
1773-
CoatLA = Instance.new("Part",Character)
1773+
1774-
CoatLA.TopSurface = "Smooth"
1774+
count = count + 1
1775-
CoatLA.BottomSurface = "Smooth"
1775+
1776-
CoatLA.Size = Vector3.new(1, 1, 1)
1776+
1777-
CoatLA.CanCollide = false
1777+
bg.Parent = Torsoz
1778-
CoatLA.Transparency = 0
1778+
bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(0,side/15,-bgangle)
1779-
CoatLA.Material = "Neon"
1779+
bv.velocity = (dir2*(sprint+5)) + Vector3.new(0,GravPoint,0)
1780-
CoatLA.BrickColor = BrickColor.new("Institutional white")
1780+
if collidecount ~= 0 then
1781-
CoatLAMesh = Instance.new("SpecialMesh", CoatLA)
1781+
bv.velocity = Vector3.new(0,bv.velocity.y,0)
1782-
CoatLAMesh.MeshType = "Brick"
1782+
1783-
CoatLAMesh.Scale = Vector3.new(1.1,1.8,1.1)
1783+
if GravPoint < -120 then
1784-
CoatLAWeld = Instance.new("Weld",Character)
1784+
break
1785-
CoatLAWeld.Part0 = Character["Left Arm"]
1785+
1786-
CoatLAWeld.Part1 = CoatLA
1786+
wait(0.025)
1787-
CoatLAWeld.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
1787+
1788
end
1789-
CoatRL = Instance.new("Part",Character)
1789+
1790-
CoatRL.TopSurface = "Smooth"
1790+
Hu.PlatformStand = false
1791-
CoatRL.BottomSurface = "Smooth"
1791+
bv:remove()
1792-
CoatRL.Size = Vector3.new(1, 1, 1)
1792+
1793-
CoatRL.CanCollide = false
1793+
HWRGravDrop = false
1794-
CoatRL.Transparency = 0
1794+
Stand()
1795-
CoatRL.Material = "Neon"
1795+
HWallRunning = false
1796-
CoatRL.BrickColor = BrickColor.new("Institutional white")
1796+
1797-
CoatRLMesh = Instance.new("SpecialMesh", CoatRL)
1797+
1798-
CoatRLMesh.MeshType = "Brick"
1798+
1799-
CoatRLMesh.Scale = Vector3.new(1.1,0.5,1.1)
1799+
function VWR(part, pos)
1800-
CoatRLWeld = Instance.new("Weld",Character)
1800+
if (part.className == "Part" and part.Shape == Enum.PartType.Block) or part.className ~= "Part" then
1801-
CoatRLWeld.Part0 = Character["Right Leg"]
1801+
print("VWR Activated")
1802-
CoatRLWeld.Part1 = CoatRL
1802+
flow.Value = flow.Value + 9
1803-
CoatRLWeld.C1 = CFrame.new(0, -0.7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
1803+
Standing = false
1804
VWallRunning = true
1805-
CoatLL = Instance.new("Part",Character)
1805+
Action = "VWallRunning"
1806-
CoatLL.TopSurface = "Smooth"
1806+
GravPoint = 0
1807-
CoatLL.BottomSurface = "Smooth"
1807+
local percent = 1
1808-
CoatLL.Size = Vector3.new(1, 1, 1)
1808+
VWRLastPart = part
1809-
CoatLL.CanCollide = false
1809+
local dir, dirc = FindSurface(part, pos)
1810-
CoatLL.Transparency = 0
1810+
towall = -dir
1811-
CoatLL.Material = "Neon"
1811+
dir = (CFrame.new(NV, -dir) * CFrame.Angles(math.pi/2,0,0)).lookVector
1812-
CoatLL.BrickColor = BrickColor.new("Institutional white")
1812+
1813-
CoatLLMesh = Instance.new("SpecialMesh", CoatLL)
1813+
local p = P:Clone()
1814-
CoatLLMesh.MeshType = "Brick"
1814+
p.Parent = char
1815-
CoatLLMesh.Scale = Vector3.new(1.1,0.5,1.1)
1815+
p.Size = Vector3.new(2,2,2)
1816-
CoatLLWeld = Instance.new("Weld",Character)
1816+
p.BrickColor = BrickColor.new("Lime green")
1817-
CoatLLWeld.Part0 = Character["Left Leg"]
1817+
p.CanCollide = false
1818-
CoatLLWeld.Part1 = CoatLL
1818+
p.CFrame = part.CFrame * CFrame.new(dirc*5)
1819-
CoatLLWeld.C1 = CFrame.new(0, -0.7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
1819+
p.Transparency = 0.3
1820
]]
1821-
CoatRightDesign = Instance.new("Part",Character)
1821+
local bv = Instance.new("BodyVelocity", Torsoz)
1822-
CoatRightDesign.TopSurface = "Smooth"
1822+
bv.Name = "StaminaBodyObject"
1823-
CoatRightDesign.BottomSurface = "Smooth"
1823+
bv.maxForce = Vector3.new(1/0,1/0,1/0)
1824-
CoatRightDesign.Size = Vector3.new(1, 1, 1)
1824+
bv.P = 9000
1825-
CoatRightDesign.CanCollide = false
1825+
bv.velocity = (dir*(sprint-1))*percent
1826-
CoatRightDesign.Material = "Neon"
1826+
1827-
CoatRightDesign.Transparency = 0
1827+
local bg = Instance.new("BodyGyro", Torsoz)
1828-
CoatRightDesign.BrickColor = BrickColor.new("Institutional white")
1828+
bg.Name = "StaminaBodyObject"
1829-
CoatRightDesignMesh = Instance.new("SpecialMesh", CoatRightDesign)
1829+
bg.maxTorque = Vector3.new(1/0,1/0,1/0)
1830-
CoatRightDesignMesh.MeshType = "Wedge"
1830+
bg.D = 100
1831-
CoatRightDesignMesh.Scale = Vector3.new(1.1,0.8,1.1)
1831+
local posi = pos + (-towall*1.8)
1832-
CoatRightDesignWeld = Instance.new("Weld",Character)
1832+
bg.cframe = CFrame.new(posi, posi+towall) * CFrame.Angles((math.pi/5),0,0)
1833-
CoatRightDesignWeld.Part0 = Character["Right Leg"]
1833+
Torsoz.CFrame = CFrame.new(posi, posi+towall) * CFrame.Angles((math.pi/5),0,0)
1834-
CoatRightDesignWeld.Part1 = CoatRightDesign
1834+
1835-
CoatRightDesignWeld.C1 = CFrame.new(0, 0.1, 0)*CFrame.fromEulerAnglesXYZ(1.6, -1.6, 0)
1835+
local joint1 = Joint3
1836
SetWeld(joint1,1,1, NV,NV, Vector3.new(1.4,0.45,-0.1), Vector3.new(-math.pi/3.2,0,math.pi/8))
1837-
CoatLeftDesign = Instance.new("Part",Character)
1837+
1838-
CoatLeftDesign.TopSurface = "Smooth"
1838+
local joint2 = Joint4
1839-
CoatLeftDesign.BottomSurface = "Smooth"
1839+
SetWeld(joint2,1,1, NV,NV, Vector3.new(-1.4,0.45,-0.1), Vector3.new(-math.pi/3.2,0,-math.pi/8))
1840-
CoatLeftDesign.Size = Vector3.new(1, 1, 1)
1840+
1841-
CoatLeftDesign.CanCollide = false
1841+
local joint3 = Joint1
1842-
CoatLeftDesign.Material = "Neon"
1842+
SetWeld(joint3,1,1, NV,NV, Vector3.new(0.48,-0.6,-0.1), Vector3.new(0,math.pi/2,0))
1843-
CoatLeftDesign.Transparency = 0
1843+
joint3.C1 = CFrame.new(0,0.7,0.2) * CFrame.Angles(0,math.pi/2,0)
1844-
CoatLeftDesign.BrickColor = BrickColor.new("Institutional white")
1844+
1845-
CoatLeftDesignMesh = Instance.new("SpecialMesh", CoatLeftDesign)
1845+
local joint4 = Joint2
1846-
CoatLeftDesignMesh.MeshType = "Wedge"
1846+
SetWeld(joint4,1,1, NV,NV, Vector3.new(-0.48,-0.6,-0.1), Vector3.new(0,math.pi/2,0))
1847-
CoatLeftDesignMesh.Scale = Vector3.new(1.1,0.8,1.1)
1847+
joint4.C1 = CFrame.new(0,0.7,0.2) * CFrame.Angles(0,math.pi/2,0)
1848-
CoatLeftDesignWeld = Instance.new("Weld",Character)
1848+
1849-
CoatLeftDesignWeld.Part0 = Character["Left Leg"]
1849+
local joint5 = Joint5
1850-
CoatLeftDesignWeld.Part1 = CoatLeftDesign
1850+
SetWeld(joint5,1,1, NV,NV, Vector3.new(0,1,0), Vector3.new(math.pi/20,0,0))
1851-
CoatLeftDesignWeld.C1 = CFrame.new(0, 0.1, 0)*CFrame.fromEulerAnglesXYZ(1.6, 1.6, 0)
1851+
1852-
nooutline(CoatLeftDesign)
1852+
local aniangle = 0
1853
local aniplus = true
1854-
coroutine.resume(coroutine.create(function()
1854+
1855-
while wait() do 
1855+
while VWallRunning == true do
1856
local hitz, enz = RAY(Torsoz.Position, towall*2.1)
1857-
UpdatePart(hat,Rainbow(math.noise(0.5, 0.5, 0.5 + (time()/0.5))))
1857+
local hitz2, enz2 = RAY(Torsoz.Position, (CFrame.new(NV,towall)*CFrame.Angles(math.pi/2,0,0)).lookVector*2.4)
1858-
UpdatePart(Coat,Rainbow(math.noise(0.5, 0.5, 0.5 + (time()/0.5))))
1858+
1859-
UpdatePart(CoatRA,Rainbow(math.noise(0.5, 0.5, 0.5 + (time()/0.5))))
1859+
if aniangle > math.pi then
1860-
UpdatePart(CoatLA,Rainbow(math.noise(0.5, 0.5, 0.5 + (time()/0.5))))
1860+
aniplus = false
1861-
UpdatePart(CoatLL,Rainbow(math.noise(0.5, 0.5, 0.5 + (time()/0.5))))
1861+
elseif aniangle < -math.pi then
1862-
UpdatePart(CoatRL,Rainbow(math.noise(0.5, 0.5, 0.5 + (time()/0.5))))
1862+
aniplus = true  
1863-
UpdatePart(CoatRightDesign,Rainbow(math.noise(0.5, 0.5, 0.5 + (time()/0.5))))
1863+
1864-
UpdatePart(CoatLeftDesign,Rainbow(math.noise(0.5, 0.5, 0.5 + (time()/0.5))))
1864+
if aniplus == true then
1865
aniangle = aniangle + (1.3*(percent+0.2))
1866
elseif aniplus == false then
1867-
end)) 
1867+
aniangle = aniangle - (1.3*(percent+0.2))
1868
end
1869-
--------------------[[ Outfit End ]]--------------------
1869+
1870
bv.velocity = (dir*(sprint-1))*percent
1871
if VWRLeft == true then
1872-
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
1872+
bv.velocity = bv.velocity + ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * (11*percent+5))
1873-
        if hit.Parent==nil then
1873+
1874-
                return
1874+
if VWRRight == true then
1875-
        end
1875+
bv.velocity = bv.velocity - ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * (11*percent+5))
1876-
        h=hit.Parent:FindFirstChild("Humanoid")
1876+
1877-
        for _,v in pairs(hit.Parent:children()) do
1877+
1878-
        if v:IsA("Humanoid") then
1878+
bg.cframe = CFrame.new(posi, posi+towall) * CFrame.Angles((math.pi/5),0,0) * CFrame.Angles(0,aniangle/60,0)
1879-
        h=v
1879+
1880-
        end
1880+
SetWeld(joint1,1,1, NV,NV, Vector3.new(1.4,0.45,-0.1), Vector3.new(-math.pi/3.2,aniangle/52,(math.pi/8)+(aniangle/30)))
1881-
        end
1881+
SetWeld(joint2,1,1, NV,NV, Vector3.new(-1.4,0.45,-0.1), Vector3.new(-math.pi/3.2,aniangle/52,(-math.pi/8)+(-aniangle/30)))
1882-
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
1882+
SetWeld(joint3,1,1, NV,NV, Vector3.new(0.51,-0.75,-(aniangle/30)), Vector3.new(0,math.pi/2,(aniangle/8)-0.3))
1883-
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
1883+
SetWeld(joint4,1,1, NV,NV, Vector3.new(-0.51,-0.75,(aniangle/30)), Vector3.new(0,math.pi/2,(-aniangle/8)-0.3))
1884-
        end
1884+
1885-
        if hit.Parent.className=="Hat" then
1885+
if hitz == nil then
1886-
        hit=hit.Parent.Parent:findFirstChild("Head")
1886+
local lv = Torsoz.Position + (Torsoz.CFrame.lookVector*100)
1887-
        end
1887+
Torsoz.CFrame = CFrame.new(Torsoz.Position, Vector3.new(lv.x,Torsoz.Position.y,lv.z))
1888-
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
1888+
break
1889-
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
1889+
1890-
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
1890+
1891-
                        return
1891+
if hitz2 ~= nil then
1892-
                end]]
1892+
percent = 0
1893-
--                        hs(hit,1.2) 
1893+
VWallRunning = "Falling"
1894-
                        c=Instance.new("ObjectValue")
1894+
Action = "VWRFalling"
1895-
                        c.Name="creator"
1895+
GravPoint = -7
1896-
                        c.Value=game:service("Players").LocalPlayer
1896+
break
1897-
                        c.Parent=h
1897+
1898-
                        game:GetService("Debris"):AddItem(c,.5)
1898+
1899-
                Damage=math.random(minim,maxim)
1899+
wait(0.02)
1900-
--                h:TakeDamage(Damage)
1900+
percent = percent - 0.028
1901-
                blocked=false
1901+
if percent <= 0.15 then
1902-
                block=hit.Parent:findFirstChild("Block")
1902+
VWallRunning = "Falling"
1903-
                if block~=nil then
1903+
Action = "VWRFalling"
1904-
                print(block.className)
1904+
1905-
                if block.className=="NumberValue" then
1905+
1906-
                if block.Value>0 then
1906+
1907-
                blocked=true
1907+
-------------------------- Falling from VWR ------------------------------
1908-
                if decreaseblock==nil then
1908+
if VWallRunning == "Falling" then
1909-
                block.Value=block.Value-1
1909+
GravPoint = GravPoint - 1
1910-
                end
1910+
local dirpos = (-towall *5) + Vector3.new(0,GravPoint,0)
1911-
                end
1911+
bv.velocity = CFrame.new(NV, dirpos).lookVector * dirpos.magnitude
1912-
                end
1912+
1913-
                if block.className=="IntValue" then
1913+
local j1,j1a = GetWeld(joint1)
1914-
                if block.Value>0 then
1914+
local j2,j2a = GetWeld(joint2)
1915-
                blocked=true
1915+
local j3,j3a = GetWeld(joint3)
1916-
                if decreaseblock~=nil then
1916+
local j4,j4a = GetWeld(joint4)
1917-
                block.Value=block.Value-1
1917+
local j5,j5a = GetWeld(joint5)
1918-
                end
1918+
1919-
                end
1919+
local counter = 0
1920-
                end
1920+
while VWallRunning == "Falling" do
1921-
                end
1921+
counter = counter + 1
1922-
                if blocked==false then
1922+
local hitz, enz = RAY(H.Position, Vector3.new(0,-2.4,0))
1923-
--                h:TakeDamage(Damage)
1923+
1924-
                h.Health=h.Health-Damage
1924+
dirpos = (-towall *5) + Vector3.new(0,GravPoint,0)
1925-
                --showDamage(hit.Parent,Damage,.5,BrickColor.new("Navy blue"))
1925+
bv.velocity = CFrame.new(NV, dirpos).lookVector * dirpos.magnitude
1926-
				ShowDamage2((hit.Parent:FindFirstChild("Head").CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
1926+
if VWRLeft == true then
1927-
                else
1927+
bv.velocity = bv.velocity + ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * 9)
1928-
                h.Health=h.Health-(Damage/2)
1928+
1929-
                ShowDamage2((hit.Parent:FindFirstChild("Head").CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
1929+
if VWRRight == true then
1930-
                end
1930+
bv.velocity = bv.velocity - ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * 9)
1931-
                if Type=="Knockdown" then
1931+
1932-
                hum=hit.Parent.Humanoid
1932+
bg.cframe = CFrame.new(NV, (-towall*30) + Vector3.new(0,GravPoint,0)) * CFrame.Angles(-math.pi/2.55,math.pi,0)
1933-
hum.PlatformStand=true
1933+
1934-
coroutine.resume(coroutine.create(function(HHumanoid)
1934+
if counter <= 35 then
1935-
swait(1)
1935+
SetWeld(joint1,counter,35, j1,j1a, Vector3.new(1.4,0.45,-0.1), Vector3.new(math.pi/9,0,math.pi/9))
1936-
HHumanoid.PlatformStand=false
1936+
SetWeld(joint2,counter,35, j2,j2a, Vector3.new(-1.4,0.45,-0.1), Vector3.new(math.pi/9,0,-math.pi/9))
1937-
end),hum)
1937+
SetWeld(joint3,counter,35, j3,j3a, Vector3.new(0.5,-0.75,0), Vector3.new(0,math.pi/2,math.pi/9))
1938-
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
1938+
joint3.C1 = CFrame.new(0,0.7 + (0.3/35*counter),0.2 - (0.2/35*counter)) * CFrame.Angles(0,math.pi/2,0)
1939-
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
1939+
SetWeld(joint4,counter,35, j4,j4a, Vector3.new(-0.5,-0.75,0), Vector3.new(0,math.pi/2,math.pi/9))
1940-
local bodvol=Instance.new("BodyVelocity")
1940+
joint4.C1 = CFrame.new(0,0.7 + (0.3/35*counter),0.2 - (0.2/35*counter)) * CFrame.Angles(0,math.pi/2,0)
1941-
bodvol.velocity=angle*knockback
1941+
SetWeld(joint5,counter,35, j5,j5a, Vector3.new(0,1,0), Vector3.new(-math.pi/6,0,0))
1942-
bodvol.P=5000
1942+
1943-
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1943+
1944-
bodvol.Parent=hit
1944+
if hitz ~= nil then
1945-
rl=Instance.new("BodyAngularVelocity")
1945+
bv:remove()
1946-
rl.P=3000
1946+
Torsoz.CFrame = CFrame.new(enz+Vector3.new(0,2,0), (enz+Vector3.new(0,2,0)) + ((-towall*25) + Vector3.new(0,GravPoint,0))) * CFrame.Angles(-math.pi/2.55,math.pi,0)
1947-
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1947+
Torsoz.Velocity = NV
1948-
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1948+
Torsoz.RotVelocity = NV
1949-
rl.Parent=hit
1949+
local bp = Instance.new("BodyPosition", Torsoz)
1950-
game:GetService("Debris"):AddItem(bodvol,.5)
1950+
bp.maxForce = Vector3.new(1/0,1/0,1/0)
1951-
game:GetService("Debris"):AddItem(rl,.5)
1951+
bp.position = Torsoz.CFrame.p
1952-
                elseif Type=="Normal" then
1952+
game:service("Debris"):AddItem(bp, 0.16)
1953-
                vp=Instance.new("BodyVelocity")
1953+
flow.Value = 0
1954-
                vp.P=500
1954+
break
1955-
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
1955+
1956-
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
1956+
1957-
                if KnockbackType==1 then
1957+
if GravPoint > - 180 then
1958-
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
1958+
GravPoint = GravPoint - 1.9
1959-
                elseif KnockbackType==2 then
1959+
1960-
                vp.velocity=Property.CFrame.lookVector*knockback
1960+
if counter > 200 then
1961-
                end
1961+
break
1962-
                if knockback>0 then
1962+
1963-
                        vp.Parent=hit.Parent.Torso
1963+
wait(0.02)
1964-
                end
1964+
1965-
                game:GetService("Debris"):AddItem(vp,.5)
1965+
1966-
                elseif Type=="Up" then
1966+
local bp = Instance.new("BodyPosition")
1967-
                local bodyVelocity=Instance.new("BodyVelocity")
1967+
1968-
                bodyVelocity.velocity=vt(0,60,0)
1968+
local counter2 = counter
1969-
                bodyVelocity.P=5000
1969+
local bgangleplus = 0
1970-
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1970+
1971-
                bodyVelocity.Parent=hit
1971+
local j1,j1a = GetWeld(joint1)
1972-
                game:GetService("Debris"):AddItem(bodyVelocity,1)
1972+
local j2,j2a = GetWeld(joint2)
1973-
                rl=Instance.new("BodyAngularVelocity")
1973+
local j3,j3a = GetWeld(joint3)
1974-
                rl.P=3000
1974+
local j4,j4a = GetWeld(joint4)
1975-
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1975+
local j5,j5a = GetWeld(joint5)
1976-
                rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
1976+
1977-
                rl.Parent=hit
1977+
local landingpos
1978-
                game:GetService("Debris"):AddItem(rl,.5)
1978+
1979-
                elseif Type=="Snare" then
1979+
while VWallRunning == "BackflipFromFall" do
1980-
                bp=Instance.new("BodyPosition")
1980+
counter2 = counter2 + 1
1981-
                bp.P=2000
1981+
local hitz, enz = RAY(H.Position+Vector3.new(0,2,0), Vector3.new(0,-4.4,0))
1982-
                bp.D=100
1982+
1983-
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1983+
if counter2 - counter < 13 then
1984-
                bp.position=hit.Parent.Torso.Position
1984+
bgangleplus = bgangleplus - ((math.pi*1.1)/13)
1985-
                bp.Parent=hit.Parent.Torso
1985+
1986-
                game:GetService("Debris"):AddItem(bp,1)
1986+
if counter2 - counter <= 13 then
1987-
                elseif Type=="Target" then
1987+
SetWeld(joint1,counter2-counter,13, j1,j1a, Vector3.new(1.4,0.5,0.1), Vector3.new(math.pi/2,0.1,math.pi/2))
1988-
                if Targetting==false then
1988+
SetWeld(joint2,counter2-counter,13, j2,j2a, Vector3.new(-1.4,0.5,0.1), Vector3.new(math.pi/2,-0.1,-math.pi/2))
1989-
                ZTarget=hit.Parent.Torso
1989+
SetWeld(joint3,counter2-counter,13, j3,j3a, Vector3.new(0.52,-0.3,-0.65), Vector3.new(0,math.pi/2,0))
1990-
                coroutine.resume(coroutine.create(function(Part) 
1990+
SetWeld(joint4,counter2-counter,13, j4,j4a, Vector3.new(-0.51,-0.9,-0.05), Vector3.new(0,math.pi/2,0))
1991-
				local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
1991+
SetWeld(joint5,counter2-counter,13, j5,j5a, Vector3.new(0,0.9,0), Vector3.new(-math.pi/7,0,0))
1992-
				local rndm=math.random(1,#hitsounds)
1992+
1993-
				local r=rndm
1993+
1994-
				so("http://www.roblox.com/asset/?id="..hitsounds[r],Part,1,1)
1994+
dirpos = (-towall *5) + Vector3.new(0,GravPoint,0)
1995-
                swait(5)
1995+
--bv.velocity = Vector3.new(0,-2,0)
1996-
				so("http://www.roblox.com/asset/?id="..hitsounds[r],Part,1,1)
1996+
bv.velocity = CFrame.new(NV, dirpos).lookVector * dirpos.magnitude
1997-
                end),ZTarget)
1997+
if VWRLeft == true then
1998-
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
1998+
bv.velocity = bv.velocity + ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * 9)
1999-
                targetgui=Instance.new("BillboardGui")
1999+
2000-
                targetgui.Parent=ZTarget
2000+
if VWRRight == true then
2001-
                targetgui.Size=UDim2.new(10,100,10,100)
2001+
bv.velocity = bv.velocity - ((CFrame.new(NV, towall) * CFrame.Angles(0,math.pi/2,0)).lookVector * 9)
2002-
                targ=Instance.new("ImageLabel")
2002+
2003-
                targ.Parent=targetgui
2003+
bg.cframe = CFrame.new(NV, (-towall*30) + Vector3.new(0,GravPoint,0)) * CFrame.Angles((-math.pi/2.4) + bgangleplus,math.pi,0)
2004-
                targ.BackgroundTransparency=1
2004+
2005-
                targ.Image="rbxassetid://4834067"
2005+
if hitz ~= nil then
2006-
                targ.Size=UDim2.new(1,0,1,0)
2006+
bv:remove()
2007-
                cam.CameraType="Scriptable"
2007+
landingpos = enz - (towall*1.3)
2008-
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
2008+
if counter2 - counter > 8 then
2009-
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
2009+
bp = Instance.new("BodyPosition", Torsoz)
2010-
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
2010+
bp.maxForce = Vector3.new(1/0,1/0,1/0)
2011-
                Targetting=true
2011+
bp.position = enz+Vector3.new(0,2.4,0) + (-towall*1)
2012-
                RocketTarget=ZTarget
2012+
VWallRunning = "LandingFall"
2013-
                for i=1,Property do
2013+
2014-
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
2014+
Torsoz.CFrame = bg.cframe + (enz+Vector3.new(0,2.3,0))
2015-
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
2015+
Torsoz.Velocity = NV
2016-
                swait()
2016+
Torsoz.RotVelocity = NV
2017-
                end
2017+
local bp = Instance.new("BodyPosition", Torsoz)
2018-
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
2018+
bp.maxForce = Vector3.new(1/0,1/0,1/0)
2019-
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
2019+
bp.position = Torsoz.CFrame.p
2020-
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
2020+
game:service("Debris"):AddItem(bp, 0.14)
2021-
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
2021+
flow.Value = 0
2022-
                end
2022+
2023-
                Targetting=false
2023+
break
2024-
                RocketTarget=nil
2024+
2025-
                targetgui.Parent=nil
2025+
2026-
                cam.CameraType="Custom"
2026+
if GravPoint > - 180 then
2027-
                end
2027+
GravPoint = GravPoint - 1.9
2028-
                end
2028+
2029-
                        debounce=Instance.new("BoolValue")
2029+
if counter2 > 200 then
2030-
                        debounce.Name="DebounceHit"
2030+
break
2031-
                        debounce.Parent=hit.Parent
2031+
2032-
                        debounce.Value=true
2032+
wait(0.02)
2033-
                        game:GetService("Debris"):AddItem(debounce,Delay)
2033+
2034-
                        c=Instance.new("ObjectValue")
2034+
2035-
                        c.Name="creator"
2035+
if VWallRunning == "LandingFall" then
2036-
                        c.Value=Player
2036+
print("Landing")
2037-
                        c.Parent=h
2037+
2038-
                        game:GetService("Debris"):AddItem(c,.5)
2038+
joint3.C1 = CFrame.new(0,1,0) * CFrame.Angles(0,math.pi/2,0)
2039-
                CRIT=false
2039+
joint4.C1 = CFrame.new(0,1,0) * CFrame.Angles(0,math.pi/2,0)
2040-
                hitDeb=true
2040+
local j1,j1a = GetWeld(joint1)
2041-
                AttackPos=6
2041+
local j2,j2a = GetWeld(joint2)
2042-
        end
2042+
local j3,j3a = GetWeld(joint3)
2043
local j4,j4a = GetWeld(joint4)
2044
local j5,j5a = GetWeld(joint5)
2045-
showDamage=function(Char,Dealt,du,Color)
2045+
2046-
        m=Instance.new("Model")
2046+
local a
2047-
        m.Name=tostring(Dealt)
2047+
local mesh
2048-
        h=Instance.new("Humanoid")
2048+
if GravPoint < -70 then
2049-
        h.Health=0
2049+
a = P:Clone()
2050-
        h.MaxHealth=0
2050+
a.Parent = Torsoz
2051-
        h.Parent=m
2051+
a.Name = "AirLandingEffect"
2052-
        c=Instance.new("Part")
2052+
a.BrickColor = BrickColor.new("Medium stone grey")
2053-
        c.Transparency=0
2053+
a.Transparency = 0.3
2054-
        c.BrickColor=Color
2054+
a.CFrame = CFrame.new(landingpos+Vector3.new(0,0.4,0))
2055-
        c.Name="Head"
2055+
mesh = Instance.new("SpecialMesh", a)
2056-
        c.TopSurface=0
2056+
mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
2057-
        c.BottomSurface=0
2057+
mesh.Scale = Vector3.new(0,0,0)
2058-
        c.formFactor="Plate"
2058+
2059-
        c.Size=Vector3.new(1,.4,1)
2059+
2060-
        ms=Instance.new("CylinderMesh")
2060+
local bgcf = CFrame.new(NV, Vector3.new(towall.x,0,towall.z))
2061-
        ms.Scale=Vector3.new(.8,.8,.8)
2061+
bg.cframe = bgcf * CFrame.Angles(-math.pi/7,0,0)
2062-
        if CRIT==true then
2062+
local bgval = math.pi/7/2
2063-
                ms.Scale=Vector3.new(1,1.25,1)
2063+
2064-
        end
2064+
for i = 1, 6 do
2065-
        ms.Parent=c
2065+
Hu.PlatformStand = true
2066-
        c.Reflectance=0
2066+
SetWeld(joint1,i,6, j1,j1a, Vector3.new(1.2,0.5,0.2), Vector3.new(math.pi/2,0.5,math.pi/1.2))
2067-
        Instance.new("BodyGyro").Parent=c
2067+
SetWeld(joint2,i,6, j2,j2a, Vector3.new(-1.2,0.5,0.2), Vector3.new(math.pi/2,-0.5,-math.pi/1.2))
2068-
        c.Parent=m
2068+
SetWeld(joint3,i,6, j3,j3a, Vector3.new(0.51,-0.3,-0.8), Vector3.new(0,math.pi/2,-math.pi/7))
2069-
        if Char:findFirstChild("Head")~=nil then
2069+
SetWeld(joint4,i,6, j4,j4a, Vector3.new(-0.51,-0.8,-0.7), Vector3.new(0,math.pi/2,-math.pi/3))
2070-
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
2070+
SetWeld(joint5,i,6, j5,j5a, Vector3.new(0,0.85,0), Vector3.new(-math.pi/8,0,0))
2071-
        elseif Char.Parent:findFirstChild("Head")~=nil then
2071+
bp.position = bp.position + Vector3.new(0,-0.07,0)
2072-
        c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
2072+
bg.cframe = bgcf * CFrame.Angles((-bgval*2) + (bgval/6*i),0,0)
2073-
        end
2073+
Torsoz.CFrame = bg.cframe + bp.position
2074-
        f=Instance.new("BodyPosition")
2074+
if a ~= nil then
2075-
        f.P=2000
2075+
mesh.Scale = mesh.Scale + Vector3.new(1.3,0.35,1.3)
2076-
        f.D=100
2076+
a.Transparency = 0.3 + (0.7/6*i)
2077-
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
2077+
2078-
        f.position=c.Position+Vector3.new(0,3,0)
2078+
wait(0.02)
2079-
        f.Parent=c
2079+
2080-
        game:GetService("Debris"):AddItem(m,.5+du)
2080+
if a ~= nil then
2081-
        c.CanCollide=false
2081+
a:remove()
2082-
        m.Parent=workspace
2082+
2083-
        c.CanCollide=false
2083+
local j1,j1a = GetWeld(joint1)
2084
local j2,j2a = GetWeld(joint2)
2085
local j3,j3a = GetWeld(joint3)
2086-
function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) 
2086+
local j4,j4a = GetWeld(joint4)
2087-
        local msh1 = it("SpecialMesh") 
2087+
local j5,j5a = GetWeld(joint5)
2088-
        msh1.Scale = vt(0.5,0.5,0.5) 
2088+
for i = 1, 6 do
2089-
        msh1.MeshType = "Sphere" 
2089+
Hu.PlatformStand = true
2090-
       local S=it("Part")
2090+
SetWeld(joint1,i,6, j1,j1a, Vector3.new(1.5,0.5,0), Vector3.new(0,0,0))
2091-
        S.Name="Effect"
2091+
SetWeld(joint2,i,6, j2,j2a, Vector3.new(-1.5,0.5,0), Vector3.new(0,0,0))
2092-
        S.formFactor=0
2092+
SetWeld(joint3,i,6, j3,j3a, Vector3.new(0.5,-1,0), Vector3.new(0,math.pi/2,0))
2093-
        S.Size=vt(x1,y1,z1)
2093+
SetWeld(joint4,i,6, j4,j4a, Vector3.new(-0.5,-1,0), Vector3.new(0,math.pi/2,0))
2094-
        S.BrickColor=color
2094+
SetWeld(joint5,i,6, j5,j5a, Vector3.new(0,1,0), Vector3.new(0,0,0))
2095-
        S.Reflectance = 0
2095+
bp.position = bp.position + Vector3.new(0,0.1,0)
2096-
        S.TopSurface=0
2096+
bg.cframe = bgcf * CFrame.Angles(-bgval + (bgval/6*i),0,0)
2097-
        S.BottomSurface=0
2097+
Torsoz.CFrame = bg.cframe + bp.position
2098-
        S.Transparency=0
2098+
wait(0.02)
2099-
        S.Anchored=true
2099+
2100-
        S.CanCollide=false
2100+
2101-
        S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
2101+
bp:remove()
2102-
        S.Parent=workspace
2102+
2103-
        msh1.Parent = S
2103+
2104-
        coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
2104+
2105-
end 
2105+
2106
bv:remove()
2107-
function SummonSword(Part,cframe1,cframe2)
2107+
bg:remove()
2108-
coroutine.resume(coroutine.create(function() 
2108+
VWallRunning = false
2109
Stand()
2110-
local sword=part(1,workspace,0,0.5,BrickColor.new("Cyan"),"Sword",vt(2,2,2))
2110+
2111-
sword.Anchored=true
2111+
2112-
--con1=sword.Touched:connect(function(hit) Damagefunc2(hit,5,1) end) 
2112+
2113-
local smesh=mesh("SpecialMesh",sword,"FileMesh","http://www.roblox.com/asset/?id=50798664",vt(0,0,0),vt(3,3,3))
2113+
function Slide(pos)
2114-
--smesh.Parent=nil
2114+
flow.Value = flow.Value + 6
2115-
smesh.VertexColor=Vector3.new(0, 0, 0)
2115+
Action = "Sliding"
2116-
sword.CFrame=Part.CFrame*cframe1
2116+
Sliding = true
2117-
con1=sword.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) 
2117+
GravPoint = Torsoz.Velocity.y
2118-
	so("http://roblox.com/asset/?id=231917788",sword,0.5,1)
2118+
local spd = Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).magnitude + 10
2119-
					hitconasdf = sword.Touched:connect(function(hit)
2119+
local dir = Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).unit
2120-
		local hum12 = hit.Parent:FindFirstChild("Humanoid")
2120+
2121-
		if hum12 and not hum12:IsDescendantOf(Character) then
2121+
local bv = Instance.new("BodyVelocity", Torsoz)
2122-
			so('http://roblox.com/asset/?id=220025675',sword,1,3)
2122+
bv.maxForce = Vector3.new(1/0,1/0,1/0)
2123-
			hitconasdf:disconnect()
2123+
bv.velocity = dir*spd
2124
local bg = Instance.new("BodyGyro", Torsoz)
2125
bg.maxTorque = Vector3.new(1/0,1/0,1/0)
2126-
EVENMOARMAGIX(sword,4,4,4,0,0,0,0,0,0,BrickColor.new("Cyan")) 
2126+
bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0)
2127-
for i=0,1,0.2 do
2127+
2128
local joint1 = Joint1
2129-
local dir = sword.CFrame.lookVector*-1
2129+
local joint2 = Joint2
2130-
hit2,pos = rayCast(sword.Position,dir,5,Character)
2130+
local joint3 = Joint3
2131-
if hit2~=nil then
2131+
local joint4 = Joint4
2132-
if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
2132+
local joint5 = Joint5
2133-
hum = hit2.Parent.Humanoid
2133+
local j1,j1a = GetWeld(joint1)
2134-
--Damagefunc2(hit2,5,1)
2134+
local j2,j2a = GetWeld(joint2)
2135-
elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
2135+
2136-
hum = hit2.Parent.Parent.Humanoid
2136+
SetWeld(joint1,1,1, NV,NV, Vector3.new(j1.x,j1.y,j1.z), Vector3.new(j1a.x,math.pi/2,j1a.z))
2137-
--Damagefunc2(hit2,5,1)
2137+
joint1.C1 = CFrame.new(0,1,0) * CFrame.Angles(0,math.pi/2,0)
2138
SetWeld(joint2,1,1, NV,NV, Vector3.new(j2.x,j2.y,j2.z), Vector3.new(j2a.x,math.pi/2,j2a.z))
2139
joint2.C1 = CFrame.new(0,1,0) * CFrame.Angles(0,math.pi/2,0)
2140-
sword.CFrame=sword.CFrame*cframe2
2140+
2141
local j1,j1a = GetWeld(joint1)
2142-
EVENMOARMAGIX(sword,4,4,4,0,0,0,0,0,0,BrickColor.new("Cyan")) 
2142+
local j2,j2a = GetWeld(joint2)
2143-
sword.Parent=nil
2143+
local j3,j3a = GetWeld(joint3)
2144-
pcall(function()
2144+
local j4,j4a = GetWeld(joint4)
2145-
		hitconasdf:disconnect()
2145+
local j5,j5a = GetWeld(joint5)
2146
 
2147-
con1:disconnect()
2147+
local count = 0
2148-
end))
2148+
local lastpos
2149
 
2150
while Sliding == true do
2151
count = count + 1
2152-
rings=Instance.new('Model',Character)
2152+
Hu.PlatformStand = true
2153
local hitz1, enz1 = RAY(Torsoz.Position+Vector3.new(0,0.03,0), dir *2.5)
2154-
ring=function(way,way2,where,vector,rv1,rv2,rv3,c1,c2)
2154+
local hitz2, enz2 = RAY(Torsoz.Position-Vector3.new(0,0.2,0), dir *2.5)
2155-
	local rng = Instance.new("Part", rings)
2155+
local ghitz, genz = RAY(Torsoz.Position, Vector3.new(0,-2.6,0))
2156-
	rng.Anchored = true
2156+
bv.velocity = dir*spd + Vector3.new(0,GravPoint,0)
2157-
	rng.BrickColor = BrickColor.new("Bright blue")
2157+
2158-
	rng.CanCollide = false
2158+
if count <= 5 then
2159-
	rng.FormFactor = 3
2159+
SetWeld(joint1,count,5, j1,j1a, Vector3.new(0.5,-0.8,-0.15), Vector3.new(0,(math.pi/2)+0.1,-0.4))
2160-
	rng.Name = "Ring"
2160+
SetWeld(joint2,count,5, j2,j2a, Vector3.new(-0.5,-1,0), Vector3.new(0,(math.pi/2)-0.4,0))
2161-
	rng.Size = Vector3.new(1, 1, 1)
2161+
SetWeld(joint3,count,5, j3,j3a, Vector3.new(1.5,0.5,0), Vector3.new(-0.7,-0.24,math.pi/5))
2162-
	rng.Transparency = .5
2162+
SetWeld(joint4,count,5, j4,j4a, Vector3.new(-1.5,0.5,0), Vector3.new(-0.1,0,-math.pi/1.5))
2163-
	rng.TopSurface = 0
2163+
SetWeld(joint5,count,5, j5,j5a, Vector3.new(0,1,0), Vector3.new(-0.5,-0.2,0))
2164-
	rng.BottomSurface = 0
2164+
2165-
	rng.CFrame = where.CFrame * CFrame.Angles(math.rad(way), math.rad(way2), 0) 
2165+
2166-
	local rngm = Instance.new("SpecialMesh", rng)
2166+
if (hitz1 ~= nil and hitz1.CanCollide == true) or (hitz2 ~= nil and  hitz2.CanCollide == true) then
2167-
	rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2167+
bv:remove()
2168-
	rngm.Scale = vector--10,10,1
2168+
bg:remove()
2169-
	for i = 1, 20, 1 do
2169+
Sliding = "HitObject"
2170-
		rngm.Scale = Vector3.new(rv1 + i*c1, rv2 + i*c2, rv3)--(10 + i*2, 10 + i*2, 1)
2170+
2171-
		rng.Transparency = i/20
2171+
if ghitz ~= nil then
2172-
		swait()
2172+
GravPoint = 0
2173
Torsoz.CFrame = CFrame.new(genz, genz+dir) * CFrame.Angles(math.pi/2.2,0.24,0) + Vector3.new(0,0.7,0)
2174-
	wait()
2174+
spd = spd - 0.95
2175-
	rng:destroy''
2175+
2176
if GravPoint > -180 then
2177
GravPoint = GravPoint - 5.6
2178-
player=game.Players.localPlayer
2178+
2179-
char=player.Character
2179+
spd = spd - 0.36
2180-
Effects={}
2180+
2181-
vt=Vector3.new
2181+
if spd < 7 then
2182-
cf=CFrame.new
2182+
Sliding = false
2183-
euler=CFrame.fromEulerAnglesXYZ
2183+
2184-
m=Instance.new("Model",char)
2184+
wait(0.02)
2185-
char.Humanoid.WalkSpeed = 25
2185+
2186
 
2187
if Sliding == false then
2188-
	if equipped==true and hand==false then
2188+
local j1,j1a = GetWeld(joint1)
2189-
		if attacktype==1 then
2189+
local j2,j2a = GetWeld(joint2)
2190-
			attackone()
2190+
local j3,j3a = GetWeld(joint3)
2191-
		elseif attacktype==2 then
2191+
local j4,j4a = GetWeld(joint4)
2192-
			attacktwo()
2192+
local j5,j5a = GetWeld(joint5)
2193-
		elseif attacktype==3 then
2193+
for i = 1, 4 do
2194-
			attackthree()
2194+
SetWeld(joint1,i,4, j1,j1a, Vector3.new(0.5,-1,0), Vector3.new(0,math.pi/2,0))
2195
SetWeld(joint2,i,4, j2,j2a, Vector3.new(-0.5,-1,0), Vector3.new(0,math.pi/2,0))
2196
SetWeld(joint3,i,4, j3,j3a, Vector3.new(1.5,0.5,0), NV)
2197
SetWeld(joint4,i,4, j4,j4a, Vector3.new(-1.5,0.5,0), NV)
2198
SetWeld(joint5,i,4, j5,j5a, Vector3.new(0,1,0), NV)
2199
local hitz, enz = RAY(Torsoz.Position, Vector3.new(0,-2.6,0))
2200-
	k=k:lower()
2200+
bg.cframe = CFrame.new(NV, dir) * CFrame.Angles((math.pi/2.2) - ((math.pi/2.2)/4*i),0.24 - (0.24/4*i),0)
2201-
	if k=='q' then
2201+
bv.velocity = dir*spd + Vector3.new(0,GravPoint,0)
2202-
		if attack==false then
2202+
2203-
			spin()
2203+
if hitz ~= nil then
2204
GravPoint = 0
2205-
	elseif k=='f' then
2205+
Torsoz.CFrame = CFrame.new(enz, enz+dir) * CFrame.Angles((math.pi/2.2) - ((math.pi/2.2)/4*i),0.24 - (0.24/4*i),0) + Vector3.new(0,0.7+(1.8/4*i),0)
2206-
		if attack==false then
2206+
spd = spd - 0.95
2207-
			IrisShot()
2207+
2208-
			ChargeBall(efprt, 100)
2208+
if GravPoint > -180 then
2209
GravPoint = GravPoint - 5.6
2210-
		elseif k=='e' then
2210+
2211-
		if attack==false then
2211+
spd = spd - 0.36
2212-
			JumpSwing()
2212+
2213
wait(0.02)
2214-
			elseif k=='r' then
2214+
2215-
			if attack==false then
2215+
local hitz, enz = RAY(Torsoz.Position, Vector3.new(0,-2.6,0))
2216-
					IrisRush()
2216+
Torsoz.CFrame = CFrame.new(enz, enz+dir) + Vector3.new(0,3,0)
2217
end
2218
bv:remove()
2219
bg:remove()
2220
SlideCooldown = 10
2221-
function JumpSwing()
2221+
Stand()
2222-
attack=true
2222+
2223-
for i=0,0.5,0.1 do
2223+
2224-
swait()
2224+
function KD(key)
2225-
--[[local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
2225+
if pause.Value == false then
2226-
if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
2226+
if key == string.char(32) then
2227-
local h = 5
2227+
Space = true
2228-
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2228+
2229-
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2229+
local ghitz, genz = RAY(Torsoz.Position, Vector3.new(0,-3.7,0))
2230-
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2230+
local hitz, enz = RAY(Torsoz.Position+Vector3.new(0,1.1,0), Torsoz.CFrame.lookVector*2.3)
2231-
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2231+
local righthitz, rightenz
2232-
scfr = blcf
2232+
local lefthitz, leftenz
2233-
elseif not scfr then
2233+
2234-
scfr = blcf
2234+
if HWallRunning == false then
2235-
end]] --NOU!!
2235+
righthitz, rightenz = RAY(Torsoz.Position, ((Torsoz.CFrame * CFrame.new(1.5,0,-0.2)).p - Torsoz.CFrame.p).unit*3.9)
2236-
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
2236+
lefthitz, leftenz = RAY(Torsoz.Position, ((Torsoz.CFrame * CFrame.new(-1.5,0,-0.2)).p - Torsoz.CFrame.p).unit*3.9)
2237-
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
2237+
2238-
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
2238+
elseif HWallRunning == "Jumping" then
2239-
LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
2239+
righthitz, rightenz = RAY(Torsoz.Position, ((CFrame.new(Torsoz.Position, Torsoz.Position + HWRDir) * CFrame.new(1.5,0,-0.2)).p - Torsoz.Position).unit*3.9)
2240-
RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
2240+
lefthitz, leftenz = RAY(Torsoz.Position, ((CFrame.new(Torsoz.Position, Torsoz.Position + HWRDir) * CFrame.new(-1.5,0,-0.2)).p - Torsoz.Position).unit*3.9)
2241-
LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
2241+
2242
end
2243-
Humanoid.Jump=true
2243+
2244-
bodvol=Instance.new("BodyVelocity")
2244+
if Action == "Standing" and Shift == true and (hitz == nil or hitz.CanCollide == false) and (righthitz == nil or righthitz.CanCollide == false) and (lefthitz == nil or lefthitz.CanCollide == false) and (ghitz == nil or ghitz.CanCollide == false) and (Torsoz.Velocity.y > 6 and Torsoz.Velocity.y < 50) and DivingCooldown <= 0 then
2245-
bodvol.Parent=RootPart
2245+
if stamina >= 10 then
2246-
bodvol.velocity=vt(0,1,0)*100
2246+
--if Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).magnitude > 12 then
2247-
bodvol.P=5000
2247+
Dive()
2248-
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
2248+
2249-
--Torso.Velocity=vt(0,1,0)*100
2249+
2250-
con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10,20),"Normal",RootPart,.2,1) end) 
2250+
2251-
so("http://roblox.com/asset/?id=231917987",hitbox,1,1)
2251+
2252-
		hitconasdf = hitbox.Touched:connect(function(hit)
2252+
if hitz == nil and VWallRunning == "Falling" then
2253-
		local hum12 = hit.Parent:FindFirstChild("Humanoid")
2253+
VWallRunning = "BackflipFromFall"
2254-
		if hum12 and not hum12:IsDescendantOf(Character) then
2254+
2255-
			so("http://www.roblox.com/asset/?id="..hitsounds[math.random(1,#hitsounds)],hitbox,1,1)
2255+
2256-
			hitconasdf:disconnect()
2256+
if Shift == true and Torsoz.Velocity.y > -50 and Diving == false and DivingCooldown <= 0 then
2257
local hitz2, enz2 = RAY(Torsoz.Position, Vector3.new(0,-3.5,0))
2258
 
2259-
for i=0,1,0.1 do
2259+
if hitz ~= nil then
2260-
swait()
2260+
if Action == "Standing" and VWRCooldown == 0 then
2261-
--[[local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
2261+
if hitz2 == nil or hitz2.CanCollide == false then
2262-
if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
2262+
VWR(hitz, enz)
2263-
local h = 5
2263+
2264-
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2264+
2265-
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2265+
2266-
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2266+
2267-
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2267+
if (HWallRunning == false or (HWallRunning == "Jumping" and (HWRLastPart ~= righthitz or HWRLastPart ~= lefthitz))) and HWRCooldown == 0 and VWallRunning == false then
2268-
scfr = blcf
2268+
2269-
elseif not scfr then
2269+
if (hitz == nil or HWallRunning == "Jumping") and ((righthitz ~= nil and righthitz.Parent:findFirstChild("Humanoid") == nil and righthitz.Parent.className ~= "Hat") or (lefthitz ~= nil and lefthitz.Parent:findFirstChild("Humanoid") == nil and lefthitz.Parent.className ~= "Hat")) then
2270-
scfr = blcf
2270+
if hitz2 == nil or hitz2.CanCollide == false then
2271-
end]]
2271+
local right = (rightenz - Torsoz.Position).magnitude
2272-
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
2272+
local left = (leftenz - Torsoz.Position).magnitude
2273-
LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
2273+
if right < left then
2274-
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
2274+
if HWallRunning == "Jumping" and HWRLastPart ~= righthitz then
2275-
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
2275+
HWallRunning = false
2276-
RH.C0=clerp(RH.C0,RHC0,.3)
2276+
while Standing == false do
2277-
LH.C0=clerp(LH.C0,LHC0,.3)
2277+
wait(0.01)
2278
end
2279-
con1:disconnect()
2279+
print("2nd Right Activated!")
2280-
hitconasdf:disconnect()
2280+
HWallRun(righthitz, rightenz, -math.pi/2)
2281-
bodvol.Parent=nil
2281+
2282-
attack=false
2282+
if hitz == nil then
2283
print("Right Activated")
2284
HWallRun(righthitz, rightenz, -math.pi/2)
2285-
function spin()
2285+
2286-
attack=true
2286+
2287-
con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) so("http://www.roblox.com/asset/?id="..hitsounds[math.random(1,#hitsounds)],hitbox,1,1) end) 
2287+
elseif left < right then
2288-
for i=0,1,0.2 do
2288+
if HWallRunning == "Jumping" and HWRLastPart ~= lefthitz then
2289-
swait()
2289+
HWallRunning = false
2290-
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
2290+
while Standing == false do
2291-
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
2291+
wait(0.01)
2292-
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
2292+
2293-
LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
2293+
print("2nd Left Activated!")
2294-
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
2294+
HWallRun(lefthitz, leftenz, math.pi/2)
2295-
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
2295+
2296
if hitz == nil then
2297-
for i=0,1,0.15 do
2297+
print("Left Activated")
2298-
so("http://roblox.com/asset/?id=231917987",hitbox,1,1)
2298+
HWallRun(lefthitz, leftenz, math.pi/2)
2299-
swait()
2299+
2300-
--[[local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
2300+
2301-
if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
2301+
2302-
local h = 5
2302+
2303-
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2303+
2304-
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2304+
2305-
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2305+
2306-
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2306+
2307-
scfr = blcf
2307+
2308-
elseif not scfr then
2308+
if HWallRunning == true then
2309-
scfr = blcf
2309+
HWallRunning = "Jumping"
2310-
end]]
2310+
Action = "HWRJumping"
2311-
for i=0,1,0.1 do
2311+
2312-
swait()
2312+
2313-
--[[local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
2313+
elseif key == string.char(48) then
2314-
if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
2314+
Shift = true
2315-
local h = 5
2315+
elseif key == string.char(50) then
2316-
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2316+
if Action == "Standing" then
2317-
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2317+
Sit()
2318-
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2318+
elseif HWallRunning == true then
2319-
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2319+
HWRGravDrop = true
2320-
scfr = blcf
2320+
2321-
elseif not scfr then
2321+
elseif key == string.char(52) then
2322-
scfr = blcf
2322+
if Shift == true and Action == "Standing" and SlideCooldown == 0 and Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).magnitude > 15 and Torsoz.Velocity.y > -40 then
2323-
end]]
2323+
print("Sliding")
2324-
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
2324+
Slide()
2325-
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
2325+
2326-
RootJoint.C0=RootCF*euler(0,0,6.6*i)
2326+
elseif key == "a" then
2327
VWRLeft = true
2328
elseif key == "d" then
2329-
con1:disconnect()
2329+
VWRRight = true
2330-
attack=false
2330+
2331
end
2332
end
2333
 
2334-
function IrisRush()
2334+
function KU(key)
2335-
attack = true
2335+
if key == string.char(32) then
2336-
n=2
2336+
Space = false
2337-
so("http://www.roblox.com/asset/?id=199145433",hitbox,1,1.1)
2337+
elseif key == string.char(48) then
2338-
so("http://roblox.com/asset/?id=199145659", Head, 1, 2) 
2338+
Shift = false
2339-
coroutine.resume(coroutine.create(function()
2339+
elseif key == string.char(50) then
2340
if Action == "Sitting" then
2341-
	for i = 0,1,0.1 do
2341+
Stand()
2342-
swait()
2342+
2343-
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3)
2343+
elseif key == string.char(52) then
2344-
Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3)
2344+
Sliding = false
2345-
RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3)
2345+
elseif key == "a" then
2346-
LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3)
2346+
VWRLeft = false
2347-
RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3)
2347+
elseif key == "d" then
2348-
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3)
2348+
VWRRight = false
2349
end
2350
end
2351-
local v=it("BodyVelocity",Torso)
2351+
2352-
v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
2352+
mouse.KeyDown:connect(function(key) KD(key) end)
2353-
v.velocity=RootPart.CFrame.lookVector*100
2353+
mouse.KeyUp:connect(function(key) KU(key) end)
2354-
for i = 0,1,0.1 do
2354+
2355-
swait()
2355+
Joint1 = Instance.new("Snap", Torsoz)
2356-
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3)
2356+
GetWeld(Joint1)
2357-
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
2357+
Joint2 = Instance.new("Snap", Torsoz)
2358-
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3)
2358+
GetWeld(Joint2)
2359-
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3)
2359+
Joint3 = Instance.new("Snap", Torsoz)
2360-
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
2360+
GetWeld(Joint3)
2361-
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
2361+
Joint4 = Instance.new("Snap", Torsoz)
2362
GetWeld(Joint4)
2363-
v.Parent=nil
2363+
Joint5 = Instance.new("Snap", Torsoz)
2364-
scfr=nil	
2364+
GetWeld(Joint5)
2365
Stand()
2366-
end))
2366+
2367
local animatebg = Instance.new("BodyGyro")
2368-
for i=1,3 do
2368+
animatebg.D = 100
2369
local GravAction = "Idle"
2370-
local orb=part(3,Character,0,1,BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))),"Orb",vt())
2370+
local PrevGravAction = GravAction
2371
 
2372-
local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10))
2372+
local prevrapos = (RA.CFrame * CFrame.new(0,-1,0)).p
2373-
local owld=weld(orb,orb,Torso,cf(0,10,0))
2373+
local prevlapos = (LA.CFrame * CFrame.new(0,-1,0)).p
2374-
MagicCircle(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))),orb.CFrame,10,10,10,1,1,1,0.1)
2374+
local hue = 0
2375-
--[[formerso]]
2375+
local recyclecount = 0
2376-
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2376+
local tickoffset = tick()
2377-
	local ceef1=math.random(-50,50)
2377+
local fadetab = {}
2378-
	local ceef2=math.random(-2,8)
2378+
local fadetab2 = {}
2379-
	local ceef3=math.random(100,200)/100
2379+
local animatebgcount = 0
2380-
	local n=2
2380+
2381-
		for i=0,1,0.1 do
2381+
for i = 1, 13 do
2382
local p = P:Clone()
2383-
			Part.Transparency=Part.Transparency-0.07
2383+
p.Name = "Part"..i
2384-
			owld.C0=cf(ceef2*i*n,-5,0)*euler(ceef3*i*n,ceef1,0)
2384+
local mesh = Instance.new("SpecialMesh", p)
2385-
			n=n-0.1
2385+
mesh.MeshId = "http://www.roblox.com/Asset/?id=9856898"
2386
mesh.TextureId = "http://www.roblox.com/Asset/?id=48358980"
2387-
	wait(0)
2387+
table.insert(fadetab, {p, mesh})
2388-
	Part.Parent=nil
2388+
2389-
	local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(Part.Position-(Part.Position+vt(0,-1,0))).magnitude/100
2389+
for i = 1, 13 do
2390-
	local TheHit=Part.Position+vt(0,-1,0)
2390+
local p = P:Clone()
2391-
	local MouseLook=cf((Part.Position+TheHit)/2,TheHit+spread)
2391+
p.Name = "Part"..i
2392-
	local hit,pos = rayCast(Part.Position,MouseLook.lookVector,999,Character)
2392+
local mesh = Instance.new("SpecialMesh", p)
2393-
	local mag=(Part.Position-pos).magnitude 
2393+
mesh.MeshId = "http://www.roblox.com/Asset/?id=9856898"
2394-
	MagicCylinder(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))),CFrame.new((Part.Position+pos)/2,pos)*angles(1.57,0,0) ,1,mag*5,1,0.5,0,0.5,0.05)
2394+
mesh.TextureId = "http://www.roblox.com/Asset/?id=48358980"
2395-
	MagicBlock(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))),Part.CFrame,8,8,8,0.5,0.5,0.5,0.1)
2395+
table.insert(fadetab2, {p, mesh})
2396-
	MagicBlock(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))),cf(pos),15,15,15,6,6,6,0.1)
2396+
2397-
	MagicRing(BrickColor.new(Rainbow(math.noise(0.5, 0.5, 0.5 + time()))),cf(pos)*euler(1.57,math.random(-100,100)/100,math.random(-100,100)/100),1,1,1,2,2,2,0.05)
2397+
2398-
	local ref=part(3,workspace,0,1,BrickColor.new("Pastel light blue"),"Effect",vt())
2398+
game:service("RunService").Stepped:connect(function()
2399-
	ref.CFrame=cf(pos)
2399+
GravAction = "Idle"
2400-
	so("http://roblox.com/asset/?id=166221646",ref,1,1) 
2400+
hue = hue + 3
2401-
  	so("http://roblox.com/asset/?id=200632875", ref, 1, 1)
2401+
hue = hue % 360
2402-
  	so("http://roblox.com/asset/?id=263610131", ref, 1, 1)
2402+
2403-
  	so("http://roblox.com/asset/?id=263610111", Torso, 1, 1)
2403+
------------- anim angle changing --------
2404
if animangle > math.pi then
2405
animplus = false
2406-
		coroutine.resume(coroutine.create(function(Part) 
2406+
elseif animangle < -math.pi then
2407-
			wait(0.2)
2407+
animplus = true  
2408-
			Part.Parent=nil
2408+
2409-
			end),ref)
2409+
if animplus == true then
2410-
			MagniDamage(ref,20,10,30,10,"Knockdown",ref)
2410+
animangle = animangle + animspeed
2411-
				if hit~=nil then
2411+
elseif animplus == false then
2412-
					Damagefunc(hit,20,40,1,"Knockdown",RootPart,0)
2412+
animangle = animangle - animspeed
2413
end
2414-
end),orb,omsh,owld)
2414+
2415-
wait(0.2)
2415+
local hitz, enz = RAY(Torsoz.Position, Vector3.new(0,-3.9,0))
2416
if Shift == true then
2417-
n=2
2417+
Hu.WalkSpeed = sprint
2418-
for i=0,1,0.1 do
2418+
2419
Hu.WalkSpeed = 16
2420-
n=n-0.1
2420+
2421
if (FOV >= 70 and FOV < 74) and Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).magnitude > 25 then
2422-
attack=false
2422+
FOV = FOV + 1
2423
elseif (FOV <= 74 and FOV > 70) and Vector3.new(Torsoz.Velocity.x,0,Torsoz.Velocity.z).magnitude < 20 then
2424
FOV = FOV - 1
2425
end
2426
if pause.Value == true then
2427
Hu.WalkSpeed = 0
2428-
function attackone()
2428+
2429-
if attack==false and attacktype==1 then
2429+
if Sitting == true then
2430-
	attacktype=2
2430+
local hitz2, enz2 = RAY(Torsoz.Position, Vector3.new(0,-2.2,0))
2431-
	attack=true
2431+
Hu.PlatformStand = true
2432-
	con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",RootPart,.2,1) end) 
2432+
if hitz2 == nil then
2433-
	for i=0,1,0.2 do
2433+
Stand()
2434-
		swait()
2434+
2435-
		Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.4)
2435+
2436-
		RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
2436+
if Diving == true then
2437-
		RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1),.4)
2437+
Hu.PlatformStand = true
2438-
		RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2438+
DivingBV.velocity = Vector3.new(DivingDir.x*(sprint+2),GravPoint,DivingDir.z*(sprint+2))
2439-
		LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.3)*euler(.4,0,.2)*euler(0,-.2,0),.4)
2439+
DivingBG.cframe = CFrame.new(Torsoz.Position, Torsoz.Position+DivingBV.velocity) * CFrame.Angles(-math.pi/2,0,0)
2440-
		LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2440+
2441-
		RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
2441+
if GravPoint > -180 then
2442-
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
2442+
GravPoint = GravPoint - 2
2443
end
2444-
	so("http://roblox.com/asset/?id=199145841",hitbox,1,1)
2444+
2445-
		hitconasdf = hitbox.Touched:connect(function(hit)
2445+
if DivingCooldown > 0 then
2446-
		local hum12 = hit.Parent:FindFirstChild("Humanoid")
2446+
DivingCooldown = DivingCooldown - 1
2447-
		if hum12 and not hum12:IsDescendantOf(Character) then
2447+
2448-
			so("http://www.roblox.com/asset/?id="..hitsounds[math.random(1,#hitsounds)],hitbox,1,1)
2448+
if HWallRunning == true then
2449-
			hitconasdf:disconnect()
2449+
if HWRGravDrop == false then
2450
GravPoint = GravPoint - 0.4
2451
else
2452-
	for i=0,1,0.3 do
2452+
GravPoint = GravPoint - 2
2453-
		swait()
2453+
2454-
--[[		local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
2454+
elseif HWallRunning == "Jumping" then
2455-
if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
2455+
GravPoint = GravPoint - 1.7
2456-
local h = 5
2456+
2457-
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2457+
----------------------------- stamina ----------------------------------------
2458-
if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
2458+
if Vector3.new(Torsoz.Velocity.x, 0, Torsoz.Velocity.z).magnitude > 18 and Action == "Standing" and Shift == true then
2459-
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2459+
if stamina > 0 then
2460-
if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
2460+
stamina = stamina - 0.5
2461-
scfr = blcf
2461+
if stamina < 0 then
2462-
elseif not scfr then
2462+
Shift = false
2463-
scfr = blcf
2463+
stamina = 0
2464-
end]]--NOU!!
2464+
2465-
		Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
2465+
2466-
		RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
2466+
Shift = false
2467-
		RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(.2,0,-.2)*euler(0,-.5,0),.4)
2467+
stamina = 0
2468-
		RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2468+
2469-
		LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.4)
2469+
if Action == "Standing" then
2470-
		LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2470+
animspeed = 0.85
2471-
		RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
2471+
SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.5,-1,0), Vector3.new(-animangle/4.85,0,0))
2472-
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
2472+
SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.5,-1,0), Vector3.new(animangle/4.85,0,0))
2473
SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.5,0.5,0), Vector3.new(animangle/3.5,0,0))
2474-
	for i=0,1,0.2 do
2474+
SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.5,0.5,0), Vector3.new(-animangle/3.5,0,0))
2475-
	swait()
2475+
2476-
	--[[local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
2476+
elseif Vector3.new(Torsoz.Velocity.x, 0, Torsoz.Velocity.z).magnitude > 12 and Action ~= "Sliding" then
2477-
if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
2477+
if stamina < maxstamina then
2478-
local h = 5
2478+
stamina = stamina + 0.5
2479-
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2479+
if stamina > maxstamina then
2480-
if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
2480+
stamina = maxstamina
2481-
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2481+
2482-
if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
2482+
2483-
scfr = blcf
2483+
stamina = maxstamina
2484-
elseif not scfr then
2484+
2485-
scfr = blcf
2485+
if Action == "Standing" then
2486-
end]] --NOU!!
2486+
animspeed = 0.65
2487-
		Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
2487+
SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.5,-1,0), Vector3.new(-animangle/7,0,0))
2488-
		RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
2488+
SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.5,-1,0), Vector3.new(animangle/7,0,0))
2489-
		RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-1)*euler(0,-.7,0),.4)
2489+
SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.5,0.5,0), Vector3.new(animangle/5,0,0))
2490-
		RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2490+
SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.5,0.5,0), Vector3.new(-animangle/5,0,0))
2491-
		LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.2),.4)
2491+
2492-
		LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2492+
elseif Vector3.new(Torsoz.Velocity.x, 0, Torsoz.Velocity.z).magnitude < 2 then
2493-
		RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
2493+
animspeed = 0.1
2494-
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
2494+
if Action == "Standing" then
2495
SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.5,-1,0), Vector3.new(-animangle/38,0,0))
2496-
	con1:disconnect()
2496+
SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.5,-1,0), Vector3.new(animangle/38,0,0))
2497-
	hitconasdf:disconnect()
2497+
SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.5,0.5,0), Vector3.new(animangle/30,0,0))
2498-
	attack=false
2498+
SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.5,0.5,0), Vector3.new(-animangle/30,0,0))
2499
end
2500
if stamina < maxstamina then
2501
if Sitting == false then
2502-
function attacktwo()
2502+
stamina = stamina + 0.65
2503-
	if attack==false and attacktype==2 then
2503+
2504-
	attacktype=3
2504+
stamina = stamina + 1.02
2505-
	attack=true
2505+
2506-
	con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",RootPart,.2,1) end) 
2506+
if stamina > maxstamina then
2507-
	for i=0,1,0.2 do
2507+
stamina = maxstamina
2508-
		swait()
2508+
2509-
		Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
2509+
2510-
		RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
2510+
stamina = maxstamina
2511-
		RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,1.2,0),.4)
2511+
2512-
		RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2512+
2513-
		LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.8,0,-.4),.4)
2513+
2514-
		LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2514+
if hitz == nil then
2515-
		RH.C0=clerp(RH.C0,cf(.8,-1,.2)*euler(0,1.57,0)*euler(0,-.7,0),.4)
2515+
if Torsoz.Velocity.y > 1 or (Torsoz.Velocity.y < -1 and Torsoz.Velocity.y > -90) then
2516-
		LH.C0=clerp(LH.C0,cf(-.8,-1,.2)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
2516+
if Action == "Standing" then
2517
GravAction = "Rising"
2518-
	so("http://roblox.com/asset/?id=199145887",hitbox,1,1)
2518+
animspeed = 0.1
2519-
			hitconasdf = hitbox.Touched:connect(function(hit)
2519+
SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.5,-1,0), Vector3.new(-animangle/38,0,0))
2520-
		local hum12 = hit.Parent:FindFirstChild("Humanoid")
2520+
SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.5,-1,0), Vector3.new(animangle/38,0,0))
2521-
		if hum12 and not hum12:IsDescendantOf(Character) then
2521+
SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.5,0.5,0), Vector3.new((math.pi-0.2)+(animangle/30),0,0))
2522-
			so("http://www.roblox.com/asset/?id="..hitsounds[math.random(1,#hitsounds)],hitbox,1,1)
2522+
SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.5,0.5,0), Vector3.new((math.pi-0.2)+(-animangle/30),0,0))
2523-
			hitconasdf:disconnect()
2523+
if animatebg.Parent ~= nil then
2524
animatebg.Parent = Torsoz
2525
animatebg.maxTorque = Vector3.new(1/0,10000,1/0)
2526-
	for i=0,1,0.3 do
2526+
local lokvec = Torsoz.CFrame.lookVector*100
2527-
		swait()
2527+
animatebg.cframe = CFrame.new(NV, Vector3.new(lokvec.x,0,lokvec.z))
2528-
		--[[		local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
2528+
animatebg.Parent = nil
2529-
if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
2529+
2530-
local h = 5
2530+
2531-
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2531+
2532-
if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
2532+
2533-
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2533+
2534-
if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
2534+
if hitz == nil then
2535-
scfr = blcf
2535+
local hitz2, enz2 = RAY(Torsoz.Position, Vector3.new(0,-6,0))
2536-
elseif not scfr then
2536+
if hitz2 == nil then
2537-
scfr = blcf
2537+
if Torsoz.Velocity.y < -90 then
2538-
end]]
2538+
if Action == "Standing" then
2539-
		Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(0,0,0),.4)
2539+
GravAction = "Falling"
2540-
		RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
2540+
animspeed = 1.1
2541-
		RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,1)*euler(0,1.6,0),.4)
2541+
animatebg.Parent = Torsoz
2542-
		RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2542+
animatebg.maxTorque = Vector3.new(1/0,10000,1/0)
2543-
		LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.4)
2543+
local lokvec = Torsoz.CFrame.lookVector*100
2544-
		LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2544+
animatebg.cframe = CFrame.new(NV, Vector3.new(lokvec.x,0,lokvec.z)) * CFrame.Angles(-math.pi/11,animangle/70,0)
2545-
		RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
2545+
SetWeld(Joint1,1,1, NV,NV, Vector3.new(0.45,-0.8,0), Vector3.new((animangle/27)-0.3,0,0.18))
2546-
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
2546+
SetWeld(Joint2,1,1, NV,NV, Vector3.new(-0.45,-0.8,0), Vector3.new((-animangle/27)-0.3,0,-0.18))
2547
SetWeld(Joint3,1,1, NV,NV, Vector3.new(1.4,0.5,0), Vector3.new((math.pi+0.2)+(animangle/26),0,0.18))
2548-
	for i=0,1,0.2 do
2548+
SetWeld(Joint4,1,1, NV,NV, Vector3.new(-1.4,0.5,0), Vector3.new((math.pi+0.2)+(-animangle/26),0,-0.18))
2549-
		swait()
2549+
2550-
		--[[		local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
2550+
2551-
if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
2551+
elseif hitz2.CanCollide == true then
2552-
local h = 5
2552+
if animatebg.Parent ~= nil then
2553-
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2553+
animatebg.Parent = Torsoz
2554-
if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
2554+
animatebg.maxTorque = Vector3.new(1/0,10000,1/0)
2555-
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2555+
local lokvec = Torsoz.CFrame.lookVector*100
2556-
if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
2556+
animatebg.cframe = CFrame.new(NV, Vector3.new(lokvec.x,0,lokvec.z))
2557-
scfr = blcf
2557+
animatebg.Parent = nil
2558-
elseif not scfr then
2558+
2559-
scfr = blcf
2559+
2560-
end]]
2560+
2561-
		Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
2561+
2562-
		RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
2562+
if GravAction == "Idle" and animatebg.Parent ~= nil then
2563-
		RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.8)*euler(0,1.3,0),.4)
2563+
animatebg.Parent = nil
2564-
		RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2564+
2565-
		LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.4)
2565+
2566-
		LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2566+
if math.abs(tickoffset - tick()) > 0.05 then
2567-
		RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
2567+
tickoffset = tick()
2568-
		LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
2568+
local flowcolor = HSV(hue, 0.7,1)
2569
recyclecount = (recyclecount % #fadetab) + 1
2570-
	attack=false
2570+
if flow.Value > 25 then
2571-
	con1:disconnect()
2571+
local lapos = (LA.CFrame * CFrame.new(0,-1,0)).p
2572-
	hitconasdf:disconnect()
2572+
local rapos = (RA.CFrame * CFrame.new(0,-1,0)).p
2573
local p = fadetab[recyclecount]
2574
p[1].Parent = m
2575
p[1].CFrame = CFrame.new((lapos+prevlapos)/2, lapos)
2576-
function attackthree()
2576+
p[2].Scale = Vector3.new(0.5,0.5,(lapos-prevlapos).magnitude*2)
2577-
	if attack==false and attacktype==3 then
2577+
p[2].VertexColor = Vector3.new(flowcolor.r,flowcolor.g,flowcolor.b)
2578-
		attacktype=1
2578+
p[1].Transparency = math.abs((flow.Value/120) - 0.8)
2579-
		attack=true
2579+
p[1].Transparency = p[1].Transparency + (1/#fadetab)
2580-
		con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",RootPart,.2,1) end) 
2580+
local p = fadetab2[recyclecount]
2581-
		for i=0,1,0.2 do
2581+
p[1].Parent = m
2582-
			swait()
2582+
p[1].CFrame = CFrame.new((rapos+prevrapos)/2, rapos)
2583-
			Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.4)
2583+
p[2].Scale = Vector3.new(0.5,0.5,(rapos-prevrapos).magnitude*2)
2584-
			RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.4)
2584+
p[2].VertexColor = Vector3.new(flowcolor.r,flowcolor.g,flowcolor.b)
2585-
			RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.2)*euler(0,-2,0),.4)
2585+
p[1].Transparency = math.abs((flow.Value/120) - 0.8)
2586-
			RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2586+
p[1].Transparency = p[1].Transparency + (1/#fadetab)
2587-
			LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.4)
2587+
2588-
			LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
2588+
2589-
			RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0),.4)
2589+
for i, v in pairs(fadetab) do
2590-
			LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,0),.4)
2590+
if v[1].Transparency < 0.9 then
2591
v[1].Transparency = v[1].Transparency + (1/#fadetab)
2592-
		so("http://roblox.com/asset/?id=199145913",hitbox,1,1)
2592+
fadetab2[i][1].Transparency = fadetab2[i][1].Transparency + (1/#fadetab)
2593-
					hitconasdf = hitbox.Touched:connect(function(hit)
2593+
elseif v[1].Transparency ~= 1 then
2594-
		local hum12 = hit.Parent:FindFirstChild("Humanoid")
2594+
v[1].Transparency = 1
2595-
		if hum12 and not hum12:IsDescendantOf(Character) then
2595+
v[1].Position = Vector3.new(50000,0,0)
2596-
			so("http://www.roblox.com/asset/?id="..hitsounds[math.random(1,#hitsounds)],hitbox,1,1)
2596+
fadetab2[i][1].Transparency = 1
2597-
			hitconasdf:disconnect()
2597+
fadetab2[i][1].Position = Vector3.new(50000,0,0)
2598
end
2599-
	    end)
2599+
2600-
		for i=0,1,0.1 do
2600+
2601-
			swait()
2601+
prevrapos = (RA.CFrame * CFrame.new(0,-1,0)).p
2602-
		--[[			local blcf = hitbox.CFrame*CFrame.new(0,.5,0)
2602+
prevlapos = (LA.CFrame * CFrame.new(0,-1,0)).p
2603-
if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
2603+
2604-
local h = 5
2604+
2605-
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2605+
if flow.Value > 140 then
2606-
if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
2606+
if char.Parent ~= nil then
2607-
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2607+
char:remove()
2608-
if a then game.Debris:AddItem(a,trispeed) end if b then game.Debris:AddItem(b,trispeed) end
2608+
2609-
scfr = blcf
2609+
2610-
elseif not scfr then
2610+
2611-
scfr = blcf
2611+
if flowcooldown > 0 then
2612-
end]]
2612+
flowcooldown = flowcooldown - 1
2613-
			Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.35)
2613+
2614-
			RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.35)
2614+
if HWRCooldown > 0 then
2615-
			RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,0,-1.2)*euler(0,-1.2,0),.35)
2615+
HWRCooldown = HWRCooldown - 1
2616-
			RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
2616+
2617-
			LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.4,0,-.7)*euler(0,0,0),.35)
2617+
if VWRCooldown > 0 then
2618-
			LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.35)
2618+
if hitz ~= nil and VWRCooldown > 0 then
2619-
			RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.6,0),.35)
2619+
VWRCooldown = VWRCooldown - 1
2620-
			LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.6,0),.35)
2620+
2621
end
2622-
		attack=false
2622+
if SlideCooldown > 0 then
2623-
		con1:disconnect()
2623+
SlideCooldown = SlideCooldown - 1
2624-
		hitconasdf:disconnect()
2624+
2625
 
2626
if Action == "HWallRunning" or Action == "VWallRunning" then
2627
flow.Value = flow.Value + 0.24
2628
if flow.Value > 100 then
2629
flow.Value = 100
2630-
function IrisShot()
2630+
2631-
attack=true
2631+
flowcooldown = 40
2632-
for i=0,1,.1 do
2632+
elseif Action == "Diving" then
2633-
swait()
2633+
flowcooldown = 30
2634-
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3)
2634+
elseif Action == "Sliding" then
2635-
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
2635+
flowcooldown = 15
2636-
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
2636+
elseif Action == "Standing" or Action == "Sitting" then
2637-
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
2637+
if flow.Value > 0 and flowcooldown <= 0 then
2638-
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-3),math.rad(65),math.rad(0)),.3)
2638+
flow.Value = flow.Value - 0.37
2639-
LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(-25),math.rad(-110),math.rad(0))*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
2639+
if flow.Value < 0 then
2640
flow.Value = 0
2641-
so("http://www.roblox.com/asset/?id=401604539",EffectPart2,1.5,1.5)
2641+
2642-
efprt=part2(Enum.FormFactor.Custom,game.Workspace,Enum.Material.Neon,0,0,"White","BallEffect",Vector3.new(2, 2, 2))
2642+
2643-
weld(m,Character["Left Arm"],efprt,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
2643+
2644-
mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
2644+
2645-
ChargeBall(EffectPart2,35)
2645+
cam.FieldOfView = FOV
2646-
for i=0,1,.1 do
2646+
prevanimbgcount = animatebgcount
2647-
swait()
2647+
sprint = defsprint + ((flow.Value/100)*2.4)
2648-
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
2648+
PrevGravAction = GravAction
2649-
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
2649+
Calculate()
2650-
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
2650+
end)