View difference between Paste ID: GM05bfvF and rZDrmx2y
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
 
3-
local player = game.Players.LocalPlayer;char = player.Character;char.Archivable = true;
3+
4
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6
do
7
    print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
    script.Parent = Player.Character
9
 
10
    --RemoteEvent for communicating
11
    local Event = Instance.new("RemoteEvent")
12
    Event.Name = "UserInput_Event"
13
 
14
    --Fake event to make stuff like Mouse.KeyDown work
15
    local function fakeEvent()
16
        local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
        t.connect = t.Connect
18
        return t
19
    end
20
 
21
    --Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
    end}
27
    --Merged 2 functions into one by checking amount of arguments
28
    CAS.UnbindAction = CAS.BindAction
29
 
30
    --This function will trigger the events that have been :Connect()'ed
31
    local function te(self,ev,...)
32
        local t = m[ev]
33
        if t and t._fakeEvent and t.Function then
34
            t.Function(...)
35
        end
36
    end
37
    m.TrigEvent = te
38
    UIS.TrigEvent = te
39
 
40
    Event.OnServerEvent:Connect(function(plr,io)
41
        if plr~=Player then return end
42
        if io.isMouse then
43
            m.Target = io.Target
44
            m.Hit = io.Hit
45
        else
46
            local b = io.UserInputState == Enum.UserInputState.Begin
47
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
            end
50
            for _,t in pairs(CAS.Actions) do
51
                for _,k in pairs(t.Keys) do
52
                    if k==io.KeyCode then
53
                        t.Function(t.Name,io.UserInputState,io)
54
                    end
55
                end
56
            end
57
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
        end
60
    end)
61
    Event.Parent = NLS([==[
62
    local Player = game:GetService("Players").Rohan_Kishiba
63
    local Event = script:WaitForChild("UserInput_Event")
64
 
65
    local UIS = game:GetService("UserInputService")
66
    local input = function(io,a)
67
        if a then return end
68
        --Since InputObject is a client-side instance, we create and pass table instead
69
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
    end
71
    UIS.InputBegan:Connect(input)
72
    UIS.InputEnded:Connect(input)
73
 
74
    local Mouse = Player:GetMouse()
75
    local h,t
76
    --Give the server mouse data 30 times every second, but only if the values changed
77
    --If player is not moving their mouse, client won't fire events
78
    while wait(1/30) do
79
        if h~=Mouse.Hit or t~=Mouse.Target then
80
            h,t=Mouse.Hit,Mouse.Target
81
            Event:FireServer({isMouse=true,Target=t,Hit=h})
82
        end
83
    end]==],Player.Character)
84
    Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
87
wait(.25)--made by yoyyo75 :3
88
run = game:GetService("RunService")
89
local player = game.Players.Rohan_Kishiba;char = player.Character;char.Archivable = true;
90
hrp = char:findFirstChild("HumanoidRootPart");head = char:findFirstChild("Head");ra = char:findFirstChild("Right Arm");la = char:findFirstChild("Left Arm");t = char:findFirstChild("Torso");humanoid = char:findFirstChild("Humanoid");ll = char:findFirstChild("Left Leg");rl = char:findFirstChild("Right Leg");
91
if player.Backpack:findFirstChild("WindKatana") then
92
player.Backpack:findFirstChild("WindKatana").Parent = nil
93
end
94
local hb = Instance.new("HopperBin", player.Backpack)
95
hb.Name = "WindKatana"
96
sword = Instance.new("Model");sword.Name = "WindKatana"
97
script.Parent =  hb;idol = true
98
if char:findFirstChild(hb.Name) then
99
char:findFirstChild(hb.Name):Destroy()
100
end
101
equip=false;anim = false;banim=false;click=false;damageon=false;DMG=0;edown=false;canjump=true;running=false;don=false;Damag = 10;fell = true;lenormal=true;lerun=false;canjump=true;locanrun=false;ss=false;canboost = true
102
if char:findFirstChild(hb.Name) then
103
char:findFirstChild(hb.Name).Parent = nil
104
end
105
function weldIt(p1,p2,r1,r2,place)
106
	local w = Instance.new("Weld")
107
	if place then
108
		w.Parent = place
109
	else
110
		w.Parent = p1
111
	end
112
	w.Part0 = p1
113
	w.Part1 = p2
114
	w.C0 = r1
115
	if r2 then
116
	w.C1 = r2
117
	end
118
	return w
119
end
120
121
122
123
Add = {
124
	part = function(color,size,pos, place, naym,scale, thing,mt,ccd,id,transparent,loool,ff,yos)
125
		if loool ~= nil then
126
		balleff = Instance.new(loool, place)
127
		else
128
		balleff = Instance.new("Part", place)
129
		balleff.Material = "SmoothPlastic"
130
		balleff.TopSurface = "SmoothNoOutlines"
131
		balleff.BottomSurface = "SmoothNoOutlines"
132
		balleff.RightSurface = "SmoothNoOutlines"
133
		balleff.LeftSurface = "SmoothNoOutlines"
134
		end
135
		balleff.Name = naym
136
		balleff.Anchored= true
137
		balleff.CFrame = pos
138
		if loool == nil then
139
		balleff.Shape = thing
140
		end
141
		if ff then
142
			balleff.FormFactor = ff
143
		end
144
		balleff.CanCollide = ccd;balleff.Transparency = transparent;
145
		balleff.TopSurface = 0
146
		balleff.BottomSurface = 0
147
		balleff.Size = size
148
		balleff.BrickColor = BrickColor.new(color)
149
		if not yos then
150
		mesh = Instance.new("SpecialMesh",balleff)
151
		mesh.MeshType = mt
152
		else
153
		mesh = Instance.new(yos,balleff)
154
		end
155
		mesh.Scale = scale
156
		if mt == "FileMesh" then
157
			mesh.MeshId = id
158
		end
159
		balleff.Parent = place
160
		return balleff
161
	end,
162
	bp = function(parent,num,p)
163
		lop = Instance.new("BodyPosition",parent)
164
		lop.Name = num
165
		lop.maxForce = Vector3.new(math.huge,math.huge,math.huge)
166
		lop.position = p
167
		return lop
168
	end,
169
	BG = function(P,cf)
170
		local bg = Instance.new("BodyGyro",P)
171
		bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
172
		bg.P = 14000
173
		bg.cframe = cf
174
		return bg
175
	end
176
}
177
178
179
180
181
182
183
184
185
-- MAKING THE BLADE---
186
Lite= Add.part("Mid gray",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-185.849991, 1.64999986, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Lite",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom")
187
Dark= Add.part("Black",Vector3.new(0.400000066, 0.799999952, 0.49999997),CFrame.new(-185.991409, 1.50857925, -65.3999939, -0.707106709, -0.707106709, 0, 0.707106709, -0.707106709, 0, 0, 0, 1),sword,"Dark",Vector3.new(0.100000001, 0.949999988, 0.574999988),"Block","Brick",false,nil,0,Part,"Custom")
188
Dark= Add.part("Black",Vector3.new(0.400000066, 0.399999976, 0.399999976),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom")
189
Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-183.909775, 3.94065022, -65.3999939, 0.500000119, -0.866025269, 0, 0.866025269, 0.500000119, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom")
190
Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-183.803696, 3.83458066, -65.3799896, 0.500000119, 0.866025269, 1.44789709e-007, 0.866025269, -0.500000119, -6.87506159e-008, 1.28551001e-008, 1.5976687e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
191
Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-185.531784, 1.82677507, -65.3999939, 0.707106829, -0.707106709, 0, 0.707106709, 0.707106829, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom")
192
Dark= Add.part("Black",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-185.849991, 1.64999986, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom")
193
Dark= Add.part("Black",Vector3.new(0.200000077, 0.200000003, 0.5),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom")
194
Lite= Add.part("Mid gray",Vector3.new(0.400000066, 0.399999976, 0.399999976),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Lite",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom")
195
BPart= Add.part("Black",Vector3.new(0.5, 0.399999976, 0.399999976),CFrame.new(-187.087418, 0.412563771, -65.3999939, 0.707106769, -0.70710665, 0, 0.70710665, 0.707106769, 0, 0, 0, 1),sword,"BPart",Vector3.new(0.300000012, 1, 0.800000012),"Block","Cylinder",false,nil,0,Part,"Custom")
196
Dark= Add.part("Black",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-186.132828, 1.36715674, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Dark",Vector3.new(1, 1, 0.600000024),"Block","Brick",false,nil,0,Part,"Custom")
197
Blade= Add.part("Medium stone grey",Vector3.new(1, 0.200000003, 0.399999976),CFrame.new(-185.461075, 1.68535447, -65.4199982, -0.707106948, 0.70710659, 4.49529054e-008, -0.70710659, -0.707106948, -1.68587405e-007, -8.74227553e-008, -1.50995817e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
198
Blade= Add.part("Medium stone grey",Vector3.new(0.450000018, 0.200000003, 0.399999976),CFrame.new(-183.487625, 4.42047977, -65.4199982, -0.42261827, 0.906307817, 6.54755326e-008, -0.906307817, -0.42261827, -1.5063398e-007, -1.08849591e-007, -1.23001655e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
199
Lite= Add.part("Mid gray",Vector3.new(0.300000042, 0.299999982, 0.399999976),CFrame.new(-186.132828, 1.36715674, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Lite",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom")
200
Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.824173, 2.3771975, -65.4199982, -0.642787755, 0.766044319, 4.49529054e-008, -0.766044319, -0.642787755, -1.68587405e-007, -1.00250247e-007, -1.42801824e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
201
Blade= Add.part("Medium stone grey",Vector3.new(0.200000048, 0.400000006, 0.399999976),CFrame.new(-183.458023, 4.85696697, -65.3999939, -4.58588154e-008, 0.34202069, -0.939692378, -1.01666373e-008, 0.939692378, 0.34202069, 1, 2.52381778e-008, -3.96159798e-008),sword,"Blade",Vector3.new(0.400000006, 1, 0.5),"Block","Wedge",false,nil,0,Part,"Custom")
202
Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.28212, 3.08361006, -65.3799896, 0.57357651, 0.819151938, 1.44790121e-007, 0.819151938, -0.57357651, -6.87501966e-008, 2.67313585e-008, 1.58038603e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
203
Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.824173, 2.3771956, -65.3799896, 0.642787695, 0.766044378, 1.25616637e-007, 0.766044378, -0.642787695, -8.79236737e-008, 1.33913973e-008, 1.52744178e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
204
Blade= Add.part("Medium stone grey",Vector3.new(1, 0.200000003, 0.399999976),CFrame.new(-185.461075, 1.68535447, -65.3799896, 0.707106829, 0.707106709, 1.06770145e-007, 0.707106709, -0.707106829, -1.06770166e-007, 0, 1.50995803e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
205
Blade= Add.part("Medium stone grey",Vector3.new(0.5, 0.200000003, 0.399999976),CFrame.new(-183.40889, 4.83704281, -65.3799896, -0.0871555209, 0.99619472, 2.72493907e-007, 0.99619472, 0.0871555209, 5.89535674e-008, 3.49798697e-008, 2.76595131e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
206
Blade= Add.part("Medium stone grey",Vector3.new(0.400000036, 0.200000003, 0.399999976),CFrame.new(-183.604263, 4.50388622, -65.3999939, 0.42261833, -0.906307757, 0, 0.906307757, 0.42261833, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom")
207
Handle= Add.part("Medium stone grey",Vector3.new(1.20000005, 0.399999976, 0.399999976),CFrame.new(-186.627823, 0.872184277, -65.3999939, 0.707106769, -0.70710665, 0, 0.70710665, 0.707106769, 0, 0, 0, 1),sword,"Handle",Vector3.new(1, 1, 0.600000024),"Block","Cylinder",false,nil,0,Part,"Custom")
208
Blade= Add.part("Medium stone grey",Vector3.new(0.450000018, 0.200000003, 0.399999976),CFrame.new(-183.487625, 4.4204855, -65.3799896, 0.422614396, 0.906309605, 1.64295614e-007, 0.906309605, -0.422614396, -4.92447079e-008, 2.48027376e-008, 1.69714212e-007, -1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
209
Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.930252, 2.48326516, -65.3999939, 0.642787695, -0.766044378, 0, 0.766044378, 0.642787695, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom")
210
Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.28212, 3.08361387, -65.4199982, -0.57357657, 0.819151938, 4.49529622e-008, -0.819151938, -0.57357657, -1.6858732e-007, -1.12314666e-007, -1.33521056e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
211
Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-183.803696, 3.83458257, -65.4199982, -0.500000179, 0.866025329, 6.55408243e-008, -0.866025329, -0.500000179, -1.5046507e-007, -9.75361445e-008, -1.31992579e-007, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
212
Blade= Add.part("Medium stone grey",Vector3.new(0.5, 0.200000003, 0.399999976),CFrame.new(-183.40889, 4.83704853, -65.4199982, 0.0871553719, 0.99619472, 6.76225653e-008, -0.99619472, 0.0871553719, -1.49568123e-007, -1.54892646e-007, -5.43295755e-008, 1),sword,"Blade",Vector3.new(1, 0.5, 0.100000001),"Block","Wedge",false,nil,0,Part,"Custom")
213
Core= Add.part("Bright red",Vector3.new(0.200000077, 0.200000003, 0.5),CFrame.new(-185.991409, 1.50857735, -65.3999939, 0, -1, 0, 1, 0, -0, 0, 0, 1),sword,"Core",Vector3.new(0.800000012, 0.800000012, 0.699999988),"Block","Brick",false,nil,0,Part,"Custom")
214
Blade= Add.part("Medium stone grey",Vector3.new(0.900000036, 0.200000003, 0.399999976),CFrame.new(-184.388199, 3.18968129, -65.3999939, 0.57357651, -0.819151998, 0, 0.819151998, 0.57357651, 0, 0, 0, 1),sword,"Blade",Vector3.new(1, 1, 0.200000003),"Block","Brick",false,nil,0,Part,"Custom")
215
hitbox= Add.part("Medium stone grey",Vector3.new(1, 3.46000004, 1),CFrame.new(-184.459076, 3.10561037, -65.4410172, 0.060511604, 0.598099828, -0.799133182, -0.0353691019, 0.801382124, 0.597104728, 0.997539937, -0.0078676939, 0.0696469769),sword,"hitbox",Vector3.new(1, 1, 1),"Block","Brick",false,nil,1,Part,"Brick")
216
217
while not ra or not la or not t or not humanoid or not head or not ll or not rl or not hrp do
218
	wait()
219
end
220
	hrpw = hrp:findFirstChild("RootJoint");lh = t:findFirstChild("Left Hip");rh = t:findFirstChild("Right Hip");rs = t:findFirstChild("Right Shoulder");ls = t:findFirstChild("Left Shoulder");neck = t:findFirstChild("Neck");
221
while not ls or not rs or not neck or not hrpw do
222
		wait()
223
end
224
co = hrpw.C0
225
moop = {}
226
function Hit(p)
227
	if don then
228
		Damagefunc(p,Damag-5,Damag+5,math.random(10,30),"Normal") end
229
	if QHIT then
230
		if not checkintable(p.Parent, moop) then
231
		Damagefunc(p,Damag+5,Damag+15,math.random(10,30),"Normal");
232
		table.insert(moop, p.Parent);else print("herena") end
233
	end
234
end
235
236
237
nu = sword:GetChildren()
238
for i = 1, #nu do
239
if nu[i].Name ~= "Handle" then
240
	if nu[i].Name == "Blade" or nu[i].Name == "hitbox" then
241
		nu[i].Touched:connect(Hit)
242
	end
243
	w = Instance.new("Weld", sword.Handle)
244
	w.Part0 = sword.Handle
245
	w.Part1 = nu[i]
246
	w.C0 = sword.Handle.CFrame:toObjectSpace(nu[i].CFrame)
247
	nu[i].Anchored = false
248
end
249
end
250
sword.Handle.Anchored = false;sword.Parent = char
251
function backweld()
252
bw = weldIt(t,Handle,CFrame.new(1.15,-0.85,-1)*CFrame.Angles(math.rad(25),math.rad(-90),0),nil)
253
return bw
254
end
255
256
backweld()
257
258
function checkintable(chek, tabl)
259
	for i = 1, #tabl do
260
		if tabl[i] == check then
261
		return true
262
		end
263
	end
264
	return false
265
end
266
------function of le splash-------------
267
268
function splash()
269
local blcf = hitbox.CFrame*CFrame.new(-.125,.2,0)
270
if scfr and (hitbox.Position-scfr.p).magnitude > .1 then
271
local h = 4.7
272
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)
273
if a then game.Debris:AddItem(a,.1) end if b then game.Debris:AddItem(b,.1) end
274
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)
275
if a then game.Debris:AddItem(a,.1) end if b then game.Debris:AddItem(b,.1) end
276
scfr = blcf
277
elseif not scfr then
278
scfr = blcf
279
end
280
end
281
function rest(num)
282
for i = 0, 1, 0.13 do 
283
if combo ~= num then
284
return 
285
end
286
normal(i)
287
wait()
288
end
289
if combo ~= num then
290
return 
291
end
292
scfr=nil;anim = false;running=false;canslash=false;combo=4;runit()
293
end
294
-------------------------slashr------------------------------------------------------slashr------------------------------------------------------slashr-----------------------------
295
slash ={
296
function()
297
anim = true
298
299
for i = 0, 1, 0.23 do
300
animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(170),i);
301
	animate("rr",CFrame.new(1.5,0.5,0),0,math.rad(95),math.rad(110),i);animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-45),0,math.rad(-25),i)
302
	animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i)
303
	animate("hr",CFrame.new(0,1,0),0,math.rad(-90),0,i)
304
	animate("reg",CFrame.new(0.5,-1.1,-0.65),math.rad(-15),0,0,i)
305
	animate("leg",CFrame.new(-0.5,-1.2,0),math.rad(-25),0,0,i)
306
	wait()
307
end
308
wait()
309
don = true;attackdebounce = false;scfr = nil
310
for i = 0, 1, 0.16 do
311
wait()
312
splash()
313
animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(20),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-20),0,i)
314
	animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,0,i)
315
	animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,0,i)
316
	animate("rr",CFrame.new(1.5,0.5,0),0,math.rad(-60),math.rad(110),i);
317
end
318
scfr = nil;don = false;canslash=true;
319
rest(1)
320
end,
321
322
323
324
function()
325
anim = true
326
for i = 0, 1, 0.24 do
327
animate("bw",CFrame.new(0,-1,0),math.rad(20),math.rad(90),math.rad(0),i)
328
animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(-50),i);animate("hr",CFrame.new(0,1,0),0,math.rad(10),0,i)
329
animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,math.rad(10),i)
330
animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,0,i)
331
animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(0),math.rad(110),i);
332
wait()
333
end
334
wait();don = true;attackdebounce = false;scfr=nil;
335
for i = 0, 1, 0.2 do
336
wait()
337
splash()
338
animate("bw",CFrame.new(0,-1,0),math.rad(-60),math.rad(90),math.rad(0),i)
339
animate("Toso",(co-Vector3.new(0,0.3,0)),math.rad(40),math.rad(0),math.rad(0),i);animate("hr",CFrame.new(0,1,0),math.rad(40),math.rad(10),0,i)
340
animate("reg",CFrame.new(0.5,-1.2,-0.2),math.rad(10),0,math.rad(10),i)
341
animate("leg",CFrame.new(-0.5,-1.2,-0.6),math.rad(30),0,0,i)
342
animate("rr",CFrame.new(1.2,0.5,-0.3),math.rad(75),math.rad(0),math.rad(-40),i);
343
end
344
scfr = nil;don = false;canslash=true
345
rest(2)
346
end,
347
function()
348
anim = true;
349
for i = 0, 1, 0.24 do
350
wait();
351
animate("bw",CFrame.new(0,-1,0),math.rad(0),math.rad(90),math.rad(0),i)
352
animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(30),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-30),0,i)
353
animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,math.rad(15),i)
354
animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,math.rad(-15),i)
355
animate("rr",CFrame.new(1,0.6,-0.25),math.rad(180),math.rad(40),math.rad(-70),i);
356
end;don = true;attackdebounce = false;scfr=nil
357
for i = 0, 1, 0.2 do
358
wait()
359
splash()
360
animate("bw",CFrame.new(0,-1,0),math.rad(-40),math.rad(90),math.rad(0),i)
361
animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(-50),i);animate("hr",CFrame.new(0,1,0),0,math.rad(50),0,i)
362
animate("reg",CFrame.new(0.5,-1.5,0),math.rad(20),0,math.rad(6),i)
363
animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(-10),0,math.rad(-10),i)
364
animate("rr",CFrame.new(1.5,0.5,0),math.rad(0),math.rad(60),math.rad(50),i);
365
end
366
scfr = nil;don = false;canslash=true
367
rest(3)
368
end,
369
function()
370
anim = true
371
for i = 0, 1, 0.24 do
372
animate("bw",CFrame.new(0,-1,0),math.rad(-100),math.rad(90),math.rad(0),i)
373
animate("Toso",(co-Vector3.new(0,0.6,0)),0,math.rad(0),math.rad(-40),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-30),0,i)
374
animate("reg",CFrame.new(0.5,-0.9,-0.5),math.rad(0),0,math.rad(15),i)
375
animate("leg",CFrame.new(-0.5,-0.9,0.15),math.rad(-45),0,math.rad(0),i)
376
animate("rr",CFrame.new(1.4,0.5,0),math.rad(0),math.rad(0),math.rad(75),i);
377
wait()
378
end;wait();don = true;attackdebounce = false;scfr=nil
379
for i = 0, 1, 0.24 do
380
wait();splash()
381
animate("bw",CFrame.new(0,-1,0),math.rad(0),math.rad(90),math.rad(0),i)
382
animate("Toso",(co-Vector3.new(0,0,0)),0,math.rad(0),math.rad(30),i);animate("hr",CFrame.new(0,1,0),0,math.rad(-30),0,i)
383
animate("reg",CFrame.new(0.5,-1.5,0),math.rad(0),0,math.rad(15),i)
384
animate("leg",CFrame.new(-0.5,-1.5,0),math.rad(0),0,math.rad(-15),i)
385
animate("rr",CFrame.new(1,0.6,-0.25),math.rad(180),math.rad(40),math.rad(-70),i);
386
end;scfr = nil;don = false;canslash=true;rest(4)
387
end
388
}
389
-------------------------slashr------------------------------------------------------slashr------------------------------------------------------slashr-----------------------------
390
391
combo = 4;canslash=false
392
393
394
function clik()
395
	if not anim or canslash then
396
	canslash=false;scfr = nil
397
	if combo == 4 then
398
	combo=1;slash[1]();
399
	elseif combo == 1 then
400
	combo=2;slash[2]()
401
	elseif combo == 2 then
402
	combo=3;slash[3]()
403
	elseif combo == 3 then
404
	combo=4;slash[4]()
405
	end
406
	end
407
end
408
QHIT = false;
409
skills = {
410
function(mouse)
411
anim = true;locanrun=true;canjump=false
412
normal(1)
413
mh = mouse.Hit.p
414
x,y,z = (CFrame.new(char.Torso.Position,Vector3.new(mh.X,char.Torso.Position.Y,mh.Z))):toEulerAnglesXYZ()
415
char.Torso.CFrame = CFrame.new(char.Torso.Position,Vector3.new(mh.X,char.Torso.Position.Y,mh.Z))
416
wait();QHIT = true
417
for i = 0, 1, 0.333333 do
418
animate("bw",CFrame.new(0,-1,0),math.rad(-90),math.rad(90),math.rad(0),i)
419
animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(-90),i);animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(90),0,i)
420
animate("rr",CFrame.new(1.2,0.5,-1),math.rad(90),math.rad(0),math.rad(-90),i);
421
wait()
422
end
423
wait();moop={};
424
for i = 0, 1, 0.333333 do
425
animate("bw",CFrame.new(0,-1,0),math.rad(-90),math.rad(90),math.rad(0),i)
426
animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(90),i);	animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(-70),0,i)
427
animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(0),math.rad(90),i);
428
wait()
429
end;mufu={}
430
wind1= Add.part("Institutional white",Vector3.new(4, 1.2, 1),(hitbox.CFrame-Vector3.new(0,1,0))*CFrame.Angles(math.rad(-10),0,math.rad(90)),sword,"wind",Vector3.new(1.6, 1.1, 1.1),"Block","Sphere",false,nil,0.69999998807907,Part,"Brick")
431
wind2= Add.part("Really black",Vector3.new(4, 1.2, 1),(hitbox.CFrame-Vector3.new(0,1,0))*CFrame.Angles(math.rad(-10),0,math.rad(90)),sword,"wind",Vector3.new(1.6, 1.1, 1.1),"Block","Sphere",false,nil,0.60000002384186,Part,"Brick");wind2.Mesh.Offset = Vector3.new(0.4,0,0)
432
wind3= Add.part("Medium stone grey",Vector3.new(4, 1.2, 1),(hitbox.CFrame-Vector3.new(0,1,0))*CFrame.Angles(math.rad(-10),0,math.rad(90)),sword,"wind",Vector3.new(1.6, 1.1, 1.1),"Block","Sphere",false,nil,0.5,Part,"Brick");wind3.Mesh.Offset = Vector3.new(0.6,0,0)
433
wind1.CFrame = hitbox.CFrame*CFrame.Angles(math.rad(-10),0,math.rad(90))-Vector3.new(0,0.3,0);wind2.CFrame = hitbox.CFrame*CFrame.Angles(math.rad(-10),0,math.rad(90))-Vector3.new(0,0.3,0);wind3.CFrame = hitbox.CFrame*CFrame.Angles(math.rad(-10),0,math.rad(90))-Vector3.new(0,0.3,0)
434
eff2 = Add.part("Medium stone grey", Vector3.new(), hitbox.CFrame*CFrame.Angles(1,1,1),char,"effect",Vector3.new(1,1,1),"Block","Brick",false,nil,0.4,Part,"Brick")
435
eff1 = Add.part("Medium stone grey", Vector3.new(1,1,1), hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),char,"effect",Vector3.new(1,1,1),"Block","Brick",false,nil,0.4,Part,"Brick")
436
eff3= Add.part("White",Vector3.new(1, 1, 1),hitbox.CFrame*CFrame.new(0,0,-1),char,"effect",Vector3.new(1.5, 1.5, 1),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=3270017",0.8,Part,"Symmetric")
437
eff4= Add.part("Black",Vector3.new(1, 1, 1),hitbox.CFrame*CFrame.new(0,0,-1.5),char,"effect",Vector3.new(1.25, 1.25, 1),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=3270017",0.8,Part,"Symmetric")
438
eff1.CFrame = hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360));eff2.CFrame = hitbox.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
439
eff3.CFrame = (hitbox.CFrame*CFrame.new(0,-1,0))*CFrame.Angles(math.rad(90),0,0);eff4.CFrame=(hitbox.CFrame*CFrame.new(0,-1.5,0))*CFrame.Angles(math.rad(90),0,0)
440
table.insert(mufu,wind1);table.insert(mufu,wind2);table.insert(mufu,wind3);
441
		coroutine.resume(coroutine.create(function(p1,p2,p3,p4,cf1)
442
		for i = 0,1,1/13 do
443
		p1.CFrame = (cf1*CFrame.new(0,3*i,-.5*i))*CFrame.Angles(math.rad(math.random(-400,400)),math.rad(math.random(-400,400)),math.rad(math.random(-400,400)));p1.Transparency=p1.Transparency+(0.6*(1/13))
444
		p2.CFrame = (cf1*CFrame.new(0,3*i,-.5*i))*CFrame.Angles(math.rad(math.random(-400,400)),math.rad(math.random(-400,400)),math.rad(math.random(-400,400)));p2.Transparency=p2.Transparency+(0.6*(1/13))
445
		p3.CFrame = (cf1*CFrame.new(0,-1+8*i,0.17-(8*(0.5/3))*i)*CFrame.Angles(math.rad(90),0,0));p3.Mesh.Scale = Vector3.new(1.5+1*i,1.5+1*i,1);p3.Transparency = 0.8+0.3*i
446
		p4.CFrame = (cf1*CFrame.new(0,-1.5+7.5*i,0.17-(7.5*(0.5/3))*i)*CFrame.Angles(math.rad(90),0,0));p4.Mesh.Scale = Vector3.new(1.25+1*i,1.25+1*i,1);p4.Transparency = 0.8+0.3*i
447
		wait();
448
		end;p1.Parent=nil;p2.Parent=nil;p3.Parent=nil;p4.Parent=nil
449
		end),eff1,eff2,eff3,eff4,hitbox.CFrame)
450
for x = 1, #mufu do
451
coroutine.resume(coroutine.create(function(wind,hey,trans,mehx)
452
	for i = 0, 1, (1/13) do
453
	wind.Mesh.Scale = Vector3.new(hey.X+1*i,hey.Y-hey.Y*i,hey.Z-hey.Z*i)
454
	wind.Mesh.Offset = Vector3.new(mehx+1*i,0,0)
455
	wind.Transparency = trans+(1-trans)*i
456
	wait()
457
	end;wind.Parent=nil
458
end),mufu[x],mufu[x].Mesh.Scale,mufu[x].Transparency,mufu[x].Mesh.Offset.X)
459
end
460
461
462
463
QHIT = false;locanrun=false;canjump=true;lerun=false
464
anim = false;
465
end,
466
function()
467
anim = true;canjump = false
468
bodyp = Add.bp(t,"Stay",t.Position);
469
for i = 0, 1, 1/7 do
470
	animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i)
471
	animate("Toso",(co-Vector3.new(0,0.5,0)),math.rad(30),math.rad(0),math.rad(0),i)
472
	animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(0),0,i)
473
	animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(35),math.rad(-25),i)
474
	animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-15),0,math.rad(-45),i)
475
	animate("reg",CFrame.new(0.5,-1,-0.65),math.rad(25),0,0,i)
476
	animate("leg",CFrame.new(-0.5,-1.3,0),math.rad(5),0,0,i)
477
wait()
478
end;logic = Add.BG(hrp,hrp.CFrame)
479
for i = 1, 10 do
480
boost= Add.part("White",Vector3.new(1, 1, 1),t.CFrame*CFrame.new(0,0,-1),char,"effect",Vector3.new(3, 3, 3),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=20329976",0.3,Part,"Symmetric")
481
boost.CFrame = CFrame.new(t.Position-Vector3.new(0,1.2,0))*CFrame.Angles(0,math.rad(math.random(-360,360)),0)
482
coroutine.resume(coroutine.create(function(mama)
483
	for i = 0, 1, 1/12 do
484
		mama.CFrame = mama.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0);mama.Transparency = 0.3+0.5*i;mama.Mesh.Scale = Vector3.new(3+1*i,3+1*i,3+1*i);
485
	wait()
486
	end;mama.Parent=nil
487
end),boost)
488
wait()
489
end;
490
491
for i = 0, 1, 1/7 do
492
	animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i)
493
	animate("Toso",(co-Vector3.new(0,0,0)),math.rad(0),math.rad(0),math.rad(0),i)
494
	animate("hr",CFrame.new(0,1,0),math.rad(0),math.rad(0),0,i)
495
	animate("rr",CFrame.new(1.5,0.5,0),math.rad(0),math.rad(90),math.rad(90),i)
496
	animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-15),0,math.rad(-45),i)
497
	animate("reg",CFrame.new(0.5,-1,-0),math.rad(0),0,math.rad(25),i)
498
	animate("leg",CFrame.new(-0.5,-1,0),math.rad(0),0,math.rad(-25),i)
499
wait()
500
end;
501
502
ball = Add.part("White", Vector3.new(1,1,1), t.CFrame, char, "Effect", Vector3.new(20,20,20), "Block", "Sphere",false,nil,0.7,Part,"Custom")ball.Anchored = false
503
anchor = Add.part("White",Vector3.new(5,5,5),t.CFrame,char,"anchor",Vector3.new(20,20,20),"Block","Sphere",false,nil,1,Part,"Custom");anchor.Anchored = false
504
wind = Add.part("White",Vector3.new(5,5,5),t.CFrame,char,"anchor",Vector3.new(20,20,20),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=1051557",0.6,Part,"Custom");wind.Anchored = false
505
a=weldIt(t,anchor,CFrame.new(0,0,0),CFrame.new(0,0,0),nil);b=weldIt(t,wind,CFrame.new(0,0,0),CFrame.new(0,0,0),nil);c=weldIt(t,ball,CFrame.new(0,0,0),CFrame.new(0,0,0),nil)
506
already = {};weldos={};lepeepz=checkdist(t,17);gage = b.C0
507
508
for i = 1, #lepeepz do
509
 if lepeepz[i] then
510
 haw = weldIt(anchor,lepeepz[i].Torso,anchor.CFrame:toObjectSpace(lepeepz[i].Torso.CFrame),nil,nil)
511
 table.insert(weldos,haw);
512
 end
513
end
514
for i = 0,1, 1/120 do
515
if math.floor((i*120)%30) == 1 then
516
	for x = 1,#lepeepz do
517
	if lepeepz[x] and lepeepz[x]:findFirstChild("Humanoid") and lepeepz[x]:findFirstChild("Torso") then
518
	attackdebounce = false 
519
	Damagefunc(lepeepz[x].Torso,(humanoid.MaxHealth/10),(humanoid.MaxHealth/10),math.random(10,30),"Normal")
520
	end
521
	end
522
end
523
if math.floor((i*120)%4) == 1 then
524
lolbob = Add.part("White",Vector3.new(5,5,5),t.CFrame*CFrame.Angles(math.rad(math.random(-100,100)),math.rad(math.random(-100,100)),math.rad(math.random(-100,100))),char,"anchor",Vector3.new(2.5,2.5,2.5),"Block","FileMesh",false,"rbxassetid://168892432 ",0.4,Part,"Custom")
525
lolbob.CFrame = t.CFrame*CFrame.Angles(0,math.rad(-360,360),0)
526
coroutine.resume(coroutine.create(function(clone)
527
for i = 0, 1, 0.1 do
528
clone.Mesh.Scale = Vector3.new(2.5+5*i,2.5+5*i,2.5+5*i);clone.Transparency = 0.4+0.4*i
529
wait()
530
end;clone.Parent = nil
531
end),lolbob)
532
end
533
animate("Toso",(co-Vector3.new(0,0,0)),math.rad(0),math.rad(0),math.rad((360*16)*i),i);b.C0 = gage*CFrame.Angles(0,math.rad(100*i),0);ball.Transparency = 0.6-0.4*i;wind.Transparency = 0.6-0.4*i
534
for i = 1,#weldos do
535
weldos[i].C0 = weldos[i].C0*CFrame.new(0,0.0625,0)
536
end
537
wait()
538
end;logic.Parent=nil
539
coroutine.resume(coroutine.create(function(a1,a2,a3,ws,w)
540
	for i = 0, 1, 0.1 do
541
	w.C0 = ws*CFrame.Angles(0,math.rad(100*i),0)
542
	a1.Mesh.Scale = Vector3.new(20+3*i,20+3*i,20+3*i);a1.Transparency = 0.2+0.8*i
543
	a2.Mesh.Scale = Vector3.new(20+3*i,20+3*i,20+3*i);a2.Transparency = 0.2+0.8*i
544
	wait()
545
	end;a1.Parent=nil;a2.Parent=nil;a3.Parent=nil;
546
end),wind,ball,anchor,b.C0,b)
547
for i = 1,#weldos do if weldos[i] then weldos[i].Parent = nil end end
548
wait()
549
anim = false;bodyp.Parent=nil;canjump=true;
550
end,
551
function()
552
	niye = sword:GetChildren();guard=true;br = BrickColor.new("Institutional white")
553
	if ss then
554
		br = BrickColor.new("Medium stone grey");guard = false
555
	end
556
	for i = 1,# niye do
557
		if niye[i].Name == "Blade" then
558
			niye[i].BrickColor = br;ss = guard
559
		end
560
	end
561
end,
562
function(bik,rotate)
563
	if not canboost then return end
564
		coroutine.resume(coroutine.create(function(ilan,ratat)
565
	yolo = Add.bp(hrp,"BOPOLS",hrp.Position);canboost=false;
566
	boosts= Add.part("White",Vector3.new(5,5,5),hrp.CFrame,char,"boom",Vector3.new(2.5,2.5,2.5),"Block","FileMesh",false,"http://www.roblox.com/asset/?id=20329976",0.4,Part,"Custom")
567
	boosts.CFrame = (t.CFrame-Vector3.new(0,1.5,0))*CFrame.Angles(0,0,math.rad(ratat))
568
		coroutine.resume(coroutine.create(function(thing)
569
		print("yo")
570
			for i = 0, 1, 0.05 do
571
			thing.Mesh.Scale = Vector3.new(2.5+1*i,2.5+1*i,2.5+1*i);thing.Transparency = 0.4+0.5*i
572
			wait()
573
			end;thing.Parent=nil
574
				end),boosts)
575
	for i = 0, 1, 0.1 do
576
	yolo.position = (hrp.CFrame*CFrame.new(0,0,ilan)).p
577
	wait()
578
	end
579
	yolo.Parent = nil;canboost=true
580
		end),bik,rotate)
581
end
582
}
583
function led(key, mouse)
584
key = key:lower()
585
if anim then return end
586
if key == "z" then
587
skills[1](mouse)
588
elseif key == "x" then
589
skills[2](mouse)
590
elseif key == "r" then
591
skills[3]()
592
elseif key == "c" then
593
skills[4](-15,120)
594
elseif key == "v" then
595
skills[4](10,-120)
596
end
597
end
598
function normal(i)
599
	animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i)
600
	animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(90),i)
601
	animate("hr",CFrame.new(0,1,0),math.rad(-10),math.rad(-70),0,i)
602
	animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(115),math.rad(-25),i)
603
	animate("lr",CFrame.new(-1.5,0.5,0),math.rad(35),0,math.rad(-25),i)
604
	animate("reg",CFrame.new(0.5,-1.1,-0.65),math.rad(-15),0,0,i)
605
	animate("leg",CFrame.new(-0.5,-1.2,0),math.rad(-25),0,0,i)
606
end
607
function Equip(mouse)
608
print("yup")
609
if equip then return end
610
	while anim do wait() end
611
	rh.Parent=nil;rs.Parent=nil;lh.Parent=nil;neck.Parent=nil;ls.Parent=nil;rlw = weldIt(t,rl, CFrame.new(0.5,-1.5,0),CFrame.new(0,0.5,0));llw = weldIt(t,ll, CFrame.new(-0.5,-1.5,0),CFrame.new(0,0.5,0));
612
	rw = weldIt(t,ra,CFrame.new(1.5,0.5,0),CFrame.new(0,0.5,0),nil);lw = weldIt(t,la,CFrame.new(-1.5,0.5,0),CFrame.new(0,0.5,0));nw = weldIt(t,head,CFrame.new(0, 1, 0),CFrame.new(0,-0.5,0))
613
	anim = true
614
	bw.Parent = nil;running=false;idol=true;
615
	hw = weldIt(ra,Handle,CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0),nil)
616
	for i = 0,1,0.1 do
617
	normal(i)
618-
game:service'RunService'.RenderStepped:connect(function()
618+
619
	end
620
	mouse.Button1Down:connect(clik)
621
	mouse.KeyDown:connect(function(k) led(k, mouse) end)
622
	equip = true;anim = false;
623
end
624
function unequip(mouse)
625
if not equip then return end
626
	while anim do wait() end
627
	anim = true;ss=false
628
	for i = 0,1,0.1 do
629
	animate("Toso",co-Vector3.new(0,0.4-0.4*i,0),0,0,0,i)
630
	animate("hr",CFrame.new(0,1,0),0,0,0,i)
631
	animate("rr",CFrame.new(1.5,0.5,0),0,0,0,i)
632
	animate("lr",CFrame.new(-1.5,0.5,0),0,0,0,i)
633
	animate("reg",CFrame.new(0.5,-1.5,0),0,0,0,i)
634
	animate("leg",CFrame.new(-0.5,-1.5,0),0,0,0,i)
635
	wait(0.0001)
636
	end
637
	hw.Parent = nil;backweld()
638
	rw.Parent=nil;lw.Parent=nil;hrpw.C0 = co;rlw.Parent=nil;llw.Parent=nil;rh.Parent=t;lh.Parent=t;rs.Parent=t;ls.Parent=t;neck.Parent=t;
639
	equip=false;anim=false
640
end
641
canrun=false
642
function runit()
643
if(t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 and not anim and equip and fell then
644
running = true;
645
for i = 0, 1,(1/7) do
646
if not anim and equip and running and fell then
647
	animate("bw",CFrame.new(0,-1,0),0,math.rad(90),0,i)
648
	animate("Toso",(co-Vector3.new(0,0.4,0)),0,math.rad(5),math.rad(80),i)
649
	animate("hr",CFrame.new(0,1,0),math.rad(0),math.rad(-80),0,i)
650
	animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(45),math.rad(-25),i)
651
	animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-35),0,math.rad(-30),i)
652
	--[[animate("reg",CFrame.new(0.5,-1.1,0.2),math.rad(5),math.rad(-80),0,i)
653
	animate("leg",CFrame.new(-0.5,-1.2,-0.2),math.rad(-2),math.rad(-80),0,i)]]
654
	animate("reg",CFrame.new(0.6,-1.2,0),math.rad(5+35*math.cos((inf-7)/4)),math.rad(-40),0,i)
655
	animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(-2-35*math.cos((inf-7)/4)),math.rad(-40),0,i)
656
wait()
657
else
658
if hw then
659
	hw.C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0) end
660
break
661
end
662
end
663
664
end
665
end
666
--[[function run(speed)
667
if speed>0 then
668
669
if (t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 then
670
runit()
671
end
672
else
673
running = false
674
for i = 0, 1, 0.142 do
675
if not anim and equip and not running then
676
	normal(i)
677
wait()
678
else
679
if hw then
680
	hw.C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),0) end
681
break
682
end
683
end
684
idol = true
685
end
686
inf = 0
687
end]]
688
689
690
691
692
--to[mem
693
694
695
function Lerp(x,y,inc) return x + (y - x) * inc end
696
697
function animate(mem,cfr,x,y,z,e)
698
	To[mem].X=Lerp(To[mem].X,x,e);To[mem].Y=Lerp(To[mem].Y,y,e);To[mem].Z=Lerp(To[mem].Z,z,e)
699
	To[mem].cf=(cfr-Vector3.new(cfr.X,cfr.Y,cfr.Z))+Vector3.new(Lerp(To[mem].cf.X,cfr.X,e),Lerp(To[mem].cf.Y,cfr.Y,e),Lerp(To[mem].cf.Z,cfr.Z,e))
700
end
701
To={
702
 rr={X=0;Y=0;Z=0;cf=CFrame.new(1.5,0.5,0)};bw={X=math.rad(5);Y=math.rad(90);Z=0;cf=CFrame.new(0,-1,0)};lr={X=0;Y=0;Z=0;cf=CFrame.new(-1.5,0.5,0)};hr={X=0;Y=0;Z=0;cf=CFrame.new(0,1.5,0)};leg={X=0;Y=0;Z=0;cf=CFrame.new(-0.5,-1,0)};reg={X=0;Y=0;Z=0;cf=CFrame.new(0.5,-1,0)};Toso={X=0;Y=0;Z=0;cf=co}
703
}
704
game:service'RunService'.Stepped:connect(function()
705
	if rw then rw.C0=To["rr"].cf*CFrame.Angles((To["rr"].X),(To["rr"].Y),(To["rr"].Z)); end
706
	if hw and equip then hw.C0=To["bw"].cf*CFrame.Angles((To["bw"].X),(To["bw"].Y),(To["bw"].Z)) end
707
	if lw then lw.C0=To["lr"].cf*CFrame.Angles((To["lr"].X),(To["lr"].Y),(To["lr"].Z));end
708
	if nw then nw.C0=To["hr"].cf*CFrame.Angles((To["hr"].X),To["hr"].Y,To["hr"].Z);end
709
	if rlw then rlw.C0=To["reg"].cf*CFrame.Angles(To["reg"].X,To["reg"].Y,To["reg"].Z);end
710
	if llw then llw.C0=To["leg"].cf*CFrame.Angles(To["leg"].X,To["leg"].Y,To["leg"].Z);end
711
	if hrpw then hrpw.C0=To["Toso"].cf*CFrame.Angles(To["Toso"].X,To["Toso"].Y,To["Toso"].Z) end
712
end)
713
function NoOutline(Part)
714
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
715
end
716
---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
717
---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
718
---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
719
local ppart = Instance.new("Part")
720
ppart.Material = "SmoothPlastic"
721
ppart.TopSurface,ppart.BottomSurface = 0,0
722
ppart.FormFactor = "Custom"
723
ppart.Size = Vector3.new(.2,.2,.2)
724
ppart:BreakJoints()
725
ppart.TopSurface = "SmoothNoOutlines"
726
ppart.BottomSurface = "SmoothNoOutlines"
727
ppart.RightSurface = "SmoothNoOutlines"
728
ppart.LeftSurface = "SmoothNoOutlines"
729
ppart.CanCollide = false
730
731
local function CFrameFromTopBack(at, top, back)
732
local right = top:Cross(back)
733
return CFrame.new(at.x, at.y, at.z,
734
right.x, top.x, back.x,
735
right.y, top.y, back.y,
736
right.z, top.z, back.z)
737
end
738
 
739
function Triangle(a, b, c)
740
local edg1 = (c-a):Dot((b-a).unit)
741
local edg2 = (a-b):Dot((c-b).unit)
742
local edg3 = (b-c):Dot((a-c).unit)
743
if edg1 <= (b-a).magnitude and edg1 >= 0 then
744
a, b, c = a, b, c
745
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
746
a, b, c = b, c, a
747
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
748
a, b, c = c, a, b
749
else 
750
assert(false, "unreachable")
751
end
752
 
753
local len1 = (c-a):Dot((b-a).unit)
754
local len2 = (b-a).magnitude - len1
755
local width = (a + (b-a).unit*len1 - c).magnitude
756
 
757
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
758
 
759
local list = {}
760
 
761
if len1 > 0.01 then
762
local w1 = Instance.new('WedgePart', m)
763
w1.Material = "SmoothPlastic"
764
w1.FormFactor = 'Custom'
765
if Mode=="Unactive" then
766
w1.BrickColor = ppart.BrickColor
767
elseif Mode=="Hero" then
768
w1.BrickColor = BrickColor.new("Bright blue")
769
elseif Mode=="Infamous" then
770
w1.BrickColor = BrickColor.new("Bright red")
771
end
772
w1.Transparency = ppart.Transparency
773
w1.Reflectance = ppart.Reflectance
774
w1.Material = ppart.Material
775-
                        c.Value=game:service("Players").LocalPlayer
775+
776
NoOutline(w1)
777
local sz = Vector3.new(0.2, width, len1)
778
w1.Size = sz
779
local sp = Instance.new("SpecialMesh",w1)
780
sp.MeshType = "Wedge"
781
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
782
w1:BreakJoints()
783
w1.Anchored = true
784
w1.Parent = workspace
785
w1.Transparency = 0.8
786
coroutine.resume(coroutine.create(function(Part)
787
for i=0,1,0.1 do
788
wait()
789
Part.Transparency=Part.Transparency+0.02
790
end
791
end),w1)
792
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
793
table.insert(list,w1)
794
end
795
 
796
if len2 > 0.01 then
797
local w2 = Instance.new('WedgePart', m)
798
w2.Material = "SmoothPlastic"
799
w2.FormFactor = 'Custom'
800
if Mode=="Unactive" then
801
w2.BrickColor = ppart.BrickColor
802
elseif Mode=="Hero" then
803
w2.BrickColor = BrickColor.new("Bright blue")
804
elseif Mode=="Infamous" then
805
w2.BrickColor = BrickColor.new("Bright red")
806
end
807
w2.Transparency = ppart.Transparency
808
w2.Reflectance = ppart.Reflectance
809
w2.Material = ppart.Material
810
w2.CanCollide = ppart.CanCollide
811
NoOutline(w2)
812
local sz = Vector3.new(0.2, width, len2)
813
w2.Size = sz
814
local sp = Instance.new("SpecialMesh",w2)
815
sp.MeshType = "Wedge"
816
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
817
w2:BreakJoints()
818
w2.Anchored = true
819
w2.Parent = workspace
820
w2.Transparency = 0.8
821
coroutine.resume(coroutine.create(function(Part)
822
for i=0,1,0.1 do
823
wait()
824
Part.Transparency=Part.Transparency+0.02
825
end
826
end),w2)
827
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
828
table.insert(list,w2)
829
end
830
return unpack(list)
831
end
832
---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
833
---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
834
---------------------1274182751856210985126509218u8071894718946189406194189410-------------------------------------------
835
836
837
838
839
------------------------------
840
Damagefunc=function(hit,minim,maxim,knockback,Type,Property)
841
        if hit.Parent==nil then
842
                return
843
        end
844
        CPlayer=Bin 
845
        h=hit.Parent:FindFirstChild("Humanoid")
846
        for _,v in pairs(hit.Parent:children()) do
847
        if v:IsA("Humanoid") then
848
        h=v
849
        end
850
        end
851
        if h~=nil and hit.Parent.Name~=char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
852
        if attackdebounce == false then 
853
        attackdebounce = true 
854
        coroutine.resume(coroutine.create(function() 
855
        wait(0.2) 
856
        attackdebounce = false 
857
        end)) 
858
859
                        c=Instance.new("ObjectValue")
860
                        c.Name="creator"
861
                        c.Value=game:service("Players").Rohan_Kishiba
862
                        c.Parent=h
863
                        game:GetService("Debris"):AddItem(c,.5)
864
                Damage=math.random(minim,maxim)
865
                blocked=false
866
                block=hit.Parent:findFirstChild("Block")
867
                if block~=nil then
868
                if block.Value>0 then
869
                blocked=true
870
                block.Value=block.Value-1
871
                print(block.Value)
872
                end
873
                end
874
                if blocked==false then
875
				print("NOOOOP")
876
                h.Health=h.Health-Damage
877
                showDamage(hit.Parent,Damage,.5,BrickColor:Red())
878
                else
879
				print("NOOOOP")
880
                h.Health=h.Health-(Damage/2)
881
                showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
882
                end
883
                if Type=="Knockdown" then
884
                hum=hit.Parent.Humanoid
885
hum.PlatformStand=true
886
coroutine.resume(coroutine.create(function(HHumanoid)
887
wait(1)
888
HHumanoid.PlatformStand=false
889
end),hum)
890
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
891
print(angle)
892
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
893
local bodvol=Instance.new("BodyVelocity")
894
bodvol.velocity=angle*knockback
895
bodvol.P=5000
896
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
897
bodvol.Parent=hit
898
rl=Instance.new("BodyAngularVelocity")
899
rl.P=3000
900
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
901
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
902
rl.Parent=hit
903
game:GetService("Debris"):AddItem(bodvol,.5)
904
game:GetService("Debris"):AddItem(rl,.5)
905
                elseif Type=="Normal" then
906
                vp=Instance.new("BodyVelocity")
907
                vp.P=500
908
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
909
				if Rootpart then
910
                vp.velocity=RootPart.CFrame.lookVector*knockback+RootPart.Velocity/1.05
911
				end
912
                if knockback>0 then
913
                        vp.Parent=hit.Parent.Torso
914
                end
915
                game:GetService("Debris"):AddItem(vp,.5)
916
                elseif Type=="Up" then
917
                local bodyVelocity=Instance.new("BodyVelocity")
918
                bodyVelocity.velocity=vt(0,20,0)
919
                bodyVelocity.P=5000
920
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
921
                bodyVelocity.Parent=hit
922
                game:GetService("Debris"):AddItem(bodyVelocity,.5)
923
                elseif Type=="Freeze" then
924
                BodPos=Instance.new("BodyPosition")
925
                BodPos.P=50000
926
                BodPos.D=1000
927
                BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
928
                BodPos.position=hit.Parent.Torso.Position
929
                BodPos.Parent=hit.Parent.Torso
930
                BodGy = it("BodyGyro") 
931
                BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge 
932
                BodGy.P = 20e+003 
933
                BodGy.Parent=hit.Parent.Torso
934
                BodGy.cframe = hit.Parent.Torso.CFrame
935
                hit.Parent.Torso.Anchored=true
936
                coroutine.resume(coroutine.create(function(Part) 
937
                wait(1.5)
938
                Part.Anchored=false
939
                end),hit.Parent.Torso)
940
                game:GetService("Debris"):AddItem(BodPos,3)
941
                game:GetService("Debris"):AddItem(BodGy,3)
942
                end
943
                                c=Instance.new("ObjectValue")
944
                        c.Name="creator"
945
                        c.Value=Player
946
                        c.Parent=h
947
                        game:GetService("Debris"):AddItem(c,.5)
948
                CRIT=false
949
                hitDeb=true
950
                AttackPos=6
951
        end
952
        end 
953
end
954
955
showDamage=function(Char,Dealt,du,Color)
956
        m=Instance.new("Model")
957
        m.Name=tostring(Dealt)
958
        h=Instance.new("Humanoid")
959
        h.Health=0
960
        h.MaxHealth=0
961
        h.Parent=m
962
        c=Instance.new("Part")
963
        c.Transparency=0
964
        c.BrickColor=Color
965
        c.Name="Head"
966
        c.TopSurface=0
967
        c.BottomSurface=0
968
        c.formFactor="Plate"
969
        c.Size=Vector3.new(1,.4,1)
970
        ms=Instance.new("CylinderMesh")
971
        ms.Scale=Vector3.new(.8,.8,.8)
972
        if CRIT==true then
973
                ms.Scale=Vector3.new(1,1.25,1)
974
        end
975
        ms.Parent=c
976
        c.Reflectance=0
977
        Instance.new("BodyGyro").Parent=c
978
        c.Parent=m
979
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
980
        f=Instance.new("BodyPosition")
981
        f.P=2000
982
        f.D=100
983
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
984
        f.position=c.Position+Vector3.new(0,3,0)
985
        f.Parent=c
986
        game:GetService("Debris"):AddItem(m,.5+du)
987
        c.CanCollide=false
988
        m.Parent=workspace
989
        c.CanCollide=false
990
end
991
 
992
 function humang()
993
	if not canjump then
994
	humanoid.Jump = false
995
	end
996
 end
997
 
998
 function checkint(tabl,thing)
999
	for i = 1,#tabl do
1000
		if tabl[i] == thing then
1001
			return true
1002
		end
1003
	end
1004
	return false
1005
 end
1006
 ------------------------------------------------------
1007
 
1008
--humanoid.Running:connect(run)
1009
humanoid.Changed:connect(humang)
1010
hb.Deselected:connect(unequip)
1011
hb.Selected:connect(Equip)
1012
1013
1014
function checkdist(Part,magni)
1015
tabol = {}
1016
for _,c in pairs(workspace:children()) do
1017
local hum=c:findFirstChild("Humanoid")
1018
if hum~=nil then
1019
local head=c:findFirstChild("Torso")
1020
if head~=nil then
1021
local targ=head.Position-Part.Position
1022
local mag=targ.magnitude
1023
if mag<=magni and c.Name~=player.Name then 
1024
table.insert(tabol, c)
1025
end
1026
end
1027
end
1028
end
1029
1030
return tabol
1031
end
1032
1033
1034
1035
inf = 0;lejump = false;
1036
while true do
1037
if inf == 1000 then
1038
inf = 0
1039
end
1040
if (t.Velocity*Vector3.new(1, 0, 1)).magnitude <= 2 and not anim and equip and (fell and (t.Velocity.Y <= 1 and t.Velocity.Y >= -1)) then
1041
lerun=false;if rlw and hrpw and llw then
1042
	if lenormal then
1043
		for i = 0, 1, 0.2 do
1044
		if (t.Velocity*Vector3.new(1, 0, 1)).magnitude <= 2 and not anim and equip and (fell and (t.Velocity.Y <= 1 and t.Velocity.Y >= -1)) then
1045
		normal(i)
1046
		wait()
1047
		else
1048
		break
1049
		end
1050
		end
1051
		lenormal = false
1052
	end
1053
	animate("Toso",co-Vector3.new(0,0.4-0.2*math.cos(inf/23),0),0,math.rad(5),math.rad(90),1)
1054
	animate("reg",CFrame.new(0.5,-1.1-0.2*math.cos(inf/23),-0.65),math.rad(-15),0,0,1)
1055
	animate("leg",CFrame.new(-0.5,-1.2,0),math.rad(-25-15*(-1*math.cos(inf/23))),0,0,1)
1056
	animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(115),math.rad(-25+5*math.cos(inf/23)),1)
1057
	animate("lr",CFrame.new(-1.5,0.5,0),math.rad(35),0,math.rad(-25-10*math.cos(inf/23)),1)
1058
end
1059
elseif(t.Velocity*Vector3.new(1, 0, 1)).magnitude > 2 and not anim and equip and (fell and (t.Velocity.Y <= 1 and t.Velocity.Y >= -1)) or locanrun then
1060
	lenormal=true;
1061
	if not lerun and not locanrun then
1062
		runit()
1063
		lerun=true
1064
	end
1065
	animate("reg",CFrame.new(0.6,-1.2,0),math.rad(5+35*math.cos(inf/4)),math.rad(-40),0,1)
1066
	animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(-2-35*math.cos(inf/4)),math.rad(-40),0,1)
1067
elseif t.Velocity.Y > 1 and not anim and equip and not lejump then
1068
lejump=true;lenormal=true;lerun=false
1069
	for i = 0, 1, 1/4 do
1070
	if not anim and equip and lejump then
1071
	animate("hr",CFrame.new(0,1,0),math.rad(15),math.rad(0),0,i)
1072
	animate("reg",CFrame.new(0.6,-1.2,0),math.rad(35),math.rad(-40),0,i)
1073
	animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(-35),math.rad(-40),0,i)
1074
	animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(75),math.rad(-25),i)
1075
	animate("lr",CFrame.new(-1.5,0.5,0),math.rad(-35),0,math.rad(-30),i)
1076
	wait()
1077
	else
1078
		break
1079
	end
1080
	end
1081
	lejump=false
1082
if t.Velocity.Y > 1 and not anim and equip and not lejump then
1083
	fell = false
1084
end
1085
elseif t.Velocity.Y < -1 and not anim and equip and not lejump and not crosh then
1086
fell = false;lenormal=true;lerun=false
1087
	for i = 0, 1, 1/4 do
1088
	if not anim and equip and (crosh == nil or (crosh and crosh.CanCollide == false)) then
1089
	animate("hr",CFrame.new(0,1,0),math.rad(-5),math.rad(0),0,i)
1090
	animate("reg",CFrame.new(0.6,-1.2,0),math.rad(-25),math.rad(-40),0,i)
1091
	animate("leg",CFrame.new(-0.6,-1.2,0),math.rad(15),math.rad(-40),0,i)
1092
	animate("rr",CFrame.new(1.5,0.5,0),math.rad(90),math.rad(100),math.rad(-25),i)
1093
	animate("lr",CFrame.new(-1.5,0.5,0),math.rad(46),0,math.rad(-30),i)
1094
	wait()
1095
	else
1096
		print('break')
1097
		break
1098
	end
1099
	end
1100
	lejump = false
1101
else
1102
	idol = true;lenormal=true;lerun=false
1103
end
1104
1105
	ray = Ray.new(t.Position,(((t.CFrame*CFrame.new(0,-1.5,0)).p)-t.Position).unit*3)
1106
	crosh, endPoint = Workspace:FindPartOnRay(ray,char)
1107
	if (crosh) then
1108
		lejump=false
1109
		fell = true
1110
	end
1111
	if ss then
1112
windy= Add.part("Institutional white",Vector3.new(4, 1.2, 1),(hitbox.CFrame),sword,"wind",Vector3.new(math.random(50,110)/100, 0.3, 0.3),"Block","Sphere",false,nil,0.69999998807907,Part,"Brick");windy.Anchored = false; windyweld=weldIt(hitbox,windy,CFrame.new(math.random(-100,100)/130,-2,math.random(-100,100)/130)*CFrame.Angles(0,0,math.rad(90)),nil,nil)
1113
		coroutine.resume(coroutine.create(function(w,was,cu)
1114
			for i = 0, 1, 0.2 do
1115
			was.C0 = cu+Vector3.new(0,4*i,0)
1116
			wait()
1117
			end;was.Parent=nil;w.Parent = nil;print("yomama")
1118
		end),windy,windyweld,windyweld.C0)
1119
	end
1120
inf =inf+1
1121
wait()
1122
end