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