SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ||
145 | --//=================================\\ | |
146 | --|| SOME TAG EDIT | |
147 | --\\=================================// | |
148 | ||
149 | Player = owner | |
150 | Character = Player.Character | |
151 | local txt = Instance.new("BillboardGui", Character) | |
152 | txt.Adornee = Character.Head | |
153 | txt.Name = "_status" | |
154 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
155 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
156 | local text = Instance.new("TextLabel", txt) | |
157 | text.Size = UDim2.new(10, 0, 7, 0) | |
158 | text.FontSize = "Size24" | |
159 | text.TextScaled = true | |
160 | text.TextTransparency = 0 | |
161 | text.BackgroundTransparency = 1 | |
162 | text.TextTransparency = 0 | |
163 | text.TextStrokeTransparency = 0 | |
164 | text.Font = "Antique" | |
165 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
166 | text.Text = "James the warrior" | |
167 | ||
168 | --//=================================\\ | |
169 | --\\=================================// | |
170 | bin = Instance.new("HopperBin") | |
171 | bin.Name = "Select" | |
172 | bin.Parent = game.Players.LocalPlayer.Backpack | |
173 | de=true | |
174 | boss = Instance.new("Sound",game.Players.LocalPlayer.Character) | |
175 | boss.Looped = true | |
176 | boss.SoundId = "rbxassetid://190845741" | |
177 | boss:Play() | |
178 | ---press b to transform | |
179 | Player=game:GetService("Players").LocalPlayer | |
180 | Character=Player.Character | |
181 | PlayerGui=Player.PlayerGui | |
182 | Backpack=Player.Backpack | |
183 | Torso=Character.Torso | |
184 | Head=Character.Head | |
185 | Humanoid=Character.Humanoid | |
186 | moose = Player:GetMouse() | |
187 | LeftArm=Character["Left Arm"] | |
188 | LeftLeg=Character["Left Leg"] | |
189 | RightArm=Character["Right Arm"] | |
190 | RightLeg=Character["Right Leg"] | |
191 | LS=Torso["Left Shoulder"] | |
192 | LH=Torso["Left Hip"] | |
193 | RS=Torso["Right Shoulder"] | |
194 | RH=Torso["Right Hip"] | |
195 | Neck=Torso.Neck | |
196 | it=Instance.new | |
197 | vt=Vector3.new | |
198 | cf=CFrame.new | |
199 | euler=CFrame.fromEulerAnglesXYZ | |
200 | angles=CFrame.Angles | |
201 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
202 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
203 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
204 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
205 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
206 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
207 | RootPart=Character.HumanoidRootPart | |
208 | RootJoint=RootPart.RootJoint | |
209 | RootCF=euler(-1.57,0,3.14) | |
210 | attack = false | |
211 | attackdebounce = false | |
212 | MMouse=nil | |
213 | combo=0 | |
214 | mana=0 | |
215 | local idle=0 | |
216 | local Anim="Idle" | |
217 | local orbnum=0 | |
218 | local Mode="Normal" | |
219 | --player | |
220 | player=nil | |
221 | --save shoulders | |
222 | RSH, LSH=nil, nil | |
223 | --welds | |
224 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
225 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
226 | LH=Torso["Left Hip"] | |
227 | RH=Torso["Right Hip"] | |
228 | Charge=0 | |
229 | TorsoColor=Torso.BrickColor.Color | |
230 | Col1=1-Torso.Color.r | |
231 | Col2=1-Torso.Color.g | |
232 | Col3=1-Torso.Color.b | |
233 | InverseCol=BrickColor.new(Color3.new(Col1,Col2,Col3)) | |
234 | upvel=Instance.new("BodyVelocity") | |
235 | local hitbeat=nil | |
236 | ||
237 | function swait(num) | |
238 | if num==0 or num==nil then | |
239 | game:service'RunService'.RenderStepped:wait() | |
240 | else | |
241 | for i=0,num do | |
242 | game:service'RunService'.RenderStepped:wait() | |
243 | end | |
244 | end | |
245 | end | |
246 | ||
247 | CV1="Really black" | |
248 | CV2 = BrickColor == BrickColor.new(CV1) | |
249 | ||
250 | local txt = Instance.new("BillboardGui", Character) | |
251 | txt.Adornee = Character.Head | |
252 | txt.Name = "_status" | |
253 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
254 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
255 | local text = Instance.new("TextLabel", txt) | |
256 | text.Size = UDim2.new(10, 0, 7, 0) | |
257 | text.FontSize = "Size24" | |
258 | text.TextScaled = true | |
259 | text.TextTransparency = 0 | |
260 | text.BackgroundTransparency = 1 | |
261 | text.TextTransparency = 0 | |
262 | text.TextStrokeTransparency = 0 | |
263 | text.Font = "SciFi" | |
264 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
265 | ||
266 | v=Instance.new("Part") | |
267 | v.Name = "ColorBrick" | |
268 | v.Parent=Player.Character | |
269 | v.FormFactor="Symmetric" | |
270 | v.Anchored=true | |
271 | v.CanCollide=false | |
272 | v.BottomSurface="Smooth" | |
273 | v.TopSurface="Smooth" | |
274 | v.Size=Vector3.new(10,5,3) | |
275 | v.Transparency=1 | |
276 | v.CFrame=Character.Torso.CFrame | |
277 | v.BrickColor=BrickColor.new(CV1) | |
278 | v.Transparency=1 | |
279 | text.TextColor3 = BrickColor.new("Really black").Color | |
280 | v.Shape="Block" | |
281 | text.Text = "Vanta" | |
282 | ||
283 | ||
284 | ||
285 | ||
286 | if Character:findFirstChild("Vanta",true) ~= nil then | |
287 | Character:findFirstChild("Vanta",true).Parent = nil | |
288 | end | |
289 | if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then | |
290 | Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil | |
291 | end | |
292 | ||
293 | ||
294 | function NoOutline(Part) | |
295 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
296 | end | |
297 | ||
298 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
299 | local fp=it("Part") | |
300 | fp.formFactor=formfactor | |
301 | fp.Parent=parent | |
302 | fp.Reflectance=reflectance | |
303 | fp.Transparency=transparency | |
304 | fp.CanCollide=false | |
305 | fp.Locked=true | |
306 | fp.BrickColor=brickcolor | |
307 | fp.Name=name | |
308 | fp.Size=size | |
309 | fp.Position=Torso.Position | |
310 | NoOutline(fp) | |
311 | fp.Material="SmoothPlastic" | |
312 | fp:BreakJoints() | |
313 | return fp | |
314 | end | |
315 | ||
316 | function mesh(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 | mesh.MeshId=meshid | |
322 | end | |
323 | mesh.Offset=offset | |
324 | mesh.Scale=scale | |
325 | return mesh | |
326 | end | |
327 | ||
328 | function weld(parent,part0,part1,c0) | |
329 | local weld=it("Weld") | |
330 | weld.Parent=parent | |
331 | weld.Part0=part0 | |
332 | weld.Part1=part1 | |
333 | weld.C0=c0 | |
334 | return weld | |
335 | end | |
336 | ||
337 | function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
338 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2)) | |
339 | prt.Anchored=true | |
340 | prt.CFrame=cframe | |
341 | msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1)) | |
342 | game:GetService("Debris"):AddItem(prt,5) | |
343 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
344 | for i=0,1,delay do | |
345 | wait() | |
346 | Part.CFrame=Part.CFrame | |
347 | Part.Transparency=i | |
348 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
349 | end | |
350 | Part.Parent=nil | |
351 | end),prt,msh) | |
352 | end | |
353 | ||
354 | function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
355 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
356 | prt.Anchored=true | |
357 | prt.CFrame=cframe | |
358 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
359 | game:GetService("Debris"):AddItem(prt,5) | |
360 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
361 | for i=0,1,delay do | |
362 | wait() | |
363 | Part.CFrame=Part.CFrame | |
364 | Part.Transparency=i | |
365 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
366 | end | |
367 | Part.Parent=nil | |
368 | end),prt,msh) | |
369 | end | |
370 | ||
371 | local Color1=Torso.BrickColor | |
372 | ||
373 | local fengui=it("GuiMain") | |
374 | fengui.Parent=Player.PlayerGui | |
375 | fengui.Name="WeaponGUI" | |
376 | local fenframe=it("Frame") | |
377 | fenframe.Parent=fengui | |
378 | fenframe.BackgroundColor3=Color3.new(255,255,255) | |
379 | fenframe.BackgroundTransparency=1 | |
380 | fenframe.BorderColor3=Color3.new(17,17,17) | |
381 | fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0) | |
382 | fenframe.Position=UDim2.new(0.4,0,0.1,0) | |
383 | fenframe.Visible=false | |
384 | local fenbarmana1=it("TextLabel") | |
385 | fenbarmana1.Parent=fenframe | |
386 | fenbarmana1.Text=" " | |
387 | fenbarmana1.BackgroundTransparency=0 | |
388 | fenbarmana1.BackgroundColor3=Color3.new(0,0,0) | |
389 | fenbarmana1.SizeConstraint="RelativeXY" | |
390 | fenbarmana1.TextXAlignment="Center" | |
391 | fenbarmana1.TextYAlignment="Center" | |
392 | fenbarmana1.Position=UDim2.new(0,0,0,0) | |
393 | fenbarmana1.Size=UDim2.new(4,0,0.2,0) | |
394 | local fenbarmana2=it("TextLabel") | |
395 | fenbarmana2.Parent=fenframe | |
396 | fenbarmana2.Text=" " | |
397 | fenbarmana2.BackgroundTransparency=0 | |
398 | fenbarmana2.BackgroundColor3=Torso.Color | |
399 | fenbarmana2.SizeConstraint="RelativeXY" | |
400 | fenbarmana2.TextXAlignment="Center" | |
401 | fenbarmana2.TextYAlignment="Center" | |
402 | fenbarmana2.Position=UDim2.new(0,0,0,0) | |
403 | fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0) | |
404 | local fenbarmana3=it("TextLabel") | |
405 | fenbarmana3.Parent=fenframe | |
406 | fenbarmana3.Text=" " | |
407 | fenbarmana3.BackgroundTransparency=0 | |
408 | fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3) | |
409 | fenbarmana3.SizeConstraint="RelativeXY" | |
410 | fenbarmana3.TextXAlignment="Center" | |
411 | fenbarmana3.TextYAlignment="Center" | |
412 | fenbarmana3.Position=UDim2.new(0,0,0,0) | |
413 | fenbarmana3.Size=UDim2.new(0,0,0.2,0) | |
414 | local fenbarmana4=it("TextLabel") | |
415 | fenbarmana4.Parent=fenframe | |
416 | fenbarmana4.Text="Energy("..mana..")" | |
417 | fenbarmana4.BackgroundTransparency=1 | |
418 | fenbarmana4.BackgroundColor3=Color3.new(0,0,0) | |
419 | fenbarmana4.SizeConstraint="RelativeXY" | |
420 | fenbarmana4.TextXAlignment="Center" | |
421 | fenbarmana4.TextYAlignment="Center" | |
422 | fenbarmana4.Position=UDim2.new(0,0,-0.3,0) | |
423 | fenbarmana4.Size=UDim2.new(4,0,0.2,0) | |
424 | fenbarmana4.FontSize="Size9" | |
425 | fenbarmana4.TextStrokeTransparency=0 | |
426 | fenbarmana4.TextColor=BrickColor.new("White") | |
427 | ||
428 | local modelzorz=Instance.new("Model") | |
429 | modelzorz.Parent=Character | |
430 | modelzorz.Name="Vanta" | |
431 | ||
432 | local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1)) | |
433 | hitbox.Anchored=false | |
434 | ||
435 | if (script.Parent.className~="HopperBin") then | |
436 | Tool=Instance.new("HopperBin") | |
437 | Tool.Parent=Backpack | |
438 | Tool.Name="Vanta" | |
439 | wait() | |
440 | script.Parent=Tool | |
441 | end | |
442 | Bin=Tool | |
443 | ||
444 | local bodvel=Instance.new("BodyVelocity") | |
445 | local bg=Instance.new("BodyGyro") | |
446 | ||
447 | so = function(id,par,vol,pit) | |
448 | coroutine.resume(coroutine.create(function() | |
449 | local sou = Instance.new("Sound",par or workspace) | |
450 | sou.Volume=vol | |
451 | sou.Pitch=pit or 1 | |
452 | sou.SoundId=id | |
453 | swait() | |
454 | sou:play() | |
455 | game:GetService("Debris"):AddItem(sou,6) | |
456 | end)) | |
457 | end | |
458 | ||
459 | function clerp(a,b,t) | |
460 | local qa = {QuaternionFromCFrame(a)} | |
461 | local qb = {QuaternionFromCFrame(b)} | |
462 | local ax, ay, az = a.x, a.y, a.z | |
463 | local bx, by, bz = b.x, b.y, b.z | |
464 | local _t = 1-t | |
465 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
466 | end | |
467 | ||
468 | function QuaternionFromCFrame(cf) | |
469 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
470 | local trace = m00 + m11 + m22 | |
471 | if trace > 0 then | |
472 | local s = math.sqrt(1 + trace) | |
473 | local recip = 0.5/s | |
474 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
475 | else | |
476 | local i = 0 | |
477 | if m11 > m00 then | |
478 | i = 1 | |
479 | end | |
480 | if m22 > (i == 0 and m00 or m11) then | |
481 | i = 2 | |
482 | end | |
483 | if i == 0 then | |
484 | local s = math.sqrt(m00-m11-m22+1) | |
485 | local recip = 0.5/s | |
486 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
487 | elseif i == 1 then | |
488 | local s = math.sqrt(m11-m22-m00+1) | |
489 | local recip = 0.5/s | |
490 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
491 | elseif i == 2 then | |
492 | local s = math.sqrt(m22-m00-m11+1) | |
493 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
494 | end | |
495 | end | |
496 | end | |
497 | ||
498 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
499 | local xs, ys, zs = x + x, y + y, z + z | |
500 | local wx, wy, wz = w*xs, w*ys, w*zs | |
501 | local xx = x*xs | |
502 | local xy = x*ys | |
503 | local xz = x*zs | |
504 | local yy = y*ys | |
505 | local yz = y*zs | |
506 | local zz = z*zs | |
507 | 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)) | |
508 | end | |
509 | ||
510 | function QuaternionSlerp(a, b, t) | |
511 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
512 | local startInterp, finishInterp; | |
513 | if cosTheta >= 0.0001 then | |
514 | if (1 - cosTheta) > 0.0001 then | |
515 | local theta = math.acos(cosTheta) | |
516 | local invSinTheta = 1/math.sin(theta) | |
517 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
518 | finishInterp = math.sin(t*theta)*invSinTheta | |
519 | else | |
520 | startInterp = 1-t | |
521 | finishInterp = t | |
522 | end | |
523 | else | |
524 | if (1+cosTheta) > 0.0001 then | |
525 | local theta = math.acos(-cosTheta) | |
526 | local invSinTheta = 1/math.sin(theta) | |
527 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
528 | finishInterp = math.sin(t*theta)*invSinTheta | |
529 | else | |
530 | startInterp = t-1 | |
531 | finishInterp = t | |
532 | end | |
533 | end | |
534 | 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 | |
535 | end | |
536 | ||
537 | function hideanim() | |
538 | equipped=false | |
539 | for i=0,1,0.1 do | |
540 | swait() | |
541 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4) | |
542 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4) | |
543 | Torso.Neck.C1=clerp(Torso.Neck.C1,necko2*euler(0,0,0),.4) | |
544 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4) | |
545 | RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4) | |
546 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4) | |
547 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4) | |
548 | RH.C0=clerp(RH.C0,RHC0,.2) | |
549 | RH.C1=clerp(RH.C1,RHC1,.2) | |
550 | LH.C0=clerp(LH.C0,LHC0,.2) | |
551 | LH.C1=clerp(LH.C1,LHC1,.2) | |
552 | end | |
553 | end | |
554 | ||
555 | function equipanim() | |
556 | equipped=true | |
557 | for i=0,1,0.1 do | |
558 | swait() | |
559 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3) | |
560 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3) | |
561 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1),.3) | |
562 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
563 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.1),.3) | |
564 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
565 | end | |
566 | end | |
567 | ||
568 | function attackone() | |
569 | ||
570 | end | |
571 | ||
572 | function attacktwo() | |
573 | end | |
574 | ||
575 | function attackthree() | |
576 | ||
577 | end | |
578 | ||
579 | ||
580 | ||
581 | ||
582 | ||
583 | ||
584 | ||
585 | ||
586 | ||
587 | ||
588 | ||
589 | ||
590 | ||
591 | ||
592 | ||
593 | ||
594 | ||
595 | ||
596 | ||
597 | function Nocturn(mouse) | |
598 | if de==true then | |
599 | de=false | |
600 | local n=2 | |
601 | --[[for i=0,1,0.1 do | |
602 | wait() | |
603 | Neck.C0=cf(0,1,0)*euler(-0.2+0.6*i*n,0,0) | |
604 | RW.C0=cf(1.5,0.5,0)*euler(3.14*i*n,0,0.3-0.9*i*n) | |
605 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
606 | LW.C0=cf(-1.5,0.5,0)*euler(3.14*i*n,0,-0.3+0.9*i*n) | |
607 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
608 | n=n-0.1 | |
609 | end]] | |
610 | local orb=part(3,Character,0,1,BrickColor.new("Really black"),"Orb",vt()) | |
611 | local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15)) | |
612 | local owld=weld(orb,orb,Torso,cf(0,-10,0)) | |
613 | so("http://roblox.com/asset/?id=137463716",orb,1,0.6) | |
614 | for i=1,0.3,-0.01 do | |
615 | wait() | |
616 | orb.Transparency=i | |
617 | omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5) | |
618 | MagicBlock(BrickColor.new("Really black"),orb.CFrame,15,15,15,2,2,2,0.1) | |
619 | local ef=part(3,workspace,0,0,BrickColor.new("Really black"),"Effect",vt()) | |
620 | ef.Anchored=true | |
621 | local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2)) | |
622 | local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0) | |
623 | ef.CFrame=orb.CFrame*ceef | |
624 | game:GetService("Debris"):AddItem(ef,2) | |
625 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
626 | for i=0,1,0.1 do | |
627 | wait() | |
628 | Part.Transparency=i | |
629 | Part.CFrame=Part.CFrame*cf(0,-1,0) | |
630 | end | |
631 | Part.Parent=nil | |
632 | end),ef,emsh) | |
633 | end | |
634 | local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector | |
635 | wait(.5) | |
636 | orb.Parent=nil | |
637 | local hit,pos = rayCast(orb.Position,Pos,999,Character) | |
638 | local mag=(orb.Position-pos).magnitude | |
639 | MagicCircle(BrickColor.new("Really black"),cf(pos),15,15,15,8,8,8,0.02) | |
640 | MagicBlock(BrickColor.new("Really black"),cf(pos),15,15,15,8,8,8,0.02) | |
641 | MagicCylinder(BrickColor.new("Really black"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01) | |
642 | for i=1,2 do | |
643 | MagicRing(BrickColor.new("Really black"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,1,1,1,0.04) | |
644 | end | |
645 | for i=1,5 do | |
646 | tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0) | |
647 | MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01) | |
648 | end | |
649 | for i=0,5 do | |
650 | tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0) | |
651 | MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01) | |
652 | end | |
653 | local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt()) | |
654 | ref.CFrame=cf(pos) | |
655 | so("http://roblox.com/asset/?id=183763506",Torso,1,0.6) | |
656 | so("http://roblox.com/asset/?id=178452221",Torso,1,0.6) | |
657 | so("http://www.roblox.com/Asset?ID=87767777",Torso,1,1) | |
658 | so("http://roblox.com/asset/?id=183763506",ref,1,0.6) | |
659 | so("http://roblox.com/asset/?id=178452221",ref,1,0.6) | |
660 | so("http://www.roblox.com/Asset?ID=87767777",ref,1,1) | |
661 | coroutine.resume(coroutine.create(function(Part) | |
662 | wait(1) | |
663 | Part.Parent=nil | |
664 | end),ref) | |
665 | MagniDamage(ref,20,10,30,40,"Knockdown",ref) | |
666 | if hit~=nil then | |
667 | Damagefunc(hit,30,70,50,"Knockdown",RootPart,0) | |
668 | end | |
669 | wait(1) | |
670 | local n=2 | |
671 | --[[for i=0,1,0.1 do | |
672 | wait() | |
673 | Neck.C0=cf(0,1,0)*euler(0.4-0.6*i*n,0,0) | |
674 | RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,-0.6+0.9*i*n) | |
675 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
676 | LW.C0=cf(-1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.6-0.9*i*n) | |
677 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
678 | n=n-0.1 | |
679 | end]] | |
680 | de=true | |
681 | end | |
682 | end | |
683 | ||
684 | function Darkrain() | |
685 | if de==true then | |
686 | de=false | |
687 | local n=2 | |
688 | for i=0,1,0.1 do | |
689 | wait() | |
690 | --[[Neck.C0=cf(0,1,0)*euler(-0.2+0.6*i*n,0,0) | |
691 | RW.C0=cf(1.5,0.5,0)*euler(3.14*i*n,0,0.3-0.3*i*n) | |
692 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
693 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i*n,0,-0.3) | |
694 | LW.C1=cf(0,0.5,0)*euler(0,0,0)]] | |
695 | n=n-0.1 | |
696 | end | |
697 | for i=1,math.random(20,40) do | |
698 | wait(.05) | |
699 | MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1) | |
700 | local orb=part(3,Character,0,0.5,BrickColor.new("Really black"),"Orb",vt()) | |
701 | orb.Anchored=true | |
702 | so("http://roblox.com/asset/?id=183763498",orb,1,1.2) | |
703 | local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(10,10,10)) | |
704 | orb.CFrame=cf(Player:GetMouse().Hit.p+vt(math.random(-10,10),math.random(50,100),math.random(-10,10))) | |
705 | MagicCircle(BrickColor.new("Really black"),orb.CFrame,10,10,10,1,1,1,0.1) | |
706 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
707 | wait(1) | |
708 | Part.Parent=nil | |
709 | local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(Part.Position-(Part.Position+vt(0,-1,0))).magnitude/100 | |
710 | local TheHit=Part.Position+vt(0,-1,0) | |
711 | local MouseLook=cf((Part.Position+TheHit)/2,TheHit+spread) | |
712 | local hit,pos = rayCast(Part.Position,MouseLook.lookVector,999,Character) | |
713 | local mag=(Part.Position-pos).magnitude | |
714 | MagicCylinder(BrickColor.new("Really black"),CFrame.new((Part.Position+pos)/2,pos)*angles(1.57,0,0) ,1,mag*5,1,0.5,0,0.5,0.05) | |
715 | MagicBlock(BrickColor.new("Really black"),Part.CFrame,8,8,8,0.5,0.5,0.5,0.1) | |
716 | MagicBlock(BrickColor.new("Really black"),cf(pos),15,15,15,6,6,6,0.1) | |
717 | MagicRing(BrickColor.new("Really black"),cf(pos)*euler(1.57,math.random(-100,100)/100,math.random(-100,100)/100),1,1,1,2,2,2,0.05) | |
718 | local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt()) | |
719 | ref.CFrame=cf(pos) | |
720 | so("http://roblox.com/asset/?id=183763487",ref,1,1) | |
721 | coroutine.resume(coroutine.create(function(Part) | |
722 | wait(1) | |
723 | Part.Parent=nil | |
724 | end),ref) | |
725 | MagniDamage(ref,15,5,10,0,"Normal",RootPart) | |
726 | if hit~=nil then | |
727 | Damagefunc(hit,20,40,1,"Knockdown",RootPart,0) | |
728 | end | |
729 | end),orb,omsh) | |
730 | end | |
731 | wait(0.5) | |
732 | local n=2 | |
733 | for i=0,1,0.1 do | |
734 | wait() | |
735 | --[[Neck.C0=cf(0,1,0)*euler(0.4-0.6*i*n,0,0) | |
736 | RW.C0=cf(1.5,0.5,0)*euler(3.14-3.14*i*n,0,0.3*i*n) | |
737 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
738 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i*n,0,-0.3) | |
739 | LW.C1=cf(0,0.5,0)*euler(0,0,0)]] | |
740 | n=n-0.1 | |
741 | end | |
742 | de=true | |
743 | end | |
744 | end | |
745 | ||
746 | function Terrorblast() | |
747 | if de==true then | |
748 | de=false | |
749 | local n=2 | |
750 | --[[for i=0,1,0.1 do | |
751 | wait() | |
752 | Neck.C0=cf(0,1,0)*euler(-0.2-0.2*i*n,0,0) | |
753 | RW.C0=cf(1.5-0.5*i*n,0.5,-0.5*i*n)*euler(1.4*i*n,0,0.2-1.4*i*n) | |
754 | LW.C0=cf(-1.5+0.5*i*n,0.5,-0.5*i*n)*euler(1.6*i*n,0,-0.2+1.6*i*n) | |
755 | n=n-0.1 | |
756 | end]] | |
757 | so("http://roblox.com/asset/?id=160772554",Torso,1,0.6) | |
758 | so("http://roblox.com/asset/?id=161006069",Torso,1,0.6) | |
759 | local charging=true | |
760 | for _,c in pairs(game.Workspace:GetChildren()) do | |
761 | if c.className=="Model" then | |
762 | if c:findFirstChild("Torso")~=nil and c:findFirstChild("Humanoid")~=nil and c.Name~=Player.Name then | |
763 | print(c) | |
764 | local Tors=c:findFirstChild("Torso") | |
765 | coroutine.resume(coroutine.create(function(Part) | |
766 | local ef=part(3,Character,0,0.5,BrickColor.new("Really black"),"Effect",vt(0.2,0.2,0.2)) | |
767 | ef.Anchored=true | |
768 | local emsh=mesh("SpecialMesh",ef,"Head","",vt(0,0,0),vt(1,1,1)) | |
769 | game:GetService("Debris"):AddItem(ef,5) | |
770 | while charging==true do | |
771 | wait() | |
772 | local TheHit=Part.Position | |
773 | local MouseLook=cf((Torso.Position+TheHit)/2,TheHit) | |
774 | local hit,pos = rayCast(Torso.Position,MouseLook.lookVector,999,Character) | |
775 | local mag=(Torso.Position-pos).magnitude | |
776 | ef.CFrame=CFrame.new((Torso.Position+pos)/2,pos)*euler(1.57,0,0) | |
777 | emsh.Scale=vt(1,mag*5,1) | |
778 | end | |
779 | ef.Parent=nil | |
780 | local TheHit=Part.Position | |
781 | local MouseLook=cf((Torso.Position+TheHit)/2,TheHit) | |
782 | wait() | |
783 | local hit,pos = rayCast(Torso.Position,MouseLook.lookVector,999,Character) | |
784 | local mag=(Torso.Position-pos).magnitude | |
785 | if hit~=nil then | |
786 | Damagefunc(hit,20,40,50,"Knockdown",RootPart,0) | |
787 | MagicCircle(BrickColor.new("Really black"),cf(pos),5,5,5,6,6,6,0.02) | |
788 | MagicBlock(BrickColor.new("Really black"),cf(pos),5,5,5,7,7,7,0.02) | |
789 | MagicCylinder(BrickColor.new("Really black"),CFrame.new((Torso.Position+pos)/2,pos)*euler(1.57,0,0),5,mag*5,5,0.5,0,0.5,0.01) | |
790 | so("http://roblox.com/asset/?id=183763515",hit,1,1) | |
791 | so("http://roblox.com/asset/?id=183763512",hit,1,1) | |
792 | end | |
793 | end),Tors) | |
794 | end | |
795 | end | |
796 | end | |
797 | wait(1) | |
798 | n=2 | |
799 | --[[for i=0,1,0.2 do | |
800 | wait() | |
801 | Neck.C0=cf(0,1,0)*euler(-0.4+0.2*i*n,0,0) | |
802 | RW.C0=cf(1+0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.4+0.17*i*n,0,-1.2+2.77*i*n) | |
803 | LW.C0=cf(-1-0.5*i*n,0.5,-0.5+0.5*i*n)*euler(1.6-0.03*i*n,0,1.4-2.97*i*n) | |
804 | n=n-0.2 | |
805 | end]] | |
806 | charging=false | |
807 | wait(1) | |
808 | n=2 | |
809 | --[[for i=0,1,0.1 do | |
810 | wait() | |
811 | Neck.C0=cf(0,1,0)*euler(-0.2,0,0) | |
812 | RW.C0=cf(1.5,0.5,0)*euler(1.57-1.57*i*n,0,1.57-1.37*i*n) | |
813 | LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.57*i*n,0,-1.57+1.37*i*n) | |
814 | n=n-0.1 | |
815 | end]] | |
816 | wait(6) | |
817 | de=true | |
818 | end | |
819 | end | |
820 | ||
821 | function Titanfall() | |
822 | if de==true then | |
823 | de=false | |
824 | Humanoid.WalkSpeed=0 | |
825 | local n=2 | |
826 | for i=0,1,0.05 do | |
827 | wait() | |
828 | --[[cf4=6-2*i*n | |
829 | cf5=2+2*i*n | |
830 | cf6=-2*i*n | |
831 | cf7=-6+2*i*n | |
832 | cf8=2+2*i*n | |
833 | cf9=-2*i*n | |
834 | Neck.C0=cf(0,1,0)*euler(-0.2+0.8*i*n,0,0) | |
835 | RW.C0=cf(1.5-0.5*i*n,0.5+0.5*i*n,-0.5*i*n)*euler(3.14*i*n,0,0.3-0.9*i*n) | |
836 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
837 | LW.C0=cf(-1.5+0.5*i*n,0.5+0.5*i*n,-0.5*i*n)*euler(3.14*i*n,0,-0.3+0.9*i*n) | |
838 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
839 | n=n-0.05]] | |
840 | end | |
841 | so("http://www.roblox.com/asset/?id=169445121",Torso,1,0.6) | |
842 | n=2 | |
843 | for i=0,1,0.2 do | |
844 | wait() | |
845 | MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1) | |
846 | MagicBlock(BrickColor.new("Really black"),LeftArm.CFrame*cf(0,-5,0),30,30,30,2,2,2,0.1) | |
847 | --cf11=-4+2*i*n | |
848 | --cf12=-2*i*n | |
849 | --cf5=4-4*i*n | |
850 | --cf8=4-4*i*n | |
851 | --RootJoint.C0=cf(0,-14.5+3*i*n,0)*euler(0,0,0) | |
852 | --[[Neck.C0=cf(0,1,0)*euler(0.6-1*i*n,0,0) | |
853 | RW.C0=cf(1,1-1*i*n,-0.5)*euler(3.14-2.64*i*n,0,-0.6) | |
854 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
855 | LW.C0=cf(-1,1-1*i*n,-0.5)*euler(3.14-2.64*i*n,0,0.6) | |
856 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
857 | RH.C0=cf(0.5,-1+0.5*i*n,-0.5*i*n)*euler(-0.1*i*n,0,0) | |
858 | RH.C1=cf(0,1,0) | |
859 | LH.C0=cf(-0.5,-1,0)*euler(-0.6*i*n,0,0) | |
860 | LH.C1=cf(0,1,0)]] | |
861 | n=n-0.2 | |
862 | end | |
863 | local cf2=RootPart.CFrame*cf(0,500,-20) | |
864 | local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt()) | |
865 | ref.CFrame=cf2 | |
866 | ref.Anchored=true | |
867 | local TheHit=ref.Position+vt(0,-1,0) | |
868 | local MouseLook=cf((ref.Position+TheHit)/2,TheHit) | |
869 | local hit,pos = rayCast(ref.Position,MouseLook.lookVector,999,Character) | |
870 | local ref2=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt()) | |
871 | ref2.CFrame=cf(pos) | |
872 | ref2.Anchored=true | |
873 | local mag=(ref.Position-pos).magnitude | |
874 | MagicCylinder(BrickColor.new("Really black"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),5,mag*5,5,1,0,1,0.05) | |
875 | MagicCircle(BrickColor.new("Really black"),ref2.CFrame,15,15,15,8,8,8,0.02) | |
876 | MagicBlock(BrickColor.new("Really black"),ref2.CFrame,15,15,15,3,3,3,0.02) | |
877 | WaveEffect2(BrickColor.new("Really black"),ref2.CFrame,5,5,5,2,3,2,0.05) | |
878 | MagicRing(BrickColor.new("Really black"),cf(ref2.Position)*euler(1.57,0,0),5,5,5,4,4,4,0.05) | |
879 | MagniDamage(ref2,25,20,50,math.random(10,30),"Knockdown",ref2) | |
880 | --so("http://roblox.com/asset/?id=144844438",ref2,1,0.8) | |
881 | so("http://roblox.com/asset/?id=87784452",ref2,1,0.8) | |
882 | so("http://roblox.com/asset/?id=183763515",ref2,1,0.8) | |
883 | game:GetService("Debris"):AddItem(ref,2) | |
884 | game:GetService("Debris"):AddItem(ref2,2) | |
885 | n=2 | |
886 | for i=0,1,0.1 do | |
887 | wait() | |
888 | --[[cf4=4+2*i*n | |
889 | cf5=2*i*n | |
890 | cf6=-2+2*i*n | |
891 | cf7=-4-2*i*n | |
892 | cf8=2*i*n | |
893 | cf9=-2+2*i*n | |
894 | cf11=-4+2-2*i*n | |
895 | cf12=-2+2*i*n | |
896 | RootJoint.C0=cf(0,-14.5+3-3*i*n,0)*euler(0,0,0) | |
897 | Neck.C0=cf(0,1,0)*euler(-0.4+0.2*i*n,0,0) | |
898 | RW.C0=cf(1+0.5*i*n,0.5*i*n,-0.5+0.5*i*n)*euler(0.5-0.5*i*n,0,-0.6+0.9*i*n) | |
899 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
900 | LW.C0=cf(-1-0.5*i*n,0.5*i*n,-0.5+0.5*i*n)*euler(0.5-0.5*i*n,0,0.6-0.9*i*n) | |
901 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
902 | RH.C0=cf(0.5,-0.5-0.5*i*n,-0.5+0.5*i*n)*euler(-0.1+0.1*i*n,0,0) | |
903 | RH.C1=cf(0,1,0) | |
904 | LH.C0=cf(-0.5,-1,0)*euler(-0.6+0.6*i*n,0,0) | |
905 | LH.C1=cf(0,1,0)]] | |
906 | n=n-0.1 | |
907 | end | |
908 | Humanoid.WalkSpeed=16 | |
909 | de=true | |
910 | end | |
911 | end | |
912 | ||
913 | function Darkstomp() | |
914 | if de==true then | |
915 | de=false | |
916 | Humanoid.WalkSpeed=0 | |
917 | local n=2 | |
918 | for i=0,1,0.1 do | |
919 | --[[wait() | |
920 | cf11=-4+2*i*n | |
921 | cf12=-2*i*n | |
922 | --cf13=-2 | |
923 | --cf14=-4 | |
924 | --cf15=0 | |
925 | RootJoint.C0=cf(0,-14.5,0)*euler(0.2*i*n,0,0) | |
926 | Neck.C0=cf(0,1,0)*euler(-0.2-0.4*i*n,0,0) | |
927 | RW.C0=cf(1.5,0.5,0)*euler(-0.2*i*n,0,0.3) | |
928 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
929 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2*i*n,0,-0.3) | |
930 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
931 | RH.C0=cf(0.5,-1+0.5*i*n,-0.5*i*n)*euler(0.2*i*n,0,0) | |
932 | RH.C1=cf(0,1,0) | |
933 | LH.C0=cf(-0.5,-1,0)*euler(-0.2*i*n,0,0) | |
934 | LH.C1=cf(0,1,0)]] | |
935 | n=n-0.1 | |
936 | end | |
937 | so("http://www.roblox.com/asset/?id=169445046",RightLeg,1,0.6) | |
938 | local n=2 | |
939 | for i=0,1,0.2 do | |
940 | wait() | |
941 | --cf11=-2-2*i*n | |
942 | --RH.C0=cf(0.5,-0.5-0.5*i*n,-0.5)*euler(0.2+0.1*i*n,0,0) | |
943 | --RH.C1=cf(0,1,0) | |
944 | n=n-0.2 | |
945 | end | |
946 | MagicCylinder(BrickColor.new("Really black"),cf(RightLeg.Position+vt(0,-4,0)),10,4,10,5,3,5,0.05) | |
947 | local numb=-8 | |
948 | local basecf=RootPart.CFrame | |
949 | for i=1,4 do | |
950 | local cf2=basecf*cf(0,0,numb) | |
951 | local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt()) | |
952 | ref.CFrame=cf2 | |
953 | ref.Anchored=true | |
954 | local TheHit=ref.Position+vt(0,-1,0) | |
955 | local MouseLook=cf((ref.Position+TheHit)/2,TheHit) | |
956 | local hit,pos = rayCast(ref.Position,MouseLook.lookVector,999,Character) | |
957 | local ref2=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt()) | |
958 | ref2.CFrame=cf(pos) | |
959 | ref2.Anchored=true | |
960 | MagicCircle(BrickColor.new("Really black"),ref2.CFrame,15,15,15,8,8,8,0.02) | |
961 | MagicWaveThing(BrickColor.new("Really black"),ref2.CFrame,5,5,5,2,2,2,0.05) | |
962 | MagniDamage(ref2,20,20,30,math.random(5,20),"Normal",RootPart) | |
963 | so("http://www.roblox.com/asset/?id=161006093",ref2,1,0.6) | |
964 | game:GetService("Debris"):AddItem(ref,2) | |
965 | game:GetService("Debris"):AddItem(ref2,2) | |
966 | numb=numb-15 | |
967 | wait(0.4) | |
968 | end | |
969 | --wait(1) | |
970 | local n=2 | |
971 | for i=0,1,0.1 do | |
972 | wait() | |
973 | --[[cf12=-2+2*i*n | |
974 | RootJoint.C0=cf(0,-14.5,0)*euler(0.2-0.2*i*n,0,0) | |
975 | Neck.C0=cf(0,1,0)*euler(-0.6+0.4*i*n,0,0) | |
976 | RW.C0=cf(1.5,0.5,0)*euler(-0.2+0.2*i*n,0,0.3) | |
977 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
978 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i*n,0,-0.3) | |
979 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
980 | RH.C0=cf(0.5,-1,-0.5+0.5*i*n)*euler(0.3-0.3*i*n,0,0) | |
981 | RH.C1=cf(0,1,0) | |
982 | LH.C0=cf(-0.5,-1,0)*euler(-0.2+0.2*i*n,0,0) | |
983 | LH.C1=cf(0,1,0)]] | |
984 | n=n-0.1 | |
985 | end | |
986 | Humanoid.WalkSpeed=16 | |
987 | de=true | |
988 | end | |
989 | end | |
990 | ||
991 | ||
992 | ||
993 | ||
994 | ||
995 | ||
996 | ||
997 | ||
998 | ||
999 | ||
1000 | ||
1001 | ||
1002 | ||
1003 | ||
1004 | ||
1005 | ||
1006 | function KaltosBeat() | |
1007 | ||
1008 | end | |
1009 | ||
1010 | function EnergyTranscend() | |
1011 | ||
1012 | end | |
1013 | ||
1014 | function TranscendAttack() | |
1015 | ||
1016 | end | |
1017 | ||
1018 | function NegConvert() | |
1019 | ||
1020 | end | |
1021 | ||
1022 | function KaltosWave() | |
1023 | ||
1024 | end | |
1025 | ||
1026 | function MagniDamage(Part,magni,mindam,maxdam,knock,Type) | |
1027 | for _,c in pairs(workspace:children()) do | |
1028 | local hum=c:findFirstChild("Humanoid") | |
1029 | if hum~=nil then | |
1030 | local head=c:findFirstChild("Torso") | |
1031 | if head~=nil then | |
1032 | local targ=head.Position-Part.Position | |
1033 | local mag=targ.magnitude | |
1034 | if mag<=magni and c.Name~=Player.Name then | |
1035 | Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3,1) | |
1036 | end | |
1037 | end | |
1038 | end | |
1039 | end | |
1040 | end | |
1041 | ||
1042 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1043 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1044 | end | |
1045 | ||
1046 | local Effects={} | |
1047 | local Point=Torso.CFrame*cf(0,Torso.Size.Y,0) | |
1048 | LastPoint=Point | |
1049 | function effect(Color,Ref,LP,P1,returnn) | |
1050 | local effectsmsh=Instance.new("CylinderMesh") | |
1051 | effectsmsh.Scale=Vector3.new(0.2,1,0.2) | |
1052 | effectsmsh.Name="Mesh" | |
1053 | local effectsg=Instance.new("Part") | |
1054 | effectsg.formFactor=3 | |
1055 | effectsg.CanCollide=false | |
1056 | effectsg.Name="Eff" | |
1057 | effectsg.Locked=true | |
1058 | effectsg.Anchored=true | |
1059 | effectsg.Size=Vector3.new(0.5,1,0.5) | |
1060 | effectsg.Parent=workspace | |
1061 | effectsmsh.Parent=effectsg | |
1062 | effectsg.BrickColor=Color1 | |
1063 | effectsg.Reflectance=Ref | |
1064 | local point1=P1 | |
1065 | local mg=(LP.p - point1.p).magnitude | |
1066 | effectsg.Size=Vector3.new(0.5,mg,0.5) | |
1067 | effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
1068 | effectsmsh.Scale=Vector3.new(0.4,1,0.4) | |
1069 | game:GetService("Debris"):AddItem(effectsg,2) | |
1070 | if returnn then return effectsg end | |
1071 | if not returnn then | |
1072 | table.insert(Effects,{effectsg,"Cylinder",0.05,0.01,0,0.01}) | |
1073 | end | |
1074 | end | |
1075 | ||
1076 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1077 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1078 | prt.Anchored=true | |
1079 | prt.CFrame=cframe | |
1080 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
1081 | game:GetService("Debris"):AddItem(prt,5) | |
1082 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1083 | for i=0,1,delay do | |
1084 | wait() | |
1085 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
1086 | Part.Transparency=i | |
1087 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1088 | end | |
1089 | Part.Parent=nil | |
1090 | end),prt,msh) | |
1091 | end | |
1092 | ||
1093 | function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1094 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1095 | prt.Anchored=true | |
1096 | prt.CFrame=cframe | |
1097 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1323306",vt(0,0,0),vt(x1,y1,z1)) | |
1098 | game:GetService("Debris"):AddItem(prt,2) | |
1099 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1100 | for i=0,1,delay do | |
1101 | wait() | |
1102 | Part.CFrame=Part.CFrame | |
1103 | Part.Transparency=i | |
1104 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1105 | end | |
1106 | Part.Parent=nil | |
1107 | end),prt,msh) | |
1108 | end | |
1109 | ||
1110 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent) | |
1111 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt()) | |
1112 | prt.Anchored=true | |
1113 | prt.CFrame=cframe | |
1114 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1115 | game:GetService("Debris"):AddItem(prt,5) | |
1116 | if Type==1 or Type==nil then | |
1117 | table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh}) | |
1118 | elseif Type==2 then | |
1119 | table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh}) | |
1120 | end | |
1121 | end | |
1122 | ||
1123 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1124 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt()) | |
1125 | prt.Anchored=true | |
1126 | prt.CFrame=cframe | |
1127 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1128 | game:GetService("Debris"):AddItem(prt,2) | |
1129 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh}) | |
1130 | end | |
1131 | ||
1132 | function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1133 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt()) | |
1134 | prt.Anchored=true | |
1135 | prt.CFrame=cframe | |
1136 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
1137 | game:GetService("Debris"):AddItem(prt,5) | |
1138 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh}) | |
1139 | end | |
1140 | ||
1141 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
1142 | if hit.Parent==nil then | |
1143 | return | |
1144 | end | |
1145 | h=hit.Parent:FindFirstChild("Humanoid") | |
1146 | for _,v in pairs(hit.Parent:children()) do | |
1147 | if v:IsA("Humanoid") then | |
1148 | h=v | |
1149 | end | |
1150 | end | |
1151 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
1152 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
1153 | end | |
1154 | if hit.Parent.className=="Hat" then | |
1155 | hit=hit.Parent.Parent:findFirstChild("Head") | |
1156 | end | |
1157 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
1158 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
1159 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
1160 | return | |
1161 | end]] | |
1162 | -- hs(hit,1.2) | |
1163 | c=Instance.new("ObjectValue") | |
1164 | c.Name="creator" | |
1165 | c.Value=game:service("Players").LocalPlayer | |
1166 | c.Parent=h | |
1167 | game:GetService("Debris"):AddItem(c,.5) | |
1168 | Damage=math.random(minim,maxim) | |
1169 | -- h:TakeDamage(Damage) | |
1170 | blocked=false | |
1171 | block=hit.Parent:findFirstChild("Block") | |
1172 | if block~=nil then | |
1173 | print(block.className) | |
1174 | if block.className=="NumberValue" then | |
1175 | if block.Value>0 then | |
1176 | blocked=true | |
1177 | if decreaseblock~=nil then | |
1178 | block.Value=block.Value-decreaseblock | |
1179 | end | |
1180 | end | |
1181 | end | |
1182 | if block.className=="IntValue" then | |
1183 | if block.Value>0 then | |
1184 | blocked=true | |
1185 | if decreaseblock~=nil then | |
1186 | block.Value=block.Value-decreaseblock | |
1187 | end | |
1188 | end | |
1189 | end | |
1190 | end | |
1191 | if blocked==false then | |
1192 | -- h:TakeDamage(Damage) | |
1193 | h.Health=h.Health-Damage | |
1194 | showDamage(hit.Parent,Damage,.5,BrickColor:Red()) | |
1195 | else | |
1196 | h.Health=h.Health-(Damage/2) | |
1197 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
1198 | end | |
1199 | if Type=="Knockdown" then | |
1200 | hum=hit.Parent.Humanoid | |
1201 | hum.PlatformStand=true | |
1202 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1203 | swait(1) | |
1204 | HHumanoid.PlatformStand=false | |
1205 | end),hum) | |
1206 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
1207 | --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
1208 | local bodvol=Instance.new("BodyVelocity") | |
1209 | bodvol.velocity=angle*knockback | |
1210 | bodvol.P=5000 | |
1211 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1212 | bodvol.Parent=hit | |
1213 | rl=Instance.new("BodyAngularVelocity") | |
1214 | rl.P=3000 | |
1215 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
1216 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
1217 | rl.Parent=hit | |
1218 | game:GetService("Debris"):AddItem(bodvol,.5) | |
1219 | game:GetService("Debris"):AddItem(rl,.5) | |
1220 | elseif Type=="Normal" then | |
1221 | vp=Instance.new("BodyVelocity") | |
1222 | vp.P=500 | |
1223 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
1224 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
1225 | if KnockbackType==1 then | |
1226 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
1227 | elseif KnockbackType==2 then | |
1228 | vp.velocity=Property.CFrame.lookVector*knockback | |
1229 | end | |
1230 | if knockback>0 then | |
1231 | vp.Parent=hit.Parent.Torso | |
1232 | end | |
1233 | game:GetService("Debris"):AddItem(vp,.5) | |
1234 | elseif Type=="Up" then | |
1235 | local bodyVelocity=Instance.new("BodyVelocity") | |
1236 | bodyVelocity.velocity=vt(0,30,0) | |
1237 | bodyVelocity.P=5000 | |
1238 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1239 | bodyVelocity.Parent=hit | |
1240 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
1241 | rl=Instance.new("BodyAngularVelocity") | |
1242 | rl.P=3000 | |
1243 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
1244 | rl.angularvelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
1245 | rl.Parent=hit | |
1246 | game:GetService("Debris"):AddItem(rl,.5) | |
1247 | elseif Type=="Snare" then | |
1248 | bp=Instance.new("BodyPosition") | |
1249 | bp.P=2000 | |
1250 | bp.D=100 | |
1251 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1252 | bp.position=hit.Parent.Torso.Position | |
1253 | bp.Parent=hit.Parent.Torso | |
1254 | game:GetService("Debris"):AddItem(bp,1) | |
1255 | end | |
1256 | debounce=Instance.new("BoolValue") | |
1257 | debounce.Name="DebounceHit" | |
1258 | debounce.Parent=hit.Parent | |
1259 | debounce.Value=true | |
1260 | game:GetService("Debris"):AddItem(debounce,Delay) | |
1261 | c=Instance.new("ObjectValue") | |
1262 | c.Name="creator" | |
1263 | c.Value=Player | |
1264 | c.Parent=h | |
1265 | game:GetService("Debris"):AddItem(c,.5) | |
1266 | CRIT=false | |
1267 | end | |
1268 | end | |
1269 | ||
1270 | showDamage=function(Char,Dealt,du,Color) | |
1271 | m=Instance.new("Model") | |
1272 | m.Name=tostring(math.floor(Dealt)) | |
1273 | h=Instance.new("Humanoid") | |
1274 | h.Health=0 | |
1275 | h.MaxHealth=0 | |
1276 | h.Parent=m | |
1277 | c=Instance.new("Part") | |
1278 | c.Transparency=0 | |
1279 | c.BrickColor=Color | |
1280 | c.Name="Head" | |
1281 | c.TopSurface=0 | |
1282 | c.BottomSurface=0 | |
1283 | c.formFactor="Plate" | |
1284 | c.Size=Vector3.new(1,.4,1) | |
1285 | ms=Instance.new("CylinderMesh") | |
1286 | ms.Scale=Vector3.new(.8,.8,.8) | |
1287 | if CRIT==true then | |
1288 | ms.Scale=Vector3.new(1,1.25,1) | |
1289 | end | |
1290 | ms.Parent=c | |
1291 | c.Reflectance=0 | |
1292 | Instance.new("BodyGyro").Parent=c | |
1293 | c.Parent=m | |
1294 | if Char:findFirstChild("Head")~=nil then | |
1295 | c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1296 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
1297 | c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1298 | end | |
1299 | f=Instance.new("BodyPosition") | |
1300 | f.P=2000 | |
1301 | f.D=100 | |
1302 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1303 | f.position=c.Position+Vector3.new(0,3,0) | |
1304 | f.Parent=c | |
1305 | game:GetService("Debris"):AddItem(m,.5+du) | |
1306 | c.CanCollide=false | |
1307 | m.Parent=workspace | |
1308 | c.CanCollide=false | |
1309 | end | |
1310 | function transform() | |
1311 | text.Text = "Vantas True Form" | |
1312 | --------------------------This is an Official script from Duelist-------------------------- | |
1313 | ---{-------------------- -------------------}--- | |
1314 | ---{-------------------- / \ -------------------}--- | |
1315 | ---{-------------------- II -------------------}--- | |
1316 | ---{-------------------- II -------------------}--- | |
1317 | ---{-------------------- II -------------------}--- | |
1318 | ---{-------------------- A========A -------------------}--- | |
1319 | ---{-------------------- II -------------------}--- | |
1320 | ---{-------------------- II -------------------}--- | |
1321 | ---{-------------------- W -------------------}--- | |
1322 | ------------------------------------------------------------------------------------------------------------- | |
1323 | wait(0.016666666666666666) | |
1324 | Player = game:GetService("Players").LocalPlayer | |
1325 | Character = Player.Character | |
1326 | PlayerGui = Player.PlayerGui | |
1327 | Backpack = Player.Backpack | |
1328 | Torso = Character.Torso | |
1329 | Head = Character.Head | |
1330 | Humanoid = Character.Humanoid | |
1331 | LeftArm = Character["Left Arm"] | |
1332 | LeftLeg = Character["Left Leg"] | |
1333 | RightArm = Character["Right Arm"] | |
1334 | RightLeg = Character["Right Leg"] | |
1335 | LS = Torso["Left Shoulder"] | |
1336 | LH = Torso["Left Hip"] | |
1337 | RS = Torso["Right Shoulder"] | |
1338 | RH = Torso["Right Hip"] | |
1339 | Face = Head.face | |
1340 | Neck = Torso.Neck | |
1341 | it = Instance.new | |
1342 | attacktype = 1 | |
1343 | vt = Vector3.new | |
1344 | cf = CFrame.new | |
1345 | euler = CFrame.fromEulerAnglesXYZ | |
1346 | angles = CFrame.Angles | |
1347 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1348 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1349 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1350 | RootPart = Character.HumanoidRootPart | |
1351 | RootJoint = RootPart.RootJoint | |
1352 | RootCF = euler(-1.57, 0, 3.14) | |
1353 | attack = false | |
1354 | equipped = false | |
1355 | Mouse = Player:GetMouse() | |
1356 | mana = 0 | |
1357 | local idle = 0 | |
1358 | local Anim = "Idle" | |
1359 | local ShotTarget = RootPart | |
1360 | player = nil | |
1361 | local Stats = Instance.new("Folder", Character) | |
1362 | Stats.Name = "Stats" | |
1363 | local Defense = Instance.new("NumberValue", Stats) | |
1364 | Defense.Name = "Defense" | |
1365 | Defense.Value = 0.6 | |
1366 | local Speed = Instance.new("NumberValue", Stats) | |
1367 | Speed.Name = "Speed" | |
1368 | Speed.Value = 1.6625 | |
1369 | local Damage = Instance.new("NumberValue", Stats) | |
1370 | Damage.Name = "Damage" | |
1371 | Damage.Value = 1 | |
1372 | local BlockValue = Instance.new("BoolValue", Stats) | |
1373 | BlockValue.Name = "BlockValue" | |
1374 | BlockValue.Value = false | |
1375 | local StaggerHitAnim = Instance.new("BoolValue", Stats) | |
1376 | StaggerHitAnim.Name = "StaggerHitAnim" | |
1377 | StaggerHitAnim.Value = false | |
1378 | local staghitanim = false | |
1379 | local StaggerAnim = Instance.new("BoolValue", Stats) | |
1380 | StaggerAnim.Name = "StaggerAnim" | |
1381 | StaggerAnim.Value = false | |
1382 | local staganim = false | |
1383 | local StunAnim = Instance.new("BoolValue", Stats) | |
1384 | StunAnim.Name = "StunAnim" | |
1385 | StunAnim.Value = false | |
1386 | local stunanim = false | |
1387 | local StunValue = Instance.new("NumberValue", Stats) | |
1388 | StunValue.Name = "StunValue" | |
1389 | StunValue.Value = 0 | |
1390 | local cooldown1 = 0 | |
1391 | local cooldown2 = 0 | |
1392 | local cooldown3 = 0 | |
1393 | local cooldown4 = 0 | |
1394 | local mana = 0 | |
1395 | CustomColor = BrickColor.new("Really black") | |
1396 | Colorpart1 = CustomColor.r | |
1397 | Colorpart2 = CustomColor.g | |
1398 | Colorpart3 = CustomColor.b | |
1399 | local scrn = Instance.new("ScreenGui", PlayerGui) | |
1400 | local ud = UDim2.new | |
1401 | local c3 = Color3.new | |
1402 | local skillcolorscheme = c3(1, 1, 1) | |
1403 | local co1 = 0 | |
1404 | local co2 = 0 | |
1405 | local co3 = 0 | |
1406 | local co4 = 0 | |
1407 | local maxmana = 0 | |
1408 | local maxstun = 1 | |
1409 | local recovermana = 0 | |
1410 | local losestun = 0 | |
1411 | local stunwait = 0 | |
1412 | local manawait = 0 | |
1413 | local skill1mana = 0 | |
1414 | local skill2mana = 0 | |
1415 | local skill3mana = 0 | |
1416 | local skill4mana = 0 | |
1417 | local menuupdatespeed = 0 | |
1418 | local constantupdate = false | |
1419 | local showstats = false | |
1420 | local showstunbar = false | |
1421 | function makeframe(par, trans, pos, size, color, name) | |
1422 | local frame = Instance.new("Frame") | |
1423 | frame.Parent = par | |
1424 | frame.BackgroundTransparency = trans | |
1425 | frame.BorderSizePixel = 0 | |
1426 | frame.Position = pos | |
1427 | frame.Size = size | |
1428 | frame.BackgroundColor3 = color | |
1429 | frame.Name = name | |
1430 | return frame | |
1431 | end | |
1432 | function makelabel(par, text, trans, stroketrans, name) | |
1433 | local label = Instance.new("TextLabel") | |
1434 | label.Parent = par | |
1435 | label.BackgroundTransparency = 1 | |
1436 | label.Size = ud(1, 0, 1, 0) | |
1437 | label.Position = ud(0, 0, 0, 0) | |
1438 | label.TextColor3 = c3(255, 255, 255) | |
1439 | label.TextStrokeTransparency = stroketrans | |
1440 | label.TextTransparency = trans | |
1441 | label.FontSize = Enum.FontSize.Size32 | |
1442 | label.Font = Enum.Font.Legacy | |
1443 | label.BorderSizePixel = 0 | |
1444 | label.TextScaled = true | |
1445 | label.Text = text | |
1446 | label.Name = name | |
1447 | return label | |
1448 | end | |
1449 | framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 1") | |
1450 | framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 2") | |
1451 | framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 3") | |
1452 | framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 4") | |
1453 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 1") | |
1454 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 2") | |
1455 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 3") | |
1456 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 4") | |
1457 | text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1") | |
1458 | text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2") | |
1459 | text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3") | |
1460 | text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4") | |
1461 | manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar") | |
1462 | manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover") | |
1463 | manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text") | |
1464 | healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar") | |
1465 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover") | |
1466 | healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text") | |
1467 | if showstunbar == true then | |
1468 | stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame") | |
1469 | stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar") | |
1470 | stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text") | |
1471 | end | |
1472 | if showstats == true then | |
1473 | defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 0.39215686274509803, 1), "Defense Frame") | |
1474 | damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.39215686274509803, 0.39215686274509803), "Damage Frame") | |
1475 | speedframe = makeframe(scrn, 0.5, ud(0.4145, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 1, 0.39215686274509803), "Speed Frame") | |
1476 | defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text") | |
1477 | damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text") | |
1478 | speedtext = makelabel(speedframe, "Speed: " .. Speed.Value, 1, 1, "Speed Text") | |
1479 | end | |
1480 | function NoOutline(Part) | |
1481 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1482 | end | |
1483 | local weldBetween = function(a, b) | |
1484 | local weldd = Instance.new("ManualWeld") | |
1485 | weldd.Part0 = a | |
1486 | weldd.Part1 = b | |
1487 | weldd.C0 = CFrame.new() | |
1488 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1489 | weldd.Parent = a | |
1490 | return weldd | |
1491 | end | |
1492 | ArtificialHeartbeat = Instance.new("BindableEvent", script) | |
1493 | ArtificialHeartbeat.Name = "ArtificialHeartbeat" | |
1494 | script:WaitForChild("ArtificialHeartbeat") | |
1495 | frame = 0.016666666666666666 | |
1496 | tf = 0 | |
1497 | allowframeloss = false | |
1498 | tossremainder = false | |
1499 | lastframe = tick() | |
1500 | script.ArtificialHeartbeat:Fire() | |
1501 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1502 | tf = tf + s | |
1503 | if tf >= frame then | |
1504 | if allowframeloss then | |
1505 | script.ArtificialHeartbeat:Fire() | |
1506 | lastframe = tick() | |
1507 | else | |
1508 | for i = 1, math.floor(tf / frame) do | |
1509 | script.ArtificialHeartbeat:Fire() | |
1510 | end | |
1511 | lastframe = tick() | |
1512 | end | |
1513 | if tossremainder then | |
1514 | tf = 0 | |
1515 | else | |
1516 | tf = tf - frame * math.floor(tf / frame) | |
1517 | end | |
1518 | end | |
1519 | end) | |
1520 | function nooutline(part) | |
1521 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1522 | end | |
1523 | function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
1524 | local fp = it("Part") | |
1525 | fp.formFactor = formfactor | |
1526 | fp.Parent = parent | |
1527 | fp.Reflectance = reflectance | |
1528 | fp.Transparency = transparency | |
1529 | fp.CanCollide = false | |
1530 | fp.Locked = true | |
1531 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
1532 | fp.Name = name | |
1533 | fp.Size = size | |
1534 | fp.Position = Character.Torso.Position | |
1535 | nooutline(fp) | |
1536 | fp.Material = material | |
1537 | fp:BreakJoints() | |
1538 | return fp | |
1539 | end | |
1540 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
1541 | local mesh = it(Mesh) | |
1542 | mesh.Parent = part | |
1543 | if Mesh == "SpecialMesh" then | |
1544 | mesh.MeshType = meshtype | |
1545 | mesh.MeshId = meshid | |
1546 | end | |
1547 | mesh.Offset = offset | |
1548 | mesh.Scale = scale | |
1549 | return mesh | |
1550 | end | |
1551 | function weld(parent, part0, part1, c0, c1) | |
1552 | local weld = it("Weld") | |
1553 | weld.Parent = parent | |
1554 | weld.Part0 = part0 | |
1555 | weld.Part1 = part1 | |
1556 | weld.C0 = c0 | |
1557 | weld.C1 = c1 | |
1558 | return weld | |
1559 | end | |
1560 | Humanoid.CameraOffset = vt(0, 12, 0) | |
1561 | Humanoid.JumpPower = Humanoid.JumpPower * 2 | |
1562 | coroutine.resume(coroutine.create(function() | |
1563 | Humanoid.MaxHealth = 5100 | |
1564 | wait(0.1) | |
1565 | Humanoid.Health = Humanoid.MaxHealth | |
1566 | end)) | |
1567 | m = Instance.new("Model", Character) | |
1568 | m.Name = "Outer Being" | |
1569 | healthscript = Character:FindFirstChild("Health") | |
1570 | if healthscript ~= nil then | |
1571 | healthscript:Destroy() | |
1572 | end | |
1573 | Effects = Instance.new("Folder", m) | |
1574 | Effects.Name = "Effects" | |
1575 | local outerbeingtransparency = 1 | |
1576 | local head2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "Head2", vt(0, 0, 0)) | |
1577 | local head2mesh = mesh("SpecialMesh", head2, "Head", "", vt(0, 0, 0), vt(62.5, 31.25, 31.25)) | |
1578 | local torso2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "Torso2", vt(0, 0, 0)) | |
1579 | local torso2mesh = mesh("BlockMesh", torso2, "", "", vt(0, 0, 0), vt(50, 50, 25)) | |
1580 | local leftarm2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "LeftArm2", vt(0, 0, 0)) | |
1581 | local leftarm2mesh = mesh("BlockMesh", leftarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)) | |
1582 | local rightarm2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "RightArm2", vt(0, 0, 0)) | |
1583 | local rightarm2mesh = mesh("BlockMesh", rightarm2, "", "", vt(0, 0, 0), vt(25, 50, 25)) | |
1584 | local leftleg2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "LeftLeg2", vt(0, 0, 0)) | |
1585 | local leftleg2mesh = mesh("BlockMesh", leftleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)) | |
1586 | local rightleg2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "RightLeg2", vt(0, 0, 0)) | |
1587 | local rightleg2mesh = mesh("BlockMesh", rightleg2, "", "", vt(0, 0, 0), vt(25, 50, 25)) | |
1588 | head2.CFrame = Head.CFrame | |
1589 | torso2.CFrame = Head.CFrame | |
1590 | leftarm2.CFrame = Head.CFrame | |
1591 | rightarm2.CFrame = Head.CFrame | |
1592 | leftleg2.CFrame = Head.CFrame | |
1593 | rightleg2.CFrame = Head.CFrame | |
1594 | local head2weld = weld(m, Torso, head2, cf(0, 0, 0), cf(0, 0, 0)) | |
1595 | local torso2weld = weld(m, Torso, torso2, cf(0, 0, 0), cf(0, 0, 0)) | |
1596 | local leftarm2weld = weld(m, Torso, leftarm2, cf(0, 0, 0), cf(0, 0, 0)) | |
1597 | local rightarm2weld = weld(m, Torso, rightarm2, cf(0, 0, 0), cf(0, 0, 0)) | |
1598 | local leftleg2weld = weld(m, Torso, leftleg2, cf(0, 0, 0), cf(0, 0, 0)) | |
1599 | local rightleg2weld = weld(m, Torso, rightleg2, cf(0, 0, 0), cf(0, 0, 0)) | |
1600 | head2weld.C1 = cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0) | |
1601 | torso2weld.C1 = cf(0, 0, 0) | |
1602 | rightarm2weld.C1 = cf(0, 2.5, -0.5) | |
1603 | leftarm2weld.C1 = cf(0, 2.5, -0.5) | |
1604 | rightleg2weld.C1 = cf(0, 5, 0) | |
1605 | leftleg2weld.C1 = cf(0, 5, 0) | |
1606 | coroutine.resume(coroutine.create(function() | |
1607 | while Humanoid.Health ~= 0 do | |
1608 | ArtificialHeartbeat.Event:wait() | |
1609 | head2weld.C0 = cf(0, 4, 0) * Neck.C0 | |
1610 | torso2weld.C0 = cf(0, 0, 0) | |
1611 | rightarm2weld.C0 = cf(6, 2, 0) * RW.C0 | |
1612 | leftarm2weld.C0 = cf(-6, 2, 0) * LW.C0 | |
1613 | rightleg2weld.C0 = cf(1.5, -4, 0) * RH.C0 | |
1614 | leftleg2weld.C0 = cf(-1.5, -4, 0) * LH.C0 | |
1615 | head2.Transparency = outerbeingtransparency | |
1616 | torso2.Transparency = outerbeingtransparency | |
1617 | leftarm2.Transparency = outerbeingtransparency | |
1618 | rightarm2.Transparency = outerbeingtransparency | |
1619 | leftleg2.Transparency = outerbeingtransparency | |
1620 | rightleg2.Transparency = outerbeingtransparency | |
1621 | end | |
1622 | end)) | |
1623 | Humanoid.Died:connect(function() | |
1624 | end) | |
1625 | for i, v in pairs(Character:GetChildren()) do | |
1626 | if v:IsA("Model") then | |
1627 | for _, c in pairs(v:GetChildren()) do | |
1628 | if c:IsA("Part") then | |
1629 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1630 | end | |
1631 | end | |
1632 | end | |
1633 | end | |
1634 | print([[ | |
1635 | Vanta loaded. | |
1636 | Unleash your power on your enemies.]]) | |
1637 | function so(id, par, vol, pit) | |
1638 | coroutine.resume(coroutine.create(function() | |
1639 | local sou = Instance.new("Sound", par or workspace) | |
1640 | sou.Volume = vol | |
1641 | sou.Pitch = pit or 1 | |
1642 | sou.SoundId = id | |
1643 | ArtificialHeartbeat.Event:wait() | |
1644 | sou:play() | |
1645 | game:GetService("Debris"):AddItem(sou, 6) | |
1646 | end)) | |
1647 | end | |
1648 | function clerp(a, b, t) | |
1649 | local qa = { | |
1650 | QuaternionFromCFrame(a) | |
1651 | } | |
1652 | local qb = { | |
1653 | QuaternionFromCFrame(b) | |
1654 | } | |
1655 | local ax, ay, az = a.x, a.y, a.z | |
1656 | local bx, by, bz = b.x, b.y, b.z | |
1657 | local _t = 1 - t | |
1658 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1659 | end | |
1660 | function QuaternionFromCFrame(cf) | |
1661 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1662 | local trace = m00 + m11 + m22 | |
1663 | if trace > 0 then | |
1664 | local s = math.sqrt(1 + trace) | |
1665 | local recip = 0.5 / s | |
1666 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1667 | else | |
1668 | local i = 0 | |
1669 | if m00 < m11 then | |
1670 | i = 1 | |
1671 | end | |
1672 | if m22 > (i == 0 and m00 or m11) then | |
1673 | i = 2 | |
1674 | end | |
1675 | if i == 0 then | |
1676 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1677 | local recip = 0.5 / s | |
1678 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1679 | elseif i == 1 then | |
1680 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1681 | local recip = 0.5 / s | |
1682 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1683 | elseif i == 2 then | |
1684 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1685 | local recip = 0.5 / s | |
1686 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1687 | end | |
1688 | end | |
1689 | end | |
1690 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1691 | local xs, ys, zs = x + x, y + y, z + z | |
1692 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1693 | local xx = x * xs | |
1694 | local xy = x * ys | |
1695 | local xz = x * zs | |
1696 | local yy = y * ys | |
1697 | local yz = y * zs | |
1698 | local zz = z * zs | |
1699 | 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)) | |
1700 | end | |
1701 | function QuaternionSlerp(a, b, t) | |
1702 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1703 | local startInterp, finishInterp | |
1704 | if cosTheta >= 1.0E-4 then | |
1705 | if 1 - cosTheta > 1.0E-4 then | |
1706 | local theta = math.acos(cosTheta) | |
1707 | local invSinTheta = 1 / math.sin(theta) | |
1708 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
1709 | finishInterp = math.sin(t * theta) * invSinTheta | |
1710 | else | |
1711 | startInterp = 1 - t | |
1712 | finishInterp = t | |
1713 | end | |
1714 | elseif 1 + cosTheta > 1.0E-4 then | |
1715 | local theta = math.acos(-cosTheta) | |
1716 | local invSinTheta = 1 / math.sin(theta) | |
1717 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
1718 | finishInterp = math.sin(t * theta) * invSinTheta | |
1719 | else | |
1720 | startInterp = t - 1 | |
1721 | finishInterp = t | |
1722 | end | |
1723 | 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 | |
1724 | end | |
1725 | function rayCast(Pos, Dir, Max, Ignore) | |
1726 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1727 | end | |
1728 | function makegui(cframe, text, color) | |
1729 | local c = Instance.new("Part") | |
1730 | c.Size = vt(0.2, 0.2, 0.2) | |
1731 | c.Transparency = 1 | |
1732 | Instance.new("BodyGyro").Parent = c | |
1733 | c.Parent = Effects | |
1734 | c.CFrame = cf(cframe.p + vt(0, 1.5, 0)) | |
1735 | local f = Instance.new("BodyPosition") | |
1736 | f.P = 2000 | |
1737 | f.D = 100 | |
1738 | f.maxForce = vt(math.huge, math.huge, math.huge) | |
1739 | f.position = c.Position + vt(0, 6, 0) | |
1740 | f.Parent = c | |
1741 | game:GetService("Debris"):AddItem(c, 5) | |
1742 | c.CanCollide = false | |
1743 | c.Parent = workspace | |
1744 | c.CanCollide = false | |
1745 | local bg = Instance.new("BillboardGui", c) | |
1746 | bg.Adornee = c | |
1747 | bg.Size = UDim2.new(2.5, 0, 2.5, 0) | |
1748 | bg.StudsOffset = vt(-2, 2, 0) | |
1749 | bg.AlwaysOnTop = false | |
1750 | local tl = Instance.new("TextLabel", bg) | |
1751 | tl.BackgroundTransparency = 1 | |
1752 | tl.Size = UDim2.new(2.5, 0, 2.5, 0) | |
1753 | tl.Text = text | |
1754 | tl.Font = Enum.Font.SourceSans | |
1755 | tl.FontSize = Enum.FontSize.Size42 | |
1756 | tl.TextColor3 = color | |
1757 | tl.TextScaled = false | |
1758 | tl.TextStrokeTransparency = 0 | |
1759 | tl.TextScaled = true | |
1760 | tl.TextWrapped = true | |
1761 | f.Parent = c | |
1762 | coroutine.resume(coroutine.create(function() | |
1763 | wait(0.25) | |
1764 | for i = 1, 5 do | |
1765 | ArtificialHeartbeat.Event:wait() | |
1766 | f.position = c.Position - vt(0, 0.5, 0) | |
1767 | end | |
1768 | end)) | |
1769 | coroutine.resume(coroutine.create(function() | |
1770 | wait(2) | |
1771 | for i = 1, 10 do | |
1772 | ArtificialHeartbeat.Event:wait() | |
1773 | tl.TextTransparency = tl.TextTransparency + 0.1 | |
1774 | tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1 | |
1775 | f.position = c.Position + vt(0, 0.5, 0) | |
1776 | end | |
1777 | c.Parent = nil | |
1778 | end)) | |
1779 | end | |
1780 | local CritChance = Instance.new("NumberValue", Stats) | |
1781 | CritChance.Name = "CritChance" | |
1782 | CritChance.Value = 1 | |
1783 | local critchancenumber = 50 | |
1784 | local cancrit = false | |
1785 | local canpenetratearmor = false | |
1786 | local cancollidewithhitbox = false | |
1787 | local sethitblockvaluetofalse = true | |
1788 | local antiteamkill = false | |
1789 | local HitPlayerSounds = { | |
1790 | 199149137, | |
1791 | 199149186, | |
1792 | 199149221, | |
1793 | 199149235, | |
1794 | 199149269, | |
1795 | 199149297 | |
1796 | } | |
1797 | local HitArmorSounds = { | |
1798 | 199149321, | |
1799 | 199149338, | |
1800 | 199149367, | |
1801 | 199149409, | |
1802 | 199149452 | |
1803 | } | |
1804 | local HitWeaponSounds = { | |
1805 | 199148971, | |
1806 | 199149025, | |
1807 | 199149072, | |
1808 | 199149109, | |
1809 | 199149119 | |
1810 | } | |
1811 | local HitBlockSounds = {199148933, 199148947} | |
1812 | function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
1813 | if hit.Parent == nil then | |
1814 | return | |
1815 | end | |
1816 | h = hit.Parent:FindFirstChild("Humanoid") | |
1817 | for _, v in pairs(hit.Parent:children()) do | |
1818 | if v:IsA("Humanoid") then | |
1819 | h = v | |
1820 | end | |
1821 | end | |
1822 | if antiteamkill == true then | |
1823 | if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then | |
1824 | opponent = game.Players:FindFirstChild(hit.Parent.Name) | |
1825 | end | |
1826 | if opponent ~= nil and opponent.TeamColor == Player.TeamColor then | |
1827 | return | |
1828 | end | |
1829 | end | |
1830 | if hit.Name == "Hitbox" and hit:FindFirstChild("TouchInterest") ~= nil then | |
1831 | StaggerHitAnim.Value = true | |
1832 | so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1) | |
1833 | return | |
1834 | end | |
1835 | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then | |
1836 | h = hit.Parent.Parent:FindFirstChild("Humanoid") | |
1837 | end | |
1838 | if hit.Parent.className == "Hat" then | |
1839 | hit = hit.Parent.Parent:findFirstChild("Head") | |
1840 | end | |
1841 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
1842 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1843 | return | |
1844 | end | |
1845 | if hit.Parent:findFirstChild("Stats") ~= nil then | |
1846 | if hit.Parent.Stats:findFirstChild("StunValue") ~= nil then | |
1847 | hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun | |
1848 | end | |
1849 | elseif hit.Parent:findFirstChild("StunValue") ~= nil then | |
1850 | hit.Parent:findFirstChild("StunValue").Value = hit.Parent:findFirstChild("StunValue").Value + incstun | |
1851 | end | |
1852 | if hit.Parent:findFirstChild("StaggerAnim") ~= nil and stagger == true then | |
1853 | hit.Parent:findFirstChild("StaggerAnim").Value = true | |
1854 | end | |
1855 | if hit.Parent:findFirstChild("Stats") ~= nil then | |
1856 | if hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then | |
1857 | makegui(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) | |
1858 | so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1) | |
1859 | if ranged ~= true then | |
1860 | if sethitblockvaluetofalse == true then | |
1861 | hit.Parent.Stats:findFirstChild("BlockValue").Value = false | |
1862 | end | |
1863 | StaggerAnim.Value = true | |
1864 | end | |
1865 | return | |
1866 | end | |
1867 | elseif hit.Parent:findFirstChild("BlockValue") ~= nil and hit.Parent:findFirstChild("BlockValue").Value == true then | |
1868 | makegui(Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1)) | |
1869 | so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1) | |
1870 | if ranged ~= true then | |
1871 | if sethitblockvaluetofalse == true then | |
1872 | hit.Parent:findFirstChild("BlockValue").Value = false | |
1873 | end | |
1874 | StaggerAnim.Value = true | |
1875 | end | |
1876 | return | |
1877 | end | |
1878 | local D = math.random(minim, maxim) * Damage.Value | |
1879 | if hit.Parent:FindFirstChild("Stats") ~= nil then | |
1880 | if hit.Parent.Stats:FindFirstChild("Defense") then | |
1881 | if canpenetratearmor == true then | |
1882 | else | |
1883 | D = D / hit.Parent.Stats:FindFirstChild("Defense").Value | |
1884 | end | |
1885 | elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then | |
1886 | end | |
1887 | elseif hit.Parent:FindFirstChild("Defense") then | |
1888 | if canpenetratearmor == true then | |
1889 | else | |
1890 | D = D / hit.Parent:FindFirstChild("Defense").Value | |
1891 | end | |
1892 | elseif hit.Parent:FindFirstChild("Defense") == nil then | |
1893 | end | |
1894 | if cancrit == true then | |
1895 | CritChance.Value = math.random(1, critchancenumber) | |
1896 | if CritChance.Value == critchancenumber then | |
1897 | D = D * 2 | |
1898 | end | |
1899 | end | |
1900 | h.Health = h.Health - D | |
1901 | if D <= 3 and staghit == true then | |
1902 | if ranged ~= true then | |
1903 | StaggerHitAnim.Value = true | |
1904 | end | |
1905 | so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1) | |
1906 | elseif D > 3 and ranged ~= true then | |
1907 | so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1) | |
1908 | end | |
1909 | if D > 2 and D < 20 then | |
1910 | if CritChance.Value == critchancenumber then | |
1911 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
1912 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1) | |
1913 | else | |
1914 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0.8627450980392157, 0)) | |
1915 | end | |
1916 | elseif D >= 20 then | |
1917 | if CritChance.Value == critchancenumber then | |
1918 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
1919 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1) | |
1920 | else | |
1921 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0)) | |
1922 | end | |
1923 | else | |
1924 | if D <= 2 then | |
1925 | if CritChance.Value == critchancenumber then | |
1926 | makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0)) | |
1927 | so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1) | |
1928 | else | |
1929 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706)) | |
1930 | end | |
1931 | else | |
1932 | end | |
1933 | end | |
1934 | if Type == "Normal" then | |
1935 | vp = Instance.new("BodyVelocity") | |
1936 | vp.P = 500 | |
1937 | vp.maxForce = vt(math.huge, 0, math.huge) | |
1938 | if KnockbackType == 1 then | |
1939 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1940 | elseif KnockbackType == 2 then | |
1941 | vp.velocity = Property.CFrame.lookVector * knockback | |
1942 | end | |
1943 | if knockback > 0 then | |
1944 | vp.Parent = hit.Parent.Torso | |
1945 | end | |
1946 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1947 | end | |
1948 | debounce = Instance.new("BoolValue") | |
1949 | debounce.Name = "DebounceHit" | |
1950 | debounce.Parent = hit.Parent | |
1951 | debounce.Value = true | |
1952 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1953 | c = Instance.new("ObjectValue") | |
1954 | c.Name = "creator" | |
1955 | c.Value = Player | |
1956 | c.Parent = h | |
1957 | game:GetService("Debris"):AddItem(c, 0.5) | |
1958 | end | |
1959 | end | |
1960 | function DecreaseStat(Location, CFrame, Stat, Amount, Duration, ShowDebuff) | |
1961 | if Location[Stat] ~= nil then | |
1962 | Location[Stat].Value = Location[Stat].Value - Amount | |
1963 | if ShowDebuff == true then | |
1964 | if Location[Stat].Name == "Defense" then | |
1965 | makegui(CFrame, "-Defense", c3(1, 1, 1)) | |
1966 | elseif Location[Stat].Name == "Damage" then | |
1967 | makegui(CFrame, "-Damage", c3(1, 1, 1)) | |
1968 | elseif Location[Stat].Name == "Speed" then | |
1969 | makegui(CFrame, "-Movement", c3(1, 1, 1)) | |
1970 | end | |
1971 | end | |
1972 | coroutine.resume(coroutine.create(function() | |
1973 | wait(Duration) | |
1974 | Location[Stat].Value = Location[Stat].Value + Amount | |
1975 | end)) | |
1976 | end | |
1977 | end | |
1978 | function IncreaseStat(Location, CFrame, Stat, Amount, Duration, ShowBuff) | |
1979 | if Location[Stat] ~= nil then | |
1980 | Location[Stat].Value = Location[Stat].Value + Amount | |
1981 | if ShowBuff == true then | |
1982 | if Location[Stat].Name == "Defense" then | |
1983 | makegui(CFrame, "+Defense", c3(1, 1, 1)) | |
1984 | elseif Location[Stat].Name == "Damage" then | |
1985 | makegui(CFrame, "+Damage", c3(1, 1, 1)) | |
1986 | elseif Location[Stat].Name == "Speed" then | |
1987 | makegui(CFrame, "+Movement", c3(1, 1, 1)) | |
1988 | end | |
1989 | end | |
1990 | coroutine.resume(coroutine.create(function() | |
1991 | wait(Duration) | |
1992 | Location[Stat].Value = Location[Stat].Value - Amount | |
1993 | end)) | |
1994 | end | |
1995 | end | |
1996 | function GetDist(Part1, Part2, magni) | |
1997 | local targ = Part1.Position - Part2.Position | |
1998 | local mag = targ.magnitude | |
1999 | if magni >= mag then | |
2000 | return true | |
2001 | else | |
2002 | return false | |
2003 | end | |
2004 | end | |
2005 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
2006 | for _, c in pairs(workspace:children()) do | |
2007 | local hum = c:findFirstChild("Humanoid") | |
2008 | if hum ~= nil then | |
2009 | local head = c:findFirstChild("Torso") | |
2010 | if head ~= nil then | |
2011 | local targ = head.Position - Part.Position | |
2012 | local mag = targ.magnitude | |
2013 | if magni >= mag and c.Name ~= Player.Name then | |
2014 | Damagefunc(head, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged) | |
2015 | end | |
2016 | end | |
2017 | end | |
2018 | end | |
2019 | end | |
2020 | function Lightning(p0, p1, tym, ofs, brickcolor, th, tra, last) | |
2021 | local magz = (p0 - p1).magnitude | |
2022 | local curpos = p0 | |
2023 | local trz = { | |
2024 | -ofs, | |
2025 | ofs | |
2026 | } | |
2027 | for i = 1, tym do | |
2028 | do | |
2029 | local li = Instance.new("Part", workspace) | |
2030 | li.TopSurface = 0 | |
2031 | li.BottomSurface = 0 | |
2032 | li.Anchored = true | |
2033 | li.Transparency = tra or 0.4 | |
2034 | li.BrickColor = brickcolor | |
2035 | li.formFactor = "Custom" | |
2036 | li.CanCollide = false | |
2037 | li.Size = vt(th, th, magz / tym) | |
2038 | local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
2039 | local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz | |
2040 | if tym == i then | |
2041 | local magz2 = (curpos - p1).magnitude | |
2042 | li.Size = vt(th, th, magz2) | |
2043 | li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2) | |
2044 | else | |
2045 | li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2) | |
2046 | end | |
2047 | curpos = li.CFrame * cf(0, 0, magz / tym / 2).p | |
2048 | game.Debris:AddItem(li, last) | |
2049 | coroutine.resume(coroutine.create(function() | |
2050 | while li.Transparency ~= 1 do | |
2051 | for i = 0, 1, last do | |
2052 | ArtificialHeartbeat.Event:wait() | |
2053 | li.Transparency = li.Transparency + 0.1 / last | |
2054 | end | |
2055 | end | |
2056 | end)) | |
2057 | end | |
2058 | end | |
2059 | end | |
2060 | function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2061 | local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt()) | |
2062 | prt.Anchored = true | |
2063 | prt.CFrame = cframe | |
2064 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1)) | |
2065 | game:GetService("Debris"):AddItem(prt, 10) | |
2066 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2067 | for i = 0, 1, delay do | |
2068 | ArtificialHeartbeat.Event:wait() | |
2069 | Part.CFrame = Part.CFrame | |
2070 | Part.Transparency = i | |
2071 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2072 | end | |
2073 | Part.Parent = nil | |
2074 | end), prt, msh) | |
2075 | end | |
2076 | function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2077 | local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt()) | |
2078 | prt.Anchored = true | |
2079 | prt.CFrame = cframe | |
2080 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
2081 | game:GetService("Debris"):AddItem(prt, 10) | |
2082 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2083 | for i = 0, 1, delay do | |
2084 | ArtificialHeartbeat.Event:wait() | |
2085 | Part.CFrame = Part.CFrame | |
2086 | Part.Transparency = i | |
2087 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2088 | end | |
2089 | Part.Parent = nil | |
2090 | end), prt, msh) | |
2091 | end | |
2092 | function MagicBlock(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2093 | local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt()) | |
2094 | prt.Anchored = true | |
2095 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2096 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2097 | game:GetService("Debris"):AddItem(prt, 10) | |
2098 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2099 | for i = 0, 1, delay do | |
2100 | ArtificialHeartbeat.Event:wait() | |
2101 | if rotate == true then | |
2102 | Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2103 | else | |
2104 | end | |
2105 | Part.Transparency = i | |
2106 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2107 | end | |
2108 | Part.Parent = nil | |
2109 | end), prt, msh) | |
2110 | end | |
2111 | function MagicBlock2(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2112 | local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt()) | |
2113 | prt.Anchored = true | |
2114 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2115 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2116 | game:GetService("Debris"):AddItem(prt, 10) | |
2117 | CF = prt.CFrame | |
2118 | num = math.random(5, 20) | |
2119 | coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num) | |
2120 | for i = 0, 1, delay do | |
2121 | ArtificialHeartbeat.Event:wait() | |
2122 | if rotate == true then | |
2123 | Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2124 | else | |
2125 | Part.CFrame = CF2 * cf(0, i * Num, 0) | |
2126 | end | |
2127 | Part.Transparency = i | |
2128 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2129 | end | |
2130 | Part.Parent = nil | |
2131 | end), prt, msh, CF, num) | |
2132 | end | |
2133 | function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2134 | local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt()) | |
2135 | prt.Anchored = true | |
2136 | prt.CFrame = cframe | |
2137 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2138 | game:GetService("Debris"):AddItem(prt, 10) | |
2139 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2140 | for i = 0, 1, delay do | |
2141 | ArtificialHeartbeat.Event:wait() | |
2142 | Part.Transparency = i | |
2143 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2144 | end | |
2145 | Part.Parent = nil | |
2146 | end), prt, msh) | |
2147 | end | |
2148 | function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2149 | local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt()) | |
2150 | prt.Anchored = true | |
2151 | prt.CFrame = cframe | |
2152 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2153 | game:GetService("Debris"):AddItem(prt, 10) | |
2154 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2155 | for i = 0, 1, delay do | |
2156 | ArtificialHeartbeat.Event:wait() | |
2157 | Part.Transparency = i | |
2158 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2159 | end | |
2160 | Part.Parent = nil | |
2161 | end), prt, msh) | |
2162 | end | |
2163 | function BreakEffect(brickcolor, rotate, cframe, x1, y1, z1, delay) | |
2164 | local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt()) | |
2165 | prt.Anchored = true | |
2166 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2167 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2168 | game:GetService("Debris"):AddItem(prt, 10) | |
2169 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
2170 | CF = Part.CFrame | |
2171 | Numbb = 0 | |
2172 | randnumb = math.random() - math.random() | |
2173 | for i = 0, 1, delay do | |
2174 | ArtificialHeartbeat.Event:wait() | |
2175 | CF = CF * cf(0, 1, 0) | |
2176 | if rotate == true then | |
2177 | Part.CFrame = CF * angles(Numbb, 0, 0) | |
2178 | elseif rotate == false then | |
2179 | Part.CFrame = CF | |
2180 | end | |
2181 | Part.Transparency = i | |
2182 | Numbb = Numbb + randnumb | |
2183 | end | |
2184 | Part.Parent = nil | |
2185 | end), prt, CF, Numbb, randnumb) | |
2186 | end | |
2187 | function ElecEffect(brickcolor, cf, x, y, z, delay) | |
2188 | local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt()) | |
2189 | prt.Anchored = true | |
2190 | prt.CFrame = cf | |
2191 | xval = math.random() | |
2192 | yval = math.random() | |
2193 | zval = math.random() | |
2194 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z)) | |
2195 | game:GetService("Debris"):AddItem(prt, 10) | |
2196 | coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal) | |
2197 | for i = 0, 1, delay do | |
2198 | ArtificialHeartbeat.Event:wait() | |
2199 | Part.CFrame = Part.CFrame | |
2200 | xvaal = xvaal - 0.1 * (delay * 10) | |
2201 | yvaal = yvaal - 0.1 * (delay * 10) | |
2202 | zvaal = zvaal - 0.1 * (delay * 10) | |
2203 | Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal) | |
2204 | Part.Transparency = i | |
2205 | end | |
2206 | Part.Parent = nil | |
2207 | end), prt, msh, xval, yval, zval) | |
2208 | end | |
2209 | function subtractmana(k) | |
2210 | if k <= mana then | |
2211 | mana = mana - k | |
2212 | end | |
2213 | end | |
2214 | local idleangle = 0 | |
2215 | local idlen = 0 | |
2216 | local donum = 0 | |
2217 | local sine = 0 | |
2218 | local change = 1 | |
2219 | local val = 0 | |
2220 | local walkinganim = false | |
2221 | local handidle = false | |
2222 | local walk = 0 | |
2223 | local someangle = 0 | |
2224 | local change2 = 1 | |
2225 | local stundelay = 0 | |
2226 | local manadelay = 0 | |
2227 | local dieanim = false | |
2228 | local robloxidleanimation = Instance.new("Animation", Torso) | |
2229 | robloxidleanimation.Name = "robloxidleanimation" | |
2230 | robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
2231 | Animator = Humanoid:findFirstChild("Animator") | |
2232 | Animate = Character:findFirstChild("Animate") | |
2233 | Running = Head:FindFirstChild("Running") | |
2234 | if Running ~= nil then | |
2235 | Running.Volume = 0 | |
2236 | end | |
2237 | local startequipped = false | |
2238 | local startequippedwithequipanimation = true | |
2239 | local disableanimator = true | |
2240 | local disableanimate = false | |
2241 | local alternatewalk = false | |
2242 | local customwalk = false | |
2243 | local hidemenu = false | |
2244 | local allowmenutofunction = false | |
2245 | local allowabilitestofunction = false | |
2246 | local canunequiporequip = false | |
2247 | local allowidle = false | |
2248 | local allowwalking = false | |
2249 | local disablemovingarms = false | |
2250 | local usemotorsinsteadofwelds = false | |
2251 | local leftarm = false | |
2252 | local rightarm = false | |
2253 | local allowhopperbin = false | |
2254 | local allowstunbar = false | |
2255 | local walkspeeddependsonspeedvalue = true | |
2256 | local alternatemanaregensystem = false | |
2257 | local showhealthmanaandstunnumbers = false | |
2258 | local changebarcolorsifnotenoughmana = false | |
2259 | local disablejumpifstaggeredorstunned = false | |
2260 | if hidemenu == true then | |
2261 | for _, v in pairs(scrn:children()) do | |
2262 | if v.ClassName == "Frame" or v.ClassName == "TextLabel" then | |
2263 | v.Visible = false | |
2264 | end | |
2265 | end | |
2266 | end | |
2267 | if disablejumpifstaggeredorstunned == true then | |
2268 | Humanoid.Changed:connect(function(Jump) | |
2269 | if Jump == "Jump" and (StaggerAnim.Value == true or StunAnim.Value == true) then | |
2270 | Humanoid.Jump = false | |
2271 | end | |
2272 | end) | |
2273 | end | |
2274 | if allowmenutofunction == true then | |
2275 | for _, v in pairs(scrn:GetChildren()) do | |
2276 | if v.ClassName == "Frame" then | |
2277 | for _, b in pairs(v:GetChildren()) do | |
2278 | if b.ClassName == "TextLabel" and b.Name ~= "Text 1" and b.Name ~= "Text 2" and b.Name ~= "Text 3" and b.Name ~= "Text 4" then | |
2279 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
2280 | wait(menuupdatespeed) | |
2281 | for i = 1, 0, -0.1 do | |
2282 | ArtificialHeartbeat.Event:wait() | |
2283 | TheTextLabel.TextTransparency = i | |
2284 | TheTextLabel.TextStrokeTransparency = i | |
2285 | end | |
2286 | TheTextLabel.TextTransparency = 0 | |
2287 | TheTextLabel.TextStrokeTransparency = 0 | |
2288 | end), b) | |
2289 | end | |
2290 | end | |
2291 | end | |
2292 | end | |
2293 | end | |
2294 | if allowmenutofunction == true and allowabilitestofunction == true then | |
2295 | for _, v in pairs(scrn:GetChildren()) do | |
2296 | if v.ClassName == "Frame" then | |
2297 | for _, b in pairs(v:GetChildren()) do | |
2298 | if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then | |
2299 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
2300 | wait(menuupdatespeed) | |
2301 | for i = 1, 0, -0.1 do | |
2302 | ArtificialHeartbeat.Event:wait() | |
2303 | TheTextLabel.TextTransparency = i | |
2304 | TheTextLabel.TextStrokeTransparency = i | |
2305 | end | |
2306 | TheTextLabel.TextTransparency = 0 | |
2307 | TheTextLabel.TextStrokeTransparency = 0 | |
2308 | end), b) | |
2309 | end | |
2310 | end | |
2311 | end | |
2312 | end | |
2313 | end | |
2314 | if allowhopperbin == true then | |
2315 | if script.Parent.className ~= "HopperBin" then | |
2316 | Tool = Instance.new("HopperBin") | |
2317 | Tool.Parent = Backpack | |
2318 | Tool.Name = "Weapon Name" | |
2319 | script.Parent = Tool | |
2320 | end | |
2321 | Bin = script.Parent | |
2322 | end | |
2323 | if disablemovingarms == true then | |
2324 | RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
2325 | LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
2326 | RSH, LSH = nil, nil | |
2327 | if usemotorsinsteadofwelds == true then | |
2328 | RW = Instance.new("Motor") | |
2329 | LW = Instance.new("Motor") | |
2330 | else | |
2331 | RW = Instance.new("Weld") | |
2332 | LW = Instance.new("Weld") | |
2333 | end | |
2334 | RW.Name = "Right Shoulder" | |
2335 | LW.Name = "Left Shoulder" | |
2336 | RSH = Torso["Right Shoulder"] | |
2337 | LSH = Torso["Left Shoulder"] | |
2338 | RSH.Parent = Torso | |
2339 | LSH.Parent = Torso | |
2340 | RW.Name = "Right Shoulder" | |
2341 | RW.Part0 = Torso | |
2342 | RW.C0 = cf(1.5, 0.5, 0) | |
2343 | RW.C1 = cf(0, 0.5, 0) | |
2344 | RW.Part1 = Character["Right Arm"] | |
2345 | RW.Parent = nil | |
2346 | LW.Name = "Left Shoulder" | |
2347 | LW.Part0 = Torso | |
2348 | LW.C0 = cf(-1.5, 0.5, 0) | |
2349 | LW.C1 = cf(0, 0.5, 0) | |
2350 | LW.Part1 = Character["Left Arm"] | |
2351 | LW.Parent = nil | |
2352 | else | |
2353 | RW = Torso["Right Shoulder"] | |
2354 | LW = Torso["Left Shoulder"] | |
2355 | LH = Torso["Left Hip"] | |
2356 | RH = Torso["Right Hip"] | |
2357 | RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) | |
2358 | LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) | |
2359 | end | |
2360 | if allowidle == true then | |
2361 | coroutine.resume(coroutine.create(function() | |
2362 | while true do | |
2363 | for i = 0, 1, 0.08 do | |
2364 | wait() | |
2365 | idleangle = idleangle + 0.005 * idlen | |
2366 | idlen = idlen - 0.1 | |
2367 | end | |
2368 | idlen = 0 | |
2369 | for i = 0, 1, 0.08 do | |
2370 | wait() | |
2371 | idleangle = idleangle - 0.005 * idlen | |
2372 | idlen = idlen - 0.1 | |
2373 | end | |
2374 | idlen = 0 | |
2375 | idleangle = 0 | |
2376 | end | |
2377 | end)) | |
2378 | end | |
2379 | function equipanim() | |
2380 | attack = true | |
2381 | local equipvelocity = Instance.new("BodyVelocity", Torso) | |
2382 | equipvelocity.P = 500 | |
2383 | equipvelocity.maxForce = vt(math.huge, math.huge, math.huge) | |
2384 | equipvelocity.Velocity = Vector3.new(0, 10, 0) | |
2385 | for i = 0, 1, 0.02 do | |
2386 | ArtificialHeartbeat.Event:wait() | |
2387 | MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05) | |
2388 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2389 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
2390 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
2391 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
2392 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
2393 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
2394 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2395 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2396 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
2397 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
2398 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
2399 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
2400 | end | |
2401 | coroutine.resume(coroutine.create(function() | |
2402 | for i = 0, 1, 0.1 do | |
2403 | wait() | |
2404 | outerbeingtransparency = outerbeingtransparency - 0.05 | |
2405 | end | |
2406 | outerbeingtransparency = 0.5 | |
2407 | end)) | |
2408 | equipvelocity.Velocity = Vector3.new(0, 0, 0) | |
2409 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01) | |
2410 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01) | |
2411 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 1) | |
2412 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 1) | |
2413 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 1) | |
2414 | so("http://roblox.com/asset/?id=160740121", Torso, 1, 1.5) | |
2415 | for i = 0, 1, 0.02 do | |
2416 | ArtificialHeartbeat.Event:wait() | |
2417 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2418 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2419 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * RWC0, 0.15) | |
2420 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)) * LWC0, 0.15) | |
2421 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2422 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2423 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2424 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2425 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2426 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2427 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2428 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2429 | end | |
2430 | equipvelocity:Destroy() | |
2431 | Speed.Value = Speed.Value - 0.1 | |
2432 | Defense.Value = Defense.Value + 0.4 | |
2433 | attack = false | |
2434 | end | |
2435 | function unequipanim() | |
2436 | attack = true | |
2437 | coroutine.resume(coroutine.create(function() | |
2438 | Humanoid.MaxHealth = math.huge | |
2439 | wait(0.1) | |
2440 | Humanoid.Health = Humanoid.MaxHealth | |
2441 | end)) | |
2442 | local equipvelocity = Instance.new("BodyVelocity", Torso) | |
2443 | equipvelocity.P = 500 | |
2444 | equipvelocity.maxForce = vt(math.huge, math.huge, math.huge) | |
2445 | equipvelocity.Velocity = Vector3.new(0, 1, 0) | |
2446 | so("http://roblox.com/asset/?id=183763515", Torso, 1, 0.4) | |
2447 | for i = 0, 1, 0.005 do | |
2448 | ArtificialHeartbeat.Event:wait() | |
2449 | MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05) | |
2450 | BreakEffect(CustomColor, false, Torso.CFrame, 1, 25, 1, 0.05) | |
2451 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20 + math.random(-10, 10)), math.rad(0), math.rad(0 + math.random(-10, 10))), 0.15) | |
2452 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
2453 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15) | |
2454 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15) | |
2455 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
2456 | LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15) | |
2457 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2458 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2459 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
2460 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15) | |
2461 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
2462 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15) | |
2463 | end | |
2464 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01) | |
2465 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01) | |
2466 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6) | |
2467 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.6) | |
2468 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.6) | |
2469 | for i = 1, 2 do | |
2470 | so("http://roblox.com/asset/?id=160867463", Torso, 1, 0.8) | |
2471 | so("http://roblox.com/asset/?id=297472596", Torso, 1, 0.8) | |
2472 | end | |
2473 | coroutine.resume(coroutine.create(function() | |
2474 | for i = 0, 1, 0.01 do | |
2475 | wait() | |
2476 | outerbeingtransparency = outerbeingtransparency + 0.005 | |
2477 | end | |
2478 | outerbeingtransparency = 1 | |
2479 | end)) | |
2480 | Face.Transparency = 1 | |
2481 | for _, v in pairs(Character:children()) do | |
2482 | if v:IsA("Part") and v.ClassName ~= "Model" then | |
2483 | coroutine.resume(coroutine.create(function(Part) | |
2484 | for i = 0, 1, 0.01 do | |
2485 | wait() | |
2486 | Part.Transparency = Part.Transparency + 0.01 | |
2487 | end | |
2488 | Part.Anchored = true | |
2489 | Part.Transparency = 1 | |
2490 | end), v) | |
2491 | elseif v:IsA("Hat") then | |
2492 | coroutine.resume(coroutine.create(function(Hat) | |
2493 | for i = 0, 1, 0.01 do | |
2494 | wait() | |
2495 | Hat.Transparency = Hat.Transparency + 0.01 | |
2496 | end | |
2497 | Hat.Anchored = true | |
2498 | Hat.Transparency = 1 | |
2499 | end), v.Handle) | |
2500 | end | |
2501 | end | |
2502 | local deathnum = 0 | |
2503 | for i = 0, 1, 0.005 do | |
2504 | ArtificialHeartbeat.Event:wait() | |
2505 | if deathnum >= 10 then | |
2506 | deathnum = 0 | |
2507 | local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2508 | refpart.CFrame = Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)) | |
2509 | refpart.Anchored = true | |
2510 | game:GetService("Debris"):AddItem(refpart, 1) | |
2511 | MagicBlock(CustomColor, true, refpart.CFrame, 30, 30, 30, 0.5, 0.5, 0.5, 0.01) | |
2512 | MagicSphere(CustomColor, refpart.CFrame, 60, 60, 60, 1, 1, 1, 0.01) | |
2513 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6) | |
2514 | end | |
2515 | BreakEffect(CustomColor, false, Torso.CFrame, 1, 50, 1, 0.05) | |
2516 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(0 + math.random(-40, 40))), 0.15) | |
2517 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40))), 0.15) | |
2518 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))) * RWC0, 0.15) | |
2519 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))) * LWC0, 0.15) | |
2520 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))), 0.15) | |
2521 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))), 0.15) | |
2522 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2523 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2524 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2525 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2526 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2527 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2528 | deathnum = deathnum + 1 | |
2529 | end | |
2530 | Humanoid.MaxHealth = 0 | |
2531 | Humanoid.Health = 0 | |
2532 | equipvelocity.Velocity = Vector3.new(0, 0, 0) | |
2533 | MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.008) | |
2534 | MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.008) | |
2535 | so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.4) | |
2536 | so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.4) | |
2537 | so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.4) | |
2538 | so("http://roblox.com/asset/?id=160867463", Torso, 1, 1.2) | |
2539 | attack = false | |
2540 | end | |
2541 | if startequipped == true then | |
2542 | equipped = true | |
2543 | if disableanimate == true then | |
2544 | Animate.Disabled = true | |
2545 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
2546 | idleanimation:Play() | |
2547 | end | |
2548 | if disableanimator == true then | |
2549 | Animator.Parent = nil | |
2550 | end | |
2551 | if disablemovingarms == true then | |
2552 | RW.Parent = Torso | |
2553 | LW.Parent = Torso | |
2554 | RSH.Parent = nil | |
2555 | LSH.Parent = nil | |
2556 | end | |
2557 | Speed.Value = Speed.Value - 0.1 | |
2558 | Defense.Value = Defense.Value + 0.4 | |
2559 | elseif startequippedwithequipanimation == true then | |
2560 | equipped = true | |
2561 | if disableanimate == true then | |
2562 | Animate.Disabled = true | |
2563 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
2564 | idleanimation:Play() | |
2565 | end | |
2566 | if disableanimator == true then | |
2567 | Animator.Parent = nil | |
2568 | end | |
2569 | if disablemovingarms == true then | |
2570 | RW.Parent = Torso | |
2571 | LW.Parent = Torso | |
2572 | RSH.Parent = nil | |
2573 | LSH.Parent = nil | |
2574 | end | |
2575 | equipanim() | |
2576 | end | |
2577 | function StaggerHit() | |
2578 | attack = true | |
2579 | attack = false | |
2580 | end | |
2581 | function Stagger() | |
2582 | attack = true | |
2583 | attack = false | |
2584 | end | |
2585 | function Stun() | |
2586 | attack = true | |
2587 | attack = false | |
2588 | end | |
2589 | function EAbility() | |
2590 | attack = true | |
2591 | attack = false | |
2592 | end | |
2593 | function attackone() | |
2594 | attack = true | |
2595 | attack = false | |
2596 | end | |
2597 | function attacktwo() | |
2598 | attack = true | |
2599 | attack = false | |
2600 | end | |
2601 | function attackthree() | |
2602 | attack = true | |
2603 | attack = false | |
2604 | end | |
2605 | function attackfour() | |
2606 | attack = true | |
2607 | attack = false | |
2608 | end | |
2609 | function Move1() | |
2610 | attack = true | |
2611 | for i = 0, 1, 0.25 do | |
2612 | ArtificialHeartbeat.Event:wait() | |
2613 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2614 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2615 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2616 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2617 | if Anim ~= "Walk" then | |
2618 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2619 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2620 | elseif Anim == "Walk" then | |
2621 | if walkinganim == true then | |
2622 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2623 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2624 | else | |
2625 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2626 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2627 | end | |
2628 | end | |
2629 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2630 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2631 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2632 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2633 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2634 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2635 | end | |
2636 | for i = 0, 1, 0.04 do | |
2637 | ArtificialHeartbeat.Event:wait() | |
2638 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2639 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2640 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2641 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2642 | if Anim ~= "Walk" then | |
2643 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2644 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2645 | elseif Anim == "Walk" then | |
2646 | if walkinganim == true then | |
2647 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2648 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2649 | else | |
2650 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2651 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2652 | end | |
2653 | end | |
2654 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2655 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2656 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2657 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2658 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2659 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2660 | end | |
2661 | local orbnumber = math.random(20, 40) | |
2662 | coroutine.resume(coroutine.create(function() | |
2663 | for i = 1, orbnumber do | |
2664 | wait() | |
2665 | local orbblastpart = part(3, Effects, "SmoothPlastic", 0, 0.5, CustomColor, "Effect", vt()) | |
2666 | local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)) | |
2667 | orbblastpart.Anchored = true | |
2668 | game:GetService("Debris"):AddItem(orbblastpart, 5) | |
2669 | orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(50, 100), math.random(-10, 10))) | |
2670 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05) | |
2671 | MagicSphere(CustomColor, orbblastpart.CFrame, 10, 10, 10, 0.5, 0.5, 0.5, 0.05) | |
2672 | so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2) | |
2673 | coroutine.resume(coroutine.create(function(Part) | |
2674 | wait(1) | |
2675 | local spread = vt(math.random(-16, 16), math.random(-16, 16), math.random(-16, 16)) * (Part.Position - (Part.Position + vt(0, -1, 0))).magnitude / 100 | |
2676 | local TheHit = Part.Position + vt(0, -1, 0) | |
2677 | local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread) | |
2678 | local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character) | |
2679 | local mag = (Part.Position - pos).magnitude | |
2680 | MagicCylinder(CustomColor, cf((Part.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 1, mag * 5, 1, 0.25, 0, 0.25, 0.025) | |
2681 | MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05) | |
2682 | Part.Parent = nil | |
2683 | if hit ~= nil then | |
2684 | local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2685 | refpart.CFrame = cf(pos) | |
2686 | refpart.Anchored = true | |
2687 | game:GetService("Debris"):AddItem(refpart, 1) | |
2688 | MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05) | |
2689 | MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 3, 3, 3, 0.05) | |
2690 | MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 1, 1, 1, 1, 0.025) | |
2691 | so("http://roblox.com/asset/?id=183763487", refpart, 1, 1) | |
2692 | Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
2693 | MagniDamage(refpart, 15, 5, 10, 0, "Normal", 0, 1, 0, nil, true, true) | |
2694 | end | |
2695 | end), orbblastpart) | |
2696 | end | |
2697 | end)) | |
2698 | for i = 0, 1, (0.015 + orbnumber / 10000) / 2 do | |
2699 | ArtificialHeartbeat.Event:wait() | |
2700 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2701 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2702 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2703 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2704 | if Anim ~= "Walk" then | |
2705 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2706 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2707 | elseif Anim == "Walk" then | |
2708 | if walkinganim == true then | |
2709 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2710 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2711 | else | |
2712 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2713 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2714 | end | |
2715 | end | |
2716 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2717 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2718 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2719 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2720 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2721 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2722 | end | |
2723 | for i = 0, 1, 0.25 do | |
2724 | ArtificialHeartbeat.Event:wait() | |
2725 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2726 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2727 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15) | |
2728 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2729 | if Anim ~= "Walk" then | |
2730 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2731 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2732 | elseif Anim == "Walk" then | |
2733 | if walkinganim == true then | |
2734 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2735 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2736 | else | |
2737 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2738 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2739 | end | |
2740 | end | |
2741 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2742 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2743 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2744 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2745 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2746 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2747 | end | |
2748 | attack = false | |
2749 | end | |
2750 | function Move2() | |
2751 | attack = true | |
2752 | local oldspeedvalue = Speed.Value | |
2753 | Speed.Value = 0 | |
2754 | for i = 0, 1, 0.25 do | |
2755 | ArtificialHeartbeat.Event:wait() | |
2756 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2757 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2758 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2759 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2760 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2761 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2762 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2763 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2764 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
2765 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
2766 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2767 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2768 | end | |
2769 | for i = 0, 1, 0.015 do | |
2770 | ArtificialHeartbeat.Event:wait() | |
2771 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2772 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2773 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2774 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2775 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2776 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2777 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2778 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2779 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15) | |
2780 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15) | |
2781 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2782 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2783 | end | |
2784 | so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6) | |
2785 | for i = 0, 1, 0.25 do | |
2786 | ArtificialHeartbeat.Event:wait() | |
2787 | MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05) | |
2788 | MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05) | |
2789 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2790 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2791 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2792 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2793 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
2794 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
2795 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2796 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2797 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2798 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2799 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
2800 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2801 | end | |
2802 | local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2803 | refpart.CFrame = RootPart.CFrame * cf(0, 500, -20) | |
2804 | refpart.Anchored = true | |
2805 | game:GetService("Debris"):AddItem(refpart, 1) | |
2806 | local TheHit = refpart.Position + vt(0, -1, 0) | |
2807 | local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit) | |
2808 | local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character) | |
2809 | local mag = (refpart.Position - pos).magnitude | |
2810 | local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2811 | refpart2.CFrame = cf(pos) | |
2812 | refpart2.Anchored = true | |
2813 | game:GetService("Debris"):AddItem(refpart2, 1) | |
2814 | MagicCylinder(CustomColor, cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, 0.1, 0, 0.1, 0.025) | |
2815 | if hit ~= nil then | |
2816 | MagicBlock(CustomColor, true, refpart2.CFrame, 15, 15, 15, 1.5, 1.5, 1.5, 0.01) | |
2817 | MagicSphere(CustomColor, refpart2.CFrame, 15, 15, 15, 4, 4, 4, 0.01) | |
2818 | MagicWave(CustomColor, refpart2.CFrame, 5, 5, 5, 1, 1.5, 1, 0.025) | |
2819 | MagicRing(CustomColor, refpart2.CFrame * angles(math.rad(90), 0, 0), 2.5, 2.5, 2.5, 2, 2, 2, 0.025) | |
2820 | so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8) | |
2821 | so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8) | |
2822 | MagniDamage(refpart2, 25, 20, 50, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true) | |
2823 | end | |
2824 | for i = 0, 1, 0.02 do | |
2825 | ArtificialHeartbeat.Event:wait() | |
2826 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2827 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2828 | RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2829 | LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2830 | RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15) | |
2831 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15) | |
2832 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2833 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2834 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2835 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15) | |
2836 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15) | |
2837 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2838 | end | |
2839 | Speed.Value = Speed.Value + oldspeedvalue | |
2840 | attack = false | |
2841 | end | |
2842 | function Move3() | |
2843 | attack = true | |
2844 | local oldspeedvalue = Speed.Value | |
2845 | Speed.Value = 0 | |
2846 | so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6) | |
2847 | for i = 0, 1, 0.05 do | |
2848 | ArtificialHeartbeat.Event:wait() | |
2849 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
2850 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
2851 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
2852 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2853 | RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.15) | |
2854 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
2855 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2856 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2857 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2858 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2859 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15) | |
2860 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2861 | end | |
2862 | for i = 0, 1, 0.05 do | |
2863 | ArtificialHeartbeat.Event:wait() | |
2864 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15) | |
2865 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15) | |
2866 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15) | |
2867 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15) | |
2868 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
2869 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15) | |
2870 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2871 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2872 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2873 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15) | |
2874 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.15) | |
2875 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2876 | end | |
2877 | MagicSphere(CustomColor, RootPart.CFrame * cf(2.5, -3, -2), 10, 4, 10, 2.5, 1.5, 2.5, 0.025) | |
2878 | local num = 0 | |
2879 | local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2880 | refpart.CFrame = RootPart.CFrame * cf(2.5, 0, -6) | |
2881 | refpart.Anchored = true | |
2882 | game:GetService("Debris"):AddItem(refpart, 3) | |
2883 | for i = 1, 4 do | |
2884 | local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2885 | refpart2.CFrame = refpart.CFrame * cf(2.5, 0, num) | |
2886 | refpart2.Anchored = true | |
2887 | game:GetService("Debris"):AddItem(refpart2, 1) | |
2888 | local TheHit = refpart2.Position + vt(0, -1, 0) | |
2889 | local MouseLook = cf((refpart2.Position + TheHit) / 2, TheHit) | |
2890 | local hit, pos = rayCast(refpart2.Position, MouseLook.lookVector, 999, Character) | |
2891 | if hit ~= nil then | |
2892 | local refpart3 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
2893 | refpart3.CFrame = cf(pos) | |
2894 | refpart3.Anchored = true | |
2895 | game:GetService("Debris"):AddItem(refpart3, 1) | |
2896 | MagicSphere(CustomColor, refpart3.CFrame, 15, 15, 15, 4, 4, 4, 0.01) | |
2897 | MagicWave(CustomColor, refpart3.CFrame, 5, 5, 5, 1, 1, 1, 0.025) | |
2898 | so("http://www.roblox.com/asset/?id=161006093", refpart3, 1, 0.6) | |
2899 | MagniDamage(refpart3, 20, 20, 30, math.random(5, 20), "Normal", 0, 1, 0, nil, true, true) | |
2900 | end | |
2901 | num = num - 20 | |
2902 | wait(0.4) | |
2903 | end | |
2904 | Speed.Value = Speed.Value + oldspeedvalue | |
2905 | attack = false | |
2906 | end | |
2907 | function Move4() | |
2908 | attack = true | |
2909 | for i = 0, 1, 0.25 do | |
2910 | ArtificialHeartbeat.Event:wait() | |
2911 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2912 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2913 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2914 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2915 | if Anim ~= "Walk" then | |
2916 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2917 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2918 | elseif Anim == "Walk" then | |
2919 | if walkinganim == true then | |
2920 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2921 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2922 | else | |
2923 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2924 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2925 | end | |
2926 | end | |
2927 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2928 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2929 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2930 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2931 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2932 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2933 | end | |
2934 | for i = 0, 1, 0.04 do | |
2935 | ArtificialHeartbeat.Event:wait() | |
2936 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2937 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2938 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
2939 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
2940 | if Anim ~= "Walk" then | |
2941 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2942 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2943 | elseif Anim == "Walk" then | |
2944 | if walkinganim == true then | |
2945 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2946 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
2947 | else | |
2948 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2949 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
2950 | end | |
2951 | end | |
2952 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
2953 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
2954 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2955 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
2956 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
2957 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
2958 | end | |
2959 | local orbpart = part(3, Effects, "SmoothPlastic", 0, 0.5, CustomColor, "Effect", vt()) | |
2960 | local orbmesh = mesh("SpecialMesh", orbpart, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15)) | |
2961 | local orbweld = weld(orbpart, Torso, orbpart, cf(0, 0, 0), cf(0, -15, 0)) | |
2962 | game:GetService("Debris"):AddItem(orbpart, 5) | |
2963 | so("http://roblox.com/asset/?id=137463716", orbpart, 1, 0.6) | |
2964 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2965 | for i = 0, 0.7, 0.005 do | |
2966 | ArtificialHeartbeat.Event:wait() | |
2967 | Mesh.Scale = Mesh.Scale + vt(0.25, 0.25, 0.25) | |
2968 | MagicBlock(CustomColor, true, orbpart.CFrame, 15, 15, 15, 1, 1, 1, 0.05) | |
2969 | local orbchargeeffect = part(3, Effects, "SmoothPlastic", 0, 0, CustomColor, "Effect", vt()) | |
2970 | local orbchargeeffectmesh = mesh("SpecialMesh", orbchargeeffect, "Sphere", "", vt(0, 0, 0), vt(2, math.random(10, 15), 2)) | |
2971 | local orbchargecframe = angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) * cf(0, math.random(10, 20), 0) | |
2972 | orbchargeeffect.CFrame = orbpart.CFrame * orbchargecframe | |
2973 | orbchargeeffect.Anchored = true | |
2974 | game:GetService("Debris"):AddItem(orbchargeeffect, 2) | |
2975 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2976 | for i = 0, 1, 0.1 do | |
2977 | ArtificialHeartbeat.Event:wait() | |
2978 | Part.Transparency = i | |
2979 | Part.CFrame = Part.CFrame * cf(0, -1, 0) | |
2980 | end | |
2981 | Part.Parent = nil | |
2982 | end), orbchargeeffect, orbchargeeffectmesh) | |
2983 | end | |
2984 | wait(0.5) | |
2985 | local range = 999 | |
2986 | local MainPos = Part.Position | |
2987 | local MainPos2 = Mouse.Hit.p | |
2988 | local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2) | |
2989 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, range, ShotTarget.Parent) | |
2990 | local mag = (MainPos - pos).magnitude | |
2991 | MagicCylinder(CustomColor, cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, mag * 5, 10, 0.25, 0, 0.25, 0.005) | |
2992 | for i = 1, 5 do | |
2993 | local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, mag / 5 * (i / 2), 0) | |
2994 | MagicRing(CustomColor, ringcf * angles(math.rad(90), 0, 0), 1, 1, 1, 0.25, 0.25, 0.25, 0.005) | |
2995 | end | |
2996 | for i = 0, 5 do | |
2997 | local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, -mag / 5 * (i / 2), 0) | |
2998 | MagicRing(CustomColor, ringcf * angles(math.rad(90), 0, 0), 1, 1, 1, 0.25, 0.25, 0.25, 0.005) | |
2999 | end | |
3000 | so("http://roblox.com/asset/?id=183763506", Part, 1, 0.6) | |
3001 | so("http://roblox.com/asset/?id=178452221", Part, 1, 0.6) | |
3002 | so("http://www.roblox.com/asset/?id=87767777", Part, 1, 1) | |
3003 | if hit ~= nil then | |
3004 | local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt()) | |
3005 | refpart.CFrame = cf(pos) | |
3006 | refpart.Anchored = true | |
3007 | game:GetService("Debris"):AddItem(refpart, 1) | |
3008 | MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 4, 4, 4, 0.01) | |
3009 | MagicSphere(CustomColor, refpart.CFrame, 15, 15, 15, 4, 4, 4, 0.01) | |
3010 | so("http://roblox.com/asset/?id=183763506", refpart, 1, 0.6) | |
3011 | so("http://roblox.com/asset/?id=178452221", refpart, 1, 0.6) | |
3012 | so("http://www.roblox.com/Asset?ID=87767777", refpart, 1, 1) | |
3013 | Damagefunc(hit, 30, 70, 50, "Normal", RootPart, 0, 1, 0, nil, true, true) | |
3014 | MagniDamage(refpart, 20, 10, 30, 40, "Normal", 0, 1, 0, nil, true, true) | |
3015 | end | |
3016 | for i = 0, 1, 0.01 do | |
3017 | ArtificialHeartbeat.Event:wait() | |
3018 | Mesh.Scale = Mesh.Scale + vt(0.5, 0.5, 0.5) | |
3019 | Part.Transparency = Part.Transparency + 0.01 | |
3020 | end | |
3021 | Part.Parent = nil | |
3022 | end), orbpart, orbmesh) | |
3023 | for i = 0, 1, 0.004 do | |
3024 | ArtificialHeartbeat.Event:wait() | |
3025 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3026 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
3027 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
3028 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
3029 | if Anim ~= "Walk" then | |
3030 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3031 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3032 | elseif Anim == "Walk" then | |
3033 | if walkinganim == true then | |
3034 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
3035 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
3036 | else | |
3037 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
3038 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
3039 | end | |
3040 | end | |
3041 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
3042 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
3043 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
3044 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
3045 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
3046 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
3047 | end | |
3048 | for i = 0, 1, 0.25 do | |
3049 | ArtificialHeartbeat.Event:wait() | |
3050 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3051 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
3052 | RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15) | |
3053 | LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15) | |
3054 | if Anim ~= "Walk" then | |
3055 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3056 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
3057 | elseif Anim == "Walk" then | |
3058 | if walkinganim == true then | |
3059 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
3060 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
3061 | else | |
3062 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
3063 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
3064 | end | |
3065 | end | |
3066 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15) | |
3067 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15) | |
3068 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
3069 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15) | |
3070 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15) | |
3071 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15) | |
3072 | end | |
3073 | attack = false | |
3074 | end | |
3075 | hold = false | |
3076 | Mouse.Button1Down:connect(function() | |
3077 | if attack == true or equipped == false then | |
3078 | return | |
3079 | end | |
3080 | hold = true | |
3081 | if attacktype == 1 then | |
3082 | attacktype = 2 | |
3083 | attackone() | |
3084 | elseif attacktype == 2 then | |
3085 | attacktype = 3 | |
3086 | attacktwo() | |
3087 | elseif attacktype == 3 then | |
3088 | attacktype = 4 | |
3089 | attackthree() | |
3090 | elseif attacktype == 4 then | |
3091 | attacktype = 1 | |
3092 | attackfour() | |
3093 | end | |
3094 | coroutine.resume(coroutine.create(function() | |
3095 | for i = 1, 50 do | |
3096 | if attack == false then | |
3097 | wait() | |
3098 | end | |
3099 | end | |
3100 | if attack == false then | |
3101 | attacktype = 1 | |
3102 | end | |
3103 | end)) | |
3104 | end) | |
3105 | if allowhopperbin == true then | |
3106 | function ob1u(Mouse) | |
3107 | hold = false | |
3108 | end | |
3109 | end | |
3110 | Mouse.KeyDown:connect(function(key) | |
3111 | if key == "f" and canunequiporequip == true and attack == false then | |
3112 | if equipped == false then | |
3113 | equipped = true | |
3114 | if disableanimate == true then | |
3115 | Animate.Disabled = true | |
3116 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
3117 | idleanimation:Play() | |
3118 | end | |
3119 | if disableanimator == true then | |
3120 | Animator.Parent = nil | |
3121 | end | |
3122 | if disablemovingarms == true then | |
3123 | RW.Parent = Torso | |
3124 | LW.Parent = Torso | |
3125 | RSH.Parent = nil | |
3126 | LSH.Parent = nil | |
3127 | end | |
3128 | equipanim() | |
3129 | elseif equipped == true then | |
3130 | equipped = false | |
3131 | unequipanim() | |
3132 | ArtificialHeartbeat.Event:wait() | |
3133 | if disablemovingarms == true then | |
3134 | RW.Parent = nil | |
3135 | LW.Parent = nil | |
3136 | RSH.Parent = Torso | |
3137 | LSH.Parent = Torso | |
3138 | end | |
3139 | if disableanimator == true then | |
3140 | Animator.Parent = Humanoid | |
3141 | end | |
3142 | if disableanimate == true then | |
3143 | Animate.Disabled = false | |
3144 | end | |
3145 | end | |
3146 | end | |
3147 | if key == "e" and attack == false and equipped == true then | |
3148 | EAbility() | |
3149 | end | |
3150 | if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and mana >= skill1mana then | |
3151 | subtractmana(skill1mana) | |
3152 | cooldown1 = 0 | |
3153 | Move1() | |
3154 | end | |
3155 | if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and mana >= skill2mana then | |
3156 | subtractmana(skill2mana) | |
3157 | cooldown2 = 0 | |
3158 | Move2() | |
3159 | end | |
3160 | if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and mana >= skill3mana then | |
3161 | subtractmana(skill3mana) | |
3162 | cooldown3 = 0 | |
3163 | Move3() | |
3164 | end | |
3165 | if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then | |
3166 | subtractmana(skill4mana) | |
3167 | cooldown4 = 0 | |
3168 | Move4() | |
3169 | end | |
3170 | if key == "m" then | |
3171 | hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character) | |
3172 | if hitfloor == nil then | |
3173 | RootPart.CFrame = RootPart.CFrame * cf(0, 12, 0) | |
3174 | end | |
3175 | end | |
3176 | end) | |
3177 | if allowhopperbin == true then | |
3178 | function key2(key) | |
3179 | end | |
3180 | end | |
3181 | if allowhopperbin == true then | |
3182 | function s(Mouse) | |
3183 | Mouse.Button1Down:connect(function() | |
3184 | ob1d(Mouse) | |
3185 | end) | |
3186 | Mouse.Button1Up:connect(function() | |
3187 | ob1u(Mouse) | |
3188 | end) | |
3189 | Mouse.KeyDown:connect(key) | |
3190 | Mouse.KeyUp:connect(key2) | |
3191 | end | |
3192 | end | |
3193 | if allowhopperbin == true then | |
3194 | function ds(Mouse) | |
3195 | end | |
3196 | end | |
3197 | if allowhopperbin == true then | |
3198 | Bin.Selected:connect(s) | |
3199 | Bin.Deselected:connect(ds) | |
3200 | end | |
3201 | function updateskills() | |
3202 | if allowabilitestofunction == true then | |
3203 | if cooldown1 <= co1 then | |
3204 | cooldown1 = cooldown1 + 0.03333333333333333 | |
3205 | if cooldown1 >= co1 then | |
3206 | cooldown1 = co1 | |
3207 | end | |
3208 | end | |
3209 | if cooldown2 <= co2 then | |
3210 | cooldown2 = cooldown2 + 0.03333333333333333 | |
3211 | if cooldown2 >= co2 then | |
3212 | cooldown2 = co2 | |
3213 | end | |
3214 | end | |
3215 | if cooldown3 <= co3 then | |
3216 | cooldown3 = cooldown3 + 0.03333333333333333 | |
3217 | if cooldown3 >= co3 then | |
3218 | cooldown3 = co3 | |
3219 | end | |
3220 | end | |
3221 | if cooldown4 <= co4 then | |
3222 | cooldown4 = cooldown4 + 0.03333333333333333 | |
3223 | elseif cooldown4 >= co4 then | |
3224 | cooldown4 = co4 | |
3225 | end | |
3226 | if changebarcolorsifnotenoughmana == true then | |
3227 | if mana <= skill1mana then | |
3228 | bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
3229 | else | |
3230 | bar4.BackgroundColor3 = skillcolorscheme | |
3231 | end | |
3232 | if mana <= skill2mana then | |
3233 | bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
3234 | else | |
3235 | bar3.BackgroundColor3 = skillcolorscheme | |
3236 | end | |
3237 | if mana <= skill3mana then | |
3238 | bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
3239 | else | |
3240 | bar1.BackgroundColor3 = skillcolorscheme | |
3241 | end | |
3242 | if mana <= skill4mana then | |
3243 | bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196) | |
3244 | else | |
3245 | bar2.BackgroundColor3 = skillcolorscheme | |
3246 | end | |
3247 | elseif changebarcolorsifnotenoughmana == false then | |
3248 | bar1.BackgroundColor3 = skillcolorscheme | |
3249 | bar2.BackgroundColor3 = skillcolorscheme | |
3250 | bar3.BackgroundColor3 = skillcolorscheme | |
3251 | bar4.BackgroundColor3 = skillcolorscheme | |
3252 | end | |
3253 | end | |
3254 | if alternatemanaregensystem == false then | |
3255 | if mana <= maxmana then | |
3256 | mana = mana + recovermana / 30 | |
3257 | elseif mana >= maxmana then | |
3258 | mana = maxmana | |
3259 | end | |
3260 | elseif alternatemanaregensystem == true then | |
3261 | if mana >= maxmana then | |
3262 | mana = maxmana | |
3263 | elseif manadelay <= manawait then | |
3264 | manadelay = manadelay + 1 | |
3265 | else | |
3266 | manadelay = 0 | |
3267 | mana = mana + 1 | |
3268 | end | |
3269 | end | |
3270 | if allowstunbar == true then | |
3271 | if 0 >= StunValue.Value then | |
3272 | StunValue.Value = 0 | |
3273 | elseif stundelay <= stunwait then | |
3274 | stundelay = stundelay + 1 | |
3275 | else | |
3276 | stundelay = 0 | |
3277 | StunValue.Value = StunValue.Value - 1 | |
3278 | end | |
3279 | elseif allowstunbar == false then | |
3280 | StunValue.Value = 0 | |
3281 | end | |
3282 | end | |
3283 | if allowmenutofunction == true then | |
3284 | ArtificialHeartbeat.Event:connect(function() | |
3285 | updateskills() | |
3286 | if allowabilitestofunction == true then | |
3287 | framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3288 | framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3289 | framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3290 | framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3291 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3292 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3293 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3294 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3295 | end | |
3296 | manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3297 | manacover:TweenSize(ud(1 * (mana / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3298 | healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3299 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3300 | if allowstunbar == true then | |
3301 | stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3302 | stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3303 | end | |
3304 | if showhealthmanaandstunnumbers == true then | |
3305 | manatext.Text = "Mana [" .. mana .. "]" | |
3306 | healthtext.Text = "Health [" .. Humanoid.Health .. "]" | |
3307 | if allowstunbar == true then | |
3308 | stuntext.Text = "Stun [" .. StunValue.Value .. "]" | |
3309 | end | |
3310 | end | |
3311 | if showstats == true then | |
3312 | defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3313 | damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3314 | speedframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
3315 | defensetext.Text = "Defense: " .. Defense.Value | |
3316 | damagetext.Text = "Damage: " .. Damage.Value | |
3317 | speedtext.Text = "Speed: " .. Speed.Value | |
3318 | end | |
3319 | end) | |
3320 | end | |
3321 | ArtificialHeartbeat.Event:connect(function() | |
3322 | if Humanoid.Health < 100 and dieanim == false then | |
3323 | dieanim = true | |
3324 | unequipanim() | |
3325 | end | |
3326 | if Humanoid.Health > 0 then | |
3327 | if walkspeeddependsonspeedvalue == true then | |
3328 | if 0 > Speed.Value or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true then | |
3329 | Humanoid.WalkSpeed = 0 | |
3330 | else | |
3331 | Humanoid.WalkSpeed = 16 * Speed.Value | |
3332 | end | |
3333 | end | |
3334 | if StunValue.Value >= maxstun then | |
3335 | StunValue.Value = 0 | |
3336 | StunAnim.Value = true | |
3337 | end | |
3338 | if StaggerAnim.Value == true and staganim == false then | |
3339 | coroutine.resume(coroutine.create(function() | |
3340 | staganim = true | |
3341 | while attack == true do | |
3342 | ArtificialHeartbeat.Event:wait() | |
3343 | end | |
3344 | Stagger() | |
3345 | StaggerAnim.Value = false | |
3346 | staganim = false | |
3347 | end)) | |
3348 | end | |
3349 | if StaggerHitAnim.Value == true and staghitanim == false then | |
3350 | coroutine.resume(coroutine.create(function() | |
3351 | staghitanim = true | |
3352 | while attack == true do | |
3353 | ArtificialHeartbeat.Event:wait() | |
3354 | end | |
3355 | StaggerHit() | |
3356 | StaggerHitAnim.Value = false | |
3357 | staghitanim = false | |
3358 | end)) | |
3359 | end | |
3360 | if StunAnim.Value == true and stunanim == false or 100 <= StunValue.Value then | |
3361 | coroutine.resume(coroutine.create(function() | |
3362 | StunValue.Value = 0 | |
3363 | stunanim = true | |
3364 | while attack == true do | |
3365 | ArtificialHeartbeat.Event:wait() | |
3366 | end | |
3367 | Stun() | |
3368 | StunAnim.Value = false | |
3369 | stunanim = false | |
3370 | end)) | |
3371 | end | |
3372 | sine = sine + change | |
3373 | someangle = someangle % 100 + change2 / 10 | |
3374 | local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude | |
3375 | local velderp = RootPart.Velocity.y | |
3376 | local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position) | |
3377 | hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character) | |
3378 | if donum >= 0.5 then | |
3379 | handidle = true | |
3380 | elseif donum <= 0 then | |
3381 | handidle = false | |
3382 | end | |
3383 | if handidle == false then | |
3384 | donum = donum + 0.002 | |
3385 | else | |
3386 | donum = donum - 0.002 | |
3387 | end | |
3388 | if equipped == true or equipped == false then | |
3389 | if attack == false then | |
3390 | idle = idle + 1 | |
3391 | else | |
3392 | idle = 0 | |
3393 | end | |
3394 | if not (idle >= 500) or attack == false then | |
3395 | end | |
3396 | if leftarm == true then | |
3397 | if Anim == "Walk" and equipped == true and attack == false then | |
3398 | if alternatewalk == false then | |
3399 | if walkinganim == true then | |
3400 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3401 | else | |
3402 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3403 | end | |
3404 | elseif walkinganim == true then | |
3405 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3406 | else | |
3407 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3408 | end | |
3409 | elseif Anim ~= "Walk" and equipped == true or attack == true then | |
3410 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3411 | end | |
3412 | end | |
3413 | if rightarm == true then | |
3414 | if Anim == "Walk" and equipped == true and attack == false then | |
3415 | if alternatewalk == false then | |
3416 | if walkinganim == true then | |
3417 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3418 | else | |
3419 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3420 | end | |
3421 | elseif walkinganim == true then | |
3422 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3423 | else | |
3424 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3425 | end | |
3426 | elseif Anim ~= "Walk" and equipped == true or attack == true then | |
3427 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3428 | end | |
3429 | end | |
3430 | if allowwalking == true then | |
3431 | if Anim == "Walk" and equipped == true then | |
3432 | if alternatewalk == false then | |
3433 | if walkinganim == true then | |
3434 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3435 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3436 | else | |
3437 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3438 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3439 | end | |
3440 | elseif walkinganim == true then | |
3441 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3442 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3443 | else | |
3444 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3445 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2) | |
3446 | end | |
3447 | elseif Anim ~= "Walk" and equipped == true then | |
3448 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3449 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3450 | end | |
3451 | end | |
3452 | if velderp > 1 and hitfloor == nil then | |
3453 | Anim = "Jump" | |
3454 | if attack == false and equipped == true then | |
3455 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3456 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.1) | |
3457 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)) * RWC0, 0.1) | |
3458 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * LWC0, 0.1) | |
3459 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.1) | |
3460 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.1) | |
3461 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
3462 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
3463 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3464 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3465 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
3466 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
3467 | end | |
3468 | elseif velderp < -1 and hitfloor == nil then | |
3469 | Anim = "Fall" | |
3470 | if attack == false and equipped == true then | |
3471 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3472 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1) | |
3473 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.1) | |
3474 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.1) | |
3475 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.1) | |
3476 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
3477 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
3478 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
3479 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3480 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3481 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
3482 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
3483 | end | |
3484 | elseif torvel < 1 and hitfloor ~= nil then | |
3485 | Anim = "Idle" | |
3486 | if attack == false and equipped == true then | |
3487 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
3488 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.075) | |
3489 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.075) | |
3490 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.075) | |
3491 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
3492 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075) | |
3493 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.075) | |
3494 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.075) | |
3495 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.075) | |
3496 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.075) | |
3497 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.075) | |
3498 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.075) | |
3499 | end | |
3500 | elseif torvel > 1 and hitfloor ~= nil then | |
3501 | Anim = "Walk" | |
3502 | walk = walk + 0.5 | |
3503 | if walk >= 20 then | |
3504 | walk = 0 | |
3505 | if walkinganim == true then | |
3506 | walkinganim = false | |
3507 | elseif walkinganim == false then | |
3508 | walkinganim = true | |
3509 | end | |
3510 | end | |
3511 | if attack == false and equipped == true then | |
3512 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
3513 | Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
3514 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.1) | |
3515 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.1) | |
3516 | if walkinganim == true then | |
3517 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
3518 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1) | |
3519 | else | |
3520 | RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
3521 | LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1) | |
3522 | end | |
3523 | head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1) | |
3524 | torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1) | |
3525 | rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3526 | leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1) | |
3527 | rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1) | |
3528 | leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1) | |
3529 | end | |
3530 | end | |
3531 | end | |
3532 | end | |
3533 | end) | |
3534 | end | |
3535 | combo=0 | |
3536 | function ob1d(mouse) | |
3537 | if attack==true or equipped==false then return end | |
3538 | hold=true | |
3539 | if Mode=="Normal" then | |
3540 | if combo==0 then | |
3541 | combo=1 | |
3542 | attackone() | |
3543 | elseif combo==1 then | |
3544 | combo=2 | |
3545 | attacktwo() | |
3546 | elseif combo==2 then | |
3547 | combo=0 | |
3548 | attackthree() | |
3549 | end | |
3550 | else | |
3551 | TranscendAttack() | |
3552 | end | |
3553 | coroutine.resume(coroutine.create(function() | |
3554 | for i=1,50 do | |
3555 | if attack==false then | |
3556 | swait() | |
3557 | end | |
3558 | end | |
3559 | if attack==false then | |
3560 | combo=0 | |
3561 | end | |
3562 | end)) | |
3563 | end | |
3564 | ||
3565 | function ob1u(mouse) | |
3566 | hold = false | |
3567 | end | |
3568 | ||
3569 | buttonhold = false | |
3570 | ||
3571 | eul=0 | |
3572 | holdz=false | |
3573 | equipped=false | |
3574 | function key(key) | |
3575 | if key=="z" then | |
3576 | end | |
3577 | if attack==true then return end | |
3578 | if key=="f" then | |
3579 | attack=true | |
3580 | if equipped==false then | |
3581 | equipped=true | |
3582 | RSH=ch.Torso["Right Shoulder"] | |
3583 | LSH=ch.Torso["Left Shoulder"] | |
3584 | -- | |
3585 | RSH.Parent=nil | |
3586 | LSH.Parent=nil | |
3587 | -- | |
3588 | RW.Name="Right Shoulder" | |
3589 | RW.Part0=ch.Torso | |
3590 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
3591 | RW.C1=cf(0, 0.5, 0) | |
3592 | RW.Part1=ch["Right Arm"] | |
3593 | RW.Parent=ch.Torso | |
3594 | -- | |
3595 | LW.Name="Left Shoulder" | |
3596 | LW.Part0=ch.Torso | |
3597 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
3598 | LW.C1=cf(0, 0.5, 0) | |
3599 | LW.Part1=ch["Left Arm"] | |
3600 | LW.Parent=ch.Torso | |
3601 | -- | |
3602 | equipanim() | |
3603 | else | |
3604 | equipped=false | |
3605 | hideanim() | |
3606 | swait(0) | |
3607 | RW.Parent=nil | |
3608 | LW.Parent=nil | |
3609 | RSH.Parent=player.Character.Torso | |
3610 | LSH.Parent=player.Character.Torso | |
3611 | end | |
3612 | attack=false | |
3613 | end | |
3614 | if equipped==false then return end | |
3615 | if key=="r" then | |
3616 | Terrorblast() | |
3617 | end | |
3618 | if key=="q" then | |
3619 | Nocturn() | |
3620 | end | |
3621 | if key=="e" then | |
3622 | Darkrain() | |
3623 | end | |
3624 | if key=="x" then | |
3625 | Titanfall() | |
3626 | end | |
3627 | if key=="c" then | |
3628 | Darkstomp() | |
3629 | end | |
3630 | if key=="v" then | |
3631 | so("http://www.roblox.com/asset/?id=203691282",Player.Character.Torso,1,1) | |
3632 | end | |
3633 | if key=="b" then | |
3634 | transform() | |
3635 | end | |
3636 | end | |
3637 | ||
3638 | function key2(key) | |
3639 | if key=="z" then | |
3640 | holdz=false | |
3641 | end | |
3642 | end | |
3643 | ||
3644 | function s(mouse) | |
3645 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
3646 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
3647 | mouse.KeyDown:connect(key) | |
3648 | mouse.KeyUp:connect(key2) | |
3649 | ||
3650 | player=Player | |
3651 | ch=Character | |
3652 | MMouse=mouse | |
3653 | end | |
3654 | ||
3655 | function ds(mouse) | |
3656 | end | |
3657 | ||
3658 | Bin.Selected:connect(s) | |
3659 | Bin.Deselected:connect(ds) | |
3660 | print("Vanta powers activated.") | |
3661 | ||
3662 | local mananum=0 | |
3663 | local donum=0 | |
3664 | local circlenum=0 | |
3665 | local handidle=false | |
3666 | local orbeffect=1 | |
3667 | local orbdelay=0 | |
3668 | local effectdelay=0 | |
3669 | while true do | |
3670 | swait() | |
3671 | if Mode=="Transcend" then | |
3672 | if orbnum<=0 then | |
3673 | Mode="Normal" | |
3674 | end | |
3675 | if effectdelay>4 then | |
3676 | return | |
3677 | end | |
3678 | end | |
3679 | --if orbdelay>=5 then | |
3680 | --end | |
3681 | --orbdelay=orbdelay+1 | |
3682 | circlenum=circlenum+0.1 | |
3683 | --wld48.C0=clerp(wld48.C0,CFrame.Angles(x,y,z),.3) | |
3684 | if donum>=.5 then | |
3685 | handidle=true | |
3686 | elseif donum<=0 then | |
3687 | handidle=false | |
3688 | end | |
3689 | if handidle==false then | |
3690 | donum=donum+0.003 | |
3691 | else | |
3692 | donum=donum-0.003 | |
3693 | end | |
3694 | if attack==false and equipped==true then | |
3695 | ||
3696 | end | |
3697 | --between prt16 and prt17 | |
3698 | --local wld27=weld(prt27,prt27,prt26,euler(0,0,0)*cf(0,-1.2,0)) | |
3699 | --[[local top=prt16r.CFrame | |
3700 | local bottom=prt17r.CFrame | |
3701 | oristrpos=CFrame.new((top.p+bottom.p)/2) | |
3702 | local mg1=(top.p-oristrpos.p).magnitude | |
3703 | local mg2=(bottom.p-oristrpos.p).magnitude | |
3704 | cff=CFrame.new(top*angles(1.57,0,0).p,prt17r.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0) | |
3705 | hit2=prt27 | |
3706 | hit=prt17r | |
3707 | wld27.Parent=prt27 | |
3708 | wld27.Part0=hit2 | |
3709 | wld27.Part1=hit | |
3710 | HitPos=cff.p | |
3711 | local CJ = CFrame.new(HitPos) | |
3712 | local C0=cff:inverse() *CJ | |
3713 | local C1=hit.CFrame:inverse() * CJ | |
3714 | wld27.C0=clerp(wld27.C0,C0,.1) | |
3715 | wld27.C1=clerp(wld27.C1,C1,.1)]] | |
3716 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
3717 | local velderp=RootPart.Velocity.y | |
3718 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
3719 | if equipped==true then | |
3720 | if attack==false then | |
3721 | idle=idle+1 | |
3722 | else | |
3723 | idle=0 | |
3724 | end | |
3725 | if idle>=500 then | |
3726 | if attack==false then | |
3727 | --Sheath() | |
3728 | end | |
3729 | end | |
3730 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
3731 | Anim="Jump" | |
3732 | if attack==false then | |
3733 | ||
3734 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
3735 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
3736 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3) | |
3737 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3) | |
3738 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3739 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3) | |
3740 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3741 | RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2) | |
3742 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2) | |
3743 | end | |
3744 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
3745 | Anim="Fall" | |
3746 | if attack==false then | |
3747 | ||
3748 | Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3) | |
3749 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
3750 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3) | |
3751 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3) | |
3752 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3753 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3) | |
3754 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3755 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2) | |
3756 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2) | |
3757 | end | |
3758 | elseif torvel<1 and hitfloor~=nil then | |
3759 | Anim="Idle" | |
3760 | if attack==false then | |
3761 | if Mode=="Normal" then | |
3762 | ||
3763 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3) | |
3764 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
3765 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3) | |
3766 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0.1-(donum/5)),.3) | |
3767 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3768 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.1+(donum/5)),.3) | |
3769 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3770 | RH.C0=clerp(RH.C0,RHC0,.3) | |
3771 | RH.C1=clerp(RH.C1,RHC1,.3) | |
3772 | LH.C0=clerp(LH.C0,LHC0,.3) | |
3773 | LH.C1=clerp(LH.C1,LHC1,.3) | |
3774 | else | |
3775 | ||
3776 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0,0,.4),.3) | |
3777 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-.4),.3) | |
3778 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,0,.4-(donum/4)),.3) | |
3779 | RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3780 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.8+(donum/4)),.3) | |
3781 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3782 | RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.1,-.5,-.4),.3) | |
3783 | LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,-.5,.4),.3) | |
3784 | end | |
3785 | end | |
3786 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
3787 | Anim="Walk" | |
3788 | if attack==false then | |
3789 | if Mode=="Normal" then | |
3790 | ||
3791 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3) | |
3792 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
3793 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.3) | |
3794 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.2,0,0.3),.3) | |
3795 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3796 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.3),.3) | |
3797 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3798 | RH.C0=clerp(RH.C0,RHC0,.3) | |
3799 | LH.C0=clerp(LH.C0,LHC0,.3) | |
3800 | else | |
3801 | ||
3802 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0.1,0,0),.3) | |
3803 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3) | |
3804 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4),.3) | |
3805 | RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3806 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.8),.3) | |
3807 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3808 | RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.1,0,-.4),.3) | |
3809 | LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,0,.4),.3) | |
3810 | end | |
3811 | end | |
3812 | elseif torvel>=22 and hitfloor~=nil then | |
3813 | Anim="Run" | |
3814 | if attack==false then | |
3815 | if Mode=="Normal" then | |
3816 | ||
3817 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3) | |
3818 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
3819 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.3,0,0),.3) | |
3820 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.5,0,0.5),.3) | |
3821 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3822 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.5,0,-0.5),.3) | |
3823 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3824 | else | |
3825 | ||
3826 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0.1,0,0),.3) | |
3827 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.3) | |
3828 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4),.3) | |
3829 | RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3830 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.8),.3) | |
3831 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
3832 | RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.1,0,-.4),.3) | |
3833 | LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,0,.4),.3) | |
3834 | end | |
3835 | end | |
3836 | end | |
3837 | end | |
3838 | if #Effects>0 then | |
3839 | --table.insert(Effects,{prt,"Block1",delay}) | |
3840 | for e=1,#Effects do | |
3841 | if Effects[e]~=nil then | |
3842 | --for j=1,#Effects[e] do | |
3843 | local Thing=Effects[e] | |
3844 | if Thing~=nil then | |
3845 | local Part=Thing[1] | |
3846 | local Mode=Thing[2] | |
3847 | local Delay=Thing[3] | |
3848 | local IncX=Thing[4] | |
3849 | local IncY=Thing[5] | |
3850 | local IncZ=Thing[6] | |
3851 | if Thing[1].Transparency<=1 then | |
3852 | if Thing[2]=="Block1" then | |
3853 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3854 | Mesh=Thing[1].Mesh | |
3855 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
3856 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
3857 | elseif Thing[2]=="Block2" then | |
3858 | Thing[1].CFrame=Thing[1].CFrame | |
3859 | Mesh=Thing[1].Mesh | |
3860 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
3861 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
3862 | elseif Thing[2]=="Cylinder" then | |
3863 | Mesh=Thing[7] | |
3864 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
3865 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
3866 | elseif Thing[2]=="Blood" then | |
3867 | Mesh=Thing[7] | |
3868 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
3869 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
3870 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
3871 | elseif Thing[2]=="Elec" then | |
3872 | Mesh=Thing[1].Mesh | |
3873 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
3874 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
3875 | elseif Thing[2]=="Disappear" then | |
3876 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
3877 | end | |
3878 | else | |
3879 | Part.Parent=nil | |
3880 | table.remove(Effects,e) | |
3881 | end | |
3882 | end | |
3883 | --end | |
3884 | end | |
3885 | end | |
3886 | end | |
3887 | fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true) | |
3888 | fenbarmana4.Text="Energy("..mana..")" | |
3889 | if mana>=100 then | |
3890 | mana=100 | |
3891 | else | |
3892 | if mananum<=8 then | |
3893 | mananum=mananum+1 | |
3894 | else | |
3895 | mananum=0 | |
3896 | mana=mana+1 | |
3897 | end | |
3898 | end | |
3899 | end | |
3900 | --[[ | |
3901 | Copyrighted (C) Fenrier 2014 | |
3902 | ]] |