SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {} | |
2 | do | |
3 | script.Parent = owner.Character | |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | local Bind = Instance.new("BindableEvent") | |
7 | local Fake;Fake = {Connections = {}, | |
8 | fakeEvent=true; | |
9 | Connect=function(self,Func) | |
10 | Bind.Event:connect(Func) | |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | __tostring = function() return "Connection" end; | |
20 | }) | |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | end | |
24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
29 | local function TriggerEvent(self,Event,...) | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
33 | end | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
37 | if FiredBy.Name ~= owner.Name then return end | |
38 | if Input.MouseEvent then | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
48 | end | |
49 | end) | |
50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
51 | Event.Parent = NLS([[ | |
52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
53 | local Input = function(Input,gameProcessedEvent) | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | local Hit,Target | |
59 | while wait(1/30) do | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | end | |
64 | ]],owner.Character) | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | end | |
80 | return RealPlayer[Index] | |
81 | end; | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | }) | |
84 | end | |
85 | end | |
86 | if RealGame[Index] then | |
87 | local Type = type(RealGame[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | return function (self,Service) | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | return setmetatable({},{ | |
94 | __index = function (self2,Index2) | |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | }) | |
106 | end; | |
107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
109 | ["runservice"] = function() | |
110 | return setmetatable({},{ | |
111 | __index = function(self2,Index2) | |
112 | local RealService = RealGame:GetService(Service) | |
113 | local Type2 = type(Index2) | |
114 | if Type2 == "function" then | |
115 | return function (self,...) return RealService[Index2](RealService,...) end | |
116 | else | |
117 | local RunServices = { | |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
120 | } | |
121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
122 | return RealService[Index2] | |
123 | end | |
124 | end | |
125 | }) | |
126 | end | |
127 | } | |
128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
129 | return RealGame:GetService(Service) | |
130 | end | |
131 | end | |
132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
133 | else | |
134 | if game:GetService(Index) then return game:GetService(Index) end | |
135 | return RealGame[Index] | |
136 | end | |
137 | end | |
138 | return nil | |
139 | end | |
140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob") | |
141 | ||
142 | Character = game.Players.LocalPlayer.Character | |
143 | Head = Character.Head | |
144 | ||
145 | CV="Black" | |
146 | p = game.Players.LocalPlayer | |
147 | char = p.Character | |
148 | local txt = Instance.new("BillboardGui", char) | |
149 | txt.Adornee = char .Head | |
150 | txt.Name = "_status" | |
151 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
152 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
153 | local text = Instance.new("TextLabel", txt) | |
154 | text.Size = UDim2.new(10, 0, 7, 0) | |
155 | text.FontSize = "Size24" | |
156 | text.TextScaled = true | |
157 | text.TextTransparency = 0 | |
158 | text.BackgroundTransparency = 1 | |
159 | text.TextTransparency = 0 | |
160 | text.TextStrokeTransparency = 0 | |
161 | text.Font = "Code" | |
162 | text.TextStrokeColor3 = Color3.new(0,0,.0) | |
163 | ||
164 | v=Instance.new("Part") | |
165 | v.Name = "ColorBrick" | |
166 | v.Parent=p.Character | |
167 | v.FormFactor="Symmetric" | |
168 | v.Anchored=true | |
169 | v.CanCollide=false | |
170 | v.BottomSurface="Smooth" | |
171 | v.TopSurface="Smooth" | |
172 | v.Size=Vector3.new(10,5,3) | |
173 | v.Transparency=1 | |
174 | v.CFrame=char.Torso.CFrame | |
175 | v.BrickColor=BrickColor.new(CV) | |
176 | v.Transparency=1 | |
177 | text.TextColor3 = Color3.new(0,0,.0) | |
178 | v.Shape="Block" | |
179 | text.Text = "Void" | |
180 | ||
181 | local s = Instance.new("Sound",char) | |
182 | s.Name = "BGMusic" | |
183 | s.SoundId = "rbxassetid://1119237438" | |
184 | s.Pitch = 1 | |
185 | s.Volume = 10 | |
186 | s.Looped = true | |
187 | s.archivable = false | |
188 | s.Parent = char.Head | |
189 | wait(0.1) | |
190 | s:play() | |
191 | ||
192 | Instance.new("ForceField", game.Players.LocalPlayer.Character) | |
193 | print("Void Loaded.") | |
194 | print("Unleash the deadly Darkness to anyone to destroy.") | |
195 | print("Void edit") | |
196 | p = game.Players.LocalPlayer | |
197 | char = p.Character | |
198 | torso = char.Torso | |
199 | neck = char.Torso.Neck | |
200 | ||
201 | Player=game:GetService("Players").LocalPlayer | |
202 | Character=Player.Character | |
203 | PlayerGui=Player.PlayerGui | |
204 | Backpack=Player.Backpack | |
205 | Torso=Character.Torso | |
206 | Head=Character.Head | |
207 | Humanoid=Character.Humanoid | |
208 | LeftArm=Character["Left Arm"] | |
209 | LeftLeg=Character["Left Leg"] | |
210 | RightArm=Character["Right Arm"] | |
211 | RightLeg=Character["Right Leg"] | |
212 | cam=game.Workspace.CurrentCamera | |
213 | LS=Torso["Left Shoulder"] | |
214 | LH=Torso["Left Hip"] | |
215 | RS=Torso["Right Shoulder"] | |
216 | RH=Torso["Right Hip"] | |
217 | Face = Head.face | |
218 | Neck=Torso.Neck | |
219 | it=Instance.new | |
220 | attacktype=1 | |
221 | vt=Vector3.new | |
222 | cf=CFrame.new | |
223 | euler=CFrame.fromEulerAnglesXYZ | |
224 | angles=CFrame.Angles | |
225 | cloaked=false | |
226 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
227 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
228 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
229 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
230 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
231 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
232 | RootPart=Character.HumanoidRootPart | |
233 | RootJoint=RootPart.RootJoint | |
234 | RootCF=euler(-1.57,0,3.14) | |
235 | attack = false | |
236 | bounce=false | |
237 | cooldown=false | |
238 | deeznuts=false | |
239 | attackdebounce = false | |
240 | deb=false | |
241 | equipped=true | |
242 | hand=false | |
243 | MMouse=nil | |
244 | combo=0 | |
245 | mana=0 | |
246 | trispeed=.2 | |
247 | attackmode='none' | |
248 | local idle=0 | |
249 | local Anim="Idle" | |
250 | local Effects={} | |
251 | local gun=false | |
252 | local shoot=false | |
253 | player=nil | |
254 | mana=0 | |
255 | cam = workspace.CurrentCamera | |
256 | ZTarget = nil | |
257 | RocketTarget = nil | |
258 | local m = Instance.new("Model",Character) | |
259 | m.Name = "WeaponModel" | |
260 | ||
261 | mouse=Player:GetMouse() | |
262 | --save shoulders | |
263 | RSH, LSH=nil, nil | |
264 | --welds | |
265 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
266 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
267 | LH=Torso["Left Hip"] | |
268 | RH=Torso["Right Hip"] | |
269 | TorsoColor=Torso.BrickColor | |
270 | function NoOutline(Part) | |
271 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
272 | end | |
273 | player=Player | |
274 | ch=Character | |
275 | RSH=ch.Torso["Right Shoulder"] | |
276 | LSH=ch.Torso["Left Shoulder"] | |
277 | -- | |
278 | RSH.Parent=nil | |
279 | LSH.Parent=nil | |
280 | -- | |
281 | RW.Name="Right Shoulder" | |
282 | RW.Part0=ch.Torso | |
283 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
284 | RW.C1=cf(0, 0.5, 0) | |
285 | RW.Part1=ch["Right Arm"] | |
286 | RW.Parent=ch.Torso | |
287 | -- | |
288 | LW.Name="Left Shoulder" | |
289 | LW.Part0=ch.Torso | |
290 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
291 | LW.C1=cf(0, 0.5, 0) | |
292 | LW.Part1=ch["Left Arm"] | |
293 | LW.Parent=ch.Torso | |
294 | ||
295 | function swait(num) | |
296 | if num==0 or num==nil then | |
297 | game:service'RunService'.Heartbeat:wait(0) | |
298 | else | |
299 | for i=0,num do | |
300 | game:service'RunService'.Heartbeat:wait(0) | |
301 | end | |
302 | end | |
303 | end | |
304 | ||
305 | ||
306 | local Player = game.Players.localPlayer | |
307 | local Character = Player.Character | |
308 | local red = 0 | |
309 | local green = 0 | |
310 | local blue = 0 | |
311 | local Humanoid = Character.Humanoid | |
312 | local mouse = Player:GetMouse() | |
313 | local m = Instance.new("Model", Character) | |
314 | m.Name = "WeaponModel" | |
315 | local LeftArm = Character["Left Arm"] | |
316 | local RightArm = Character["Right Arm"] | |
317 | local LeftLeg = Character["Left Leg"] | |
318 | local RightLeg = Character["Right Leg"] | |
319 | local Head = Character.Head | |
320 | local Torso = Character.Torso | |
321 | local cam = game.Workspace.CurrentCamera | |
322 | local RootPart = Character.HumanoidRootPart | |
323 | local RootJoint = RootPart.RootJoint | |
324 | local equipped = false | |
325 | local attack = false | |
326 | local Anim = "Idle" | |
327 | local idle = 0 | |
328 | local attacktype = 1 | |
329 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
330 | local velocity = RootPart.Velocity.y | |
331 | local sine = 0 | |
332 | local change = 1 | |
333 | local grabbed = false | |
334 | local cn = CFrame.new | |
335 | local mr = math.rad | |
336 | local angles = CFrame.Angles | |
337 | local ud = UDim2.new | |
338 | local c3 = Color3.new | |
339 | local lim = 0 | |
340 | local st = 0 | |
341 | local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
342 | local attacktype = 1 | |
343 | local ZTarget, RocketTarget = nil, nil | |
344 | local euler = CFrame.fromEulerAnglesXYZ | |
345 | function clerp(a,b,t) | |
346 | local qa = {QuaternionFromCFrame(a)} | |
347 | local qb = {QuaternionFromCFrame(b)} | |
348 | local ax, ay, az = a.x, a.y, a.z | |
349 | local bx, by, bz = b.x, b.y, b.z | |
350 | local _t = 1-t | |
351 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
352 | end | |
353 | ||
354 | function QuaternionFromCFrame(cf) | |
355 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
356 | local trace = m00 + m11 + m22 | |
357 | if trace > 0 then | |
358 | local s = math.sqrt(1 + trace) | |
359 | local recip = 0.5/s | |
360 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
361 | else | |
362 | local i = 0 | |
363 | if m11 > m00 then | |
364 | i = 1 | |
365 | end | |
366 | if m22 > (i == 0 and m00 or m11) then | |
367 | i = 2 | |
368 | end | |
369 | if i == 0 then | |
370 | local s = math.sqrt(m00-m11-m22+1) | |
371 | local recip = 0.5/s | |
372 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
373 | elseif i == 1 then | |
374 | local s = math.sqrt(m11-m22-m00+1) | |
375 | local recip = 0.5/s | |
376 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
377 | elseif i == 2 then | |
378 | local s = math.sqrt(m22-m00-m11+1) | |
379 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
380 | end | |
381 | end | |
382 | end | |
383 | ||
384 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
385 | local xs, ys, zs = x + x, y + y, z + z | |
386 | local wx, wy, wz = w*xs, w*ys, w*zs | |
387 | local xx = x*xs | |
388 | local xy = x*ys | |
389 | local xz = x*zs | |
390 | local yy = y*ys | |
391 | local yz = y*zs | |
392 | local zz = z*zs | |
393 | 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)) | |
394 | end | |
395 | ||
396 | function QuaternionSlerp(a, b, t) | |
397 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
398 | local startInterp, finishInterp; | |
399 | if cosTheta >= 0.0001 then | |
400 | if (1 - cosTheta) > 0.0001 then | |
401 | local theta = math.acos(cosTheta) | |
402 | local invSinTheta = 1/math.sin(theta) | |
403 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
404 | finishInterp = math.sin(t*theta)*invSinTheta | |
405 | else | |
406 | startInterp = 1-t | |
407 | finishInterp = t | |
408 | end | |
409 | else | |
410 | if (1+cosTheta) > 0.0001 then | |
411 | local theta = math.acos(-cosTheta) | |
412 | local invSinTheta = 1/math.sin(theta) | |
413 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
414 | finishInterp = math.sin(t*theta)*invSinTheta | |
415 | else | |
416 | startInterp = t-1 | |
417 | finishInterp = t | |
418 | end | |
419 | end | |
420 | 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 | |
421 | end | |
422 | rayCast = function(Position, Direction, Range, Ignore) | |
423 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
424 | end | |
425 | local v = game.Players.localPlayer | |
426 | local torso = v.Character.Torso | |
427 | ||
428 | plr = game.Players.LocalPlayer | |
429 | char = game.Players.LocalPlayer.Character | |
430 | hum = game.Players.LocalPlayer.Character.Humanoid | |
431 | t = game.Players.LocalPlayer.Character.Torso | |
432 | h = game.Players.LocalPlayer.Character.Head | |
433 | ra = game.Players.LocalPlayer.Character["Right Arm"] | |
434 | la = game.Players.LocalPlayer.Character["Left Arm"] | |
435 | rl = game.Players.LocalPlayer.Character["Right Leg"] | |
436 | ll = game.Players.LocalPlayer.Character["Left Leg"] | |
437 | tors = Character.Torso | |
438 | lleg = Character["Left Leg"] | |
439 | root = Character.HumanoidRootPart | |
440 | hed = Character.Head | |
441 | rleg = Character["Right Leg"] | |
442 | rarm = Character["Right Arm"] | |
443 | larm = Character["Left Arm"] | |
444 | bsize1 = NumberSequenceKeypoint.new(3,3,3) | |
445 | bsize2 = NumberSequenceKeypoint.new(10,10,10) | |
446 | local Effects = {} | |
447 | attack = false | |
448 | local attacking = false | |
449 | vt = Vector3.new | |
450 | bc = BrickColor.new | |
451 | br = BrickColor.random | |
452 | it = Instance.new | |
453 | cf = CFrame.new | |
454 | euler = CFrame.fromEulerAnglesXYZ | |
455 | angles = CFrame.Angles | |
456 | matr = math.random | |
457 | local colororg = BrickColor.new("Black") -- set color u like | |
458 | local meshtype = "Sphere" -- only for specialmesh | |
459 | mouse = plr:GetMouse() | |
460 | ||
461 | CFuncs = { | |
462 | ["Part"] = { | |
463 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
464 | local Part = Create("Part"){ | |
465 | Parent = Parent, | |
466 | Reflectance = Reflectance, | |
467 | Transparency = Transparency, | |
468 | CanCollide = false, | |
469 | Locked = true, | |
470 | BrickColor = BrickColor.new(tostring(BColor)), | |
471 | Name = Name, | |
472 | Size = Size, | |
473 | Material = Material, | |
474 | } | |
475 | RemoveOutlines(Part) | |
476 | return Part | |
477 | end; | |
478 | }; | |
479 | ||
480 | ["Mesh"] = { | |
481 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
482 | local Msh = Create(Mesh){ | |
483 | Parent = Part, | |
484 | Offset = OffSet, | |
485 | Scale = Scale, | |
486 | } | |
487 | if Mesh == "SpecialMesh" then | |
488 | Msh.MeshType = MeshType | |
489 | Msh.MeshId = MeshId | |
490 | end | |
491 | return Msh | |
492 | end; | |
493 | }; | |
494 | ||
495 | ["Mesh"] = { | |
496 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
497 | local Msh = Create(Mesh){ | |
498 | Parent = Part, | |
499 | Offset = OffSet, | |
500 | Scale = Scale, | |
501 | } | |
502 | if Mesh == "SpecialMesh" then | |
503 | Msh.MeshType = MeshType | |
504 | Msh.MeshId = MeshId | |
505 | end | |
506 | return Msh | |
507 | end; | |
508 | }; | |
509 | ||
510 | ["Weld"] = { | |
511 | Create = function(Parent, Part0, Part1, C0, C1) | |
512 | local Weld = Create("Weld"){ | |
513 | Parent = Parent, | |
514 | Part0 = Part0, | |
515 | Part1 = Part1, | |
516 | C0 = C0, | |
517 | C1 = C1, | |
518 | } | |
519 | return Weld | |
520 | end; | |
521 | }; | |
522 | ||
523 | ["Sound"] = { | |
524 | Create = function(id, par, vol, pit) | |
525 | coroutine.resume(coroutine.create(function() | |
526 | local S = Create("Sound"){ | |
527 | Volume = vol, | |
528 | Pitch = pit or 1, | |
529 | SoundId = id, | |
530 | Parent = par or workspace, | |
531 | } | |
532 | wait() | |
533 | S:play() | |
534 | game:GetService("Debris"):AddItem(S, 6) | |
535 | end)) | |
536 | end; | |
537 | }; | |
538 | ||
539 | ["ParticleEmitter"] = { | |
540 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
541 | local fp = Create("ParticleEmitter"){ | |
542 | Parent = Parent, | |
543 | Color = ColorSequence.new(Color1, Color2), | |
544 | LightEmission = LightEmission, | |
545 | Size = Size, | |
546 | Texture = Texture, | |
547 | Transparency = Transparency, | |
548 | ZOffset = ZOffset, | |
549 | Acceleration = Accel, | |
550 | Drag = Drag, | |
551 | LockedToPart = LockedToPart, | |
552 | VelocityInheritance = VelocityInheritance, | |
553 | EmissionDirection = EmissionDirection, | |
554 | Enabled = Enabled, | |
555 | Lifetime = LifeTime, | |
556 | Rate = Rate, | |
557 | Rotation = Rotation, | |
558 | RotSpeed = RotSpeed, | |
559 | Speed = Speed, | |
560 | VelocitySpread = VelocitySpread, | |
561 | } | |
562 | return fp | |
563 | end; | |
564 | }; | |
565 | ||
566 | CreateTemplate = { | |
567 | ||
568 | }; | |
569 | } | |
570 | ||
571 | ||
572 | ||
573 | New = function(Object, Parent, Name, Data) | |
574 | local Object = Instance.new(Object) | |
575 | for Index, Value in pairs(Data or {}) do | |
576 | Object[Index] = Value | |
577 | end | |
578 | Object.Parent = Parent | |
579 | Object.Name = Name | |
580 | return Object | |
581 | end | |
582 | ||
583 | function chatfunc(text) | |
584 | local chat = coroutine.wrap(function() | |
585 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
586 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
587 | end | |
588 | local naeeym2 = Instance.new("BillboardGui",Character) | |
589 | naeeym2.Size = UDim2.new(0,100,0,40) | |
590 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
591 | naeeym2.Adornee = Character.Head | |
592 | naeeym2.Name = "TalkingBillBoard" | |
593 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
594 | tecks2.BackgroundTransparency = 1 | |
595 | tecks2.BorderSizePixel = 0 | |
596 | tecks2.Text = "" | |
597 | tecks2.Font = "SciFi" | |
598 | tecks2.TextSize = 30 | |
599 | tecks2.TextStrokeTransparency = 0 | |
600 | tecks2.TextColor3 = Color3.new(0.0,0.0,0) | |
601 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
602 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
603 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
604 | tecks3.BackgroundTransparency = 1 | |
605 | tecks3.BorderSizePixel = 0 | |
606 | tecks3.Text = "" | |
607 | tecks3.Font = "SciFi" | |
608 | tecks3.TextSize = 30 | |
609 | tecks3.TextStrokeTransparency = 0 | |
610 | tecks3.TextColor3 = Color3.new(0.0,0.0,0) | |
611 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
612 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
613 | for i = 1,string.len(text),1 do | |
614 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=1238528678", Character, .6, .8) | |
615 | tecks2.Text = string.sub(text,1,i) | |
616 | tecks3.Text = string.sub(text,1,i) | |
617 | wait(0.01) | |
618 | end | |
619 | wait(2) | |
620 | for i = 1, 50 do | |
621 | swait() | |
622 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
623 | tecks2.Rotation = tecks2.Rotation - .8 | |
624 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
625 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
626 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
627 | tecks3.Rotation = tecks2.Rotation + .8 | |
628 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
629 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
630 | end | |
631 | naeeym2:Destroy() | |
632 | end) | |
633 | chat() | |
634 | end | |
635 | function onChatted(msg) | |
636 | chatfunc(msg) | |
637 | end | |
638 | Player.Chatted:connect(onChatted) | |
639 | ||
640 | ||
641 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
642 | if hit.Parent==nil then | |
643 | return | |
644 | end | |
645 | h=hit.Parent:FindFirstChild("Humanoid") | |
646 | for _,v in pairs(hit.Parent:children()) do | |
647 | if v:IsA("Humanoid") then | |
648 | h=v | |
649 | end | |
650 | end | |
651 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
652 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
653 | end | |
654 | if hit.Parent.className=="Hat" then | |
655 | hit=hit.Parent.Parent:findFirstChild("Head") | |
656 | end | |
657 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
658 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
659 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
660 | return | |
661 | end]] | |
662 | -- hs(hit,1.2) | |
663 | c=Instance.new("ObjectValue") | |
664 | c.Name="creator" | |
665 | c.Value=game:service("Players").LocalPlayer | |
666 | c.Parent=h | |
667 | game:GetService("Debris"):AddItem(c,.5) | |
668 | Damage=math.random(minim,maxim) | |
669 | -- h:TakeDamage(Damage) | |
670 | blocked=false | |
671 | block=hit.Parent:findFirstChild("Block") | |
672 | if block~=nil then | |
673 | print(block.className) | |
674 | if block.className=="NumberValue" then | |
675 | if block.Value>0 then | |
676 | blocked=true | |
677 | if decreaseblock==nil then | |
678 | block.Value=block.Value-1 | |
679 | end | |
680 | end | |
681 | end | |
682 | if block.className=="IntValue" then | |
683 | if block.Value>0 then | |
684 | blocked=true | |
685 | if decreaseblock~=nil then | |
686 | block.Value=block.Value-1 | |
687 | end | |
688 | end | |
689 | end | |
690 | end | |
691 | if blocked==false then | |
692 | -- h:TakeDamage(Damage) | |
693 | h.Health=h.Health-Damage | |
694 | showDamage(hit.Parent,Damage,3,TorsoColor) | |
695 | else | |
696 | h.Health=h.Health-(Damage/3) | |
697 | showDamage(hit.Parent,Damage/2,3,BrickColor.new("Black")) | |
698 | end | |
699 | if Type=="Knockdown" then | |
700 | hum=hit.Parent.Humanoid | |
701 | hum.PlatformStand=true | |
702 | coroutine.resume(coroutine.create(function(HHumanoid) | |
703 | swait(1) | |
704 | HHumanoid.PlatformStand=false | |
705 | end),hum) | |
706 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
707 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
708 | local bodvol=Instance.new("BodyVelocity") | |
709 | bodvol.velocity=angle*knockback | |
710 | bodvol.P=5000 | |
711 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
712 | bodvol.Parent=hit | |
713 | rl=Instance.new("BodyAngularVelocity") | |
714 | rl.P=3000 | |
715 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
716 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
717 | rl.Parent=hit | |
718 | game:GetService("Debris"):AddItem(bodvol,.5) | |
719 | game:GetService("Debris"):AddItem(rl,.5) | |
720 | elseif Type=="Normal" then | |
721 | vp=Instance.new("BodyVelocity") | |
722 | vp.P=500 | |
723 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
724 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
725 | if KnockbackType==1 then | |
726 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
727 | elseif KnockbackType==2 then | |
728 | vp.velocity=Property.CFrame.lookVector*knockback | |
729 | end | |
730 | if knockback>0 then | |
731 | vp.Parent=hit.Parent.Torso | |
732 | end | |
733 | game:GetService("Debris"):AddItem(vp,.5) | |
734 | elseif Type=="Up" then | |
735 | local bodyVelocity=Instance.new("BodyVelocity") | |
736 | bodyVelocity.velocity=vt(0,10,0) | |
737 | bodyVelocity.P=1000 | |
738 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
739 | bodyVelocity.Parent=hit | |
740 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
741 | rl=Instance.new("BodyAngularVelocity") | |
742 | rl.P=3000 | |
743 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
744 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
745 | rl.Parent=hit | |
746 | game:GetService("Debris"):AddItem(rl,.5) | |
747 | elseif Type=="Snare" then | |
748 | bp=Instance.new("BodyPosition") | |
749 | bp.P=2000 | |
750 | bp.D=100 | |
751 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
752 | bp.position=hit.Parent.Torso.Position | |
753 | bp.Parent=hit.Parent.Torso | |
754 | game:GetService("Debris"):AddItem(bp,1) | |
755 | elseif Type=="Target" then | |
756 | if Targetting==false then | |
757 | ZTarget=hit.Parent.Torso | |
758 | coroutine.resume(coroutine.create(function(Part) | |
759 | swait(5) | |
760 | end),ZTarget) | |
761 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
762 | targetgui=Instance.new("BillboardGui") | |
763 | targetgui.Parent=ZTarget | |
764 | targetgui.Size=UDim2.new(10,100,10,100) | |
765 | targ=Instance.new("ImageLabel") | |
766 | targ.Parent=targetgui | |
767 | targ.BackgroundTransparency=1 | |
768 | targ.Image="rbxassetid://4834067" | |
769 | targ.Size=UDim2.new(1,0,1,0) | |
770 | cam.CameraType="Scriptable" | |
771 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
772 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
773 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
774 | Targetting=true | |
775 | RocketTarget=ZTarget | |
776 | for i=1,Property do | |
777 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
778 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
779 | swait() | |
780 | end | |
781 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
782 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
783 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
784 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
785 | end | |
786 | Targetting=false | |
787 | RocketTarget=nil | |
788 | targetgui.Parent=nil | |
789 | cam.CameraType="Custom" | |
790 | end | |
791 | end | |
792 | debounce=Instance.new("BoolValue") | |
793 | debounce.Name="DebounceHit" | |
794 | debounce.Parent=hit.Parent | |
795 | debounce.Value=true | |
796 | game:GetService("Debris"):AddItem(debounce,Delay) | |
797 | c=Instance.new("ObjectValue") | |
798 | c.Name="creator" | |
799 | c.Value=Player | |
800 | c.Parent=h | |
801 | game:GetService("Debris"):AddItem(c,.5) | |
802 | CRIT=false | |
803 | hitDeb=true | |
804 | AttackPos=6 | |
805 | end | |
806 | end | |
807 | ||
808 | showDamage=function(Char,Dealt,du,Color) | |
809 | m=Instance.new("Model") | |
810 | m.Name="" | |
811 | h=Instance.new("Humanoid") | |
812 | h.Health=0 | |
813 | h.MaxHealth=0 | |
814 | h.Parent=m | |
815 | c=Instance.new("Part") | |
816 | c.Transparency=0 | |
817 | c.Material = "Neon" | |
818 | c.BrickColor=bc("Black") | |
819 | c.Name="Head" | |
820 | c.TopSurface=0 | |
821 | c.BottomSurface=0 | |
822 | CV="Hot pink" | |
823 | ||
824 | local txt = Instance.new("BillboardGui", c) | |
825 | txt.Adornee = c | |
826 | txt.Name = "_status" | |
827 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
828 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
829 | local text = Instance.new("TextLabel", txt) | |
830 | text.Size = UDim2.new(10, 0, 7, 0) | |
831 | text.FontSize = "Size24" | |
832 | text.TextScaled = true | |
833 | text.TextTransparency = 0 | |
834 | text.BackgroundTransparency = 1 | |
835 | text.TextTransparency = 0 | |
836 | text.TextStrokeTransparency = 0 | |
837 | if Dealt < 12 then | |
838 | text.Font = "Highway" | |
839 | elseif Dealt < 20 then | |
840 | text.Font = "SourceSansBold" | |
841 | elseif Dealt >= 20 then | |
842 | text.Font = "Fantasy" | |
843 | end | |
844 | text.TextStrokeColor3 = BrickColor.new("Really black").Color | |
845 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
846 | v=Instance.new("Part") | |
847 | v.Name = "ColorBrick" | |
848 | v.Parent=c | |
849 | v.FormFactor="Symmetric" | |
850 | v.Anchored=true | |
851 | v.CanCollide=false | |
852 | v.BottomSurface="Smooth" | |
853 | v.TopSurface="Smooth" | |
854 | v.Size=Vector3.new(10,5,3) | |
855 | v.Transparency=1 | |
856 | v.CFrame=c.CFrame | |
857 | v.BrickColor=BrickColor.new(CV) | |
858 | v.Transparency=1 | |
859 | if Dealt < 12 then | |
860 | text.TextColor3 = BrickColor.new("Black").Color | |
861 | elseif Dealt < 20 then | |
862 | text.TextColor3 = BrickColor.new("White").Color | |
863 | elseif Dealt >= 20 then | |
864 | text.TextColor3 = BrickColor.new("Yellow").Color | |
865 | end | |
866 | v.Shape="Block" | |
867 | text.Text = tostring(Dealt).. "!" | |
868 | local dam = Instance.new("Sound",c) | |
869 | local rndm=math.random(1,#hitsounds) | |
870 | local r=rndm | |
871 | dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r] | |
872 | dam.Volume = 1.25 | |
873 | dam.Pitch = 1 | |
874 | dam:Play() | |
875 | c.formFactor="Plate" | |
876 | c.Transparency = 1 | |
877 | c.Size=Vector3.new(1,.4,1) | |
878 | ms=Instance.new("CylinderMesh") | |
879 | ms.Scale=Vector3.new(.10,.10,.10) | |
880 | if CRIT==true then | |
881 | ms.Scale=Vector3.new(1,1.25,1) | |
882 | end | |
883 | ms.Parent=c | |
884 | c.Reflectance=0 | |
885 | Instance.new("BodyGyro").Parent=c | |
886 | c.Parent=m | |
887 | if Char:findFirstChild("Head")~=nil then | |
888 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
889 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
890 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
891 | end | |
892 | f=Instance.new("BodyPosition") | |
893 | f.P=2000 | |
894 | f.D=100 | |
895 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
896 | f.position=c.Position+Vector3.new(0,3,0) | |
897 | f.Parent=c | |
898 | game:GetService("Debris"):AddItem(m,.5+du) | |
899 | c.CanCollide=false | |
900 | m.Parent=workspace | |
901 | c.CanCollide=false | |
902 | wait(1) | |
903 | for l = 0, 9 do | |
904 | text.TextTransparency = text.TextTransparency + 0.1 | |
905 | text.TextStrokeTransparency = text.TextStrokeTransparency + 0.1 | |
906 | wait() | |
907 | end | |
908 | end | |
909 | ||
910 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
911 | local gui = it(GuiType) | |
912 | gui.Parent = parent | |
913 | gui.Text = text | |
914 | gui.BackgroundTransparency = backtrans | |
915 | gui.BackgroundColor3 = backcol | |
916 | gui.SizeConstraint = "RelativeXY" | |
917 | gui.TextXAlignment = "Center" | |
918 | gui.TextYAlignment = "Center" | |
919 | gui.Position = pos | |
920 | gui.Size = size | |
921 | gui.Font = "SourceSans" | |
922 | gui.FontSize = "Size14" | |
923 | gui.TextWrapped = false | |
924 | gui.TextStrokeTransparency = 0 | |
925 | gui.TextColor = BrickColor.new("White") | |
926 | return gui | |
927 | end | |
928 | ---- GUI set | |
929 | local basgui = it("GuiMain") | |
930 | basgui.Parent = Player.PlayerGui | |
931 | basgui.Name = "CooldownsGUI" | |
932 | local basframe = it("Frame") | |
933 | basframe.Parent = basgui | |
934 | basframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
935 | basframe.BackgroundTransparency = 1 | |
936 | basframe.BorderColor3 = Color3.new(17, 17, 17) | |
937 | basframe.Size = UDim2.new(0.2, 0, 0.2, 0) | |
938 | basframe.Position = UDim2.new(0.8, 0, 0.8, 0) | |
939 | local basicgui = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Black").Color, UDim2.new(0.35, 0, -0.125, 0), UDim2.new(0.45, 0, 0.35, 0)) | |
940 | basicgui.ZIndex = 2 | |
941 | basicgui.Font = "Highway" | |
942 | basicgui.BackgroundTransparency = 0.5 | |
943 | basicgui.BorderSizePixel = 0.65 | |
944 | basicgui.TextScaled = true | |
945 | basicgui.Text = "(F)\nVoid Bomb" | |
946 | basicgui.TextSize = 24 | |
947 | local basicgui2 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Black").Color, UDim2.new(-0.15, 0, -0.125, 0), UDim2.new(0.45, 0, 0.35, 0)) | |
948 | basicgui2.ZIndex = 2 | |
949 | basicgui2.Font = "Highway" | |
950 | basicgui2.BackgroundTransparency = 0.5 | |
951 | basicgui2.BorderSizePixel = 0.65 | |
952 | basicgui2.TextScaled = true | |
953 | basicgui2.Text = "(E)\nVoid Push" | |
954 | basicgui2.TextSize = 24 | |
955 | local basicgui3 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Black").Color, UDim2.new(-0.15, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0)) | |
956 | basicgui3.ZIndex = 2 | |
957 | basicgui3.Font = "Highway" | |
958 | basicgui3.BackgroundTransparency = 0.5 | |
959 | basicgui3.BorderSizePixel = 0.65 | |
960 | basicgui3.TextScaled = true | |
961 | basicgui3.Text = "(Q)\nVoid blast" | |
962 | basicgui3.TextSize = 24 | |
963 | local basicgui4 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Black").Color, UDim2.new(0.35, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0)) | |
964 | basicgui4.ZIndex = 2 | |
965 | basicgui4.Font = "Highway" | |
966 | basicgui4.BackgroundTransparency = 0.5 | |
967 | basicgui4.BorderSizePixel = 0.65 | |
968 | basicgui4.TextScaled = true | |
969 | basicgui4.Text = "(R)\nSelf-Void" | |
970 | basicgui4.TextSize = 24 | |
971 | local basicgui5 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Black").Color, UDim2.new(-0.15, 0, -0.475, 0), UDim2.new(0.45, 0, 0.35, 0)) | |
972 | basicgui5.ZIndex = 2 | |
973 | basicgui5.Font = "Highway" | |
974 | basicgui5.BackgroundTransparency = 0.5 | |
975 | basicgui5.BorderSizePixel = 0.65 | |
976 | basicgui5.TextScaled = true | |
977 | basicgui5.Text = "(Z)\nERROR " | |
978 | basicgui5.TextSize = 24 | |
979 | local basicgui6 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really black").Color, UDim2.new(0.35, 0, -0.475, 0), UDim2.new(0.45, 0, 0.35, 0)) | |
980 | basicgui6.ZIndex = 2 | |
981 | basicgui6.Font = "Highway" | |
982 | basicgui6.BackgroundTransparency = 0.5 | |
983 | basicgui6.BorderSizePixel = 0.65 | |
984 | basicgui6.TextScaled = true | |
985 | basicgui6.Text = "(X)\nVoid of destruction" | |
986 | basicgui6.TextSize = 24 | |
987 | ||
988 | local healthg = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.675, 0), UDim2.new(0.95, 0, 0.15, 0)) | |
989 | healthg.ZIndex = 2 | |
990 | healthg.Font = "Highway" | |
991 | healthg.BackgroundTransparency = 0.5 | |
992 | healthg.BorderSizePixel = 0.65 | |
993 | healthg.TextScaled = true | |
994 | healthg.Text = "health" | |
995 | healthg.TextSize = 24 | |
996 | ||
997 | char.Humanoid.Animator.Parent = nil | |
998 | ||
999 | ---------------- set a position | |
1000 | local handle = Instance.new("Part") | |
1001 | handle.Parent = Character | |
1002 | handle.Size = Vector3.new(0.2,0.2,0.2) | |
1003 | handle.Archivable = true | |
1004 | handle.Transparency = 1 | |
1005 | handle.CanCollide = false | |
1006 | handle.BrickColor = BrickColor.new("Black") | |
1007 | handle.Material = "Neon" | |
1008 | local handlmesh = Instance.new("BlockMesh",handle) | |
1009 | handlmesh.Scale = Vector3.new(1,1,1) | |
1010 | local handleweld = Instance.new("Weld") | |
1011 | handleweld.Parent = handle | |
1012 | handleweld.Part0 = rarm | |
1013 | handleweld.Part1 = handle | |
1014 | handleweld.C1 = CFrame.new(0, 1.35, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
1015 | handleweld.Part0 = rarm | |
1016 | ||
1017 | ---- yeee boi here comes entrance of Void | |
1018 | ||
1019 | hum.WalkSpeed = 0 | |
1020 | ||
1021 | local dd = Instance.new("ParticleEmitter",handle) | |
1022 | dd.Texture = "http://www.roblox.com/asset/?id=153700391" | |
1023 | dd.LightEmission = 1 | |
1024 | dd.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1025 | dd.Rate = 50 | |
1026 | dd.Lifetime = NumberRange.new(0.5) | |
1027 | dd.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1028 | dd.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1029 | dd.Speed = NumberRange.new(0) | |
1030 | dd.Rotation = NumberRange.new(-500,500) | |
1031 | dd.VelocitySpread = 90000 | |
1032 | dd.LockedToPart = true | |
1033 | dd.RotSpeed = NumberRange.new(-500,500) | |
1034 | local bon = Instance.new("ParticleEmitter",handle) | |
1035 | bon.Texture = "rbxassetid://153700391" | |
1036 | bon.LightEmission = 0.75 | |
1037 | bon.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1038 | bon.Rate = 0 | |
1039 | bon.Lifetime = NumberRange.new(2.9) | |
1040 | bon.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1041 | bon.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1042 | bon.Speed = NumberRange.new(15) | |
1043 | bon.Rotation = NumberRange.new(-500,500) | |
1044 | bon.VelocitySpread = 90000 | |
1045 | bon.RotSpeed = NumberRange.new(-500,500) | |
1046 | local bon2 = Instance.new("ParticleEmitter",handle) | |
1047 | bon2.Texture = "rbxassetid://153700391" | |
1048 | bon2.LightEmission = 0.75 | |
1049 | bon2.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1050 | bon2.Rate = 0 | |
1051 | bon2.Lifetime = NumberRange.new(2.5) | |
1052 | bon2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,10,0)}) | |
1053 | bon2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1054 | bon2.Speed = NumberRange.new(25) | |
1055 | bon2.Rotation = NumberRange.new(-500,500) | |
1056 | bon2.VelocitySpread = 90000 | |
1057 | bon2.RotSpeed = NumberRange.new(-500,500) | |
1058 | for i = 0,8,0.1 do | |
1059 | swait() | |
1060 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1061 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1062 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-90), math.rad(0), math.rad(100)), 0.3) | |
1063 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-7.5 + 2.5 * math.cos(sine / 32))), 0.3) | |
1064 | end | |
1065 | dd.Rate = 0 | |
1066 | bon.Rate = 99999 | |
1067 | bon2.Rate = 99999 | |
1068 | ||
1069 | local tran = Instance.new("ParticleEmitter",handle) | |
1070 | tran.Texture = "rbxassetid://153700391" | |
1071 | tran.LightEmission = 0.75 | |
1072 | tran.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1073 | tran.Rate = 99999 | |
1074 | tran.Lifetime = NumberRange.new(0.25) | |
1075 | tran.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1076 | tran.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.25,0)}) | |
1077 | tran.Speed = NumberRange.new(0) | |
1078 | tran.Rotation = NumberRange.new(-500,500) | |
1079 | tran.VelocitySpread = 90000 | |
1080 | tran.LockedToPart = true | |
1081 | tran.RotSpeed = NumberRange.new(-500,500) | |
1082 | local tran2 = Instance.new("ParticleEmitter",handle) | |
1083 | tran2.Texture = "http://www.roblox.com/asset/?id=153700391" | |
1084 | tran2.LightEmission = 1 | |
1085 | tran2.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1086 | tran2.Rate = 50 | |
1087 | tran2.Lifetime = NumberRange.new(0.5) | |
1088 | tran2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2.5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1089 | tran2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1090 | tran2.Speed = NumberRange.new(0) | |
1091 | tran2.Rotation = NumberRange.new(-500,500) | |
1092 | tran2.VelocitySpread = 90000 | |
1093 | tran2.LockedToPart = true | |
1094 | tran2.RotSpeed = NumberRange.new(-500,500) | |
1095 | wait(0.5) | |
1096 | bon.Rate = 0 | |
1097 | bon2.Rate = 0 | |
1098 | wait(3.25) | |
1099 | bon:Destroy() | |
1100 | bon:Destroy() | |
1101 | dd:Destroy() | |
1102 | hum.WalkSpeed = 16 | |
1103 | ----------- | |
1104 | ||
1105 | function InfernoComet() | |
1106 | attack = true | |
1107 | chatfunc("Inferno Comet!!") | |
1108 | handleweld.Part0 = rarm | |
1109 | local tra = Instance.new("ParticleEmitter",handle) | |
1110 | tra.Texture = "rbxassetid://153700391" | |
1111 | tra.LightEmission = 0.75 | |
1112 | tra.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1113 | tra.Rate = 99999 | |
1114 | tra.Lifetime = NumberRange.new(0.25) | |
1115 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1116 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.25,0)}) | |
1117 | tra.Speed = NumberRange.new(0) | |
1118 | tra.Rotation = NumberRange.new(-500,500) | |
1119 | tra.VelocitySpread = 90000 | |
1120 | tra.LockedToPart = true | |
1121 | tra.RotSpeed = NumberRange.new(-500,500) | |
1122 | local tra2 = Instance.new("ParticleEmitter",handle) | |
1123 | tra2.Texture = "http://www.roblox.com/asset/?id=153700391" | |
1124 | tra2.LightEmission = 1 | |
1125 | tra2.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1126 | tra2.Rate = 50 | |
1127 | tra2.Lifetime = NumberRange.new(0.5) | |
1128 | tra2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5.5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1129 | tra2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)}) | |
1130 | tra2.Speed = NumberRange.new(0) | |
1131 | tra2.Rotation = NumberRange.new(-500,500) | |
1132 | tra2.VelocitySpread = 90000 | |
1133 | tra2.LockedToPart = true | |
1134 | tra2.RotSpeed = NumberRange.new(-500,500) | |
1135 | for i = 0,4,0.1 do | |
1136 | swait() | |
1137 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1138 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
1139 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(90)), 0.3) | |
1140 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1141 | end | |
1142 | local sa = Instance.new("Sound",handle) | |
1143 | sa.SoundId = "rbxassetid://201858144" | |
1144 | sa.Volume = 1 | |
1145 | sa.Pitch = 1 | |
1146 | sa:Play() | |
1147 | tra.Rate = 0 | |
1148 | tra2.Rate = 0 | |
1149 | local lb = Instance.new("Part") | |
1150 | lb.Parent = char | |
1151 | lb.Material = "Granite" | |
1152 | lb.Color = BrickColor.new("Black").Color | |
1153 | lb.CanCollide = false | |
1154 | lb.Shape = "Ball" | |
1155 | lb.CFrame = handle.CFrame | |
1156 | lb.Anchored = true | |
1157 | lb.Transparency = 1 | |
1158 | lb.Size = vt(1,1,1) | |
1159 | local thing = Instance.new("SpecialMesh",lb) | |
1160 | thing.MeshType = meshtype | |
1161 | local hitted = false | |
1162 | lb.Anchored = false | |
1163 | local trail = Instance.new("ParticleEmitter",lb) | |
1164 | trail.Texture = "rbxassetid://153700391" | |
1165 | trail.LightEmission = 1 | |
1166 | trail.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1167 | trail.Rate = 9999 | |
1168 | trail.Lifetime = NumberRange.new(1.5) | |
1169 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1170 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1171 | trail.Speed = NumberRange.new(0,0) | |
1172 | trail.Rotation = NumberRange.new(-500,500) | |
1173 | trail.RotSpeed = NumberRange.new(-500,500) | |
1174 | local bv = Instance.new("BodyVelocity") | |
1175 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1176 | bv.velocity = mouse.Hit.lookVector *75 | |
1177 | bv.Parent = lb | |
1178 | wait(0.05) | |
1179 | lb.Touched:connect(function(hit) | |
1180 | if hitted == false then | |
1181 | hitted = true | |
1182 | trail.Rate = 0 | |
1183 | lb.Anchored = true | |
1184 | local aa = Instance.new("Part") | |
1185 | local val = 1*3.5 | |
1186 | aa.Parent = lb | |
1187 | local exsound = Instance.new("Sound",aa) | |
1188 | exsound.SoundId = "rbxassetid://165969964" | |
1189 | exsound.Volume = 3.5 | |
1190 | exsound.Pitch = 1 | |
1191 | exsound:Play() | |
1192 | aa.Material = "Granite" | |
1193 | aa.Color = BrickColor.new("Black").Color | |
1194 | aa.CanCollide = false | |
1195 | aa.Shape = "Ball" | |
1196 | aa.CFrame = lb.CFrame | |
1197 | aa.Anchored = true | |
1198 | aa.Transparency = 0 | |
1199 | aa.Size = vt(2,2,2) | |
1200 | local thinger = Instance.new("SpecialMesh",aa) | |
1201 | thinger.MeshType = meshtype | |
1202 | thinger.Scale = vt(16,16,16) | |
1203 | local explosion = Instance.new("Explosion",aa) | |
1204 | explosion.Position = aa.Position | |
1205 | explosion.BlastRadius = 22.5 | |
1206 | explosion.BlastPressure = 100 | |
1207 | local exp = Instance.new("ParticleEmitter",aa) | |
1208 | exp.Texture = "rbxassetid://153700391" | |
1209 | exp.LightEmission = 1 | |
1210 | exp.Color = ColorSequence.new(Color3.new(00/0,0/0)) | |
1211 | exp.Rate = 9000000000 | |
1212 | exp.Lifetime = NumberRange.new(1) | |
1213 | exp.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1214 | exp.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1215 | exp.Speed = NumberRange.new(100) | |
1216 | exp.VelocitySpread = 9000000 | |
1217 | exp.Rotation = NumberRange.new(-500,500) | |
1218 | exp.RotSpeed = NumberRange.new(-500,500) | |
1219 | local expa = Instance.new("ParticleEmitter",aa) | |
1220 | expa.Texture = "rbxassetid://153700391" | |
1221 | expa.LightEmission = 1 | |
1222 | expa.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1223 | expa.Rate = 9000000000 | |
1224 | expa.Lifetime = NumberRange.new(2.75) | |
1225 | expa.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,75,0)}) | |
1226 | expa.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1227 | expa.Speed = NumberRange.new(100) | |
1228 | expa.VelocitySpread = 9000000 | |
1229 | expa.Rotation = NumberRange.new(-500,500) | |
1230 | expa.RotSpeed = NumberRange.new(-500,500) | |
1231 | local exp2 = exp:Clone() | |
1232 | exp2.Parent = aa | |
1233 | local exp3 = exp:Clone() | |
1234 | exp3.Parent = aa | |
1235 | local exp4 = exp:Clone() | |
1236 | exp4.Parent = aa | |
1237 | local exp5 = exp:Clone() | |
1238 | exp5.Parent = aa | |
1239 | local exp6 = exp:Clone() | |
1240 | exp6.Parent = aa | |
1241 | local exp7 = exp:Clone() | |
1242 | exp7.Parent = aa | |
1243 | local expa2 = expa:Clone() | |
1244 | expa2.Parent = aa | |
1245 | local expa3 = expa:Clone() | |
1246 | expa3.Parent = aa | |
1247 | local expa4 = expa:Clone() | |
1248 | expa4.Parent = aa | |
1249 | local expa5 = expa:Clone() | |
1250 | expa5.Parent = aa | |
1251 | local expa6 = expa:Clone() | |
1252 | expa6.Parent = aa | |
1253 | local expa7 = expa:Clone() | |
1254 | expa7.Parent = aa | |
1255 | for i = 0, 1 do | |
1256 | val = val - 0.025*3.5 | |
1257 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1258 | wait() | |
1259 | end | |
1260 | exp.Rate = 0 | |
1261 | exp2.Rate = 0 | |
1262 | exp3.Rate = 0 | |
1263 | exp4.Rate = 0 | |
1264 | exp5.Rate = 0 | |
1265 | exp6.Rate = 0 | |
1266 | exp7.Rate = 0 | |
1267 | for i = 0, 1 do | |
1268 | val = val - 0.025*3.5 | |
1269 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1270 | wait() | |
1271 | end | |
1272 | expa.Rate = 0 | |
1273 | expa2.Rate = 0 | |
1274 | expa3.Rate = 0 | |
1275 | expa4.Rate = 0 | |
1276 | expa5.Rate = 0 | |
1277 | expa6.Rate = 0 | |
1278 | expa7.Rate = 0 | |
1279 | for i = 0, 21 do | |
1280 | val = val - 0.025*3.5 | |
1281 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1282 | wait() | |
1283 | end | |
1284 | for i = 0, 74 do | |
1285 | val = val - 0.0145 | |
1286 | aa.Transparency = aa.Transparency + 0.0145 | |
1287 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1288 | wait() | |
1289 | end | |
1290 | end | |
1291 | end) | |
1292 | attack = false | |
1293 | wait(30) | |
1294 | sa:Destroy() | |
1295 | tra:Destroy() | |
1296 | tra2:Destroy() | |
1297 | lb:Destroy() | |
1298 | end | |
1299 | ||
1300 | function InfernoHell() | |
1301 | attack = true | |
1302 | chatfunc("VOID....") | |
1303 | handleweld.Part0 = rarm | |
1304 | local aura = Instance.new("ParticleEmitter",tors) | |
1305 | aura.Texture = "rbxassetid://153700391" | |
1306 | aura.LightEmission = 1 | |
1307 | aura.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1308 | aura.Rate = 30 | |
1309 | aura.Lifetime = NumberRange.new(0.75) | |
1310 | aura.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,8.5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1311 | aura.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1312 | aura.Speed = NumberRange.new(15) | |
1313 | aura.VelocitySpread = 60 | |
1314 | local aura2 = Instance.new("ParticleEmitter",tors) | |
1315 | aura2.Texture = "rbxassetid://296874871" | |
1316 | aura2.LightEmission = 1 | |
1317 | aura2.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1318 | aura2.Rate = 99999 | |
1319 | aura2.Lifetime = NumberRange.new(1.9) | |
1320 | aura2.Acceleration = vt(0,45,0) | |
1321 | aura2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1322 | aura2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1323 | aura2.Speed = NumberRange.new(-25) | |
1324 | aura2.Rotation = NumberRange.new(-500,500) | |
1325 | aura2.VelocitySpread = 45 | |
1326 | aura2.RotSpeed = NumberRange.new(-500,500) | |
1327 | local auran = Instance.new("ParticleEmitter",tors) | |
1328 | auran.Texture = "rbxassetid://153700391" | |
1329 | auran.LightEmission = 1 | |
1330 | auran.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1331 | auran.Rate = 0 | |
1332 | auran.Lifetime = NumberRange.new(5) | |
1333 | auran.Acceleration = vt(0,-45,0) | |
1334 | auran.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1335 | auran.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1336 | auran.Speed = NumberRange.new(65) | |
1337 | auran.Rotation = NumberRange.new(-500,500) | |
1338 | auran.VelocitySpread = 120 | |
1339 | auran.RotSpeed = NumberRange.new(-500,500) | |
1340 | local sa = Instance.new("Sound",handle) | |
1341 | sa.SoundId = "rbxassetid://950540194" | |
1342 | sa.Volume = 5 | |
1343 | sa.Pitch = 1 | |
1344 | sa:Play() | |
1345 | for i = 0,2,0.1 do | |
1346 | swait() | |
1347 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1348 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1349 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.3) | |
1350 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
1351 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.3) | |
1352 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
1353 | end | |
1354 | for i = 0, 5 do | |
1355 | auran.Rate = 99999 | |
1356 | local lb = Instance.new("Part") | |
1357 | lb.Parent = char | |
1358 | lb.Material = "Granite" | |
1359 | lb.Color = BrickColor.new("Black").Color | |
1360 | lb.CanCollide = false | |
1361 | lb.Size = vt(2,2,2) | |
1362 | lb.CFrame = tors.CFrame | |
1363 | lb.Rotation = vt(0,0,0) | |
1364 | lb.Anchored = true | |
1365 | lb.Transparency = 0 | |
1366 | local thing = Instance.new("SpecialMesh",lb) | |
1367 | thing.MeshType = "FileMesh" | |
1368 | thing.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1369 | thing.Scale = vt(0,15,0) | |
1370 | local chancerot = math.random(1,2) | |
1371 | for z = 0, 4 do | |
1372 | if chancerot == 1 then | |
1373 | lb.CFrame = lb.CFrame*CFrame.Angles(0,0.1,0) | |
1374 | elseif chancerot == 2 then | |
1375 | lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.1,0) | |
1376 | end | |
1377 | lb.Transparency = lb.Transparency + 0.1 | |
1378 | thing.Scale = thing.Scale + vt(15,0,15) | |
1379 | wait() | |
1380 | end | |
1381 | auran.Rate = 0 | |
1382 | for z = 0, 4 do | |
1383 | if chancerot == 1 then | |
1384 | lb.CFrame = lb.CFrame*CFrame.Angles(0,0.1,0) | |
1385 | elseif chancerot == 2 then | |
1386 | lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.1,0) | |
1387 | end | |
1388 | lb.Transparency = lb.Transparency + 0.1 | |
1389 | thing.Scale = thing.Scale + vt(15,0,15) | |
1390 | wait() | |
1391 | end | |
1392 | lb:Destroy() | |
1393 | end | |
1394 | chatfunc("VOID DESTRUCTION!!!") | |
1395 | local sa = Instance.new("Sound",handle) | |
1396 | sa.SoundId = "rbxassetid://290576683" | |
1397 | sa.Volume = 10 | |
1398 | sa.Pitch = 0.75 | |
1399 | sa:Play() | |
1400 | ||
1401 | local sbs = Instance.new("BodyPosition", root) | |
1402 | sbs.P = 3000 | |
1403 | sbs.D = 1000 | |
1404 | sbs.maxForce = Vector3.new(500000, 500000000, 500000) | |
1405 | sbs.position = RootPart.CFrame.p + Vector3.new(0, 1000, 0) | |
1406 | for i = 0,24,0.1 do | |
1407 | swait() | |
1408 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1409 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
1410 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3) | |
1411 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1412 | end | |
1413 | local shur = Instance.new("Part",char) | |
1414 | local gahde = Instance.new("Sound",char) | |
1415 | gahde.SoundId = "rbxassetid://402231772" | |
1416 | gahde.Volume = 5 | |
1417 | gahde.Pitch = 0.6 | |
1418 | gahde:Play() | |
1419 | shur.Transparency = 1 | |
1420 | shur.Material = "Granite" | |
1421 | shur.BrickColor = bc("Black") | |
1422 | shur.Anchored = true | |
1423 | shur.CFrame = tors.CFrame + vt(0,10,0) | |
1424 | shur.Size = vt(2,0.3,2) | |
1425 | shur.CanCollide = false | |
1426 | local dec = Instance.new("Decal",shur) | |
1427 | dec.Texture = "http://www.roblox.com/asset/?id=153700391" | |
1428 | dec.Face = "Top" | |
1429 | local dec2 = dec:Clone() | |
1430 | dec2.Parent = shur | |
1431 | dec2.Face = "Bottom" | |
1432 | local Meshshur = Instance.new("CylinderMesh",shur) | |
1433 | Meshshur.Scale = vt(0,2,0) | |
1434 | for i = 0, 39 do | |
1435 | wait() | |
1436 | Meshshur.Scale = Meshshur.Scale + vt(16,0,16) | |
1437 | end | |
1438 | local sa = Instance.new("Sound",char) | |
1439 | sa.SoundId = "rbxassetid://244578827" | |
1440 | sa.Volume = 2.5 | |
1441 | sa.Pitch = 0.5 | |
1442 | sa:Play() | |
1443 | local lb = Instance.new("Part") | |
1444 | lb.Parent = char | |
1445 | lb.Material = "Granite" | |
1446 | lb.Color = BrickColor.new("Black").Color | |
1447 | lb.CanCollide = false | |
1448 | lb.Shape = "Ball" | |
1449 | lb.CFrame = handle.CFrame | |
1450 | lb.Anchored = true | |
1451 | lb.Transparency = 0 | |
1452 | lb.Size = vt(3,3,3) | |
1453 | lb.CFrame = handle.CFrame | |
1454 | local thing = Instance.new("SpecialMesh",lb) | |
1455 | thing.MeshType = meshtype | |
1456 | thing.Scale = vt(0,0,0) | |
1457 | for i = 0, 89 do | |
1458 | thing.Scale = thing.Scale + vt(3.5,3.5,3.5) | |
1459 | lb.CFrame = lb.CFrame + Vector3.new(0,2.425,0) | |
1460 | wait() | |
1461 | end | |
1462 | wait(1) | |
1463 | for i = 0, 39 do | |
1464 | wait() | |
1465 | Meshshur.Scale = Meshshur.Scale - vt(19,0,19) | |
1466 | end | |
1467 | local sa = Instance.new("Sound",char) | |
1468 | sa.SoundId = "rbxassetid://565538688" | |
1469 | sa.Volume = 2 | |
1470 | sa.Pitch = 0.95 | |
1471 | sa:Play() | |
1472 | wait(0.5) | |
1473 | shur:Destroy() | |
1474 | sbs:Destroy() | |
1475 | local sa = Instance.new("Sound",char) | |
1476 | sa.SoundId = "rbxassetid://138186576" | |
1477 | sa.Volume = 1.5 | |
1478 | sa.Pitch = 0.5 | |
1479 | sa:Play() | |
1480 | local sa = Instance.new("Sound",char) | |
1481 | sa.SoundId = "rbxassetid://146441566" | |
1482 | sa.Volume = 1.5 | |
1483 | sa.Pitch = 0.5 | |
1484 | sa:Play() | |
1485 | aura.Rate = 0 | |
1486 | aura2.Rate = 0 | |
1487 | local hitted = false | |
1488 | lb.Anchored = false | |
1489 | local trail = Instance.new("ParticleEmitter",lb) | |
1490 | trail.Texture = "rbxassetid://153700391" | |
1491 | trail.LightEmission = 1 | |
1492 | trail.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1493 | trail.Rate = 9999 | |
1494 | trail.Lifetime = NumberRange.new(100.5) | |
1495 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,150,0),NumberSequenceKeypoint.new(1,5,0)}) | |
1496 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1497 | trail.Speed = NumberRange.new(100) | |
1498 | trail.VelocitySpread = 90000000 | |
1499 | trail.Rotation = NumberRange.new(-500,500) | |
1500 | trail.RotSpeed = NumberRange.new(-500,500) | |
1501 | local bv = Instance.new("BodyVelocity") | |
1502 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1503 | bv.velocity = mouse.Hit.lookVector *75 | |
1504 | bv.Parent = lb | |
1505 | wait(0.05) | |
1506 | lb.Touched:connect(function(hit) | |
1507 | if hitted == false then | |
1508 | hitted = true | |
1509 | trail.Rate = 0 | |
1510 | lb.Anchored = true | |
1511 | local aa = Instance.new("Part") | |
1512 | for i = 0, 9 do | |
1513 | lb.Transparency = lb.Transparency + 0.01 | |
1514 | local val = 1*3.5 | |
1515 | aa.Parent = lb | |
1516 | local exsound = Instance.new("Sound",aa) | |
1517 | exsound.SoundId = "rbxassetid://442351593" | |
1518 | exsound.Volume = 10 | |
1519 | exsound.Pitch = 0.5 | |
1520 | exsound:Play() | |
1521 | local exsound = Instance.new("Sound",aa) | |
1522 | exsound.SoundId = "rbxassetid://325507105" | |
1523 | exsound.Volume = 10 | |
1524 | exsound.Pitch = 0.75 | |
1525 | exsound:Play() | |
1526 | local exsound = Instance.new("Sound",aa) | |
1527 | exsound.SoundId = "rbxassetid://325507105" | |
1528 | exsound.Volume = 10 | |
1529 | exsound.Pitch = 0.5 | |
1530 | exsound:Play() | |
1531 | local exsound = Instance.new("Sound",aa) | |
1532 | exsound.SoundId = "rbxassetid://325507105" | |
1533 | exsound.Volume = 10 | |
1534 | exsound.Pitch = 0.35 | |
1535 | exsound:Play() | |
1536 | local exsound = Instance.new("Sound",aa) | |
1537 | exsound.SoundId = "rbxassetid://325507105" | |
1538 | exsound.Volume = 10 | |
1539 | exsound.Pitch = 0.25 | |
1540 | exsound:Play() | |
1541 | local exsound = Instance.new("Sound",aa) | |
1542 | exsound.SoundId = "rbxassetid://325507105" | |
1543 | exsound.Volume = 10 | |
1544 | exsound.Pitch = 0.2 | |
1545 | exsound:Play() | |
1546 | aa.Material = "Granite" | |
1547 | aa.Color = BrickColor.new("Black").Color | |
1548 | aa.CanCollide = false | |
1549 | aa.Shape = "Ball" | |
1550 | aa.CFrame = lb.CFrame | |
1551 | aa.Anchored = true | |
1552 | aa.Transparency = 0 | |
1553 | aa.Size = vt(5,5,5) | |
1554 | local thinger = Instance.new("SpecialMesh",aa) | |
1555 | thinger.MeshType = meshtype | |
1556 | thinger.Scale = vt(225,225,225) | |
1557 | local explosion = Instance.new("Explosion",aa) | |
1558 | explosion.Position = aa.Position | |
1559 | explosion.BlastRadius = 5000 | |
1560 | explosion.BlastPressure = 1000 | |
1561 | local exp = Instance.new("ParticleEmitter",aa) | |
1562 | exp.Texture = "rbxassetid://153700391" | |
1563 | exp.LightEmission = 1 | |
1564 | exp.Color = ColorSequence.new(Color3.new(255,255/255,255/255)) | |
1565 | exp.Rate = 90000000000 | |
1566 | exp.Lifetime = NumberRange.new(1) | |
1567 | exp.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,175,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1568 | exp.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1569 | exp.Speed = NumberRange.new(100) | |
1570 | exp.VelocitySpread = 90000000 | |
1571 | exp.Rotation = NumberRange.new(-500,500) | |
1572 | exp.RotSpeed = NumberRange.new(-500,500) | |
1573 | local expa = Instance.new("ParticleEmitter",aa) | |
1574 | expa.Texture = "rbxassetid://153700391" | |
1575 | expa.LightEmission = 1 | |
1576 | expa.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1577 | expa.Rate = 90000000000 | |
1578 | expa.Lifetime = NumberRange.new(2.75) | |
1579 | expa.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,150,0)}) | |
1580 | expa.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1581 | expa.Speed = NumberRange.new(100) | |
1582 | expa.VelocitySpread = 9000000 | |
1583 | expa.Rotation = NumberRange.new(-500,500) | |
1584 | expa.RotSpeed = NumberRange.new(-500,500) | |
1585 | local exp2 = exp:Clone() | |
1586 | exp2.Parent = aa | |
1587 | local exp3 = exp:Clone() | |
1588 | exp3.Parent = aa | |
1589 | local exp4 = exp:Clone() | |
1590 | exp4.Parent = aa | |
1591 | local exp5 = exp:Clone() | |
1592 | exp5.Parent = aa | |
1593 | local exp6 = exp:Clone() | |
1594 | exp6.Parent = aa | |
1595 | local exp7 = exp:Clone() | |
1596 | exp7.Parent = aa | |
1597 | local expa2 = expa:Clone() | |
1598 | expa2.Parent = aa | |
1599 | local expa3 = expa:Clone() | |
1600 | expa3.Parent = aa | |
1601 | local expa4 = expa:Clone() | |
1602 | expa4.Parent = aa | |
1603 | local expa5 = expa:Clone() | |
1604 | expa5.Parent = aa | |
1605 | local expa6 = expa:Clone() | |
1606 | expa6.Parent = aa | |
1607 | local expa7 = expa:Clone() | |
1608 | expa7.Parent = aa | |
1609 | for i = 0, 1 do | |
1610 | val = val - 0.025*3.5 | |
1611 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1612 | wait() | |
1613 | end | |
1614 | exp.Rate = 0 | |
1615 | exp2.Rate = 0 | |
1616 | exp3.Rate = 0 | |
1617 | exp4.Rate = 0 | |
1618 | exp5.Rate = 0 | |
1619 | exp6.Rate = 0 | |
1620 | exp7.Rate = 0 | |
1621 | for i = 0, 1 do | |
1622 | val = val - 0.025*3.5 | |
1623 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1624 | wait() | |
1625 | end | |
1626 | expa.Rate = 0 | |
1627 | expa2.Rate = 0 | |
1628 | expa3.Rate = 0 | |
1629 | expa4.Rate = 0 | |
1630 | expa5.Rate = 0 | |
1631 | expa6.Rate = 0 | |
1632 | expa7.Rate = 0 | |
1633 | for i = 0, 21 do | |
1634 | val = val - 0.025*3.5 | |
1635 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1636 | wait() | |
1637 | end | |
1638 | for i = 0, 4 do | |
1639 | val = val - 0.05 | |
1640 | aa.Transparency = aa.Transparency + 0.065*4.5 | |
1641 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1642 | wait() | |
1643 | end | |
1644 | end | |
1645 | end | |
1646 | end) | |
1647 | for i = 0,2,0.1 do | |
1648 | swait() | |
1649 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1650 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-90)),.3) | |
1651 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3) | |
1652 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1653 | end | |
1654 | attack = false | |
1655 | wait(60) | |
1656 | sa:Destroy() | |
1657 | sa:Destroy() | |
1658 | sa:Destroy() | |
1659 | sa:Destroy() | |
1660 | sa:Destroy() | |
1661 | aura:Destroy() | |
1662 | aura2:Destroy() | |
1663 | lb:Destroy() | |
1664 | end | |
1665 | ||
1666 | ||
1667 | function InfernoMeteor() | |
1668 | attack = true | |
1669 | chatfunc("Void...") | |
1670 | handleweld.Part0 = rarm | |
1671 | local tra = Instance.new("ParticleEmitter",handle) | |
1672 | tra.Texture = "rbxassetid://153700391" | |
1673 | tra.LightEmission = 0.75 | |
1674 | tra.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1675 | tra.Rate = 99999 | |
1676 | tra.Lifetime = NumberRange.new(0.25) | |
1677 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1678 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.25,0)}) | |
1679 | tra.Speed = NumberRange.new(0) | |
1680 | tra.Rotation = NumberRange.new(-500,500) | |
1681 | tra.VelocitySpread = 900000 | |
1682 | tra.LockedToPart = true | |
1683 | tra.RotSpeed = NumberRange.new(-500,500) | |
1684 | local tra2 = Instance.new("ParticleEmitter",handle) | |
1685 | tra2.Texture = "http://www.roblox.com/asset/?id=153700391" | |
1686 | tra2.LightEmission = 1 | |
1687 | tra2.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1688 | tra2.Rate = 50 | |
1689 | tra2.Lifetime = NumberRange.new(0.5) | |
1690 | tra2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1691 | tra2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)}) | |
1692 | tra2.Speed = NumberRange.new(0) | |
1693 | tra2.Rotation = NumberRange.new(-500,500) | |
1694 | tra2.VelocitySpread = 90000 | |
1695 | tra2.LockedToPart = true | |
1696 | tra2.RotSpeed = NumberRange.new(-500,500) | |
1697 | local sa = Instance.new("Sound",handle) | |
1698 | sa.SoundId = "rbxassetid://287299723" | |
1699 | sa.Volume = 1.5 | |
1700 | sa.Pitch = 0.975 | |
1701 | sa:Play() | |
1702 | for i = 0,4,0.1 do | |
1703 | swait() | |
1704 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1705 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
1706 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(90)), 0.3) | |
1707 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1708 | end | |
1709 | chatfunc("VOID NUKE!!!") | |
1710 | local sa = Instance.new("Sound",handle) | |
1711 | sa.SoundId = "rbxassetid://144699494" | |
1712 | sa.Volume = 1.5 | |
1713 | sa.Pitch = 0.85 | |
1714 | sa:Play() | |
1715 | tra.Rate = 0 | |
1716 | tra2.Rate = 0 | |
1717 | local lb = Instance.new("Part") | |
1718 | lb.Parent = char | |
1719 | lb.Material = "Granite" | |
1720 | lb.Color = BrickColor.new("Black").Color | |
1721 | lb.CanCollide = false | |
1722 | lb.Shape = "Ball" | |
1723 | lb.CFrame = handle.CFrame | |
1724 | lb.Anchored = true | |
1725 | lb.Transparency = 1 | |
1726 | lb.Size = vt(6,6,6) | |
1727 | local thing = Instance.new("SpecialMesh",lb) | |
1728 | thing.MeshType = meshtype | |
1729 | local hitted = false | |
1730 | lb.Anchored = false | |
1731 | local trail = Instance.new("ParticleEmitter",lb) | |
1732 | trail.Texture = "rbxassetid://153700391" | |
1733 | trail.LightEmission = 1 | |
1734 | trail.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1735 | trail.Rate = 9999 | |
1736 | trail.Lifetime = NumberRange.new(20.5) | |
1737 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1738 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1739 | trail.Speed = NumberRange.new(0,0) | |
1740 | trail.Rotation = NumberRange.new(-500,500) | |
1741 | trail.RotSpeed = NumberRange.new(-500,500) | |
1742 | local bv = Instance.new("BodyVelocity") | |
1743 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1744 | bv.velocity = mouse.Hit.lookVector *95 | |
1745 | bv.Parent = lb | |
1746 | wait(0.05) | |
1747 | lb.Touched:connect(function(hit) | |
1748 | if hitted == false then | |
1749 | hitted = true | |
1750 | trail.Rate = 0 | |
1751 | lb.Anchored = true | |
1752 | local aa = Instance.new("Part") | |
1753 | local val = 1*8 | |
1754 | aa.Parent = lb | |
1755 | local exsound = Instance.new("Sound",aa) | |
1756 | exsound.SoundId = "rbxassetid://402347142" | |
1757 | exsound.Volume = 10 | |
1758 | exsound.Pitch = 0.945 | |
1759 | exsound:Play() | |
1760 | aa.Material = "Granite" | |
1761 | aa.Color = BrickColor.new("Black").Color | |
1762 | aa.CanCollide = false | |
1763 | aa.Shape = "Ball" | |
1764 | aa.CFrame = lb.CFrame | |
1765 | aa.Anchored = true | |
1766 | aa.Transparency = 0 | |
1767 | aa.Size = vt(2,2,2) | |
1768 | local thinger = Instance.new("SpecialMesh",aa) | |
1769 | thinger.MeshType = meshtype | |
1770 | thinger.Scale = vt(15,15,15) | |
1771 | local explosion = Instance.new("Explosion",aa) | |
1772 | explosion.Position = aa.Position | |
1773 | explosion.BlastRadius = 80 | |
1774 | explosion.BlastPressure = 200 | |
1775 | local exp = Instance.new("ParticleEmitter",aa) | |
1776 | exp.Texture = "rbxassetid://153700391" | |
1777 | exp.LightEmission = 1 | |
1778 | exp.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1779 | exp.Rate = 9000000000 | |
1780 | exp.Lifetime = NumberRange.new(1) | |
1781 | exp.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,100,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1782 | exp.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1783 | exp.Speed = NumberRange.new(200) | |
1784 | exp.VelocitySpread = 90000000 | |
1785 | exp.Rotation = NumberRange.new(-500,500) | |
1786 | exp.RotSpeed = NumberRange.new(-500,500) | |
1787 | local expa = Instance.new("ParticleEmitter",aa) | |
1788 | expa.Texture = "rbxassetid://153700391" | |
1789 | expa.LightEmission = 1 | |
1790 | expa.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1791 | expa.Rate = 9000000000 | |
1792 | expa.Lifetime = NumberRange.new(2.75) | |
1793 | expa.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,125,0)}) | |
1794 | expa.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1795 | expa.Speed = NumberRange.new(200) | |
1796 | expa.VelocitySpread = 9000000 | |
1797 | expa.Rotation = NumberRange.new(-500,500) | |
1798 | expa.RotSpeed = NumberRange.new(-500,500) | |
1799 | local exp2 = exp:Clone() | |
1800 | exp2.Parent = aa | |
1801 | local exp3 = exp:Clone() | |
1802 | exp3.Parent = aa | |
1803 | local exp4 = exp:Clone() | |
1804 | exp4.Parent = aa | |
1805 | local exp5 = exp:Clone() | |
1806 | exp5.Parent = aa | |
1807 | local exp6 = exp:Clone() | |
1808 | exp6.Parent = aa | |
1809 | local exp7 = exp:Clone() | |
1810 | exp7.Parent = aa | |
1811 | local expa2 = expa:Clone() | |
1812 | expa2.Parent = aa | |
1813 | local expa3 = expa:Clone() | |
1814 | expa3.Parent = aa | |
1815 | local expa4 = expa:Clone() | |
1816 | expa4.Parent = aa | |
1817 | local expa5 = expa:Clone() | |
1818 | expa5.Parent = aa | |
1819 | local expa6 = expa:Clone() | |
1820 | expa6.Parent = aa | |
1821 | local expa7 = expa:Clone() | |
1822 | expa7.Parent = aa | |
1823 | for i = 0, 1 do | |
1824 | val = val - 0.025*8 | |
1825 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1826 | wait() | |
1827 | end | |
1828 | exp.Rate = 0 | |
1829 | exp2.Rate = 0 | |
1830 | exp3.Rate = 0 | |
1831 | exp4.Rate = 0 | |
1832 | exp5.Rate = 0 | |
1833 | exp6.Rate = 0 | |
1834 | exp7.Rate = 0 | |
1835 | for i = 0, 1 do | |
1836 | val = val - 0.025*8 | |
1837 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1838 | wait() | |
1839 | end | |
1840 | expa.Rate = 0 | |
1841 | expa2.Rate = 0 | |
1842 | expa3.Rate = 0 | |
1843 | expa4.Rate = 0 | |
1844 | expa5.Rate = 0 | |
1845 | expa6.Rate = 0 | |
1846 | expa7.Rate = 0 | |
1847 | for i = 0, 21 do | |
1848 | val = val - 0.025*8 | |
1849 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1850 | wait() | |
1851 | end | |
1852 | for i = 0, 74 do | |
1853 | val = val - 0.0145 | |
1854 | aa.Transparency = aa.Transparency + 0.0145 | |
1855 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1856 | wait() | |
1857 | end | |
1858 | end | |
1859 | end) | |
1860 | attack = false | |
1861 | wait(30) | |
1862 | sa:Destroy() | |
1863 | tra:Destroy() | |
1864 | tra2:Destroy() | |
1865 | lb:Destroy() | |
1866 | end | |
1867 | ||
1868 | ||
1869 | function InfernoWrath() | |
1870 | attack = true | |
1871 | chatfunc("Self-Void") | |
1872 | for i = 0,4,0.1 do | |
1873 | swait() | |
1874 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1875 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1876 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
1877 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
1878 | end | |
1879 | local ff = Instance.new("ForceField",char) | |
1880 | hum.WalkSpeed = 0 | |
1881 | local lb = Instance.new("Part") | |
1882 | lb.Parent = char | |
1883 | lb.Material = "Granite" | |
1884 | lb.Color = BrickColor.new("Black").Color | |
1885 | lb.CanCollide = false | |
1886 | lb.Shape = "Ball" | |
1887 | lb.CFrame = torso.CFrame | |
1888 | lb.Anchored = true | |
1889 | lb.Transparency = 1 | |
1890 | lb.Size = vt(1,1,1) | |
1891 | local thing = Instance.new("SpecialMesh",lb) | |
1892 | thing.MeshType = meshtype | |
1893 | for i = 0, 4 do | |
1894 | local lbr = Instance.new("Part") | |
1895 | lbr.Parent = char | |
1896 | lbr.Material = "Granite" | |
1897 | lbr.Color = BrickColor.new("Black").Color | |
1898 | lbr.CanCollide = false | |
1899 | lbr.Shape = "Ball" | |
1900 | lbr.CFrame = lb.CFrame | |
1901 | lbr.Anchored = true | |
1902 | lbr.Transparency = 1 | |
1903 | lbr.Size = vt(1,1,1) | |
1904 | local thinga = Instance.new("SpecialMesh",lbr) | |
1905 | thinga.MeshType = meshtype | |
1906 | thinga.Scale = vt(20*6,20*6,20*6) | |
1907 | for z = 0, 19 do | |
1908 | wait(0.025) | |
1909 | lbr.Transparency = lbr.Transparency - 0.05 | |
1910 | thinga.Scale = thinga.Scale - vt(1*6,1*6,1*6) | |
1911 | end | |
1912 | lbr:Destroy() | |
1913 | end | |
1914 | local aa = Instance.new("Part") | |
1915 | local val = 1*7.5 | |
1916 | aa.Parent = lb | |
1917 | local exsound = Instance.new("Sound",handle) | |
1918 | exsound.SoundId = "rbxassetid://402347142" | |
1919 | exsound.Volume = 10 | |
1920 | exsound.Pitch = 1 | |
1921 | exsound:Play() | |
1922 | aa.Material = "Granite" | |
1923 | aa.Color = BrickColor.new("Black").Color | |
1924 | aa.CanCollide = false | |
1925 | aa.Shape = "Ball" | |
1926 | aa.CFrame = lb.CFrame | |
1927 | aa.Anchored = true | |
1928 | aa.Transparency = 0 | |
1929 | aa.Size = vt(1,1,1) | |
1930 | local thinger = Instance.new("SpecialMesh",aa) | |
1931 | thinger.MeshType = meshtype | |
1932 | thinger.Scale = vt(15*1.5,15*1.5,15*1.5) | |
1933 | local explosion = Instance.new("Explosion",aa) | |
1934 | explosion.Position = aa.Position | |
1935 | explosion.BlastRadius = 50 | |
1936 | explosion.BlastPressure = 100 | |
1937 | local exp = Instance.new("ParticleEmitter",aa) | |
1938 | exp.Texture = "rbxassetid://153700391" | |
1939 | exp.LightEmission = 1 | |
1940 | exp.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1941 | exp.Rate = 9000000000 | |
1942 | exp.Lifetime = NumberRange.new(1) | |
1943 | exp.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1944 | exp.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1945 | exp.Speed = NumberRange.new(115) | |
1946 | exp.VelocitySpread = 9000000 | |
1947 | exp.Rotation = NumberRange.new(-500,500) | |
1948 | exp.RotSpeed = NumberRange.new(-500,500) | |
1949 | local expa = Instance.new("ParticleEmitter",aa) | |
1950 | expa.Texture = "rbxassetid://153700391" | |
1951 | expa.LightEmission = 1 | |
1952 | expa.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
1953 | expa.Rate = 9000000000 | |
1954 | expa.Lifetime = NumberRange.new(2.75) | |
1955 | expa.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,75,0)}) | |
1956 | expa.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1957 | expa.Speed = NumberRange.new(115) | |
1958 | expa.VelocitySpread = 9000000 | |
1959 | expa.Rotation = NumberRange.new(-500,500) | |
1960 | expa.RotSpeed = NumberRange.new(-500,500) | |
1961 | local exp2 = exp:Clone() | |
1962 | exp2.Parent = aa | |
1963 | local exp3 = exp:Clone() | |
1964 | exp3.Parent = aa | |
1965 | local exp4 = exp:Clone() | |
1966 | exp4.Parent = aa | |
1967 | local exp5 = exp:Clone() | |
1968 | exp5.Parent = aa | |
1969 | local exp6 = exp:Clone() | |
1970 | exp6.Parent = aa | |
1971 | local exp7 = exp:Clone() | |
1972 | exp7.Parent = aa | |
1973 | local expa2 = expa:Clone() | |
1974 | expa2.Parent = aa | |
1975 | local expa3 = expa:Clone() | |
1976 | expa3.Parent = aa | |
1977 | local expa4 = expa:Clone() | |
1978 | expa4.Parent = aa | |
1979 | local expa5 = expa:Clone() | |
1980 | expa5.Parent = aa | |
1981 | local expa6 = expa:Clone() | |
1982 | expa6.Parent = aa | |
1983 | local expa7 = expa:Clone() | |
1984 | expa7.Parent = aa | |
1985 | for i = 0, 1 do | |
1986 | val = val - 0.025*7.5 | |
1987 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
1988 | wait() | |
1989 | end | |
1990 | exp.Rate = 0 | |
1991 | exp2.Rate = 0 | |
1992 | exp3.Rate = 0 | |
1993 | exp4.Rate = 0 | |
1994 | exp5.Rate = 0 | |
1995 | exp6.Rate = 0 | |
1996 | exp7.Rate = 0 | |
1997 | for i = 0, 1 do | |
1998 | val = val - 0.025*7.5 | |
1999 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
2000 | wait() | |
2001 | end | |
2002 | ff:Destroy() | |
2003 | hum.WalkSpeed = 16 | |
2004 | attack = false | |
2005 | expa.Rate = 0 | |
2006 | expa2.Rate = 0 | |
2007 | expa3.Rate = 0 | |
2008 | expa4.Rate = 0 | |
2009 | expa5.Rate = 0 | |
2010 | expa6.Rate = 0 | |
2011 | expa7.Rate = 0 | |
2012 | for i = 0, 21 do | |
2013 | val = val - 0.025*7.5 | |
2014 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
2015 | wait() | |
2016 | end | |
2017 | for i = 0, 74 do | |
2018 | val = val - 0.0145 | |
2019 | aa.Transparency = aa.Transparency + 0.0145 | |
2020 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
2021 | wait() | |
2022 | end | |
2023 | wait(5) | |
2024 | lb:Destroy() | |
2025 | end | |
2026 | ||
2027 | function InfernoDemise() | |
2028 | attack = true | |
2029 | chatfunc("Void darkness..") | |
2030 | local tra = Instance.new("ParticleEmitter",handle) | |
2031 | tra.Texture = "rbxassetid://153700391" | |
2032 | tra.LightEmission = 0.75 | |
2033 | tra.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
2034 | tra.Rate = 99999 | |
2035 | tra.Lifetime = NumberRange.new(0.25) | |
2036 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2037 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.25,0)}) | |
2038 | tra.Speed = NumberRange.new(0) | |
2039 | tra.Rotation = NumberRange.new(-500,500) | |
2040 | tra.VelocitySpread = 90000 | |
2041 | tra.LockedToPart = true | |
2042 | tra.RotSpeed = NumberRange.new(-500,500) | |
2043 | local tra2 = Instance.new("ParticleEmitter",handle) | |
2044 | tra2.Texture = "http://www.roblox.com/asset/?id=745304849" | |
2045 | tra2.LightEmission = 1 | |
2046 | tra2.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
2047 | tra2.Rate = 50 | |
2048 | tra2.Lifetime = NumberRange.new(0.5) | |
2049 | tra2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5.5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2050 | tra2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.5,0)}) | |
2051 | tra2.Speed = NumberRange.new(0) | |
2052 | tra2.Rotation = NumberRange.new(-500,500) | |
2053 | tra2.VelocitySpread = 90000 | |
2054 | tra2.LockedToPart = true | |
2055 | tra2.RotSpeed = NumberRange.new(-500,500) | |
2056 | for i = 0,1,0.1 do | |
2057 | swait() | |
2058 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
2059 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
2060 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3) | |
2061 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
2062 | end | |
2063 | tra.Rate = 0 | |
2064 | tra2.Rate = 0 | |
2065 | local lb = Instance.new("Part") | |
2066 | lb.Parent = char | |
2067 | lb.Material = "Granite" | |
2068 | lb.Color = BrickColor.new("Black").Color | |
2069 | lb.CanCollide = false | |
2070 | lb.Shape = "Ball" | |
2071 | lb.CFrame = mouse.Hit | |
2072 | lb.Anchored = true | |
2073 | lb.Transparency = 1 | |
2074 | lb.Size = vt(1,1,1) | |
2075 | local thing = Instance.new("SpecialMesh",lb) | |
2076 | thing.MeshType = meshtype | |
2077 | for i = 0, 4 do | |
2078 | local lbr = Instance.new("Part") | |
2079 | lbr.Parent = char | |
2080 | lbr.Material = "Granite" | |
2081 | lbr.Color = BrickColor.new("Black").Color | |
2082 | lbr.CanCollide = false | |
2083 | lbr.Shape = "Ball" | |
2084 | lbr.CFrame = lb.CFrame | |
2085 | lbr.Anchored = true | |
2086 | lbr.Transparency = 1 | |
2087 | lbr.Size = vt(1,1,1) | |
2088 | local thinga = Instance.new("SpecialMesh",lbr) | |
2089 | thinga.MeshType = meshtype | |
2090 | thinga.Scale = vt(20*4.5,20*4.5,20*4.5) | |
2091 | for z = 0, 19 do | |
2092 | wait(0.025) | |
2093 | lbr.Transparency = lbr.Transparency - 0.05 | |
2094 | thinga.Scale = thinga.Scale - vt(1*4.5,1*4.5,1*4.5) | |
2095 | end | |
2096 | lbr:Destroy() | |
2097 | end | |
2098 | local aa = Instance.new("Part") | |
2099 | local val = 1*6.25 | |
2100 | aa.Parent = lb | |
2101 | local exsound = Instance.new("Sound",aa) | |
2102 | exsound.SoundId = "rbxassetid://402347142" | |
2103 | exsound.Volume = 4.5 | |
2104 | exsound.Pitch = 1 | |
2105 | exsound:Play() | |
2106 | aa.Material = "Granite" | |
2107 | aa.Color = BrickColor.new("Black").Color | |
2108 | aa.CanCollide = false | |
2109 | aa.Shape = "Ball" | |
2110 | aa.CFrame = lb.CFrame | |
2111 | aa.Anchored = true | |
2112 | aa.Transparency = 0 | |
2113 | aa.Size = vt(2,2,2) | |
2114 | local thinger = Instance.new("SpecialMesh",aa) | |
2115 | thinger.MeshType = meshtype | |
2116 | thinger.Scale = vt(15*1.15,15*1.15,15*1.15) | |
2117 | local explosion = Instance.new("Explosion",aa) | |
2118 | explosion.Position = aa.Position | |
2119 | explosion.BlastRadius = 35 | |
2120 | explosion.BlastPressure = 100 | |
2121 | local exp = Instance.new("ParticleEmitter",aa) | |
2122 | exp.Texture = "rbxassetid://153700391" | |
2123 | exp.LightEmission = 1 | |
2124 | exp.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
2125 | exp.Rate = 9000000000 | |
2126 | exp.Lifetime = NumberRange.new(1) | |
2127 | exp.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2128 | exp.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2129 | exp.Speed = NumberRange.new(105) | |
2130 | exp.VelocitySpread = 9000000 | |
2131 | exp.Rotation = NumberRange.new(-500,500) | |
2132 | exp.RotSpeed = NumberRange.new(-500,500) | |
2133 | local expa = Instance.new("ParticleEmitter",aa) | |
2134 | expa.Texture = "rbxassetid://153700391" | |
2135 | expa.LightEmission = 1 | |
2136 | expa.Color = ColorSequence.new(Color3.new(0,0/0,0/0)) | |
2137 | expa.Rate = 9000000000 | |
2138 | expa.Lifetime = NumberRange.new(2.75) | |
2139 | expa.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,75,0)}) | |
2140 | expa.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2141 | expa.Speed = NumberRange.new(105) | |
2142 | expa.VelocitySpread = 9000000 | |
2143 | expa.Rotation = NumberRange.new(-500,500) | |
2144 | expa.RotSpeed = NumberRange.new(-500,500) | |
2145 | local exp2 = exp:Clone() | |
2146 | exp2.Parent = aa | |
2147 | local exp3 = exp:Clone() | |
2148 | exp3.Parent = aa | |
2149 | local exp4 = exp:Clone() | |
2150 | exp4.Parent = aa | |
2151 | local exp5 = exp:Clone() | |
2152 | exp5.Parent = aa | |
2153 | local exp6 = exp:Clone() | |
2154 | exp6.Parent = aa | |
2155 | local exp7 = exp:Clone() | |
2156 | exp7.Parent = aa | |
2157 | local expa2 = expa:Clone() | |
2158 | expa2.Parent = aa | |
2159 | local expa3 = expa:Clone() | |
2160 | expa3.Parent = aa | |
2161 | local expa4 = expa:Clone() | |
2162 | expa4.Parent = aa | |
2163 | local expa5 = expa:Clone() | |
2164 | expa5.Parent = aa | |
2165 | local expa6 = expa:Clone() | |
2166 | expa6.Parent = aa | |
2167 | local expa7 = expa:Clone() | |
2168 | expa7.Parent = aa | |
2169 | for i = 0, 1 do | |
2170 | val = val - 0.025*6.25 | |
2171 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
2172 | wait() | |
2173 | end | |
2174 | exp.Rate = 0 | |
2175 | exp2.Rate = 0 | |
2176 | exp3.Rate = 0 | |
2177 | exp4.Rate = 0 | |
2178 | exp5.Rate = 0 | |
2179 | exp6.Rate = 0 | |
2180 | exp7.Rate = 0 | |
2181 | for i = 0, 1 do | |
2182 | val = val - 0.025*6.25 | |
2183 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
2184 | wait() | |
2185 | end | |
2186 | attack = false | |
2187 | expa.Rate = 0 | |
2188 | expa2.Rate = 0 | |
2189 | expa3.Rate = 0 | |
2190 | expa4.Rate = 0 | |
2191 | expa5.Rate = 0 | |
2192 | expa6.Rate = 0 | |
2193 | expa7.Rate = 0 | |
2194 | for i = 0, 21 do | |
2195 | val = val - 0.025*6.25 | |
2196 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
2197 | wait() | |
2198 | end | |
2199 | for i = 0, 74 do | |
2200 | val = val - 0.0145 | |
2201 | aa.Transparency = aa.Transparency + 0.0145 | |
2202 | thinger.Scale = thinger.Scale + vt(val,val,val) | |
2203 | wait() | |
2204 | end | |
2205 | wait(5) | |
2206 | lb:Destroy() | |
2207 | tra:Destroy() | |
2208 | tra2:Destroy() | |
2209 | end | |
2210 | ||
2211 | mouse.KeyDown:connect(function(key) | |
2212 | if key == "q" and attack == false then | |
2213 | InfernoComet() | |
2214 | end | |
2215 | if key == "e" and attack == false then | |
2216 | InfernoDemise() | |
2217 | end | |
2218 | if key == "r" and attack == false then | |
2219 | InfernoWrath() | |
2220 | end | |
2221 | if key == "f" and attack == false then | |
2222 | InfernoMeteor() | |
2223 | end | |
2224 | if key == "x" and attack == false then | |
2225 | InfernoHell() | |
2226 | end | |
2227 | end) | |
2228 | ||
2229 | game:GetService("RunService").Stepped:connect(function() | |
2230 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2231 | velocity = RootPart.Velocity.y | |
2232 | sine = sine + change | |
2233 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
2234 | if equipped == true or equipped == false then | |
2235 | healthg.Text = math.floor(hum.Health).. "/" ..math.floor(hum.MaxHealth) | |
2236 | if RootPart.Velocity.y > 1 and hit == nil then | |
2237 | Anim = "Jump" | |
2238 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2239 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2240 | if attack == false then | |
2241 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
2242 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3) | |
2243 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.3) | |
2244 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)), 0.3) | |
2245 | end | |
2246 | else | |
2247 | if RootPart.Velocity.y < -1 and hit == nil then | |
2248 | Anim = "Fall" | |
2249 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2250 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2251 | if attack == false then | |
2252 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
2253 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3) | |
2254 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3) | |
2255 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3) | |
2256 | end | |
2257 | else | |
2258 | if Torsovelocity < 1 and hit ~= nil then | |
2259 | Anim = "Idle" | |
2260 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(-10),math.rad(0)),.3) | |
2261 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(10),math.rad(0)),.3) | |
2262 | if attack == false then | |
2263 | change = 1 | |
2264 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))* angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
2265 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
2266 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.35, -0.25) * angles(math.rad(20 + 1.5 * math.cos(sine / 32)), math.rad(-30), math.rad(-90)), 0.3) | |
2267 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 + 1.5 * math.cos(sine / 32))), 0.3) | |
2268 | end | |
2269 | else | |
2270 | if Torsovelocity > 2 and hit ~= nil then | |
2271 | Anim = "Walk" | |
2272 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(-25),math.rad(0 + 50 * math.cos(sine / 6))),.3) | |
2273 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(-25),math.rad(0 + 50 * math.cos(sine / 6))),.3) | |
2274 | if attack == false then | |
2275 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))* angles(math.rad(15),math.rad(0),math.rad(25)),.3) | |
2276 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-25)),.3) | |
2277 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.35, -0.5) * angles(math.rad(20), math.rad(-30), math.rad(-90)), 0.3) | |
2278 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 5)), math.rad(0), math.rad(-10)), 0.3) | |
2279 | end | |
2280 | end | |
2281 | end | |
2282 | end | |
2283 | end | |
2284 | end | |
2285 | end) |