SHOW:
|
|
- or go back to the newest paste.
1 | - | --[[Magic Unknown, By KillerDarkness0105/Codex#6685.]]-- |
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,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --[[Magic Unknown, By KillerDarkness0105/Codex#6685.]]-- | |
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | Player=game:GetService("Players").LocalPlayer | |
12 | Character=Player.Character | |
13 | PlayerGui=Player.PlayerGui | |
14 | Backpack=Player.Backpack | |
15 | Torso=Character.Torso | |
16 | Head=Character.Head | |
17 | Humanoid=Character.Humanoid | |
18 | LeftArm=Character["Left Arm"] | |
19 | LeftLeg=Character["Left Leg"] | |
20 | RightArm=Character["Right Arm"] | |
21 | RightLeg=Character["Right Leg"] | |
22 | LS=Torso["Left Shoulder"] | |
23 | LH=Torso["Left Hip"] | |
24 | RS=Torso["Right Shoulder"] | |
25 | RH=Torso["Right Hip"] | |
26 | Face = Head.face | |
27 | Neck=Torso.Neck | |
28 | it=Instance.new | |
29 | attacktype=1 | |
30 | attacktype2=1 | |
31 | vt=Vector3.new | |
32 | it=Instance.new | |
33 | cf=CFrame.new | |
34 | cn=CFrame.new | |
35 | euler=CFrame.fromEulerAnglesXYZ | |
36 | angles=CFrame.Angles | |
37 | combo = 0 | |
38 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
39 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
40 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
41 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
42 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
43 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
44 | RootPart=Character.HumanoidRootPart | |
45 | RootJoint=RootPart.RootJoint | |
46 | RootCF=euler(-1.57,0,3.14) | |
47 | attack = false | |
48 | attackdebounce = false | |
49 | trispeed=.2 | |
50 | attackmode='none' | |
51 | local idle=0 | |
52 | local Anim="Idle" | |
53 | stance = false | |
54 | local ff = 2 | |
55 | noleg = false | |
56 | evadecooldown = false | |
57 | Humanoid.Animator.Parent = nil | |
58 | local equip = false | |
59 | local Effects = {} | |
60 | attackspeed = 0.14 | |
61 | df = false | |
62 | Swing = 1 | |
63 | local sine = 0 | |
64 | local change = 1 | |
65 | local val = 0 | |
66 | local speed = 0 | |
67 | local rs = game:GetService("RunService").RenderStepped | |
68 | cam = workspace.CurrentCamera | |
69 | local RbxUtility = LoadLibrary("RbxUtility") | |
70 | local Create = RbxUtility.Create | |
71 | deb = game:GetService("Debris") | |
72 | Face:Destroy() | |
73 | ||
74 | --game.Lighting.TimeOfDay = 210 | |
75 | ||
76 | local eye1 = Instance.new("Part") | |
77 | eye1.Parent = Character | |
78 | eye1.Size = Vector3.new(0.2,0.2,0.2) | |
79 | eye1.Archivable = true | |
80 | eye1.Transparency = 0 | |
81 | eye1.CanCollide = false | |
82 | eye1.Material = "Neon" | |
83 | eye1.Color = Color3.fromRGB(48,0,211) | |
84 | local eye1mesh = Instance.new("SpecialMesh",eye1) | |
85 | eye1mesh.MeshType = "Sphere" | |
86 | eye1mesh.Scale = Vector3.new(0.66,1.22,0.66) | |
87 | ko2 = eye1mesh.Scale | |
88 | local eye1weld = Instance.new("Weld") | |
89 | eye1weld.Parent = eye1 | |
90 | eye1weld.Part0 = Head | |
91 | eye1weld.Part1 = eye1 | |
92 | eye1weld.C0 = CFrame.new(.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
93 | eye1weld.Part0 = Head | |
94 | ||
95 | ||
96 | ||
97 | ||
98 | local eye2 = Instance.new("Part") | |
99 | eye2.Parent = Character | |
100 | eye2.Size = Vector3.new(0.2,0.2,0.2) | |
101 | eye2.Archivable = true | |
102 | eye2.Transparency = 0 | |
103 | eye2.CanCollide = false | |
104 | eye2.Material = "Neon" | |
105 | eye2.Color = Color3.fromRGB(48,0,211) | |
106 | local eye2mesh = Instance.new("SpecialMesh",eye2) | |
107 | eye2mesh.MeshType = "Sphere" | |
108 | eye2mesh.Scale = Vector3.new(0.66,1.22,0.66) | |
109 | local eye2weld = Instance.new("Weld") | |
110 | eye2weld.Parent = eye2 | |
111 | eye2weld.Part0 = Head | |
112 | eye2weld.Part1 = eye2 | |
113 | eye2weld.C0 = CFrame.new(-.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
114 | eye2weld.Part0 = Head | |
115 | ||
116 | ||
117 | ||
118 | ||
119 | music = Instance.new("Sound",PlayerGui) | |
120 | music.Volume = 1 | |
121 | music.TimePosition = 0 | |
122 | music.Pitch = 1 | |
123 | music.SoundId = "rbxassetid://1849245030" | |
124 | music.Looped = true | |
125 | music:Play() | |
126 | ||
127 | ||
128 | ||
129 | ||
130 | ||
131 | ||
132 | ||
133 | ||
134 | ||
135 | ||
136 | ||
137 | ||
138 | ||
139 | ||
140 | ||
141 | ||
142 | ||
143 | ||
144 | ||
145 | ||
146 | so = function(id,par,vol,pit) | |
147 | coroutine.resume(coroutine.create(function() | |
148 | local sou = Instance.new("Sound",par or workspace) | |
149 | sou.Volume=vol | |
150 | sou.Pitch=pit or 1 | |
151 | sou.SoundId=id | |
152 | sou:play() | |
153 | game:GetService("Debris"):AddItem(sou,8) | |
154 | end)) | |
155 | end | |
156 | ||
157 | --save shoulders | |
158 | RSH, LSH=nil, nil | |
159 | --welds | |
160 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
161 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
162 | LH=Torso["Left Hip"] | |
163 | RH=Torso["Right Hip"] | |
164 | TorsoColor=Torso.BrickColor | |
165 | function NoOutline(Part) | |
166 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
167 | end | |
168 | player=Player | |
169 | ch=Character | |
170 | RSH=ch.Torso["Right Shoulder"] | |
171 | LSH=ch.Torso["Left Shoulder"] | |
172 | -- | |
173 | RSH.Parent=nil | |
174 | LSH.Parent=nil | |
175 | -- | |
176 | RW.Name="Right Shoulder" | |
177 | RW.Part0=ch.Torso | |
178 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
179 | RW.C1=cf(0, 0.5, 0) | |
180 | RW.Part1=ch["Right Arm"] | |
181 | RW.Parent=ch.Torso | |
182 | -- | |
183 | LW.Name="Left Shoulder" | |
184 | LW.Part0=ch.Torso | |
185 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
186 | LW.C1=cf(0, 0.5, 0) | |
187 | LW.Part1=ch["Left Arm"] | |
188 | LW.Parent=ch.Torso | |
189 | ||
190 | ||
191 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
192 | local wld = Instance.new("Weld", wp1) | |
193 | wld.Part0 = wp0 | |
194 | wld.Part1 = wp1 | |
195 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
196 | end | |
197 | local rs = game:GetService("RunService").RenderStepped | |
198 | ||
199 | newWeld(RootPart, Torso, 0, -1, 0) | |
200 | Torso.Weld.C1 = CFrame.new(0, -1, 0) | |
201 | newWeld(Torso, LeftLeg, -0.5, -1, 0) | |
202 | LeftLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
203 | newWeld(Torso, RightLeg, 0.5, -1, 0) | |
204 | RightLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
205 | ||
206 | Player=game:GetService('Players').LocalPlayer | |
207 | Character=Player.Character | |
208 | mouse=Player:GetMouse() | |
209 | m=Instance.new('Model',Character) | |
210 | ||
211 | ||
212 | local function weldBetween(a, b) | |
213 | local weldd = Instance.new("ManualWeld") | |
214 | weldd.Part0 = a | |
215 | weldd.Part1 = b | |
216 | weldd.C0 = CFrame.new() | |
217 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
218 | weldd.Parent = a | |
219 | return weldd | |
220 | end | |
221 | ||
222 | ArtificialHB = Instance.new("BindableEvent", script) | |
223 | ArtificialHB.Name = "Heartbeat" | |
224 | ||
225 | script:WaitForChild("Heartbeat") | |
226 | ||
227 | frame = 1 / 80 | |
228 | tf = 0 | |
229 | allowframeloss = false | |
230 | tossremainder = false | |
231 | lastframe = tick() | |
232 | script.Heartbeat:Fire() | |
233 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
234 | tf = tf + s | |
235 | if tf >= frame then | |
236 | if allowframeloss then | |
237 | script.Heartbeat:Fire() | |
238 | lastframe = tick() | |
239 | else | |
240 | for i = 1, math.floor(tf / frame) do | |
241 | script.Heartbeat:Fire() | |
242 | end | |
243 | lastframe = tick() | |
244 | end | |
245 | if tossremainder then | |
246 | tf = 0 | |
247 | else | |
248 | tf = tf - frame * math.floor(tf / frame) | |
249 | end | |
250 | end | |
251 | end) | |
252 | ||
253 | --[[] | |
254 | function swait(num) | |
255 | if num == 0 or num == nil then | |
256 | ArtificialHB.Event:wait() | |
257 | else | |
258 | for i = 0, num do | |
259 | ArtificialHB.Event:wait() | |
260 | end | |
261 | end | |
262 | end | |
263 | ||
264 | ]] | |
265 | ||
266 | ||
267 | function swait(num) | |
268 | if num == 0 or num == nil then | |
269 | game:service("RunService").Stepped:wait() | |
270 | else | |
271 | for i = 0, num do | |
272 | game:service("RunService").Stepped:wait() | |
273 | end | |
274 | end | |
275 | end | |
276 | ||
277 | ||
278 | ||
279 | ||
280 | ||
281 | ||
282 | ||
283 | ||
284 | function RemoveOutlines(part) | |
285 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
286 | end | |
287 | ||
288 | ||
289 | part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
290 | local fp = it("Part") | |
291 | fp.formFactor = formfactor | |
292 | fp.Parent = parent | |
293 | fp.Reflectance = reflectance | |
294 | fp.Transparency = transparency | |
295 | fp.CanCollide = false | |
296 | fp.Locked = true | |
297 | fp.BrickColor = brickcolor | |
298 | fp.Name = name | |
299 | fp.Size = size | |
300 | fp.Position = Torso.Position | |
301 | NoOutline(fp) | |
302 | if fp.BrickColor == BrickColor.new("Dark indigo") then | |
303 | fp.Material = "Neon" | |
304 | else | |
305 | if fp.BrickColor == BrickColor.new("Really black") then | |
306 | fp.BrickColor = BrickColor.new("Really black") | |
307 | fp.Material = "Metal" | |
308 | else | |
309 | fp.Material = "Neon" | |
310 | end | |
311 | end | |
312 | fp:BreakJoints() | |
313 | return fp | |
314 | end | |
315 | ||
316 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
317 | local mesh = it(Mesh) | |
318 | mesh.Parent = part | |
319 | if Mesh == "SpecialMesh" then | |
320 | mesh.MeshType = meshtype | |
321 | if meshid ~= "nil" then | |
322 | mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid | |
323 | end | |
324 | end | |
325 | mesh.Offset = offset | |
326 | mesh.Scale = scale | |
327 | return mesh | |
328 | end | |
329 | weld = function(parent, part0, part1, c0) | |
330 | local weld = it("Weld") | |
331 | weld.Parent = parent | |
332 | weld.Part0 = part0 | |
333 | weld.Part1 = part1 | |
334 | weld.C0 = c0 | |
335 | return weld | |
336 | end | |
337 | ||
338 | F1 = Instance.new("Folder", Character) | |
339 | F1.Name = "Effects Folder" | |
340 | F2 = Instance.new("Folder", F1) | |
341 | F2.Name = "Effects" | |
342 | Triangle = function(a, b, c) | |
343 | end | |
344 | ||
345 | MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent) | |
346 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
347 | prt.Anchored = true | |
348 | prt.CFrame = cframe | |
349 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
350 | game:GetService("Debris"):AddItem(prt, 10) | |
351 | if Type == 1 or Type == nil then | |
352 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
353 | else | |
354 | if Type == 2 then | |
355 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
356 | else | |
357 | if Type == 3 then | |
358 | table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0}) | |
359 | end | |
360 | end | |
361 | end | |
362 | end | |
363 | MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
364 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
365 | prt.Anchored = true | |
366 | prt.CFrame = cframe | |
367 | msh = mesh("SpecialMesh", prt, "FileMesh", "14028428", vt(0, 0, 0), vt(x1, y1, z1)) | |
368 | game:GetService("Debris"):AddItem(prt, 10) | |
369 | table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe}) | |
370 | end | |
371 | MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
372 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
373 | prt.Anchored = true | |
374 | prt.CFrame = cframe | |
375 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
376 | game:GetService("Debris"):AddItem(prt, 10) | |
377 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
378 | end | |
379 | MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
380 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
381 | prt.Anchored = true | |
382 | prt.CFrame = cframe * cf(x2, y2, z2) | |
383 | local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1)) | |
384 | game:GetService("Debris"):AddItem(prt, 10) | |
385 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
386 | end | |
387 | MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push) | |
388 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
389 | prt.Anchored = true | |
390 | prt.CFrame = cframe | |
391 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
392 | game:GetService("Debris"):AddItem(prt, 10) | |
393 | table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push}) | |
394 | end | |
395 | MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
396 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
397 | prt.Anchored = true | |
398 | prt.CFrame = cframe | |
399 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
400 | game:GetService("Debris"):AddItem(prt, 10) | |
401 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
402 | end | |
403 | MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
404 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
405 | prt.Anchored = true | |
406 | prt.CFrame = cframe | |
407 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
408 | game:GetService("Debris"):AddItem(prt, 10) | |
409 | table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe}) | |
410 | end | |
411 | MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
412 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
413 | prt.Anchored = true | |
414 | prt.CFrame = cframe | |
415 | local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
416 | game:GetService("Debris"):AddItem(prt, 10) | |
417 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
418 | end | |
419 | ClangEffect = function(brickcolor, cframe, duration, decrease, size, power) | |
420 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
421 | prt.Anchored = true | |
422 | prt.CFrame = cframe | |
423 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5)) | |
424 | game:GetService("Debris"):AddItem(prt, 10) | |
425 | table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil}) | |
426 | end | |
427 | MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
428 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
429 | prt.Anchored = true | |
430 | prt.CFrame = cframe | |
431 | local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
432 | game:GetService("Debris"):AddItem(prt, 10) | |
433 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
434 | end | |
435 | MagicFire = function(brickcolor, cframe, x1, y1, z1, delay) | |
436 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
437 | prt.Anchored = true | |
438 | prt.CFrame = cframe | |
439 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
440 | game:GetService("Debris"):AddItem(prt, 10) | |
441 | table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh}) | |
442 | end | |
443 | MagicFireWave = function(brickcolor, cframe, x1, y1, z1) | |
444 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
445 | prt.Anchored = true | |
446 | prt.CFrame = cframe | |
447 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
448 | d = Instance.new("Decal") | |
449 | d.Parent = prt | |
450 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
451 | d.Face = "Top" | |
452 | d = Instance.new("Decal") | |
453 | d.Parent = prt | |
454 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
455 | d.Face = "Bottom" | |
456 | game:GetService("Debris"):AddItem(prt, 10) | |
457 | table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh}) | |
458 | end | |
459 | ElecEffect = function(cff, x, y, z) | |
460 | local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1)) | |
461 | prt.Anchored = true | |
462 | prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
463 | prt.CFrame = cf(prt.Position) | |
464 | game:GetService("Debris"):AddItem(prt, 10) | |
465 | xval = math.random() / 3 | |
466 | yval = math.random() / 3 | |
467 | zval = math.random() / 3 | |
468 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval)) | |
469 | Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh} | |
470 | end | |
471 | ||
472 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
473 | if SinglePlayer then | |
474 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
475 | end | |
476 | local List = {} | |
477 | for i, v in pairs(workspace:GetChildren()) do | |
478 | if v:IsA("Model") then | |
479 | if v:findFirstChild("Torso") then | |
480 | if v ~= Character then | |
481 | if (v.Torso.Position - Position).magnitude <= Distance then | |
482 | table.insert(List, v) | |
483 | end | |
484 | end | |
485 | end | |
486 | end | |
487 | end | |
488 | return List | |
489 | end | |
490 | ||
491 | ||
492 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
493 | local Part = Create("Part"){ | |
494 | Parent = Parent, | |
495 | Reflectance = Reflectance, | |
496 | Transparency = Transparency, | |
497 | CanCollide = false, | |
498 | Locked = true, | |
499 | BrickColor = BrickColor.new(tostring(BColor)), | |
500 | Name = Name, | |
501 | Size = Size, | |
502 | Material = Material, | |
503 | } | |
504 | RemoveOutlines(Part) | |
505 | return Part | |
506 | end | |
507 | ||
508 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
509 | local Msh = Create(Mesh){ | |
510 | Parent = Part, | |
511 | Offset = OffSet, | |
512 | Scale = Scale, | |
513 | } | |
514 | if Mesh == "SpecialMesh" then | |
515 | Msh.MeshType = MeshType | |
516 | Msh.MeshId = MeshId | |
517 | end | |
518 | return Msh | |
519 | end | |
520 | ||
521 | ||
522 | ||
523 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
524 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
525 | prt.Anchored = true | |
526 | prt.CFrame = cframe | |
527 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
528 | game:GetService("Debris"):AddItem(prt, 10) | |
529 | if Type == 1 or Type == nil then | |
530 | table.insert(Effects, { | |
531 | prt, | |
532 | "Block1", | |
533 | delay, | |
534 | x3, | |
535 | y3, | |
536 | z3, | |
537 | msh | |
538 | }) | |
539 | elseif Type == 2 then | |
540 | table.insert(Effects, { | |
541 | prt, | |
542 | "Block2", | |
543 | delay, | |
544 | x3, | |
545 | y3, | |
546 | z3, | |
547 | msh | |
548 | }) | |
549 | end | |
550 | end | |
551 | ||
552 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
553 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
554 | prt.Anchored = true | |
555 | prt.CFrame = cframe | |
556 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
557 | game:GetService("Debris"):AddItem(prt, 10) | |
558 | table.insert(Effects, { | |
559 | prt, | |
560 | "Cylinder", | |
561 | delay, | |
562 | x3, | |
563 | y3, | |
564 | z3, | |
565 | msh | |
566 | }) | |
567 | end | |
568 | ||
569 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
570 | local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
571 | prt.Anchored=true | |
572 | prt.CFrame=cframe | |
573 | msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
574 | game:GetService("Debris"):AddItem(prt,2) | |
575 | coroutine.resume(coroutine.create(function(Part,Mesh,num) | |
576 | for i=0,1,delay do | |
577 | swait() | |
578 | Part.Transparency=i | |
579 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
580 | end | |
581 | Part.Parent=nil | |
582 | end),prt,msh,(math.random(0,1)+math.random())/5) | |
583 | end | |
584 | ||
585 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
586 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
587 | prt.Anchored = true | |
588 | prt.CFrame = cframe | |
589 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
590 | game:GetService("Debris"):AddItem(prt, 10) | |
591 | table.insert(Effects, { | |
592 | prt, | |
593 | "Cylinder", | |
594 | delay, | |
595 | x3, | |
596 | y3, | |
597 | z3, | |
598 | msh | |
599 | }) | |
600 | end | |
601 | ||
602 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
603 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
604 | prt.Anchored = true | |
605 | prt.CFrame = cframe | |
606 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
607 | game:GetService("Debris"):AddItem(prt, 10) | |
608 | table.insert(Effects, { | |
609 | prt, | |
610 | "Cylinder", | |
611 | delay, | |
612 | x3, | |
613 | y3, | |
614 | z3, | |
615 | msh | |
616 | }) | |
617 | end | |
618 | ||
619 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
620 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
621 | prt.Anchored = true | |
622 | prt.CFrame = cframe | |
623 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
624 | game:GetService("Debris"):AddItem(prt, 10) | |
625 | table.insert(Effects, { | |
626 | prt, | |
627 | "Cylinder", | |
628 | delay, | |
629 | x3, | |
630 | y3, | |
631 | z3, | |
632 | msh | |
633 | }) | |
634 | end | |
635 | ||
636 | ||
637 | function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
638 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
639 | prt.Anchored = true | |
640 | prt.CFrame = cframe | |
641 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
642 | game:GetService("Debris"):AddItem(prt, 10) | |
643 | table.insert(Effects, { | |
644 | prt, | |
645 | "Cylinder", | |
646 | delay, | |
647 | x3, | |
648 | y3, | |
649 | z3, | |
650 | msh | |
651 | }) | |
652 | end | |
653 | ||
654 | function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
655 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
656 | prt.Anchored = true | |
657 | prt.CFrame = cframe | |
658 | local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
659 | game:GetService("Debris"):AddItem(prt, 10) | |
660 | table.insert(Effects, { | |
661 | prt, | |
662 | "Cylinder", | |
663 | delay, | |
664 | x3, | |
665 | y3, | |
666 | z3, | |
667 | msh | |
668 | }) | |
669 | end | |
670 | ||
671 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
672 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
673 | prt.Anchored = true | |
674 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
675 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
676 | local num = math.random(10, 50) / 1000 | |
677 | game:GetService("Debris"):AddItem(prt, 10) | |
678 | table.insert(Effects, { | |
679 | prt, | |
680 | "Shatter", | |
681 | num, | |
682 | prt.CFrame, | |
683 | math.random() - math.random(), | |
684 | 0, | |
685 | math.random(50, 100) / 100 | |
686 | }) | |
687 | end | |
688 | ||
689 | function FindNearestHead(Position, Distance, SinglePlayer) | |
690 | if SinglePlayer then | |
691 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
692 | end | |
693 | local List = {} | |
694 | for i, v in pairs(workspace:GetChildren()) do | |
695 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then | |
696 | table.insert(List, v) | |
697 | end | |
698 | end | |
699 | return List | |
700 | end | |
701 | ||
702 | ||
703 | ||
704 | function clerp(a,b,t) | |
705 | local qa = {QuaternionFromCFrame(a)} | |
706 | local qb = {QuaternionFromCFrame(b)} | |
707 | local ax, ay, az = a.x, a.y, a.z | |
708 | local bx, by, bz = b.x, b.y, b.z | |
709 | local _t = 1-t | |
710 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
711 | end | |
712 | ||
713 | function QuaternionFromCFrame(cf) | |
714 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
715 | local trace = m00 + m11 + m22 | |
716 | if trace > 0 then | |
717 | local s = math.sqrt(1 + trace) | |
718 | local recip = 0.5/s | |
719 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
720 | else | |
721 | local i = 0 | |
722 | if m11 > m00 then | |
723 | i = 1 | |
724 | end | |
725 | if m22 > (i == 0 and m00 or m11) then | |
726 | i = 2 | |
727 | end | |
728 | if i == 0 then | |
729 | local s = math.sqrt(m00-m11-m22+1) | |
730 | local recip = 0.5/s | |
731 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
732 | elseif i == 1 then | |
733 | local s = math.sqrt(m11-m22-m00+1) | |
734 | local recip = 0.5/s | |
735 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
736 | elseif i == 2 then | |
737 | local s = math.sqrt(m22-m00-m11+1) | |
738 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
739 | end | |
740 | end | |
741 | end | |
742 | local lerp = function(a, b, t) | |
743 | return a * (1 - t) + b * t | |
744 | end | |
745 | ||
746 | ||
747 | ||
748 | ||
749 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
750 | local xs, ys, zs = x + x, y + y, z + z | |
751 | local wx, wy, wz = w*xs, w*ys, w*zs | |
752 | local xx = x*xs | |
753 | local xy = x*ys | |
754 | local xz = x*zs | |
755 | local yy = y*ys | |
756 | local yz = y*zs | |
757 | local zz = z*zs | |
758 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
759 | end | |
760 | function QuaternionSlerp(a, b, t) | |
761 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
762 | local startInterp, finishInterp; | |
763 | if cosTheta >= 0.0001 then | |
764 | if (1 - cosTheta) > 0.0001 then | |
765 | local theta = math.acos(cosTheta) | |
766 | local invSinTheta = 1/math.sin(theta) | |
767 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
768 | finishInterp = math.sin(t*theta)*invSinTheta | |
769 | else | |
770 | startInterp = 1-t | |
771 | finishInterp = t | |
772 | end | |
773 | else | |
774 | if (1+cosTheta) > 0.0001 then | |
775 | local theta = math.acos(-cosTheta) | |
776 | local invSinTheta = 1/math.sin(theta) | |
777 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
778 | finishInterp = math.sin(t*theta)*invSinTheta | |
779 | else | |
780 | startInterp = t-1 | |
781 | finishInterp = t | |
782 | end | |
783 | end | |
784 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
785 | end | |
786 | ||
787 | function weld5(part0, part1, c0, c1) | |
788 | weeld=Instance.new("Weld", part0) | |
789 | weeld.Part0=part0 | |
790 | weeld.Part1=part1 | |
791 | weeld.C0=c0 | |
792 | weeld.C1=c1 | |
793 | return weeld | |
794 | end | |
795 | ||
796 | --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
797 | ||
798 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
799 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
800 | end | |
801 | ||
802 | ||
803 | function Bullets(thinggy,place,size,color,velocity,damage,bounce,collide,rotation) | |
804 | swait() | |
805 | local Bullet = Instance.new("Part",Workspace) | |
806 | Bullet.Locked = true | |
807 | Bullet.Name = "Bullet" | |
808 | Bullet.Anchored = bounce | |
809 | Bullet.CanCollide = collide | |
810 | Bullet.Transparency = 0.24 | |
811 | Bullet.Reflectance = 0 | |
812 | Bullet.BottomSurface = 0 | |
813 | Bullet.TopSurface = 0 | |
814 | Bullet.Shape = 0 | |
815 | Bullet.BrickColor = BrickColor.new(color) | |
816 | Bullet.Size = Vector3.new(size,size,size) | |
817 | Bullet.Material = "Neon" | |
818 | Bullet.Orientation = vt(-90,0,0) | |
819 | local Bulletthing = Instance.new("SpecialMesh",Bullet) | |
820 | Bulletthing.MeshType = "Sphere" | |
821 | local Bulletforce = Instance.new("BodyForce") | |
822 | Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0) | |
823 | Bulletforce.Parent = Bullet | |
824 | Bullet.CFrame = thinggy.CFrame*CFrame.new(math.random(-place,place),math.random(-place,place),math.random(-place,place)) | |
825 | local bv = Instance.new("BodyVelocity",Bullet) | |
826 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
827 | Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p) | |
828 | bv.velocity = Bullet.CFrame.lookVector*velocity | |
829 | ||
830 | ||
831 | Bullet.Touched:connect(function(hit) | |
832 | ||
833 | if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false) then | |
834 | local orbexplode = Instance.new("Sound", Bullet) | |
835 | orbexplode.Volume = 4 | |
836 | orbexplode.PlayOnRemove = true | |
837 | orbexplode.SoundId = "http://roblox.com/asset/?id=142070127" | |
838 | orbexplode.Pitch = 1 | |
839 | orbexplode:Destroy() | |
840 | deb:AddItem(orbexplode, 4) | |
841 | Bullet.Anchored = true | |
842 | Bullet.Transparency = 1 | |
843 | deb:AddItem(Bullet, 4) | |
844 | local Explode = Instance.new("Explosion") | |
845 | Explode.Position = Bullet.Position | |
846 | Explode.Parent = Workspace | |
847 | Explode.BlastPressure = 0 | |
848 | Explode.BlastRadius = Bullet.Size.X *5.6 | |
849 | Explode.Visible = false | |
850 | ||
851 | Explode.Hit:connect(function(hit) | |
852 | if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil and hit.Parent ~= Character then | |
853 | if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then | |
854 | hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100 | |
855 | hit.Parent:FindFirstChildOfClass("Humanoid").Health = 100 | |
856 | end | |
857 | if attackdebounce == false then | |
858 | attackdebounce = true | |
859 | hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(damage/2,damage)) | |
860 | wait(0.02) | |
861 | attackdebounce = false | |
862 | end | |
863 | end | |
864 | end) | |
865 | coroutine.resume(coroutine.create(function() | |
866 | ||
867 | MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 10, 10, 10, 50, 50, 50, 0.065) | |
868 | MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 0, 1, 0, 15, 0, 15, 0.025) | |
869 | MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025) | |
870 | MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025) | |
871 | end)) | |
872 | end | |
873 | end) | |
874 | coroutine.resume(coroutine.create(function() | |
875 | for i = 0,16,0.1 do | |
876 | swait() | |
877 | end | |
878 | if Bullet.Anchored == false then | |
879 | Bullet:Destroy() | |
880 | end | |
881 | end)) | |
882 | ||
883 | end | |
884 | ||
885 | ||
886 | ||
887 | ||
888 | ||
889 | local bl = Instance.new("BlurEffect",cam) | |
890 | bl.Size = 0 | |
891 | ||
892 | ||
893 | function Dash() | |
894 | evadecooldown = true | |
895 | attack = true | |
896 | so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1) | |
897 | ||
898 | so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1) | |
899 | ||
900 | ||
901 | ||
902 | ||
903 | ||
904 | ||
905 | ||
906 | ||
907 | ||
908 | ||
909 | bl.Size = 84 | |
910 | ||
911 | ||
912 | MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 5, 800, 0, 0, 0, 0.05) | |
913 | MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 800, 10, 800, -40, 0, -40, 0.025) | |
914 | MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 10, 800, -42, 1000, -42, 0.05) | |
915 | MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 1000, 10, 1000, -62, 1200, -62, 0.05) | |
916 | ||
917 | RootPart.CFrame = RootPart.CFrame*CFrame.new(0,0,-96) | |
918 | RootPart.Velocity = RootPart.CFrame.lookVector *280 | |
919 | ||
920 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
921 | if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then | |
922 | ||
923 | so("http://www.roblox.com/asset/?id=138186576", v.Torso, 10, 1) | |
924 | v:FindFirstChild("Humanoid"):TakeDamage(math.random(18,36)) | |
925 | SphereEffect(BrickColor.new("Royal purple"), cf(v.Torso.Position) , 1, 1, 1, 6.8, 6.8, 6.8, 0.04) | |
926 | MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1) | |
927 | MagicBlock(BrickColor.new("Royal purple"), cf(v.Torso.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1) | |
928 | MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1) | |
929 | MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 150, 2, 150, 0.05) | |
930 | MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 100, 4, 100, 0.05) | |
931 | MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 50, 6, 50, 0.05) | |
932 | MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 100, 100, 100, 0.05) | |
933 | MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 200, 200, 200, 0.05) | |
934 | MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 300, 300, 300, 0.05) | |
935 | MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 400, 400, 400, 0.05) | |
936 | MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 4, 350, 4, 0.005) | |
937 | MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 600, 2, 600, 4, 300, 4, 0.005) | |
938 | MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 400, 2, 400, 4, 250, 4, 0.005) | |
939 | end | |
940 | end | |
941 | ||
942 | for i = 0,1,0.064 do | |
943 | swait() | |
944 | cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5) | |
945 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,12),0.24) | |
946 | RootPart.Velocity = RootPart.CFrame.lookVector * 175 | |
947 | bl.Size = bl.Size - 8.5 | |
948 | SphereEffect(BrickColor.new("Royal purple"),RootPart.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,5.5,10,5.5,0.03) | |
949 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -12) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4) | |
950 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.4) | |
951 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.4) | |
952 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.4) | |
953 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8) | |
954 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8) | |
955 | ||
956 | ||
957 | ||
958 | end | |
959 | ||
960 | ||
961 | ||
962 | attack = false | |
963 | attackdebounce = false | |
964 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.1) | |
965 | wait(.2) | |
966 | bl.Size = 0 | |
967 | evadecooldown = false | |
968 | ||
969 | ||
970 | ||
971 | end | |
972 | ||
973 | ||
974 | ||
975 | ||
976 | ||
977 | ||
978 | ||
979 | ||
980 | ||
981 | ||
982 | ||
983 | ||
984 | local shooting = false | |
985 | ||
986 | ||
987 | ||
988 | function shoot() | |
989 | attack = true | |
990 | shooting = true | |
991 | ||
992 | ||
993 | local thing = Instance.new("BodyGyro",RootPart) | |
994 | thing.D = 50 | |
995 | thing.P = 6000 | |
996 | thing.MaxTorque = vt(100000,math.huge,0) | |
997 | thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p) | |
998 | for i = 0,2,0.16 do | |
999 | swait() | |
1000 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2) | |
1001 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2) | |
1002 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2) | |
1003 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
1004 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1) | |
1005 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0) * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1) | |
1006 | end | |
1007 | ||
1008 | ||
1009 | while shooting == true do | |
1010 | swait(1) | |
1011 | ||
1012 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2) | |
1013 | so("http://roblox.com/asset/?id=200633327",Torso,2,1) | |
1014 | thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p) | |
1015 | Torso.Velocity = RootPart.CFrame.lookVector * -13 | |
1016 | Bullets(RightArm,0,1.5,"Royal purple",700,25.5,false,false) | |
1017 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(40), math.rad(80)),.2) | |
1018 | coroutine.resume(coroutine.create(function() | |
1019 | for i = 0, 0.5, 0.1 do | |
1020 | swait() | |
1021 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24) | |
1022 | end | |
1023 | end)) | |
1024 | end | |
1025 | ||
1026 | attack = false | |
1027 | thing:Destroy() | |
1028 | end | |
1029 | ||
1030 | ||
1031 | ||
1032 | function dshoot() | |
1033 | attack = true | |
1034 | shooting = true | |
1035 | ||
1036 | ||
1037 | local thing = Instance.new("BodyGyro",RootPart) | |
1038 | thing.D = 50 | |
1039 | thing.P = 6000 | |
1040 | thing.MaxTorque = vt(100000,math.huge,0) | |
1041 | thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p) | |
1042 | so("http://roblox.com/asset/?id=1268159756",Torso,5,1) | |
1043 | for i = 0,3,0.16 do | |
1044 | swait() | |
1045 | MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 1, -0.7, -0.7, 0, 0.07) | |
1046 | MagicCircle(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 9, -0.7, -0.7, -0.7, 0.07) | |
1047 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1048 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1049 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(-20)),.2) | |
1050 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(20)),.2) | |
1051 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.1) | |
1052 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.1) | |
1053 | end | |
1054 | ||
1055 | ||
1056 | ||
1057 | while shooting == true do | |
1058 | swait(0.5) | |
1059 | coroutine.resume(coroutine.create(function() | |
1060 | MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 3, 3, 1, 10.2, 10.2, 0, 0.07) | |
1061 | end)) | |
1062 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.3) | |
1063 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.3) | |
1064 | so("http://roblox.com/asset/?id=200633327",Torso,2,1) | |
1065 | thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p) | |
1066 | Torso.Velocity = RootPart.CFrame.lookVector * -63 | |
1067 | ||
1068 | ||
1069 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.4) | |
1070 | Bullets(RightArm,0,2.5,"Royal purple",1200,45.5,false,false) | |
1071 | coroutine.resume(coroutine.create(function() | |
1072 | for i = 0, 0.5, 0.1 do | |
1073 | swait() | |
1074 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44) | |
1075 | end | |
1076 | end)) | |
1077 | ||
1078 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.2) | |
1079 | Bullets(LeftArm,0,2.5,"Royal purple",1200,45.5,false,false) | |
1080 | coroutine.resume(coroutine.create(function() | |
1081 | for i = 0, 0.5, 0.1 do | |
1082 | swait() | |
1083 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24) | |
1084 | end | |
1085 | end)) | |
1086 | ||
1087 | end | |
1088 | ||
1089 | attack = false | |
1090 | thing:Destroy() | |
1091 | end | |
1092 | ||
1093 | ||
1094 | ||
1095 | ||
1096 | ||
1097 | function finaldev() | |
1098 | attack = true | |
1099 | so("http://roblox.com/asset/?id=815032096",Head,6,0.84) | |
1100 | so("http://roblox.com/asset/?id=200633529",Workspace,3,0.84) | |
1101 | ||
1102 | for i = 0,14,0.1 do | |
1103 | swait() | |
1104 | WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09) | |
1105 | WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05) | |
1106 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8)),0.16) | |
1107 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.15) | |
1108 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(14),math.rad(0),math.rad(0)),.15) | |
1109 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.15) | |
1110 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.15) | |
1111 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, 0, -0.5) * CFrame.Angles(math.rad(16), math.rad(0), math.rad(0)), 0.15) | |
1112 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.14, 0.2) * CFrame.Angles(math.rad(-17), math.rad(0), math.rad(0)), 0.15) | |
1113 | ||
1114 | end | |
1115 | so("http://roblox.com/asset/?id=197161452",Torso,7,1) | |
1116 | for i = 0,6,0.1 do | |
1117 | swait() | |
1118 | WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09) | |
1119 | WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05) | |
1120 | Head.Velocity = Vector3.new(0,320,0) | |
1121 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6) | |
1122 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1) | |
1123 | RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1) | |
1124 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1) | |
1125 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1126 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1127 | end | |
1128 | ||
1129 | ||
1130 | local bel = part(3, Character, 0, 1, BrickColor.new("Royal purple"), "Ball", vt(0.126,0.126,0.126)) | |
1131 | local belmsh = mesh("SpecialMesh", bel, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10)) | |
1132 | ||
1133 | ||
1134 | ||
1135 | local Charge = Instance.new("Sound", bel) | |
1136 | Charge.Volume = 10 | |
1137 | Charge.SoundId = "http://roblox.com/asset/?id=244578827" | |
1138 | Charge.Pitch = 0.8 | |
1139 | Charge.PlayOnRemove = true | |
1140 | Charge:Play() | |
1141 | Charge:Destroy() | |
1142 | bel.Anchored = true | |
1143 | for i = 0,47,0.1 do | |
1144 | swait() | |
1145 | bel.CFrame = RootPart.CFrame * cf(0, 90*i/3.5, 0) | |
1146 | bel.Transparency = bel.Transparency - 0.0034 | |
1147 | belmsh.Scale = belmsh.Scale + Vector3.new(24,24,24) | |
1148 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0+1*i,0+1*i),0.15) | |
1149 | cam.FieldOfView = lerp(cam.FieldOfView, 40+1*i, 0.15) | |
1150 | Head.Velocity = Vector3.new(0,2.4+0.8*i,0) | |
1151 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2) | |
1152 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-13),math.rad(0),math.rad(0)),.2) | |
1153 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2) | |
1154 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2) | |
1155 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1) | |
1156 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1) | |
1157 | end | |
1158 | so("http://roblox.com/asset/?id=160212892",Head,10,0.84) | |
1159 | for i = 0,4,0.1 do | |
1160 | swait() | |
1161 | Head.Velocity = Vector3.new(0,2.4,0) | |
1162 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1163 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2) | |
1164 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.2) | |
1165 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2) | |
1166 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2) | |
1167 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1) | |
1168 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1) | |
1169 | end | |
1170 | ||
1171 | ||
1172 | ||
1173 | ||
1174 | ||
1175 | bel.Anchored = false | |
1176 | local bv = Instance.new("BodyVelocity",bel) | |
1177 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1178 | bel.CFrame = CFrame.new(bel.Position,mouse.Hit.p) | |
1179 | bv.velocity = bel.CFrame.lookVector*350 | |
1180 | ||
1181 | ||
1182 | ||
1183 | --[[ | |
1184 | bel.Touched:connect(function(hit) | |
1185 | ||
1186 | if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false then | |
1187 | local orbexplode = Instance.new("Sound", bel) | |
1188 | orbexplode.Volume = 10 | |
1189 | orbexplode.PlayOnRemove = true | |
1190 | orbexplode.SoundId = "http://roblox.com/asset/?id=142070127" | |
1191 | orbexplode.Pitch = 1 | |
1192 | orbexplode:Destroy() | |
1193 | deb:AddItem(orbexplode, 4) | |
1194 | bel.Anchored = true | |
1195 | bel.Transparency = 1 | |
1196 | deb:AddItem(bel, 4) | |
1197 | local Explode = Instance.new("Explosion") | |
1198 | Explode.Position = bel.Position | |
1199 | Explode.Parent = Workspace | |
1200 | Explode.BlastPressure = 90 | |
1201 | Explode.BlastRadius = Bullet.Size.X *25.6 | |
1202 | Explode.Visible = false | |
1203 | ||
1204 | coroutine.resume(coroutine.create(function() | |
1205 | ||
1206 | ||
1207 | ||
1208 | MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1) | |
1209 | MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1) | |
1210 | MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1) | |
1211 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 1150, 2, 1150, 0.05) | |
1212 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 2, 1800, 1100, 4, 1100, 0.05) | |
1213 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 150, 16, 150, 0.05) | |
1214 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05) | |
1215 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05) | |
1216 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05) | |
1217 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05) | |
1218 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 2, 1800, 4, 1350, 4, 0.005) | |
1219 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 2, 1600, 4, 1300, 4, 0.005) | |
1220 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 2, 1400, 4, 1250, 4, 0.005) | |
1221 | ||
1222 | ||
1223 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065) | |
1224 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025) | |
1225 | MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025) | |
1226 | MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025) | |
1227 | end)) | |
1228 | end | |
1229 | end) | |
1230 | ||
1231 | ]] | |
1232 | ||
1233 | con5=bel.Touched:connect(function(hit) | |
1234 | ||
1235 | local orbexplode = Instance.new("Sound", bel) | |
1236 | orbexplode.Volume = 10 | |
1237 | orbexplode.PlayOnRemove = true | |
1238 | orbexplode.SoundId = "http://roblox.com/asset/?id=167115397" | |
1239 | orbexplode.Pitch = 1 | |
1240 | orbexplode:Destroy() | |
1241 | deb:AddItem(orbexplode, 4) | |
1242 | bel.Anchored = true | |
1243 | bel.Transparency = 1 | |
1244 | deb:AddItem(bel, 5.2) | |
1245 | ||
1246 | ||
1247 | ||
1248 | ||
1249 | coroutine.resume(coroutine.create(function() | |
1250 | so("http://www.roblox.com/asset/?id=167115397", Workspace, 6, 1) | |
1251 | so("http://www.roblox.com/asset/?id=138186576", Workspace, 6, 1) | |
1252 | for i = 0, 0.4, 0.1 do | |
1253 | swait() | |
1254 | ||
1255 | ||
1256 | for i, v in pairs(FindNearestHead(bel.CFrame.p, 252.5)) do | |
1257 | if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then | |
1258 | if v:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then | |
1259 | v:FindFirstChildOfClass("Humanoid").MaxHealth = 100 | |
1260 | v:FindFirstChildOfClass("Humanoid").Health = 100 | |
1261 | end | |
1262 | v.Humanoid:TakeDamage(math.random(43,86)) | |
1263 | coroutine.resume(coroutine.create(function() | |
1264 | for i = 0,2,0.1 do | |
1265 | swait() | |
1266 | v.Head.Velocity = -v.Head.CFrame.lookVector*660 + Vector3.new(0,684,0) | |
1267 | end | |
1268 | end)) | |
1269 | end | |
1270 | end | |
1271 | ||
1272 | coroutine.resume(coroutine.create(function() | |
1273 | for i = 0, 2.4, 0.1 do | |
1274 | swait() | |
1275 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44) | |
1276 | end | |
1277 | end)) | |
1278 | ||
1279 | MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1) | |
1280 | MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1) | |
1281 | MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1) | |
1282 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800,222, 1800, 1150, 222, 1150, 0.05) | |
1283 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 222, 1800, 1100, 224, 1100, 0.05) | |
1284 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 222, 1800, 150, 216, 150, 0.05) | |
1285 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05) | |
1286 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05) | |
1287 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05) | |
1288 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05) | |
1289 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 222, 1800, 224, 1350, 224, 0.005) | |
1290 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 222, 1600, 224, 1300, 224, 0.005) | |
1291 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 222, 1400, 224, 1250, 224, 0.005) | |
1292 | ||
1293 | WaveEffect(BrickColor.new("White"), cf(bel.Position)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 24, 5.4, 24, 0.09) | |
1294 | WaveEffect(BrickColor.new("Royal purple"), cf(bel.Position)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 22, 4.8, 22, 0.05) | |
1295 | ||
1296 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065) | |
1297 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025) | |
1298 | MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015) | |
1299 | MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015) | |
1300 | MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 8, 8, 0, 0.015) | |
1301 | MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015) | |
1302 | end | |
1303 | end)) | |
1304 | ||
1305 | ||
1306 | end) | |
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | for i = 0,32,0.1 do | |
1312 | swait() | |
1313 | Head.Velocity = Vector3.new(0,2.4,0) | |
1314 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.2) | |
1315 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(43),math.rad(0),math.rad(0)),.2) | |
1316 | RW.C0 = clerp(RW.C0, CFrame.new(1.0, 0.5, -0.4) * angles(math.rad(80), math.rad(12), math.rad(-30)),.2) | |
1317 | LW.C0 = clerp(LW.C0, CFrame.new(-1., 0.5, -0.4) * angles(math.rad(80), math.rad(-12), math.rad(30)),.2) | |
1318 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(75), math.rad(34), math.rad(-35)), 0.2) | |
1319 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(75), math.rad(-34), math.rad(35)), 0.2) | |
1320 | end | |
1321 | ||
1322 | coroutine.resume(coroutine.create(function() | |
1323 | for i = 0, 63, 0.1 do | |
1324 | swait() | |
1325 | end | |
1326 | if bel.Anchored == false then | |
1327 | bel:Destroy() | |
1328 | end | |
1329 | end)) | |
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | attack = false | |
1335 | end | |
1336 | ||
1337 | ||
1338 | ||
1339 | mouse.Button1Down:connect(function(key) | |
1340 | if attack == false then | |
1341 | shoot() | |
1342 | end | |
1343 | end) | |
1344 | ||
1345 | ||
1346 | ||
1347 | ||
1348 | mouse.Button1Up:connect(function(key) | |
1349 | if shooting == true then | |
1350 | shooting = false | |
1351 | end | |
1352 | end) | |
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | mouse.KeyDown:connect(function(key) | |
1358 | if key == 'e' and attack == false then | |
1359 | dshoot() | |
1360 | end | |
1361 | end) | |
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | mouse.KeyDown:connect(function(key) | |
1367 | if key == 'q' and attack == false then | |
1368 | finaldev() | |
1369 | end | |
1370 | end) | |
1371 | ||
1372 | mouse.KeyUp:connect(function(key) | |
1373 | if key == 'e' and shooting == true then | |
1374 | shooting = false | |
1375 | end | |
1376 | end) | |
1377 | ||
1378 | ||
1379 | ||
1380 | mouse.KeyDown:connect(function(key) | |
1381 | if key == 'f' and attack == false and evadecooldown == false then | |
1382 | Dash() | |
1383 | end | |
1384 | end) | |
1385 | ||
1386 | ||
1387 | local orb = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt()) | |
1388 | local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15)) | |
1389 | ||
1390 | local orb2 = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt()) | |
1391 | local msh = mesh("SpecialMesh", orb2, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15)) | |
1392 | orb.Anchored = true | |
1393 | orb2.Anchored = true | |
1394 | Humanoid.WalkSpeed = 32 | |
1395 | ||
1396 | ||
1397 | local f = 0 | |
1398 | game:GetService("RunService"):BindToRenderStep("W0tT", 0, function() | |
1399 | ||
1400 | ||
1401 | f = f+1 | |
1402 | cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076) | |
1403 | if f >= 6 then | |
1404 | f=0 | |
1405 | SphereEffect(BrickColor.new("Royal purple"),cf(orb.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03) | |
1406 | SphereEffect(BrickColor.new("Royal purple"),cf(orb2.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03) | |
1407 | MagicRing(BrickColor.new("Royal purple"), cf(orb.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07) | |
1408 | MagicCircle(BrickColor.new("Royal purple"), cf(orb.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05) | |
1409 | MagicRing(BrickColor.new("Royal purple"), cf(orb2.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07) | |
1410 | MagicCircle(BrickColor.new("Royal purple"), cf(orb2.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05) | |
1411 | MagicBlock(BrickColor.new("Royal purple"), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2) | |
1412 | MagicBlock(BrickColor.new("Royal purple"), cf(orb2.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2) | |
1413 | ||
1414 | end | |
1415 | end) | |
1416 | ||
1417 | Humanoid.MaxHealth = 400 | |
1418 | ||
1419 | print("Move list") | |
1420 | print("---------") | |
1421 | print("F: Time Dash") | |
1422 | print("Hold Click: Lesser Bullets") | |
1423 | print("Hold E: Mega Bullets") | |
1424 | print("Q: Final Devastator") | |
1425 | ||
1426 | ||
1427 | ||
1428 | ||
1429 | while true do | |
1430 | swait() | |
1431 | sine = sine + change | |
1432 | --speed = speed + music.PlaybackLoudness/90 | |
1433 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1434 | local velderp=RootPart.Velocity.y | |
1435 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1436 | local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity)) | |
1437 | if attack==true or attack==false then | |
1438 | if attack==false then | |
1439 | idle=idle+1 | |
1440 | else | |
1441 | idle=0 | |
1442 | end | |
1443 | if idle>=500 then | |
1444 | if attack==false then | |
1445 | end | |
1446 | end | |
1447 | ||
1448 | Humanoid.Health = Humanoid.Health + 4 | |
1449 | ||
1450 | orb.CFrame = RightArm.CFrame * cf(0, -1, 0) | |
1451 | orb2.CFrame = LeftArm.CFrame * cf(0, -1, 0) | |
1452 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
1453 | Anim="Jump" | |
1454 | ||
1455 | ||
1456 | ||
1457 | ||
1458 | ||
1459 | if attack==false then | |
1460 | change = 1 | |
1461 | look = 0 | |
1462 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1463 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(0)), 0.07) | |
1464 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),0.07) | |
1465 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.07) | |
1466 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.07) | |
1467 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.6) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1) | |
1468 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1) | |
1469 | end | |
1470 | ||
1471 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
1472 | Anim="Fall" | |
1473 | change = 1 | |
1474 | ||
1475 | ||
1476 | ||
1477 | if attack==false then | |
1478 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1479 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(7+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07) | |
1480 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07) | |
1481 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07) | |
1482 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07) | |
1483 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(18+7*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1) | |
1484 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.37+0.17*math.cos(sine/1.3), -0.2) * CFrame.Angles(math.rad(32+7*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1) | |
1485 | end | |
1486 | ||
1487 | elseif torvel<1 and hitfloor~=nil then | |
1488 | Anim="Idle" | |
1489 | change = 1 | |
1490 | if attack==false and equip == false then | |
1491 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1492 | ||
1493 | ||
1494 | ||
1495 | orb.CFrame = orb.CFrame:lerp(RightArm.CFrame*cf(0+2*math.cos(sine/40), -5+2*math.sin(sine/40), 0),0.1) | |
1496 | orb2.CFrame = orb2.CFrame:lerp(LeftArm.CFrame*cf(0-2*math.cos(sine/40), -5+2*math.sin(sine/40), 0),0.1) | |
1497 | ||
1498 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.04*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.25) | |
1499 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10+2.6*math.sin(sine/40)),math.rad(0),math.rad(60)),0.25) | |
1500 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.55+0.04*math.sin(sine/40), 0.2) * angles(math.rad(-32+1.3*math.cos(sine/40)), math.rad(0+4*math.sin(sine/40)), math.rad(-22.3+2.2*math.cos(sine/40))),0.25) | |
1501 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.55+0.04*math.sin(sine/40), -0.3-0.04*math.cos(sine/40)) * angles(math.rad(28+1.3*math.cos(sine/40)), math.rad(0-4*math.sin(sine/40)), math.rad(26.3-2.2*math.cos(sine/40))),0.25) | |
1502 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(8), math.rad(-7)),0.25) | |
1503 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.57, -1+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(-2), math.rad(3)),0.25) | |
1504 | end | |
1505 | ||
1506 | ||
1507 | ||
1508 | elseif torvel>1.5 and torvel<22 and hitfloor~=nil then | |
1509 | Anim="Walk" | |
1510 | change = 0.84 | |
1511 | look = 0 | |
1512 | if attack==false and equip == false then | |
1513 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02) | |
1514 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.14*math.cos(sine/5), -0.3) * angles(math.rad(-2)*-math.rad(TiltVelocity.z)*9.5, math.rad(0+2*math.cos(sine/10)), math.rad(8)*-math.rad(TiltVelocity.x)*7.5+ RootPart.RotVelocity.Y / 46), 0.08) | |
1515 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(4-3*math.sin(sine/5)),math.rad(0),math.rad(2) + RootPart.RotVelocity.Y / 13), 0.08) | |
1516 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0+0.34*math.sin(sine/10)) * angles(math.rad(0-26*math.sin(sine/10))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(6+8*math.cos(sine/5))- RootPart.RotVelocity.Y / 34), 0.08) | |
1517 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0-0.34*math.sin(sine/10)) * angles(math.rad(0+26*math.sin(sine/10))+ RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-6-8*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34), 0.08) | |
1518 | --LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.21*math.cos(sine/10), -0.03+0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8-25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*12.5), math.rad(0)- RootPart.RotVelocity.Y / -24, math.rad(0-25*math.sin(sine/10)*math.rad(TiltVelocity.x)*11.5+ RootPart.RotVelocity.Y / -34)), 0.08) | |
1519 | --RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.21*math.cos(sine/10),-0.03-0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8+25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*12.5), math.rad(0)+ RootPart.RotVelocity.Y / 24, math.rad(0-25*math.sin(sine/10)*-math.rad(TiltVelocity.x)*11.5- RootPart.RotVelocity.Y / 34)), 0.08) | |
1520 | end | |
1521 | if attack == false or attack==true and noleg == false then | |
1522 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.21*math.cos(sine/10), -0.03+0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8-25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*9.5), math.rad(0)- RootPart.RotVelocity.Y / -24, math.rad(0-25*math.sin(sine/10)*math.rad(TiltVelocity.x)*6.5- RootPart.RotVelocity.Y / 34)), 0.08) | |
1523 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.21*math.cos(sine/10),-0.03-0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8+25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*9.5), math.rad(0)+ RootPart.RotVelocity.Y / 24, math.rad(0-25*math.sin(sine/10)*-math.rad(TiltVelocity.x)*6.5- RootPart.RotVelocity.Y / 34)), 0.08) | |
1524 | end | |
1525 | ||
1526 | elseif torvel>=22 and hitfloor~=nil then | |
1527 | Anim="Run" | |
1528 | change = 0.84+ Character.Humanoid.WalkSpeed/112 | |
1529 | if attack==false and equip == false then | |
1530 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02) | |
1531 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.5*math.cos(sine/2.5), -.8) * angles(math.rad(-23+4*math.cos(sine/5)), math.rad(0+4*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1) | |
1532 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+20*math.sin(sine/2.5)),math.rad(0),math.rad(0+5*math.sin(sine/5)) + RootPart.RotVelocity.Y / 13),.1) | |
1533 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0-0.34*math.cos(sine/5)) * angles(math.rad(10+57*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34, math.rad(0+43*math.cos(sine/5)), math.rad(5)- RootPart.RotVelocity.Y / 34),.25) | |
1534 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0+0.34*math.cos(sine/5))*angles(math.rad(10-57*math.cos(sine/5))+ RootPart.RotVelocity.Y / 34,math.rad(0+43*math.cos(sine/5)),math.rad(-5)+ RootPart.RotVelocity.Y / -34),.25) | |
1535 | ||
1536 | ||
1537 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.56*math.cos(sine/5), 0-0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0+73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3) | |
1538 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.56*math.cos(sine/5),0+0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0-73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3) | |
1539 | end | |
1540 | ||
1541 | --[[ | |
1542 | if attack==false then | |
1543 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/5.5)/2, 0 *math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/5.5)/1.2, math.rad(0), 0), .8) | |
1544 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/5.5)/2,0 *-math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/5.5)/1.2, math.rad(0), 0), .8) | |
1545 | end | |
1546 | ]] | |
1547 | if attack==true and noleg == false then | |
1548 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0-74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3) | |
1549 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0+74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3) | |
1550 | end | |
1551 | ||
1552 | ||
1553 | end | |
1554 | end | |
1555 | ||
1556 | ||
1557 | ||
1558 | if 0 < #Effects then | |
1559 | for e = 1, #Effects do | |
1560 | if Effects[e] ~= nil then | |
1561 | local Thing = Effects[e] | |
1562 | if Thing ~= nil then | |
1563 | local Part = Thing[1] | |
1564 | local Mode = Thing[2] | |
1565 | local Delay = Thing[3] | |
1566 | local IncX = Thing[4] | |
1567 | local IncY = Thing[5] | |
1568 | local IncZ = Thing[6] | |
1569 | if Thing[2] == "CylinderClang" then | |
1570 | if Thing[3] <= 1 then | |
1571 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1572 | Thing[7] = Thing[1].CFrame | |
1573 | effect("New Yeller", 0, Thing[8], Thing[7]) | |
1574 | Thing[8] = Thing[7] | |
1575 | Thing[3] = Thing[3] + Thing[4] | |
1576 | else | |
1577 | Part.Parent = nil | |
1578 | table.remove(Effects, e) | |
1579 | end | |
1580 | end | |
1581 | if Thing[2] == "showDamage" then | |
1582 | if Thing[6] < Thing[5] then | |
1583 | Thing[6] = Thing[6] + 1 | |
1584 | else | |
1585 | if Thing[6] < Thing[7] then | |
1586 | Thing[4].position = Thing[4].position + vt(0, -0.2, 0) | |
1587 | Thing[6] = Thing[6] + 1 | |
1588 | else | |
1589 | if Thing[6] < Thing[8] then | |
1590 | Thing[6] = Thing[6] + 1 | |
1591 | else | |
1592 | if Thing[6] < Thing[9] then | |
1593 | Thing[6] = Thing[6] + 1 | |
1594 | Thing[4].position = Thing[4].position + vt(0, 0.2, 0) | |
1595 | Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1 | |
1596 | Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1 | |
1597 | else | |
1598 | Thing[1].Parent = nil | |
1599 | table.remove(Effects, e) | |
1600 | end | |
1601 | end | |
1602 | end | |
1603 | end | |
1604 | end | |
1605 | if Thing[2] == "PartiEmi" then | |
1606 | Thing[3] = Thing[3] - 1 | |
1607 | if Thing[3] <= 0 then | |
1608 | Thing[1].Enabled = false | |
1609 | table.remove(Effects, e) | |
1610 | end | |
1611 | end | |
1612 | if Thing[2] == "AdjuEff" then | |
1613 | if 0 < Thing[3] then | |
1614 | Thing[3] = Thing[3] - 1 | |
1615 | Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0) | |
1616 | Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0) | |
1617 | Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1 | |
1618 | else | |
1619 | Thing[1].Parent = nil | |
1620 | table.remove(Effects, e) | |
1621 | end | |
1622 | end | |
1623 | if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then | |
1624 | if Thing[1].Transparency <= 1 then | |
1625 | if Thing[2] == "Block1" then | |
1626 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1627 | Mesh = Thing[7] | |
1628 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1629 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1630 | else | |
1631 | if Thing[2] == "Block2" then | |
1632 | Thing[1].CFrame = Thing[1].CFrame | |
1633 | Mesh = Thing[7] | |
1634 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1635 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1636 | else | |
1637 | if Thing[2] == "Block3" then | |
1638 | Thing[9] = Thing[9] + 0.5 | |
1639 | Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0) | |
1640 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1641 | Mesh = Thing[7] | |
1642 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1643 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1644 | else | |
1645 | if Thing[2] == "Skull" then | |
1646 | Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8]) | |
1647 | Mesh = Thing[7] | |
1648 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1649 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1650 | else | |
1651 | if Thing[2] == "Cylinder" then | |
1652 | Mesh = Thing[7] | |
1653 | Mesh.Scale = Mesh.Scale + vt(Thing[4]-Thing[1].Transparency, Thing[5]-Thing[1].Transparency, Thing[6]-Thing[1].Transparency) | |
1654 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1655 | else | |
1656 | if Thing[2] == "Cylinder2" then | |
1657 | Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0) | |
1658 | Mesh = Thing[7] | |
1659 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1660 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1661 | else | |
1662 | if Thing[2] == "Blood" then | |
1663 | Mesh = Thing[7] | |
1664 | Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0) | |
1665 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1666 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1667 | else | |
1668 | if Thing[2] == "Elec" then | |
1669 | Mesh = Thing[10] | |
1670 | Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9]) | |
1671 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1672 | else | |
1673 | if Thing[2] == "Disappear" then | |
1674 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1675 | end | |
1676 | end | |
1677 | end | |
1678 | end | |
1679 | end | |
1680 | end | |
1681 | end | |
1682 | end | |
1683 | end | |
1684 | else | |
1685 | Part.Parent = nil | |
1686 | table.remove(Effects, e) | |
1687 | end | |
1688 | end | |
1689 | end | |
1690 | end | |
1691 | end | |
1692 | end | |
1693 | end |