SHOW:
|
|
- or go back to the newest paste.
1 | - | --Templar Converted To Local by basstracker1970 |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end --Templar Converted To Local by basstracker1970 | |
6 | Player = game:GetService("Players").LocalPlayer | |
7 | Character = Player.Character | |
8 | PlayerGui = Player.PlayerGui | |
9 | Backpack = Player.Backpack | |
10 | Torso = Character.Torso | |
11 | Head = Character.Head | |
12 | Humanoid = Character.Humanoid | |
13 | LeftArm = Character["Left Arm"] | |
14 | LeftLeg = Character["Left Leg"] | |
15 | RightArm = Character["Right Arm"] | |
16 | RightLeg = Character["Right Leg"] | |
17 | LS = Torso["Left Shoulder"] | |
18 | LH = Torso["Left Hip"] | |
19 | RS = Torso["Right Shoulder"] | |
20 | RH = Torso["Right Hip"] | |
21 | Neck = Torso.Neck | |
22 | it=Instance.new | |
23 | vt=Vector3.new | |
24 | cf=CFrame.new | |
25 | mouse = Player:GetMouse() | |
26 | euler=CFrame.fromEulerAnglesXYZ | |
27 | angles=CFrame.Angles | |
28 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
29 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
30 | attack = false | |
31 | attacktype = 1 | |
32 | damage = 5 | |
33 | oridamage = 50 | |
34 | attackdebounce = false | |
35 | ssdebounce=false | |
36 | MMouse=nil | |
37 | combo=0 | |
38 | GyroNumb=0 | |
39 | cond=nil | |
40 | --player | |
41 | player = nil | |
42 | --save shoulders | |
43 | RSH, LSH = nil, nil | |
44 | --welds | |
45 | RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld") | |
46 | ---------------------------- | |
47 | --Customize mediafire | |
48 | attacktype = 1 | |
49 | damage = 5 | |
50 | oridamage = 5 | |
51 | HP = 1000 | |
52 | WS = 16 | |
53 | jump = 50 | |
54 | combo = 0 | |
55 | anim = "none" | |
56 | demondance = false | |
57 | demonmode = false | |
58 | skill = false | |
59 | mode = 0 | |
60 | guardy = false | |
61 | unsheathed = false | |
62 | cutscene = false | |
63 | cutscene2 = 0 | |
64 | --100%/critpercentage | |
65 | bladecolor = BrickColor.new("New Yeller") | |
66 | oblkbrkr = 3 | |
67 | blockbreaker = oblkbrkr | |
68 | ||
69 | lightning = false | |
70 | ||
71 | ------------------------------------------------------------------------------------------------------------------------------------- | |
72 | RAP = Instance.new("Part") | |
73 | RAP.formFactor = 0 | |
74 | RAP.CanCollide = false | |
75 | RAP.Name = "RAPart" | |
76 | RAP.Locked = true | |
77 | RAP.Size = Vector3.new(1,1,1) | |
78 | RAP.Parent = game.Players.LocalPlayer.Character | |
79 | RAP.Transparency = 1 | |
80 | w = Instance.new("Weld") | |
81 | w.Parent = RAP | |
82 | w.Part0 = RAP | |
83 | w.Part1 = RightArm | |
84 | w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
85 | w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0) | |
86 | LAP = Instance.new("Part") | |
87 | LAP.formFactor = 0 | |
88 | LAP.CanCollide = false | |
89 | LAP.Name = "LAPart" | |
90 | LAP.Locked = true | |
91 | LAP.Size = Vector3.new(1,1,1) | |
92 | LAP.Parent = game.Players.LocalPlayer.Character | |
93 | LAP.Transparency = 1 | |
94 | wl = Instance.new("Weld") | |
95 | wl.Parent = LAP | |
96 | wl.Part0 = LAP | |
97 | wl.Part1 = LeftArm | |
98 | wl.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
99 | wl.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0) | |
100 | ||
101 | swordholder = Instance.new("Model") | |
102 | swordholder.Name = "Weapon" | |
103 | swordholder.Parent = game.Players.LocalPlayer.Character | |
104 | ||
105 | local prt1 = Instance.new("Part") | |
106 | prt1.formFactor = 1 | |
107 | prt1.Parent = swordholder | |
108 | prt1.CanCollide = false | |
109 | prt1.BrickColor = BrickColor.new("New Yeller") | |
110 | prt1.Name = "Handle1" | |
111 | prt1.Size = Vector3.new(1,1,1) | |
112 | prt1.Position = Torso.Position | |
113 | local prt1a = Instance.new("Part") | |
114 | prt1a.formFactor = 1 | |
115 | prt1a.Parent = swordholder | |
116 | prt1a.CanCollide = false | |
117 | prt1a.BrickColor = BrickColor.new("New Yeller") | |
118 | prt1a.Name = "Handle1a" | |
119 | prt1a.Size = Vector3.new(1,1,1) | |
120 | prt1a.Position = Torso.Position | |
121 | local prt1b = Instance.new("Part") | |
122 | prt1b.formFactor = 1 | |
123 | prt1b.Parent = swordholder | |
124 | prt1b.CanCollide = false | |
125 | prt1b.BrickColor = BrickColor.new("New Yeller") | |
126 | prt1b.Name = "Handle1b" | |
127 | prt1b.Size = Vector3.new(1,1,1) | |
128 | prt1b.Position = Torso.Position | |
129 | local prt2 = Instance.new("Part") | |
130 | prt2.formFactor = 1 | |
131 | prt2.Parent = swordholder | |
132 | prt2.CanCollide = false | |
133 | prt2.BrickColor = BrickColor.new("Deep blue") | |
134 | prt2.Name = "Handle2" | |
135 | prt2.Size = Vector3.new(1,3,1) | |
136 | prt2.Position = Torso.Position | |
137 | local prt3 = Instance.new("Part") | |
138 | prt3.formFactor = 1 | |
139 | prt3.Parent = swordholder | |
140 | prt3.CanCollide = false | |
141 | prt3.BrickColor = BrickColor.new("Deep blue") | |
142 | prt3.Name = "Handle3" | |
143 | prt3.Size = Vector3.new(1,1,1) | |
144 | prt3.Position = Torso.Position | |
145 | local prt4 = Instance.new("Part") | |
146 | prt4.formFactor = 1 | |
147 | prt4.Parent = swordholder | |
148 | prt4.CanCollide = false | |
149 | prt4.BrickColor = BrickColor.new("Really blue") | |
150 | prt4.Name = "Handle4" | |
151 | prt4.Size = Vector3.new(1,1,1) | |
152 | prt4.Position = Torso.Position | |
153 | local prt5 = Instance.new("Part") | |
154 | prt5.formFactor = 1 | |
155 | prt5.Parent = swordholder | |
156 | prt5.CanCollide = false | |
157 | prt5.BrickColor = BrickColor.new("Really blue") | |
158 | prt5.Name = "Handle5" | |
159 | prt5.Size = Vector3.new(1,1,1) | |
160 | prt5.Position = Torso.Position | |
161 | local prt6 = Instance.new("Part") | |
162 | prt6.formFactor = 1 | |
163 | prt6.Parent = swordholder | |
164 | prt6.CanCollide = false | |
165 | prt6.BrickColor = BrickColor.new("Deep blue") | |
166 | prt6.Name = "Handle6" | |
167 | prt6.Size = Vector3.new(1,1,1) | |
168 | prt6.Position = Torso.Position | |
169 | local prt7 = Instance.new("Part") | |
170 | prt7.formFactor = 1 | |
171 | prt7.Parent = swordholder | |
172 | prt7.CanCollide = false | |
173 | prt7.BrickColor = BrickColor.new("Really blue") | |
174 | prt7.Name = "Handle7" | |
175 | prt7.Size = Vector3.new(1,1,1) | |
176 | prt7.Position = Torso.Position | |
177 | local prt8 = Instance.new("Part") | |
178 | prt8.formFactor = 1 | |
179 | prt8.Parent = swordholder | |
180 | prt8.CanCollide = false | |
181 | prt8.BrickColor = BrickColor.new("Really blue") | |
182 | prt8.Name = "Handle8" | |
183 | prt8.Size = Vector3.new(1,1,1) | |
184 | prt8.Position = Torso.Position | |
185 | local prt9 = Instance.new("Part") | |
186 | prt9.formFactor = 1 | |
187 | prt9.Parent = swordholder | |
188 | prt9.CanCollide = false | |
189 | prt9.BrickColor = BrickColor.new("Really blue") | |
190 | prt9.Name = "Handle9" | |
191 | prt9.Size = Vector3.new(1,1,1) | |
192 | prt9.Position = Torso.Position | |
193 | local prt10 = Instance.new("Part") | |
194 | prt10.formFactor = 1 | |
195 | prt10.Parent = swordholder | |
196 | prt10.CanCollide = false | |
197 | prt10.BrickColor = BrickColor.new("Really blue") | |
198 | prt10.Name = "Handle10" | |
199 | prt10.Size = Vector3.new(1,1,1) | |
200 | prt10.Position = Torso.Position | |
201 | local prt11 = Instance.new("Part") | |
202 | prt11.formFactor = 1 | |
203 | prt11.Parent = swordholder | |
204 | prt11.CanCollide = false | |
205 | prt11.Reflectance = 0.5 | |
206 | prt11.BrickColor = bladecolor | |
207 | prt11.Name = "Blade1" | |
208 | prt11.Size = Vector3.new(2,1,1) | |
209 | prt11.Position = Torso.Position | |
210 | local prt12 = Instance.new("Part") | |
211 | prt12.formFactor = 1 | |
212 | prt12.Parent = swordholder | |
213 | prt12.CanCollide = false | |
214 | prt12.Reflectance = 0.5 | |
215 | prt12.BrickColor = bladecolor | |
216 | prt12.Name = "Blade2" | |
217 | prt12.Size = Vector3.new(1,1,1) | |
218 | prt12.Position = Torso.Position | |
219 | local prt13 = Instance.new("Part") | |
220 | prt13.formFactor = 1 | |
221 | prt13.Parent = swordholder | |
222 | prt13.CanCollide = false | |
223 | prt13.Reflectance = 0 | |
224 | prt13.BrickColor = BrickColor.new("Black") | |
225 | prt13.Name = "Blade3" | |
226 | prt13.Size = Vector3.new(1,2,1) | |
227 | prt13.Position = Torso.Position | |
228 | ||
229 | local msh1 = Instance.new("CylinderMesh") | |
230 | msh1.Parent = prt1 | |
231 | msh1.Scale = Vector3.new(0.31,0.1,0.31) | |
232 | local msh1a = Instance.new("CylinderMesh") | |
233 | msh1a.Parent = prt1a | |
234 | msh1a.Scale = Vector3.new(0.31,0.1,0.31) | |
235 | local msh1b = Instance.new("CylinderMesh") | |
236 | msh1b.Parent = prt1b | |
237 | msh1b.Scale = Vector3.new(0.31,0.1,0.31) | |
238 | local msh2 = Instance.new("CylinderMesh") | |
239 | msh2.Parent = prt2 | |
240 | msh2.Scale = Vector3.new(0.3,0.4,0.3) | |
241 | local msh3 = Instance.new("SpecialMesh") | |
242 | msh3.Parent = prt3 | |
243 | msh3.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
244 | msh3.Scale = Vector3.new(0.6,0.6,0.6) | |
245 | local msh4 = Instance.new("BlockMesh") | |
246 | msh4.Parent = prt4 | |
247 | msh4.Scale = Vector3.new(0.2, 0.4, 0.2) | |
248 | local msh5 = Instance.new("BlockMesh") | |
249 | msh5.Parent = prt5 | |
250 | msh5.Scale = Vector3.new(0.2, 0.4, 0.2) | |
251 | local msh6 = Instance.new("BlockMesh") | |
252 | msh6.Parent = prt6 | |
253 | msh6.Scale = Vector3.new(0.3,0.9,0.3) | |
254 | local msh7 = Instance.new("BlockMesh") | |
255 | msh7.Parent = prt7 | |
256 | msh7.Scale = Vector3.new(0.2, 0.5, 0.2) | |
257 | local msh8 = Instance.new("BlockMesh") | |
258 | msh8.Parent = prt8 | |
259 | msh8.Scale = Vector3.new(0.2, 0.5, 0.2) | |
260 | local msh9 = Instance.new("BlockMesh") | |
261 | msh9.Parent = prt9 | |
262 | msh9.Scale = Vector3.new(0.2, 0.5, 0.2) | |
263 | local msh10 = Instance.new("BlockMesh") | |
264 | msh10.Parent = prt10 | |
265 | msh10.Scale = Vector3.new(0.2, 0.5, 0.2) | |
266 | local msh11 = Instance.new("BlockMesh") | |
267 | msh11.Parent = prt11 | |
268 | msh11.Scale = Vector3.new(1, 0.6, 0.2) | |
269 | local msh12 = Instance.new("SpecialMesh") | |
270 | msh12.Parent = prt12 | |
271 | msh12.MeshType = "Wedge" | |
272 | msh12.Scale = Vector3.new(0.2,0.4,0.5) | |
273 | local msh13 = Instance.new("CylinderMesh") | |
274 | msh13.Parent = prt13 | |
275 | msh13.Scale = Vector3.new(2,0.8,0.3) | |
276 | ||
277 | local w1 = Instance.new("Weld") | |
278 | w1.Parent = prt1 | |
279 | w1.Part0 = prt1 | |
280 | w1.Part1 = Torso | |
281 | w1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.55, -0.75) | |
282 | local w2 = Instance.new("Weld") | |
283 | w2.Parent = prt2 | |
284 | w2.Part0 = prt2 | |
285 | w2.Part1 = prt1 | |
286 | w2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
287 | local w1a = Instance.new("Weld") | |
288 | w1a.Parent = prt1a | |
289 | w1a.Part0 = prt1a | |
290 | w1a.Part1 = prt2 | |
291 | w1a.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.3, 0) | |
292 | local w1b = Instance.new("Weld") | |
293 | w1b.Parent = prt1b | |
294 | w1b.Part0 = prt1b | |
295 | w1b.Part1 = prt2 | |
296 | w1b.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.3, 0) | |
297 | local w3 = Instance.new("Weld") | |
298 | w3.Parent = prt3 | |
299 | w3.Part0 = prt3 | |
300 | w3.Part1 = prt2 | |
301 | w3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.9,0) | |
302 | local w4 = Instance.new("Weld") | |
303 | w4.Parent = prt4 | |
304 | w4.Part0 = prt4 | |
305 | w4.Part1 = prt3 | |
306 | w4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
307 | local w5 = Instance.new("Weld") | |
308 | w5.Parent = prt5 | |
309 | w5.Part0 = prt5 | |
310 | w5.Part1 = prt3 | |
311 | w5.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0) | |
312 | local w6 = Instance.new("Weld") | |
313 | w6.Parent = prt6 | |
314 | w6.Part0 = prt6 | |
315 | w6.Part1 = prt2 | |
316 | w6.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0.7,0) | |
317 | local w7 = Instance.new("Weld") | |
318 | w7.Parent = prt7 | |
319 | w7.Part0 = prt7 | |
320 | w7.Part1 = prt6 | |
321 | w7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.6,0) | |
322 | local w8 = Instance.new("Weld") | |
323 | w8.Parent = prt8 | |
324 | w8.Part0 = prt8 | |
325 | w8.Part1 = prt7 | |
326 | w8.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0) | |
327 | local w9 = Instance.new("Weld") | |
328 | w9.Parent = prt9 | |
329 | w9.Part0 = prt9 | |
330 | w9.Part1 = prt6 | |
331 | w9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.6,0) | |
332 | local w10 = Instance.new("Weld") | |
333 | w10.Parent = prt10 | |
334 | w10.Part0 = prt10 | |
335 | w10.Part1 = prt9 | |
336 | w10.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) * CFrame.new(0,0,0) | |
337 | local w11 = Instance.new("Weld") | |
338 | w11.Parent = prt11 | |
339 | w11.Part0 = prt11 | |
340 | w11.Part1 = prt6 | |
341 | w11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-1.1,0,0) | |
342 | local w12 = Instance.new("Weld") | |
343 | w12.Parent = prt12 | |
344 | w12.Part0 = prt12 | |
345 | w12.Part1 = prt11 | |
346 | w12.C0 = CFrame.fromEulerAnglesXYZ(3.95,math.rad(90),0) * CFrame.new(-1,0,0) | |
347 | local w13 = Instance.new("Weld") | |
348 | w13.Parent = prt13 | |
349 | w13.Part0 = prt13 | |
350 | w13.Part1 = prt11 | |
351 | w13.C0 = CFrame.fromEulerAnglesXYZ(4.7,math.rad(90),0) * CFrame.new(0,0,0) | |
352 | function unequipweld() | |
353 | ||
354 | end | |
355 | ||
356 | unequipweld() | |
357 | ||
358 | ||
359 | ||
360 | function equipweld() | |
361 | ||
362 | ||
363 | end | |
364 | function ss(parent,p) --Slash | |
365 | ||
366 | local SlashSound = Instance.new("Sound") | |
367 | SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
368 | SlashSound.Parent = parent | |
369 | SlashSound.Volume = .7 | |
370 | SlashSound.Pitch = p | |
371 | SlashSound.PlayOnRemove = true | |
372 | coroutine.resume(coroutine.create(function() | |
373 | wait() | |
374 | SlashSound.Parent = nil | |
375 | end)) | |
376 | end | |
377 | function uss(parent,p) --unsheath | |
378 | ||
379 | local SlashSound = Instance.new("Sound") | |
380 | SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav" | |
381 | SlashSound.Parent = parent | |
382 | SlashSound.Volume = .7 | |
383 | SlashSound.Pitch = p | |
384 | SlashSound.PlayOnRemove = true | |
385 | coroutine.resume(coroutine.create(function() | |
386 | wait() | |
387 | SlashSound.Parent = nil | |
388 | end)) | |
389 | end | |
390 | function ms(parent,p) --Metal Cling Sound | |
391 | ||
392 | local SlashSound = Instance.new("Sound") | |
393 | SlashSound.SoundId = "rbxasset://sounds\\metal.ogg" | |
394 | SlashSound.Parent = parent | |
395 | SlashSound.Volume = 1 | |
396 | SlashSound.Pitch = p | |
397 | SlashSound.PlayOnRemove = true | |
398 | coroutine.resume(coroutine.create(function() | |
399 | wait() | |
400 | SlashSound.Parent = nil | |
401 | end)) | |
402 | end | |
403 | ||
404 | -- | |
405 | -- | |
406 | ||
407 | function returndmg() | |
408 | mindamage = omindamage | |
409 | maxdamage = omaxdamage | |
410 | crtmaxdamage = ocrtmaxdamage | |
411 | end | |
412 | ||
413 | function subdmg(sub) | |
414 | mindamage = omindamage - sub | |
415 | maxdamage = omaxdamage - sub | |
416 | crtmaxdamage = ocrtmaxdamage - sub | |
417 | end | |
418 | ||
419 | function prcntdmg(sub) | |
420 | mindamage = math.floor(omindamage - (omindamage*(sub/100))) | |
421 | maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100))) | |
422 | crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100))) | |
423 | end | |
424 | ||
425 | function tagHumanoid(humanoid, player) | |
426 | local creator_tag = Instance.new("ObjectValue") | |
427 | creator_tag.Value = player | |
428 | creator_tag.Name = "creator" | |
429 | creator_tag.Parent = humanoid | |
430 | end | |
431 | ||
432 | function untagHumanoid(humanoid) | |
433 | if humanoid ~= nil then | |
434 | local tag = humanoid:findFirstChild("creator") | |
435 | if tag ~= nil then | |
436 | tag.Parent = nil | |
437 | end | |
438 | end | |
439 | end | |
440 | ||
441 | local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
442 | return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
443 | end | |
444 | ||
445 | ||
446 | ||
447 | function equipanim() | |
448 | attack = true | |
449 | for i = 0.1 , 1 , 0.1 do | |
450 | wait() | |
451 | w1.Part1 = LeftArm | |
452 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
453 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0) | |
454 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-3.5+3.5,0,-1+1) | |
455 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
456 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, math.rad(0)) | |
457 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
458 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, math.rad(0)) | |
459 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
460 | end | |
461 | attack = false | |
462 | end | |
463 | ||
464 | ||
465 | function damagesplat(dmg,hit,crit,blocked) | |
466 | local mo = Instance.new("Model") | |
467 | mo.Name = dmg | |
468 | local pa = Instance.new("Part",mo) | |
469 | pa.formFactor = 3 | |
470 | pa.Size = Vector3.new(0.8,0.3,0.8) | |
471 | if crit then | |
472 | pa.BrickColor = BrickColor.new("Bright yellow") | |
473 | elseif not crit then | |
474 | pa.BrickColor = BrickColor.new("Bright red") | |
475 | end | |
476 | if blocked then pa.BrickColor = BrickColor.new("Bright blue") end | |
477 | pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0) | |
478 | pa.Name = "Head" | |
479 | local hah = Instance.new("Humanoid") | |
480 | hah.Parent = mo | |
481 | hah.MaxHealth = 0 | |
482 | hah.Health = 0 | |
483 | local bp = Instance.new("BodyPosition") | |
484 | bp.P = 14000 | |
485 | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
486 | bp.position = hit.Position + Vector3.new(0, 5, 0) | |
487 | coroutine.resume(coroutine.create(function() | |
488 | wait() | |
489 | mo.Parent = Character | |
490 | bp.Parent = pa | |
491 | wait(1.4) | |
492 | mo:remove() | |
493 | end)) | |
494 | return pa | |
495 | end | |
496 | ||
497 | function AddRage(add) | |
498 | Rage = Rage + add | |
499 | if Rage > MaxRage then | |
500 | Rage = MaxRage | |
501 | end | |
502 | end | |
503 | ||
504 | function OT(hit) | |
505 | if hit.Parent == nil then return end | |
506 | local hum = hit.Parent:findFirstChild("Humanoid") | |
507 | if hum ~= nil and hum ~= Character.Humanoid then | |
508 | hum:TakeDamage(damage) | |
509 | end | |
510 | end | |
511 | function skillOT(hit) | |
512 | if hit.Parent == nil then return end | |
513 | local hum = hit.Parent:findFirstChild("Humanoid") | |
514 | if hum ~= nil and hum ~= Character.Humanoid then | |
515 | hum:TakeDamage(damage + 2) | |
516 | end | |
517 | ||
518 | end | |
519 | ||
520 | function weakOT(hit) | |
521 | if hit.Parent == nil then return end | |
522 | local hum = hit.Parent:findFirstChild("Humanoid") | |
523 | if hum ~= nil and hum ~= Character.Humanoid then | |
524 | hum:TakeDamage(2) | |
525 | end | |
526 | ||
527 | end | |
528 | ||
529 | function guardOT(hit) | |
530 | if hit.Parent == nil then return end | |
531 | local hum = hit.Parent:findFirstChild("Humanoid") | |
532 | if hum ~= nil and hum ~= Character.Humanoid then | |
533 | hum:TakeDamage(damage) | |
534 | Character.Humanoid.WalkSpeed = 16 | |
535 | guardy = false | |
536 | ||
537 | end | |
538 | ||
539 | end | |
540 | ||
541 | function spinOT(hit) | |
542 | if hit.Parent == nil then return end | |
543 | local hum = hit.Parent:findFirstChild("Humanoid") | |
544 | if hum ~= nil and hum ~= Character.Humanoid then | |
545 | hum:TakeDamage(damage + 5) | |
546 | if mana < 400 then | |
547 | mana = mana + math.random(1,5) | |
548 | end | |
549 | if mana > 400 then | |
550 | mana = 400 | |
551 | end | |
552 | local torso = hit.Parent:findFirstChild("Torso") | |
553 | if torso.Parent ~= nil then | |
554 | if (torso.Position-prt1.Position).magnitude<=25 then | |
555 | local angle = (torso.Position-(prt1.Position+Vector3.new(0,-3,0))).unit | |
556 | torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
557 | local Gyro=Instance.new("BodyGyro") | |
558 | Gyro.P=1000 | |
559 | Gyro.D=Gyro.D/2 | |
560 | Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000 | |
561 | Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
562 | Gyro.Parent=torso | |
563 | local bodyVelocity=Instance.new("BodyVelocity") | |
564 | bodyVelocity.velocity=angle*40+Vector3.new(0,35,0) | |
565 | bodyVelocity.P=500 | |
566 | bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003) | |
567 | bodyVelocity.Parent=torso | |
568 | coroutine.resume(coroutine.create(function() | |
569 | wait(0.3) | |
570 | bodyVelocity:Remove() | |
571 | end)) | |
572 | coroutine.resume(coroutine.create(function() | |
573 | wait(0.8) | |
574 | Gyro:Remove() | |
575 | end)) | |
576 | end | |
577 | end | |
578 | end | |
579 | ||
580 | end | |
581 | ||
582 | function overOT(hit) | |
583 | if hit.Parent == nil then return end | |
584 | local hum = hit.Parent:findFirstChild("Humanoid") | |
585 | if hum ~= nil and hum ~= Character.Humanoid then | |
586 | hum:TakeDamage(damage) | |
587 | local torso = hit.Parent:findFirstChild("Torso") | |
588 | if torso.Parent ~= nil then | |
589 | if (torso.Position-RightArm.Position).magnitude<=25 then | |
590 | local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit | |
591 | torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
592 | local Gyro=Instance.new("BodyGyro") | |
593 | Gyro.P=4000 | |
594 | Gyro.D=Gyro.D/2 | |
595 | Gyro.maxTorque=Vector3.new(60000,60000,60000)*600000 | |
596 | Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
597 | Gyro.Parent=torso | |
598 | local bodyVelocity=Instance.new("BodyVelocity") | |
599 | bodyVelocity.velocity=angle*70+Vector3.new(0,210,0) | |
600 | bodyVelocity.P=700 | |
601 | bodyVelocity.maxForce=Vector3.new(7e+003, 7e+003, 7e+003) | |
602 | bodyVelocity.Parent=torso | |
603 | coroutine.resume(coroutine.create(function() | |
604 | wait(0.3) | |
605 | bodyVelocity:Remove() | |
606 | end)) | |
607 | coroutine.resume(coroutine.create(function() | |
608 | wait(0.8) | |
609 | Gyro:Remove() | |
610 | end)) | |
611 | end | |
612 | end | |
613 | end | |
614 | end | |
615 | ||
616 | function OT2(hit) | |
617 | if hit.Parent == nil then return end | |
618 | local hum = hit.Parent:findFirstChild("Humanoid") | |
619 | if hum ~= nil and hum ~= Character.Humanoid then | |
620 | hum:TakeDamage(damage) | |
621 | local torso = hit.Parent:findFirstChild("Torso") | |
622 | if torso.Parent ~= nil then | |
623 | if (torso.Position-RightArm.Position).magnitude<=25 then | |
624 | local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit | |
625 | torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
626 | local Gyro=Instance.new("BodyGyro") | |
627 | Gyro.P=1000 | |
628 | Gyro.D=Gyro.D/2 | |
629 | Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000 | |
630 | Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
631 | Gyro.Parent=torso | |
632 | local bodyVelocity=Instance.new("BodyVelocity") | |
633 | bodyVelocity.velocity=angle*40+Vector3.new(0,35,0) | |
634 | bodyVelocity.P=500 | |
635 | bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003) | |
636 | bodyVelocity.Parent=torso | |
637 | coroutine.resume(coroutine.create(function() | |
638 | wait(0.3) | |
639 | bodyVelocity:Remove() | |
640 | end)) | |
641 | coroutine.resume(coroutine.create(function() | |
642 | wait(0.8) | |
643 | Gyro:Remove() | |
644 | end)) | |
645 | end | |
646 | end | |
647 | end | |
648 | end | |
649 | function megatouch(hit) | |
650 | if hit.Parent == nil then return end | |
651 | local hum = hit.Parent:findFirstChild("Humanoid") | |
652 | if hum ~= nil and hum ~= Character.Humanoid then | |
653 | hum:TakeDamage(damage + 2) | |
654 | local torso = hit.Parent:findFirstChild("Torso") | |
655 | if torso.Parent ~= nil then | |
656 | if (torso.Position-RightArm.Position).magnitude<=25 then | |
657 | local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit | |
658 | torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
659 | local Gyro=Instance.new("BodyGyro") | |
660 | Gyro.P=1000 | |
661 | Gyro.D=Gyro.D/2 | |
662 | Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000 | |
663 | Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
664 | Gyro.Parent=torso | |
665 | local bodyVelocity=Instance.new("BodyVelocity") | |
666 | bodyVelocity.velocity=angle*40+Vector3.new(0,35,0) | |
667 | bodyVelocity.P=500 | |
668 | bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003) | |
669 | bodyVelocity.Parent=torso | |
670 | coroutine.resume(coroutine.create(function() | |
671 | wait(0.3) | |
672 | bodyVelocity:Remove() | |
673 | end)) | |
674 | coroutine.resume(coroutine.create(function() | |
675 | wait(0.8) | |
676 | Gyro:Remove() | |
677 | end)) | |
678 | end | |
679 | end | |
680 | end | |
681 | end | |
682 | ||
683 | function AoE(p,magnitude) | |
684 | local c = game.Workspace:GetChildren(); | |
685 | for i = 1, #c do | |
686 | local hum = c[i]:findFirstChild("Humanoid") | |
687 | if hum ~= nil and hum.Health ~= 0 then | |
688 | local head = c[i]:findFirstChild("Head"); | |
689 | if head ~= nil then | |
690 | local mag = (head.Position - p).magnitude; | |
691 | if mag <= magnitude and c[i].Name ~= Character.Name then | |
692 | local foundd = false | |
693 | for ii = 1 , #AoETrue do | |
694 | if AoETrue[ii] == c[i].Name then | |
695 | ||
696 | foundd = true | |
697 | end | |
698 | end | |
699 | if foundd then | |
700 | ||
701 | end | |
702 | -- | |
703 | if not foundd then | |
704 | local critrandomizer = math.random(crtrate) | |
705 | if critrandomizer ~= 1 then | |
706 | local rndmdamage = math.random(mindamage,maxdamage) | |
707 | damage(hum,rndmdamage,false) | |
708 | elseif critrandomizer == 1 then | |
709 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
710 | damage(hum,rndmdamage,true) | |
711 | end | |
712 | table.insert(AoETrue,c[i].Name) | |
713 | end | |
714 | end | |
715 | end | |
716 | end | |
717 | end | |
718 | for ii = 1 , #AoETrue do | |
719 | table.remove(AoETrue,#AoETrue) | |
720 | end | |
721 | end | |
722 | con,con2,con3 = nil,nil,nil | |
723 | conn,conn2,conn3 = nil,nil,nil | |
724 | ||
725 | function dmg1cnnct() | |
726 | if con ~= nil then | |
727 | con:disconnect() | |
728 | Hitdeb = 0 | |
729 | end | |
730 | con = prt11.Touched:connect(OT) | |
731 | con2 = prt12.Touched:connect(OT) | |
732 | end | |
733 | ||
734 | function dmg1dc() | |
735 | if con ~= nil then | |
736 | con:disconnect() | |
737 | Hitdeb = 0 | |
738 | end | |
739 | if con2 ~= nil then | |
740 | con2:disconnect() | |
741 | Hitdeb = 0 | |
742 | end | |
743 | end | |
744 | function dmg2cnnct() | |
745 | if con ~= nil then | |
746 | con:disconnect() | |
747 | Hitdeb = 0 | |
748 | end | |
749 | con = prt11.Touched:connect(OT2) | |
750 | con2 = prt12.Touched:connect(OT2) | |
751 | end | |
752 | ||
753 | function dmg2dc() | |
754 | if con ~= nil then | |
755 | con:disconnect() | |
756 | Hitdeb = 0 | |
757 | end | |
758 | if con2 ~= nil then | |
759 | con2:disconnect() | |
760 | Hitdeb = 0 | |
761 | end | |
762 | end | |
763 | function dmgovercnnct() | |
764 | if con ~= nil then | |
765 | con:disconnect() | |
766 | Hitdeb = 0 | |
767 | end | |
768 | con = prt11.Touched:connect(overOT) | |
769 | con2 = prt12.Touched:connect(overOT) | |
770 | end | |
771 | ||
772 | function dmgoverdc() | |
773 | if con ~= nil then | |
774 | con:disconnect() | |
775 | Hitdeb = 0 | |
776 | end | |
777 | if con2 ~= nil then | |
778 | con2:disconnect() | |
779 | Hitdeb = 0 | |
780 | end | |
781 | end | |
782 | function dmgskillcnnct() | |
783 | if con ~= nil then | |
784 | con:disconnect() | |
785 | Hitdeb = 0 | |
786 | end | |
787 | con = prt11.Touched:connect(skillOT) | |
788 | con2 = prt12.Touched:connect(skillOT) | |
789 | end | |
790 | ||
791 | function dmgskilldc() | |
792 | if con ~= nil then | |
793 | con:disconnect() | |
794 | Hitdeb = 0 | |
795 | end | |
796 | if con2 ~= nil then | |
797 | con2:disconnect() | |
798 | Hitdeb = 0 | |
799 | end | |
800 | end | |
801 | function dmgweakcnnct() | |
802 | if con ~= nil then | |
803 | con:disconnect() | |
804 | Hitdeb = 0 | |
805 | end | |
806 | con = prt11.Touched:connect(weakOT) | |
807 | con2 = prt12.Touched:connect(weakOT) | |
808 | end | |
809 | ||
810 | function dmgweakdc() | |
811 | if con ~= nil then | |
812 | con:disconnect() | |
813 | Hitdeb = 0 | |
814 | end | |
815 | if con2 ~= nil then | |
816 | con2:disconnect() | |
817 | Hitdeb = 0 | |
818 | end | |
819 | end | |
820 | function dmgmegacnnct() | |
821 | if con ~= nil then | |
822 | con:disconnect() | |
823 | Hitdeb = 0 | |
824 | end | |
825 | con = prt11.Touched:connect(megatouch) | |
826 | con2 = prt12.Touched:connect(megatouch) | |
827 | end | |
828 | ||
829 | function dmgmegadc() | |
830 | if con ~= nil then | |
831 | con:disconnect() | |
832 | Hitdeb = 0 | |
833 | end | |
834 | if con2 ~= nil then | |
835 | con2:disconnect() | |
836 | Hitdeb = 0 | |
837 | end | |
838 | end | |
839 | -- | |
840 | function effect() | |
841 | local clone = prt11:clone() | |
842 | clone.Parent = workspace | |
843 | clone.Anchored = true | |
844 | clone.Transparency = 0.5 | |
845 | clone.Reflectance = 0 | |
846 | clone.Mesh.Scale = clone.Mesh.Scale + Vector3.new(0.1,0.1,0.1) | |
847 | if demondance == true then | |
848 | clone.BrickColor = BrickColor.new("Bright red") | |
849 | else | |
850 | clone.BrickColor = BrickColor.new("New Yeller") | |
851 | end | |
852 | coroutine.resume(coroutine.create(function() | |
853 | wait(0.25) | |
854 | clone.Parent = nil | |
855 | end)) | |
856 | local cloneb = prt12:clone() | |
857 | cloneb.Parent = workspace | |
858 | cloneb.Anchored = true | |
859 | cloneb.Transparency = 0.5 | |
860 | cloneb.Reflectance = 0 | |
861 | cloneb.Mesh.Scale = cloneb.Mesh.Scale + Vector3.new(0.1,0.1,0.1) | |
862 | if demondance == true then | |
863 | cloneb.BrickColor = BrickColor.new("Bright red") | |
864 | else | |
865 | cloneb.BrickColor = BrickColor.new("New Yeller") | |
866 | end | |
867 | coroutine.resume(coroutine.create(function() | |
868 | wait(0.25) | |
869 | cloneb.Parent = nil | |
870 | end)) | |
871 | end | |
872 | ||
873 | function rptddmg(value,des,inc) | |
874 | coroutine.resume(coroutine.create(function() | |
875 | repeat | |
876 | wait(inc) | |
877 | Hitdeb = 0 | |
878 | until value == des | |
879 | end)) | |
880 | end | |
881 | ||
882 | function atktype(s,e) | |
883 | coroutine.resume(coroutine.create(function () | |
884 | attacktype = e | |
885 | wait(0.25) | |
886 | attacktype = s | |
887 | end)) | |
888 | end | |
889 | ||
890 | walking = false | |
891 | jumping = false | |
892 | Target = nil | |
893 | ||
894 | function Walk() | |
895 | if walking then return end | |
896 | end | |
897 | ||
898 | function Jump() | |
899 | if jumping then return end | |
900 | jumping = true | |
901 | local vel = Instance.new("BodyVelocity",Torso) | |
902 | vel.maxForce = Vector3.new(0,1,0) * math.huge | |
903 | vel.P = vel.P * 5 | |
904 | vel.velocity = Vector3.new(0,jump,0) | |
905 | coroutine.resume(coroutine.create(function() | |
906 | wait() wait() wait() wait() | |
907 | vel.Parent=nil | |
908 | end)) | |
909 | for i = 0.1 , 1 , 0.1 do | |
910 | wait() | |
911 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0)) | |
912 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
913 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0)) | |
914 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
915 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0)) | |
916 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
917 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0)) | |
918 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
919 | end | |
920 | wait(1) | |
921 | for i = 0.1 , 1 , 0.1 do | |
922 | wait() | |
923 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0)) | |
924 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
925 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0)) | |
926 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
927 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0)) | |
928 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
929 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0)) | |
930 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
931 | end | |
932 | jumping = false | |
933 | end | |
934 | ||
935 | function returnwelds() | |
936 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
937 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
938 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0) | |
939 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
940 | end | |
941 | ||
942 | function oneslash() | |
943 | attack = true | |
944 | wait(0) | |
945 | dmg1cnnct() | |
946 | uberweaklightningattack() | |
947 | for i = 0,1,0.2 do | |
948 | wait() | |
949 | effect() | |
950 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,0) | |
951 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
952 | end | |
953 | dmg1dc() | |
954 | combo = 1 | |
955 | attack = false | |
956 | end | |
957 | ||
958 | function twoslash() | |
959 | attack = true | |
960 | wait(0.1) | |
961 | for i = 0,1,0.1 do | |
962 | wait() | |
963 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3,0.5*i,0) | |
964 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0.5*i) | |
965 | end | |
966 | dmg1cnnct() | |
967 | uberweaklightningattack() | |
968 | for i = 0,1,0.2 do | |
969 | wait() | |
970 | effect() | |
971 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-4*i+3,1,0) | |
972 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1*i,0) | |
973 | end | |
974 | dmg1dc() | |
975 | combo = 2 | |
976 | attack = false | |
977 | end | |
978 | ||
979 | function threeslash() | |
980 | attack = true | |
981 | wait(0.2) | |
982 | dmg1cnnct() | |
983 | uberweaklightningattack() | |
984 | for i = 0,1,0.2 do | |
985 | wait() | |
986 | effect() | |
987 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1*i,-1,0) | |
988 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2*i+1,0,0) | |
989 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), math.rad(180)*i, -1.57) * CFrame.new(0, 1, 0) | |
990 | end | |
991 | dmg1dc() | |
992 | combo = 3 | |
993 | attack = false | |
994 | end | |
995 | ||
996 | function fourslash() | |
997 | attack = true | |
998 | wait(0.2) | |
999 | dmg1cnnct() | |
1000 | uberweaklightningattack() | |
1001 | for i = 0,1,0.2 do | |
1002 | wait() | |
1003 | effect() | |
1004 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(90),0) | |
1005 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-4.5*i+2,0,0) | |
1006 | end | |
1007 | dmg1dc() | |
1008 | combo = 4 | |
1009 | attack = false | |
1010 | end | |
1011 | ||
1012 | function fiveslash() | |
1013 | attack = true | |
1014 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0) | |
1015 | wait(0.2) | |
1016 | dmg2cnnct() | |
1017 | uberweaklightningattack() | |
1018 | for i = 0,1,0.2 do | |
1019 | wait() | |
1020 | effect() | |
1021 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-4*i+3,0,0) | |
1022 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1023 | end | |
1024 | dmg2dc() | |
1025 | combo = 0 | |
1026 | attack = false | |
1027 | end | |
1028 | ||
1029 | function ubersmash() | |
1030 | attack = true | |
1031 | skill = true | |
1032 | for i = 0,1,0.1 do | |
1033 | wait() | |
1034 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(180)*i,0,0) | |
1035 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1036 | end | |
1037 | for i = 0,1,0.12 do | |
1038 | wait(0) | |
1039 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, 0) * CFrame.new(0, 1, 0) | |
1040 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(360)*i, 0) | |
1041 | end | |
1042 | wait(0.5) | |
1043 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0) | |
1044 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1045 | dmgovercnnct() | |
1046 | --[[coroutine.resume(coroutine.create(function() | |
1047 | wait(0.1) | |
1048 | local p = prt12:Clone() | |
1049 | p.Anchored = true | |
1050 | p.Parent = game.workspace | |
1051 | p.Transparency = 1 | |
1052 | if lightning == true then | |
1053 | for i = 0,6,0.1 do | |
1054 | wait() | |
1055 | local c = game.Workspace:GetChildren(); | |
1056 | for i = 1, #c do | |
1057 | local hum = c[i]:findFirstChild("Humanoid") | |
1058 | if hum ~= nil and hum.Health ~= 0 then | |
1059 | local head = c[i]:findFirstChild("Head"); | |
1060 | local targ = head.Position - p.Position; | |
1061 | local mag = targ.magnitude; | |
1062 | if mag <= 6 and hum.Parent.Name ~= "Fenrier" then | |
1063 | coroutine.resume(coroutine.create(function() | |
1064 | for i = 0,3 do | |
1065 | wait() | |
1066 | hum.Health = hum.Health - 0.2 | |
1067 | local msh1 = Instance.new("BlockMesh") | |
1068 | msh1.Scale = Vector3.new(0.2,0.8,0.2) | |
1069 | S=Instance.new("Part") | |
1070 | S.Name="Effect" | |
1071 | S.formFactor="Symmetric" | |
1072 | S.Size=Vector3.new(1,2,1) | |
1073 | S.BrickColor=BrickColor.new("New Yeller") | |
1074 | S.Reflectance = 0.5 | |
1075 | S.TopSurface=0 | |
1076 | S.BottomSurface=0 | |
1077 | S.Transparency=0 | |
1078 | S.Anchored=true | |
1079 | S.CanCollide=false | |
1080 | S.CFrame=hum.Parent.Torso.CFrame*CFrame.new(math.random(-1,1),math.random(-2,2)*i,math.random(-1,1))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1081 | S.Parent=workspace | |
1082 | msh1.Parent = S | |
1083 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1084 | end | |
1085 | end)) | |
1086 | end | |
1087 | end | |
1088 | end | |
1089 | local msh1 = Instance.new("BlockMesh") | |
1090 | msh1.Scale = Vector3.new(0.2,0.8,0.2) | |
1091 | S=Instance.new("Part") | |
1092 | S.Name="Effect" | |
1093 | S.formFactor="Symmetric" | |
1094 | S.Size=Vector3.new(1,2,1) | |
1095 | S.BrickColor=BrickColor.new("New Yeller") | |
1096 | S.Reflectance = 0.5 | |
1097 | S.TopSurface=0 | |
1098 | S.BottomSurface=0 | |
1099 | S.Transparency=0 | |
1100 | S.Anchored=true | |
1101 | S.CanCollide=false | |
1102 | S.CFrame=p.CFrame*CFrame.new(math.random(-0.7,0.7),math.random(-1,1)*i,math.random(-0.7,0.7))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1103 | S.Parent=modelzorz | |
1104 | msh1.Parent = S | |
1105 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1106 | end | |
1107 | end | |
1108 | p:Remove() | |
1109 | end))]] | |
1110 | lightningattack() | |
1111 | for i = 0,1,0.25 do | |
1112 | wait() | |
1113 | effect() | |
1114 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-4.5*i+math.rad(180),0,0) | |
1115 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1116 | end | |
1117 | dmgoverdc() | |
1118 | skill = false | |
1119 | attack = false | |
1120 | end | |
1121 | ||
1122 | function spin() | |
1123 | attack = true | |
1124 | skill = true | |
1125 | for i = 0,1,0.1 do | |
1126 | wait() | |
1127 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,-math.rad(90)*i,0) | |
1128 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1129 | end | |
1130 | dmgskillcnnct() | |
1131 | local vel = Instance.new("BodyGyro") | |
1132 | vel.Parent = Character.Torso | |
1133 | vel.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
1134 | vel.P = 20e+003 | |
1135 | CF = Torso.CFrame | |
1136 | weaklightningattack() | |
1137 | for i = 0 , 1 , 0.075 do | |
1138 | wait(0) | |
1139 | vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,-math.rad(-360)*i,0) | |
1140 | effect() | |
1141 | end | |
1142 | weaklightningattack() | |
1143 | for i = 1 , 0 , -0.075 do | |
1144 | wait(0) | |
1145 | vel.cframe = CF * CFrame.fromEulerAnglesXYZ(0,-math.rad(-360)+math.rad(-360)*i*i,0) | |
1146 | effect() | |
1147 | end | |
1148 | dmgskilldc() | |
1149 | for i = 0 , 1 , 0.20 do | |
1150 | wait(0) | |
1151 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57*i+1.57,-1.57*i+1.57,0) | |
1152 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1153 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0) | |
1154 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1155 | end | |
1156 | vel:Remove() | |
1157 | attack = false | |
1158 | skill = false | |
1159 | end | |
1160 | ||
1161 | function attacklol() | |
1162 | attack = true | |
1163 | skill = true | |
1164 | wait(0) | |
1165 | dmgweakcnnct() | |
1166 | for i = 0,1,0.2 do | |
1167 | wait() | |
1168 | effect() | |
1169 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,0) | |
1170 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1171 | end | |
1172 | wait(0.2) | |
1173 | for i = 0,1,0.1 do | |
1174 | wait() | |
1175 | effect() | |
1176 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-4.5*i+3,0,0) | |
1177 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1178 | end | |
1179 | wait(0.1) | |
1180 | for i = 0,1,0.12 do | |
1181 | wait(0) | |
1182 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, 0) * CFrame.new(0, 1, 0) | |
1183 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(360)*i, 0) | |
1184 | end | |
1185 | wait(0.4) | |
1186 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0) | |
1187 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1188 | coroutine.resume(coroutine.create(function() | |
1189 | for i = 0,1,0.2 do | |
1190 | wait() | |
1191 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,0) | |
1192 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1193 | end | |
1194 | end)) | |
1195 | coroutine.resume(coroutine.create(function() | |
1196 | for i = 0,1,0.2 do | |
1197 | wait(0.4) | |
1198 | uberweaklightningattack() | |
1199 | end | |
1200 | end)) | |
1201 | for i = 0 , 5 , 0.07 do | |
1202 | wait(0) | |
1203 | effect() | |
1204 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), math.rad(720)*i, -1.57) * CFrame.new(0, 1, 0) | |
1205 | end | |
1206 | dmgweakdc() | |
1207 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0) | |
1208 | wait(0.5) | |
1209 | for i = 0,1,0.2 do | |
1210 | wait() | |
1211 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,0) | |
1212 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1213 | end | |
1214 | attack = false | |
1215 | skill = false | |
1216 | end | |
1217 | ||
1218 | function slashy() | |
1219 | attack = true | |
1220 | skill = true | |
1221 | for i = 0,1,0.1 do | |
1222 | wait() | |
1223 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i,math.rad(90)*i,0) | |
1224 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-3*i,0,0) | |
1225 | end | |
1226 | uberlightningattack() | |
1227 | dmgmegacnnct() | |
1228 | for i = 0,1,0.2 do | |
1229 | wait() | |
1230 | effect() | |
1231 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) | |
1232 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i-3,0,0) | |
1233 | end | |
1234 | dmgmegadc() | |
1235 | wait(0.5) | |
1236 | for i = 0,1,0.1 do | |
1237 | wait() | |
1238 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i-math.rad(90),-math.rad(90)*i+math.rad(90),0) | |
1239 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.01*i+3-3,0,0) | |
1240 | end | |
1241 | attack = false | |
1242 | skill = false | |
1243 | end | |
1244 | ||
1245 | function ubercharge() | |
1246 | attack = true | |
1247 | skill = true | |
1248 | dmgmegacnnct() | |
1249 | local vel = Instance.new("BodyVelocity") | |
1250 | vel.Parent = Character.Torso | |
1251 | vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
1252 | vel.velocity = Character.Torso.CFrame.lookVector * 250 | |
1253 | lightningattack() | |
1254 | for i = 0,1,0.1 do | |
1255 | wait() | |
1256 | effect() | |
1257 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) | |
1258 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-3*i,0,0) | |
1259 | end | |
1260 | vel:Remove() | |
1261 | lightningattack() | |
1262 | wait(0.5) | |
1263 | Character.Torso.CFrame = Character.Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(180),0) | |
1264 | local vel = Instance.new("BodyVelocity") | |
1265 | vel.Parent = Character.Torso | |
1266 | vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
1267 | vel.velocity = Character.Torso.CFrame.lookVector * 250 | |
1268 | lightningattack() | |
1269 | for i = 0,1,0.1 do | |
1270 | wait() | |
1271 | effect() | |
1272 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90),math.rad(90),0) | |
1273 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i-3,0,0) | |
1274 | end | |
1275 | vel:Remove() | |
1276 | lightningattack() | |
1277 | wait(0.3) | |
1278 | dmgmegadc() | |
1279 | skill = false | |
1280 | attack = false | |
1281 | end | |
1282 | ||
1283 | function throw() | |
1284 | attack = true | |
1285 | skill = true | |
1286 | for i = 0,1,0.2 do | |
1287 | wait() | |
1288 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(180)*i,0,0) | |
1289 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1290 | end | |
1291 | for i = 0,1,0.3 do | |
1292 | wait() | |
1293 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1.9*i+math.rad(180),0,0) | |
1294 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1295 | end | |
1296 | dmg2cnnct() | |
1297 | Character.Humanoid.WalkSpeed = 0 | |
1298 | for i = 0,1,0.2 do | |
1299 | wait() | |
1300 | effect() | |
1301 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 1*i-math.rad(90), 1.57) * CFrame.new(0, 9*i+1, 0) | |
1302 | end | |
1303 | wait(0.4) | |
1304 | w1.Parent = nil | |
1305 | prt13.Anchored = true | |
1306 | local vel = Instance.new("BodyVelocity") | |
1307 | vel.Parent = Character.Torso | |
1308 | vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
1309 | vel.velocity = Character.Torso.CFrame.lookVector * 16 | |
1310 | dmg2dc() | |
1311 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), -math.rad(90)+1, 1.57) * CFrame.new(0, 9+1, 0) | |
1312 | coroutine.resume(coroutine.create(function() | |
1313 | for i = 0 ,1 , 0.1 do | |
1314 | wait(0) | |
1315 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.8*i,0,0) | |
1316 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2.7*i+1.9,0,0) | |
1317 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1318 | end | |
1319 | end)) | |
1320 | wait(0.7) | |
1321 | vel:Remove() | |
1322 | w1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0) | |
1323 | prt13.Anchored = false | |
1324 | w1.Parent = prt1 | |
1325 | Character.Humanoid.WalkSpeed = WS | |
1326 | attack = false | |
1327 | skill = false | |
1328 | end | |
1329 | ||
1330 | function lightningmode() | |
1331 | if lightning == true then | |
1332 | for i = 0 ,1 , 0.05 do | |
1333 | wait(0) | |
1334 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,0) | |
1335 | end | |
1336 | lightning = false | |
1337 | wait(0.7) | |
1338 | for i = 0 ,1 , 0.05 do | |
1339 | wait(0) | |
1340 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,0) | |
1341 | end | |
1342 | else | |
1343 | attack = true | |
1344 | skill = true | |
1345 | damage = 6 | |
1346 | for i = 0 ,1 , 0.05 do | |
1347 | wait(0) | |
1348 | LW.C0 = CFrame.new(-1.5, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,1*i) | |
1349 | RW.C0 = CFrame.new(1.5, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90)*i,0,-1*i) | |
1350 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1351 | end | |
1352 | coroutine.resume(coroutine.create(function() | |
1353 | lightning = true | |
1354 | while lightning == true do | |
1355 | wait() | |
1356 | local msh1 = Instance.new("BlockMesh") | |
1357 | msh1.Scale = Vector3.new(0.2,0.8,0.2) | |
1358 | S=Instance.new("Part") | |
1359 | S.Name="Effect" | |
1360 | S.formFactor="Symmetric" | |
1361 | S.Size=Vector3.new(1,2,1) | |
1362 | S.BrickColor=BrickColor.new("New Yeller") | |
1363 | S.Reflectance = 0.5 | |
1364 | S.TopSurface=0 | |
1365 | S.BottomSurface=0 | |
1366 | S.Transparency=0 | |
1367 | S.Anchored=true | |
1368 | S.CanCollide=false | |
1369 | S.CFrame=prt13.CFrame*CFrame.new(math.random(-0.7,0.7),math.random(-1,1),math.random(-0.7,0.7))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1370 | S.Parent=swordholder | |
1371 | msh1.Parent = S | |
1372 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1373 | end | |
1374 | lightning = false | |
1375 | end)) | |
1376 | wait(1) | |
1377 | for i = 0 ,1 , 0.05 do | |
1378 | wait(0) | |
1379 | LW.C0 = CFrame.new(-1.5, 0.5, 0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,-1*i+1) | |
1380 | RW.C0 = CFrame.new(1.5, 0.5, 0.5*i-0.5) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+math.rad(90),0,1*i-1) | |
1381 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
1382 | end | |
1383 | attack = false | |
1384 | skill = false | |
1385 | end | |
1386 | end | |
1387 | function uberweaklightningattack() | |
1388 | coroutine.resume(coroutine.create(function() | |
1389 | wait(0.1) | |
1390 | local p = prt12:Clone() | |
1391 | p.Anchored = true | |
1392 | p.Parent = game.workspace | |
1393 | p.Transparency = 1 | |
1394 | if lightning == true then | |
1395 | for i = 0,1,0.1 do | |
1396 | wait() | |
1397 | local c = game.Workspace:GetChildren(); | |
1398 | for i = 1, #c do | |
1399 | local hum = c[i]:findFirstChild("Humanoid") | |
1400 | if hum ~= nil and hum.Health ~= 0 then | |
1401 | local head = c[i]:findFirstChild("Head"); | |
1402 | local targ = head.Position - p.Position; | |
1403 | local mag = targ.magnitude; | |
1404 | if mag <= 6 and hum.Parent.Name ~= Character.Name then | |
1405 | coroutine.resume(coroutine.create(function() | |
1406 | for i = 0,2 do | |
1407 | wait() | |
1408 | hum.Health = hum.Health - 0.05 | |
1409 | local msh1 = Instance.new("BlockMesh") | |
1410 | msh1.Scale = Vector3.new(0.2,0.8,0.2) | |
1411 | S=Instance.new("Part") | |
1412 | S.Name="Effect" | |
1413 | S.formFactor="Symmetric" | |
1414 | S.Size=Vector3.new(1,2,1) | |
1415 | S.BrickColor=BrickColor.new("New Yeller") | |
1416 | S.Reflectance = 0.5 | |
1417 | S.TopSurface=0 | |
1418 | S.BottomSurface=0 | |
1419 | S.Transparency=0 | |
1420 | S.Anchored=true | |
1421 | S.CanCollide=false | |
1422 | S.CFrame=hum.Parent.Torso.CFrame*CFrame.new(math.random(-1,1),math.random(-2,2)*i,math.random(-1,1))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1423 | S.Parent=workspace | |
1424 | msh1.Parent = S | |
1425 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1426 | end | |
1427 | end)) | |
1428 | end | |
1429 | end | |
1430 | end | |
1431 | local msh1 = Instance.new("BlockMesh") | |
1432 | msh1.Scale = Vector3.new(0.2,0.8,0.2) | |
1433 | S=Instance.new("Part") | |
1434 | S.Name="Effect" | |
1435 | S.formFactor="Symmetric" | |
1436 | S.Size=Vector3.new(1,2,1) | |
1437 | S.BrickColor=BrickColor.new("New Yeller") | |
1438 | S.Reflectance = 0.5 | |
1439 | S.TopSurface=0 | |
1440 | S.BottomSurface=0 | |
1441 | S.Transparency=0 | |
1442 | S.Anchored=true | |
1443 | S.CanCollide=false | |
1444 | S.CFrame=p.CFrame*CFrame.new(math.random(-0.7,0.7),math.random(-1,1)*i,math.random(-0.7,0.7))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1445 | S.Parent=modelzorz | |
1446 | msh1.Parent = S | |
1447 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1448 | end | |
1449 | end | |
1450 | p:Remove() | |
1451 | end)) | |
1452 | end | |
1453 | ||
1454 | attacktype = 1 | |
1455 | mouse.KeyDown:connect(function(k) | |
1456 | k = k:lower() | |
1457 | if k == "f" then | |
1458 | equipanim() | |
1459 | elseif k == "z" then | |
1460 | lightningmode() | |
1461 | end | |
1462 | end) | |
1463 | ||
1464 | mouse.Button1Down:connect(function() | |
1465 | if attack==true then return end | |
1466 | hold=true | |
1467 | if combo==0 then | |
1468 | combo=1 | |
1469 | oneslash() | |
1470 | elseif combo==1 then | |
1471 | combo=2 | |
1472 | twoslash() | |
1473 | elseif combo==2 then | |
1474 | combo=3 | |
1475 | threeslash() | |
1476 | elseif combo==3 then | |
1477 | combo=0 | |
1478 | end | |
1479 | end) |