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 | --God Slayer | |
143 | ||
144 | ||
145 | ||
146 | ||
147 | --[[wait(0.1) | |
148 | ------------------------------- | |
149 | local p=game:service("Players").LocalPlayer | |
150 | if p.Name=="Reruderu" then | |
151 | p:Kick("go away, skid who uses crappy decompilers,v3rmie skid.") | |
152 | elseif p.Name=="Rerumu" then | |
153 | p:Kick("no thanks, skid who uses crappy decompilers that they didnt make.also being an pathetic v3rmie kid") | |
154 | end]] | |
155 | local p=game:service("Players").LocalPlayer | |
156 | local char=p.Character | |
157 | script.Parent=char | |
158 | local torso=char.Torso | |
159 | local hed=char.Head | |
160 | local larm=char:FindFirstChild("Left Arm") | |
161 | local rarm=char:FindFirstChild("Right Arm") | |
162 | local lleg=char:FindFirstChild("Left Leg") | |
163 | local rleg=char:FindFirstChild("Right Leg") | |
164 | local hum=char.Humanoid | |
165 | local cam=workspace.CurrentCamera | |
166 | local root=char.HumanoidRootPart | |
167 | local mouse=p:GetMouse() | |
168 | local hb=game:service("RunService").Heartbeat | |
169 | local rs=game:service("RunService").Stepped | |
170 | hum.MaxHealth=math.huge | |
171 | hum.Health=hum.MaxHealth | |
172 | local pgui=Instance.new("ScreenGui",p.PlayerGui) | |
173 | random={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
174 | local run = 30 | |
175 | local normal = 16 | |
176 | local color = "Really black" | |
177 | local color2 = "Really red" | |
178 | local righteyebrickcolor = "Toothpaste" | |
179 | local NumCol = 255,0,0 | |
180 | local GodSlayer = true | |
181 | local Full = false | |
182 | hum.WalkSpeed = 20 | |
183 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
184 | ------------------- | |
185 | local drinks="10722059" | |
186 | local m="41707332" | |
187 | local tx="41708701" | |
188 | local ragesong="286055900" | |
189 | local breaks="368270172" | |
190 | local scream="397952612" | |
191 | ------------------- | |
192 | ||
193 | function swait(num) | |
194 | if num==0 or num==nil then | |
195 | game:service'RunService'.Stepped:wait(0) | |
196 | else | |
197 | for i=0,num do | |
198 | game:service'RunService'.Stepped:wait(0) | |
199 | end | |
200 | end | |
201 | end | |
202 | ||
203 | function chatfunc(text) | |
204 | local chat = coroutine.wrap(function() | |
205 | if char:FindFirstChild("TalkingBillBoard")~= nil then | |
206 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
207 | end | |
208 | local naeeym2 = Instance.new("BillboardGui",char) | |
209 | naeeym2.Size = UDim2.new(0,100,0,40) | |
210 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
211 | naeeym2.Adornee = char.Head | |
212 | naeeym2.Name = "TalkingBillBoard" | |
213 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
214 | tecks2.BackgroundTransparency = 1 | |
215 | tecks2.BorderSizePixel = 0 | |
216 | tecks2.Text = "" | |
217 | tecks2.Font = "Fantasy" | |
218 | tecks2.TextSize = 30 | |
219 | tecks2.TextStrokeTransparency = 0 | |
220 | tecks2.TextColor3 = Color3.new(.6,0,0) | |
221 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
222 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
223 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
224 | tecks3.BackgroundTransparency = 1 | |
225 | tecks3.BorderSizePixel = 0 | |
226 | tecks3.Text = "" | |
227 | tecks3.Font = "Fantasy" | |
228 | tecks3.TextSize = 30 | |
229 | tecks3.TextStrokeTransparency = 0 | |
230 | tecks3.TextColor3 = Color3.new(255,0,0) | |
231 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
232 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
233 | for i = 1,string.len(text),1 do | |
234 | tecks2.Text = string.sub(text,1,i) | |
235 | tecks3.Text = string.sub(text,1,i) | |
236 | wait(0.01) | |
237 | end | |
238 | wait(2) | |
239 | for i = 1, 50 do | |
240 | swait() | |
241 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
242 | tecks2.Rotation = tecks2.Rotation - .8 | |
243 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
244 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
245 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
246 | tecks3.Rotation = tecks2.Rotation + .8 | |
247 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
248 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
249 | end | |
250 | naeeym2:Destroy() | |
251 | end) | |
252 | chat() | |
253 | end | |
254 | function onChatted(msg) | |
255 | chatfunc(msg) | |
256 | end | |
257 | p.Chatted:connect(onChatted) | |
258 | coroutine.resume(coroutine.create(function() | |
259 | wait(2) | |
260 | chatfunc("await an exaggerated entry before attacking me") | |
261 | end)) | |
262 | ||
263 | ||
264 | local s0=Instance.new("Sound",char) | |
265 | s0.SoundId="rbxassetid://"..ragesong | |
266 | s0.Volume=1999 | |
267 | s0.Pitch=1 | |
268 | s0.Looped=true | |
269 | ||
270 | ||
271 | local s02=Instance.new("Sound",char) | |
272 | s02.SoundId="rbxassetid://978788235" | |
273 | s02.Volume=1999 | |
274 | s02.Pitch=1 | |
275 | s02.Looped=false | |
276 | s02:Play() | |
277 | ||
278 | function Sound(ID,Parent,Vol,Pitch,Loop) | |
279 | local S0 = Instance.new("Sound",Parent) | |
280 | S0.SoundId = ID | |
281 | S0.Volume = Vol | |
282 | S0.Looped = Loop | |
283 | S0.Pitch = Pitch | |
284 | wait(.1) | |
285 | S0:Play() | |
286 | end | |
287 | function weld(a, b, acf) | |
288 | local w = Instance.new("Weld", a) | |
289 | w.Part0 = a | |
290 | w.Part1 = b | |
291 | w.C0 = acf | |
292 | end | |
293 | ||
294 | ||
295 | wait(9) | |
296 | char.Head.face:Destroy() | |
297 | local reye = Instance.new("Part", char) | |
298 | reye.CanCollide = false | |
299 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
300 | reye.Material = "Neon" | |
301 | reye.Size = Vector3.new(.15,.15,.15) | |
302 | weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
303 | m1 = Instance.new("SpecialMesh", reye) | |
304 | m1.MeshType = "Sphere" | |
305 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
306 | reye.Locked = true | |
307 | reye.Name = "re" | |
308 | ||
309 | local leye = Instance.new("Part", char) | |
310 | leye.CanCollide = false | |
311 | leye.BrickColor = BrickColor.new(righteyebrickcolor) | |
312 | leye.Material = "Neon" | |
313 | leye.Size = Vector3.new(.15,.15,.15) | |
314 | weld(leye, char.Head, CFrame.new(-0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
315 | local m = Instance.new("SpecialMesh", leye) | |
316 | m.MeshType = "Sphere" | |
317 | m.Scale = Vector3.new(0.9,0.9,0.9) | |
318 | leye.Locked = true | |
319 | leye.Name = "le" | |
320 | ||
321 | coroutine.resume(coroutine.create(function(Part,Weld) | |
322 | while Part.Parent~=nil do | |
323 | wait(2) | |
324 | for i=0,1,0.2 do | |
325 | wait() | |
326 | m.Scale = Vector3.new(.9,.9-.8*i,.5) | |
327 | end | |
328 | for i=0,1,0.2 do | |
329 | wait() | |
330 | m.Scale = Vector3.new(.9,.9+.8*i,.5) | |
331 | end | |
332 | end | |
333 | end),leye,weld) | |
334 | ||
335 | coroutine.resume(coroutine.create(function(Part,Weld) | |
336 | while Part.Parent~=nil do | |
337 | wait(2) | |
338 | for z=0,1,0.2 do | |
339 | wait() | |
340 | m1.Scale = Vector3.new(.9,.9-.8*z,.5) | |
341 | end | |
342 | for z=0,1,0.2 do | |
343 | wait() | |
344 | m1.Scale = Vector3.new(.9,.9+.8*z,.5) | |
345 | end | |
346 | end | |
347 | end),reye,weld) | |
348 | ||
349 | ||
350 | ||
351 | function fnt(pos,dist,splr) | |
352 | if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end | |
353 | local list = {} | |
354 | for i,v in pairs(workspace:GetChildren())do | |
355 | if v:IsA("Model")then | |
356 | if v:findFirstChild("Torso")then | |
357 | if v ~= char then | |
358 | if(v.Torso.Position -pos).magnitude <= dist then | |
359 | table.insert(list,v) | |
360 | end | |
361 | end | |
362 | end | |
363 | end | |
364 | end | |
365 | return list | |
366 | end | |
367 | function fnp(pos,dist,splr) | |
368 | if splr then return(splr.Torso.CFrame.p -pos).magnitude < dist end | |
369 | local list = {} | |
370 | for i,v in pairs(workspace:GetChildren())do | |
371 | if v:IsA("Part")then | |
372 | if v ~= char and v.Name~="Car" and v~=torso and v.Name~="Base" and v.Name~="Baseplate" then | |
373 | if(v.Position -pos).magnitude <= dist then | |
374 | table.insert(list,v) | |
375 | end | |
376 | end | |
377 | end | |
378 | end | |
379 | return list | |
380 | end | |
381 | fw = function(wp0, wp1, wc0x, wc0y, wc0z) -- fast weld | |
382 | local wld = Instance.new("Weld", wp1) | |
383 | wld.Part0 = wp0 | |
384 | wld.Part1 = wp1 | |
385 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
386 | end | |
387 | local trans=false | |
388 | ------------------------------------ | |
389 | ------------------------------------ | |
390 | anim="idle" | |
391 | local sine=0 | |
392 | local add=0 | |
393 | local value=0 | |
394 | local ffing=false | |
395 | local msgs=0 | |
396 | attack=false | |
397 | NoAnims=false | |
398 | ----preparing character---- | |
399 | ||
400 | ||
401 | ||
402 | ||
403 | ||
404 | ||
405 | function NoOutline(Part) | |
406 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
407 | end | |
408 | function lerp(a, b, t) -- Linear interpolation | |
409 | return a + (b - a)*t | |
410 | end | |
411 | ||
412 | function slerp(a, b, t) --Spherical interpolation | |
413 | dot = a:Dot(b) | |
414 | if dot > 0.99999 or dot < -0.99999 then | |
415 | return t <= 0.5 and a or b | |
416 | else | |
417 | r = math.acos(dot) | |
418 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
419 | end | |
420 | end | |
421 | ||
422 | function matrixInterpolate(a, b, t) | |
423 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
424 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
425 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
426 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
427 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
428 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
429 | local t = v1:Dot(v2) | |
430 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
431 | return CFrame.new() | |
432 | end | |
433 | return CFrame.new( | |
434 | v0.x, v0.y, v0.z, | |
435 | v1.x, v1.y, v1.z, | |
436 | v2.x, v2.y, v2.z, | |
437 | v3.x, v3.y, v3.z) | |
438 | end | |
439 | ---------------------------------------------------- | |
440 | function genWeld(a,b) | |
441 | local w = Instance.new("Weld",a) | |
442 | w.Part0 = a | |
443 | w.Part1 = b | |
444 | return w | |
445 | end | |
446 | function weld(a, b) | |
447 | local weld = Instance.new("Weld") | |
448 | weld.Name = "W" | |
449 | weld.Part0 = a | |
450 | weld.Part1 = b | |
451 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
452 | weld.Parent = a | |
453 | return weld; | |
454 | end | |
455 | ---------------------------------------------------- | |
456 | function Lerp(c1,c2,al) | |
457 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
458 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
459 | for i,v in pairs(com1) do | |
460 | com1[i] = v+(com2[i]-v)*al | |
461 | end | |
462 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
463 | end | |
464 | ---------------------------------------------------- | |
465 | ||
466 | ||
467 | ||
468 | fw(torso, larm, -1.5, 0.5, 0) | |
469 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
470 | fw(torso, rarm, 1.5, 0.5, 0) | |
471 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
472 | fw(torso, hed, 0, 1.5, 0) | |
473 | fw(torso, lleg, -0.5, -1, 0) | |
474 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
475 | fw(torso, rleg, 0.5, -1, 0) | |
476 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
477 | fw(root, torso, 0, -1, 0) | |
478 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
479 | --------------rot------------ | |
480 | local r=0 | |
481 | local radd=0.04 | |
482 | coroutine.wrap(function() | |
483 | while rs:wait() do | |
484 | r=r+radd | |
485 | end | |
486 | end)() | |
487 | attack = false | |
488 | ----------------------------- | |
489 | ||
490 | ----------------------------- | |
491 | ||
492 | ||
493 | if trans == false then | |
494 | attack=true | |
495 | NoAnims=true | |
496 | hum.WalkSpeed=0 | |
497 | ||
498 | local fx = Instance.new("Sound",char) | |
499 | fx.SoundId="rbxassetid://"..drinks | |
500 | fx.Volume=0 | |
501 | fx.Pitch=1 | |
502 | fx:Play() | |
503 | ||
504 | ||
505 | ||
506 | ||
507 | fx.SoundId="rbxassetid://"..breaks | |
508 | fx.Volume=10 | |
509 | fx:Play() | |
510 | ||
511 | ||
512 | ||
513 | ||
514 | print("drinked") | |
515 | ||
516 | ||
517 | ||
518 | coroutine.wrap(function() | |
519 | while trans == false do | |
520 | wait(0.2) | |
521 | local ef = Instance.new("Part",char) | |
522 | ef.Name="pulse" | |
523 | ef.BrickColor=BrickColor.new(color2) | |
524 | ef.Material="Neon" | |
525 | ef.Shape="Ball" | |
526 | ef.CanCollide=false | |
527 | ef.Anchored=true | |
528 | ef.Size=Vector3.new(1,1,1) | |
529 | ef.CFrame=root.CFrame | |
530 | ||
531 | local ef2 = ef:Clone() | |
532 | ef2.Parent=ef | |
533 | ef2.BrickColor=BrickColor.new(color) | |
534 | ef2.Name="call" | |
535 | ef2.Size=Vector3.new(1,1,1) | |
536 | local em=Instance.new("SpecialMesh",ef2) | |
537 | em.MeshId="rbxassetid://3270017" | |
538 | em.Scale=Vector3.new(1,1,0.0001) | |
539 | ||
540 | local ef3 = ef2:Clone() | |
541 | ef3.Parent=ef | |
542 | ef3.Name="aura" | |
543 | ef3.CFrame=root.CFrame | |
544 | local em2=ef3.Mesh | |
545 | em2.MeshId="rbxassetid://20329976" | |
546 | em2.Scale=Vector3.new(1,0.4,1) | |
547 | ||
548 | local ef4 = ef3:Clone() | |
549 | ef4.Parent=ef | |
550 | local em3=ef4.Mesh | |
551 | ||
552 | local ef5 = ef2:Clone() | |
553 | ef5.Parent=ef | |
554 | local em4=ef5.Mesh | |
555 | ||
556 | coroutine.wrap(function() | |
557 | for i = 1, 60 do | |
558 | rs:wait() | |
559 | ef.Size=ef.Size+Vector3.new(1,1,1) | |
560 | ef.Transparency=ef.Transparency+1/60 | |
561 | ef2.Size=ef2.Size+Vector3.new(1,0.3,1) | |
562 | ef2.Transparency=ef2.Transparency+1/60 | |
563 | em.Scale=em.Scale+Vector3.new(1,1,0) | |
564 | ef2.CFrame=torso.CFrame*CFrame.Angles(r,r,r) | |
565 | ef3.Size=ef3.Size+Vector3.new(1,0.3,1) | |
566 | ef3.Transparency=ef3.Transparency+1/60 | |
567 | ef3.CFrame=root.CFrame*CFrame.Angles(0,r,0) | |
568 | em2.Scale=em2.Scale+Vector3.new(1,0.3,1) | |
569 | ef4.Size=ef4.Size+Vector3.new(1,0.3,1) | |
570 | ef4.Transparency=ef4.Transparency+1/60 | |
571 | ef4.CFrame=root.CFrame*CFrame.Angles(0,-r,0) | |
572 | em3.Scale=em3.Scale+Vector3.new(1,0.3,1) | |
573 | ef5.Transparency=ef5.Transparency+1/60 | |
574 | em4.Scale=em4.Scale+Vector3.new(1,1,0) | |
575 | ef5.CFrame=torso.CFrame*CFrame.Angles(-r,-r,-r) | |
576 | end | |
577 | ef:Destroy() | |
578 | ef2:Destroy() | |
579 | ef3:Destroy() | |
580 | ef4:Destroy() | |
581 | ef5:Destroy() | |
582 | end)() | |
583 | end | |
584 | local ef = Instance.new("Part",char) | |
585 | ef.Name="pulse" | |
586 | ef.BrickColor=BrickColor.new(color2) | |
587 | ef.Material="Neon" | |
588 | ef.Shape="Ball" | |
589 | ef.CanCollide=false | |
590 | ef.Anchored=true | |
591 | ef.Size=Vector3.new(1,1,1) | |
592 | ef.CFrame=root.CFrame | |
593 | local em=Instance.new("SpecialMesh",ef) | |
594 | em.MeshId="rbxassetid://9982590" | |
595 | em.Scale=Vector3.new(1,0.3,1) | |
596 | ||
597 | local ef2 = ef:Clone() | |
598 | ef2.Parent=ef | |
599 | ef2.Name="aura" | |
600 | ef2.CFrame=root.CFrame | |
601 | ef2.Mesh:Destroy() | |
602 | ||
603 | local ef3 = ef:Clone() | |
604 | ef3.Parent=ef | |
605 | ef3.Name="aura" | |
606 | ef3.CFrame=root.CFrame | |
607 | ef3.Mesh:Destroy() | |
608 | local em2=Instance.new("SpecialMesh",ef3) | |
609 | em2.MeshId="rbxassetid://20329976" | |
610 | em2.Scale=Vector3.new(1,0.3,1) | |
611 | ||
612 | coroutine.wrap(function() | |
613 | for i = 1, 250 do | |
614 | ef.Size=ef.Size+Vector3.new(2,2,2) | |
615 | ef.Transparency=ef.Transparency+1/160 | |
616 | em.Scale=em.Scale+Vector3.new(0.6,0.6,0.6) | |
617 | ef.CFrame=root.CFrame*CFrame.Angles(r,r,r) | |
618 | ef3.Transparency=ef3.Transparency+1/160 | |
619 | ef3.CFrame=root.CFrame*CFrame.Angles(0,r,0) | |
620 | em2.Scale=em2.Scale+Vector3.new(2,0.8,2) | |
621 | ef2.Size=ef2.Size+Vector3.new(2,2,2) | |
622 | ef2.Transparency=ef2.Transparency+1/160 | |
623 | rs:wait() | |
624 | end | |
625 | ef:Destroy() | |
626 | ef2:Destroy() | |
627 | ef3:Destroy() | |
628 | s02:Destroy() | |
629 | ||
630 | end)() | |
631 | end)() | |
632 | ||
633 | for i = 1, 270 do | |
634 | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,4,0)*CFrame.Angles(math.rad(20),0,0),0.25) | |
635 | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0.2)*CFrame.Angles(math.rad(-40),0,0.15),0.25) | |
636 | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0.2)*CFrame.Angles(math.rad(-40),0,-0.15),0.25) | |
637 | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.2)*CFrame.Angles(math.rad(-40),0,-6),0.25) | |
638 | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0.2)*CFrame.Angles(math.rad(-40),0,6),0.25) | |
639 | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),0.25) | |
640 | rs:wait() | |
641 | end | |
642 | wait(8.7) | |
643 | s0:Play() | |
644 | trans=true | |
645 | print("screamed") | |
646 | for i,v in pairs(char:GetChildren()) do | |
647 | if v:FindFirstChild("Handle") then | |
648 | v.Handle.Transparency=1 | |
649 | end | |
650 | end | |
651 | hum.WalkSpeed=normal | |
652 | NoAnims=false | |
653 | attack=false | |
654 | end | |
655 | ||
656 | ||
657 | ------effects------ | |
658 | ||
659 | hum = char.Humanoid | |
660 | ||
661 | function CreateMesh(parent, id, x, y, z, texture) | |
662 | local m=Instance.new("SpecialMesh", parent) | |
663 | m.MeshType = "FileMesh" | |
664 | m.MeshId=id | |
665 | if texture ~= nil then | |
666 | m.TextureId=texture | |
667 | end | |
668 | m.Scale = Vector3.new(x,y,z) | |
669 | end | |
670 | ||
671 | local euler = CFrame.fromEulerAnglesXYZ | |
672 | ||
673 | Hat=function() | |
674 | hat = Instance.new("Part", char) | |
675 | CreateMesh(hat, "rbxassetid://667528488", 1.1, 1.1, 1.1,"rbxassetid://845828015") | |
676 | hat.Name = "PurpleHair" | |
677 | hat.Locked = true | |
678 | hat.BrickColor = BrickColor.new("Dark indigo") | |
679 | hat.CanCollide=true | |
680 | hat.Size=Vector3.new(1,1,1) | |
681 | hatw = Instance.new("Weld",hat) | |
682 | hatw.Part0=hat | |
683 | hatw.Part1=char['Head'] | |
684 | hatw.C0=CFrame.new(-0.1,-0.4,0) | |
685 | hatw.C1=euler(math.rad(0),math.rad(0),math.rad(0)) | |
686 | end | |
687 | ||
688 | ||
689 | Hat2=function() | |
690 | hat2 = Instance.new("Part", char) | |
691 | CreateMesh(hat2, "rbxassetid://943649996", 0.5, 0.5, 0.5,"rbxassetid://943650208") | |
692 | hat2.Name = "DisguiseScarf" | |
693 | hat2.Locked = true | |
694 | hat2.BrickColor = BrickColor.new("Dark indigo") | |
695 | hat2.CanCollide=true | |
696 | hat2.Size=Vector3.new(1,1,1) | |
697 | hat2w = Instance.new("Weld",hat2) | |
698 | hat2w.Part0=hat2 | |
699 | hat2w.Part1=char['Head'] | |
700 | hat2w.C0=CFrame.new(0,0.5,0) | |
701 | hat2w.C1=euler(math.rad(0),math.rad(0),math.rad(0)) | |
702 | end | |
703 | ||
704 | Hat() | |
705 | Hat2() | |
706 | ||
707 | hum.MaxHealth=math.huge | |
708 | hum.Health=hum.MaxHealth | |
709 | ||
710 | ||
711 | Debounces = { | |
712 | CanAttack = true; | |
713 | NoIdl = false; | |
714 | Slashing = false; | |
715 | Slashed = false; | |
716 | RPunch = false; | |
717 | RPunched = false; | |
718 | LPunch = false; | |
719 | LPunched = false; | |
720 | } | |
721 | local Touche = {char.Name, } | |
722 | ||
723 | ||
724 | ||
725 | ||
726 | ||
727 | CV="Really red" | |
728 | ||
729 | local txt = Instance.new("BillboardGui", char) | |
730 | txt.Adornee = char .Head | |
731 | txt.Name = "_status" | |
732 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
733 | txt.StudsOffset = Vector3.new(-9, 11, 0) | |
734 | local text = Instance.new("TextLabel", txt) | |
735 | text.Size = UDim2.new(10, 0, 7, 0) | |
736 | text.FontSize = "Size24" | |
737 | text.TextScaled = true | |
738 | text.TextTransparency = 0 | |
739 | text.BackgroundTransparency = 1 | |
740 | text.TextTransparency = 0 | |
741 | text.TextStrokeTransparency = 0 | |
742 | text.Font = "Antique" | |
743 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
744 | ||
745 | v=Instance.new("Part") | |
746 | v.Name = "ColorBrick" | |
747 | v.Parent=p.Character | |
748 | v.FormFactor="Symmetric" | |
749 | v.Anchored=true | |
750 | v.CanCollide=false | |
751 | v.BottomSurface="Smooth" | |
752 | v.TopSurface="Smooth" | |
753 | v.Size=Vector3.new(10,5,3) | |
754 | v.Transparency=1 | |
755 | v.CFrame=char.Torso.CFrame | |
756 | v.BrickColor=BrickColor.new(CV) | |
757 | v.Transparency=1 | |
758 | text.TextColor3 = Color3.new(0,0,0) | |
759 | v.Shape="Block" | |
760 | text.Text = "deivis97" | |
761 | ||
762 | ||
763 | ||
764 | ||
765 | ||
766 | ||
767 | ||
768 | rarm.Touched:connect(function(ht) | |
769 | hit = ht.Parent | |
770 | if ht and hit:IsA("Model") then | |
771 | if hit:FindFirstChild("Humanoid") then | |
772 | if hit.Name ~= p.Name then | |
773 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
774 | Debounces.RPunched = true | |
775 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
776 | hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 20 | |
777 | if Debounces.ks==true then | |
778 | z = Instance.new("Sound",hed) | |
779 | z.SoundId = "rbxassetid://588693156" | |
780 | z.Pitch = ptz[math.random(1,#ptz)] | |
781 | z.Volume = 20 | |
782 | z:Play() | |
783 | end | |
784 | wait(.2) | |
785 | Debounces.RPunched = false | |
786 | end | |
787 | end | |
788 | end | |
789 | elseif ht and hit:IsA("Hat") then | |
790 | if hit.Parent.Name ~= p.Name then | |
791 | if hit.Parent:FindFirstChild("Humanoid") then | |
792 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
793 | Debounces.RPunched = true | |
794 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
795 | hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 20 | |
796 | if Debounces.ks==true then | |
797 | z = Instance.new("Sound",hed) | |
798 | z.SoundId = "rbxassetid://588693156" | |
799 | z.Pitch = ptz[math.random(1,#ptz)] | |
800 | z.Volume = 20 | |
801 | z:Play() | |
802 | end | |
803 | wait(.2) | |
804 | Debounces.RPunched = false | |
805 | end | |
806 | end | |
807 | end | |
808 | end | |
809 | end) | |
810 | larm.Touched:connect(function(ht) | |
811 | hit = ht.Parent | |
812 | if ht and hit:IsA("Model") then | |
813 | if hit:FindFirstChild("Humanoid") then | |
814 | if hit.Name ~= p.Name then | |
815 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
816 | Debounces.LPunched = true | |
817 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
818 | hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 20 | |
819 | if Debounces.ks2==true then | |
820 | z = Instance.new("Sound",hed) | |
821 | z.SoundId = "rbxassetid://588693156" | |
822 | z.Pitch = ptz[math.random(1,#ptz)] | |
823 | z.Volume = 20 | |
824 | z:Play() | |
825 | end | |
826 | wait(.2) | |
827 | Debounces.LPunched = false | |
828 | end | |
829 | end | |
830 | end | |
831 | elseif ht and hit:IsA("Hat") then | |
832 | if hit.Parent.Name ~= p.Name then | |
833 | if hit.Parent:FindFirstChild("Humanoid") then | |
834 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
835 | Debounces.LPunched = true | |
836 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
837 | hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 20 | |
838 | if Debounces.ks2==true then | |
839 | z = Instance.new("Sound",hed) | |
840 | z.SoundId = "rbxassetid://588693156" | |
841 | z.Pitch = ptz[math.random(1,#ptz)] | |
842 | z.Volume = 20 | |
843 | z:Play() | |
844 | end | |
845 | wait(.2) | |
846 | Debounces.LPunched = false | |
847 | end | |
848 | end | |
849 | end | |
850 | end | |
851 | end) | |
852 | ||
853 | ||
854 | ||
855 | ||
856 | ||
857 | ||
858 | ||
859 | ||
860 | local attacktype = 1 | |
861 | local attack = false | |
862 | ||
863 | ||
864 | ||
865 | function attackone() | |
866 | Debounces.RPunch = true | |
867 | Debounces.LPunch = true | |
868 | attack = true | |
869 | NoAnims = true | |
870 | for i = 1, 3 do | |
871 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
872 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
873 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
874 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
875 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
876 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
877 | if Debounces.on == false then break end | |
878 | wait() | |
879 | end | |
880 | attack = false | |
881 | NoAnims = false | |
882 | Debounces.RPunch = false | |
883 | Debounces.LPunch = false | |
884 | end | |
885 | ||
886 | function attacktwo() | |
887 | Debounces.RPunch = true | |
888 | Debounces.LPunch = true | |
889 | NoAnims = true | |
890 | attack = true | |
891 | for i = 1, 3 do | |
892 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
893 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
894 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
895 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
896 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
897 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
898 | if Debounces.on == false then break end | |
899 | wait() | |
900 | end | |
901 | attack = false | |
902 | NoAnims = false | |
903 | Debounces.RPunch = false | |
904 | Debounces.LPunch = false | |
905 | ||
906 | end | |
907 | ||
908 | ||
909 | function attackthree() | |
910 | Debounces.RPunch = true | |
911 | Debounces.LPunch = true | |
912 | NoAnims = true | |
913 | attack = true | |
914 | for i = 1, 3 do | |
915 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
916 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
917 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
918 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
919 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
920 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
921 | if Debounces.on == false then break end | |
922 | wait() | |
923 | end | |
924 | attack = false | |
925 | NoAnims = false | |
926 | Debounces.RPunch = false | |
927 | Debounces.LPunch = false | |
928 | end | |
929 | ||
930 | ||
931 | function attackfour() | |
932 | Debounces.RPunch = true | |
933 | Debounces.LPunch = true | |
934 | NoAnims = true | |
935 | attack = true | |
936 | for i = 1, 3 do | |
937 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
938 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
939 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
940 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
941 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
942 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
943 | if Debounces.on == false then break end | |
944 | wait() | |
945 | end | |
946 | attack = false | |
947 | NoAnims = false | |
948 | Debounces.RPunch = false | |
949 | Debounces.LPunch = false | |
950 | end | |
951 | ||
952 | ||
953 | mouse.Button1Down:connect(function() | |
954 | if attack == false and attacktype == 1 then | |
955 | attacktype = 2 | |
956 | attackone() | |
957 | elseif attack == false and attacktype == 2 then | |
958 | attacktype = 3 | |
959 | attacktwo() | |
960 | elseif attack == false and attacktype == 3 then | |
961 | attacktype = 4 | |
962 | attackthree() | |
963 | elseif attack == false and attacktype == 4 then | |
964 | attacktype = 1 | |
965 | attackfour() | |
966 | end | |
967 | end) | |
968 | ||
969 | ||
970 | --[[function Transformation() | |
971 | hum.WalkSpeed = 0 | |
972 | local Portal = Instance.new("Model",char) | |
973 | local prt1 = Instance.new("Model",Portal) | |
974 | local prt2 = Instance.new("Model",Portal) | |
975 | local prt3 = Instance.new("Model",Portal) | |
976 | for i = 1,7 do | |
977 | local p = Instance.new("Part",prt1) | |
978 | p.Locked = true | |
979 | p.Anchored = true | |
980 | p.Transparency = 1 | |
981 | p.CanCollide = false | |
982 | p.BrickColor = BrickColor.new("Really red") | |
983 | p.TopSurface = 0 | |
984 | p.Material = "Neon" | |
985 | p.BottomSurface = 0 | |
986 | p.Size = Vector3.new(1,1,1) | |
987 | local m = Instance.new("SpecialMesh",p) | |
988 | m.Name = 'm' | |
989 | m.Scale = Vector3.new(1,1,1) | |
990 | m.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
991 | end for i = 1,7 do | |
992 | local p = Instance.new("Part",prt2) | |
993 | p.Locked = true | |
994 | p.Anchored = true | |
995 | p.CanCollide = false | |
996 | p.Transparency = 1 | |
997 | p.BrickColor = BrickColor.new("Really black") | |
998 | p.TopSurface = 0 | |
999 | p.Material = "Neon" | |
1000 | p.BottomSurface = 0 | |
1001 | p.Size = Vector3.new(1,1,1) | |
1002 | local m = Instance.new("SpecialMesh",p) | |
1003 | m.Name = 'm' | |
1004 | m.Scale = Vector3.new(1,1,1) | |
1005 | m.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
1006 | end for i = 1,7 do | |
1007 | local p = Instance.new("Part",prt3) | |
1008 | p.Locked = true | |
1009 | p.Anchored = true | |
1010 | p.CanCollide = false | |
1011 | p.Transparency = 1 | |
1012 | p.BrickColor = BrickColor.new("Really red") | |
1013 | p.TopSurface = 0 | |
1014 | p.Material = "Neon" | |
1015 | p.BottomSurface = 0 | |
1016 | p.Size = Vector3.new(1,1,1) | |
1017 | local m = Instance.new("SpecialMesh",p) | |
1018 | m.Name = 'm' | |
1019 | m.Scale = Vector3.new(1,1,1) | |
1020 | m.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
1021 | end | |
1022 | local Rot,Rate,Dist,Size = 0,65,65,1 | |
1023 | coroutine.wrap(function() | |
1024 | while wait()do | |
1025 | if _DEBOUNCE then break end | |
1026 | for i,v in pairs(prt1:GetChildren())do | |
1027 | v.Transparency = v.Transparency -0.035 | |
1028 | v.CFrame = CFrame.new(char.Torso.Position)* CFrame.fromEulerAnglesXYZ(0,math.rad((i *360/#prt1:GetChildren())+Rot),0)* CFrame.new(0,0,-Dist) | |
1029 | v.m.Scale = Vector3.new(Size,Size,Size) | |
1030 | end for i,v in pairs(prt2:GetChildren())do | |
1031 | v.Transparency = v.Transparency -0.035 | |
1032 | v.CFrame = CFrame.new(char.Torso.Position)* CFrame.fromEulerAnglesXYZ(math.rad((i *360/#prt2:GetChildren())+Rot),0,0)* CFrame.new(0,0,-Dist) | |
1033 | v.m.Scale = Vector3.new(Size,Size,Size) | |
1034 | end for i,v in pairs(prt3:GetChildren())do | |
1035 | v.Transparency = v.Transparency -0.035 | |
1036 | v.CFrame = CFrame.new(char.Torso.Position)* CFrame.fromEulerAnglesXYZ(0,0,math.rad((i *360/#prt2:GetChildren())+Rot))* CFrame.new(-Dist,-Dist,0) | |
1037 | v.m.Scale = Vector3.new(Size,Size,Size) | |
1038 | end | |
1039 | Rot = Rot >= 360 and 0 or Rot +Rate | |
1040 | end end)() | |
1041 | wait(0.75) | |
1042 | for i = 1,90 do | |
1043 | Rate = Rate -(2.3/3) | |
1044 | Dist = Dist -(1.5/3) | |
1045 | wait() | |
1046 | end | |
1047 | wait(1) | |
1048 | for i = 1,30 do | |
1049 | Rate = Rate -(2.3/3) | |
1050 | Dist = Dist +0.5 | |
1051 | wait() | |
1052 | end | |
1053 | wait(2) | |
1054 | for i = 1,30 do | |
1055 | Rate = Rate +(9.2/3) | |
1056 | Dist = Dist -1.75 | |
1057 | wait() | |
1058 | end | |
1059 | wait(0.75) | |
1060 | for i = 1,6 do | |
1061 | Rate = Rate -4 | |
1062 | Dist = Dist +0.5 | |
1063 | wait() | |
1064 | end | |
1065 | Rate = 0 | |
1066 | Dist = 6 | |
1067 | wait(2) | |
1068 | for i = 1,90 do | |
1069 | Rate = Rate +0.5 | |
1070 | Dist = Dist +0.2 | |
1071 | wait() | |
1072 | end | |
1073 | wait(1) | |
1074 | for i = 1,30 do | |
1075 | Dist = Dist -(24/30) | |
1076 | Size = Size +0.05 | |
1077 | wait() | |
1078 | end | |
1079 | -- Scream in pain | |
1080 | ||
1081 | ||
1082 | coroutine.resume(coroutine.create(function() | |
1083 | wait(2) | |
1084 | game.Lighting.TimeOfDay = "00:00:00" | |
1085 | ||
1086 | hat.Transparency = 1 | |
1087 | Hat3=function() | |
1088 | hat3 = Instance.new("Part", char) | |
1089 | CreateMesh(hat3, "rbxassetid://667528488", 1.1, 1.1, 1.1) | |
1090 | hat3.Name = "RedHair" | |
1091 | hat3.Locked = true | |
1092 | hat3.BrickColor = BrickColor.new("Maroon") | |
1093 | hat3.CanCollide=true | |
1094 | hat3.Size=Vector3.new(1,1,1) | |
1095 | hat3w = Instance.new("Weld",hat3) | |
1096 | hat3w.Part0=hat3 | |
1097 | hat3w.Part1=char['Head'] | |
1098 | hat3w.C0=CFrame.new(-0.1,-0.4,0) | |
1099 | hat3w.C1=euler(math.rad(0),math.rad(0),math.rad(0)) | |
1100 | end | |
1101 | ||
1102 | ||
1103 | ||
1104 | ypcall(function() | |
1105 | shirt = Instance.new("Shirt", char) | |
1106 | shirt.Name = "Shirt" | |
1107 | pants = Instance.new("Pants", char) | |
1108 | pants.Name = "Pants" | |
1109 | char.Shirt.ShirtTemplate = "rbxassetid://519769931" | |
1110 | char.Pants.PantsTemplate = "rbxassetid://519770250" | |
1111 | end) | |
1112 | ||
1113 | ragesong2 = "966219381" | |
1114 | s02=Instance.new("Sound",char) | |
1115 | s02.SoundId="rbxassetid://"..ragesong2 | |
1116 | s02.Volume=1999 | |
1117 | s02.Pitch=1 | |
1118 | s02.Looped=true | |
1119 | righteyebrickcolor = "Really red" | |
1120 | s0:Stop() | |
1121 | wait(0.01) | |
1122 | s02:Play() | |
1123 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
1124 | leye.BrickColor = BrickColor.new(righteyebrickcolor) | |
1125 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
1126 | hat.BrickColor = BrickColor.new("Maroon") | |
1127 | Hat3() | |
1128 | end)) | |
1129 | ||
1130 | ||
1131 | tran = 0 | |
1132 | for i,v in pairs(char:GetChildren()) do | |
1133 | if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then | |
1134 | Glow1 = Color3.new(.6,0,.1) | |
1135 | Glow2 = Color3.new(0,0,0) | |
1136 | ||
1137 | GlowParticle = Instance.new("ParticleEmitter",v) | |
1138 | GlowParticle.LightEmission = 1 | |
1139 | GlowParticle.Color = ColorSequence.new(Glow1,Glow2) | |
1140 | GlowParticle.Size = NumberSequence.new(0,2) | |
1141 | ||
1142 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=467188845" | |
1143 | GlowParticle.Transparency = NumberSequence.new(tran,1) | |
1144 | GlowParticle.LockedToPart = true | |
1145 | GlowParticle.Lifetime = NumberRange.new(0.5) | |
1146 | GlowParticle.Rate= 300 | |
1147 | GlowParticle.Speed =NumberRange.new(0) | |
1148 | end end | |
1149 | ||
1150 | ||
1151 | ||
1152 | ||
1153 | ||
1154 | ||
1155 | ||
1156 | ||
1157 | ||
1158 | ||
1159 | ||
1160 | ||
1161 | ||
1162 | coroutine.wrap(function() | |
1163 | for i = 1,3 do | |
1164 | wait() | |
1165 | end end)() | |
1166 | wait(1.65) | |
1167 | _DEBOUNCE = true | |
1168 | wait() | |
1169 | Portal:Destroy() | |
1170 | coroutine.wrap(function() | |
1171 | local Pos = char.Torso.Position | |
1172 | local BOOSH = Instance.new("Sound",Workspace) | |
1173 | BOOSH.SoundId = "http://www.roblox.com/asset/?id=2101159" | |
1174 | BOOSH.Volume = 1 | |
1175 | BOOSH.Pitch = 0.675 | |
1176 | local Fuse = Instance.new("Sound",Workspace) | |
1177 | Fuse.SoundId = "http://www.roblox.com/asset/?id=2233908" | |
1178 | Fuse.Volume = 1 | |
1179 | Fuse.Pitch = 0.25 | |
1180 | local BOOSH2 = Instance.new("Sound",Workspace) | |
1181 | BOOSH2.SoundId = "http://www.roblox.com/asset/?id=3264793" | |
1182 | BOOSH2.Volume = 1 | |
1183 | BOOSH2.Pitch = 0.25 | |
1184 | local dsound = true | |
1185 | local PewPew = Instance.new("Sound",Workspace) | |
1186 | PewPew.Name = "PewPew" | |
1187 | PewPew.SoundId = "http://www.roblox.com/asset/?id=34315534" | |
1188 | PewPew.Volume = 1 | |
1189 | PewPew.Pitch = 0.32 | |
1190 | local function GetHumanoids() | |
1191 | local Characters = {} | |
1192 | for i,v in pairs(Workspace:GetChildren())do | |
1193 | if v:IsA("Model")then | |
1194 | local Hu = v:findFirstChild("Humanoid") | |
1195 | local Torso = v:findFirstChild("Torso") | |
1196 | if Hu and Torso and v.Name ~= p.Name then | |
1197 | table.insert(Characters,Torso) | |
1198 | end end end | |
1199 | return Characters | |
1200 | end | |
1201 | local function Boom() | |
1202 | for i = 1,25 do | |
1203 | for _,v in pairs(GetHumanoids())do | |
1204 | if(Pos - v.Position).magnitude <=(40 +i *2.5)/2 then | |
1205 | local h = v.Parent:findFirstChild("Humanoid") | |
1206 | if h then | |
1207 | local Moar =(Pos - v.Position).unit | |
1208 | ||
1209 | ||
1210 | end end end | |
1211 | local p = Instance.new("Part",char) | |
1212 | p.Name = "BlastRing" | |
1213 | p.TopSurface = 0 | |
1214 | p.BottomSurface = 0 | |
1215 | p.CanCollide = false | |
1216 | p.Anchored = true | |
1217 | p.BrickColor = BrickColor.new("Really red") | |
1218 | p.Size = Vector3.new(1,1,1) | |
1219 | p.CFrame = CFrame.new(Pos - Vector3.new(0,3,0))* CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)/30) | |
1220 | local rm = Instance.new("SpecialMesh",p) | |
1221 | rm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1222 | rm.Name = "BlastMesh" | |
1223 | rm.Scale = Vector3.new(1,1,1) | |
1224 | coroutine.wrap(function() | |
1225 | for n = 1,15 do | |
1226 | rm.Scale = rm.Scale + Vector3.new(1.2 +2 +i/5,1.2 +2 +i/5,0.1)*4/2 | |
1227 | if 2 +i/5 == 1.2 then | |
1228 | rm.Scale = rm.Scale + Vector3.new(0,0.9,0) | |
1229 | end | |
1230 | p.Transparency = n/15 | |
1231 | p.CFrame = p.CFrame * CFrame.new(0,0.01,0)* CFrame.fromEulerAnglesXYZ(math.random(-20,20)/50,math.random(-20,20)/70,0) | |
1232 | wait() | |
1233 | end | |
1234 | p:Destroy() | |
1235 | end)() | |
1236 | local p = Instance.new("Part",char) | |
1237 | p.TopSurface = 0 | |
1238 | p.BottomSurface = 0 | |
1239 | p.formFactor = "Symmetric" | |
1240 | p.Size = Vector3.new(1,1,1) | |
1241 | p.Anchored = true | |
1242 | p.CanCollide = false | |
1243 | p.BrickColor = BrickColor.new("Really red") | |
1244 | p.CFrame = CFrame.new(Pos) | |
1245 | local m = Instance.new("BlockMesh",p) | |
1246 | coroutine.wrap(function() | |
1247 | for x = 1,48 do | |
1248 | m.Scale = m.Scale + Vector3.new(0.48 *2 -x/50 +i *0.4,0.48 *2 -i/50 +i *0.4,0.48 *2 -i/50 +i *0.4)/2 | |
1249 | p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/60,math.random(-10,10)/50) | |
1250 | p.Transparency = x/48 | |
1251 | Wait() | |
1252 | end | |
1253 | p:Destroy() | |
1254 | end)() | |
1255 | Game:GetService("Debris"):AddItem(p,5) | |
1256 | local p = Instance.new("Part",char) | |
1257 | p.Name = "BlastRing" | |
1258 | p.TopSurface = 0 | |
1259 | p.BottomSurface = 0 | |
1260 | p.CanCollide = false | |
1261 | p.Anchored = true | |
1262 | p.BrickColor = BrickColor.new("Really black") | |
1263 | p.Size = Vector3.new(1,1,1) | |
1264 | p.CFrame = CFrame.new(Pos - Vector3.new(0,3,0))* CFrame.fromEulerAnglesXYZ(0,0,0) | |
1265 | local m = Instance.new("SpecialMesh",p) | |
1266 | m.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1267 | m.Scale = Vector3.new(1,0.25,1) | |
1268 | coroutine.wrap(function() | |
1269 | for n = 1,13 do | |
1270 | m.Scale = m.Scale + Vector3.new(0.7 +1 +i/5,0.7/(n/5),0.7 +1 +i/5)*4/2 | |
1271 | if 1 +i/5 == 1.2 then | |
1272 | m.Scale = m.Scale + Vector3.new(0,0.9,0) | |
1273 | end | |
1274 | p.Transparency = n/13 | |
1275 | p.CFrame = p.CFrame * CFrame.new(0,0.01,0)* CFrame.fromEulerAnglesXYZ(0,math.random(-4,4)/20,0) | |
1276 | Wait() | |
1277 | end | |
1278 | p:Destroy() | |
1279 | end)() | |
1280 | Wait(0.1) | |
1281 | end for i = 10,19 do | |
1282 | local p = Instance.new("Part",char) | |
1283 | p.Name = "BlastRing" | |
1284 | p.TopSurface = 0 | |
1285 | p.BottomSurface = 0 | |
1286 | p.CanCollide = false | |
1287 | p.Anchored = true | |
1288 | p.BrickColor = BrickColor.new("Really red") | |
1289 | p.Size = Vector3.new(1,1,1) | |
1290 | p.CFrame = CFrame.new(Pos -Vector3.new(0,3,0))* CFrame.fromEulerAnglesXYZ(0,0,0) | |
1291 | local m = Instance.new("SpecialMesh",p) | |
1292 | m.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1293 | m.Scale = Vector3.new(1,0.25,1) | |
1294 | coroutine.wrap(function() | |
1295 | for n = 1,13 do | |
1296 | m.Scale = m.Scale + Vector3.new(0.7 +1 +i/5,0.7/(n/5),0.7 +1 +i/5)*4/2 | |
1297 | if 1 +i/5 == 1.2 then | |
1298 | m.Scale = m.Scale + Vector3.new(0,0.9,0) | |
1299 | end | |
1300 | p.Transparency = n/13 | |
1301 | p.CFrame = p.CFrame * CFrame.new(0,0.01,0)* CFrame.fromEulerAnglesXYZ(0,math.random(-4,4)/20,0) | |
1302 | Wait() | |
1303 | end | |
1304 | p:Destroy() | |
1305 | end)() | |
1306 | local p = Instance.new("Part",char) | |
1307 | p.Name = "BlastRing" | |
1308 | p.TopSurface = 0 | |
1309 | p.BottomSurface = 0 | |
1310 | p.CanCollide = false | |
1311 | p.Anchored = true | |
1312 | p.BrickColor = BrickColor.new("Really black") | |
1313 | p.Size = Vector3.new(1,1,1) | |
1314 | p.CFrame = CFrame.new(Pos -Vector3.new(0,3,0))* CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)/30) | |
1315 | p.Parent = workspace | |
1316 | local m = Instance.new("SpecialMesh",p) | |
1317 | m.Name = "BlastMesh" | |
1318 | m.Scale = Vector3.new(0.1,0.1,0.1) | |
1319 | m.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1320 | coroutine.wrap(function() | |
1321 | for n = 1,15 do | |
1322 | m.Scale = m.Scale + Vector3.new(1.5 + 3 +i/5,1.5 + 3+i/5,0.1)*4/2 | |
1323 | if 3+i/5 == 1.2 then | |
1324 | m.Scale = m.Scale + Vector3.new(0,0.9,0) | |
1325 | end | |
1326 | p.Transparency = n/15 | |
1327 | p.CFrame = p.CFrame * CFrame.new(0,0.01,0)* CFrame.fromEulerAnglesXYZ(math.random(-20,20)/90,math.random(-20,20)/170,0) | |
1328 | Wait() | |
1329 | end | |
1330 | p:Destroy() | |
1331 | end)() | |
1332 | for _,v in pairs(GetHumanoids())do | |
1333 | if(Pos - v.Position).magnitude <=(5 +i *9.5)/3 then | |
1334 | local h = v.Parent:findFirstChild("Humanoid") | |
1335 | if h then | |
1336 | local Moar =(Pos - v.Position).unit | |
1337 | ||
1338 | ||
1339 | end end end | |
1340 | Wait(0.1) | |
1341 | end for i = 30,37 do | |
1342 | for _,v in pairs(GetHumanoids())do | |
1343 | if(Pos -v.Position).magnitude <=(140 +i *2.5)/3 then | |
1344 | local h = v.Parent:findFirstChild("Humanoid") | |
1345 | if h then | |
1346 | local Moar =(Pos - v.Position).unit | |
1347 | ||
1348 | ||
1349 | end end end end | |
1350 | dsound = false | |
1351 | wait(6.5) | |
1352 | for i = 1,30 do | |
1353 | BOOSH.Volume = BOOSH.Volume -0.033 | |
1354 | BOOSH2.Volume = BOOSH.Volume | |
1355 | Fuse.Volume = BOOSH.Volume | |
1356 | Wait() | |
1357 | end | |
1358 | BOOSH:Stop() | |
1359 | BOOSH2:Stop() | |
1360 | Fuse:Stop() | |
1361 | end | |
1362 | BOOSH2:Play() | |
1363 | Fuse:Play() | |
1364 | BOOSH:Play() | |
1365 | Boom() | |
1366 | end)() | |
1367 | hum.WalkSpeed = 30 | |
1368 | end]] | |
1369 | ||
1370 | ||
1371 | GroundWave = function() | |
1372 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1373 | local Colors = {"Really red", "Really red"} | |
1374 | local wave = Instance.new("Part", torso) | |
1375 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1376 | wave.Anchored = true | |
1377 | wave.CanCollide = false | |
1378 | wave.Locked = true | |
1379 | wave.Size = Vector3.new(1, 1, 1) | |
1380 | wave.TopSurface = "Smooth" | |
1381 | wave.BottomSurface = "Smooth" | |
1382 | wave.Transparency = 0.35 | |
1383 | wave.CFrame = HandCF | |
1384 | wm = Instance.new("SpecialMesh", wave) | |
1385 | wm.MeshId = "rbxassetid://3270017" | |
1386 | coroutine.wrap(function() | |
1387 | for i = 1, 14, 1 do | |
1388 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
1389 | wave.Size = wm.Scale | |
1390 | wave.CFrame = HandCF | |
1391 | wave.Transparency = i/14 | |
1392 | wait() | |
1393 | end | |
1394 | wait() | |
1395 | wave:Destroy() | |
1396 | end)() | |
1397 | end | |
1398 | ||
1399 | ||
1400 | ||
1401 | function BurningEff(part) | |
1402 | local eff1 = Instance.new("ParticleEmitter",part) | |
1403 | eff1.Size = NumberSequence.new(.1) | |
1404 | eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)}) | |
1405 | eff1.LightEmission = 1 | |
1406 | eff1.Lifetime = NumberRange.new(1) | |
1407 | eff1.Speed = NumberRange.new(0) | |
1408 | eff1.Rate = 100 | |
1409 | eff1.Texture = "rbxassetid://284205403" | |
1410 | eff1.Acceleration = Vector3.new(0,10,0) | |
1411 | eff1.Color = ColorSequence.new(Color3.new(0,255,255)) | |
1412 | local eff2 = Instance.new("ParticleEmitter",part) | |
1413 | eff2.Size = NumberSequence.new(.1) | |
1414 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)}) | |
1415 | eff2.LightEmission = 1 | |
1416 | eff2.Lifetime = NumberRange.new(0.2) | |
1417 | eff2.Speed = NumberRange.new(0) | |
1418 | eff2.Rate = 100 | |
1419 | eff2.Texture = "rbxassetid://347504259" | |
1420 | eff2.Acceleration = Vector3.new(0,10,0) | |
1421 | eff2.Color = ColorSequence.new(Color3.new(255,0,0)) | |
1422 | local eff3 = Instance.new("ParticleEmitter",part) | |
1423 | eff3.Size = NumberSequence.new(0.2) | |
1424 | eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)}) | |
1425 | eff3.LightEmission = 1 | |
1426 | eff3.Lifetime = NumberRange.new(1) | |
1427 | eff3.Speed = NumberRange.new(0) | |
1428 | eff3.Rate = 100 | |
1429 | eff3.Texture = "rbxassetid://284205403" | |
1430 | eff3.Acceleration = Vector3.new(0,10,0) | |
1431 | eff3.Color = ColorSequence.new(Color3.new(0,255,255)) | |
1432 | end | |
1433 | ||
1434 | ||
1435 | function FullPower() | |
1436 | NoAnims = true | |
1437 | attack = true | |
1438 | ||
1439 | ||
1440 | ||
1441 | Full = true | |
1442 | ||
1443 | ||
1444 | for i = 1, 40 do | |
1445 | wait() | |
1446 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.10)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.4)--head | |
1447 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)--torso | |
1448 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.2,-.70)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(10)), 0.2)--rarm | |
1449 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.2,-.70)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(-10)), 0.2)--larm | |
1450 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.6, -.40) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-20)), 0.4)--lleg | |
1451 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.6, -.40) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.4)--rleg | |
1452 | end | |
1453 | ||
1454 | ||
1455 | ||
1456 | ||
1457 | ||
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | for i = 1, 20 do | |
1463 | wait() | |
1464 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)--head | |
1465 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)--torso | |
1466 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.5,0)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(-30)), 0.2)--arm | |
1467 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.5,0)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(30)), 0.2)--arm | |
1468 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.4)--leg | |
1469 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(10)), 0.4)--leg | |
1470 | end | |
1471 | ||
1472 | s0:Destroy() | |
1473 | ragesong = "966219381" | |
1474 | wait(0.001) | |
1475 | s02 = Instance.new("Sound",char) | |
1476 | s02.Volume = 90 | |
1477 | s02.SoundId = "rbxassetid://"..ragesong | |
1478 | s02.Looped = true | |
1479 | s02.Pitch = 1 | |
1480 | wait(0.001) | |
1481 | s02:Play() | |
1482 | ||
1483 | ||
1484 | local selectionBoxOfTorso = Instance.new("SelectionBox",torso) | |
1485 | selectionBoxOfTorso.Adornee = torso | |
1486 | selectionBoxOfTorso.Color = BrickColor.new("Really red") | |
1487 | selectionBoxOfTorso.LineThickness = 0.01 | |
1488 | selectionBoxOfTorso.Transparency = 0 | |
1489 | ||
1490 | local selectionBoxOfRightArm = Instance.new("SelectionBox",char["Right Arm"]) | |
1491 | selectionBoxOfRightArm.Adornee = char["Right Arm"] | |
1492 | selectionBoxOfRightArm.Color = BrickColor.new("Really red") | |
1493 | selectionBoxOfRightArm.LineThickness = 0.01 | |
1494 | selectionBoxOfRightArm.Transparency = 0 | |
1495 | ||
1496 | local selectionBoxOfRightLeg = Instance.new("SelectionBox",char["Right Leg"]) | |
1497 | selectionBoxOfRightLeg.Adornee = char["Right Leg"] | |
1498 | selectionBoxOfRightLeg.Color = BrickColor.new("Really red") | |
1499 | selectionBoxOfRightLeg.LineThickness = 0.01 | |
1500 | selectionBoxOfRightLeg.Transparency = 0 | |
1501 | ||
1502 | local selectionBoxOfLeftArm = Instance.new("SelectionBox",char["Left Arm"]) | |
1503 | selectionBoxOfLeftArm.Adornee = char["Left Arm"] | |
1504 | selectionBoxOfLeftArm.Color = BrickColor.new("Really red") | |
1505 | selectionBoxOfLeftArm.LineThickness = 0.01 | |
1506 | selectionBoxOfLeftArm.Transparency = 0 | |
1507 | ||
1508 | local selectionBoxOfLeftLeg = Instance.new("SelectionBox",char["Left Leg"]) | |
1509 | selectionBoxOfLeftLeg.Adornee = char["Left Leg"] | |
1510 | selectionBoxOfLeftLeg.Color = BrickColor.new("Really red") | |
1511 | selectionBoxOfLeftLeg.LineThickness = 0.01 | |
1512 | selectionBoxOfLeftLeg.Transparency = 0 | |
1513 | ||
1514 | BurningEff(reye) | |
1515 | ||
1516 | LightOnBody = Instance.new("PointLight", hed) | |
1517 | LightOnBody.Brightness = 3000 | |
1518 | LightOnBody.Range = 20 | |
1519 | LightOnBody.Color = Color3.new(0, 0, 255) | |
1520 | ||
1521 | r = game:GetService("RunService").RenderStepped | |
1522 | Activated = true | |
1523 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
1524 | Debri = coroutine.wrap(function() | |
1525 | repeat | |
1526 | local p = Instance.new('Part',torso) | |
1527 | p.formFactor = 'Custom' | |
1528 | p.Size = Vector3.new(1,1,1) | |
1529 | p.BrickColor = workspace.Base.BrickColor | |
1530 | p.CanCollide = false | |
1531 | p.Transparency = 0 | |
1532 | p.Anchored = true | |
1533 | p.Locked=true | |
1534 | p.Material = workspace.Base.Material | |
1535 | s = math.random(1,40)/10 | |
1536 | local m = Instance.new("BlockMesh",p) | |
1537 | m.Scale = Vector3.new(s,s,s) | |
1538 | p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
1539 | --[[coroutine.wrap(function() | |
1540 | wait(2) | |
1541 | while Charging == true do | |
1542 | wait(2) | |
1543 | GroundWave1() | |
1544 | wait(2) | |
1545 | end | |
1546 | end)()]]-- | |
1547 | ||
1548 | spawn(function() | |
1549 | while r:wait() do | |
1550 | if p.Transparency >= 1 then p:Destroy() break end | |
1551 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
1552 | p.Transparency = p.Transparency+0.01 | |
1553 | end | |
1554 | end) | |
1555 | wait(.3) | |
1556 | until Activated == false | |
1557 | end) | |
1558 | Debri() | |
1559 | ||
1560 | l = game.Lighting | |
1561 | l.TimeOfDay = 1 | |
1562 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1563 | l.Brightness = 0.1 | |
1564 | ||
1565 | ||
1566 | spawn(function() | |
1567 | while wait(2) | |
1568 | do | |
1569 | GroundWave() | |
1570 | end | |
1571 | end) | |
1572 | ||
1573 | ||
1574 | local eColors = {"Really red", "Really red"} | |
1575 | coroutine.resume(coroutine.create(function() | |
1576 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module | |
1577 | local magz = (Part0 - Part1).magnitude | |
1578 | local curpos = Part0 | |
1579 | local trz = {-Offset,Offset} | |
1580 | for i=1,Times do | |
1581 | local li = Instance.new("Part", torso) | |
1582 | li.Name = "Lightning" | |
1583 | li.TopSurface =0 | |
1584 | li.Material = "Neon" | |
1585 | li.BottomSurface = 0 | |
1586 | li.Anchored = true | |
1587 | li.Locked = true | |
1588 | li.Transparency = Trans or 0.4 | |
1589 | li.BrickColor = BrickColor.new(Color) | |
1590 | li.formFactor = "Custom" | |
1591 | li.CanCollide = false | |
1592 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
1593 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
1594 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
1595 | if Times == i then | |
1596 | local magz2 = (curpos - Part1).magnitude | |
1597 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
1598 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
1599 | else | |
1600 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
1601 | end | |
1602 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
1603 | game.Debris:AddItem(li,.1) | |
1604 | end | |
1605 | end | |
1606 | ||
1607 | BodyParts = {} | |
1608 | for _, v in pairs(char:GetChildren()) do | |
1609 | if v:IsA("Part") then | |
1610 | table.insert(BodyParts, v) | |
1611 | end | |
1612 | end | |
1613 | ||
1614 | Bounding = {} -- Calculate the bounding boxes | |
1615 | for _, v in pairs(BodyParts) do | |
1616 | local temp = {X=nil, Y=nil, Z=nil} | |
1617 | temp.X = v.Size.X/2 * 10 | |
1618 | temp.Y = v.Size.Y/2 * 10 | |
1619 | temp.Z = v.Size.Z/2 * 10 | |
1620 | Bounding[v.Name] = temp | |
1621 | end | |
1622 | ||
1623 | while wait(lightspeed) do | |
1624 | lightspeed = math.random(0.1,0.2) | |
1625 | local Body1 = BodyParts[math.random(#BodyParts)] | |
1626 | local Body2 = BodyParts[math.random(#BodyParts)] | |
1627 | local Pos1 = Vector3.new( | |
1628 | math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10, | |
1629 | math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10, | |
1630 | math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10 | |
1631 | ) | |
1632 | local Pos2 = Vector3.new( | |
1633 | math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10, | |
1634 | math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10, | |
1635 | math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10 | |
1636 | ) | |
1637 | local SPos1 = Body1.Position + Pos1 | |
1638 | local SPos2 = Body2.Position + Pos2 | |
1639 | Lightning(SPos1, SPos2, 4, 3, eColors[math.random(1,#eColors)], .2, .56) | |
1640 | end | |
1641 | end)) | |
1642 | for i = 1, 20 do | |
1643 | wait() | |
1644 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.3,.2)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(0)), 0.4)--head | |
1645 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)--torso | |
1646 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.5,0)*CFrame.Angles(math.rad(-120),math.rad(0),math.rad(60)), 0.2)--arm | |
1647 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.5,0)*CFrame.Angles(math.rad(-120),math.rad(0),math.rad(-60)), 0.2)--arm | |
1648 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.4)--leg | |
1649 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(10)), 0.4)--leg | |
1650 | end | |
1651 | ||
1652 | ||
1653 | attack = false | |
1654 | NoAnims = false | |
1655 | end | |
1656 | ||
1657 | function weld5(part0, part1, c0, c1) | |
1658 | weeld=Instance.new("Weld", part0) | |
1659 | weeld.Part0=part0 | |
1660 | weeld.Part1=part1 | |
1661 | weeld.C0=c0 | |
1662 | weeld.C1=c1 | |
1663 | return weeld | |
1664 | end | |
1665 | ||
1666 | ||
1667 | ||
1668 | Grab = false | |
1669 | ||
1670 | ||
1671 | ||
1672 | ||
1673 | ||
1674 | fat = Instance.new("BindableEvent",script) | |
1675 | fat.Name = "Heartbeat" | |
1676 | ||
1677 | script:WaitForChild("Heartbeat") | |
1678 | ||
1679 | frame = 1/30 | |
1680 | tf = 0 | |
1681 | allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater. | |
1682 | tossremainder = false --if set to true t will be set to 0 after Fire()-ing. | |
1683 | lastframe = tick() | |
1684 | script.Heartbeat:Fire() --ayy lmao | |
1685 | ||
1686 | game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp | |
1687 | tf = tf + s | |
1688 | if tf >= frame then | |
1689 | if allowframeloss then | |
1690 | script.Heartbeat:Fire() | |
1691 | lastframe=tick() | |
1692 | else | |
1693 | --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame)))) | |
1694 | for i=1, math.floor(tf/frame) do | |
1695 | script.Heartbeat:Fire() | |
1696 | end | |
1697 | lastframe=tick() | |
1698 | end | |
1699 | if tossremainder then | |
1700 | tf = 0 | |
1701 | else | |
1702 | tf = tf - frame * math.floor(tf/frame) | |
1703 | end | |
1704 | end | |
1705 | end) | |
1706 | ||
1707 | function Swait(NUMBER) | |
1708 | if NUMBER == 0 or NUMBER == nil then | |
1709 | fat.Event:wait() | |
1710 | else | |
1711 | for i = 1, NUMBER do | |
1712 | fat.Event:wait() | |
1713 | end | |
1714 | end | |
1715 | end | |
1716 | ||
1717 | ||
1718 | ||
1719 | ||
1720 | ||
1721 | function GrabAndDrag() | |
1722 | NoAnims = true | |
1723 | attack = true | |
1724 | ||
1725 | if Grab == false then | |
1726 | ||
1727 | for i = 1, 20 do | |
1728 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
1729 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2) | |
1730 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2) | |
1731 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2) | |
1732 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
1733 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
1734 | if Debounces.on == false then break end | |
1735 | rs:wait(2) | |
1736 | end | |
1737 | con1=larm.Touched:connect(function(hit) -- this is grab | |
1738 | ht = hit.Parent | |
1739 | hum1=ht:FindFirstChild('Humanoid') | |
1740 | if hum1 ~= nil then | |
1741 | ||
1742 | ||
1743 | ||
1744 | ||
1745 | z = Instance.new("Sound",char) | |
1746 | z.SoundId = "rbxassetid://227194112" | |
1747 | z.Volume = 90 | |
1748 | wait(.1) | |
1749 | z:Play() | |
1750 | hum1.PlatformStand=true | |
1751 | gp = ht | |
1752 | Grab = true | |
1753 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0)) | |
1754 | asd.Parent = larm | |
1755 | asd.Name = "asd" | |
1756 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0) | |
1757 | ||
1758 | ||
1759 | --[[ elseif hum1 == nil then | |
1760 | con1:disconnect() | |
1761 | wait() return]] | |
1762 | end | |
1763 | end) | |
1764 | ||
1765 | ||
1766 | for i = 1, 20 do | |
1767 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
1768 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
1769 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2) | |
1770 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2) | |
1771 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
1772 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
1773 | if Debounces.on == false then break end | |
1774 | rs:wait(2) | |
1775 | end | |
1776 | con1:disconnect() | |
1777 | ||
1778 | if gp == nil then | |
1779 | attack = false | |
1780 | NoAnims = false | |
1781 | return end | |
1782 | ||
1783 | ||
1784 | ||
1785 | --[[for i = 1, 16 do | |
1786 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3) | |
1787 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3) | |
1788 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3) | |
1789 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
1790 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
1791 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
1792 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3) | |
1793 | if Debounces.on == false then end | |
1794 | rs:wait() | |
1795 | end]]-- | |
1796 | for i = 1, 16 do | |
1797 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
1798 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-73)), 0.3) | |
1799 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3) | |
1800 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3) | |
1801 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) | |
1802 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
1803 | if Debounces.on == false then end | |
1804 | rs:wait() | |
1805 | end | |
1806 | ||
1807 | ||
1808 | coroutine.resume(coroutine.create(function() | |
1809 | local BF = Instance.new("BodyVelocity",hed) | |
1810 | BF.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1811 | BF.velocity = root.CFrame.lookVector*120 | |
1812 | wait(2.5) | |
1813 | BF:remove() | |
1814 | end)) | |
1815 | ||
1816 | ||
1817 | ||
1818 | z = Instance.new("Sound",char) | |
1819 | z.SoundId = "rbxassetid://138223085" | |
1820 | z.Volume = 90 | |
1821 | wait(.1) | |
1822 | z:Play() | |
1823 | ||
1824 | coroutine.resume(coroutine.create(function() | |
1825 | for i=1,78 do | |
1826 | wait() | |
1827 | MagicBlock(BrickColor.new("Really red"),gp:FindFirstChild("Torso").CFrame,1,1,1,0.5,0.5,0.5,0.025) | |
1828 | wait(0.01) | |
1829 | MagicBlock(BrickColor.new("Really black"),gp:FindFirstChild("Torso").CFrame,1,1,1,0.5,0.5,0.5,0.025) | |
1830 | end | |
1831 | end)) | |
1832 | ||
1833 | coroutine.resume(coroutine.create(function() | |
1834 | Grabee = gp:FindFirstChild("Torso") | |
1835 | par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char) | |
1836 | wait(0.01) | |
1837 | for i = 1,78 do | |
1838 | wait(0.01) | |
1839 | for i=1, 5 do | |
1840 | p=Instance.new("Part") | |
1841 | p.FrontSurface=par.TopSurface | |
1842 | p.Material=par.Material | |
1843 | p.BottomSurface=0 | |
1844 | p.Anchored=true p.CanCollide=false | |
1845 | p.BrickColor=par.BrickColor | |
1846 | p.Size=Vector3.new(math.random(15,35)/5,math.random(15,35)/5,math.random(4,5)) | |
1847 | p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-i,i)/1,3,math.random(-i,i)/1),loc+Vector3.new(0,1000-i*20,0))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30) | |
1848 | p.Parent=char | |
1849 | game:GetService("Debris"):AddItem(p,2+i*.1) | |
1850 | if math.random(1,5)==5 then | |
1851 | coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=30 f.RiseVelocity=0 f.Opacity=.025 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p) | |
1852 | end | |
1853 | end | |
1854 | end | |
1855 | ||
1856 | end)) | |
1857 | ||
1858 | coroutine.resume(coroutine.create(function() | |
1859 | Grabee = gp:FindFirstChild("Torso") | |
1860 | par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char) | |
1861 | wait(0.01) | |
1862 | ||
1863 | for i=1, 78 do | |
1864 | wait(0.01) | |
1865 | for i=1, 1 do | |
1866 | p=Instance.new("Part") | |
1867 | p.TopSurface=par.TopSurface | |
1868 | p.BottomSurface=par.BottomSurface | |
1869 | p.Material=par.Material | |
1870 | p.BottomSurface=0 | |
1871 | p.Anchored=false p.CanCollide=false | |
1872 | p.BrickColor=par.BrickColor | |
1873 | p.formFactor="Custom" | |
1874 | p.Size=Vector3.new(math.random(15,35)/12,math.random(13,35)/12,math.random(15,35)/12) | |
1875 | p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-4,4),-2,math.random(-4,4)))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/5,math.random(-10,10)/20) | |
1876 | p.Parent=char | |
1877 | game:GetService("Debris"):AddItem(p,3+i*.1) | |
1878 | p.Velocity=Vector3.new(math.random(-10,10)*4,math.random(40,80),math.random(-10,10)*4) | |
1879 | p.RotVelocity=p.Velocity | |
1880 | if math.random(1,5)==5 then | |
1881 | coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=15 f.RiseVelocity=10 f.Opacity=.1 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p) | |
1882 | end | |
1883 | end | |
1884 | Swait(.025) | |
1885 | end | |
1886 | ||
1887 | end)) | |
1888 | for i = 1, 100 do | |
1889 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
1890 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.4)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-13)), 0.3) | |
1891 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3) | |
1892 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3) | |
1893 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(80), math.rad(30), math.rad(-20)), 0.3) | |
1894 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(70), math.rad(-15), math.rad(20)), 0.3) | |
1895 | if Debounces.on == false then end | |
1896 | rs:wait() | |
1897 | end | |
1898 | asd:Destroy() | |
1899 | gp = nil | |
1900 | hum1.Health = 0 | |
1901 | attack = false | |
1902 | ht = nil | |
1903 | NoAnims = false | |
1904 | Grab = false | |
1905 | end | |
1906 | end | |
1907 | ||
1908 | ||
1909 | ||
1910 | ||
1911 | ||
1912 | ||
1913 | ||
1914 | ||
1915 | ||
1916 | ||
1917 | ||
1918 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1919 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1920 | local List = {} | |
1921 | for i,v in pairs(workspace:GetChildren())do | |
1922 | if v:IsA("Model")then | |
1923 | if v:findFirstChild("Torso")then | |
1924 | if v ~= char then | |
1925 | if(v.Torso.Position -Position).magnitude <= Distance then | |
1926 | table.insert(List,v) | |
1927 | end | |
1928 | end | |
1929 | end | |
1930 | end | |
1931 | end | |
1932 | return List | |
1933 | end | |
1934 | ||
1935 | ||
1936 | ||
1937 | function Ring() | |
1938 | ||
1939 | ||
1940 | local effspwn = Instance.new("Part") | |
1941 | local model = Instance.new("Model") | |
1942 | game.Debris:AddItem(model, 20) | |
1943 | model.Name = "smasheffects" | |
1944 | model.Parent = workspace | |
1945 | effspwn.Name = "spwnr" | |
1946 | effspwn.Size = Vector3.new(1, 1, 1) | |
1947 | effspwn.Anchored = true | |
1948 | effspwn.CanCollide = false | |
1949 | effspwn.Transparency = 1 | |
1950 | effspwn.CFrame = root.CFrame * CFrame.Angles(math.rad(180), 0, 0) | |
1951 | effspwn.Parent = model | |
1952 | ||
1953 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do | |
1954 | if v:FindFirstChild('Humanoid') then | |
1955 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1956 | v.Humanoid.PlatformStand = true | |
1957 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 200 | |
1958 | end | |
1959 | end | |
1960 | coroutine.resume(coroutine.create(function() | |
1961 | local shok = Instance.new("Part") | |
1962 | shok.Name = "wring1" | |
1963 | shok.BrickColor = BrickColor.new("Really red") | |
1964 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
1965 | shok.Size = Vector3.new(1, 1, 1) | |
1966 | shok.Anchored = true | |
1967 | shok.Material = "Neon" | |
1968 | shok.Transparency = 0.25 | |
1969 | shok.CanCollide = false | |
1970 | shok.Parent = model | |
1971 | game.Debris:AddItem(shok, 12) | |
1972 | local mesh = Instance.new("SpecialMesh") | |
1973 | mesh.MeshType = "FileMesh" | |
1974 | mesh.MeshId = "rbxassetid://3270017" | |
1975 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
1976 | mesh.Parent = shok | |
1977 | for e = 1, 30 do | |
1978 | wait() | |
1979 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
1980 | shok.Transparency = shok.Transparency + 0.002 | |
1981 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1982 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1983 | end | |
1984 | for e = 1, 38 do | |
1985 | wait() | |
1986 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
1987 | shok.Transparency = shok.Transparency + 0.002 | |
1988 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1989 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1990 | end | |
1991 | for e = 1, 24 do | |
1992 | wait() | |
1993 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
1994 | shok.Transparency = shok.Transparency + 0.03 | |
1995 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1996 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1997 | end | |
1998 | end)) | |
1999 | coroutine.resume(coroutine.create(function() | |
2000 | local shok = Instance.new("Part") | |
2001 | shok.Name = "wring2" | |
2002 | shok.BrickColor = BrickColor.new("Really red") | |
2003 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
2004 | shok.Size = Vector3.new(1, 1, 1) | |
2005 | shok.Anchored = true | |
2006 | shok.Material = "Neon" | |
2007 | shok.Transparency = 0.25 | |
2008 | shok.CanCollide = false | |
2009 | shok.Parent = model | |
2010 | game.Debris:AddItem(shok, 12) | |
2011 | local mesh = Instance.new("SpecialMesh") | |
2012 | mesh.MeshType = "FileMesh" | |
2013 | mesh.MeshId = "rbxassetid://3270017" | |
2014 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
2015 | mesh.Parent = shok | |
2016 | for e = 1, 30 do | |
2017 | wait() | |
2018 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
2019 | shok.Transparency = shok.Transparency + 0.002 | |
2020 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
2021 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
2022 | end | |
2023 | for e = 1, 38 do | |
2024 | wait() | |
2025 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
2026 | shok.Transparency = shok.Transparency + 0.002 | |
2027 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2028 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
2029 | end | |
2030 | for e = 1, 24 do | |
2031 | wait() | |
2032 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
2033 | shok.Transparency = shok.Transparency + 0.03 | |
2034 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2035 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
2036 | end | |
2037 | end)) | |
2038 | ||
2039 | coroutine.resume(coroutine.create(function() | |
2040 | local shok = Instance.new("Part") | |
2041 | shok.Name = "shokwve" | |
2042 | shok.BrickColor = BrickColor.new("Really black") | |
2043 | shok.Position = effspwn.Position + Vector3.new(0, 5, 0) | |
2044 | shok.Size = Vector3.new(1, 1, 1) | |
2045 | shok.Anchored = true | |
2046 | shok.Material = "Neon" | |
2047 | shok.Transparency = 0.6 | |
2048 | shok.CanCollide = false | |
2049 | shok.Parent = model | |
2050 | game.Debris:AddItem(shok, 12) | |
2051 | local mesh = Instance.new("SpecialMesh") | |
2052 | mesh.MeshType = "FileMesh" | |
2053 | mesh.MeshId = "rbxassetid://489415447" | |
2054 | mesh.Scale = Vector3.new(1, 1, 1) | |
2055 | mesh.Parent = shok | |
2056 | for e = 1, 12 do | |
2057 | wait() | |
2058 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
2059 | shok.Transparency = shok.Transparency + 0.002 | |
2060 | end | |
2061 | for e = 1, 32 do | |
2062 | wait() | |
2063 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
2064 | shok.Transparency = shok.Transparency + 0.002 | |
2065 | end | |
2066 | for e = 1, 24 do | |
2067 | wait() | |
2068 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
2069 | shok.Transparency = shok.Transparency + 0.03 | |
2070 | end | |
2071 | end)) | |
2072 | coroutine.resume(coroutine.create(function() | |
2073 | local shok = Instance.new("Part") | |
2074 | shok.Name = "shock2" | |
2075 | shok.BrickColor = BrickColor.new("Really black") | |
2076 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
2077 | shok.Size = Vector3.new(1, 1, 1) | |
2078 | shok.Anchored = true | |
2079 | shok.Material = "Neon" | |
2080 | shok.Transparency = 0.35 | |
2081 | shok.CanCollide = false | |
2082 | shok.Parent = model | |
2083 | game.Debris:AddItem(shok, 12) | |
2084 | local mesh = Instance.new("SpecialMesh") | |
2085 | mesh.MeshType = "FileMesh" | |
2086 | mesh.MeshId = "rbxassetid://489415447" | |
2087 | mesh.Scale = Vector3.new(12, 12, 12) | |
2088 | mesh.Parent = shok | |
2089 | for e = 1, 15 do | |
2090 | wait() | |
2091 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
2092 | shok.Transparency = shok.Transparency + 0.004 | |
2093 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
2094 | end | |
2095 | for e = 1, 16 do | |
2096 | wait() | |
2097 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
2098 | shok.Transparency = shok.Transparency + 0.004 | |
2099 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
2100 | end | |
2101 | for e = 1, 12 do | |
2102 | wait() | |
2103 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
2104 | shok.Transparency = shok.Transparency + 0.06 | |
2105 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
2106 | end | |
2107 | end)) | |
2108 | coroutine.resume(coroutine.create(function() | |
2109 | local shok = Instance.new("Part") | |
2110 | shok.Name = "shock3" | |
2111 | shok.BrickColor = BrickColor.new("Really red") | |
2112 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
2113 | shok.Size = Vector3.new(1, 1, 1) | |
2114 | shok.Anchored = true | |
2115 | shok.Material = "Neon" | |
2116 | shok.Transparency = 0.35 | |
2117 | shok.CanCollide = false | |
2118 | shok.Parent = model | |
2119 | game.Debris:AddItem(shok, 12) | |
2120 | local mesh = Instance.new("SpecialMesh") | |
2121 | mesh.MeshType = "FileMesh" | |
2122 | mesh.MeshId = "rbxassetid://489415447" | |
2123 | mesh.Scale = Vector3.new(12, 12, 12) | |
2124 | mesh.Parent = shok | |
2125 | for e = 1, 15 do | |
2126 | wait() | |
2127 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
2128 | shok.Transparency = shok.Transparency + 0.004 | |
2129 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2130 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2131 | end | |
2132 | for e = 1, 16 do | |
2133 | wait() | |
2134 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
2135 | shok.Transparency = shok.Transparency + 0.004 | |
2136 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2137 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2138 | end | |
2139 | for e = 1, 12 do | |
2140 | wait() | |
2141 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
2142 | shok.Transparency = shok.Transparency + 0.06 | |
2143 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2144 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2145 | end | |
2146 | end)) | |
2147 | ||
2148 | end | |
2149 | ||
2150 | ||
2151 | ||
2152 | ||
2153 | ||
2154 | ||
2155 | ||
2156 | it=Instance.new | |
2157 | vt=Vector3.new | |
2158 | cf=CFrame.new | |
2159 | ||
2160 | function NoOutline(Part) | |
2161 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
2162 | end | |
2163 | ||
2164 | ||
2165 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
2166 | local fp=it("Part") | |
2167 | fp.formFactor=formfactor | |
2168 | fp.Parent=parent | |
2169 | fp.Reflectance=reflectance | |
2170 | fp.Transparency=transparency | |
2171 | fp.CanCollide=false | |
2172 | fp.Locked=true | |
2173 | fp.BrickColor=brickcolor | |
2174 | fp.Name=name | |
2175 | fp.Size=size | |
2176 | fp.Position=torso.Position | |
2177 | NoOutline(fp) | |
2178 | fp.Material="SmoothPlastic" | |
2179 | fp:BreakJoints() | |
2180 | return fp | |
2181 | end | |
2182 | ||
2183 | ||
2184 | ||
2185 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
2186 | local mesh=it(Mesh) | |
2187 | mesh.Parent=part | |
2188 | if Mesh=="SpecialMesh" then | |
2189 | mesh.MeshType=meshtype | |
2190 | if meshid~="nil" then | |
2191 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
2192 | end | |
2193 | end | |
2194 | mesh.Offset=offset | |
2195 | mesh.Scale=scale | |
2196 | return mesh | |
2197 | end | |
2198 | ||
2199 | function weld(parent,part0,part1,c0) | |
2200 | local weld=it("Weld") | |
2201 | weld.Parent=parent | |
2202 | weld.Part0=part0 | |
2203 | weld.Part1=part1 | |
2204 | weld.C0=c0 | |
2205 | return weld | |
2206 | end | |
2207 | ||
2208 | ||
2209 | function swait(num) | |
2210 | if num==0 or num==nil then | |
2211 | game:service'RunService'.Stepped:wait(0) | |
2212 | else | |
2213 | for i=0,num do | |
2214 | game:service'RunService'.Stepped:wait(0) | |
2215 | end | |
2216 | end | |
2217 | end | |
2218 | ||
2219 | ||
2220 | ||
2221 | ||
2222 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
2223 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
2224 | end | |
2225 | ||
2226 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
2227 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2228 | prt.Anchored=true | |
2229 | prt.CFrame=cframe | |
2230 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
2231 | --http://www.roblox.com/asset/?id=4770560 | |
2232 | game:GetService("Debris"):AddItem(prt,2) | |
2233 | CF=prt.CFrame | |
2234 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
2235 | for i=0,1,0.2 do | |
2236 | wait() | |
2237 | Part.CFrame=CF*cf(0,0,-0.4) | |
2238 | end | |
2239 | for i=0,1,delay do | |
2240 | wait() | |
2241 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
2242 | Mesh.Scale=Mesh.Scale | |
2243 | end | |
2244 | for i=0,1,0.1 do | |
2245 | wait() | |
2246 | Part.Transparency=i | |
2247 | end | |
2248 | Part.Parent=nil | |
2249 | end),prt,msh,CF) | |
2250 | end | |
2251 | ||
2252 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2253 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2254 | prt.Anchored=true | |
2255 | prt.Material = "SmoothPlastic" | |
2256 | prt.CFrame=cframe | |
2257 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2258 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2259 | game:GetService("Debris"):AddItem(prt,5) | |
2260 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2261 | for i=0,1,delay do | |
2262 | swait() | |
2263 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2264 | Part.Transparency=i | |
2265 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2266 | end | |
2267 | Part.Parent=nil | |
2268 | end),prt,msh) | |
2269 | end | |
2270 | ||
2271 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
2272 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2273 | prt.Anchored=true | |
2274 | prt.Material = "Neon" | |
2275 | prt.CFrame=cframe | |
2276 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2277 | game:GetService("Debris"):AddItem(prt,5) | |
2278 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2279 | local rtype = rottype | |
2280 | for i=0,1,delay do | |
2281 | swait() | |
2282 | if rtype == 1 then | |
2283 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2284 | elseif rtype == 2 then | |
2285 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2286 | end | |
2287 | Part.Transparency=i | |
2288 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2289 | end | |
2290 | Part.Parent=nil | |
2291 | end),prt,msh) | |
2292 | end | |
2293 | ||
2294 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2295 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2296 | prt.Anchored=true | |
2297 | prt.CFrame=cframe | |
2298 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2299 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2300 | game:GetService("Debris"):AddItem(prt,5) | |
2301 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2302 | for i=0,1,delay do | |
2303 | wait() | |
2304 | Part.Transparency=i | |
2305 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2306 | end | |
2307 | Part.Parent=nil | |
2308 | end),prt,msh) | |
2309 | end | |
2310 | ||
2311 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2312 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2313 | prt.Anchored=false | |
2314 | prt.CFrame=cframe | |
2315 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2316 | local wld=weld(prt,prt,Parent,cframe) | |
2317 | game:GetService("Debris"):AddItem(prt,5) | |
2318 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2319 | for i=0,1,delay do | |
2320 | wait() | |
2321 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
2322 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2323 | Part.Transparency=i | |
2324 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2325 | end | |
2326 | Part.Parent=nil | |
2327 | end),prt,msh,wld) | |
2328 | end | |
2329 | ||
2330 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2331 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2332 | prt.Anchored=false | |
2333 | prt.CFrame=cframe | |
2334 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2335 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
2336 | game:GetService("Debris"):AddItem(prt,5) | |
2337 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2338 | for i=0,1,delay do | |
2339 | wait() | |
2340 | Weld.C0=euler(i*20,0,0) | |
2341 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2342 | Part.Transparency=i | |
2343 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2344 | end | |
2345 | Part.Parent=nil | |
2346 | end),prt,msh,wld) | |
2347 | end | |
2348 | ||
2349 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2350 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2351 | prt.Anchored=true | |
2352 | prt.CFrame=cframe | |
2353 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2354 | game:GetService("Debris"):AddItem(prt,2) | |
2355 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2356 | for i=0,1,delay do | |
2357 | wait() | |
2358 | Part.CFrame=Part.CFrame | |
2359 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2360 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2361 | prt2.Anchored=true | |
2362 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2363 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
2364 | game:GetService("Debris"):AddItem(prt2,2) | |
2365 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2366 | for i=0,1,0.1 do | |
2367 | wait() | |
2368 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
2369 | end | |
2370 | Part.Parent=nil | |
2371 | end),prt2,msh2) | |
2372 | end | |
2373 | for i=0,1,delay*2 do | |
2374 | wait() | |
2375 | Part.CFrame=Part.CFrame | |
2376 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
2377 | end | |
2378 | Part.Parent=nil | |
2379 | end),prt,msh) | |
2380 | end | |
2381 | ||
2382 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2383 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2384 | prt.Anchored=true | |
2385 | prt.CFrame=cframe | |
2386 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2387 | game:GetService("Debris"):AddItem(prt,2) | |
2388 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2389 | for i=0,1,delay do | |
2390 | wait() | |
2391 | Part.CFrame=Part.CFrame | |
2392 | Part.Transparency=i | |
2393 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2394 | end | |
2395 | Part.Parent=nil | |
2396 | end),prt,msh) | |
2397 | end | |
2398 | ||
2399 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
2400 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2401 | prt.Anchored=true | |
2402 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2403 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2404 | game:GetService("Debris"):AddItem(prt,2) | |
2405 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
2406 | CF=Part.CFrame | |
2407 | Numbb=0 | |
2408 | randnumb=math.random()/10 | |
2409 | rand1=math.random()/10 | |
2410 | for i=0,1,rand1 do | |
2411 | wait() | |
2412 | CF=CF*cf(0,math.random()/2,0) | |
2413 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
2414 | Part.CFrame=CF*euler(Numbb,0,0) | |
2415 | Part.Transparency=i | |
2416 | Numbb=Numbb+randnumb | |
2417 | end | |
2418 | Part.Parent=nil | |
2419 | end),prt,CF,Numbb,randnumb) | |
2420 | end | |
2421 | ||
2422 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2423 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2424 | prt.Anchored=true | |
2425 | prt.CFrame=cframe | |
2426 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
2427 | game:GetService("Debris"):AddItem(prt,5) | |
2428 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2429 | for i=0,1,delay do | |
2430 | wait() | |
2431 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
2432 | Part.Transparency=i | |
2433 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2434 | end | |
2435 | Part.Parent=nil | |
2436 | end),prt,msh) | |
2437 | end | |
2438 | ||
2439 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2440 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2441 | prt.Anchored=true | |
2442 | prt.CFrame=cframe | |
2443 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
2444 | game:GetService("Debris"):AddItem(prt,2) | |
2445 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2446 | for i=0,1,delay do | |
2447 | wait() | |
2448 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
2449 | Part.Transparency=i | |
2450 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2451 | end | |
2452 | Part.Parent=nil | |
2453 | end),prt,msh) | |
2454 | end | |
2455 | ||
2456 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
2457 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2458 | prt.Anchored=true | |
2459 | prt.CFrame=cframe*cf(x,y,z) | |
2460 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
2461 | game:GetService("Debris"):AddItem(prt,5) | |
2462 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
2463 | local num=math.random() | |
2464 | local num2=math.random(-3,2)+math.random() | |
2465 | local numm=0 | |
2466 | for i=0,1,delay*2 do | |
2467 | swait() | |
2468 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
2469 | Part.Transparency=i | |
2470 | numm=numm+0.01 | |
2471 | end | |
2472 | Part.Parent=nil | |
2473 | Mesh.Parent=nil | |
2474 | end),prt,msh,x,y,z) | |
2475 | end | |
2476 | ||
2477 | ||
2478 | ||
2479 | function newRay(start,face,range,wat) | |
2480 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
2481 | hit,pos=game.Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
2482 | return rey,hit,pos | |
2483 | end | |
2484 | ||
2485 | function Landing() | |
2486 | MagicBlock(BrickColor.new("Really red"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) | |
2487 | MagicBlock(BrickColor.new("Really black"),root.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) | |
2488 | MagicBlock(BrickColor.new("Really red"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) | |
2489 | MagicBlock(BrickColor.new("Really red"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) | |
2490 | MagicBlock(BrickColor.new("Really black"),root.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) | |
2491 | MagicBlock(BrickColor.new("Really red"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) | |
2492 | ||
2493 | MagicBlock(BrickColor.new("Really red"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) | |
2494 | MagicBlock(BrickColor.new("Really black"),root.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) | |
2495 | MagicBlock(BrickColor.new("Really red"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) | |
2496 | end | |
2497 | ||
2498 | ||
2499 | ||
2500 | ||
2501 | ||
2502 | ||
2503 | ||
2504 | ||
2505 | ||
2506 | ||
2507 | function nooutline(part) | |
2508 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
2509 | end | |
2510 | ||
2511 | ||
2512 | ||
2513 | ||
2514 | function debris(cfremz, thepart, amt) | |
2515 | for j = 1, amt do | |
2516 | do | |
2517 | local pr = Instance.new("Part") | |
2518 | nooutline(pr) | |
2519 | pr.Name = "debrisobeb" | |
2520 | pr.Anchored = true | |
2521 | pr.BrickColor = thepart.BrickColor | |
2522 | pr.CanCollide = true | |
2523 | pr.Material = thepart.Material | |
2524 | pr.Transparency = thepart.Transparency | |
2525 | pr.Size = Vector3.new(math.random(16, 24), math.random(12, 16), math.random(16, 24)) | |
2526 | pr.CFrame = cfremz * CFrame.Angles(0, math.rad(amt * j), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1))) | |
2527 | pr.Parent = workspace | |
2528 | game.Debris:AddItem(pr, 25) | |
2529 | delay(15, function() | |
2530 | if pr then | |
2531 | pr.CanCollide = false | |
2532 | pr.Anchored = false | |
2533 | end | |
2534 | end) | |
2535 | end | |
2536 | end | |
2537 | for c = 1, amt do | |
2538 | do | |
2539 | local pr2 = Instance.new("Part") | |
2540 | nooutline(pr2) | |
2541 | pr2.Name = "moredebr" | |
2542 | pr2.Anchored = false | |
2543 | pr2.BrickColor = thepart.BrickColor | |
2544 | pr2.CanCollide = false | |
2545 | pr2.Material = thepart.Material | |
2546 | pr2.Transparency = thepart.Transparency | |
2547 | pr2.Size = Vector3.new(math.random(8, 18), math.random(6, 18), math.random(8, 18)) | |
2548 | pr2.CFrame = cfremz * CFrame.Angles(0, math.rad(30 * c), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1))) | |
2549 | pr2.Parent = workspace | |
2550 | pr2.Velocity = Vector3.new(math.random(-75, 75), math.random(120, 240), math.random(-75, 75)) | |
2551 | pr2.RotVelocity = Vector3.new(math.random(-35, 35), math.random(-35, 35), math.random(-35, 35)) | |
2552 | game.Debris:AddItem(pr2, 45) | |
2553 | delay(2, function() | |
2554 | pr2.CanCollide = true | |
2555 | wait(10) | |
2556 | if pr2 then | |
2557 | pr2.CanCollide = false | |
2558 | end | |
2559 | end) | |
2560 | end | |
2561 | end | |
2562 | end | |
2563 | ||
2564 | ||
2565 | ||
2566 | ||
2567 | ||
2568 | ||
2569 | ||
2570 | ||
2571 | ||
2572 | ||
2573 | function AirSlam() | |
2574 | NoAnims = true | |
2575 | attack = true | |
2576 | for i = 1, 20 do | |
2577 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2) | |
2578 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2) | |
2579 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2) | |
2580 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2) | |
2581 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2) | |
2582 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2) | |
2583 | if Debounces.on == false then break end | |
2584 | wait() | |
2585 | end | |
2586 | wait(0.5) | |
2587 | ||
2588 | ||
2589 | coroutine.resume(coroutine.create(function() | |
2590 | MagicBlock(BrickColor.new("Really red"),root.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) | |
2591 | MagicBlock(BrickColor.new("Really black"),root.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) | |
2592 | MagicBlock(BrickColor.new("Really red"),root.CFrame,10*2.5,10*2.5,10*2.5,5.5*2.5,5.5*2.5,5.5*2.5,0.15) | |
2593 | end)) | |
2594 | ||
2595 | Sound("http://www.roblox.com/asset?id = 180199750",char,90,1,false) | |
2596 | ||
2597 | hum.WalkSpeed = 60 | |
2598 | BV = Instance.new("BodyVelocity", torso) | |
2599 | BV.maxForce = Vector3.new(0,200000,0) | |
2600 | BV.P = 100000 | |
2601 | BV.velocity = Vector3.new(0,150,0) | |
2602 | for i = 1, 20 do | |
2603 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7) | |
2604 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
2605 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7) | |
2606 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7) | |
2607 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7) | |
2608 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, 0), 0.7) | |
2609 | if Debounces.on == false then break end | |
2610 | wait() | |
2611 | end | |
2612 | BV:Destroy() | |
2613 | ||
2614 | coroutine.resume(coroutine.create(function() | |
2615 | for i = 1, 2880, 48 do | |
2616 | torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(i), math.rad(0), math.rad(0)) | |
2617 | rs:wait(4) | |
2618 | end | |
2619 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
2620 | end)) | |
2621 | ||
2622 | for i = 1, 30 do | |
2623 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) | |
2624 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-16), math.rad (0), math.rad(0)), 0.3) | |
2625 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
2626 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
2627 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -1) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
2628 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.6) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
2629 | if Debounces.on == false then break end | |
2630 | wait() | |
2631 | end | |
2632 | ||
2633 | if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then | |
2634 | for i = 1, 20 do | |
2635 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-18),math.rad(0), math.rad(0)),0.3) | |
2636 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-13), math.rad (0), math.rad(0)), 0.3) | |
2637 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3) | |
2638 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)), 0.3) | |
2639 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -0.6) * CFrame.Angles(math.rad(10), 0, 0), 0.3) | |
2640 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.4) * CFrame.Angles(math.rad(-20), 0, 0), 0.3) | |
2641 | if Debounces.on == false then break end | |
2642 | wait() | |
2643 | end | |
2644 | end | |
2645 | local ry,ht,ps=nil,nil,nil | |
2646 | while ht==nil do | |
2647 | ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char}) | |
2648 | wait() | |
2649 | end | |
2650 | par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char) | |
2651 | if par then | |
2652 | local cfremz = CFrame.new(loc) | |
2653 | debris(cfremz, par, 50) | |
2654 | end | |
2655 | coroutine.resume(coroutine.create(function() | |
2656 | Ring() | |
2657 | end)) | |
2658 | Landing() | |
2659 | Sound("rbxassetid://514867425",char,90,1,false) | |
2660 | hum.WalkSpeed = 5 | |
2661 | for i = 1, 25 do | |
2662 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.3) *CFrame.Angles (math.rad(120),math.rad(10),math.rad(32)), 0.2) | |
2663 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,1,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-20)), 0.2) | |
2664 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad (-8),math.rad(-40), math.rad(-8)),0.2) | |
2665 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-50), math.rad(40), math.rad(0)), 0.2) | |
2666 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, 0, -.6) * CFrame.Angles(math.rad(30), 0, math.rad(20)), 0.2) | |
2667 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(0)), 0.2) | |
2668 | if Debounces.on == false then break end | |
2669 | wait() | |
2670 | end | |
2671 | wait(0.2) | |
2672 | attack = false | |
2673 | NoAnims = false | |
2674 | end | |
2675 | ||
2676 | ||
2677 | ||
2678 | function CreatePart(parent,transparency,reflectance,material,brickcolor) | |
2679 | local p = Instance.new("Part") | |
2680 | p.Parent = parent | |
2681 | p.Size = Vector3.new(1,1,1) | |
2682 | p.Transparency = transparency | |
2683 | p.Reflectance = reflectance | |
2684 | p.CanCollide = false | |
2685 | p.BrickColor = brickcolor | |
2686 | p.Material = material | |
2687 | return p | |
2688 | end | |
2689 | ||
2690 | ||
2691 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
2692 | local weld = Instance.new("Weld") | |
2693 | weld.Parent = parent | |
2694 | weld.Part0 = part0 | |
2695 | weld.Part1 = part1 | |
2696 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
2697 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
2698 | return weld | |
2699 | end | |
2700 | ||
2701 | ||
2702 | ||
2703 | --[[HandleR = Instance.new("Part") | |
2704 | HandleR.BrickColor = BrickColor.new("Really red") | |
2705 | HandleR.Material = "Neon" | |
2706 | HandleR.Transparency = 0.3 | |
2707 | HandleR.Size = Vector3.new(1,0.8,4) | |
2708 | HandleR.CFrame = sorb.CFrame | |
2709 | HandleRM = Instance.new("SpecialMesh",HandleR) | |
2710 | HandleRM.MeshId = "rbxasset://fonts/sword.mesh" | |
2711 | HandleRM.Scale = Vector3.new(1,1,1) | |
2712 | ||
2713 | HandleL = Instance.new("Part") | |
2714 | HandleL.BrickColor = BrickColor.new("Really red") | |
2715 | HandleL.Material = "Neon" | |
2716 | HandleL.Transparency = 0.3 | |
2717 | HandleL.Size = Vector3.new(1,0.8,4) | |
2718 | HandleL.CFrame = sorb2.CFrame | |
2719 | HandleLM = Instance.new("SpecialMesh",HandleL) | |
2720 | HandleLM.MeshId = "rbxasset://fonts/sword.mesh" | |
2721 | HandleLM.Scale = Vector3.new(1,1,1)]] | |
2722 | ||
2723 | ||
2724 | local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.new("Really red")) | |
2725 | CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
2726 | local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.new("Really red")) | |
2727 | CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
2728 | ||
2729 | ||
2730 | v3 = Vector3.new | |
2731 | rad=math.rad | |
2732 | ||
2733 | kiblade = Instance.new("Part",char) | |
2734 | kiblade.Name = "Blade" | |
2735 | kiblade.Size = v3(1,5,1) | |
2736 | kiblade.Transparency = 1 | |
2737 | kiblade.BrickColor = BrickColor.new("Really red") | |
2738 | kiblade.Position = v3(999,999,999) | |
2739 | kiblade.CanCollide = false | |
2740 | kiblademesh = Instance.new("SpecialMesh",kiblade) | |
2741 | kiblademesh.MeshType = "FileMesh" | |
2742 | kiblademesh.MeshId = "rbxassetid://898849476" | |
2743 | kiblademesh.Scale = v3(0.01,0.008,0.01) | |
2744 | kiweld7 = Instance.new("Weld",kiblade) | |
2745 | kiweld7.Part0 = rarm | |
2746 | kiweld7.Part1 = kiblade | |
2747 | kiweld7.C0 = CFrame.new(0,-2.1,0) * CFrame.Angles(rad(180),rad(0),rad(0)) | |
2748 | kiblade1 = Instance.new("Part",char) | |
2749 | kiblade1.Name = "Blade" | |
2750 | kiblade1.Transparency = 1 | |
2751 | kiblade1.Size = v3(0.1,0.1,0.1) | |
2752 | kiblade1.Position = v3(999,999,999) | |
2753 | kiblade1.CanCollide = false | |
2754 | kiblademesh = Instance.new("SpecialMesh",kiblade1) | |
2755 | kiblademesh.MeshType = "Sphere" | |
2756 | kiblademesh.Scale = v3(1,1,1) | |
2757 | kiweld = Instance.new("Weld",kiblade1) | |
2758 | kiweld.Part0 = rarm | |
2759 | kiweld.Part1 = kiblade1 | |
2760 | kiweld.C0 = CFrame.new(0,-1,0) | |
2761 | kiblade2 = Instance.new("Part",char) | |
2762 | kiblade2.Name = "Blade" | |
2763 | kiblade2.Size = v3(0.1,0.1,0.1) | |
2764 | kiblade2.Transparency = 1 | |
2765 | kiblade2.Position = v3(999,999,999) | |
2766 | kiblade2.CanCollide = false | |
2767 | kiblademesh = Instance.new("SpecialMesh",kiblade2) | |
2768 | kiblademesh.MeshType = "Sphere" | |
2769 | kiblademesh.Scale = v3(1,1,1) | |
2770 | kiweld = Instance.new("Weld",kiblade2) | |
2771 | kiweld.Part0 = rarm | |
2772 | kiweld.Part1 = kiblade2 | |
2773 | kiweld.C0 = CFrame.new(0,-4.5,0) | |
2774 | torso = game.Players.LocalPlayer.Character.Torso | |
2775 | head = game.Players.LocalPlayer.Character.Head | |
2776 | torso1 = Instance.new("Attachment",kiblade1) | |
2777 | head1 = Instance.new("Attachment",kiblade2) | |
2778 | trail = Instance.new("Trail",torso) | |
2779 | trail.Color = ColorSequence.new(Color3.fromRGB(255,0,0)) | |
2780 | trail.Attachment0 = torso1 | |
2781 | trail.Attachment1 = head1 | |
2782 | trail.Lifetime = 0.5 | |
2783 | trail.Enabled = false | |
2784 | ||
2785 | ||
2786 | ||
2787 | ||
2788 | kiblade2 = Instance.new("Part",char) | |
2789 | kiblade2.Name = "Blade" | |
2790 | kiblade2.Size = v3(1,5,1) | |
2791 | kiblade2.Transparency = 1 | |
2792 | kiblade2.BrickColor = BrickColor.new("Really red") | |
2793 | kiblade2.Position = v3(999,999,999) | |
2794 | kiblade2.CanCollide = false | |
2795 | kiblademesh2 = Instance.new("SpecialMesh",kiblade2) | |
2796 | kiblademesh2.MeshType = "FileMesh" | |
2797 | kiblademesh2.MeshId = "rbxassetid://898849476" | |
2798 | kiblademesh2.Scale = v3(0.01,0.008,0.01) | |
2799 | kiweld72 = Instance.new("Weld",kiblade2) | |
2800 | kiweld72.Part0 = larm | |
2801 | kiweld72.Part1 = kiblade2 | |
2802 | kiweld72.C0 = CFrame.new(0,-2.1,0) * CFrame.Angles(rad(180),rad(0),rad(0)) | |
2803 | kiblade12 = Instance.new("Part",char) | |
2804 | kiblade12.Name = "Blade" | |
2805 | kiblade12.Transparency = 1 | |
2806 | kiblade12.Size = v3(0.1,0.1,0.1) | |
2807 | kiblade12.Position = v3(999,999,999) | |
2808 | kiblade12.CanCollide = false | |
2809 | kiblademesh2 = Instance.new("SpecialMesh",kiblade12) | |
2810 | kiblademesh2.MeshType = "Sphere" | |
2811 | kiblademesh2.Scale = v3(1,1,1) | |
2812 | kiweld2 = Instance.new("Weld",kiblade12) | |
2813 | kiweld2.Part0 = larm | |
2814 | kiweld2.Part1 = kiblade12 | |
2815 | kiweld2.C0 = CFrame.new(0,-1,0) | |
2816 | kiblade22 = Instance.new("Part",char) | |
2817 | kiblade22.Name = "Blade" | |
2818 | kiblade22.Size = v3(0.1,0.1,0.1) | |
2819 | kiblade22.Transparency = 1 | |
2820 | kiblade22.Position = v3(999,999,999) | |
2821 | kiblade22.CanCollide = false | |
2822 | kiblademesh2 = Instance.new("SpecialMesh",kiblade22) | |
2823 | kiblademesh2.MeshType = "Sphere" | |
2824 | kiblademesh2.Scale = v3(1,1,1) | |
2825 | kiweld2 = Instance.new("Weld",kiblade22) | |
2826 | kiweld2.Part0 = larm | |
2827 | kiweld2.Part1 = kiblade22 | |
2828 | kiweld2.C0 = CFrame.new(0,-4.5,0) | |
2829 | torso2 = game.Players.LocalPlayer.Character.Torso | |
2830 | head2 = game.Players.LocalPlayer.Character.Head | |
2831 | torso12 = Instance.new("Attachment",kiblade12) | |
2832 | head12 = Instance.new("Attachment",kiblade22) | |
2833 | trail2 = Instance.new("Trail",torso2) | |
2834 | trail2.Color = ColorSequence.new(Color3.fromRGB(255,0,0)) | |
2835 | trail2.Attachment0 = torso12 | |
2836 | trail2.Attachment1 = head12 | |
2837 | trail2.Lifetime = 0.5 | |
2838 | trail2.Enabled = false | |
2839 | ||
2840 | ||
2841 | ||
2842 | local Gibs = game.Workspace | |
2843 | ||
2844 | ||
2845 | ||
2846 | ||
2847 | ||
2848 | ||
2849 | ||
2850 | ||
2851 | ||
2852 | ||
2853 | ||
2854 | ||
2855 | function Kill(Character) | |
2856 | Character.Humanoid.Health = 0 | |
2857 | local poo = Instance.new("IntValue",Character) | |
2858 | poo.Name = "haha nope" | |
2859 | local svch = Character | |
2860 | local hum = Character:findFirstChild("Humanoid") | |
2861 | Character.Archivable = true | |
2862 | local chrclone = Character:clone() | |
2863 | Character.Archivable = false | |
2864 | ||
2865 | local ch = chrclone:GetChildren() | |
2866 | local i | |
2867 | for i = 1,#ch do | |
2868 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then | |
2869 | ch[i]:remove() | |
2870 | end | |
2871 | end | |
2872 | local function Scan(ch) | |
2873 | local e | |
2874 | for e = 1,#ch do | |
2875 | Scan(ch[e]:GetChildren()) | |
2876 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
2877 | ch[e]:remove() | |
2878 | end | |
2879 | end | |
2880 | end | |
2881 | Scan(chrclone:GetChildren()) | |
2882 | ||
2883 | local hum2 = chrclone:findFirstChild("Humanoid") | |
2884 | ||
2885 | ||
2886 | if hum2 ~= nil then | |
2887 | hum2.Name = "Humanoid2" | |
2888 | hum2.PlatformStand = true | |
2889 | hum2.Sit = true | |
2890 | hum2.MaxHealth = 0 | |
2891 | hum2.Health = 0 | |
2892 | end | |
2893 | ||
2894 | local ch = Character:GetChildren() | |
2895 | local i | |
2896 | for i = 1,#ch do | |
2897 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
2898 | ch[i]:remove() | |
2899 | end | |
2900 | end | |
2901 | ||
2902 | wait(0.2) | |
2903 | ||
2904 | local ch = Character:GetChildren() | |
2905 | local i | |
2906 | for i = 1,#ch do | |
2907 | if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
2908 | ch[i]:remove() | |
2909 | end | |
2910 | end | |
2911 | Character = chrclone | |
2912 | local Torso = Character.Torso | |
2913 | local movevector = Vector3.new() | |
2914 | ||
2915 | if Torso then | |
2916 | local Head = Character:FindFirstChild("Head") | |
2917 | local Limb = Character:FindFirstChild("Right Arm") | |
2918 | if Limb then | |
2919 | ||
2920 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
2921 | local Joint = Instance.new("Glue") | |
2922 | Joint.Name = "RightShoulder" | |
2923 | Joint.Part0 = Torso | |
2924 | Joint.Part1 = Limb | |
2925 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
2926 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
2927 | Joint.Parent = Torso | |
2928 | ||
2929 | local B = Instance.new("Part") | |
2930 | B.TopSurface = 0 | |
2931 | B.BottomSurface = 0 | |
2932 | B.formFactor = "Symmetric" | |
2933 | B.Size = Vector3.new(1, 1, 1) | |
2934 | B.Transparency = 1 | |
2935 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
2936 | B.Parent = Character | |
2937 | local W = Instance.new("Weld") | |
2938 | W.Part0 = Limb | |
2939 | W.Part1 = B | |
2940 | W.C0 = CFrame.new(0, -0.5, 0) | |
2941 | W.Parent = Limb | |
2942 | ||
2943 | end | |
2944 | local Limb = Character:FindFirstChild("Left Arm") | |
2945 | if Limb then | |
2946 | ||
2947 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
2948 | local Joint = Instance.new("Glue") | |
2949 | Joint.Name = "LeftShoulder" | |
2950 | Joint.Part0 = Torso | |
2951 | Joint.Part1 = Limb | |
2952 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
2953 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
2954 | Joint.Parent = Torso | |
2955 | ||
2956 | local B = Instance.new("Part") | |
2957 | B.TopSurface = 0 | |
2958 | B.BottomSurface = 0 | |
2959 | B.formFactor = "Symmetric" | |
2960 | B.Size = Vector3.new(1, 1, 1) | |
2961 | B.Transparency = 1 | |
2962 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
2963 | B.Parent = Character | |
2964 | local W = Instance.new("Weld") | |
2965 | W.Part0 = Limb | |
2966 | W.Part1 = B | |
2967 | W.C0 = CFrame.new(0, -0.5, 0) | |
2968 | W.Parent = Limb | |
2969 | ||
2970 | end | |
2971 | local Limb = Character:FindFirstChild("Right Leg") | |
2972 | if Limb then | |
2973 | ||
2974 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
2975 | local Joint = Instance.new("Glue") | |
2976 | Joint.Name = "RightHip" | |
2977 | Joint.Part0 = Torso | |
2978 | Joint.Part1 = Limb | |
2979 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
2980 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
2981 | Joint.Parent = Torso | |
2982 | ||
2983 | local B = Instance.new("Part") | |
2984 | B.TopSurface = 0 | |
2985 | B.BottomSurface = 0 | |
2986 | B.formFactor = "Symmetric" | |
2987 | B.Size = Vector3.new(1, 1, 1) | |
2988 | B.Transparency = 1 | |
2989 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
2990 | B.Parent = Character | |
2991 | local W = Instance.new("Weld") | |
2992 | W.Part0 = Limb | |
2993 | W.Part1 = B | |
2994 | W.C0 = CFrame.new(0, -0.5, 0) | |
2995 | W.Parent = Limb | |
2996 | ||
2997 | end | |
2998 | local Limb = Character:FindFirstChild("Left Leg") | |
2999 | if Limb then | |
3000 | ||
3001 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
3002 | local Joint = Instance.new("Glue") | |
3003 | Joint.Name = "LeftHip" | |
3004 | Joint.Part0 = Torso | |
3005 | Joint.Part1 = Limb | |
3006 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
3007 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
3008 | Joint.Parent = Torso | |
3009 | ||
3010 | local B = Instance.new("Part") | |
3011 | B.TopSurface = 0 | |
3012 | B.BottomSurface = 0 | |
3013 | B.formFactor = "Symmetric" | |
3014 | B.Size = Vector3.new(1, 1, 1) | |
3015 | B.Transparency = 1 | |
3016 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
3017 | B.Parent = Character | |
3018 | local W = Instance.new("Weld") | |
3019 | W.Part0 = Limb | |
3020 | W.Part1 = B | |
3021 | W.C0 = CFrame.new(0, -0.5, 0) | |
3022 | W.Parent = Limb | |
3023 | ||
3024 | end | |
3025 | --[ | |
3026 | local Bar = Instance.new("Part") | |
3027 | Bar.TopSurface = 0 | |
3028 | Bar.BottomSurface = 0 | |
3029 | Bar.formFactor = "Symmetric" | |
3030 | Bar.Size = Vector3.new(1, 1, 1) | |
3031 | Bar.Transparency = 1 | |
3032 | Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
3033 | Bar.Parent = Character | |
3034 | local Weld = Instance.new("Weld") | |
3035 | Weld.Part0 = Torso | |
3036 | Weld.Part1 = Bar | |
3037 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
3038 | Weld.Parent = Torso | |
3039 | --]] | |
3040 | end | |
3041 | Character.Parent = Gibs | |
3042 | game.Debris:AddItem(Character, 12) | |
3043 | if movevector ~= Vector3.new() then | |
3044 | for i = 1,10 do | |
3045 | wait() | |
3046 | Torso.Velocity = Vector3.new(0,0,-100) | |
3047 | Head.Velocity = movevector * 200 | |
3048 | end | |
3049 | end | |
3050 | end | |
3051 | ||
3052 | ||
3053 | ||
3054 | function SpinSlice() | |
3055 | NoAnims = true | |
3056 | attack = true | |
3057 | ||
3058 | ||
3059 | Sound("rbxassetid://588738949",char,90,1,false) | |
3060 | kiblade.Transparency = 0 | |
3061 | kiblade2.Transparency = 0 | |
3062 | trail.Enabled = true | |
3063 | trail2.Enabled = true | |
3064 | ||
3065 | hum.WalkSpeed = 0 | |
3066 | for i = 1,40 do | |
3067 | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05) | |
3068 | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25) | |
3069 | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25) | |
3070 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.6,-0.2)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(90)), 0.5)--arm | |
3071 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.2)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-90)), 0.5)--arm | |
3072 | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25) | |
3073 | if Debounces.on == false then break end | |
3074 | wait() | |
3075 | end | |
3076 | ||
3077 | ||
3078 | coroutine.resume(coroutine.create(function() | |
3079 | local BF = Instance.new("BodyVelocity",hed) | |
3080 | BF.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
3081 | BF.velocity = root.CFrame.lookVector*120 | |
3082 | wait(2.0) | |
3083 | BF:remove() | |
3084 | end)) | |
3085 | ||
3086 | coroutine.resume(coroutine.create(function() | |
3087 | Sound("rbxassetid://588734356",char,90,1,false) | |
3088 | wait(.1) | |
3089 | Sound("rbxassetid://588734356",char,90,1,false) | |
3090 | wait(.1) | |
3091 | Sound("rbxassetid://588734356",char,90,1,false) | |
3092 | wait(.1) | |
3093 | Sound("rbxassetid://588734356",char,90,1,false) | |
3094 | wait(.1) | |
3095 | Sound("rbxassetid://588734356",char,90,1,false) | |
3096 | wait(.1) | |
3097 | Sound("rbxassetid://588734356",char,90,1,false) | |
3098 | wait(.1) | |
3099 | Sound("rbxassetid://588734356",char,90,1,false) | |
3100 | wait(.1) | |
3101 | Sound("rbxassetid://588734356",char,90,1,false) | |
3102 | end)) | |
3103 | local HitBox = Instance.new("Part",rarm) | |
3104 | HitBox.Size = Vector3.new(1,5,1) | |
3105 | HitBox.CanCollide = false | |
3106 | HitBox.Transparency = 1 | |
3107 | local HitBox2 = Instance.new("Weld",HitBox) | |
3108 | HitBox2.Part0 = rarm | |
3109 | HitBox2.Part1 = HitBox | |
3110 | HitBox2.C0 = CFrame.new(0,-1.8,0) | |
3111 | HitBox.Touched:connect(function(hit) | |
3112 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= char.Name then | |
3113 | Kill(hit.Parent) | |
3114 | hit.Parent.Humanoid.PlatformStand = true | |
3115 | end | |
3116 | end) | |
3117 | ||
3118 | local HitBox2 = Instance.new("Part",larm) | |
3119 | HitBox2.Size = Vector3.new(1,5,1) | |
3120 | HitBox2.CanCollide = false | |
3121 | HitBox2.Transparency = 1 | |
3122 | local HitBox22 = Instance.new("Weld",HitBox2) | |
3123 | HitBox22.Part0 = larm | |
3124 | HitBox22.Part1 = HitBox2 | |
3125 | HitBox22.C0 = CFrame.new(0,-1.8,0) | |
3126 | HitBox2.Touched:connect(function(hit) | |
3127 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= char.Name then | |
3128 | Kill(hit.Parent) | |
3129 | hit.Parent.Humanoid.PlatformStand = true | |
3130 | end | |
3131 | end) | |
3132 | ||
3133 | for i = 1,40 do | |
3134 | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05) | |
3135 | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25) | |
3136 | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25) | |
3137 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.6,-0.2)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(90)), 0.5)--arm | |
3138 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.2)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(-90)), 0.5)--arm | |
3139 | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25) | |
3140 | root.CFrame = root.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0) | |
3141 | if Debounces.on == false then break end | |
3142 | wait() | |
3143 | end | |
3144 | kiblade.Transparency = 1 | |
3145 | kiblade2.Transparency = 1 | |
3146 | trail.Enabled = false | |
3147 | trail2.Enabled = false | |
3148 | HitBox:Destroy() | |
3149 | HitBox2:Destroy() | |
3150 | hum.WalkSpeed = 5 | |
3151 | attack = false | |
3152 | NoAnims = false | |
3153 | end | |
3154 | ||
3155 | ||
3156 | ||
3157 | ||
3158 | function hito(partoz, magn, dmg, debtim) | |
3159 | for _, guy in pairs(workspace:GetChildren()) do | |
3160 | if guy:FindFirstChildOfClass("Humanoid") and guy:FindFirstChild("Head") and guy ~= char and magn > (guy:FindFirstChild("Head").Position - partoz.Position).magnitude and guy:FindFirstChild("Head"):FindFirstChild("alabo") == nil then | |
3161 | do | |
3162 | local humz = guy:FindFirstChildOfClass("Humanoid") | |
3163 | local hed = guy:FindFirstChild("Head") | |
3164 | humz:TakeDamage(math.random(15,30)) if Full == true then guy:BreakJoints() | |
3165 | local db = Instance.new("StringValue") | |
3166 | db.Name = "alabo" | |
3167 | db.Parent = hed | |
3168 | delay(debtim, function() | |
3169 | db:Destroy() | |
3170 | end) | |
3171 | end | |
3172 | end | |
3173 | end | |
3174 | end | |
3175 | end | |
3176 | ||
3177 | ||
3178 | ||
3179 | ang = CFrame.Angles | |
3180 | rd = math.rad | |
3181 | rd2 = math.random | |
3182 | ov = false | |
3183 | ||
3184 | ||
3185 | ||
3186 | nooutline = function(i) | |
3187 | i.TopSurface = 10 | |
3188 | end | |
3189 | makepart = function(l, m, n, o, p, q, r) | |
3190 | local s = Instance.new("Part") | |
3191 | s.BrickColor = BrickColor.new(l) | |
3192 | s.Name = m | |
3193 | s.Transparency = o | |
3194 | nooutline(s) | |
3195 | s.Reflectance = n | |
3196 | s.Material = p | |
3197 | s.Anchored = true | |
3198 | s.CanCollide = false | |
3199 | s.Locked = true | |
3200 | s.CFrame = r | |
3201 | s.Size = Vector3.new(0.2, 0.2, 0.2) | |
3202 | s.Parent = q | |
3203 | return s | |
3204 | end | |
3205 | ||
3206 | makemesh = function(t, u, v, w) | |
3207 | local x = Instance.new("SpecialMesh") | |
3208 | x.MeshType = t | |
3209 | x.Scale = u | |
3210 | if t == "FileMesh" then | |
3211 | x.MeshId = v | |
3212 | end | |
3213 | x.Parent = w | |
3214 | return x | |
3215 | end | |
3216 | ||
3217 | local H = {} | |
3218 | ||
3219 | ||
3220 | Barrage = function() | |
3221 | modz = Instance.new("Model") | |
3222 | modz.Name = "efx" | |
3223 | modz.Parent = char | |
3224 | ov = true | |
3225 | hum.AutoRotate = false | |
3226 | local aN = nil | |
3227 | local a9 = true | |
3228 | local aa = {} | |
3229 | local ab = {} | |
3230 | local b7 = {} | |
3231 | for j = 1, 16 do | |
3232 | local ac = Instance.new("Part") | |
3233 | nooutline(ac) | |
3234 | ac.Anchored = true | |
3235 | ac.Locked = true | |
3236 | ac.CanCollide = false | |
3237 | ac.Material = "Neon" | |
3238 | ac.Size = Vector3.new(1, 1, 1) | |
3239 | ac.Transparency = 1 | |
3240 | ac.CFrame = CFrame.new(0, 1000, 0) | |
3241 | ac.Parent = modz | |
3242 | ac.BrickColor = BrickColor.new("Really red") | |
3243 | makemesh("Sphere", (Vector3.new(0, 0, 0)), nil, ac) | |
3244 | table.insert(aa, ac) | |
3245 | end | |
3246 | for j = 1, 40 do | |
3247 | local a3 = makepart("Really red", "nah", 0, 1, "Neon", modz, cf(0, 1000, 0)) | |
3248 | makemesh("FileMesh", Vector3.new(0, 0, 0), "rbxassetid://489415447", a3) | |
3249 | table.insert(ab, a3) | |
3250 | end | |
3251 | for j = 1, 30 do | |
3252 | local a3 = makepart("Really red", "nah", 0, 1, "Neon", modz, cf(0, 1000, 0)) | |
3253 | makemesh("FileMesh", Vector3.new(0, 0, 0), "rbxassetid://3270017", a3) | |
3254 | table.insert(b7, a3) | |
3255 | end | |
3256 | local b8 = makemesh("FileMesh", Vector3.new(0, 0, 0), "", rarm) | |
3257 | local b9 = makemesh("FileMesh", Vector3.new(0, 0, 0), "", larm) | |
3258 | for I,aO in pairs(H) do | |
3259 | if aO.Parent == rarm or aO.Parent == larm then | |
3260 | aN = aO.Transparency | |
3261 | aO.Transparency = 1 | |
3262 | end | |
3263 | end | |
3264 | local a8 = Instance.new("BodyGyro") | |
3265 | a8.MaxTorque = Vector3.new(1050, 3000, 750) | |
3266 | a8.CFrame = CFrame.new(root.Position, mouse.Hit.p) | |
3267 | a8.P = 580000 | |
3268 | a8.D = 250 | |
3269 | a8.Parent = root | |
3270 | coroutine.resume(coroutine.create(function() | |
3271 | while a8 do | |
3272 | swait() | |
3273 | a8.CFrame = CFrame.new(root.Position, mouse.Hit.p) | |
3274 | end | |
3275 | end)) | |
3276 | local af = 0 | |
3277 | local ag = 0 | |
3278 | repeat | |
3279 | ag = ag + 1 | |
3280 | if af == 0 then | |
3281 | af = 1 | |
3282 | else | |
3283 | af = af % 14 + 1 | |
3284 | end | |
3285 | coroutine.resume(coroutine.create(function() | |
3286 | local ah = aa[af] | |
3287 | local ai = ab[af] | |
3288 | local aj = ab[af + 14] | |
3289 | local ba = b7[af] | |
3290 | ah.Size = Vector3.new(1, 1, 2) | |
3291 | ah.CFrame = cf(root.CFrame * cf(rd2(-600, 600) / 100, rd2(-150, 350) / 100, rd2(-200, -50) / 100).p, mouse.Hit * cf(rd2(-4, 4), rd2(-2, 2), 0).p) | |
3292 | ah.Transparency = 0.25 | |
3293 | ah:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(0, 0, 0) | |
3294 | ai.Transparency = 0.35 | |
3295 | ai:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(0.6, 0.6, 0.6) | |
3296 | aj.Transparency = 0.45 | |
3297 | aj:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(0.7, 0.7, 0.7) | |
3298 | aj.CFrame = ah.CFrame * ang(0, rd(90), rd(90)) | |
3299 | if af % 2 == 1 then | |
3300 | ai.CFrame = cf(rarm.CFrame * cf(rd2(-6, 6) / 10, rd2(4, 12) / 10, rd2(-12, -1) / 10).p, mouse.Hit.p) * ang(0, rd(90), rd(90)) | |
3301 | else | |
3302 | if af % 2 == 0 then | |
3303 | ai.CFrame = cf(larm.CFrame * cf(rd2(-6, 6) / 10, rd2(3, 8) / 10, rd2(-12, -1) / 10).p, mouse.Hit.p) * ang(0, rd(90), rd(90)) | |
3304 | end | |
3305 | end | |
3306 | ba.CFrame = ah.CFrame * cf(0, 0, -8) | |
3307 | ba.Transparency = 0.4 | |
3308 | ba:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(0.7, 0.7, 0.7) | |
3309 | local bb = ah.CFrame * cf(0, 0, -5) | |
3310 | local bc = aj.CFrame * cf(0, -0.1, 0) | |
3311 | local bd = ba.CFrame * cf(0, 0, rd2(-300, 50) / 100) | |
3312 | local ak = false | |
3313 | for j = 1, 12 do | |
3314 | swait() | |
3315 | local a0 = Ray.new(ah.Position, ah.CFrame.lookVector * (12.5 - j)) | |
3316 | local a1, a2 = workspace:FindPartOnRayWithIgnoreList(a0, {char}, true, true) | |
3317 | if a1 and ak == false then | |
3318 | ak = true | |
3319 | local a3 = makepart("Really red", "nah", 0, 0.2, "SmoothPlastic", modz, cf(a2, ah.CFrame.p) * ang(0, 0, 0) * ang(0, rd(270), rd(90))) | |
3320 | do | |
3321 | local a4 = makemesh("FileMesh", Vector3.new(0.4, 0.4, 0.4), "rbxassetid://489415447", a3) | |
3322 | game.Debris:AddItem(a3, 0.5) | |
3323 | local a5 = rd2(1, 12) | |
3324 | if a5 == 6 then | |
3325 | hito(a3, 3.25, 6, 0.06, ah.CFrame.lookVector * 10, Vector3.new(0, 0, rd2(-8, 8))) | |
3326 | else | |
3327 | hito(a3, 3.25, 6, 0.06, ah.CFrame.lookVector * 10) | |
3328 | end | |
3329 | coroutine.resume(coroutine.create(function() | |
3330 | for I = 1, 4 do | |
3331 | swait() | |
3332 | a4.Scale = a4.Scale + Vector3.new(0.8, 0.8, 0.8) | |
3333 | a3.Transparency = a3.Transparency + 0.2 | |
3334 | end | |
3335 | a3:Destroy() | |
3336 | end)) | |
3337 | end | |
3338 | end | |
3339 | ah.Size = ah.Size:lerp(Vector3.new(2, 2, 12), 0.5) | |
3340 | ah.CFrame = ah.CFrame:lerp(bb, 1) | |
3341 | ah:FindFirstChildOfClass("SpecialMesh").Scale = ah:FindFirstChildOfClass("SpecialMesh").Scale:lerp(Vector3.new(1, 1, 1), 0.45) | |
3342 | ah.Transparency = ah.Transparency + 0.0725 | |
3343 | ai:FindFirstChildOfClass("SpecialMesh").Scale = ai:FindFirstChildOfClass("SpecialMesh").Scale:lerp(Vector3.new(1.25, 1.2, 1.25), 0.4) | |
3344 | ai.Transparency = ai.Transparency + 0.06 | |
3345 | aj:FindFirstChildOfClass("SpecialMesh").Scale = aj:FindFirstChildOfClass("SpecialMesh").Scale:lerp(Vector3.new(1.6, 1.6, 1.6), 0.4) | |
3346 | aj.CFrame = aj.CFrame:lerp(bc, 0.3) | |
3347 | aj.Transparency = aj.Transparency + 0.05 | |
3348 | ba:FindFirstChildOfClass("SpecialMesh").Scale = ba:FindFirstChildOfClass("SpecialMesh").Scale:lerp(Vector3.new(4.5, 4.5, 4.5), 0.4) | |
3349 | ba.CFrame = ba.CFrame:lerp(bd, 0.3) | |
3350 | ba.Transparency = ba.Transparency + 0.06 | |
3351 | end | |
3352 | end)) | |
3353 | swait() | |
3354 | until ov == false | |
3355 | for I,aO in pairs(H) do | |
3356 | if aO.Parent == rarm or aO.Parent == larm then | |
3357 | aO.Transparency = aN | |
3358 | end | |
3359 | end | |
3360 | b8:Destroy() | |
3361 | b9:Destroy() | |
3362 | a8:Destroy() | |
3363 | hum.AutoRotate = true | |
3364 | ov = false | |
3365 | wait(1) | |
3366 | for I,al in pairs(aa) do | |
3367 | al:Destroy() | |
3368 | end | |
3369 | for I,am in pairs(ab) do | |
3370 | am:Destroy() | |
3371 | end | |
3372 | for I,be in pairs(b7) do | |
3373 | be:Destroy() | |
3374 | end | |
3375 | end | |
3376 | ||
3377 | ||
3378 | ||
3379 | ||
3380 | ||
3381 | ||
3382 | function Kneel() | |
3383 | ||
3384 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do | |
3385 | if v:FindFirstChild('Humanoid') then | |
3386 | ||
3387 | hum2 = v:FindFirstChild('Humanoid') | |
3388 | hum2.PlatformStand=true | |
3389 | ||
3390 | end | |
3391 | end | |
3392 | end | |
3393 | ||
3394 | --[[mouse.KeyDown:connect(function(key) | |
3395 | if key == "l" and Trans == false and Strength then | |
3396 | Transformation() | |
3397 | Trans = true | |
3398 | end | |
3399 | end)]] | |
3400 | ||
3401 | ||
3402 | ||
3403 | mouse.KeyDown:connect(function(key) | |
3404 | if key == "z" then | |
3405 | GrabAndDrag() | |
3406 | end | |
3407 | end) | |
3408 | ||
3409 | ||
3410 | mouse.KeyDown:connect(function(key) | |
3411 | if key == "x" then | |
3412 | AirSlam() | |
3413 | end | |
3414 | end) | |
3415 | ||
3416 | ||
3417 | ||
3418 | mouse.KeyDown:connect(function(key) | |
3419 | if key == "c" then | |
3420 | SpinSlice() | |
3421 | end | |
3422 | end) | |
3423 | ||
3424 | ||
3425 | mouse.KeyDown:connect(function(key) | |
3426 | if key == "p" and Full == false then | |
3427 | FullPower() | |
3428 | end | |
3429 | end) | |
3430 | ||
3431 | mouse.KeyDown:connect(function(key) | |
3432 | if key == "1" then | |
3433 | Sound("rbxassetid://966268002",char,90,1,false) | |
3434 | Kneel() | |
3435 | end | |
3436 | end) | |
3437 | ||
3438 | mouse.KeyDown:connect(function(key) | |
3439 | if key == "v" then | |
3440 | if ov == false then | |
3441 | hed.Weld.C0 = hed.Weld.C0 * CFrame.Angles(0,0,0) | |
3442 | wait() | |
3443 | local ChatService = game:GetService("Chat") | |
3444 | wait() | |
3445 | local ChatService = game:GetService("Chat") | |
3446 | coroutine.resume(coroutine.create(function() | |
3447 | s = 0 | |
3448 | repeat | |
3449 | s = s + 1 | |
3450 | Barrage() | |
3451 | wait() | |
3452 | until not ov | |
3453 | end)) | |
3454 | if Full == true then | |
3455 | coroutine.resume(coroutine.create(function() | |
3456 | s = 0 | |
3457 | repeat | |
3458 | s = s + 1 | |
3459 | Barrage() | |
3460 | wait() | |
3461 | until not ov | |
3462 | end)) | |
3463 | end | |
3464 | mouse.KeyUp:connect(function(key) | |
3465 | if key == "v" then | |
3466 | wait(0.4) | |
3467 | ov = false | |
3468 | wait(0.1) | |
3469 | end | |
3470 | end) | |
3471 | end | |
3472 | end | |
3473 | end) | |
3474 | ||
3475 | ||
3476 | ||
3477 | ||
3478 | ||
3479 | -----animations----- | |
3480 | ||
3481 | game:GetService("RunService").RenderStepped:connect(function() | |
3482 | char.Humanoid.FreeFalling:connect(function(f) | |
3483 | if f then | |
3484 | ffing = true | |
3485 | else | |
3486 | ffing = false | |
3487 | end | |
3488 | end) | |
3489 | sine = sine + add | |
3490 | if ffing==true then | |
3491 | anim="jump" | |
3492 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
3493 | anim="idle" | |
3494 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
3495 | anim = "walk" | |
3496 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
3497 | anim = "run" | |
3498 | end | |
3499 | ||
3500 | if NoAnims==false then | |
3501 | if anim=="idle" then | |
3502 | add=0.5 | |
3503 | if trans == false then | |
3504 | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),0,0),0.05) | |
3505 | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25) | |
3506 | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25) | |
3507 | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.6+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0)+-math.sin(sine/14)/7,0,-6+-math.sin(sine/14)/7),0.1) | |
3508 | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/7,0,0),0.1) | |
3509 | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),0.25) | |
3510 | else | |
3511 | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05) | |
3512 | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25) | |
3513 | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25) | |
3514 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.8,0.6,-0.6)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-90)), 0.5)--arm | |
3515 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.8,0.6,-.6)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.5)--arm | |
3516 | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25) | |
3517 | end | |
3518 | ||
3519 | elseif anim=="walk" then | |
3520 | add=0.5 | |
3521 | if trans == false then | |
3522 | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1+math.sin(sine/3.5)/3,0)*CFrame.Angles(math.rad(-10),0,0),0.25) | |
3523 | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1+math.sin(sine/7)/2,-0.15+-math.sin(sine/7)/2)*CFrame.Angles(math.rad(-20)+math.sin(sine/7)/2,0,0.05),0.25) | |
3524 | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1+-math.sin(sine/7)/2,-0.15+math.sin(sine/7)/2)*CFrame.Angles(math.rad(-20)+-math.sin(sine/7)/2,0,-0.05),0.25) | |
3525 | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5+-math.cos(sine/7)/7,0+math.sin(sine/14)/7)*CFrame.Angles(math.rad(0)+-math.sin(sine/14)/2,0,-6+-math.sin(sine/14)/7),0.1) | |
3526 | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5+-math.cos(sine/10)/14,0)*CFrame.Angles(math.rad(90)+-math.sin(sine/14)/7,0,0),0.1) | |
3527 | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),0,0),0.25) | |
3528 | else | |
3529 | change = 0.5 | |
3530 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 3), -math.sin(sine / 6) / 4) * CFrame.Angles(math.sin(sine / 6) / 2.8, -math.sin(sine / 6) / 3, math.rad(-10 - 2 * math.cos(sine / 3))), 0.2) | |
3531 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5 - 0.05 * math.cos(sine / 3), math.sin(sine / 6) / 4) * CFrame.Angles(-math.sin(sine / 6) / 2.8, -math.sin(sine / 6) / 3, math.rad(10 + 2 * math.cos(sine / 3))), 0.2) | |
3532 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8 + 2 * math.cos(sine / 3)), math.rad(0), math.rad(0)), 0.2) | |
3533 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.15 * math.cos(sine / 6) / 5, -0.15 + math.sin(sine / 6) / 5) * CFrame.Angles(math.rad(-14) + -math.sin(sine / 6) / 2.7, 0, 0), 0.4) | |
3534 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 + 0.15 * math.cos(sine / 6) / 5, -0.15 + -math.sin(sine / 6) / 5) * CFrame.Angles(math.rad(-14) + math.sin(sine / 6) / 2.7, 0, 0), 0.4) | |
3535 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.07 * math.cos(sine / 3), 0) * CFrame.Angles(math.rad(-4 + 1 * math.cos(sine / 3)), 0, math.rad(0)), 0.2) | |
3536 | end | |
3537 | ||
3538 | elseif anim=="run" then | |
3539 | add=0.5 | |
3540 | if trans == false then | |
3541 | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,-1+math.sin(sine/2)/3,0)*CFrame.Angles(math.rad(-37),0,0),0.025) | |
3542 | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1+math.sin(sine/4)/2,-0.15+-math.sin(sine/4)/2)*CFrame.Angles(math.rad(-20)+math.sin(sine/4)/2,0,0.05),0.25) | |
3543 | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1+-math.sin(sine/4)/2,-0.15+math.sin(sine/4)/2)*CFrame.Angles(math.rad(-20)+-math.sin(sine/4)/2,0,-0.05),0.25) | |
3544 | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0.1)*CFrame.Angles(math.rad(-20)+-math.sin(sine/17)/7,0,-6),0.25) | |
3545 | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0.1)*CFrame.Angles(math.rad(-20)+-math.sin(sine/17)/7,0,6),0.25) | |
3546 | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(20),0,0),0.25) | |
3547 | else | |
3548 | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,1+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-70),0,0),0.25) | |
3549 | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25) | |
3550 | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25) | |
3551 | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-20)+-math.sin(sine/14)/7,0,-6),0.25) | |
3552 | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-20)+-math.sin(sine/14)/7,0,6),0.25) | |
3553 | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0.3)*CFrame.Angles(math.rad(70),0,0),0.25) | |
3554 | end | |
3555 | ||
3556 | elseif anim=="jump" then | |
3557 | add=0.5 | |
3558 | torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0+-math.cos(sine/14)/7,.5+-math.cos(sine/14)/7,0+-math.cos(sine/14)/7)*CFrame.Angles(math.rad(0),0,0),0.05) | |
3559 | rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-0.7,-0.5)*CFrame.Angles(math.rad(10),0,0),0.25) | |
3560 | lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0.1)*CFrame.Angles(math.rad(-10),0,0),0.25) | |
3561 | rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(50),0,90),0.25) | |
3562 | larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(50),0,-90),0.25) | |
3563 | hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-20),0,0),0.25) | |
3564 | ||
3565 | end | |
3566 | end | |
3567 | ||
3568 | end) | |
3569 | ||
3570 | ||
3571 | --[[l = game.Lighting | |
3572 | l.TimeOfDay = 1 | |
3573 | game.Lighting.Ambient = Color3.new(0,0,0) | |
3574 | l.Brightness = 0.1]]-- |