SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | - | local mouse = Player:GetMouse() |
7 | + | script.Parent = rp.Character |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local h,t | |
75 | --Give the server mouse data 30 times every second, but only if the values changed | |
76 | --If player is not moving their mouse, client won't fire events | |
77 | while wait(1/30) do | |
78 | if h~=Mouse.Hit or t~=Mouse.Target then | |
79 | h,t=Mouse.Hit,Mouse.Target | |
80 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
81 | end | |
82 | end]==],Player.Character) | |
83 | ||
84 | ----Sandboxed game object that allows the usage of client-side methods and services | |
85 | --Real game object | |
86 | local _rg = game | |
87 | ||
88 | --Metatable for fake service | |
89 | local fsmt = { | |
90 | __index = function(self,k) | |
91 | local s = rawget(self,"_RealService") | |
92 | if s then return s[k] end | |
93 | end, | |
94 | __newindex = function(self,k,v) | |
95 | local s = rawget(self,"_RealService") | |
96 | if s then s[k]=v end | |
97 | end, | |
98 | __call = function(self,...) | |
99 | local s = rawget(self,"_RealService") | |
100 | if s then return s(...) end | |
101 | end | |
102 | } | |
103 | local function FakeService(t,RealService) | |
104 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
105 | return setmetatable(t,fsmt) | |
106 | end | |
107 | ||
108 | --Fake game object | |
109 | local g = { | |
110 | GetService = function(self,s) | |
111 | return self[s] | |
112 | end, | |
113 | Players = FakeService({ | |
114 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
115 | },"Players"), | |
116 | UserInputService = FakeService(UIS,"UserInputService"), | |
117 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
118 | } | |
119 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
120 | g.service = g.GetService | |
121 | ||
122 | setmetatable(g,{ | |
123 | __index=function(self,s) | |
124 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
125 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
126 | end, | |
127 | __newindex = fsmt.__newindex, | |
128 | __call = fsmt.__call | |
129 | }) | |
130 | --Changing owner to fake player object to support owner:GetMouse() | |
131 | game,owner = g,g.Players.LocalPlayer | |
132 | end | |
133 | wait(0.016666666666667) | |
134 | Effects = {} | |
135 | local Player = game.Players.localPlayer | |
136 | local Character = Player.Character | |
137 | local Humanoid = Character.Humanoid | |
138 | local m = Instance.new("Model", Character) | |
139 | m.Name = "WeaponModel" | |
140 | local LeftArm = Character["Left Arm"] | |
141 | local RightArm = Character["Right Arm"] | |
142 | local LeftLeg = Character["Left Leg"] | |
143 | local RightLeg = Character["Right Leg"] | |
144 | local Head = Character.Head | |
145 | local Torso = Character.Torso | |
146 | local cam = game.Workspace.CurrentCamera | |
147 | local RootPart = Character.HumanoidRootPart | |
148 | local RootJoint = RootPart.RootJoint | |
149 | local equipped = false | |
150 | local attack = false | |
151 | local Anim = "Idle" | |
152 | local idle = 0 | |
153 | local attacktype = 1 | |
154 | local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude | |
155 | local velocity = RootPart.Velocity.y | |
156 | local sine = 0 | |
157 | local change = 1 | |
158 | local grabbed = false | |
159 | local cf = CFrame.new | |
160 | local mr = math.rad | |
161 | local angles = CFrame.Angles | |
162 | local ud = UDim2.new | |
163 | local vt = Vector3.new | |
164 | local c3 = Color3.new | |
165 | local mana = 0 | |
166 | local mananum = 0 | |
167 | local it = Instance.new | |
168 | local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
169 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
170 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
171 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
172 | xenabled = true | |
173 | cenabled = true | |
174 | venabled = true | |
175 | zenabled = true | |
176 | RSH = nil | |
177 | RW = Instance.new("Weld") | |
178 | LW = Instance.new("Weld") | |
179 | RH = Torso["Right Hip"] | |
180 | LH = Torso["Left Hip"] | |
181 | RSH = Torso["Right Shoulder"] | |
182 | LSH = Torso["Left Shoulder"] | |
183 | RSH.Parent = nil | |
184 | LSH.Parent = nil | |
185 | RW.Name = "RW" | |
186 | RW.Part0 = Torso | |
187 | RW.C0 = cf(1.5, 0.5, 0) | |
188 | RW.C1 = cf(0, 0.5, 0) | |
189 | RW.Part1 = RightArm | |
190 | RW.Parent = Torso | |
191 | LW.Name = "LW" | |
192 | LW.Part0 = Torso | |
193 | LW.C0 = cf(-1.5, 0.5, 0) | |
194 | LW.C1 = cf(0, 0.5, 0) | |
195 | LW.Part1 = LeftArm | |
196 | LW.Parent = Torso | |
197 | clerp = function(a, b, t) | |
198 | return a:lerp(b, t) | |
199 | end | |
200 | ||
201 | ||
202 | ---------------------------------------------------- | |
203 | z = Instance.new("Sound", Character) | |
204 | z.SoundId = "rbxassetid://428255459"-- | |
205 | z.Looped = true | |
206 | z.Pitch = 1 | |
207 | z.Volume = 1 | |
208 | wait(.1) | |
209 | z:Play() | |
210 | ---------------------------------------------------- | |
211 | ||
212 | ArtificialHB = Instance.new("BindableEvent", script) | |
213 | ArtificialHB.Name = "Heartbeat" | |
214 | script:WaitForChild("Heartbeat") | |
215 | frame = 0.016666666666667 | |
216 | tf = 0 | |
217 | allowframeloss = false | |
218 | tossremainder = false | |
219 | lastframe = tick() | |
220 | script.Heartbeat:Fire() | |
221 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
222 | tf = tf + s | |
223 | if frame <= tf then | |
224 | if allowframeloss then | |
225 | script.Heartbeat:Fire() | |
226 | lastframe = tick() | |
227 | else | |
228 | for i = 1, math.floor(tf / frame) do | |
229 | script.Heartbeat:Fire() | |
230 | end | |
231 | lastframe = tick() | |
232 | end | |
233 | if tossremainder then | |
234 | tf = 0 | |
235 | else | |
236 | tf = tf - frame * math.floor(tf / frame) | |
237 | end | |
238 | end | |
239 | - | game["Run Service"].RenderStepped:wait() |
239 | + | |
240 | ) | |
241 | swait = function(num) | |
242 | if num == 0 or num == nil then | |
243 | ArtificialHB.Event:wait() | |
244 | else | |
245 | for i = 0, num do | |
246 | ArtificialHB.Event:wait() | |
247 | end | |
248 | end | |
249 | end | |
250 | ||
251 | ||
252 | ||
253 | ||
254 | ||
255 | ||
256 | Magik = function(part) | |
257 | Spawn(function() | |
258 | local function lerp(a,b,c) | |
259 | return a+(b-a)*c | |
260 | - | game["Run Service"].RenderStepped:wait() |
260 | + | |
261 | local function rndRange(rng) | |
262 | return math.random(-rng*1000,rng*1000)/1000 | |
263 | end | |
264 | local magik = Instance.new("Part", part) | |
265 | magik.Anchored = true | |
266 | magik.Locked = true | |
267 | magik.Material = "Neon" | |
268 | magik.FormFactor = "Custom" | |
269 | magik.Size = Vector3.new(1.2, 1.2, 1.2) | |
270 | magik.TopSurface = "Smooth" | |
271 | magik.BottomSurface = "Smooth" | |
272 | magik.Transparency = 0 | |
273 | magik.CanCollide = false | |
274 | ||
275 | magik.BrickColor = BrickColor.new("Royal purple") | |
276 | ||
277 | local mr = math.rad | |
278 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
279 | local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
280 | magik.CFrame = cf | |
281 | for i = 0, 1, .05 do | |
282 | local newTrans = lerp(.8, 1, i) | |
283 | local ns = lerp(1,1.2,i) | |
284 | magik.Transparency = newTrans | |
285 | magik.Size = Vector3.new(ns,ns,ns) | |
286 | magik.CFrame = cf | |
287 | wait() | |
288 | end | |
289 | magik:Destroy() | |
290 | wait() | |
291 | end) | |
292 | end | |
293 | - | game["Run Service"].RenderStepped:wait() |
293 | + | |
294 | Magik2 = function(part) | |
295 | Spawn(function() | |
296 | local function lerp(a,b,c) | |
297 | return a+(b-a)*c | |
298 | end | |
299 | local function rndRange(rng) | |
300 | return math.random(-rng*1000,rng*1000)/1000 | |
301 | end | |
302 | local magik2 = Instance.new("Part",part) | |
303 | magik2.Anchored = true | |
304 | magik2.Locked = true | |
305 | magik2.FormFactor = "Custom" | |
306 | magik2.Size = Vector3.new(1.2, 1.2, 1.2) | |
307 | magik2.TopSurface = "Smooth" | |
308 | magik2.BottomSurface = "Smooth" | |
309 | magik2.Transparency = 0 | |
310 | magik2.Material = "Neon" | |
311 | - | game["Run Service"].RenderStepped:connect(function(_) |
311 | + | |
312 | ||
313 | ||
314 | magik2.BrickColor = BrickColor.new("Really black") | |
315 | ||
316 | ||
317 | local mr = math.rad | |
318 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
319 | local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
320 | magik2.CFrame = cf | |
321 | for i = 0, 1, .05 do | |
322 | local newTrans = lerp(.8, 1, i) | |
323 | local ns = lerp(1,1.2,i) | |
324 | magik2.Transparency = newTrans | |
325 | magik2.Size = Vector3.new(ns,ns,ns) | |
326 | magik2.CFrame = cf | |
327 | wait() | |
328 | end | |
329 | magik2:Destroy() | |
330 | end) | |
331 | end | |
332 | ||
333 | ||
334 | ||
335 | Spawn(function() | |
336 | while wait(.1) do | |
337 | Magik(RightArm) | |
338 | end | |
339 | end) | |
340 | ||
341 | Spawn(function() | |
342 | while wait(.1) do | |
343 | Magik2(RightArm) | |
344 | end | |
345 | end) | |
346 | ||
347 | ||
348 | ||
349 | ||
350 | ||
351 | ||
352 | ||
353 | ||
354 | FloatPart = function() | |
355 | local Part = Instance.new('Part',Torso) | |
356 | Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87) | |
357 | Part.Anchored = true | |
358 | Part.Material = 'Neon' | |
359 | Part.CanCollide = false | |
360 | Part.BrickColor = BrickColor.new(PrimaryColor) | |
361 | local Mesh = Instance.new('SpecialMesh',Part) | |
362 | Mesh.Scale = Vector3.new(4,4,.2) | |
363 | Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017' | |
364 | Mesh.VertexColor = Vector3.new(0,170,255) | |
365 | spawn(function() | |
366 | for i = 1,30 do | |
367 | Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0) | |
368 | Part.Transparency = Part.Transparency + .035 | |
369 | game["Run Service"].Stepped:wait() | |
370 | end | |
371 | Part:Destroy() | |
372 | end) | |
373 | end; | |
374 | ||
375 | DubPart = function() | |
376 | local Part = Instance.new('Part',Torso) | |
377 | Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87) | |
378 | Part.Anchored = true | |
379 | Part.CanCollide = false | |
380 | Part.Material = 'Neon' | |
381 | Part.BrickColor = BrickColor.new(SecondaryColor) | |
382 | local Mesh = Instance.new('SpecialMesh',Part) | |
383 | Mesh.Scale = Vector3.new(7,7,.2) | |
384 | Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017' | |
385 | Mesh.VertexColor = Vector3.new(0,170,255) | |
386 | spawn(function() | |
387 | for i = 1,30 do | |
388 | Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0) | |
389 | Part.Transparency = Part.Transparency + .035 | |
390 | game["Run Service"].Stepped:wait() | |
391 | end | |
392 | Part:Destroy() | |
393 | end) | |
394 | end; | |
395 | ||
396 | Fade = function(Item,t) | |
397 | spawn(function() | |
398 | for i = 1,20 do | |
399 | Item.Transparency = Item.Transparency + .05 | |
400 | if t then | |
401 | wait(t) | |
402 | else | |
403 | wait() | |
404 | end | |
405 | end | |
406 | Item:Destroy() | |
407 | end) | |
408 | end | |
409 | ||
410 | Particle = function(PrimaryColor) | |
411 | local Part = Instance.new('Part',Torso) | |
412 | Part.BrickColor = BrickColor.new(PrimaryColor) | |
413 | Part.Anchored = true | |
414 | Part.Transparency = .3 | |
415 | Part.CanCollide = false | |
416 | Part.CFrame = Torso.CFrame * CFrame.new(math.random(-10,10),math.random(-15,15),math.random(-10,10)) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random()) | |
417 | local Mesh = Instance.new('BlockMesh',Part) | |
418 | Mesh.Scale = Vector3.new(.05,.1,.1) | |
419 | spawn(function() | |
420 | for i = 1,40 do | |
421 | Part.Transparency = Part.Transparency + .0125 | |
422 | Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0) | |
423 | game["Run Service"].Stepped:wait() | |
424 | end | |
425 | Part:Destroy() | |
426 | end) | |
427 | end; | |
428 | ||
429 | --[[spawn(function() | |
430 | while wait() do | |
431 | wait(.05) | |
432 | FloatPart() | |
433 | wait(.08) | |
434 | FloatPart() | |
435 | wait(.05) | |
436 | DubPart() | |
437 | wait(.08) | |
438 | end | |
439 | end)]] | |
440 | ||
441 | game["Run Service"].Stepped:connect(function(_) | |
442 | Particle("Royal purple") | |
443 | Particle("Really black") | |
444 | --Character['HumanoidRootPart'].C1 = Character['HumanoidRootPart'].C1 * CFrame.new(0,Height+math.sin(tick())/150,0) | |
445 | end) | |
446 | ||
447 | ||
448 | ||
449 | particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread) | |
450 | local fp = it("ParticleEmitter") | |
451 | fp.Parent = parent | |
452 | fp.Color = cs(col1, col2) | |
453 | fp.LightEmission = lightemis | |
454 | fp.Size = size | |
455 | fp.Texture = texture | |
456 | fp.Transparency = transparency | |
457 | fp.ZOffset = zoffset | |
458 | fp.Acceleration = accel | |
459 | fp.Drag = drag | |
460 | fp.LockedToPart = ltp | |
461 | fp.VelocityInheritance = velinher | |
462 | fp.EmissionDirection = emisdir | |
463 | fp.Enabled = enabled | |
464 | fp.Lifetime = lifetime | |
465 | fp.Rate = rate | |
466 | fp.Rotation = rotation | |
467 | fp.RotSpeed = rotspeed | |
468 | fp.Speed = speed | |
469 | fp.VelocitySpread = velspread | |
470 | return fp | |
471 | end | |
472 | ||
473 | ||
474 | ||
475 | ||
476 | local fengui = it("GuiMain") | |
477 | fengui.Parent = Player.PlayerGui | |
478 | fengui.Name = "WeaponGUI" | |
479 | local fenframe1 = it("TextLabel") | |
480 | fenframe1.Parent = fengui | |
481 | fenframe1.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255) | |
482 | fenframe1.BackgroundTransparency = 0.3 | |
483 | fenframe1.BorderSizePixel = 5 | |
484 | fenframe1.BorderColor3 = Color3.new(1, 1, 1) | |
485 | fenframe1.Size = UDim2.new(0.05, 0, 0.1, 0) | |
486 | fenframe1.Position = UDim2.new(0.325, 0, 0.7, 0) | |
487 | fenframe1.Text = "Z" | |
488 | fenframe1.TextWrapped = true | |
489 | fenframe1.FontSize = 7 | |
490 | fenframe1.TextColor3 = Color3.new(1, 1, 1) | |
491 | local fenframe1a = it("TextLabel") | |
492 | fenframe1a.Parent = fengui | |
493 | fenframe1a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902) | |
494 | fenframe1a.BackgroundTransparency = 0.3 | |
495 | fenframe1a.BorderSizePixel = 5 | |
496 | fenframe1a.BorderColor3 = Color3.new(1, 1, 1) | |
497 | fenframe1a.Size = UDim2.new(0.05, 0, 0.1, 0) | |
498 | fenframe1a.Position = UDim2.new(0.325, 0, 0.7, 0) | |
499 | fenframe1a.Text = "" | |
500 | local fenframe2 = it("TextLabel") | |
501 | fenframe2.Parent = fengui | |
502 | fenframe2.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255) | |
503 | fenframe2.BackgroundTransparency = 0.3 | |
504 | fenframe2.BorderSizePixel = 5 | |
505 | fenframe2.BorderColor3 = Color3.new(1, 1, 1) | |
506 | fenframe2.Size = UDim2.new(0.05, 0, 0.1, 0) | |
507 | fenframe2.Position = UDim2.new(0.425, 0, 0.7, 0) | |
508 | fenframe2.Text = "X" | |
509 | fenframe2.TextWrapped = true | |
510 | fenframe2.FontSize = 7 | |
511 | fenframe2.TextColor3 = Color3.new(1, 1, 1) | |
512 | local fenframe2a = it("TextLabel") | |
513 | fenframe2a.Parent = fengui | |
514 | fenframe2a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902) | |
515 | fenframe2a.BackgroundTransparency = 0.3 | |
516 | fenframe2a.BorderSizePixel = 5 | |
517 | fenframe2a.BorderColor3 = Color3.new(1, 1, 1) | |
518 | fenframe2a.Size = UDim2.new(0.05, 0, 0.1, 0) | |
519 | fenframe2a.Position = UDim2.new(0.425, 0, 0.7, 0) | |
520 | fenframe2a.Text = "" | |
521 | local fenframe3 = it("TextLabel") | |
522 | fenframe3.Parent = fengui | |
523 | fenframe3.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255) | |
524 | fenframe3.BackgroundTransparency = 0.3 | |
525 | fenframe3.BorderSizePixel = 5 | |
526 | fenframe3.BorderColor3 = Color3.new(1, 1, 1) | |
527 | fenframe3.Size = UDim2.new(0.05, 0, 0.1, 0) | |
528 | fenframe3.Position = UDim2.new(0.525, 0, 0.7, 0) | |
529 | fenframe3.Text = "C" | |
530 | fenframe3.TextWrapped = true | |
531 | fenframe3.FontSize = 7 | |
532 | fenframe3.TextColor3 = Color3.new(1, 1, 1) | |
533 | local fenframe3a = it("TextLabel") | |
534 | fenframe3a.Parent = fengui | |
535 | fenframe3a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902) | |
536 | fenframe3a.BackgroundTransparency = 0.3 | |
537 | fenframe3a.BorderSizePixel = 5 | |
538 | fenframe3a.BorderColor3 = Color3.new(1, 1, 1) | |
539 | fenframe3a.Size = UDim2.new(0.05, 0, 0.1, 0) | |
540 | fenframe3a.Position = UDim2.new(0.525, 0, 0.7, 0) | |
541 | fenframe3a.Text = "" | |
542 | local fenframe4 = it("TextLabel") | |
543 | fenframe4.Parent = fengui | |
544 | fenframe4.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255) | |
545 | fenframe4.BackgroundTransparency = 0.3 | |
546 | fenframe4.BorderSizePixel = 5 | |
547 | fenframe4.BorderColor3 = Color3.new(1, 1, 1) | |
548 | fenframe4.Size = UDim2.new(0.05, 0, 0.1, 0) | |
549 | fenframe4.Position = UDim2.new(0.625, 0, 0.7, 0) | |
550 | fenframe4.Text = "V" | |
551 | fenframe4.TextWrapped = true | |
552 | fenframe4.FontSize = 7 | |
553 | fenframe4.TextColor3 = Color3.new(1, 1, 1) | |
554 | local fenframe4a = it("TextLabel") | |
555 | fenframe4a.Parent = fengui | |
556 | fenframe4a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902) | |
557 | fenframe4a.BackgroundTransparency = 0.3 | |
558 | fenframe4a.BorderSizePixel = 5 | |
559 | fenframe4a.BorderColor3 = Color3.new(1, 1, 1) | |
560 | fenframe4a.Size = UDim2.new(0.05, 0, 0.1, 0) | |
561 | fenframe4a.Position = UDim2.new(0.625, 0, 0.7, 0) | |
562 | fenframe4a.Text = "" | |
563 | fenframe1a.Size = UDim2.new(0, 0, 0.1, 0) | |
564 | fenframe2a.Size = UDim2.new(0, 0, 0.1, 0) | |
565 | fenframe3a.Size = UDim2.new(0, 0, 0.1, 0) | |
566 | fenframe4a.Size = UDim2.new(0, 0, 0.1, 0) | |
567 | local RbxUtility = LoadLibrary("RbxUtility") | |
568 | local Create = RbxUtility.Create | |
569 | RemoveOutlines = function(part) | |
570 | part.TopSurface = 10 | |
571 | end | |
572 | ||
573 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
574 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
575 | RemoveOutlines(Part) | |
576 | return Part | |
577 | end | |
578 | ||
579 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
580 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
581 | if Mesh == "SpecialMesh" then | |
582 | Msh.MeshType = MeshType | |
583 | Msh.MeshId = MeshId | |
584 | end | |
585 | return Msh | |
586 | end | |
587 | ||
588 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
589 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
590 | return Weld | |
591 | end | |
592 | ||
593 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
594 | if hit.Parent == nil then | |
595 | return | |
596 | end | |
597 | local h = hit.Parent:FindFirstChild("Humanoid") | |
598 | for _,v in pairs(hit.Parent:children()) do | |
599 | if v:IsA("Humanoid") then | |
600 | h = v | |
601 | end | |
602 | end | |
603 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
604 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
605 | return | |
606 | end | |
607 | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h}) | |
608 | game:GetService("Debris"):AddItem(c, 0.5) | |
609 | if HitSound ~= nil and HitPitch ~= nil then | |
610 | CreateSound(HitSound, hit, 1, HitPitch) | |
611 | end | |
612 | local Damage = math.random(minim, maxim) | |
613 | local blocked = false | |
614 | local block = hit.Parent:findFirstChild("Block") | |
615 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
616 | blocked = true | |
617 | block.Value = block.Value - 1 | |
618 | print(block.Value) | |
619 | end | |
620 | if blocked == false then | |
621 | HitHealth = h.Health | |
622 | h.Health = h.Health - Damage | |
623 | if mana < 100 then | |
624 | mana = mana + math.random(5, 10) | |
625 | end | |
626 | if mana > 100 then | |
627 | mana = 100 | |
628 | end | |
629 | if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Lost Soul" then | |
630 | end | |
631 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
632 | else | |
633 | h.Health = h.Health - Damage / 2 | |
634 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
635 | end | |
636 | if Type == "Knockdown" then | |
637 | local hum = hit.Parent.Humanoid | |
638 | hum.PlatformStand = true | |
639 | coroutine.resume(coroutine.create(function(HHumanoid) | |
640 | swait(1) | |
641 | HHumanoid.PlatformStand = false | |
642 | end | |
643 | ), hum) | |
644 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
645 | local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
646 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
647 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
648 | game:GetService("Debris"):AddItem(rl, 0.5) | |
649 | else | |
650 | do | |
651 | if Type == "Normal" then | |
652 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05}) | |
653 | if knockback > 0 then | |
654 | vp.Parent = hit.Parent.Torso | |
655 | end | |
656 | game:GetService("Debris"):AddItem(vp, 0.5) | |
657 | else | |
658 | do | |
659 | if Type == "Up" then | |
660 | local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
661 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
662 | else | |
663 | do | |
664 | if Type == "DarkUp" then | |
665 | coroutine.resume(coroutine.create(function() | |
666 | for i = 0, 1, 0.1 do | |
667 | swait() | |
668 | BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1) | |
669 | end | |
670 | end | |
671 | )) | |
672 | local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
673 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
674 | else | |
675 | do | |
676 | if Type == "Snare" then | |
677 | local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
678 | game:GetService("Debris"):AddItem(bp, 1) | |
679 | else | |
680 | do | |
681 | if Type == "Freeze" then | |
682 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
683 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame}) | |
684 | hit.Parent.Torso.Anchored = true | |
685 | coroutine.resume(coroutine.create(function(Part) | |
686 | swait(1.5) | |
687 | Part.Anchored = false | |
688 | end | |
689 | ), hit.Parent.Torso) | |
690 | game:GetService("Debris"):AddItem(BodPos, 3) | |
691 | game:GetService("Debris"):AddItem(BodGy, 3) | |
692 | end | |
693 | do | |
694 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true}) | |
695 | game:GetService("Debris"):AddItem(debounce, Delay) | |
696 | c = Instance.new("ObjectValue") | |
697 | c.Name = "creator" | |
698 | c.Value = Player | |
699 | c.Parent = h | |
700 | game:GetService("Debris"):AddItem(c, 0.5) | |
701 | end | |
702 | end | |
703 | end | |
704 | end | |
705 | end | |
706 | end | |
707 | end | |
708 | end | |
709 | end | |
710 | end | |
711 | end | |
712 | end | |
713 | end | |
714 | ||
715 | ShowDamage = function(Pos, Text, Time, Color) | |
716 | local Rate = 0.033333333333333 | |
717 | if not Pos then | |
718 | local Pos = Vector3.new(0, 0, 0) | |
719 | end | |
720 | local Text = Text or "" | |
721 | local Time = Time or 2 | |
722 | if not Color then | |
723 | local Color = Color3.new(1, 0, 1) | |
724 | end | |
725 | local EffectPart = CreatePart(workspace, "Marble", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0)) | |
726 | EffectPart.Anchored = true | |
727 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart}) | |
728 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui}) | |
729 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
730 | EffectPart.Parent = game:GetService("Workspace") | |
731 | delay(0, function() | |
732 | local Frames = Time / Rate | |
733 | for Frame = 1, Frames do | |
734 | wait(Rate) | |
735 | local Percent = Frame / Frames | |
736 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
737 | TextLabel.TextTransparency = Percent | |
738 | end | |
739 | if EffectPart and EffectPart.Parent then | |
740 | EffectPart:Destroy() | |
741 | end | |
742 | end | |
743 | ) | |
744 | end | |
745 | ||
746 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type) | |
747 | for _,c in pairs(workspace:children()) do | |
748 | local hum = c:findFirstChild("Humanoid") | |
749 | if hum ~= nil then | |
750 | local head = c:findFirstChild("Torso") | |
751 | if head ~= nil then | |
752 | local targ = head.Position - Part.Position | |
753 | local mag = targ.magnitude | |
754 | if mag <= magni and c.Name ~= Player.Name then | |
755 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1) | |
756 | end | |
757 | end | |
758 | end | |
759 | end | |
760 | end | |
761 | ||
762 | Handle = CreatePart(m, Enum.Material.Marble, 0, 1, "Royal purple", "Handle", Vector3.new(0.200000003, 1.57000017, 0.200000003)) | |
763 | HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.982839942, 0.146006823, 0.234023571, 0.211453959, -0.977137685, 0.0221185088, -0.0402157828, -0.0313093588, -0.99870044, 0.976560295, 0.210289627, -0.0459168404)) | |
764 | CreateMesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5)) | |
765 | FakeHandle = CreatePart(m, Enum.Material.Marble, 0, 1, "Royal purple", "FakeHandle", Vector3.new(0.200000003, 1.57000017, 0.200000003)) | |
766 | FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012)) | |
767 | Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(0.200000003, 1, 0.200000003)) | |
768 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.07288361e-006, 0.683865368, -4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012)) | |
769 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(2, 0.5, 2)) | |
770 | Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1)) | |
771 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31791997, -0.975689411, 2.925138, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638)) | |
772 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003)) | |
773 | Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 0.729999959, 1)) | |
774 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.4692868, -3.70743895, -1.52587891e-005, 0.916809797, -0.399324507, 1.15483999e-006, 0.399324447, 0.916809678, -4.00096178e-006, 5.56348823e-007, 4.12762165e-006, 1)) | |
775 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003)) | |
776 | Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1)) | |
777 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31796861, -0.99111104, 3.62495184, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638)) | |
778 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003)) | |
779 | Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1)) | |
780 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.64674854, -0.903340101, -0.354405403, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992)) | |
781 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003)) | |
782 | Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1)) | |
783 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155968666, -0.981806874, 5.01632404, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005)) | |
784 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003)) | |
785 | Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1)) | |
786 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.015683651, -0.99636519, 4.31590414, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005)) | |
787 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003)) | |
788 | Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1)) | |
789 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.2746892, -0.975648642, 2.9260354, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299)) | |
790 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003)) | |
791 | Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1)) | |
792 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.27468133, -0.991158009, 3.62575912, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299)) | |
793 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003)) | |
794 | Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1)) | |
795 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155587196, -1.11407149, 4.663311, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005)) | |
796 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012)) | |
797 | Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1)) | |
798 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0131573677, 0.00466442108, 4.61167336, -1.74657907e-006, -1.09747052e-005, -1.00000012, 0.764525652, -0.644593418, 5.77419996e-006, -0.644593358, -0.764525771, 9.49576497e-006)) | |
799 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012)) | |
800 | Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1)) | |
801 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.6467495, -0.918762922, 0.345379829, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992)) | |
802 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003)) | |
803 | Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
804 | ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00376915932, -3.44346094, -0.00172424316, -1.00000012, -1.70432031e-006, 1.69267878e-007, 1.70432031e-006, -1.00000012, -2.12341547e-007, 1.75088644e-007, -2.12341547e-007, 1.00000012)) | |
805 | CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.300000012, 0.200000003)) | |
806 | Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1)) | |
807 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.31130219e-006, -3.5749507, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012)) | |
808 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 0.400000006)) | |
809 | Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 4.57000017, 0.200000003)) | |
810 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.96046448e-007, -1.50000107, 9.53674316e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012)) | |
811 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5)) | |
812 | Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 1.16999996, 1)) | |
813 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68149614, -0.0198745728, -1.09672546e-005, 0.0220478568, 0.999756992, -2.0749867e-006, -0.999756932, 0.0220478605, -1.48452818e-006, -1.42678618e-006, 2.10851431e-006, 1.00000012)) | |
814 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
815 | Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 0.870000005, 1)) | |
816 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71543217, -0.0690839291, -9.53674316e-006, 0.19052954, 0.981681645, -1.97067857e-006, -0.981681526, 0.190529525, -1.91386789e-006, -1.49046537e-006, 2.29105353e-006, 1.00000012)) | |
817 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.899999976)) | |
818 | Part22 = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part22", Vector3.new(1, 0.729999959, 1)) | |
819 | PartWeld = CreateWeld(m, FakeHandle, Part22, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.51120782, -3.69066477, -7.15255737e-006, 0.911903143, 0.410405785, -3.35276127e-007, -0.410405725, 0.911903143, -1.79186463e-006, -4.35044058e-007, 1.76206231e-006, 1.00000012)) | |
820 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003)) | |
821 | Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 0.870000005, 1)) | |
822 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71087646, -0.0231897831, -6.19888306e-006, 0.318961442, 0.947767794, -1.48266554e-006, -0.947767675, 0.318961442, -2.70921737e-006, -2.10118014e-006, 2.26870179e-006, 1.00000012)) | |
823 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.850000024)) | |
824 | Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 0.769999981, 1)) | |
825 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68154573, -0.4009372, -5.7220459e-006, 0.516243339, 0.856442034, -8.04662704e-007, -0.856442034, 0.516243339, -4.18536365e-006, -3.15741636e-006, 2.8423965e-006, 1.00000012)) | |
826 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000012)) | |
827 | Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 2.57999992, 0.200000003)) | |
828 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.4570694e-006, 1.91385686, 4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012)) | |
829 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
830 | Hitbox = CreatePart(m, Enum.Material.Marble, 0, 1, "Black", "Hitbox", Vector3.new(2.4000001, 3.67000008, 0.399999976)) | |
831 | HitboxWeld = CreateWeld(m, FakeHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.76720476, 3.04898357, 0.00860214233, -0.699169815, 0.713988841, 0.0371726528, -0.713755548, -0.700063348, 0.0215496495, 0.0414094217, -0.0114653222, 0.999076545)) | |
832 | rayCast = function(Position, Direction, Range, Ignore) | |
833 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
834 | end | |
835 | ||
836 | ||
837 | Spawn(function() | |
838 | while wait() do | |
839 | Magik(LeftArm) | |
840 | end | |
841 | end) | |
842 | ||
843 | Spawn(function() | |
844 | while wait() do | |
845 | Magik2(LeftArm) | |
846 | end | |
847 | end) | |
848 | ||
849 | ||
850 | CreateSound = function(id, parent, vol, pit, looped) | |
851 | coroutine.resume(coroutine.create(function() | |
852 | local sou = Instance.new("Sound", parent or workspace) | |
853 | sou.Volume = vol | |
854 | sou.Pitch = pit or 1 | |
855 | sou.SoundId = id | |
856 | sou.Looped = looped | |
857 | swait() | |
858 | sou:play() | |
859 | game:GetService("Debris"):AddItem(sou, 6) | |
860 | end | |
861 | )) | |
862 | end | |
863 | ||
864 | ||
865 | local getclosest = function(obj, distance) | |
866 | local last, lastx = distance + 1, nil | |
867 | for i,v in pairs(workspace:GetChildren()) do | |
868 | if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then | |
869 | local t = v.Torso | |
870 | local dist = t.Position - obj.Position.magnitude | |
871 | if dist <= distance and dist < last then | |
872 | last = dist | |
873 | lastx = v | |
874 | end | |
875 | end | |
876 | end | |
877 | return lastx | |
878 | end | |
879 | ||
880 | BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
881 | local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new()) | |
882 | prt.Anchored = true | |
883 | prt.CFrame = cframe | |
884 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
885 | game:GetService("Debris"):AddItem(prt, 10) | |
886 | if Type == 1 or Type == nil then | |
887 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
888 | else | |
889 | if Type == 2 then | |
890 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
891 | end | |
892 | end | |
893 | end | |
894 | ||
895 | SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
896 | local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new()) | |
897 | prt.Anchored = true | |
898 | prt.CFrame = cframe | |
899 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
900 | game:GetService("Debris"):AddItem(prt, 10) | |
901 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
902 | end | |
903 | ||
904 | RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
905 | local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
906 | prt.Anchored = true | |
907 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
908 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
909 | game:GetService("Debris"):AddItem(prt, 10) | |
910 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
911 | end | |
912 | ||
913 | CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
914 | local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new()) | |
915 | prt.Anchored = true | |
916 | prt.CFrame = cframe | |
917 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
918 | game:GetService("Debris"):AddItem(prt, 10) | |
919 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
920 | end | |
921 | ||
922 | WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
923 | local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new()) | |
924 | prt.Anchored = true | |
925 | prt.CFrame = cframe | |
926 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
927 | game:GetService("Debris"):AddItem(prt, 10) | |
928 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
929 | end | |
930 | ||
931 | SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
932 | local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new()) | |
933 | prt.Anchored = true | |
934 | prt.CFrame = cframe | |
935 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
936 | game:GetService("Debris"):AddItem(prt, 10) | |
937 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
938 | end | |
939 | ||
940 | DragonEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
941 | local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new()) | |
942 | prt.Anchored = true | |
943 | prt.CFrame = cframe | |
944 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://51177741", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
945 | game:GetService("Debris"):AddItem(prt, 10) | |
946 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
947 | end | |
948 | ||
949 | BreakEffect = function(brickcolor, cframe, x1, y1, z1) | |
950 | local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
951 | prt.Anchored = true | |
952 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
953 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
954 | local num = math.random(10, 50) / 1000 | |
955 | game:GetService("Debris"):AddItem(prt, 10) | |
956 | table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100}) | |
957 | end | |
958 | ||
959 | attackone = function() | |
960 | attack = true | |
961 | for i = 0, 1, 0.1 do | |
962 | swait() | |
963 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3) | |
964 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3) | |
965 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3) | |
966 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3) | |
967 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3) | |
968 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
969 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2) | |
970 | end | |
971 | local con = Hitbox.Touched:connect(function(hit) | |
972 | Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
973 | end | |
974 | ) | |
975 | CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1) | |
976 | for i = 0, 1, 0.1 do | |
977 | swait() | |
978 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3) | |
979 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3) | |
980 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
981 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3) | |
982 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3) | |
983 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
984 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2) | |
985 | end | |
986 | con:disconnect() | |
987 | attack = false | |
988 | end | |
989 | ||
990 | Deathwish = function() | |
991 | attack = true | |
992 | CreateSound("http://www.roblox.com/asset/?id=231917970", RootPart, 1, 1) | |
993 | for i = 0, 1, 0.05 do | |
994 | swait() | |
995 | WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 1, 0.1, 1, 0.09) | |
996 | BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.08, 1) | |
997 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3) | |
998 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3) | |
999 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3) | |
1000 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
1001 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1002 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1003 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2) | |
1004 | end | |
1005 | MagniDamage(RootPart, 5599, 1099, 1599, 0, "DarkUp") | |
1006 | CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1) | |
1007 | BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1) | |
1008 | WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 2, 0.1, 2, 0.07) | |
1009 | for i = 0, 1, 0.05 do | |
1010 | swait() | |
1011 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3) | |
1012 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3) | |
1013 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3) | |
1014 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3) | |
1015 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1016 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1017 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2) | |
1018 | end | |
1019 | for i = 0, 1, 0.1 do | |
1020 | swait() | |
1021 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-110)), 0.3) | |
1022 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(100)), 0.3) | |
1023 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3) | |
1024 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-80), math.rad(-90)), 0.3) | |
1025 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1026 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1027 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2) | |
1028 | end | |
1029 | MagniDamage(RootPart, 55, 5, 10, -70, "Knockdown") | |
1030 | CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1.2) | |
1031 | SphereEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 10, 10, 10, 0.06) | |
1032 | BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1) | |
1033 | WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 0.5, 1, 0.5, 0.07) | |
1034 | for i = 0, 1, 0.1 do | |
1035 | swait() | |
1036 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3) | |
1037 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(50)), 0.3) | |
1038 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3) | |
1039 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
1040 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1041 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1042 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2) | |
1043 | end | |
1044 | attack = false | |
1045 | end | |
1046 | ||
1047 | ChaosDriver = function() | |
1048 | attack = true | |
1049 | for i = 0, 1, 0.05 do | |
1050 | swait() | |
1051 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3) | |
1052 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3) | |
1053 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3) | |
1054 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3) | |
1055 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3) | |
1056 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1057 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2) | |
1058 | end | |
1059 | CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1) | |
1060 | coroutine.resume(coroutine.create(function() | |
1061 | for i = 1, 5 do | |
1062 | swait() | |
1063 | local ef = CreatePart(workspace, "Marble", 0, 1, BrickColor.new("Black"), "Effect", vt()) | |
1064 | ef.Anchored = true | |
1065 | ef.CFrame = RootPart.CFrame * cf(0, 0, -10 * i) | |
1066 | MagniDamage(ef, 17, 10, 15, 1, "DarkUp") | |
1067 | game:GetService("Debris"):AddItem(ef, 0.5) | |
1068 | CreateSound("http://www.roblox.com/asset/?id=231917784", ef, 1, 0.7) | |
1069 | DragonEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 170, 5, 0, -10, 0, 0.07) | |
1070 | DragonEffect(BrickColor.new("Magenta"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 150, 5, 0, -10, 0, 0.07) | |
1071 | SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08) | |
1072 | SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07) | |
1073 | SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08) | |
1074 | SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07) | |
1075 | end | |
1076 | end | |
1077 | )) | |
1078 | for i = 0, 1, 0.1 do | |
1079 | swait() | |
1080 | BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1) | |
1081 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3) | |
1082 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3) | |
1083 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
1084 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3) | |
1085 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3) | |
1086 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1087 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2) | |
1088 | end | |
1089 | attack = false | |
1090 | end | |
1091 | ||
1092 | attacktwo = function() | |
1093 | attack = true | |
1094 | soundn = true | |
1095 | for i = 0, 1, 0.1 do | |
1096 | swait() | |
1097 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3) | |
1098 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3) | |
1099 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3) | |
1100 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3) | |
1101 | RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3) | |
1102 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1103 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2) | |
1104 | end | |
1105 | local con = Hitbox.Touched:connect(function(hit) | |
1106 | Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1107 | end | |
1108 | ) | |
1109 | CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1) | |
1110 | coroutine.resume(coroutine.create(function() | |
1111 | while soundn do | |
1112 | wait(0.3) | |
1113 | CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1) | |
1114 | end | |
1115 | end | |
1116 | )) | |
1117 | for i = 0, 1, 0.1 do | |
1118 | swait() | |
1119 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3) | |
1120 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3) | |
1121 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
1122 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3) | |
1123 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3) | |
1124 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1125 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2) | |
1126 | end | |
1127 | con:disconnect() | |
1128 | soundn = false | |
1129 | attack = false | |
1130 | end | |
1131 | ||
1132 | local soundn = false | |
1133 | attackthree = function() | |
1134 | attack = true | |
1135 | soundn = true | |
1136 | for i = 0, 1, 0.1 do | |
1137 | swait() | |
1138 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3) | |
1139 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3) | |
1140 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3) | |
1141 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3) | |
1142 | RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3) | |
1143 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1144 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2) | |
1145 | end | |
1146 | local con = Hitbox.Touched:connect(function(hit) | |
1147 | Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1148 | end | |
1149 | ) | |
1150 | CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1) | |
1151 | coroutine.resume(coroutine.create(function() | |
1152 | while soundn do | |
1153 | wait(0.3) | |
1154 | CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1) | |
1155 | end | |
1156 | end | |
1157 | )) | |
1158 | for i = 0, 1, 0.1 do | |
1159 | swait() | |
1160 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3) | |
1161 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3) | |
1162 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
1163 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3) | |
1164 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3) | |
1165 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1166 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2) | |
1167 | end | |
1168 | con:disconnect() | |
1169 | soundn = false | |
1170 | attack = false | |
1171 | end | |
1172 | ||
1173 | ThanatosDriver = function() | |
1174 | attack = true | |
1175 | for i = 0, 1, 0.1 do | |
1176 | swait() | |
1177 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3) | |
1178 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3) | |
1179 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3) | |
1180 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3) | |
1181 | RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3) | |
1182 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1183 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2) | |
1184 | end | |
1185 | local con = Hitbox.Touched:connect(function(hit) | |
1186 | Damagefunc(Hitbox, hit, 30, 30, 50, "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1187 | end | |
1188 | ) | |
1189 | CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 0.7) | |
1190 | for i = 0, 1, 0.1 do | |
1191 | swait() | |
1192 | BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1) | |
1193 | BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2) | |
1194 | DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(-90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08) | |
1195 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(100)), 0.3) | |
1196 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3) | |
1197 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(30)), 0.3) | |
1198 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3) | |
1199 | RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3) | |
1200 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1201 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(170)), 0.2) | |
1202 | end | |
1203 | con:disconnect() | |
1204 | attack = false | |
1205 | end | |
1206 | ||
1207 | LastResort = function() | |
1208 | attack = true | |
1209 | soundn = true | |
1210 | CreateSound("http://www.roblox.com/asset/?id=233096557", Torso, 1, 1) | |
1211 | MagniDamage(RootPart, 10, 5, 10, 0, "Knockdown") | |
1212 | SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08) | |
1213 | SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07) | |
1214 | SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08) | |
1215 | SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07) | |
1216 | ||
1217 | RootPart.CFrame = RootPart.CFrame * cf(0, 0, 20) | |
1218 | for i = 0, 1, 0.1 do | |
1219 | swait() | |
1220 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3) | |
1221 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3) | |
1222 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3) | |
1223 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3) | |
1224 | RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3) | |
1225 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1226 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2) | |
1227 | end | |
1228 | CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1) | |
1229 | coroutine.resume(coroutine.create(function() | |
1230 | while soundn do | |
1231 | wait(0.5) | |
1232 | CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1) | |
1233 | end | |
1234 | end | |
1235 | )) | |
1236 | for i = 0, 1, 0.1 do | |
1237 | swait() | |
1238 | MagniDamage(RootPart, 10, 5, 10, 0, "Normal") | |
1239 | Torso.Velocity = RootPart.CFrame.lookVector * 100 | |
1240 | BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1) | |
1241 | BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2) | |
1242 | DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08) | |
1243 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3) | |
1244 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3) | |
1245 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
1246 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3) | |
1247 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3) | |
1248 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1249 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2) | |
1250 | end | |
1251 | for i = 0, 1, 0.1 do | |
1252 | swait() | |
1253 | MagniDamage(RootPart, 10, 3, 3, 0, "Normal") | |
1254 | Torso.Velocity = RootPart.CFrame.lookVector * 100 | |
1255 | BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1) | |
1256 | BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2) | |
1257 | DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08) | |
1258 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3) | |
1259 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3) | |
1260 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
1261 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3) | |
1262 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3) | |
1263 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1264 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2) | |
1265 | end | |
1266 | soundn = false | |
1267 | attack = false | |
1268 | end | |
1269 | ||
1270 | ob1u = function() | |
1271 | end | |
1272 | ||
1273 | ob1d = function() | |
1274 | if attack == false and attacktype == 1 then | |
1275 | attacktype = 2 | |
1276 | attackone() | |
1277 | else | |
1278 | if attack == false and attacktype == 2 then | |
1279 | attacktype = 3 | |
1280 | attacktwo() | |
1281 | else | |
1282 | if attack == false and attacktype == 3 then | |
1283 | attacktype = 1 | |
1284 | attackthree() | |
1285 | end | |
1286 | end | |
1287 | end | |
1288 | end | |
1289 | ||
1290 | key = function(k) | |
1291 | k = k:lower() | |
1292 | if attack == false and k == "z" and zenabled == true then | |
1293 | zenabled = false | |
1294 | coroutine.resume(coroutine.create(function() | |
1295 | for i = 1, 0, -0.02 do | |
1296 | swait() | |
1297 | fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0) | |
1298 | end | |
1299 | zenabled = true | |
1300 | fenframe1a.Size = UDim2.new(0, 0, 0.1, 0) | |
1301 | - | rs.RenderStepped:connect(function() |
1301 | + | |
1302 | - | FPS = 1 / rs.RenderStepped:wait() |
1302 | + | |
1303 | ThanatosDriver() | |
1304 | else | |
1305 | if attack == false and k == "x" and xenabled == true then | |
1306 | xenabled = false | |
1307 | coroutine.resume(coroutine.create(function() | |
1308 | for i = 1, 0, -0.005 do | |
1309 | swait() | |
1310 | fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0) | |
1311 | end | |
1312 | xenabled = true | |
1313 | fenframe2a.Size = UDim2.new(0, 0, 0.1, 0) | |
1314 | end | |
1315 | )) | |
1316 | LastResort() | |
1317 | else | |
1318 | if attack == false and k == "c" and cenabled == true then | |
1319 | cenabled = false | |
1320 | coroutine.resume(coroutine.create(function() | |
1321 | for i = 1, 0, -0.0025 do | |
1322 | swait() | |
1323 | fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0) | |
1324 | end | |
1325 | cenabled = true | |
1326 | fenframe3a.Size = UDim2.new(0, 0, 0.1, 0) | |
1327 | end | |
1328 | )) | |
1329 | ChaosDriver() | |
1330 | else | |
1331 | if attack == false and k == "v" and venabled == true then | |
1332 | venabled = false | |
1333 | coroutine.resume(coroutine.create(function() | |
1334 | for i = 1, 0, -0.0005 do | |
1335 | swait() | |
1336 | fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0) | |
1337 | end | |
1338 | venabled = true | |
1339 | fenframe4a.Size = UDim2.new(0, 0, 0.1, 0) | |
1340 | end | |
1341 | )) | |
1342 | Deathwish() | |
1343 | end | |
1344 | end | |
1345 | end | |
1346 | end | |
1347 | end | |
1348 | ||
1349 | s = function(mouse) | |
1350 | mouse.Button1Down:connect(function() | |
1351 | ob1d(mouse) | |
1352 | end | |
1353 | ) | |
1354 | mouse.Button1Up:connect(function() | |
1355 | ob1u(mouse) | |
1356 | end | |
1357 | ) | |
1358 | mouse.KeyDown:connect(key) | |
1359 | end | |
1360 | ||
1361 | s(mouse) | |
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | ||
1367 | ||
1368 | rs = game:GetService'RunService' | |
1369 | plrs = game:GetService'Players' | |
1370 | lp = plrs.LocalPlayer | |
1371 | c = lp.Character | |
1372 | root = lp.Character.HumanoidRootPart | |
1373 | human = c.Humanoid | |
1374 | FPS = 0 | |
1375 | inf = 0 | |
1376 | opos1 = Vector3.new() | |
1377 | opos2 = Vector3.new() | |
1378 | opos3 = Vector3.new() | |
1379 | waves = Instance.new("Model", c) | |
1380 | res = Instance.new("Model", c) | |
1381 | ||
1382 | local function b() | |
1383 | local t=tick(); | |
1384 | local l=t%1*3; | |
1385 | local t=.5*math.pi*(l%1); | |
1386 | if l<1 then | |
1387 | return Color3.new(47,0,32); | |
1388 | elseif l<2 then | |
1389 | return Color3.new(47,0,35); | |
1390 | else | |
1391 | return Color3.new(0,0,0); | |
1392 | end; | |
1393 | end; | |
1394 | speedParts = function() | |
1395 | for i = 1, 4 do | |
1396 | local pos = Vector3.new(math.sin(math.rad(inf + 360 * i)) * 2, math.sin(math.rad(inf + 260 * i) + math.pi / 2) * 2, -Hitbox.Velocity / 5) * (math.sin(tick()) + 2) | |
1397 | local CFramepos = Hitbox.CFrame:toWorldSpace(CFrame.new(pos)).p | |
1398 | local opos | |
1399 | if i == 1 then | |
1400 | opos = opos1 | |
1401 | elseif i == 2 then | |
1402 | opos = opos2 | |
1403 | else | |
1404 | opos = opos3 | |
1405 | end | |
1406 | local e | |
1407 | if #res:children() <= 3 then | |
1408 | e = Instance.new("Part") | |
1409 | else | |
1410 | e = res:FindFirstChild("Trail") | |
1411 | end | |
1412 | e.Parent = waves | |
1413 | e.Anchored = false | |
1414 | e.CanCollide = false | |
1415 | e.Transparency = 0 | |
1416 | e.Material = "Neon" | |
1417 | e.Name = "Trail" | |
1418 | e.Color = b(); --Color = a(); | |
1419 | e.Size = Vector3.new(.01, (CFramepos - opos).magnitude, .01) | |
1420 | e.CFrame = CFrame.new((CFramepos + opos) / 2, opos) * CFrame.Angles(math.pi / 2, 0, 0) | |
1421 | if i == 1 then | |
1422 | opos1 = CFramepos | |
1423 | elseif i == 2 then | |
1424 | opos2 = CFramepos | |
1425 | else | |
1426 | opos3 = CFramepos | |
1427 | end | |
1428 | end | |
1429 | end | |
1430 | ||
1431 | rs.Stepped:connect(function() | |
1432 | FPS = 1 / rs.Stepped:wait() | |
1433 | for i, v in pairs (waves:children()) do | |
1434 | v.Transparency = v.Transparency + .05 / (FPS / 400) | |
1435 | if v.Transparency >= .98 then | |
1436 | v.Transparency = 1 | |
1437 | v.Parent = res | |
1438 | end | |
1439 | end | |
1440 | inf = inf + (30 + root.Velocity.magnitude / 15) / (FPS / 400) | |
1441 | speedParts() | |
1442 | end) | |
1443 | ||
1444 | ||
1445 | ||
1446 | ||
1447 | ||
1448 | ||
1449 | while 1 do | |
1450 | swait() | |
1451 | Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude | |
1452 | velocity = RootPart.Velocity.y | |
1453 | sine = sine + change | |
1454 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
1455 | if equipped == true or equipped == false then | |
1456 | if 1 < RootPart.Velocity.y and hit == nil then | |
1457 | Anim = "Jump" | |
1458 | if attack == false then | |
1459 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1460 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3) | |
1461 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3) | |
1462 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1463 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1464 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1465 | end | |
1466 | else | |
1467 | if RootPart.Velocity.y < -1 and hit == nil then | |
1468 | Anim = "Fall" | |
1469 | if attack == false then | |
1470 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3) | |
1471 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3) | |
1472 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3) | |
1473 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1474 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1475 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1476 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2) | |
1477 | end | |
1478 | else | |
1479 | if Torsovelocity.x < 1 and Torsovelocity.z < 1 and hit ~= nil then | |
1480 | Anim = "Idle" | |
1481 | if attack == false then | |
1482 | change = 1 | |
1483 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(20), math.rad(-20), math.rad(-80)), 0.3) | |
1484 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(80)), 0.3) | |
1485 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3) | |
1486 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3) | |
1487 | RH.C0 = clerp(RH.C0, cf(1, -1.2 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), 0.3) | |
1488 | LH.C0 = clerp(LH.C0, cf(-1.3, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) | |
1489 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(70 - 1 * math.cos((sine) / 9)), math.rad(70)), 0.3) | |
1490 | end | |
1491 | else | |
1492 | if Torsovelocity.x > 2 and Torsovelocity.z > 2 and hit ~= nil then | |
1493 | Anim = "Walk" | |
1494 | if attack == false then | |
1495 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(10), math.rad(-5), math.rad(-30)), 0.3) | |
1496 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(30)), 0.3) | |
1497 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, 0) * angles(math.rad(50), math.rad(0), math.rad(-10)), 0.3) | |
1498 | LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3) | |
1499 | RH.C0 = clerp(RH.C0, cf(1, -1, 0 + 0.5 * math.cos((sine) / 5)) * RHCF * angles(math.rad(0), math.rad(0), math.rad(10 - 50 * math.cos((sine) / 5))), 0.3) | |
1500 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5 - 0.5 * math.cos((sine) / 5)) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10 - 50 * math.cos((sine) / 5))), 0.3) | |
1501 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(50 - 1 * math.cos((sine) / 9)), math.rad(120)), 0.3) | |
1502 | end | |
1503 | end | |
1504 | end | |
1505 | end | |
1506 | end | |
1507 | end | |
1508 | if 0 < #Effects then | |
1509 | for e = 1, #Effects do | |
1510 | if Effects[e] ~= nil then | |
1511 | local Thing = Effects[e] | |
1512 | if Thing ~= nil then | |
1513 | local Part = Thing[1] | |
1514 | local Mode = Thing[2] | |
1515 | local Delay = Thing[3] | |
1516 | local IncX = Thing[4] | |
1517 | local IncY = Thing[5] | |
1518 | local IncZ = Thing[6] | |
1519 | if Thing[1].Transparency <= 1 then | |
1520 | if Thing[2] == "Block1" then | |
1521 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1522 | Mesh = Thing[1].Mesh | |
1523 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1524 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1525 | else | |
1526 | if Thing[2] == "Block2" then | |
1527 | Thing[1].CFrame = Thing[1].CFrame | |
1528 | Mesh = Thing[7] | |
1529 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1530 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1531 | else | |
1532 | if Thing[2] == "Cylinder" then | |
1533 | Mesh = Thing[1].Mesh | |
1534 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1535 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1536 | else | |
1537 | if Thing[2] == "Blood" then | |
1538 | Mesh = Thing[7] | |
1539 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1540 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1541 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1542 | else | |
1543 | if Thing[2] == "Elec" then | |
1544 | Mesh = Thing[1].Mesh | |
1545 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1546 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1547 | else | |
1548 | if Thing[2] == "Disappear" then | |
1549 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1550 | else | |
1551 | if Thing[2] == "Shatter" then | |
1552 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1553 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1554 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1555 | Thing[6] = Thing[6] + Thing[5] | |
1556 | end | |
1557 | end | |
1558 | end | |
1559 | end | |
1560 | end | |
1561 | end | |
1562 | end | |
1563 | else | |
1564 | Part.Parent = nil | |
1565 | table.remove(Effects, e) | |
1566 | end | |
1567 | end | |
1568 | end | |
1569 | end | |
1570 | end | |
1571 | end |