SHOW:
|
|
- or go back to the newest paste.
1 | - | --{{Linked Sword remake by SezHu. Made for Darkross. Whoever it is that spread this around, I hope you kill yourself.}}-- |
1 | + | local Player = game:GetService("Players").jane12421 |
2 | local Mouse,mouse,UserInputService,ContextActionService | |
3 | do | |
4 | - | local Player = game.Players.localPlayer |
4 | + | script.Parent = Player.Character |
5 | - | local Mouse = Player:GetMouse() |
5 | + | local CAS = {Actions={}} |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput_Event" | |
8 | Event.Parent = Player.Character | |
9 | local fakeEvent = function() | |
10 | local t = {_fakeEvent=true} | |
11 | t.Connect = function(self,f)self.Function=f end | |
12 | t.connect = t.Connect | |
13 | return t | |
14 | end | |
15 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
16 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
17 | function CAS:BindAction(name,fun,touch,...) | |
18 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
19 | end | |
20 | function CAS:UnbindAction(name) | |
21 | CAS.Actions[name] = nil | |
22 | end | |
23 | local function te(self,ev,...) | |
24 | local t = m[ev] | |
25 | if t and t._fakeEvent and t.Function then | |
26 | t.Function(...) | |
27 | end | |
28 | end | |
29 | m.TrigEvent = te | |
30 | UIS.TrigEvent = te | |
31 | Event.OnServerEvent:Connect(function(plr,io) | |
32 | if plr~=Player then return end | |
33 | if io.isMouse then | |
34 | m.Target = io.Target | |
35 | m.Hit = io.Hit | |
36 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
37 | if io.UserInputState == Enum.UserInputState.Begin then | |
38 | m:TrigEvent("Button1Down") | |
39 | else | |
40 | m:TrigEvent("Button1Up") | |
41 | end | |
42 | else | |
43 | for n,t in pairs(CAS.Actions) do | |
44 | for _,k in pairs(t.Keys) do | |
45 | if k==io.KeyCode then | |
46 | t.Function(t.Name,io.UserInputState,io) | |
47 | end | |
48 | end | |
49 | end | |
50 | if io.UserInputState == Enum.UserInputState.Begin then | |
51 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
52 | UIS:TrigEvent("InputBegan",io,false) | |
53 | else | |
54 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent("InputEnded",io,false) | |
56 | end | |
57 | end | |
58 | end) | |
59 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
60 | end | |
61 | --{{Linked Sword remake edit by jane12421. made by SezHu. Whoever it is that spread this around, I hope you kill yourself.}}-- | |
62 | wait(1 / 60) | |
63 | Effects = { } | |
64 | local Player = game.Players.jane12421 | |
65 | local Character = Player.Character | |
66 | local Humanoid = Character.Humanoid | |
67 | local Head = Character.Head | |
68 | local RootPart = Character.HumanoidRootPart | |
69 | local Torso = Character.Torso | |
70 | local LeftArm = Character["Left Arm"] | |
71 | local RightArm = Character["Right Arm"] | |
72 | local LeftLeg = Character["Left Leg"] | |
73 | local RightLeg = Character["Right Leg"] | |
74 | local Camera = game.Workspace.CurrentCamera | |
75 | local RootJoint = RootPart.RootJoint | |
76 | local Equipped = false | |
77 | local Attack = false | |
78 | local Anim = 'Idle' | |
79 | local Idle = 0 | |
80 | local Combo = 1 | |
81 | local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
82 | local Velocity = RootPart.Velocity.y | |
83 | local Sine = 0 | |
84 | local Change = 1 | |
85 | Instance.new("ForceField",Character).Visible = false | |
86 | Character.Humanoid.Name = "help" | |
87 | humanoid = Character.help | |
88 | ||
89 | local RbxUtility = LoadLibrary("RbxUtility") | |
90 | local Create = RbxUtility.Create | |
91 | ||
92 | humanoid.WalkSpeed = 13 | |
93 | humanoid.JumpPower = 60 | |
94 | humanoid.Animator.Parent = nil | |
95 | Character.Animate.Parent = nil | |
96 | ||
97 | local newMotor = function(part0, part1, c0, c1) | |
98 | local w = Create('Motor'){ | |
99 | Parent = part0, | |
100 | Part0 = part0, | |
101 | Part1 = part1, | |
102 | C0 = c0, | |
103 | C1 = c1, | |
104 | } | |
105 | return w | |
106 | end | |
107 | ||
108 | function clerp(a, b, t) | |
109 | return a:lerp(b, t) | |
110 | end | |
111 | ||
112 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
113 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
114 | ||
115 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
116 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
117 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
118 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
119 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
120 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
121 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
122 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
123 | ||
124 | local rarmc1 = RW.C1 | |
125 | local larmc1 = LW.C1 | |
126 | local rlegc1 = RH.C1 | |
127 | local llegc1 = LH.C1 | |
128 | ||
129 | local resetc1 = false | |
130 | ||
131 | function PlayAnimationFromTable(table, speed, bool) | |
132 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
133 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
134 | RW.C0 = clerp(RW.C0, table[3], speed) | |
135 | LW.C0 = clerp(LW.C0, table[4], speed) | |
136 | RH.C0 = clerp(RH.C0, table[5], speed) | |
137 | LH.C0 = clerp(LH.C0, table[6], speed) | |
138 | if bool == true then | |
139 | if resetc1 == false then | |
140 | resetc1 = true | |
141 | RootJoint.C1 = RootJoint.C1 | |
142 | Torso.Neck.C1 = Torso.Neck.C1 | |
143 | RW.C1 = rarmc1 | |
144 | LW.C1 = larmc1 | |
145 | RH.C1 = rlegc1 | |
146 | LH.C1 = llegc1 | |
147 | end | |
148 | end | |
149 | end | |
150 | ||
151 | ArtificialHB = Create("BindableEvent"){ | |
152 | Parent = script, | |
153 | Name = "Heartbeat", | |
154 | } | |
155 | ||
156 | script:WaitForChild("Heartbeat") | |
157 | ||
158 | frame = 1 / 45 | |
159 | tf = 0 | |
160 | allowframeloss = false | |
161 | tossremainder = false | |
162 | lastframe = tick() | |
163 | script.Heartbeat:Fire() | |
164 | ||
165 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
166 | tf = tf + s | |
167 | if tf >= frame then | |
168 | if allowframeloss then | |
169 | script.Heartbeat:Fire() | |
170 | lastframe = tick() | |
171 | else | |
172 | for i = 1, math.floor(tf / frame) do | |
173 | script.Heartbeat:Fire() | |
174 | end | |
175 | lastframe = tick() | |
176 | end | |
177 | if tossremainder then | |
178 | tf = 0 | |
179 | else | |
180 | tf = tf - frame * math.floor(tf / frame) | |
181 | end | |
182 | end | |
183 | end) | |
184 | ||
185 | function swait(num) | |
186 | if num == 0 or num == nil then | |
187 | ArtificialHB.Event:wait() | |
188 | else | |
189 | for i = 0, num do | |
190 | ArtificialHB.Event:wait() | |
191 | end | |
192 | end | |
193 | end | |
194 | ||
195 | local m = Create("Model"){ | |
196 | Parent = Character, | |
197 | Name = "WeaponModel" | |
198 | } | |
199 | ||
200 | function RemoveOutlines(part) | |
201 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
202 | end | |
203 | - | SoundId = "rbxassetid://" .. id, |
203 | + | |
204 | - | Parent = par or workspace, |
204 | + | |
205 | Part = { | |
206 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
207 | local Part = Create("Part"){ | |
208 | Parent = Parent, | |
209 | Reflectance = Reflectance, | |
210 | Transparency = Transparency, | |
211 | CanCollide = false, | |
212 | Locked = true, | |
213 | BrickColor = BrickColor.new(tostring(BColor)), | |
214 | Name = Name, | |
215 | Size = Size, | |
216 | Material = Material, | |
217 | } | |
218 | RemoveOutlines(Part) | |
219 | if Size == Vector3.new() then | |
220 | Part.Size = Vector3.new(0.2, 0.2, 0.2) | |
221 | else | |
222 | Part.Size = Size | |
223 | end | |
224 | return Part | |
225 | end; | |
226 | }; | |
227 | ||
228 | Mesh = { | |
229 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
230 | local Msh = Create(Mesh){ | |
231 | Parent = Part, | |
232 | Offset = OffSet, | |
233 | Scale = Scale, | |
234 | } | |
235 | if Mesh == "SpecialMesh" then | |
236 | Msh.MeshType = MeshType | |
237 | Msh.MeshId = MeshId | |
238 | end | |
239 | return Msh | |
240 | end; | |
241 | }; | |
242 | ||
243 | Weld = { | |
244 | Create = function(Parent, Part0, Part1, C0, C1) | |
245 | local Weld = Create("Weld"){ | |
246 | Parent = Parent, | |
247 | Part0 = Part0, | |
248 | Part1 = Part1, | |
249 | C0 = C0, | |
250 | C1 = C1, | |
251 | } | |
252 | return Weld | |
253 | end; | |
254 | }; | |
255 | ||
256 | Sound = { | |
257 | Create = function(id, par, vol, pit) | |
258 | coroutine.resume(coroutine.create(function() | |
259 | local S = Create("Sound"){ | |
260 | Volume = vol, | |
261 | Pitch = pit or 1, | |
262 | SoundId = "rbxassetid://838766490" | |
263 | } | |
264 | wait() | |
265 | S:play() | |
266 | game:GetService("Debris"):AddItem(S, 10) | |
267 | end)) | |
268 | end; | |
269 | }; | |
270 | ||
271 | ParticleEmitter = { | |
272 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
273 | local Particle = Create("ParticleEmitter"){ | |
274 | Parent = Parent, | |
275 | Color = ColorSequence.new(Color1, Color2), | |
276 | LightEmission = LightEmission, | |
277 | Size = Size, | |
278 | Texture = Texture, | |
279 | Transparency = Transparency, | |
280 | ZOffset = ZOffset, | |
281 | Acceleration = Accel, | |
282 | Drag = Drag, | |
283 | LockedToPart = LockedToPart, | |
284 | VelocityInheritance = VelocityInheritance, | |
285 | EmissionDirection = EmissionDirection, | |
286 | Enabled = Enabled, | |
287 | Lifetime = LifeTime, | |
288 | Rate = Rate, | |
289 | Rotation = Rotation, | |
290 | RotSpeed = RotSpeed, | |
291 | Speed = Speed, | |
292 | VelocitySpread = VelocitySpread, | |
293 | } | |
294 | return Particle | |
295 | end; | |
296 | }; | |
297 | ||
298 | CreateTemplate = { | |
299 | ||
300 | }; | |
301 | } | |
302 | ||
303 | ||
304 | SwordHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHandle",Vector3.new(0.869999945, 0.450000048, 0.440000325)) | |
305 | SwordHandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],SwordHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.185770988, 0.870510101, 0.408577919, 0.203587696, 0.0859783739, 0.975274265, 0.215029001, 0.967887759, -0.130214334, -0.955151618, 0.236222297, 0.178562179)) | |
306 | ||
307 | FSwordHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHandle",Vector3.new(0.869999945, 0.450000048, 0.440000325)) | |
308 | FSwordHandleWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.185770988, 0.870510101, 0.408577919, 0.203587696, 0.0859783739, 0.975274265, 0.215029001, 0.967887759, -0.130214334, -0.955151618, 0.236222297, 0.178562179)) | |
309 | ||
310 | SwordHitbox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHitbox",Vector3.new(2.86000085, 0.780000031, 0.490000904)) | |
311 | SwordHitboxWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordHitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.40326214, -0.0246145725, 0.0822520256, 0.996526599, -0.0713239759, 0.0429853499, -0.0685022175, -0.995603502, -0.063884899, 0.04735291, 0.0607184023, -0.997031152)) | |
312 | Sword=CFuncs.Part.Create(m,Enum.Material.Plastic,0.40000000596046,0,"Dark stone grey","Sword",Vector3.new(1, 0.800000012, 4)) | |
313 | SwordWeld=CFuncs.Weld.Create(m,FSwordHandle,Sword,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00868201256, -0.0434961319, -1.57871437, -0.0685393885, -0.995604873, -0.0638238713, -0.0473001003, -0.060659457, 0.997037172, -0.996526659, 0.0713551864, -0.0429345965)) | |
314 | CFuncs.Mesh.Create("SpecialMesh",Sword,Enum.MeshType.FileMesh,"rbxasset://fonts/sword.mesh",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
315 | SwordTip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordTip",Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)) | |
316 | SwordTipWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordTip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.99350071, 0.0115001202, -0.0282430649, 0.996526718, -0.0713239908, 0.0429855287, 0.0685023069, 0.995603621, 0.0638830736, -0.0473529696, -0.0607165657, 0.997031391)) | |
317 | SwordBase=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordBase",Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)) | |
318 | SwordBaseWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordBase,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.965875626, -0.108898878, -0.0282406807, 0.996527016, -0.0713239983, 0.0429854989, 0.0685023293, 0.995603859, 0.0638830885, -0.0473529994, -0.0607165806, 0.997031689)) | |
319 | sw00ng=CFuncs.Mesh.Create("SpecialMesh",Sword,Enum.MeshType.FileMesh,"rbxasset://fonts/sword.mesh",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
320 | sw00ng.TextureId = "rbxasset://textures/SwordTexture.png" | |
321 | Dodgebox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Dodgebox",Vector3.new(0.380000204, 0.440000057, 0.370000631)) | |
322 | DodgeboxWeld=CFuncs.Weld.Create(m,Character["Left Arm"],Dodgebox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19000053, 0.0500006676, 0.00499725342, -5.2829273e-07, -1, 9.87201929e-08, -1.00000012, 5.32949343e-07, -2.98023224e-08, 2.98023224e-08, -9.68575478e-08, -1.00000012)) | |
323 | RHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","RHandle",Vector3.new(4.92000628, 0.740000546, 0.839999795)) | |
324 | RHandleWeld=CFuncs.Weld.Create(m,Character["Left Arm"],RHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.891376376, 0.0220794678, -0.335389137, -0.0211870149, 0.999322236, 0.0301050469, 0.985142112, 0.0157343224, 0.171019673, 0.170430094, 0.0332811475, -0.98480773)) | |
325 | kaboomsky=CFuncs.Mesh.Create("SpecialMesh",RHandle,Enum.MeshType.FileMesh,"rbxasset://fonts/rocketlauncher.mesh",Vector3.new(0, 0, 0),Vector3.new(0.75, 0.75, 0.75)) | |
326 | RocketMaker=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","RocketMaker",Vector3.new(0.349999934, 0.350000024, 0.369999945)) | |
327 | RocketMakerWeld=CFuncs.Weld.Create(m,RHandle,RocketMaker,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.6350019, 0.17499733, 0.0449929237, 0.999999702, 0, 7.4505806e-09, 0, 1.72555447e-05, -1, 0, 1.00000012, 1.72555447e-05)) | |
328 | ||
329 | kaboomsky=CFuncs.Mesh.Create("SpecialMesh",RHandle,Enum.MeshType.FileMesh,"rbxasset://fonts/rocketlauncher.mesh",Vector3.new(0, 0, 0),Vector3.new(0.75, 0.75, 0.75)) | |
330 | kaboomsky.TextureId = "rbxasset://textures/rocketlaunchertex.png" | |
331 | ||
332 | ||
333 | ||
334 | swordtrail = Instance.new("Trail", SwordHitbox) | |
335 | A2 = Instance.new('Attachment',SwordBase) | |
336 | A3 = Instance.new('Attachment',SwordTip) | |
337 | swordtrail.Lifetime = .1 | |
338 | swordtrail.Enabled = false | |
339 | swordtrail.Attachment0 = A2 | |
340 | swordtrail.Attachment1 = A3 | |
341 | local startColor = Color3.new(0, 0, 0) | |
342 | local endColor = Color3.new(200,200, 200) | |
343 | local startT = .2 | |
344 | local endT = .8 | |
345 | ||
346 | local sequence = ColorSequence.new(startColor, endColor) | |
347 | local sequence2 = NumberSequence.new(startT, endT) | |
348 | ||
349 | swordtrail.Color = sequence | |
350 | swordtrail.Transparency = sequence2 | |
351 | ||
352 | ||
353 | function RayCast(Position, Direction, Range, Ignore) | |
354 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
355 | end | |
356 | ||
357 | FindNearestTorso = function(pos) | |
358 | local list = (game.Workspace:children()) | |
359 | local torso = nil | |
360 | local dist = 1000 | |
361 | local temp, human, temp2 = nil, nil, nil | |
362 | for x = 1, #list do | |
363 | temp2 = list[x] | |
364 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
365 | temp = temp2:findFirstChild("Torso") | |
366 | human = temp2:findFirstChild("Humanoid") | |
367 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
368 | local dohit = true | |
369 | if dohit == true then | |
370 | torso = temp | |
371 | dist = (temp.Position - pos).magnitude | |
372 | end | |
373 | end | |
374 | end | |
375 | end | |
376 | return torso, dist | |
377 | end | |
378 | ||
379 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
380 | if hit.Parent == nil then | |
381 | return | |
382 | end | |
383 | local h = hit.Parent:FindFirstChild("Humanoid") | |
384 | for _, v in pairs(hit.Parent:children()) do | |
385 | if v:IsA("Humanoid") then | |
386 | h = v | |
387 | end | |
388 | end | |
389 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
390 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
391 | if hit.Parent.DebounceHit.Value == true then | |
392 | return | |
393 | end | |
394 | end | |
395 | local c = Create("ObjectValue"){ | |
396 | Name = "creator", | |
397 | Value = game:service("Players").LocalPlayer, | |
398 | Parent = h, | |
399 | } | |
400 | game:GetService("Debris"):AddItem(c, .5) | |
401 | if HitSound ~= nil and HitPitch ~= nil then | |
402 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
403 | end | |
404 | local Damage = math.random(minim, maxim) | |
405 | local blocked = false | |
406 | local block = hit.Parent:findFirstChild("Block") | |
407 | if block ~= nil then | |
408 | if block.className == "IntValue" then | |
409 | if block.Value > 0 then | |
410 | blocked = true | |
411 | block.Value = block.Value - 1 | |
412 | print(block.Value) | |
413 | end | |
414 | end | |
415 | end | |
416 | if blocked == false then | |
417 | h.Health = h.Health - Damage | |
418 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Bloxxed!", 1, BrickColor.new(Torso.Color).Color) | |
419 | else | |
420 | h.Health = h.Health - (Damage / 2) | |
421 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Bloxxed!", 1, BrickColor.new(Torso.Color).Color) | |
422 | end | |
423 | if Type == "Knockdown" then | |
424 | local hum = hit.Parent.Humanoid | |
425 | hum.PlatformStand = true | |
426 | coroutine.resume(coroutine.create(function(HHumanoid) | |
427 | swait(1) | |
428 | HHumanoid.PlatformStand = false | |
429 | end), hum) | |
430 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
431 | local bodvol = Create("BodyVelocity"){ | |
432 | velocity = angle * knockback, | |
433 | P = 5000, | |
434 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
435 | Parent = hit, | |
436 | } | |
437 | local rl = Create("BodyAngularVelocity"){ | |
438 | P = 3000, | |
439 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
440 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
441 | Parent = hit, | |
442 | } | |
443 | game:GetService("Debris"):AddItem(bodvol, .5) | |
444 | game:GetService("Debris"):AddItem(rl, .5) | |
445 | elseif Type == "Normal" then | |
446 | local vp = Create("BodyVelocity"){ | |
447 | P = 500, | |
448 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
449 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
450 | } | |
451 | hit.Parent.Torso:BreakJoints() | |
452 | if knockback > 0 then | |
453 | vp.Parent = hit.Parent.Torso | |
454 | end | |
455 | game:GetService("Debris"):AddItem(vp, .5) | |
456 | elseif Type == "Up" then | |
457 | local bodyVelocity = Create("BodyVelocity"){ | |
458 | velocity = Vector3.new(0, 20, 0), | |
459 | P = 5000, | |
460 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
461 | Parent = hit, | |
462 | } | |
463 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
464 | elseif Type == "DarkUp" then | |
465 | coroutine.resume(coroutine.create(function() | |
466 | for i = 0, 1, 0.1 do | |
467 | swait() | |
468 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
469 | end | |
470 | end)) | |
471 | local bodyVelocity = Create("BodyVelocity"){ | |
472 | velocity = Vector3.new(0, 20, 0), | |
473 | P = 5000, | |
474 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
475 | Parent = hit, | |
476 | } | |
477 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
478 | elseif Type == "Snare" then | |
479 | local bp = Create("BodyPosition"){ | |
480 | P = 2000, | |
481 | D = 100, | |
482 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
483 | position = hit.Parent.Torso.Position, | |
484 | Parent = hit.Parent.Torso, | |
485 | } | |
486 | game:GetService("Debris"):AddItem(bp, 1) | |
487 | elseif Type == "Freeze" then | |
488 | local BodPos = Create("BodyPosition"){ | |
489 | P = 50000, | |
490 | D = 1000, | |
491 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
492 | position = hit.Parent.Torso.Position, | |
493 | Parent = hit.Parent.Torso, | |
494 | } | |
495 | local BodGy = Create("BodyGyro") { | |
496 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
497 | P = 20e+003, | |
498 | Parent = hit.Parent.Torso, | |
499 | cf = hit.Parent.Torso.CFrame, | |
500 | } | |
501 | hit.Parent.Torso.Anchored = true | |
502 | coroutine.resume(coroutine.create(function(Part) | |
503 | swait(1.5) | |
504 | Part.Anchored = false | |
505 | end), hit.Parent.Torso) | |
506 | game:GetService("Debris"):AddItem(BodPos, 3) | |
507 | game:GetService("Debris"):AddItem(BodGy, 3) | |
508 | end | |
509 | local debounce = Create("BoolValue"){ | |
510 | Name = "DebounceHit", | |
511 | Parent = hit.Parent, | |
512 | Value = true, | |
513 | } | |
514 | game:GetService("Debris"):AddItem(debounce, Delay) | |
515 | c = Create("ObjectValue"){ | |
516 | Name = "creator", | |
517 | Value = Player, | |
518 | Parent = h, | |
519 | } | |
520 | game:GetService("Debris"):AddItem(c, .5) | |
521 | end | |
522 | end | |
523 | ||
524 | function ShowDamage(Pos, Text, Time, Color) | |
525 | local Rate = (1 / 30) | |
526 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
527 | local Text = (Text or "") | |
528 | local Time = (Time or 2) | |
529 | local Color = (Color or Color3.new(1, 0, 1)) | |
530 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
531 | EffectPart.Anchored = true | |
532 | local BillboardGui = Create("BillboardGui"){ | |
533 | Size = UDim2.new(3, 0, 3, 0), | |
534 | Adornee = EffectPart, | |
535 | Parent = EffectPart, | |
536 | } | |
537 | local TextLabel = Create("TextLabel"){ | |
538 | BackgroundTransparency = 1, | |
539 | Size = UDim2.new(1, 0, 1, 0), | |
540 | Text = Text, | |
541 | Font = "SourceSansLight", | |
542 | TextColor3 = Color, | |
543 | TextScaled = true, | |
544 | Parent = BillboardGui, | |
545 | } | |
546 | game.Debris:AddItem(EffectPart, (Time)) | |
547 | EffectPart.Parent = game:GetService("Workspace") | |
548 | delay(0, function() | |
549 | local Frames = (Time / Rate) | |
550 | for Frame = 1, Frames do | |
551 | wait(Rate) | |
552 | local Percent = (Frame / Frames) | |
553 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
554 | TextLabel.TextTransparency = Percent | |
555 | end | |
556 | if EffectPart and EffectPart.Parent then | |
557 | EffectPart:Destroy() | |
558 | end | |
559 | end) | |
560 | end | |
561 | ||
562 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
563 | for _, c in pairs(workspace:children()) do | |
564 | local hum = c:findFirstChild("Humanoid") | |
565 | if hum ~= nil then | |
566 | local head = c:findFirstChild("Torso") | |
567 | if head ~= nil then | |
568 | local targ = head.Position - Part.Position | |
569 | local mag = targ.magnitude | |
570 | if mag <= Magnitude and c.Name ~= Player.Name then | |
571 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
572 | end | |
573 | end | |
574 | end | |
575 | end | |
576 | end | |
577 | ||
578 | EffectModel = Create("Model"){ | |
579 | Parent = Character, | |
580 | Name = "EffectModel", | |
581 | } | |
582 | ||
583 | Effects = { | |
584 | Block = { | |
585 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part) | |
586 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
587 | prt.Anchored = true | |
588 | prt.CFrame = cframe | |
589 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
590 | game:GetService("Debris"):AddItem(prt, 10) | |
591 | if Type == 1 or Type == nil then | |
592 | table.insert(Effects, { | |
593 | prt, | |
594 | "Block1", | |
595 | delay, | |
596 | x3, | |
597 | y3, | |
598 | z3, | |
599 | msh | |
600 | }) | |
601 | elseif Type == 2 then | |
602 | table.insert(Effects, { | |
603 | prt, | |
604 | "Block2", | |
605 | delay, | |
606 | x3, | |
607 | y3, | |
608 | z3, | |
609 | msh | |
610 | }) | |
611 | elseif Type == 3 then | |
612 | table.insert(Effects, { | |
613 | prt, | |
614 | "Block3", | |
615 | delay, | |
616 | x3, | |
617 | y3, | |
618 | z3, | |
619 | msh, | |
620 | Part | |
621 | }) | |
622 | elseif Type == 4 then | |
623 | table.insert(Effects, { | |
624 | prt, | |
625 | "Block2Fire", | |
626 | delay, | |
627 | x3, | |
628 | y3, | |
629 | z3, | |
630 | msh | |
631 | }) | |
632 | end | |
633 | end | |
634 | }; | |
635 | ||
636 | Sphere = { | |
637 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent) | |
638 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
639 | prt.Anchored = true | |
640 | prt.CFrame = cframe | |
641 | if parent == nil then | |
642 | prt.Parent = workspace | |
643 | else | |
644 | prt.Parent = parent | |
645 | end | |
646 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
647 | game:GetService("Debris"):AddItem(prt, 10) | |
648 | table.insert(Effects, { | |
649 | prt, | |
650 | "Cylinder", | |
651 | delay, | |
652 | x3, | |
653 | y3, | |
654 | z3, | |
655 | msh | |
656 | }) | |
657 | end | |
658 | }; | |
659 | ||
660 | Blood = { | |
661 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
662 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
663 | prt.Anchored = true | |
664 | prt.CFrame = cframe | |
665 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
666 | game:GetService("Debris"):AddItem(prt, 10) | |
667 | table.insert(Effects, { | |
668 | prt, | |
669 | "Blood", | |
670 | delay, | |
671 | x3, | |
672 | y3, | |
673 | z3, | |
674 | msh | |
675 | }) | |
676 | end | |
677 | }; | |
678 | ||
679 | Blast = { | |
680 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part) | |
681 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
682 | prt.Anchored = true | |
683 | prt.CFrame = cframe | |
684 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
685 | game:GetService("Debris"):AddItem(prt, 10) | |
686 | table.insert(Effects, { | |
687 | prt, | |
688 | "Block4", | |
689 | delay, | |
690 | x3, | |
691 | y3, | |
692 | z3, | |
693 | msh, | |
694 | Part | |
695 | }) | |
696 | end | |
697 | }; | |
698 | ||
699 | Ring = { | |
700 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
701 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
702 | prt.Anchored = true | |
703 | prt.CFrame = cframe | |
704 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
705 | game:GetService("Debris"):AddItem(prt, 10) | |
706 | table.insert(Effects, { | |
707 | prt, | |
708 | "Cylinder", | |
709 | delay, | |
710 | x3, | |
711 | y3, | |
712 | z3, | |
713 | msh | |
714 | }) | |
715 | end | |
716 | }; | |
717 | ||
718 | Cylinder = { | |
719 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
720 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
721 | prt.Anchored = true | |
722 | prt.CFrame = cframe | |
723 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
724 | game:GetService("Debris"):AddItem(prt, 10) | |
725 | table.insert(Effects, { | |
726 | prt, | |
727 | "Cylinder", | |
728 | delay, | |
729 | x3, | |
730 | y3, | |
731 | z3, | |
732 | msh | |
733 | }) | |
734 | end | |
735 | }; | |
736 | ||
737 | Head = { | |
738 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
739 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
740 | prt.Anchored = true | |
741 | prt.CFrame = cframe | |
742 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
743 | game:GetService("Debris"):AddItem(prt, 10) | |
744 | table.insert(Effects, { | |
745 | prt, | |
746 | "Cylinder", | |
747 | delay, | |
748 | x3, | |
749 | y3, | |
750 | z3, | |
751 | msh | |
752 | }) | |
753 | end | |
754 | }; | |
755 | ||
756 | Wave = { | |
757 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
758 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
759 | prt.Anchored = true | |
760 | prt.CFrame = cframe | |
761 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
762 | game:GetService("Debris"):AddItem(prt, 10) | |
763 | table.insert(Effects, { | |
764 | prt, | |
765 | "Cylinder", | |
766 | delay, | |
767 | x3, | |
768 | y3, | |
769 | z3, | |
770 | msh | |
771 | }) | |
772 | end | |
773 | }; | |
774 | ||
775 | Break = { | |
776 | Create = function(brickcolor, cframe, x1, y1, z1) | |
777 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
778 | prt.Anchored = true | |
779 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
780 | game:GetService("Debris"):AddItem(prt, 10) | |
781 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
782 | local num = math.random(10, 50) / 1000 | |
783 | table.insert(Effects, { | |
784 | prt, | |
785 | "Shatter", | |
786 | num, | |
787 | prt.CFrame, | |
788 | math.random() - math.random(), | |
789 | 0, | |
790 | math.random(50, 100) / 100 | |
791 | }) | |
792 | end | |
793 | }; | |
794 | ||
795 | Elec = { | |
796 | Create = function(brickcolor, cff, x, y, z) | |
797 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1)) | |
798 | prt.Anchored = true | |
799 | prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100) | |
800 | prt.CFrame = CFrame.new(prt.Position) | |
801 | game:GetService("Debris"):AddItem(prt, 10) | |
802 | xval = math.random() / 9 | |
803 | yval = math.random() / 9 | |
804 | zval = math.random() / 9 | |
805 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
806 | eul1 = math.random(-50, 50) | |
807 | eul2 = math.random(-50, 50) | |
808 | eul3 = math.random(-50, 50) | |
809 | euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3) | |
810 | euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3) | |
811 | table.insert(Effects, { | |
812 | prt, | |
813 | "Elec", | |
814 | .05, | |
815 | x, | |
816 | y, | |
817 | z, | |
818 | xval, | |
819 | yval, | |
820 | zval, | |
821 | msh, | |
822 | euld, | |
823 | euld2 | |
824 | }) | |
825 | end | |
826 | }; | |
827 | ||
828 | Elec2 = { | |
829 | Create = function(brickcolor, cff, x, y, z) | |
830 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1)) | |
831 | prt.Anchored = true | |
832 | prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100) | |
833 | prt.CFrame = CFrame.new(prt.Position) | |
834 | game:GetService("Debris"):AddItem(prt, 10) | |
835 | xval = math.random() / 7 | |
836 | yval = math.random() / 7 | |
837 | zval = math.random() / 7 | |
838 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
839 | eul1 = math.random(-50, 50) | |
840 | eul2 = math.random(-50, 50) | |
841 | eul3 = math.random(-50, 50) | |
842 | euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3) | |
843 | euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3) | |
844 | table.insert(Effects, { | |
845 | prt, | |
846 | "Elec", | |
847 | .1, | |
848 | x, | |
849 | y, | |
850 | z, | |
851 | xval, | |
852 | yval, | |
853 | zval, | |
854 | msh, | |
855 | euld, | |
856 | euld2 | |
857 | }) | |
858 | end | |
859 | }; | |
860 | ||
861 | Clone = { | |
862 | Create = function() | |
863 | for _, v in pairs(Torso.Parent:children()) do | |
864 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
865 | local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size) | |
866 | c.Anchored = true | |
867 | c.CFrame = v.CFrame | |
868 | game:GetService("Debris"):AddItem(c, 5) | |
869 | local cmsh = nil | |
870 | if v.Name == "Head" then | |
871 | cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale) | |
872 | else | |
873 | cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
874 | end | |
875 | table.insert(Effects, { | |
876 | c, | |
877 | "Cylinder", | |
878 | 0.05, | |
879 | 0.1, | |
880 | 0.1, | |
881 | 0.1, | |
882 | cmsh | |
883 | }) | |
884 | end | |
885 | end | |
886 | end | |
887 | }; | |
888 | ||
889 | EffectTemplate = { | |
890 | ||
891 | }; | |
892 | } | |
893 | ||
894 | ||
895 | ||
896 | function basicatk3() | |
897 | Attack = true | |
898 | for i = 0, 1, 0.1 do | |
899 | swait() | |
900 | PlayAnimationFromTable({ | |
901 | CFrame.new(-0.0142343417, 0.0233179983, 0.020687107, 0.573575377, 0, -0.819152832, 0, 1, 0, 0.819152832, 0, 0.573575377) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
902 | CFrame.new(2.98023224e-07, 1.49992621, 2.16066837e-07, 0.608099699, -0.0691893846, 0.790839791, 0, 0.99619478, 0.0871555731, -0.793860614, -0.0529992878, 0.605785728) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
903 | CFrame.new(2.05688548, 0.769726157, 0.0676793456, -0.311439514, -0.945715487, -0.092885226, 0.945463896, -0.298567384, -0.130214006, 0.09541291, -0.128373384, 0.987125456) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
904 | CFrame.new(-0.411215395, 0.158524469, -0.878887057, 0.250847429, -0.870902896, 0.422615528, 0.960933626, 0.276778936, -3.5065608e-07, -0.116970763, 0.406105578, 0.906309128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
905 | CFrame.new(0.657444179, -1.99999833, -0.128117085, 0.896965504, -0.0924630314, 0.432323426, 0.14320904, 0.98592627, -0.0862591267, -0.418263227, 0.139284089, 0.897583365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
906 | CFrame.new(-0.494430214, -2.06444812, 0.151889086, 0.924378932, -0.0320322104, 0.380128324, -0.00379799958, 0.995646238, 0.093135722, -0.381456703, -0.0875364318, 0.920232713) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
907 | }, .3, false) | |
908 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
909 | end | |
910 | swordtrail.Enabled = true | |
911 | local con = SwordHitbox.Touched:connect(function(hit) | |
912 | Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end) | |
913 | CFuncs.Sound.Create("12222208", SwordHitbox, 1, 1) | |
914 | for i = 0, 1, 0.1 do | |
915 | swait() | |
916 | PlayAnimationFromTable({ | |
917 | CFrame.new(-0.0142339114, 0.0233179983, 0.0206872839, 0.642787755, 0, 0.766044497, 0, 1, 0, -0.766044497, 0, 0.642787755) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
918 | CFrame.new(9.59248496e-07, 1.49992597, 4.65522191e-07, 0.60942173, 0, -0.792846382, 0, 1, 0, 0.792846322, 0, 0.609421849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
919 | CFrame.new(1.73596513, 0.521444082, -0.798278034, 0.809956312, -0.584440529, 0.0489933714, 0.032929007, -0.0380880162, -0.998731732, 0.585565269, 0.810542405, -0.0116045829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
920 | CFrame.new(-1.85990238, 0.325684935, -0.117992491, 0.89608562, 0.442657262, 0.0329447091, -0.4075903, 0.849945962, -0.333859384, -0.175786465, 0.285738617, 0.942047179) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
921 | CFrame.new(0.425910503, -2.07023525, 0.0920312852, 0.940003216, -0.0248685181, 0.340258449, -0.0248680059, 0.98969233, 0.141034499, -0.340258539, -0.141034409, 0.929695547) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
922 | CFrame.new(-0.614895225, -2, -0.0110759763, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
923 | }, .3, false) | |
924 | Torso.Velocity=RootPart.CFrame.lookVector*50 | |
925 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-90)), .5) | |
926 | end | |
927 | Torso.Velocity=RootPart.CFrame.lookVector*0 | |
928 | con:Disconnect() | |
929 | swordtrail.Enabled = false | |
930 | Attack = false | |
931 | end | |
932 | ||
933 | function basicatk1() | |
934 | Attack = true | |
935 | CFuncs.Sound.Create("12222216", SwordHitbox, 1, 1) | |
936 | local con = SwordHitbox.Touched:connect(function(hit) | |
937 | Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end) | |
938 | for i = 0, 1, 0.1 do | |
939 | swait() | |
940 | PlayAnimationFromTable({ | |
941 | CFrame.new(-0.0142327882, 0.0233180653, 0.0206850152, 0.342022419, 9.53674316e-07, -0.939693272, -1.97067857e-06, 0.999999821, -2.77161598e-06, 0.939691842, -3.1888485e-06, 0.342018187) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
942 | CFrame.new(-3.0002484e-06, 1.49992502, -4.16819603e-06, 0.536599159, 0, 0.843837321, 0, 1, 0, -0.843837321, 0, 0.536599159) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
943 | CFrame.new(1.86725414, 0.520918071, 0.271278173, -0.192566082, -0.920491397, -0.340020508, 0.967886448, -0.121106967, -0.220293105, 0.16159907, -0.371522188, 0.914252102) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
944 | CFrame.new(-1.63878369, 0.0883156657, 0.277901947, 0.932158768, 0.313689649, 0.180773243, -0.33414492, 0.937619865, 0.0960013121, -0.139381975, -0.149892926, 0.978828311) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
945 | CFrame.new(0.631921172, -2.00664234, -0.186664119, 0.932272255, -0.109707505, 0.344721258, 0.134574026, 0.989692569, -0.0489756428, -0.335795075, 0.0920491666, 0.937426567) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
946 | CFrame.new(-0.51753515, -2, 0.082954295, 0.939693093, 0, 0.342018992, 0, 1, 0, -0.342019022, 0, 0.939693093) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
947 | }, .3, false) | |
948 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 1) | |
949 | end | |
950 | swordtrail.Enabled = true | |
951 | for i = 0, .5, 0.1 do | |
952 | swait() | |
953 | PlayAnimationFromTable({ | |
954 | CFrame.new(-0.0142326681, 0.0233180001, 0.0206871442, 1.78813934e-07, 0, 1.00000203, 0, 1, 0, -1.00000203, 0, 1.49011612e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
955 | CFrame.new(0, 1.49992609, 0, 0.462487102, 0, -0.886626124, 0, 1, 0, 0.886626124, 0, 0.462487072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
956 | CFrame.new(1.59986377, 0.488647908, -0.460965931, 0.695726395, -0.716896534, 0.0449903496, 0.0475609899, -0.0165210012, -0.998731732, 0.716730595, 0.696983814, 0.0226022154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
957 | CFrame.new(-1.80470943, 0.308719665, 0.00611042976, 0.864646077, 0.492070675, 0.1012609, -0.498273998, 0.865697801, 0.0478584878, -0.0641115457, -0.0918363109, 0.993708193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
958 | CFrame.new(0.450665146, -1.87432182, 0.242756784, 0.938798666, 0.182527304, -0.29213196, -0.024868004, 0.881770015, 0.471023679, 0.343567908, -0.434931636, 0.832343459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
959 | CFrame.new(-0.463921428, -2, -0.403737426, 0.766046047, 0, -0.642788887, 0, 1, 0, 0.642788887, 0, 0.766046047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
960 | }, .3, false) | |
961 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-90)), 1) | |
962 | end | |
963 | ||
964 | ||
965 | for i = 0, .5, 0.1 do | |
966 | swait() | |
967 | PlayAnimationFromTable({ | |
968 | CFrame.new(-0.0142326681, 0.0233180001, 0.0206871442, 1.78813934e-07, 0, 1.00000203, 0, 1, 0, -1.00000203, 0, 1.49011612e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
969 | CFrame.new(0, 1.49992609, 0, 0.462487102, 0, -0.886626124, 0, 1, 0, 0.886626124, 0, 0.462487072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
970 | CFrame.new(1.59986377, 0.488647908, -0.460965931, 0.695726395, -0.716896534, 0.0449903496, 0.0475609899, -0.0165210012, -0.998731732, 0.716730595, 0.696983814, 0.0226022154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
971 | CFrame.new(-1.80470943, 0.308719665, 0.00611042976, 0.864646077, 0.492070675, 0.1012609, -0.498273998, 0.865697801, 0.0478584878, -0.0641115457, -0.0918363109, 0.993708193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
972 | CFrame.new(0.450665146, -1.87432182, 0.242756784, 0.938798666, 0.182527304, -0.29213196, -0.024868004, 0.881770015, 0.471023679, 0.343567908, -0.434931636, 0.832343459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
973 | CFrame.new(-0.463921428, -2, -0.403737426, 0.766046047, 0, -0.642788887, 0, 1, 0, 0.642788887, 0, 0.766046047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
974 | }, .3, false) | |
975 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .1) | |
976 | end | |
977 | swordtrail.Enabled = false | |
978 | con:Disconnect() | |
979 | Attack = false | |
980 | end | |
981 | ||
982 | ||
983 | ||
984 | ||
985 | ||
986 | function basicatk2() | |
987 | Attack = true | |
988 | CFuncs.Sound.Create("12222216", SwordHitbox, 1, .8) | |
989 | local con = SwordHitbox.Touched:connect(function(hit) | |
990 | Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end) | |
991 | for i = 0, .5, 0.1 do | |
992 | PlayAnimationFromTable({ | |
993 | CFrame.new(0.199326009, 0, -0.0621959642, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
994 | CFrame.new(0, 1.49999201, 0, 0.866025805, 0, -0.499999762, 0, 1, 0, 0.499999762, 0, 0.866025805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
995 | CFrame.new(0.930871904, 0.250794977, -1.28154397, -0.0386770852, 0.569197655, -0.821290731, -0.998659015, 0.00628901878, 0.0513885207, 0.0344153345, 0.822176874, 0.568191111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
996 | CFrame.new(-1.60257423, 0.0277413726, -0.076416865, 0.0147553682, 0.129409567, 0.991481602, 0.224142969, 0.965926051, -0.12940973, -0.974444628, 0.224143118, -0.0147536397) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
997 | CFrame.new(0.624383092, -1.99999106, -0.0120142996, 0.707107008, 0, -0.707106769, 0, 1, 0, 0.707106769, 0, 0.707107008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
998 | CFrame.new(-0.482958466, -1.99999106, -0.129410326, 0.707106769, 0, 0.707107008, 0, 1, 0, -0.707107008, 0, 0.707106769) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
999 | }, .3, false) | |
1000 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1001 | end | |
1002 | swordtrail.Enabled = true | |
1003 | for i = 0, .5, 0.1 do | |
1004 | swait() | |
1005 | PlayAnimationFromTable({ | |
1006 | CFrame.new(0.366101086, 0, -0.414826214, 0.258818984, 0, 0.965925872, 0, 1, 0, -0.965925872, 0, 0.258818984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1007 | CFrame.new(0, 1.49999201, 0, 0.342023224, 0, -0.939691603, 0, 1, 0, 0.939691603, 0, 0.342023224) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1008 | CFrame.new(0.0553627312, 1.3573252, -1.17095125, 0.785249949, 0.559134185, 0.265991658, 0.545306027, -0.827990174, 0.130666092, 0.293298304, 0.0424413234, -0.955078542) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1009 | CFrame.new(-1.60256672, 0.0277402997, -0.0764263347, 0.0147550702, 0.129409924, 0.991481423, 0.224143073, 0.965925932, -0.129410043, -0.974444628, 0.224143118, -0.0147539973) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1010 | CFrame.new(0.624385655, -1.99999106, -0.0120021999, 0.707108498, 0, -0.70710516, 0, 1, 0, 0.70710516, 0, 0.707108498) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1011 | CFrame.new(-0.48295331, -1.99999106, -0.129420042, 0.70710516, 0, 0.707108498, 0, 1, 0, -0.707108498, 0, 0.70710516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1012 | }, .3, false) | |
1013 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1014 | end | |
1015 | for i = 0, .5, 0.1 do | |
1016 | swait() | |
1017 | PlayAnimationFromTable({ | |
1018 | CFrame.new(0.366099417, -0.200000986, -0.414823025, 0.582563281, 0.271655113, 0.766044199, -0.42261821, 0.906307876, -1.75809453e-06, -0.694272339, -0.323743135, 0.642787993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1019 | CFrame.new(-0.231262937, 1.54721832, -0.0511251986, 0.851651847, -0.42261821, -0.309973061, 0.397132277, 0.906307876, -0.144540951, 0.342016667, -1.75809453e-06, 0.939694047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1020 | CFrame.new(-0.0908454061, 1.16592097, -1.08897507, -0.0772816539, 0.583855987, 0.808170736, 0.727612376, -0.521148086, 0.446077228, 0.681621552, 0.622508645, -0.384545565) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1021 | CFrame.new(-1.61299813, 0.0366990864, 0.314264029, -0.455841899, 0.169077203, 0.87385428, 0.0347501114, 0.984423816, -0.172343403, -0.889382243, -0.048194766, -0.454617083) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1022 | CFrame.new(1.21119905, -1.34869587, -0.183849275, 0.851651549, -0.252021521, -0.459537864, 0.397132158, 0.882479608, 0.252023607, 0.342017442, -0.39713347, 0.851650953) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1023 | CFrame.new(0.0580956787, -1.95897889, 0.369651437, 0.640855312, -0.42261821, 0.640857816, 0.298834234, 0.906307876, 0.298838168, -0.707108855, -1.75809453e-06, 0.707104981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1024 | }, .3, false) | |
1025 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1026 | end | |
1027 | for i = 0, .5, 0.1 do | |
1028 | swait() | |
1029 | PlayAnimationFromTable({ | |
1030 | CFrame.new(0.366085619, -1.19999647, -0.414817601, 0.582568169, -0.412207156, 0.700499654, -0.422613144, 0.582565188, 0.69427377, -0.694271266, -0.700502098, 0.165179759) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1031 | CFrame.new(0.112729274, 1.56678414, 0.254275501, 0.577656388, 0.0997146964, -0.810166836, -0.213354647, 0.976452529, -0.0319427848, 0.787904203, 0.191304803, 0.585328698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1032 | CFrame.new(1.96889925, 0.746382177, -0.185331225, 0.0769328177, -0.997015715, 0.00641870499, 0.879773498, 0.0648541152, -0.470948815, 0.469127119, 0.0418784246, 0.882137418) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1033 | CFrame.new(-1.88176703, 0.136358321, 0.177449048, -0.455846965, 0.778092861, 0.43217504, 0.703643739, 0.612389445, -0.360367835, -0.545058966, 0.139824644, -0.826655984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1034 | CFrame.new(0.90178746, -1.14663219, -0.653959215, 0.851655245, 0.190028608, -0.488439023, -0.00672882795, 0.935840786, 0.352359027, 0.524059415, -0.296801776, 0.798292339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1035 | CFrame.new(-0.830604553, -2.07172632, -0.233860642, 0.784890771, 0.0754829049, -0.615019679, -0.147760659, 0.986719251, -0.0674703121, 0.601758778, 0.143832445, 0.785620093) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1036 | }, .3, false) | |
1037 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1038 | end | |
1039 | swordtrail.Enabled = false | |
1040 | con:Disconnect() | |
1041 | Attack = false | |
1042 | end | |
1043 | ||
1044 | ||
1045 | function dodgeball() | |
1046 | Attack = true | |
1047 | humanoid.AutoRotate = false | |
1048 | local spawnPos = Torso.Position | |
1049 | orb1=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Crimson"), "ref", Vector3.new(2,2,2)) | |
1050 | orb1.Anchored=true | |
1051 | orb1.CanCollide=false | |
1052 | ||
1053 | game:GetService("Debris"):AddItem(orb1, 10) | |
1054 | orb1.Elasticity = 1 | |
1055 | local mbewm2 = Instance.new("SpecialMesh", orb1) | |
1056 | mbewm2.MeshType = "Sphere" | |
1057 | mbewm2.Scale = Vector3.new(1,1,1) | |
1058 | game:GetService("Debris"):AddItem(orb1, 3) | |
1059 | for i = 0, 2, 0.1 do | |
1060 | orb1.CFrame = Dodgebox.CFrame | |
1061 | swait() | |
1062 | PlayAnimationFromTable({ | |
1063 | CFrame.new(-0.0142339477, 0.0233179312, 0.0206872448, 0.642789185, 7.39382813e-08, 0.766043305, -4.8651782e-07, 1, 3.11712938e-07, -0.766043305, -5.73050784e-07, 0.642789245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1064 | CFrame.new(-3.34310243e-06, 1.49992716, -2.40420513e-06, 0.609423697, -6.78923243e-07, -0.792844892, 8.58872227e-08, 1, -7.90281774e-07, 0.792844832, 4.13525413e-07, 0.609423757) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1065 | CFrame.new(1.70033991, 0.0784267411, 0.291652292, 0.980928302, -0.190888226, -0.0366283059, 0.192193046, 0.924432218, 0.329373628, -0.0290131569, -0.330131561, 0.943489075) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1066 | CFrame.new(-1.9394995, 0.331927955, -0.314799666, 0.117194936, 0.856613636, -0.502472639, -0.987918258, 0.0488963015, -0.14706032, -0.101404801, 0.513636589, 0.851994693) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1067 | CFrame.new(0.596234262, -2.04406619, 0.245654553, 0.999976635, 0.00595425069, -0.00338888168, -0.00461965939, 0.95128876, 0.308266908, 0.00505927205, -0.308244109, 0.951293945) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1068 | CFrame.new(-0.699660361, -2.00000048, 0.0218301564, 0.984807849, -4.44691977e-07, 0.173648536, 4.41870725e-07, 1, 5.48861863e-08, -0.173648536, 2.26791599e-08, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1069 | }, .3, false) | |
1070 | RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z)) | |
1071 | end | |
1072 | local con = orb1.Touched:connect(function(hit) | |
1073 | CFuncs.Sound.Create("112503990", Torso, 1, .8)end) | |
1074 | orb1.Anchored=false | |
1075 | orb1.CanCollide=true | |
1076 | ||
1077 | local roketsped = 500 | |
1078 | local spawnPosition = (RootPart.CFrame * CFrame.new(0, 0, -3)).p | |
1079 | orb1.CFrame = CFrame.new(spawnPosition, Mouse.hit.p) | |
1080 | orb1.Velocity = orb1.CFrame.lookVector * roketsped | |
1081 | local GRAVITY_ACCELERATION = 196.2 | |
1082 | local bodyForce = Instance.new('BodyForce', orb1) | |
1083 | bodyForce.Name = 'Antigravity' | |
1084 | bodyForce.force = Vector3.new(0, orb1:GetMass() * GRAVITY_ACCELERATION, 0) | |
1085 | ||
1086 | game:GetService("Debris"):AddItem(orb1, 8) | |
1087 | ||
1088 | for i = 0, 1, 0.1 do | |
1089 | swait() | |
1090 | PlayAnimationFromTable({ | |
1091 | CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1092 | CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1093 | CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1094 | CFrame.new(-1.58664989, 0.765351355, -0.846855521, -0.120212317, 0.321875662, -0.939119458, -0.987918437, -0.131986037, 0.0812216997, -0.0978073403, 0.937537193, 0.333853245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1095 | CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1096 | CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1097 | }, .3, false) | |
1098 | RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z)) | |
1099 | end | |
1100 | humanoid.AutoRotate = true | |
1101 | Attack = false | |
1102 | while orb1 do | |
1103 | swait() | |
1104 | MagnitudeDamage(orb1, 4, 0, 0, 100, "Normal", "112503990", 1) | |
1105 | end | |
1106 | ||
1107 | end | |
1108 | ||
1109 | ||
1110 | function roketlunch() | |
1111 | Attack = true | |
1112 | humanoid.WalkSpeed = 0 | |
1113 | humanoid.JumpPower = 0 | |
1114 | RHandle.Transparency = 0 | |
1115 | Sword.Transparency = 1 | |
1116 | for i = 0, 1, 0.1 do | |
1117 | swait() | |
1118 | PlayAnimationFromTable({ | |
1119 | CFrame.new(-0.0142319212, 0.0233183783, 0.0206877608, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1120 | CFrame.new(0.0154076805, 1.5522356, -0.0916171968, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1121 | CFrame.new(1.28755724, 0.00418370962, -0.0650342703, 0.890014946, 0.230696142, -0.393259257, -0.298804998, 0.946620405, -0.120936036, 0.344367683, 0.225142673, 0.911439359) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1122 | CFrame.new(-1.59552705, 0.053297095, -0.298519343, 0.986049891, 0.15347448, -0.0644321442, -0.162331849, 0.801095366, -0.576103032, -0.036800772, 0.578525543, 0.814833522) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1123 | CFrame.new(0.573113441, -1.8059541, -0.374102622, 0.999206126, -0.0373207629, 0.0139417946, 0.0392762311, 0.98143959, -0.187706873, -0.00667765737, 0.188105404, 0.982126117) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1124 | CFrame.new(-0.433013678, -1.95186841, 0.175973177, 1, 0, 2.98023224e-08, 0, 0.98480773, 0.173648328, 2.98023224e-08, -0.173648328, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1125 | }, .3, false) | |
1126 | end | |
1127 | ||
1128 | ||
1129 | for i = 0, 3, 0.1 do | |
1130 | swait() | |
1131 | PlayAnimationFromTable({ | |
1132 | CFrame.new(-0.0142319426, -1.08839262, 0.0206871927, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1133 | CFrame.new(0.0154080922, 1.55223548, -0.0916156173, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1134 | CFrame.new(0.428888142, 0.573096275, -1.0865351, 0.629741013, 0.73693651, -0.245664269, -0.133446366, -0.208918005, -0.968785584, -0.765257001, 0.64286691, -0.0332227312) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1135 | CFrame.new(-1.24049437, 0.563232303, -0.47247985, 0.974705219, -0.150607079, -0.165128678, -0.176947653, -0.0686892122, -0.981820583, 0.136526525, 0.986204565, -0.0936013013) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1136 | CFrame.new(0.542829335, -1.05595815, -0.494429678, 0.999206185, -0.0391747355, 0.00724902749, 0.0392762125, 0.999124289, -0.0144301355, -0.00667738914, 0.0147034377, 0.999869585) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1137 | CFrame.new(-0.433013409, -1.47995389, 0.259185165, 1, -2.98023224e-08, 0, 0, 0.17364727, 0.984807968, 2.98023224e-08, -0.984807849, 0.173647255) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1138 | }, .3, false) | |
1139 | RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z)) | |
1140 | end | |
1141 | ||
1142 | local roket=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Smoky grey"), "ref", Vector3.new(1,1,2)) | |
1143 | roket.Anchored=false | |
1144 | roket.CanCollide=true | |
1145 | local roketsped = 100 | |
1146 | local spawnPosition = (RootPart.CFrame * CFrame.new(0, 0, -6)).p | |
1147 | roket.CFrame = CFrame.new(spawnPosition, Mouse.hit.p) --NOTE: This must be done before assigning Parent | |
1148 | roket.Velocity = roket.CFrame.lookVector * roketsped | |
1149 | CFuncs.Sound.Create("31761785", roket, 3, 1) | |
1150 | local GRAVITY_ACCELERATION = 196.2 | |
1151 | local bodyForce = Instance.new('BodyForce', roket) | |
1152 | bodyForce.Name = 'Antigravity' | |
1153 | bodyForce.force = Vector3.new(0, roket:GetMass() * GRAVITY_ACCELERATION, 0) | |
1154 | ||
1155 | game:GetService("Debris"):AddItem(roket, 8) | |
1156 | local con = roket.Touched:connect(function(hit) | |
1157 | MagnitudeDamage(roket, 10, 0, 0, 100, "Normal", "112503990", 1) Effects.Sphere.Create(BrickColor.new(roket.Color), roket.CFrame, 3, 3, 3, 3, 3, 3, 0.03) roket.Transparency = 1 CFuncs.Sound.Create("169628396", Character, .1, 1) local boo = Instance.new("Explosion", roket) boo.Position = roket.Position boo.BlastRadius = 30 | |
1158 | boo.BlastPressure = 500 roket:Destroy() end) | |
1159 | for i = 0, 2, 0.1 do | |
1160 | swait() | |
1161 | PlayAnimationFromTable({ | |
1162 | CFrame.new(-0.0142334783, -1.08840001, 0.0206862688, 1.00000119, 7.67409801e-07, -2.98023224e-08, 6.21078584e-07, 0.984811127, -0.173649758, 2.38418579e-07, 0.173647732, 0.984807074) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1163 | CFrame.new(-0.0153429285, 1.61389816, 0.0791989863, 0.999084234, -0.0110745579, -0.0413306355, 0.00743017718, 0.996153533, -0.0873102993, 0.0421385169, 0.0869232267, 0.995323479) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1164 | CFrame.new(0.489735812, 0.316905022, -1.24634087, 0.629742265, 0.683080673, -0.369899511, -0.387131512, -0.136858344, -0.911810875, -0.67346406, 0.717405558, 0.178256541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1165 | CFrame.new(-1.24049377, 0.367668957, -0.636619806, 0.974705458, -0.198001236, -0.103657492, -0.119579755, -0.0701957047, -0.990339994, 0.188812226, 0.977685094, -0.092097044) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1166 | CFrame.new(0.542830348, -1.16139019, -0.103446305, 0.999207258, -0.0391742066, 0.00724938512, 0.0346246623, 0.943902194, 0.328414857, -0.0197079182, -0.327904552, 0.944504917) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1167 | CFrame.new(-0.433018923, -1.30207276, 0.749731183, 1.00000107, -2.38418579e-07, 6.00692658e-07, 7.78585672e-07, -0.173647717, 0.984811127, 5.96046448e-08, -0.984807074, -0.173649803) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1168 | }, .3, false) | |
1169 | Torso.Velocity=RootPart.CFrame.lookVector*-20 | |
1170 | RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z)) | |
1171 | end | |
1172 | RHandle.Transparency = 1 | |
1173 | Sword.Transparency = 0 | |
1174 | ||
1175 | humanoid.WalkSpeed = 13 | |
1176 | humanoid.JumpPower = 60 | |
1177 | Attack = false | |
1178 | end | |
1179 | ||
1180 | ||
1181 | ||
1182 | function fireinDhole() | |
1183 | Attack = true | |
1184 | local bomb1=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Crimson"), "ref", Vector3.new(1,1,1)) | |
1185 | bomb1.Anchored=true | |
1186 | bomb1.CanCollide=true | |
1187 | game:GetService("Debris"):AddItem(orb1, 10) | |
1188 | bomb1.Elasticity = .3 | |
1189 | local mbewm2 = Instance.new("SpecialMesh", bomb1) | |
1190 | mbewm2.MeshId = "rbxasset://fonts/timebomb.mesh" | |
1191 | mbewm2.TextureId = "rbxasset://textures/bombtex.png" | |
1192 | mbewm2.Scale = Vector3.new(1,1,1) | |
1193 | ||
1194 | CFuncs.Sound.Create("11565378", bomb1, 1, 1) | |
1195 | for i = 0, 2, 0.1 do | |
1196 | swait() | |
1197 | PlayAnimationFromTable({ | |
1198 | CFrame.new(-0.0142339477, 0.0233179312, 0.0206872448, 0.642789185, 7.39382813e-08, 0.766043305, -4.8651782e-07, 1, 3.11712938e-07, -0.766043305, -5.73050784e-07, 0.642789245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1199 | CFrame.new(-3.34310243e-06, 1.49992716, -2.40420513e-06, 0.609423697, -6.78923243e-07, -0.792844892, 8.58872227e-08, 1, -7.90281774e-07, 0.792844832, 4.13525413e-07, 0.609423757) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1200 | CFrame.new(1.70033991, 0.0784267411, 0.291652292, 0.980928302, -0.190888226, -0.0366283059, 0.192193046, 0.924432218, 0.329373628, -0.0290131569, -0.330131561, 0.943489075) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1201 | CFrame.new(-1.66880238, 0.166423663, -0.183722675, 0.845035851, 0.182852611, -0.502473533, -0.291941375, 0.945062757, -0.147059917, 0.447978795, 0.270963728, 0.851994097) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1202 | CFrame.new(0.596234262, -2.04406619, 0.245654553, 0.999976635, 0.00595425069, -0.00338888168, -0.00461965939, 0.95128876, 0.308266908, 0.00505927205, -0.308244109, 0.951293945) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1203 | CFrame.new(-0.699660361, -2.00000048, 0.0218301564, 0.984807849, -4.44691977e-07, 0.173648536, 4.41870725e-07, 1, 5.48861863e-08, -0.173648536, 2.26791599e-08, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1204 | }, .3, false) | |
1205 | bomb1.CFrame = Dodgebox.CFrame | |
1206 | end | |
1207 | for i = 0, .5, 0.1 do | |
1208 | swait() | |
1209 | PlayAnimationFromTable({ | |
1210 | CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1211 | CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1212 | CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1213 | CFrame.new(-1.53036773, 0.2318203, -0.558730543, 0.939119756, 0.343578428, -0.00287370384, -0.0812207609, 0.213862434, -0.973481536, -0.333852679, 0.914449036, 0.228748128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1214 | CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1215 | CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1216 | }, .3, false) | |
1217 | bomb1.CFrame = Dodgebox.CFrame | |
1218 | end | |
1219 | bomb1.CFrame = RootPart.CFrame * CFrame.new(0,0,-3) | |
1220 | bomb1.Anchored=false | |
1221 | bomb1.Velocity=RootPart.CFrame.lookVector*50 | |
1222 | for i = 0, .5, 0.1 do | |
1223 | swait() | |
1224 | PlayAnimationFromTable({ | |
1225 | CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1226 | CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1227 | CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1228 | CFrame.new(-1.53036773, 0.2318203, -0.558730543, 0.939119756, 0.343578428, -0.00287370384, -0.0812207609, 0.213862434, -0.973481536, -0.333852679, 0.914449036, 0.228748128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1229 | CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1230 | CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1231 | }, .3, false) | |
1232 | end | |
1233 | Attack = false | |
1234 | wait(4) | |
1235 | MagnitudeDamage(bomb1, 30, 0, 0, 400, "Normal", "112503990", 1) | |
1236 | Effects.Sphere.Create(BrickColor.new(Torso.Color), bomb1.CFrame, 3, 3, 3, 3, 3, 3, 0.03) | |
1237 | CFuncs.Sound.Create("169628396", bomb1, 3, 1) | |
1238 | bomb1.Transparency = 1 | |
1239 | bomb1.Anchored=true | |
1240 | bomb1.CanCollide=false | |
1241 | local boo = Instance.new("Explosion", bomb1) | |
1242 | boo.Position = bomb1.Position | |
1243 | boo.BlastRadius = 30 | |
1244 | boo.BlastPressure = 500 | |
1245 | end | |
1246 | ||
1247 | ||
1248 | ||
1249 | ||
1250 | Mouse.KeyDown:connect(function(Key) | |
1251 | Key = Key:lower() | |
1252 | if Attack == false and Key == 'z' then | |
1253 | dodgeball() | |
1254 | elseif Attack == false and Key == 'x' then | |
1255 | roketlunch() | |
1256 | elseif Attack == false and Key == 'c' then | |
1257 | fireinDhole() | |
1258 | end | |
1259 | end) | |
1260 | ||
1261 | ||
1262 | ||
1263 | Mouse.Button1Up:connect(function() | |
1264 | if Attack == false and Combo== 1 then | |
1265 | basicatk1() | |
1266 | Combo=2 | |
1267 | elseif Attack == false and Combo== 2 then | |
1268 | basicatk2() | |
1269 | Combo=3 | |
1270 | elseif Attack == false and Combo== 3 then | |
1271 | basicatk3() | |
1272 | Combo=1 | |
1273 | end | |
1274 | end) | |
1275 | ||
1276 | ||
1277 | ||
1278 | ||
1279 | ||
1280 | --{{Linked Sword remake by SezHu. Made for WolfyKi11er.}}-- | |
1281 | while true do | |
1282 | swait() | |
1283 | for i, v in pairs(Character:GetChildren()) do | |
1284 | if v:IsA("Part") then | |
1285 | v.Material = "SmoothPlastic" | |
1286 | elseif v:IsA("Accessory") then | |
1287 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1288 | end | |
1289 | end | |
1290 | for i, v in pairs(Character:GetChildren()) do | |
1291 | if v:IsA'Model' then | |
1292 | for _, c in pairs(v:GetChildren()) do | |
1293 | if c:IsA'Part' then | |
1294 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1295 | end | |
1296 | end | |
1297 | end | |
1298 | end | |
1299 | TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1300 | Velocity = RootPart.Velocity.y | |
1301 | Sine = Sine + Change | |
1302 | local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1303 | if RootPart.Velocity.y > 1 and hit == nil then | |
1304 | Anim = "Jump" | |
1305 | if Attack == false then | |
1306 | Change = 1 | |
1307 | PlayAnimationFromTable({ | |
1308 | CFrame.new(-0.0142319221, 0.0233184248, 0.0206878185, 1.00000012, 1.49011612e-08, 0, 2.72463048e-08, 0.965925992, 0.258818656, 2.98023224e-08, -0.258818597, 0.965925932) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1309 | CFrame.new(0.0172861218, 1.54588914, -0.00366462767, 0.999084175, 0.00742999092, -0.0421376228, -0.011074245, 0.996153653, -0.0869220346, 0.0413297117, 0.0873090774, 0.995323658) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1310 | CFrame.new(1.54051697, 0.254249156, -0.521965742, 0.890014946, -0.152965426, -0.429505706, -0.32768172, 0.440404594, -0.835864007, 0.317014515, 0.884672523, 0.341842651) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1311 | CFrame.new(-1.55745959, 0.112057857, 0.343250573, 0.986049891, 0.113037676, 0.12218184, -0.158506706, 0.861737013, 0.481959641, -0.050808996, -0.49460274, 0.867632747) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1312 | CFrame.new(0.566533923, -1.59700418, -0.481964171, 0.999206185, -0.0385679156, -0.00998616219, 0.0397087261, 0.94381088, 0.328091979, -0.00322881341, -0.328228056, 0.944592893) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1313 | CFrame.new(-0.433014154, -1.95977831, 0.0051856637, 1, 0, 0, 0, 0.965925813, 0.258819401, -2.98023224e-08, -0.258819431, 0.965925753) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1314 | }, .3, false) | |
1315 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1316 | end | |
1317 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1318 | Anim = "Fall" | |
1319 | if Attack == false then | |
1320 | Change = 1 | |
1321 | PlayAnimationFromTable({ | |
1322 | CFrame.new(-0.0142319212, 0.0233183783, 0.0206877608, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1323 | CFrame.new(0.0154076805, 1.5522356, -0.0916171968, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1324 | CFrame.new(1.44003379, 0.0510732532, -0.418421805, 0.890014946, -0.0760585517, -0.449542671, -0.298804998, 0.647417247, -0.701118112, 0.344367683, 0.75833106, 0.553484201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1325 | CFrame.new(-1.55745959, 0.141547889, 0.332177758, 0.986049891, 0.113037676, 0.12218184, -0.162331849, 0.815350056, 0.555745184, -0.036800772, -0.567826271, 0.822325349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1326 | CFrame.new(0.573113441, -1.8059541, -0.374102622, 0.999206126, -0.0373207629, 0.0139417946, 0.0392762311, 0.98143959, -0.187706873, -0.00667765737, 0.188105404, 0.982126117) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1327 | CFrame.new(-0.433013678, -1.95186841, 0.175973177, 1, 0, 2.98023224e-08, 0, 0.98480773, 0.173648328, 2.98023224e-08, -0.173648328, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1328 | }, .3, false) | |
1329 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1330 | end | |
1331 | elseif TorsoVelocity < 1 and hit ~= nil then | |
1332 | Anim = "Idle" | |
1333 | if Attack == false then | |
1334 | Change = 1 | |
1335 | PlayAnimationFromTable({ | |
1336 | CFrame.new(-0.014233104, 0.0233179983, 0.020687025, 0.866024911, 0, -0.500000954, 0, 1, 0, 0.500000954, 0, 0.866024852) * CFrame.new(0, 0 + .05 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0), | |
1337 | CFrame.new(0, 1.49992597, 0, 0.886625588, 0, 0.462487936, 0, 1, 0, -0.462487817, 0, 0.886625707) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .08 * math.cos(Sine/25), 0, 0), | |
1338 | CFrame.new(1.70001733, 0.169989109, 0.310000241, 0.827918112, -0.251382649, -0.501356483, 0.215029001, 0.967887759, -0.130214334, 0.51799041, 6.03497028e-07, 0.855386436) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0 + 2 * math.cos(Sine/25)), math.rad(0), math.rad(0)), | |
1339 | CFrame.new(-1.61998975, 0.0599977374, 2.55400209e-06, 0.981399894, 0.191975057, 4.17232513e-07, -0.191975072, 0.981399834, 9.87734779e-07, -2.38418579e-07, -1.05053186e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0 - 2 * math.cos(Sine/25))), | |
1340 | CFrame.new(0.649993002, -1.99999797, 9.67067535e-07, 0.98969245, -0.143209025, 1.16229057e-06, 0.14320904, 0.98969245, -1.03930267e-06, -1.01327896e-06, 1.19954348e-06, 1) * CFrame.new(0, 0 - .08 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0 + .01 * math.cos(Sine/25)), | |
1341 | CFrame.new(-0.500000954, -2, -9.53674316e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .08 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0), | |
1342 | }, .3, false) | |
1343 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1344 | end | |
1345 | elseif TorsoVelocity > 2 and hit ~= nil then | |
1346 | Anim = "Walk" | |
1347 | if Attack == false then | |
1348 | PlayAnimationFromTable({ | |
1349 | CFrame.new(-0.0142326364, 0.023318341, 0.0206875801, 1.00000012, 1.5803721e-08, 5.96046448e-08, 2.72463048e-08, 1, 5.61747235e-08, 2.98023224e-08, 2.44280045e-08, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(-.2, math.rad(0 - 10 * math.cos(Sine/6)/2), 0), | |
1350 | CFrame.new(1.03447394e-06, 1.49992573, -8.27737608e-07, 0.999084234, 2.72463048e-08, -0.0427876711, 2.93197502e-08, 1, 2.55612349e-08, 0.0427877009, 5.61747235e-08, 0.999084353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1351 | CFrame.new(1.66816366, 0.125450149, 0.167713135, 0.975411952, -0.217704624, -0.0342991352, 0.22028406, 0.9678877, 0.12111339, 0.0068307519, -0.125690982, 0.992045999) * CFrame.new(0, 0, 0 + .2 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 - 30 * math.cos(Sine/6)/2), 0, 0), | |
1352 | CFrame.new(-1.58983934, 0.0268005617, -0.146883398, 0.986049891, 0.166255936, -0.00805497169, -0.16625604, 0.981399775, -0.0959867239, -0.00805321336, 0.0959868878, 0.995350063) * CFrame.new(0, 0, 0 - .3 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 + 30 * math.cos(Sine/6)/2), 0, 0), | |
1353 | CFrame.new(.5, -1.64 - 0.8 * math.cos(Sine / 6) / 2, 0 + 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(-50 * math.sin(Sine / 6)), math.rad(-3), math.rad(0)), | |
1354 | CFrame.new(-.5, -1.64 + 0.8 * math.cos(Sine / 6) / 2, 0 - 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(50 * math.sin(Sine / 6)), math.rad(3), math.rad(0)),}, .3, false) | |
1355 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1356 | end | |
1357 | end | |
1358 | ||
1359 | if #Effects > 0 then | |
1360 | for e = 1, #Effects do | |
1361 | if Effects[e] ~= nil then | |
1362 | local Thing = Effects[e] | |
1363 | if Thing ~= nil then | |
1364 | local Part = Thing[1] | |
1365 | local Mode = Thing[2] | |
1366 | local Delay = Thing[3] | |
1367 | local IncX = Thing[4] | |
1368 | local IncY = Thing[5] | |
1369 | if Thing[1].Transparency <= 1 then | |
1370 | if Thing[2] == "Block1" then | |
1371 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1372 | Mesh = Thing[7] | |
1373 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1374 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1375 | elseif Thing[2] == "Ice" then | |
1376 | if Thing[6] <= Thing[5] then | |
1377 | Thing[6] = Thing[6] + .05 | |
1378 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0) | |
1379 | else | |
1380 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1381 | end | |
1382 | elseif Thing[2] == "Shatter" then | |
1383 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1384 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1385 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1386 | Thing[6] = Thing[6] + Thing[5] | |
1387 | elseif Thing[2] == "Block2" then | |
1388 | Thing[1].CFrame = Thing[1].CFrame | |
1389 | Mesh = Thing[7] | |
1390 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1391 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1392 | elseif Thing[2] == "Block3" then | |
1393 | Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1394 | Mesh = Thing[7] | |
1395 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1396 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1397 | elseif Thing[2] == "Block4" then | |
1398 | Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0) | |
1399 | Mesh = Thing[7] | |
1400 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1401 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1402 | elseif Thing[2] == "Block2Fire" then | |
1403 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1404 | Mesh = Thing[7] | |
1405 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1406 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1407 | if Thing[1].Transparency >= .3 then | |
1408 | Thing[1].BrickColor = BrickColor.new("Bright red") | |
1409 | else | |
1410 | Thing[1].BrickColor = BrickColor.new("Bright yellow") | |
1411 | end | |
1412 | elseif Thing[2] == "Cylinder" then | |
1413 | Mesh = Thing[7] | |
1414 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1415 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1416 | elseif Thing[2] == "Blood" then | |
1417 | Mesh = Thing[7] | |
1418 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0) | |
1419 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1420 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1421 | elseif Thing[2] == "Elec" then | |
1422 | Mesh = Thing[10] | |
1423 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1424 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1425 | Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2) | |
1426 | Thing[1].Rotation = Vector3.new(0, 0, 0) | |
1427 | elseif Thing[2] == "Disappear" then | |
1428 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1429 | end | |
1430 | else | |
1431 | Part.Parent = nil | |
1432 | table.remove(Effects, e) | |
1433 | end | |
1434 | end | |
1435 | end | |
1436 | end | |
1437 | end | |
1438 | Humanoid.Health = math.huge | |
1439 | end |