SHOW:
|
|
- or go back to the newest paste.
1 | print("Made by SezHu for Void's Script Builder. If logged, please do not remove credit.") | |
2 | wait(1 / 60) | |
3 | Effects = { } | |
4 | local Player = game.Players.localPlayer | |
5 | local Character = Player.Character | |
6 | local Humanoid = Character.Humanoid | |
7 | Humanoid.WalkSpeed = 100 | |
8 | local Mouse = Player:GetMouse() | |
9 | local LeftArm = Character["Left Arm"] | |
10 | local RightArm = Character["Right Arm"] | |
11 | local LeftLeg = Character["Left Leg"] | |
12 | local RightLeg = Character["Right Leg"] | |
13 | local Head = Character.Head | |
14 | local Torso = Character.Torso | |
15 | local Camera = game.Workspace.CurrentCamera | |
16 | local RootPart = Character.HumanoidRootPart | |
17 | local RootJoint = RootPart.RootJoint | |
18 | local attack = false | |
19 | local Anim = 'Idle' | |
20 | local attacktype = 1 | |
21 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
22 | local velocity = RootPart.Velocity.y | |
23 | local sine = 0 | |
24 | local change = 1 | |
25 | local Create = LoadLibrary("RbxUtility").Create | |
26 | - | Head.face.Texture = "http://www.roblox.com/asset/?id=948473243" |
26 | + | Head.face.Texture = "http://www.roblox.com/asset/?id=1364160836" |
27 | Humanoid.Health = math.huge | |
28 | Instance.new("ForceField",Character).Visible = false | |
29 | hit = nil | |
30 | oof = false | |
31 | for y,t in pairs(Character:GetChildren()) do | |
32 | if t:IsA("Accessory") and t:FindFirstChild("Handle") then | |
33 | t.Handle.Transparency = 1 | |
34 | end | |
35 | end | |
36 | Character.Shirt:Remove() | |
37 | Character.Pants:Remove() | |
38 | pants = Instance.new("Pants", Character) | |
39 | - | pants.PantsTemplate = "http://www.roblox.com/asset/?id=242242068" |
39 | + | pants.PantsTemplate = "http://www.roblox.com/asset/?id=1518135458" |
40 | ||
41 | ||
42 | DHandle = Instance.new("Part") | |
43 | DMesh = Instance.new("SpecialMesh") | |
44 | DWeld = Instance.new("Weld") | |
45 | DHandle.Parent = Character | |
46 | DHandle.Name = "Handle" | |
47 | DHandle.CanCollide = false | |
48 | DHandle.Locked = true | |
49 | DHandle.Size = Vector3.new(1.93, 1.77, 1.6) | |
50 | DMesh.Parent = DHandle | |
51 | DMesh.Scale = DMesh.Scale | |
52 | DWeld.Parent = DHandle | |
53 | DWeld.Name = "no" | |
54 | DWeld.Part0 = Head | |
55 | DWeld.Part1 = DHandle | |
56 | - | DMesh.MeshId = "http://www.roblox.com/asset/?id=12259089" |
56 | + | |
57 | - | DMesh.TextureId = "http://www.roblox.com/asset/?id=12259192" |
57 | + | |
58 | DMesh.MeshId = "http://www.roblox.com/asset/?id=0" | |
59 | DMesh.TextureId = "http://www.roblox.com/asset/?id=0" | |
60 | local m = Create("Model"){ | |
61 | Parent = Character, | |
62 | Name = "WeaponModel", | |
63 | } | |
64 | ||
65 | Humanoid.Animator.Parent = nil | |
66 | Character.Animate.Parent = nil | |
67 | ||
68 | local newMotor = function(part0, part1, c0, c1) | |
69 | local w = Create('Motor'){ | |
70 | Parent = part0, | |
71 | Part0 = part0, | |
72 | Part1 = part1, | |
73 | C0 = c0, | |
74 | C1 = c1, | |
75 | } | |
76 | return w | |
77 | end | |
78 | ||
79 | function clerp(a, b, t) | |
80 | return a:lerp(b, t) | |
81 | end | |
82 | ||
83 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
84 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
85 | ||
86 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
87 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
88 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
89 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
90 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
91 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
92 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
93 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
94 | ||
95 | local rarmc1 = RW.C1 | |
96 | local larmc1 = LW.C1 | |
97 | local rlegc1 = RH.C1 | |
98 | local llegc1 = LH.C1 | |
99 | ||
100 | local resetc1 = false | |
101 | ||
102 | function PlayAnimationFromTable(table, speed, bool) | |
103 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
104 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
105 | RW.C0 = clerp(RW.C0, table[3], speed) | |
106 | LW.C0 = clerp(LW.C0, table[4], speed) | |
107 | RH.C0 = clerp(RH.C0, table[5], speed) | |
108 | LH.C0 = clerp(LH.C0, table[6], speed) | |
109 | if bool == true then | |
110 | if resetc1 == false then | |
111 | resetc1 = true | |
112 | RootJoint.C1 = RootJoint.C1 | |
113 | Torso.Neck.C1 = Torso.Neck.C1 | |
114 | RW.C1 = rarmc1 | |
115 | LW.C1 = larmc1 | |
116 | RH.C1 = rlegc1 | |
117 | LH.C1 = llegc1 | |
118 | end | |
119 | end | |
120 | end | |
121 | ||
122 | ArtificialHB = Create("BindableEvent", script){ | |
123 | Parent = script, | |
124 | Name = "Heartbeat", | |
125 | } | |
126 | ||
127 | script:WaitForChild("Heartbeat") | |
128 | ||
129 | frame = 1 / 500 | |
130 | tf = 0 | |
131 | allowframeloss = false | |
132 | tossremainder = false | |
133 | lastframe = tick() | |
134 | script.Heartbeat:Fire() | |
135 | ||
136 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
137 | tf = tf + s | |
138 | if tf >= frame then | |
139 | if allowframeloss then | |
140 | script.Heartbeat:Fire() | |
141 | lastframe = tick() | |
142 | else | |
143 | for i = 1, math.floor(tf / frame) do | |
144 | script.Heartbeat:Fire() | |
145 | end | |
146 | lastframe = tick() | |
147 | end | |
148 | if tossremainder then | |
149 | tf = 0 | |
150 | else | |
151 | tf = tf - frame * math.floor(tf / frame) | |
152 | end | |
153 | end | |
154 | end) | |
155 | ||
156 | function swait(num) | |
157 | if num == 0 or num == nil then | |
158 | ArtificialHB.Event:wait() | |
159 | else | |
160 | for i = 0, num do | |
161 | ArtificialHB.Event:wait() | |
162 | end | |
163 | end | |
164 | end | |
165 | ||
166 | function RemoveOutlines(part) | |
167 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
168 | end | |
169 | ||
170 | CFuncs = { | |
171 | Part = { | |
172 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
173 | local Part = Create("Part"){ | |
174 | Parent = Parent, | |
175 | Reflectance = Reflectance, | |
176 | Transparency = Transparency, | |
177 | CanCollide = false, | |
178 | Locked = true, | |
179 | BrickColor = BrickColor.new(tostring(BColor)), | |
180 | Name = Name, | |
181 | Size = Size, | |
182 | Material = Material, | |
183 | } | |
184 | RemoveOutlines(Part) | |
185 | if Size == Vector3.new() then | |
186 | Part.Size = Vector3.new(0.2, 0.2, 0.2) | |
187 | else | |
188 | Part.Size = Size | |
189 | end | |
190 | return Part | |
191 | end; | |
192 | }; | |
193 | ||
194 | Mesh = { | |
195 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
196 | local Msh = Create(Mesh){ | |
197 | Parent = Part, | |
198 | Offset = OffSet, | |
199 | Scale = Scale, | |
200 | } | |
201 | if Mesh == "SpecialMesh" then | |
202 | Msh.MeshType = MeshType | |
203 | Msh.MeshId = MeshId | |
204 | end | |
205 | return Msh | |
206 | end; | |
207 | }; | |
208 | ||
209 | Weld = { | |
210 | Create = function(Parent, Part0, Part1, C0, C1) | |
211 | local Weld = Create("Weld"){ | |
212 | Parent = Parent, | |
213 | Part0 = Part0, | |
214 | Part1 = Part1, | |
215 | C0 = C0, | |
216 | C1 = C1, | |
217 | } | |
218 | return Weld | |
219 | end; | |
220 | }; | |
221 | ||
222 | Sound = { | |
223 | Create = function(id, par, vol, pit) | |
224 | local Sound = Create("Sound"){ | |
225 | Volume = vol, | |
226 | Pitch = pit or 1, | |
227 | SoundId = "rbxassetid://" .. id, | |
228 | Parent = par or workspace, | |
229 | } | |
230 | Sound:play() | |
231 | return Sound | |
232 | end; | |
233 | }; | |
234 | ||
235 | Decal = { | |
236 | Create = function(Color, Texture, Transparency, Name, Parent) | |
237 | local Decal = Create("Decal"){ | |
238 | Color3 = Color, | |
239 | Texture = "rbxassetid://" .. Texture, | |
240 | Transparency = Transparency, | |
241 | Name = Name, | |
242 | Parent = Parent, | |
243 | } | |
244 | return Decal | |
245 | end; | |
246 | }; | |
247 | ||
248 | BillboardGui = { | |
249 | Create = function(Parent, Image, Position, Size) | |
250 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1)) | |
251 | BillPar.CFrame = CFrame.new(Position) | |
252 | local Bill = Create("BillboardGui"){ | |
253 | Parent = BillPar, | |
254 | Adornee = BillPar, | |
255 | Size = UDim2.new(1, 0, 1, 0), | |
256 | SizeOffset = Vector2.new(Size, Size), | |
257 | } | |
258 | local d = Create("ImageLabel", Bill){ | |
259 | Parent = Bill, | |
260 | BackgroundTransparency = 1, | |
261 | Size = UDim2.new(1, 0, 1, 0), | |
262 | Image = "rbxassetid://" .. Image, | |
263 | } | |
264 | return BillPar | |
265 | end | |
266 | }; | |
267 | ||
268 | ParticleEmitter = { | |
269 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
270 | local Particle = Create("ParticleEmitter"){ | |
271 | Parent = Parent, | |
272 | Color = ColorSequence.new(Color1, Color2), | |
273 | LightEmission = LightEmission, | |
274 | Size = Size, | |
275 | Texture = Texture, | |
276 | Transparency = Transparency, | |
277 | ZOffset = ZOffset, | |
278 | Acceleration = Accel, | |
279 | Drag = Drag, | |
280 | LockedToPart = LockedToPart, | |
281 | VelocityInheritance = VelocityInheritance, | |
282 | EmissionDirection = EmissionDirection, | |
283 | Enabled = Enabled, | |
284 | Lifetime = LifeTime, | |
285 | Rate = Rate, | |
286 | Rotation = Rotation, | |
287 | RotSpeed = RotSpeed, | |
288 | Speed = Speed, | |
289 | VelocitySpread = VelocitySpread, | |
290 | } | |
291 | return Particle | |
292 | end; | |
293 | }; | |
294 | ||
295 | CreateTemplate = { | |
296 | ||
297 | }; | |
298 | } | |
299 | ||
300 | function rayCast(Position, Direction, Range, Ignore) | |
301 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
302 | end | |
303 | ||
304 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
305 | if SinglePlayer then | |
306 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
307 | end | |
308 | local List = {} | |
309 | for i, v in pairs(workspace:GetChildren()) do | |
310 | if v:IsA("Model") then | |
311 | if v:findFirstChild("Torso") then | |
312 | if v ~= Character then | |
313 | if (v.Torso.Position - Position).magnitude <= Distance then | |
314 | table.insert(List, v) | |
315 | end | |
316 | end | |
317 | end | |
318 | end | |
319 | end | |
320 | return List | |
321 | end | |
322 | ||
323 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
324 | if hit.Parent == nil then | |
325 | return | |
326 | end | |
327 | local h = hit.Parent:FindFirstChild("Part") | |
328 | for _, v in pairs(hit.Parent:children()) do | |
329 | if v:IsA("Part") then | |
330 | h = v | |
331 | end | |
332 | end | |
333 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= "Base" and hit ~= nil then | |
334 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
335 | if hit.Parent.DebounceHit.Value == true then | |
336 | return | |
337 | end | |
338 | end | |
339 | local c = Create("ObjectValue"){ | |
340 | Name = "creator", | |
341 | Value = game:service("Players").LocalPlayer, | |
342 | Parent = h, | |
343 | } | |
344 | game:GetService("Debris"):AddItem(c, .5) | |
345 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
346 | local Damage = math.random(minim, maxim) | |
347 | local blocked = false | |
348 | local block = hit.Parent:findFirstChild("Block") | |
349 | if block ~= nil then | |
350 | if block.className == "IntValue" then | |
351 | if block.Value > 0 then | |
352 | blocked = true | |
353 | block.Value = block.Value - 1 | |
354 | print(block.Value) | |
355 | end | |
356 | end | |
357 | end | |
358 | if Type == "Knockdown" then | |
359 | local hum = hit.Parent.Humanoid | |
360 | hum.PlatformStand = true | |
361 | coroutine.resume(coroutine.create(function(HHumanoid) | |
362 | swait(1) | |
363 | HHumanoid.PlatformStand = false | |
364 | end), hum) | |
365 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
366 | local bodvol = Create("BodyVelocity"){ | |
367 | velocity = angle * knockback, | |
368 | P = 5000, | |
369 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
370 | Parent = hit, | |
371 | } | |
372 | local rl = Create("BodyAngularVelocity"){ | |
373 | P = 3000, | |
374 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
375 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
376 | Parent = hit, | |
377 | } | |
378 | game:GetService("Debris"):AddItem(bodvol, .5) | |
379 | game:GetService("Debris"):AddItem(rl, .5) | |
380 | elseif Type == "Normal" then | |
381 | local vp = Create("BodyVelocity"){ | |
382 | P = 500, | |
383 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
384 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
385 | } | |
386 | if knockback > 0 then | |
387 | vp.Parent = hit | |
388 | hit.Parent = workspace | |
389 | hit.Anchored = false | |
390 | hit.CanCollide = false | |
391 | hit:BreakJoints() | |
392 | end | |
393 | game:GetService("Debris"):AddItem(vp, .5) | |
394 | elseif Type == "Up" then | |
395 | local bodyVelocity = Create("BodyVelocity"){ | |
396 | velocity = Vector3.new(0, 20, 0), | |
397 | P = 5000, | |
398 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
399 | Parent = hit, | |
400 | } | |
401 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
402 | elseif Type == "DarkUp" then | |
403 | coroutine.resume(coroutine.create(function() | |
404 | for i = 0, 1, 0.1 do | |
405 | swait() | |
406 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
407 | end | |
408 | end)) | |
409 | local bodyVelocity = Create("BodyVelocity"){ | |
410 | velocity = Vector3.new(0, 20, 0), | |
411 | P = 5000, | |
412 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
413 | Parent = hit, | |
414 | } | |
415 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
416 | elseif Type == "Snare" then | |
417 | local bp = Create("BodyPosition"){ | |
418 | P = 2000, | |
419 | D = 100, | |
420 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
421 | position = hit.Parent.Torso.Position, | |
422 | Parent = hit.Parent.Torso, | |
423 | } | |
424 | game:GetService("Debris"):AddItem(bp, 1) | |
425 | elseif Type == "Freeze" then | |
426 | local BodPos = Create("BodyPosition"){ | |
427 | P = 50000, | |
428 | D = 1000, | |
429 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
430 | position = hit.Parent.Torso.Position, | |
431 | Parent = hit.Parent.Torso, | |
432 | } | |
433 | local BodGy = Create("BodyGyro") { | |
434 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
435 | P = 20e+003, | |
436 | Parent = hit.Parent.Torso, | |
437 | cframe = hit.Parent.Torso.CFrame, | |
438 | } | |
439 | hit.Parent.Torso.Anchored = true | |
440 | coroutine.resume(coroutine.create(function(Part) | |
441 | swait(1.5) | |
442 | Part.Anchored = false | |
443 | end), hit.Parent.Torso) | |
444 | game:GetService("Debris"):AddItem(BodPos, 3) | |
445 | game:GetService("Debris"):AddItem(BodGy, 3) | |
446 | end | |
447 | local debounce = Create("BoolValue"){ | |
448 | Name = "DebounceHit", | |
449 | Parent = hit.Parent, | |
450 | Value = true, | |
451 | } | |
452 | game:GetService("Debris"):AddItem(debounce, Delay) | |
453 | c = Create("ObjectValue"){ | |
454 | Name = "creator", | |
455 | Value = Player, | |
456 | Parent = h, | |
457 | } | |
458 | game:GetService("Debris"):AddItem(c, .5) | |
459 | end | |
460 | end | |
461 | ||
462 | function ShowDamage(Pos, Text, Time, Color) | |
463 | local Rate = (1 / 30) | |
464 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
465 | local Text = (Text or "") | |
466 | local Time = (Time or 2) | |
467 | local Color = (Color or Color3.new(1, 0, 1)) | |
468 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
469 | EffectPart.Anchored = true | |
470 | local BillboardGui = Create("BillboardGui"){ | |
471 | Size = UDim2.new(3, 0, 3, 0), | |
472 | Adornee = EffectPart, | |
473 | Parent = EffectPart, | |
474 | } | |
475 | local TextLabel = Create("TextLabel"){ | |
476 | BackgroundTransparency = 1, | |
477 | Size = UDim2.new(1, 0, 1, 0), | |
478 | Text = Text, | |
479 | Font = "Garamond", | |
480 | TextColor3 = Torso.Color, | |
481 | TextScaled = true, | |
482 | Parent = BillboardGui, | |
483 | } | |
484 | game.Debris:AddItem(EffectPart, (Time)) | |
485 | EffectPart.Parent = game:GetService("Workspace") | |
486 | delay(0, function() | |
487 | local Frames = (Time / Rate) | |
488 | for Frame = 1, Frames do | |
489 | wait(Rate) | |
490 | local Percent = (Frame / Frames) | |
491 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
492 | TextLabel.TextTransparency = Percent | |
493 | end | |
494 | if EffectPart and EffectPart.Parent then | |
495 | EffectPart:Destroy() | |
496 | end | |
497 | end) | |
498 | end | |
499 | ||
500 | ||
501 | ||
502 | ||
503 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
504 | for _, c in pairs(workspace:children()) do | |
505 | local hum = c:findFirstChild("Humanoid") | |
506 | if hum ~= nil then | |
507 | local head = hit | |
508 | if head ~= nil then | |
509 | local targ = head.Position - Part.Position | |
510 | local mag = targ.magnitude | |
511 | if mag <= Magnitude and c.Name ~= Player.Name then | |
512 | CFuncs.Sound.Create("324867021", head, 1, 1) | |
513 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch) | |
514 | end | |
515 | end | |
516 | end | |
517 | end | |
518 | end | |
519 | ||
520 | ||
521 | Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Bright green","Handle",Vector3.new(1, 1.20000005, 1)) | |
522 | HandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.435136795, -0.716373444, -0.168147802, -0.184279382, -0.967371345, 0.173878923, -0.0978992507, -0.157963246, -0.982580066, 0.977986097, -0.198091835, -0.0655955523)) | |
523 | Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1)) | |
524 | PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.36849213e-05, 4.00039482, -5.86509705e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06)) | |
525 | CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1, 0.0500000007)) | |
526 | Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1)) | |
527 | PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.67979431e-05, -4.00035858, 0.499849081, -0.999994338, 5.56639861e-06, 1.65775418e-06, 5.24974894e-06, 0.999995232, -5.0291419e-06, -3.25776637e-06, -5.08874655e-06, -0.999990761)) | |
528 | CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024)) | |
529 | Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1)) | |
530 | PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.17232513e-05, 3.20031929, -3.71932983e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06)) | |
531 | CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.60000002, 0.400000006, 0.0500000007)) | |
532 | Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1)) | |
533 | PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.48905945e-05, -4.00033379, 0.499926567, 1, -5.21628408e-06, -3.65823939e-06, 5.21626544e-06, 1, -5.09625352e-06, 3.658266e-06, 5.09623442e-06, 1)) | |
534 | CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024)) | |
535 | Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1)) | |
536 | PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74724579e-05, 2.90030861, -2.95639038e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06)) | |
537 | CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 0.400000006, 0.400000006)) | |
538 | Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1)) | |
539 | PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0976924896, -1.42856026, 1.57356262e-05, 3.90782952e-06, 0.275675088, -0.961250901, 5.61308116e-06, -0.96125102, -0.275675088, -1.00000012, -4.33286186e-06, -5.2973628e-06)) | |
540 | CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003)) | |
541 | Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1)) | |
542 | PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.93119049e-05, -0.700065613, 1.33514404e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06)) | |
543 | CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 0.5)) | |
544 | Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1)) | |
545 | PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0726666451, 1.43006897, 1.62124634e-05, -5.01610339e-06, 0.258840203, 0.96592015, -3.55858356e-06, 0.96592021, -0.258840173, -1.00000012, -4.73321415e-06, -3.92459333e-06)) | |
546 | CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003)) | |
547 | Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1)) | |
548 | PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.14848328e-05, 4.36306e-05, 2.00019836, 1, -5.38327731e-06, -2.46055424e-06, -2.4586916e-06, 8.36700201e-06, -1, 5.40760811e-06, 1, 8.37445259e-06)) | |
549 | CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003)) | |
550 | Shaft=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Brown","Shaft",Vector3.new(1, 3.60000014, 1)) | |
551 | ShaftWeld=CFuncs.Weld.Create(m,Handle,Shaft,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.21729279e-05, 1.20008087, -2.24113464e-05, 3.14228237e-06, 4.38094139e-06, -1.00000012, 2.94635538e-06, -1, -4.38839197e-06, -1, -2.95066275e-06, -3.14228237e-06)) | |
552 | CFuncs.Mesh.Create("CylinderMesh",Shaft,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 0.300000012)) | |
553 | Hitbox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Hitbox",Vector3.new(7, 3, 3)) | |
554 | HitboxWeld=CFuncs.Weld.Create(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19377899, -0.184207916, -0.14117223, -0.00053447485, 0.99471724, -0.102652542, -0.999858558, 0.00119461119, 0.0167820305, 0.0168160032, 0.102646977, 0.994575679)) | |
555 | ||
556 | ||
557 | sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new()) | |
558 | sref.Anchored = true | |
559 | ||
560 | EffectModel = Create("Model"){ | |
561 | Parent = Character, | |
562 | Name = "Effects", | |
563 | } | |
564 | ||
565 | Effects = { | |
566 | Block = { | |
567 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
568 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
569 | prt.Anchored = true | |
570 | prt.CFrame = cframe | |
571 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
572 | game:GetService("Debris"):AddItem(prt, 10) | |
573 | if Type == 1 or Type == nil then | |
574 | table.insert(Effects, { | |
575 | prt, | |
576 | "Block1", | |
577 | delay, | |
578 | x3, | |
579 | y3, | |
580 | z3, | |
581 | msh | |
582 | }) | |
583 | elseif Type == 2 then | |
584 | table.insert(Effects, { | |
585 | prt, | |
586 | "Block2", | |
587 | delay, | |
588 | x3, | |
589 | y3, | |
590 | z3, | |
591 | msh | |
592 | }) | |
593 | end | |
594 | end; | |
595 | }; | |
596 | ||
597 | Cylinder = { | |
598 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
599 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
600 | prt.Anchored = true | |
601 | prt.CFrame = cframe | |
602 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
603 | game:GetService("Debris"):AddItem(prt, 2) | |
604 | table.insert(Effects, { | |
605 | prt, | |
606 | "Cylinder", | |
607 | delay, | |
608 | x3, | |
609 | y3, | |
610 | z3, | |
611 | msh | |
612 | }) | |
613 | end; | |
614 | }; | |
615 | ||
616 | Head = { | |
617 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
618 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
619 | prt.Anchored = true | |
620 | prt.CFrame = cframe | |
621 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
622 | game:GetService("Debris"):AddItem(prt, 10) | |
623 | table.insert(Effects, { | |
624 | prt, | |
625 | "Cylinder", | |
626 | delay, | |
627 | x3, | |
628 | y3, | |
629 | z3, | |
630 | msh | |
631 | }) | |
632 | end; | |
633 | }; | |
634 | ||
635 | Sphere = { | |
636 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
637 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
638 | prt.Anchored = true | |
639 | prt.CFrame = cframe | |
640 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
641 | game:GetService("Debris"):AddItem(prt, 10) | |
642 | table.insert(Effects, { | |
643 | prt, | |
644 | "Cylinder", | |
645 | delay, | |
646 | x3, | |
647 | y3, | |
648 | z3, | |
649 | msh | |
650 | }) | |
651 | end; | |
652 | }; | |
653 | ||
654 | Elect = { | |
655 | Create = function(cff, x, y, z) | |
656 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("New Yeller"), "Part", Vector3.new(1, 1, 1)) | |
657 | prt.Anchored = true | |
658 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
659 | prt.CFrame = CFrame.new(prt.Position) | |
660 | game:GetService("Debris"):AddItem(prt, 2) | |
661 | local xval = math.random() / 2 | |
662 | local yval = math.random() / 2 | |
663 | local zval = math.random() / 2 | |
664 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
665 | table.insert(Effects, { | |
666 | prt, | |
667 | "Elec", | |
668 | 0.1, | |
669 | x, | |
670 | y, | |
671 | z, | |
672 | xval, | |
673 | yval, | |
674 | zval | |
675 | }) | |
676 | end; | |
677 | ||
678 | }; | |
679 | ||
680 | Ring = { | |
681 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
682 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
683 | prt.Anchored = true | |
684 | prt.CFrame = cframe | |
685 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
686 | game:GetService("Debris"):AddItem(prt, 10) | |
687 | table.insert(Effects, { | |
688 | prt, | |
689 | "Cylinder", | |
690 | delay, | |
691 | x3, | |
692 | y3, | |
693 | z3, | |
694 | msh | |
695 | }) | |
696 | end; | |
697 | }; | |
698 | ||
699 | ||
700 | Wave = { | |
701 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
702 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
703 | prt.Anchored = true | |
704 | prt.CFrame = cframe | |
705 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
706 | game:GetService("Debris"):AddItem(prt, 10) | |
707 | table.insert(Effects, { | |
708 | prt, | |
709 | "Cylinder", | |
710 | delay, | |
711 | x3, | |
712 | y3, | |
713 | z3, | |
714 | msh | |
715 | }) | |
716 | end; | |
717 | }; | |
718 | ||
719 | Break = { | |
720 | Create = function(brickcolor, cframe, x1, y1, z1) | |
721 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
722 | prt.Anchored = true | |
723 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
724 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
725 | local num = math.random(10, 50) / 1000 | |
726 | game:GetService("Debris"):AddItem(prt, 10) | |
727 | table.insert(Effects, { | |
728 | prt, | |
729 | "Shatter", | |
730 | num, | |
731 | prt.CFrame, | |
732 | math.random() - math.random(), | |
733 | 0, | |
734 | math.random(50, 100) / 100 | |
735 | }) | |
736 | end; | |
737 | }; | |
738 | ||
739 | Fire = { | |
740 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
741 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
742 | prt.Anchored = true | |
743 | prt.CFrame = cframe | |
744 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
745 | game:GetService("Debris"):AddItem(prt, 10) | |
746 | table.insert(Effects, { | |
747 | prt, | |
748 | "Fire", | |
749 | delay, | |
750 | 1, | |
751 | 1, | |
752 | 1, | |
753 | msh | |
754 | }) | |
755 | end; | |
756 | }; | |
757 | ||
758 | FireWave = { | |
759 | Create = function(brickcolor, cframe, x1, y1, z1) | |
760 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
761 | prt.Anchored = true | |
762 | prt.CFrame = cframe | |
763 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
764 | local d = Create("Decal"){ | |
765 | Parent = prt, | |
766 | Texture = "rbxassetid://26356434", | |
767 | Face = "Top", | |
768 | } | |
769 | local d = Create("Decal"){ | |
770 | Parent = prt, | |
771 | Texture = "rbxassetid://26356434", | |
772 | Face = "Bottom", | |
773 | } | |
774 | game:GetService("Debris"):AddItem(prt, 10) | |
775 | table.insert(Effects, { | |
776 | prt, | |
777 | "FireWave", | |
778 | 1, | |
779 | 30, | |
780 | math.random(400, 600) / 100, | |
781 | msh | |
782 | }) | |
783 | end; | |
784 | }; | |
785 | ||
786 | Lightning = { | |
787 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
788 | local magz = (p0 - p1).magnitude | |
789 | local curpos = p0 | |
790 | local trz = { | |
791 | -ofs, | |
792 | ofs | |
793 | } | |
794 | for i = 1, tym do | |
795 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
796 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
797 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
798 | li.Material = "Neon" | |
799 | if tym == i then | |
800 | local magz2 = (curpos - p1).magnitude | |
801 | li.Size = Vector3.new(th, th, magz2) | |
802 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
803 | table.insert(Effects, { | |
804 | li, | |
805 | "Disappear", | |
806 | last | |
807 | }) | |
808 | else | |
809 | do | |
810 | do | |
811 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
812 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
813 | game.Debris:AddItem(li, 10) | |
814 | table.insert(Effects, { | |
815 | li, | |
816 | "Disappear", | |
817 | last | |
818 | }) | |
819 | end | |
820 | end | |
821 | end | |
822 | end | |
823 | end | |
824 | }; | |
825 | ||
826 | EffectTemplate = { | |
827 | ||
828 | }; | |
829 | } | |
830 | ||
831 | ||
832 | function ears() | |
833 | local quote = math.random(1, 10) | |
834 | if quote == 1 then | |
835 | ow = CFuncs.Sound.Create("276916733", Character, 10, 1) | |
836 | Instance.new("DistortionSoundEffect", ow).Level = .95 | |
837 | elseif quote == 2 then | |
838 | ow = CFuncs.Sound.Create("222045669", Character, 10, 1) | |
839 | Instance.new("DistortionSoundEffect", ow).Level = .95 | |
840 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "I played college ball yaknow", 1.5, BrickColor.new("Grey").Color) | |
841 | elseif quote == 3 then | |
842 | ow = CFuncs.Sound.Create("657527128", Character, 10, 1) | |
843 | Instance.new("DistortionSoundEffect", ow).Level = .95 | |
844 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Oof", 1.5, BrickColor.new("Grey").Color) | |
845 | elseif quote == 4 then | |
846 | CFuncs.Sound.Create("230292394", Character, 10, 1) | |
847 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "AAAAAH", 1.5, BrickColor.new("Grey").Color) | |
848 | elseif quote == 5 then | |
849 | CFuncs.Sound.Create("230255621", Character, 10, 1) | |
850 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "SO", 1.5, BrickColor.new("Grey").Color) | |
851 | wait(.2) | |
852 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "DAH", 1.5, BrickColor.new("Grey").Color) | |
853 | elseif quote == 6 then | |
854 | CFuncs.Sound.Create("230255698", Character, 10, 1) | |
855 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Y E S", 1.5, BrickColor.new("Grey").Color) | |
856 | elseif quote == 7 then | |
857 | CFuncs.Sound.Create("230255738", Character, 10, 1) | |
858 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "OH", 1.5, BrickColor.new("Grey").Color) | |
859 | elseif quote == 8 then | |
860 | CFuncs.Sound.Create("230292118", Character, 10, 1) | |
861 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "AAAAAAAA", 1.5, BrickColor.new("Grey").Color) | |
862 | elseif quote == 9 then | |
863 | CFuncs.Sound.Create("230292073", Character, 10, 1) | |
864 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "UWEEEEEEEEEEH", 1.5, BrickColor.new("Grey").Color) | |
865 | elseif quote == 10 then | |
866 | ow = CFuncs.Sound.Create("225279648", Character, 10, 1) | |
867 | Instance.new("DistortionSoundEffect", ow).Level = .95 | |
868 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "help", 1.5, BrickColor.new("Grey").Color) | |
869 | end | |
870 | end | |
871 | ||
872 | ||
873 | ||
874 | ||
875 | ||
876 | function joj() | |
877 | while oof == true do | |
878 | attack = true | |
879 | local con = Hitbox.Touched:connect(function(hit) | |
880 | Damage(Hitbox, hit, 0, 0, math.random(300,300), "Normal", RootPart, 0.2, "148862502", 1)end) | |
881 | CFuncs.Sound.Create("233856140", Hitbox, 10, 1) | |
882 | for i = 0, 1, 0.1 do | |
883 | swait() | |
884 | PlayAnimationFromTable({ | |
885 | CFrame.new(0.318533748, 1.11758709e-08, -0.186876655, 0.571150839, -0.107324705, 0.813798547, -0.321393877, 0.883022606, 0.342018932, -0.755309701, -0.456894249, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
886 | CFrame.new(-0.136643112, 1.46224117, -0.102674514, 0.571150839, -0.321393877, -0.755309701, -0.107324705, 0.883022606, -0.456894249, 0.813798547, 0.342018932, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
887 | CFrame.new(1.34420753, 1.19733691, -0.575926542, -0.0377464592, -0.0365618169, 0.998618245, -0.0365605801, -0.998610795, -0.0379435122, 0.998618245, -0.0379423201, 0.0363572836) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
888 | CFrame.new(-1.54852927, 1.0183481, -0.403962731, 0.992945313, -0.0193823874, 0.11697869, 0.0193829238, -0.946746707, -0.321395338, 0.116978586, 0.321395338, -0.93969202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
889 | CFrame.new(1.30056286, -1.52663183, -0.684036016, 0.872286201, -0.321393877, -0.368541837, 0.13550131, 0.883022606, -0.449344397, 0.469847292, 0.342018932, 0.813797712) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
890 | CFrame.new(-0.0819230229, -1.98630714, -0.796365142, 0.843013644, -0.321393877, 0.431316614, 0.431316495, 0.883022606, -0.185032547, -0.321394026, 0.342018932, 0.883022547) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
891 | }, .3, false) | |
892 | end | |
893 | for i = 0, 1, 0.1 do | |
894 | swait() | |
895 | PlayAnimationFromTable({ | |
896 | CFrame.new(-0.70452857, 1.34110451e-07, -0.85472101, 0.0479760207, 0.375900865, -0.925417125, -0.321394145, 0.883022726, 0.342018545, 0.945729494, 0.281014919, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
897 | CFrame.new(-0.332258016, 1.42813265, -0.198432297, 0.0479760207, -0.321394145, 0.945729494, 0.375900865, 0.883022726, 0.281014919, -0.925417125, 0.342018545, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
898 | CFrame.new(1.3427434, 0.740131199, -1.01291919, 0.0505371541, -0.0144109726, 0.998618364, 0.883102953, 0.467642725, -0.0379427671, -0.466449738, 0.883800209, 0.0363596678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
899 | CFrame.new(-1.46270001, 0.38253215, -1.0271579, 0.992945492, -0.11697793, -0.01938124, 0.0193838775, 0.321395963, -0.946746528, 0.116977483, 0.939691901, 0.321396172) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
900 | CFrame.new(1.30056417, -1.52663159, -0.684035659, 0.872286379, -0.321394145, -0.368541002, 0.1355021, 0.883022726, -0.449344009, 0.469846606, 0.342018545, 0.813798249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
901 | CFrame.new(-0.0819211155, -1.98630702, -0.796365023, 0.84301424, -0.321394145, 0.431315303, 0.431316257, 0.883022726, -0.18503274, -0.321392775, 0.342018545, 0.883023262) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
902 | }, .3, false) | |
903 | end | |
904 | con:Disconnect() | |
905 | attack = false | |
906 | end | |
907 | end | |
908 | ||
909 | Mouse.Button1Down:connect(function() | |
910 | if attack == false and oof == false then | |
911 | oof = true | |
912 | joj() | |
913 | end | |
914 | end) | |
915 | ||
916 | ||
917 | ||
918 | Mouse.Button1Up:connect(function() | |
919 | if attack == true and oof == true then | |
920 | oof = false | |
921 | end | |
922 | end) | |
923 | ||
924 | ||
925 | ||
926 | ||
927 | Mouse.KeyDown:connect(function(k) | |
928 | k = k:lower() | |
929 | if k == 't' then | |
930 | ears() | |
931 | end | |
932 | end) | |
933 | ||
934 | while true do | |
935 | swait() | |
936 | sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0) | |
937 | for i, v in pairs(Character:GetChildren()) do | |
938 | if v:IsA("Part") then | |
939 | v.Material = "SmoothPlastic" | |
940 | elseif v:IsA("Accessory") then | |
941 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
942 | end | |
943 | end | |
944 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
945 | velocity = RootPart.Velocity.y | |
946 | sine = sine + change | |
947 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
948 | if RootPart.Velocity.y > 1 and hit == nil then | |
949 | Anim = "Jump" | |
950 | if attack == false then | |
951 | PlayAnimationFromTable({ | |
952 | CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
953 | CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
954 | CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
955 | CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
956 | CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392e-007, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
957 | CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
958 | }, .3, false) | |
959 | end | |
960 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
961 | Anim = "Fall" | |
962 | if attack == false then | |
963 | PlayAnimationFromTable({ | |
964 | CFrame.new(-0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
965 | CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
966 | CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
967 | CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
968 | CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
969 | CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
970 | }, .3, false) | |
971 | end | |
972 | elseif Torsovelocity < 1 and hit ~= nil then | |
973 | Anim = "Idle" | |
974 | if attack == false then | |
975 | change = 1 | |
976 | PlayAnimationFromTable({ | |
977 | CFrame.new(1.90734863e-06, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
978 | CFrame.new(-1.90734863e-06, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
979 | CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
980 | CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, -0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
981 | CFrame.new(0.699996471, -1.87938261, -0.684038877, 0.866025388, 0, -0.500000238, -0.171010032, 0.939692736, -0.296197921, 0.469846606, 0.342019886, 0.813797772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
982 | CFrame.new(-0.756342053, -1.83849907, -0.79636544, 0.939692736, 0, 0.342019886, 0.116977625, 0.939692736, -0.321393639, -0.321393639, 0.342019886, 0.883022428) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
983 | }, .3, false) | |
984 | end | |
985 | elseif Torsovelocity > 2 and hit ~= nil then | |
986 | Anim = "Walk" | |
987 | if attack == false then | |
988 | change = 2 | |
989 | PlayAnimationFromTable({ | |
990 | CFrame.new(1.90734863e-06, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
991 | CFrame.new(-1.90734863e-06, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
992 | CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
993 | CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, -0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
994 | CFrame.new(.5, -1.64 - 0.5 * math.cos(sine / 8) / 2, 0 + 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)), | |
995 | CFrame.new(-.5, -1.64 + 0.5 * math.cos(sine / 8) / 2, 0 - 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)), | |
996 | }, .3, false) | |
997 | end | |
998 | end | |
999 | if 0 < #Effects then | |
1000 | for e = 1, #Effects do | |
1001 | if Effects[e] ~= nil then | |
1002 | local Thing = Effects[e] | |
1003 | if Thing ~= nil then | |
1004 | local Part = Thing[1] | |
1005 | local Mode = Thing[2] | |
1006 | local Delay = Thing[3] | |
1007 | local IncX = Thing[4] | |
1008 | local IncY = Thing[5] | |
1009 | local IncZ = Thing[6] | |
1010 | if Thing[2] == "Shoot" then | |
1011 | local Look = Thing[1] | |
1012 | local move = 5 | |
1013 | local hit, pos = rayCast(Thing[4], Thing[1], move, Character) | |
1014 | if Thing[10] ~= nil then | |
1015 | da = pos | |
1016 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
1017 | cfa = CFrame.new(Thing[4], pos) | |
1018 | tehCF = cfa:lerp(cf2, 0.2) | |
1019 | Thing[1] = tehCF.lookVector | |
1020 | end | |
1021 | local mag = (Thing[4] - pos).magnitude | |
1022 | Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4) | |
1023 | Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, 3, 3, 5, 5, 5, 0.15) | |
1024 | Thing[4] = Thing[4] + Look * move | |
1025 | Thing[3] = Thing[3] - 1 | |
1026 | if 2 < Thing[5] then | |
1027 | Thing[5] = Thing[5] - 0.3 | |
1028 | Thing[6] = Thing[6] - 0.3 | |
1029 | end | |
1030 | if hit ~= nil then | |
1031 | Thing[3] = 0 | |
1032 | MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8) | |
1033 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
1034 | ref.Anchored = true | |
1035 | ref.CFrame = CFrame.new(pos) | |
1036 | Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05) | |
1037 | Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03) | |
1038 | game:GetService("Debris"):AddItem(ref, 1) | |
1039 | end | |
1040 | if Thing[3] <= 0 then | |
1041 | table.remove(Effects, e) | |
1042 | end | |
1043 | end | |
1044 | do | |
1045 | do | |
1046 | if Thing[2] == "FireWave" then | |
1047 | if Thing[3] <= Thing[4] then | |
1048 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
1049 | Thing[3] = Thing[3] + 1 | |
1050 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
1051 | else | |
1052 | Part.Parent = nil | |
1053 | table.remove(Effects, e) | |
1054 | end | |
1055 | end | |
1056 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
1057 | if Thing[1].Transparency <= 1 then | |
1058 | if Thing[2] == "Block1" then | |
1059 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1060 | Mesh = Thing[7] | |
1061 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1062 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1063 | else | |
1064 | if Thing[2] == "Block2" then | |
1065 | Thing[1].CFrame = Thing[1].CFrame | |
1066 | Mesh = Thing[7] | |
1067 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1068 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1069 | else | |
1070 | if Thing[2] == "Fire" then | |
1071 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
1072 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1073 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1074 | else | |
1075 | if Thing[2] == "Cylinder" then | |
1076 | Mesh = Thing[7] | |
1077 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1078 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1079 | else | |
1080 | if Thing[2] == "Blood" then | |
1081 | Mesh = Thing[7] | |
1082 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
1083 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1084 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1085 | else | |
1086 | if Thing[2] == "Elec" then | |
1087 | Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1088 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1089 | else | |
1090 | if Thing[2] == "Disappear" then | |
1091 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1092 | end | |
1093 | end | |
1094 | end | |
1095 | end | |
1096 | end | |
1097 | end | |
1098 | end | |
1099 | else | |
1100 | Part.Parent = nil | |
1101 | table.remove(Effects, e) | |
1102 | end | |
1103 | end | |
1104 | end | |
1105 | end | |
1106 | end | |
1107 | end | |
1108 | end | |
1109 | end | |
1110 | end |