SHOW:
|
|
- or go back to the newest paste.
1 | f game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | local RealPlayer = Player | |
4 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end | |
5 | ||
6 | -------Nuclear Hulk------- | |
7 | local p = game.Players.LocalPlayer | |
8 | local char = p.Character | |
9 | local mouse = p:GetMouse() | |
10 | local larm = char["Left Arm"] | |
11 | local rarm = char["Right Arm"] | |
12 | local lleg = char["Left Leg"] | |
13 | local rleg = char["Right Leg"] | |
14 | local hed = char.Head | |
15 | local torso = char.Torso | |
16 | local hum = char.Humanoid | |
17 | local cam = game.Workspace.CurrentCamera | |
18 | local root = char.HumanoidRootPart | |
19 | local deb = false | |
20 | local shot = 0 | |
21 | local l = game:GetService("Lighting") | |
22 | local rs = game:GetService("RunService").RenderStepped | |
23 | local stanceToggle = "Normal" | |
24 | local rad = math.rad | |
25 | local GroundShake = false | |
26 | local GroundShake2 = false | |
27 | math.randomseed(os.time()) | |
28 | hum.WalkSpeed = 5 | |
29 | char.Health:Destroy() | |
30 | hum.MaxHealth = math.huge | |
31 | wait(0.1) | |
32 | hum.Health = math.huge | |
33 | ---------------------------------------------------- | |
34 | Debounces = { | |
35 | on = false; | |
36 | ks = false; | |
37 | CanAttack = true; | |
38 | CanJoke = true; | |
39 | NoIdl = false; | |
40 | Slashing = false; | |
41 | Slashed = false; | |
42 | Grabbing = false; | |
43 | Grabbed = false; | |
44 | } | |
45 | local Touche = {char.Name, } | |
46 | ---------------------------------------------------- | |
47 | function lerp(a, b, t) -- Linear interpolation | |
48 | return a + (b - a)*t | |
49 | end | |
50 | ||
51 | function slerp(a, b, t) --Spherical interpolation | |
52 | dot = a:Dot(b) | |
53 | if dot > 0.99999 or dot < -0.99999 then | |
54 | return t <= 0.5 and a or b | |
55 | else | |
56 | r = math.acos(dot) | |
57 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
58 | end | |
59 | end | |
60 | ||
61 | function matrixInterpolate(a, b, t) | |
62 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
63 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
64 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
65 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
66 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
67 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
68 | local t = v1:Dot(v2) | |
69 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
70 | return CFrame.new() | |
71 | end | |
72 | return CFrame.new( | |
73 | v0.x, v0.y, v0.z, | |
74 | v1.x, v1.y, v1.z, | |
75 | v2.x, v2.y, v2.z, | |
76 | v3.x, v3.y, v3.z) | |
77 | end | |
78 | ---------------------------------------------------- | |
79 | function genWeld(a,b) | |
80 | local w = Instance.new("Weld",a) | |
81 | w.Part0 = a | |
82 | w.Part1 = b | |
83 | return w | |
84 | end | |
85 | function weld(a, b) | |
86 | local weld = Instance.new("Weld") | |
87 | weld.Name = "W" | |
88 | weld.Part0 = a | |
89 | weld.Part1 = b | |
90 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
91 | weld.Parent = a | |
92 | return weld; | |
93 | end | |
94 | ---------------------------------------------------- | |
95 | function Lerp(c1,c2,al) | |
96 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
97 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
98 | for i,v in pairs(com1) do | |
99 | com1[i] = v+(com2[i]-v)*al | |
100 | end | |
101 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
102 | end | |
103 | ---------------------------------------------------- | |
104 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
105 | local wld = Instance.new("Weld", wp1) | |
106 | wld.Part0 = wp0 | |
107 | wld.Part1 = wp1 | |
108 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
109 | end | |
110 | ---------------------------------------------------- | |
111 | for i,v in pairs(char:children()) do | |
112 | if v:IsA("Hat") then | |
113 | v:Destroy() | |
114 | end | |
115 | end | |
116 | for i,v in pairs(hed:children()) do | |
117 | if v:IsA("Sound") then | |
118 | v:Destroy() | |
119 | end | |
120 | end | |
121 | ---------------------------------------------------- | |
122 | function HasntTouched(plrname) | |
123 | local ret = true | |
124 | for _, v in pairs(Touche) do | |
125 | if v == plrname then | |
126 | ret = false | |
127 | end | |
128 | end | |
129 | return ret | |
130 | end | |
131 | ---------------------------------------------------- | |
132 | larm.Size = larm.Size * 2 | |
133 | rarm.Size = rarm.Size * 2 | |
134 | lleg.Size = lleg.Size * 2 | |
135 | rleg.Size = rleg.Size * 2 | |
136 | torso.Size = torso.Size * 2 | |
137 | hed.Size = hed.Size * 2 | |
138 | root.Size = root.Size * 2 | |
139 | ---------------------------------------------------- | |
140 | newWeld(torso, larm, -1.5, 0.5, 0) | |
141 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
142 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
143 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
144 | newWeld(torso, hed, 0, 1.5, 0) | |
145 | newWeld(torso, lleg, -0.5, -1, 0) | |
146 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
147 | newWeld(torso, rleg, 0.5, -1, 0) | |
148 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
149 | newWeld(root, torso, 0, -1, 0) | |
150 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
151 | ---------------------------------------------------- | |
152 | z = Instance.new("Sound", char) | |
153 | z.SoundId = "rbxassetid://449048980"--209113706 | |
154 | z.Looped = true | |
155 | z.Pitch = 1 | |
156 | z.Volume = 1 | |
157 | wait(.01) | |
158 | z:Play() | |
159 | ---------------------------------------------------- | |
160 | ||
161 | ||
162 | p:ClearCharacterAppearance() | |
163 | wait(0.1) | |
164 | p.Character.Head.BrickColor = BrickColor.new("Really black") | |
165 | p.Character.Torso.BrickColor = BrickColor.new("Really black") | |
166 | p.Character["Right Arm"].BrickColor = BrickColor.new("Really black") | |
167 | p.Character["Right Leg"].BrickColor = BrickColor.new("Really black") | |
168 | p.Character["Left Leg"].BrickColor = BrickColor.new("Really black") | |
169 | p.Character["Left Arm"].BrickColor = BrickColor.new("Really black") | |
170 | ||
171 | ||
172 | p.Character.Head.Material = "Granite" | |
173 | p.Character.Torso.Material = "Granite" | |
174 | p.Character["Right Arm"].Material = "Granite" | |
175 | p.Character["Right Leg"].Material = "Granite" | |
176 | p.Character["Left Leg"].Material = "Granite" | |
177 | p.Character["Left Arm"].Material = "Granite" | |
178 | ||
179 | ||
180 | ||
181 | ||
182 | ||
183 | ||
184 | ||
185 | larm1 = Instance.new("Part",char) | |
186 | larm1.Transparency = 0.5 | |
187 | larm1.BrickColor = BrickColor.new("Lime green") | |
188 | larm1.Size = Vector3.new(2.1,4.1,2.1) | |
189 | larm1.Position = Vector3.new(999,999,999) | |
190 | larm1.Material = "SmoothPlastic" | |
191 | larmhold = Instance.new("Weld",char) | |
192 | larmhold.Part0 = larm | |
193 | larmhold.Part1 = larm1 | |
194 | larmhold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
195 | rarm1 = Instance.new("Part",char) | |
196 | rarm1.Transparency = 0.5 | |
197 | rarm1.BrickColor = BrickColor.new("Lime green") | |
198 | rarm1.Size = Vector3.new(2.1,4.1,2.1) | |
199 | rarm1.Position = Vector3.new(999,999,999) | |
200 | rarm1.Material = "SmoothPlastic" | |
201 | rarmhold = Instance.new("Weld",char) | |
202 | rarmhold.Part0 = rarm | |
203 | rarmhold.Part1 = rarm1 | |
204 | rarmhold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
205 | torso1 = Instance.new("Part",char) | |
206 | torso1.Transparency = 0.5 | |
207 | torso1.BrickColor = BrickColor.new("Lime green") | |
208 | torso1.Size = Vector3.new(4.1,4.1,2.1) | |
209 | torso1.Position = Vector3.new(999,999,999) | |
210 | torso1.Material = "SmoothPlastic" | |
211 | torsohold = Instance.new("Weld",char) | |
212 | torsohold.Part0 = torso | |
213 | torsohold.Part1 = torso1 | |
214 | torsohold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
215 | lleg1 = Instance.new("Part",char) | |
216 | lleg1.Transparency = 0.5 | |
217 | lleg1.BrickColor = BrickColor.new("Lime green") | |
218 | lleg1.Size = Vector3.new(2.1,4.1,2.1) | |
219 | lleg1.Position = Vector3.new(999,999,999) | |
220 | lleg1.Material = "SmoothPlastic" | |
221 | lleghold = Instance.new("Weld",char) | |
222 | lleghold.Part0 = lleg | |
223 | lleghold.Part1 = lleg1 | |
224 | lleghold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
225 | rleg1 = Instance.new("Part",char) | |
226 | rleg1.Transparency = 0.5 | |
227 | rleg1.BrickColor = BrickColor.new("Lime green") | |
228 | rleg1.Size = Vector3.new(2.1,4.1,2.1) | |
229 | rleg1.Position = Vector3.new(999,999,999) | |
230 | rleg1.Material = "SmoothPlastic" | |
231 | rleghold = Instance.new("Weld",char) | |
232 | rleghold.Part0 = rleg | |
233 | rleghold.Part1 = rleg1 | |
234 | rleghold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
235 | rhed1 = Instance.new("Part",char) | |
236 | rhed1.Transparency = 0.5 | |
237 | rhed1.BrickColor = BrickColor.new("Lime green") | |
238 | rhed1.Size = Vector3.new(4.3,2.6,2.6) | |
239 | rhed1.Position = Vector3.new(999,999,999) | |
240 | rhed1.Material = "SmoothPlastic" | |
241 | rhedhold = Instance.new("Weld",char) | |
242 | rhedhold.Part0 = hed | |
243 | rhedhold.Part1 = rhed1 | |
244 | rhedhold.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
245 | rhedmesh1 = Instance.new("SpecialMesh",rhed1) | |
246 | rhedmesh1.MeshType = "Head" | |
247 | rhedmesh1.Scale = Vector3.new(1,1,1) | |
248 | ||
249 | ||
250 | ||
251 | ||
252 | function BurningEff(part) | |
253 | local eff1 = Instance.new("ParticleEmitter",part) | |
254 | eff1.Size = NumberSequence.new(.1) | |
255 | eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)}) | |
256 | eff1.LightEmission = 1 | |
257 | eff1.Lifetime = NumberRange.new(1) | |
258 | eff1.Speed = NumberRange.new(0) | |
259 | eff1.Rate = 100 | |
260 | eff1.Texture = "rbxassetid://284205403" | |
261 | eff1.Acceleration = Vector3.new(0,10,0) | |
262 | eff1.Color = ColorSequence.new(Color3.new(0,255,0)) | |
263 | local eff2 = Instance.new("ParticleEmitter",part) | |
264 | eff2.Size = NumberSequence.new(.1) | |
265 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)}) | |
266 | eff2.LightEmission = 1 | |
267 | eff2.Lifetime = NumberRange.new(1) | |
268 | eff2.Speed = NumberRange.new(0) | |
269 | eff2.Rate = 100 | |
270 | eff2.Texture = "rbxassetid://347504259" | |
271 | eff2.Acceleration = Vector3.new(0,10,0) | |
272 | eff2.Color = ColorSequence.new(Color3.new(0,255,0)) | |
273 | local eff3 = Instance.new("ParticleEmitter",part) | |
274 | eff3.Size = NumberSequence.new(1) | |
275 | eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)}) | |
276 | eff3.LightEmission = 1 | |
277 | eff3.Lifetime = NumberRange.new(1) | |
278 | eff3.Speed = NumberRange.new(0) | |
279 | eff3.Rate = 100 | |
280 | eff3.Texture = "rbxassetid://284205403" | |
281 | eff3.Acceleration = Vector3.new(0,10,0) | |
282 | eff3.Color = ColorSequence.new(Color3.new(0,255,0)) | |
283 | end | |
284 | ||
285 | Face = 'rbxassetid://513836869' | |
286 | local face=hed:FindFirstChild'face' | |
287 | face.Texture = Face | |
288 | ||
289 | face=Instance.new("Decal",hed) | |
290 | face.Face="Front" | |
291 | face.Texture="rbxassetid://513836869" | |
292 | ||
293 | BurningEff(hed) | |
294 | BurningEff(rarm) | |
295 | BurningEff(larm) | |
296 | BurningEff(torso) | |
297 | ||
298 | LightOnBody = Instance.new("PointLight", hed) | |
299 | LightOnBody.Brightness = 0.8 | |
300 | LightOnBody.Range = 20 | |
301 | LightOnBody.Color = Color3.new(0, 255, 0) | |
302 | ||
303 | ||
304 | CV="Pastel blue" | |
305 | ||
306 | local txt = Instance.new("BillboardGui", char) | |
307 | txt.Adornee = hed | |
308 | txt.Name = "_status" | |
309 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
310 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
311 | local text = Instance.new("TextLabel", txt) | |
312 | text.Size = UDim2.new(10, 0, 7, 0) | |
313 | text.FontSize = "Size24" | |
314 | text.TextScaled = true | |
315 | text.TextTransparency = 0 | |
316 | text.BackgroundTransparency = 1 | |
317 | text.TextTransparency = 0 | |
318 | text.TextStrokeTransparency = 0 | |
319 | text.Font = "Antique" | |
320 | text.TextStrokeColor3 = Color3.new(0,255,0) | |
321 | ||
322 | v=Instance.new("Part") | |
323 | v.Name = "ColorBrick" | |
324 | v.Parent=p.Character | |
325 | v.FormFactor="Symmetric" | |
326 | v.Anchored=true | |
327 | v.CanCollide=false | |
328 | v.BottomSurface="Smooth" | |
329 | v.TopSurface="Smooth" | |
330 | v.Size=Vector3.new(10,5,3) | |
331 | v.Transparency=1 | |
332 | v.CFrame=char.Torso.CFrame | |
333 | v.BrickColor=BrickColor.new(CV) | |
334 | v.Transparency=1 | |
335 | text.TextColor3 = Color3.new(0,0,0) | |
336 | v.Shape="Block" | |
337 | text.Text = "Critical Mass" | |
338 | ||
339 | ||
340 | ||
341 | ||
342 | if GroundShake == true then | |
343 | for i,v in pairs(workspace:GetChildren()) do | |
344 | if v:IsA("Part") then | |
345 | if v.Size.x > 150 then | |
346 | v.CFrame = CFrame.new(v.Position) * CFrame.Angles(rad(math.random(-1,1)),rad(math.random(-1,1)),rad(math.random(-1,1))) | |
347 | end | |
348 | end | |
349 | end | |
350 | ||
351 | ||
352 | ||
353 | ||
354 | end | |
355 | if GroundShake2 == true then | |
356 | ||
357 | for i,v in pairs(workspace:GetChildren()) do | |
358 | if v:IsA("Part") then | |
359 | if v.Size.x > 150 then | |
360 | v.CFrame = CFrame.new(v.Position) * CFrame.Angles(rad(math.random(-2,2)),rad(math.random(-2,2)),rad(math.random(-2,2))) | |
361 | end | |
362 | end | |
363 | end | |
364 | ||
365 | end | |
366 | ||
367 | ||
368 | ||
369 | local num = 0 | |
370 | ||
371 | ||
372 | ||
373 | GroundWave2 = function() | |
374 | local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
375 | Colors = {"White", "White"} | |
376 | local wave3 = Instance.new("Part", char) | |
377 | wave3.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
378 | wave3.Anchored = true | |
379 | wave3.Name = "Wave" | |
380 | wave3.CanCollide = false | |
381 | wave3.Locked = true | |
382 | wave3.Size = Vector3.new(1, 1, 1) | |
383 | wave3.TopSurface = "Smooth" | |
384 | wave3.BottomSurface = "Smooth" | |
385 | wave3.Transparency = 0.35 | |
386 | wave3.CFrame = HandCF | |
387 | wm1 = Instance.new("SpecialMesh", wave3) | |
388 | wm1.MeshId = "rbxassetid://3270017" | |
389 | coroutine.wrap(function() | |
390 | for i = 1, 30, 1 do | |
391 | wm1.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
392 | wave3.Size = wm1.Scale | |
393 | wave3.CFrame = HandCF | |
394 | wave3.Transparency = i/30 | |
395 | wait() | |
396 | end | |
397 | wait() | |
398 | wave3:Destroy() | |
399 | end)() | |
400 | end | |
401 | GroundWave3 = function() | |
402 | local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
403 | Colors = {"White", "White"} | |
404 | local wave2 = Instance.new("Part", char) | |
405 | wave2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
406 | wave2.Anchored = true | |
407 | wave2.Name = "Wave" | |
408 | wave2.CanCollide = false | |
409 | wave2.Locked = true | |
410 | wave2.Size = Vector3.new(1, 1, 1) | |
411 | wave2.TopSurface = "Smooth" | |
412 | wave2.BottomSurface = "Smooth" | |
413 | wave2.Transparency = 0.35 | |
414 | wave2.CFrame = HandCF | |
415 | wm2 = Instance.new("SpecialMesh", wave2) | |
416 | wm2.MeshId = "rbxassetid://3270017" | |
417 | coroutine.wrap(function() | |
418 | for i = 1, 30, 1 do | |
419 | wm2.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
420 | wave2.Size = wm2.Scale | |
421 | wave2.CFrame = HandCF | |
422 | wave2.Transparency = i/30 | |
423 | wait() | |
424 | end | |
425 | wait() | |
426 | wave2:Destroy() | |
427 | end)() | |
428 | end | |
429 | GroundWave4 = function() | |
430 | local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
431 | Colors = {"White", "White"} | |
432 | local wave1 = Instance.new("Part", char) | |
433 | wave1.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
434 | wave1.Anchored = true | |
435 | wave1.Name = "Wave" | |
436 | wave1.CanCollide = false | |
437 | wave1.Locked = true | |
438 | wave1.Size = Vector3.new(1, 1, 1) | |
439 | wave1.TopSurface = "Smooth" | |
440 | wave1.BottomSurface = "Smooth" | |
441 | wave1.Transparency = 0.35 | |
442 | wave1.CFrame = HandCF | |
443 | wm3 = Instance.new("SpecialMesh", wave1) | |
444 | wm3.MeshId = "rbxassetid://3270017" | |
445 | coroutine.wrap(function() | |
446 | for i = 1, 30, 1 do | |
447 | wm3.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
448 | wave1.Size = wm3.Scale | |
449 | wave1.CFrame = HandCF | |
450 | wave1.Transparency = i/30 | |
451 | wait() | |
452 | end | |
453 | wait() | |
454 | wave1:Destroy() | |
455 | end)() | |
456 | end | |
457 | -------------------------------------------------------------------------- | |
458 | --transform | |
459 | GroundWave5 = function() | |
460 | local HandCF = root.CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
461 | ||
462 | Colors = {"Lime green", "Lime green"} | |
463 | ||
464 | ||
465 | local wave11 = Instance.new("Part", char) | |
466 | wave11.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
467 | wave11.Anchored = true | |
468 | wave11.Name = "Wave" | |
469 | wave11.CanCollide = false | |
470 | wave11.Locked = true | |
471 | wave11.Size = Vector3.new(1, 1, 1) | |
472 | wave11.TopSurface = "Smooth" | |
473 | wave11.BottomSurface = "Smooth" | |
474 | wave11.Transparency = 0.35 | |
475 | wave11.CFrame = HandCF | |
476 | wm31 = Instance.new("SpecialMesh", wave11) | |
477 | wm31.MeshId = "rbxassetid://3270017" | |
478 | coroutine.wrap(function() | |
479 | for i = 1, 30, 1 do | |
480 | wm31.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
481 | wave11.Size = wm31.Scale | |
482 | wave11.CFrame = HandCF | |
483 | wave11.Transparency = i/30 | |
484 | wait() | |
485 | end | |
486 | wait() | |
487 | wave11:Destroy() | |
488 | end)() | |
489 | end | |
490 | GroundWave6 = function() | |
491 | local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
492 | ||
493 | Colors = {"Lime green", "Lime green"} | |
494 | ||
495 | local wave111 = Instance.new("Part", char) | |
496 | wave111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
497 | wave111.Anchored = true | |
498 | wave111.Name = "Wave" | |
499 | wave111.CanCollide = false | |
500 | wave111.Locked = true | |
501 | wave111.Size = Vector3.new(1, 1, 1) | |
502 | wave111.TopSurface = "Smooth" | |
503 | wave111.BottomSurface = "Smooth" | |
504 | wave111.Transparency = 0.35 | |
505 | wave111.CFrame = HandCF | |
506 | wm311 = Instance.new("SpecialMesh", wave111) | |
507 | wm311.MeshId = "rbxassetid://3270017" | |
508 | coroutine.wrap(function() | |
509 | for i = 1, 30, 1 do | |
510 | wm311.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
511 | wave111.Size = wm311.Scale | |
512 | wave111.CFrame = HandCF | |
513 | wave111.Transparency = i/30 | |
514 | wait() | |
515 | end | |
516 | wait() | |
517 | wave111:Destroy() | |
518 | end)() | |
519 | end | |
520 | GroundWave7 = function() | |
521 | local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
522 | ||
523 | Colors = {"Lime green", "Lime green"} | |
524 | local wave1111 = Instance.new("Part", char) | |
525 | wave1111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
526 | wave1111.Anchored = true | |
527 | wave1111.Name = "Wave" | |
528 | wave1111.CanCollide = false | |
529 | wave1111.Locked = true | |
530 | wave1111.Size = Vector3.new(1, 1, 1) | |
531 | wave1111.TopSurface = "Smooth" | |
532 | wave1111.BottomSurface = "Smooth" | |
533 | wave1111.Transparency = 0.35 | |
534 | wave1111.CFrame = HandCF | |
535 | wm3111 = Instance.new("SpecialMesh", wave1111) | |
536 | wm3111.MeshId = "rbxassetid://3270017" | |
537 | coroutine.wrap(function() | |
538 | for i = 1, 30, 1 do | |
539 | wm3111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
540 | wave1111.Size = wm3111.Scale | |
541 | wave1111.CFrame = HandCF | |
542 | wave1111.Transparency = i/30 | |
543 | wait() | |
544 | end | |
545 | wait() | |
546 | wave1111:Destroy() | |
547 | end)() | |
548 | end | |
549 | GroundWave8 = function() | |
550 | local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
551 | ||
552 | Colors = {"Lime green", "Lime green"} | |
553 | local wave11111 = Instance.new("Part", char) | |
554 | wave11111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
555 | wave11111.Anchored = true | |
556 | wave11111.Name = "Wave" | |
557 | wave11111.CanCollide = false | |
558 | wave11111.Locked = true | |
559 | wave11111.Size = Vector3.new(1, 1, 1) | |
560 | wave11111.TopSurface = "Smooth" | |
561 | wave11111.BottomSurface = "Smooth" | |
562 | wave11111.Transparency = 0.35 | |
563 | wave11111.CFrame = HandCF | |
564 | wm31111 = Instance.new("SpecialMesh", wave11111) | |
565 | wm31111.MeshId = "rbxassetid://3270017" | |
566 | coroutine.wrap(function() | |
567 | for i = 1, 30, 1 do | |
568 | wm31111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
569 | wave11111.Size = wm31111.Scale | |
570 | wave11111.CFrame = HandCF | |
571 | wave11111.Transparency = i/30 | |
572 | wait() | |
573 | end | |
574 | wait() | |
575 | wave11111:Destroy() | |
576 | end)() | |
577 | end | |
578 | GroundWave9 = function() | |
579 | local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
580 | ||
581 | Colors = {"Lime green", "Lime green"} | |
582 | local wave111111 = Instance.new("Part", char) | |
583 | wave111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
584 | wave111111.Anchored = true | |
585 | wave111111.Name = "Wave" | |
586 | wave111111.CanCollide = false | |
587 | wave111111.Locked = true | |
588 | wave111111.Size = Vector3.new(1, 1, 1) | |
589 | wave111111.TopSurface = "Smooth" | |
590 | wave111111.BottomSurface = "Smooth" | |
591 | wave111111.Transparency = 0.35 | |
592 | wave111111.CFrame = HandCF | |
593 | wm311111 = Instance.new("SpecialMesh", wave111111) | |
594 | wm311111.MeshId = "rbxassetid://3270017" | |
595 | coroutine.wrap(function() | |
596 | for i = 1, 30, 1 do | |
597 | wm311111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
598 | wave111111.Size = wm311111.Scale | |
599 | wave111111.CFrame = HandCF | |
600 | wave111111.Transparency = i/30 | |
601 | wait() | |
602 | end | |
603 | wait() | |
604 | wave111111:Destroy() | |
605 | end)() | |
606 | end | |
607 | GroundWave10 = function() | |
608 | local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
609 | ||
610 | Colors = {"Lime green", "Lime green"} | |
611 | local wave1111111 = Instance.new("Part", char) | |
612 | wave1111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
613 | wave1111111.Anchored = true | |
614 | wave1111111.Name = "Wave" | |
615 | wave1111111.CanCollide = false | |
616 | wave1111111.Locked = true | |
617 | wave1111111.Size = Vector3.new(1, 1, 1) | |
618 | wave1111111.TopSurface = "Smooth" | |
619 | wave1111111.BottomSurface = "Smooth" | |
620 | wave1111111.Transparency = 0.35 | |
621 | wave1111111.CFrame = HandCF | |
622 | wm3111111 = Instance.new("SpecialMesh", wave1111111) | |
623 | wm3111111.MeshId = "rbxassetid://3270017" | |
624 | coroutine.wrap(function() | |
625 | for i = 1, 30, 1 do | |
626 | wm3111111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
627 | wave1111111.Size = wm3111111.Scale | |
628 | wave1111111.CFrame = HandCF | |
629 | wave1111111.Transparency = i/30 | |
630 | wait() | |
631 | end | |
632 | wait() | |
633 | wave1111111:Destroy() | |
634 | end)() | |
635 | end | |
636 | ||
637 | ||
638 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
639 | ||
640 | function nooutline(part) | |
641 | part.TopSurface, part.BottomSurface, part.RightSurface, part.LeftSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
642 | end | |
643 | ||
644 | function debris(cfremz, thepart, amt) | |
645 | for j = 1, amt do | |
646 | do | |
647 | local pr = Instance.new("Part") | |
648 | nooutline(pr) | |
649 | pr.Name = "debrisobeb" | |
650 | pr.Anchored = true | |
651 | pr.BrickColor = thepart.BrickColor | |
652 | pr.CanCollide = true | |
653 | pr.Material = thepart.Material | |
654 | pr.Transparency = thepart.Transparency | |
655 | pr.Size = Vector3.new(math.random(16, 24), math.random(12, 16), math.random(16, 24)) | |
656 | 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))) | |
657 | pr.Parent = workspace | |
658 | game.Debris:AddItem(pr, 25) | |
659 | delay(15, function() | |
660 | if pr then | |
661 | pr.CanCollide = false | |
662 | pr.Anchored = false | |
663 | end | |
664 | end) | |
665 | end | |
666 | end | |
667 | for c = 1, amt do | |
668 | do | |
669 | local pr2 = Instance.new("Part") | |
670 | nooutline(pr2) | |
671 | pr2.Name = "moredebr" | |
672 | pr2.Anchored = false | |
673 | pr2.BrickColor = thepart.BrickColor | |
674 | pr2.CanCollide = false | |
675 | pr2.Material = thepart.Material | |
676 | pr2.Transparency = thepart.Transparency | |
677 | pr2.Size = Vector3.new(math.random(8, 18), math.random(6, 18), math.random(8, 18)) | |
678 | 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))) | |
679 | pr2.Parent = workspace | |
680 | pr2.Velocity = Vector3.new(math.random(-75, 75), math.random(120, 240), math.random(-75, 75)) | |
681 | pr2.RotVelocity = Vector3.new(math.random(-35, 35), math.random(-35, 35), math.random(-35, 35)) | |
682 | game.Debris:AddItem(pr2, 45) | |
683 | delay(2, function() | |
684 | pr2.CanCollide = true | |
685 | wait(10) | |
686 | if pr2 then | |
687 | pr2.CanCollide = false | |
688 | end | |
689 | end) | |
690 | end | |
691 | end | |
692 | end | |
693 | ||
694 | ||
695 | function weld5(part0, part1, c0, c1) | |
696 | weeld=Instance.new("Weld", part0) | |
697 | weeld.Part0=part0 | |
698 | weeld.Part1=part1 | |
699 | weeld.C0=c0 | |
700 | weeld.C1=c1 | |
701 | return weeld | |
702 | end | |
703 | ||
704 | ||
705 | par,loc=workspace:FindPartOnRay(Ray.new(root.Position,(root.Position-(root.Position-Vector3.new(0,2,0))).unit*-500),root) | |
706 | ||
707 | ||
708 | local acos = math.acos | |
709 | local sqrt = math.sqrt | |
710 | local Vec3 = Vector3.new | |
711 | local fromAxisAngle = CFrame.fromAxisAngle | |
712 | ||
713 | local function toAxisAngle(CFr) | |
714 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
715 | local Angle = math.acos((R00+R11+R22-1)/2) | |
716 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
717 | A = A == 0 and 0.00001 or A | |
718 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
719 | B = B == 0 and 0.00001 or B | |
720 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
721 | C = C == 0 and 0.00001 or C | |
722 | local x = (R21-R12)/sqrt(A) | |
723 | local y = (R02-R20)/sqrt(B) | |
724 | local z = (R10-R01)/sqrt(C) | |
725 | return Vec3(x,y,z),Angle | |
726 | end | |
727 | ||
728 | function ApplyTrig(Num,Func) | |
729 | local Min,Max = Func(0),Func(1) | |
730 | local i = Func(Num) | |
731 | return (i-Min)/(Max-Min) | |
732 | end | |
733 | ||
734 | function LerpCFrame(CFrame1,CFrame2,Num) | |
735 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
736 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
737 | end | |
738 | ||
739 | function Crater(Torso,Radius) | |
740 | Spawn(function() | |
741 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
742 | local Ignore = {} | |
743 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
744 | if v.Character ~= nil then | |
745 | Ignore[#Ignore+1] = v.Character | |
746 | end | |
747 | end | |
748 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
749 | if Hit == nil then return end | |
750 | local Parts = {} | |
751 | for i = 1,360,10 do | |
752 | local P = Instance.new("Part",Torso.Parent) | |
753 | P.Anchored = true | |
754 | P.FormFactor = "Custom" | |
755 | P.BrickColor = Hit.BrickColor | |
756 | P.Material = Hit.Material | |
757 | P.TopSurface = "Smooth" | |
758 | P.BottomSurface = "Smooth" | |
759 | P.CanCollide = false | |
760 | P.Size = Vector3.new(10,20,20)*(math.random(80,100)/100) | |
761 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
762 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
763 | if math.random(0,5) == 0 then -- rubble | |
764 | local P = Instance.new("Part",Torso.Parent) | |
765 | P.Anchored = true | |
766 | P.FormFactor = "Custom" | |
767 | P.BrickColor = Hit.BrickColor | |
768 | P.Material = Hit.Material | |
769 | P.TopSurface = "Smooth" | |
770 | P.CanCollide = false | |
771 | P.BottomSurface = "Smooth" | |
772 | P.Size = Vector3.new(4,4,4)*(math.random(80,100)/100) | |
773 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
774 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
775 | end | |
776 | end | |
777 | for i = 0,1,0.05 do | |
778 | for i2,v in pairs(Parts) do | |
779 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
780 | end | |
781 | wait(0.02) | |
782 | end | |
783 | for i,v in pairs(Parts) do | |
784 | if v[1].Size.X > 2.1 then | |
785 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
786 | end | |
787 | v[1].Anchored = false | |
788 | end | |
789 | for i = 0,1,0.05 do | |
790 | for i2,v in pairs(Parts) do | |
791 | v[1].Transparency = i | |
792 | if i == 1 then | |
793 | v[1]:Destroy() | |
794 | elseif i >= 0.25 then | |
795 | v[1].CanCollide = false | |
796 | end | |
797 | end | |
798 | wait(0.02) | |
799 | end | |
800 | Parts = nil | |
801 | end) | |
802 | end | |
803 | ||
804 | ||
805 | ||
806 | ||
807 | ||
808 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
809 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
810 | local List = {} | |
811 | for i,v in pairs(workspace:GetChildren())do | |
812 | if v:IsA("Model")then | |
813 | if v:findFirstChild("Torso")then | |
814 | if v ~= char then | |
815 | if(v.Torso.Position -Position).magnitude <= Distance then | |
816 | table.insert(List,v) | |
817 | end | |
818 | end | |
819 | end | |
820 | end | |
821 | end | |
822 | return List | |
823 | end | |
824 | ||
825 | ||
826 | ||
827 | function FindNearestHead(Position,Distance,SinglePlayer) | |
828 | if SinglePlayer then return(SinglePlayer.Head.CFrame.p -Position).magnitude < Distance end | |
829 | local List = {} | |
830 | for i,v in pairs(workspace:GetChildren())do | |
831 | if v:IsA("Model")then | |
832 | if v:findFirstChild("Head")then | |
833 | if v ~= char then | |
834 | if(v.Head.Position -Position).magnitude <= Distance then | |
835 | table.insert(List,v) | |
836 | end | |
837 | end | |
838 | end | |
839 | end | |
840 | end | |
841 | return List | |
842 | end | |
843 | ||
844 | ||
845 | ||
846 | function FindNearestRightArm(Position,Distance,SinglePlayer) | |
847 | if SinglePlayer then return(SinglePlayer.RightArm.CFrame.p -Position).magnitude < Distance end | |
848 | local List = {} | |
849 | for i,v in pairs(workspace:GetChildren())do | |
850 | if v:IsA("Model")then | |
851 | if v:findFirstChild("Right Arm")then | |
852 | if v ~= char then | |
853 | if(v.RightArm.Position -Position).magnitude <= Distance then | |
854 | table.insert(List,v) | |
855 | end | |
856 | end | |
857 | end | |
858 | end | |
859 | end | |
860 | return List | |
861 | end | |
862 | ||
863 | ||
864 | function FindNearestLeftArm(Position,Distance,SinglePlayer) | |
865 | if SinglePlayer then return(SinglePlayer.LeftArm.CFrame.p -Position).magnitude < Distance end | |
866 | local List = {} | |
867 | for i,v in pairs(workspace:GetChildren())do | |
868 | if v:IsA("Model")then | |
869 | if v:findFirstChild("Left Arm")then | |
870 | if v ~= char then | |
871 | if(v.LeftArm.Position -Position).magnitude <= Distance then | |
872 | table.insert(List,v) | |
873 | end | |
874 | end | |
875 | end | |
876 | end | |
877 | end | |
878 | return List | |
879 | end | |
880 | ||
881 | ||
882 | ||
883 | function FindNearestRightLeg(Position,Distance,SinglePlayer) | |
884 | if SinglePlayer then return(SinglePlayer.RightLeg.CFrame.p -Position).magnitude < Distance end | |
885 | local List = {} | |
886 | for i,v in pairs(workspace:GetChildren())do | |
887 | if v:IsA("Model")then | |
888 | if v:findFirstChild("Right Leg")then | |
889 | if v ~= char then | |
890 | if(v.RightLeg.Position -Position).magnitude <= Distance then | |
891 | table.insert(List,v) | |
892 | end | |
893 | end | |
894 | end | |
895 | end | |
896 | end | |
897 | return List | |
898 | end | |
899 | ||
900 | ||
901 | function FindNearestLeftLeg(Position,Distance,SinglePlayer) | |
902 | if SinglePlayer then return(SinglePlayer.LeftLeg.CFrame.p -Position).magnitude < Distance end | |
903 | local List = {} | |
904 | for i,v in pairs(workspace:GetChildren())do | |
905 | if v:IsA("Model")then | |
906 | if v:findFirstChild("Left Leg")then | |
907 | if v ~= char then | |
908 | if(v.LeftLeg.Position -Position).magnitude <= Distance then | |
909 | table.insert(List,v) | |
910 | end | |
911 | end | |
912 | end | |
913 | end | |
914 | end | |
915 | return List | |
916 | end | |
917 | ||
918 | ||
919 | ||
920 | ||
921 | ||
922 | ||
923 | mouse.KeyDown:connect(function(key)--------------------------------------------Roar | |
924 | if key == "q" then | |
925 | hum.WalkSpeed = 0 | |
926 | if Debounces.CanAttack == true then | |
927 | Debounces.CanAttack = false | |
928 | Debounces.NoIdl = true | |
929 | Debounces.on = true | |
930 | for i = 1, 30 do | |
931 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-34)), 0.2) | |
932 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(34)), 0.2) | |
933 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.2) | |
934 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2) | |
935 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
936 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
937 | if Debounces.on == false then break end | |
938 | rs:wait(6) | |
939 | end | |
940 | v = Instance.new("Sound") | |
941 | v.SoundId = "rbxassetid://862467390" | |
942 | v.Parent = char | |
943 | v.Looped = false | |
944 | v.Pitch = .94 | |
945 | v.Volume = 50 | |
946 | wait(.01) | |
947 | v:Play() | |
948 | ||
949 | ||
950 | local Shockwave = function() | |
951 | local rng1 = Instance.new("Part", char) | |
952 | rng1.Anchored = true | |
953 | rng1.BrickColor = BrickColor.new("Lime green") | |
954 | rng1.CanCollide = false | |
955 | rng1.FormFactor = 3 | |
956 | rng1.Name = "Ring" | |
957 | rng1.Size = Vector3.new(1, 1, 1) | |
958 | rng1.Transparency = 0.35 | |
959 | rng1.TopSurface = 0 | |
960 | rng1.BottomSurface = 0 | |
961 | local rngm1 = Instance.new("SpecialMesh", rng1) | |
962 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
963 | rngm1.Scale = Vector3.new(10, 10, 1) | |
964 | rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0) | |
965 | local Wave = Instance.new("Part", game.Workspace--[[?]]) | |
966 | Wave.Name = "Shockwave" | |
967 | Wave.BrickColor = BrickColor.new("Lime green") | |
968 | Wave.Size = Vector3.new(1, 1, 1) | |
969 | Wave.Shape = "Ball" | |
970 | Wave.CanCollide = false | |
971 | Wave.Anchored = true | |
972 | Wave.TopSurface = 0 | |
973 | Wave.BottomSurface = 0 | |
974 | Wave.Touched:connect(function(hit) | |
975 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
976 | local Occlude = true | |
977 | local NotOccludes = { | |
978 | char.Name; | |
979 | "Wings"; | |
980 | "Scythe"; | |
981 | "Thingy"; | |
982 | "Thingy2"; -- put all of the names in a table pls | |
983 | } | |
984 | for i,v in pairs(NotOccludes) do | |
985 | if hit.Parent.Name == v then | |
986 | Occlude = false | |
987 | end | |
988 | end | |
989 | --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then | |
990 | if Occlude then | |
991 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 | |
992 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 | |
993 | end | |
994 | end | |
995 | end) | |
996 | ||
997 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere" | |
998 | ||
999 | coroutine.wrap(function() | |
1000 | for i = 1, 20, 0.2 do | |
1001 | rngm1.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
1002 | rng1.Transparency = i/20 | |
1003 | rng1.CFrame = Wave.CFrame | |
1004 | wait() | |
1005 | end | |
1006 | wait() | |
1007 | rng1:Destroy() | |
1008 | end)() | |
1009 | ||
1010 | Delay(0, function() | |
1011 | ||
1012 | ||
1013 | for i = 1, 50, 1 do | |
1014 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
1015 | Wave.CFrame = char.Torso.CFrame | |
1016 | local t = i / 50 | |
1017 | Wave.Transparency = t | |
1018 | wait() | |
1019 | end | |
1020 | ||
1021 | Wave:Destroy() | |
1022 | end) | |
1023 | Delay(0, function() | |
1024 | while wait() do | |
1025 | if Wave ~= nil then | |
1026 | Wave.CFrame = char.Torso.CFrame | |
1027 | else | |
1028 | break | |
1029 | end | |
1030 | end | |
1031 | end) | |
1032 | end | |
1033 | ||
1034 | ||
1035 | new = Instance.new | |
1036 | ||
1037 | v3 = Vector3.new | |
1038 | ||
1039 | ||
1040 | a21e = new("Part",char) | |
1041 | a21e.Name = "Beam"..num | |
1042 | a21e.Locked = true | |
1043 | a21e.Size = v3(1,1,1) | |
1044 | a21e.CanCollide = false | |
1045 | a21e.Position = v3(999,999,999) | |
1046 | a21e.BrickColor = BrickColor.new("Lime green") | |
1047 | a21e.Material = "Neon" | |
1048 | a21e.Transparency = 0 | |
1049 | aa21e = new("SpecialMesh",a21e) | |
1050 | a21e.Anchored = true | |
1051 | a21e.Position = root.Position | |
1052 | aa21e.MeshType = "Sphere" | |
1053 | aa21e.Scale = v3(1,1,1) | |
1054 | ||
1055 | ||
1056 | coroutine.resume(coroutine.create(function() | |
1057 | BurningEff(FindNearestTorso(root.CFrame.p,35)) | |
1058 | BurningEff(FindNearestHead(root.CFrame.p,35)) | |
1059 | BurningEff(FindNearestRightArm(root.CFrame.p,35)) | |
1060 | BurningEff(FindNearestLeftArm(root.CFrame.p,35)) | |
1061 | BurningEff(FindNearestRightLeg(root.CFrame.p,35)) | |
1062 | BurningEff(FindNearestLeftLeg(root.CFrame.p,35)) | |
1063 | ||
1064 | end)) | |
1065 | ||
1066 | for i,v in pairs(FindNearestTorso(root.CFrame.p,25))do | |
1067 | if v:FindFirstChild('Humanoid') then | |
1068 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1069 | v.Humanoid.PlatformStand = true | |
1070 | v:FindFirstChild("Torso").Velocity = torso.CFrame.lookVector * 200 | |
1071 | BurningEff(v:FindFirstChild('Torso')) | |
1072 | ||
1073 | end | |
1074 | end | |
1075 | ||
1076 | ||
1077 | coroutine.resume(coroutine.create(function() | |
1078 | ||
1079 | for i,v in pairs(workspace:children()) do | |
1080 | charr = v:FindFirstChild('Character') | |
1081 | for i = 1, 40 do | |
1082 | charr.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7)) | |
1083 | wait() | |
1084 | end | |
1085 | ||
1086 | charr.Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1087 | end | |
1088 | end)) | |
1089 | ||
1090 | ||
1091 | ||
1092 | ||
1093 | coroutine.resume(coroutine.create(function() | |
1094 | for i = 1, 40 do | |
1095 | char.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7)) | |
1096 | wait() | |
1097 | end | |
1098 | char.Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1099 | end)) | |
1100 | ||
1101 | coroutine.resume(coroutine.create(function() | |
1102 | par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char) | |
1103 | if par then | |
1104 | local cfremz = CFrame.new(loc) | |
1105 | debris(cfremz, par, 50) | |
1106 | end | |
1107 | end)) | |
1108 | ||
1109 | ||
1110 | Crater(root,155) | |
1111 | GroundWave5() | |
1112 | GroundWave6() | |
1113 | GroundWave7() | |
1114 | GroundWave8() | |
1115 | GroundWave9() | |
1116 | GroundWave10() | |
1117 | ||
1118 | coroutine.resume(coroutine.create(function() | |
1119 | for i = 1,25 do | |
1120 | wait() | |
1121 | aa21e.Scale = aa21e.Scale + v3(5,5,5) | |
1122 | a21e.Transparency = a21e.Transparency + 0.04 | |
1123 | end | |
1124 | end)) | |
1125 | ||
1126 | ||
1127 | ||
1128 | ||
1129 | for i = 1, 30 do | |
1130 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.3) | |
1131 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3) | |
1132 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(28)), 0.3) | |
1133 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-28)), 0.3) | |
1134 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1135 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3.2, .3) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
1136 | if Debounces.on == false then break end | |
1137 | rs:wait() | |
1138 | end | |
1139 | wait(4.4) | |
1140 | Debounces.NoIdl = false | |
1141 | hum.WalkSpeed = 5 | |
1142 | Debounces.on = false | |
1143 | wait() | |
1144 | if Debounces.CanAttack == false then | |
1145 | Debounces.CanAttack = true | |
1146 | v:Destroy() | |
1147 | end | |
1148 | end | |
1149 | end | |
1150 | end) | |
1151 | ||
1152 | ||
1153 | ||
1154 | ||
1155 | ||
1156 | ||
1157 | ||
1158 | ---------------------------------------------------- | |
1159 | function weld5(part0, part1, c0, c1) | |
1160 | weeld=Instance.new("Weld", part0) | |
1161 | weeld.Part0=part0 | |
1162 | weeld.Part1=part1 | |
1163 | weeld.C0=c0 | |
1164 | weeld.C1=c1 | |
1165 | return weeld | |
1166 | end | |
1167 | ||
1168 | ||
1169 | ||
1170 | ||
1171 | ||
1172 | Grab = false | |
1173 | mouse.KeyDown:connect(function(key)-----------------------------------------Grab | |
1174 | if key == "z" then | |
1175 | Debounces.on = true | |
1176 | Debounces.NoIdl = true | |
1177 | if Grab == false then | |
1178 | gp = nil | |
1179 | con1=larm.Touched:connect(function(hit) -- this is grab | |
1180 | ht = hit.Parent | |
1181 | hum1=ht:FindFirstChild('Humanoid') | |
1182 | if hum1 ~= nil then | |
1183 | hum1.PlatformStand=true | |
1184 | gp = ht | |
1185 | Grab = true | |
1186 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-3.3,0),CFrame.new(0,0,0)) | |
1187 | asd.Parent = larm | |
1188 | asd.Name = "asd" | |
1189 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0) | |
1190 | elseif hum1 == nil then | |
1191 | con1:disconnect() | |
1192 | wait() return | |
1193 | end | |
1194 | end) | |
1195 | ||
1196 | ||
1197 | for i = 1, 18 do | |
1198 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(36)), 0.2) | |
1199 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.65,.9,-.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
1200 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
1201 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-60), math.rad(0), 0), 0.2) | |
1202 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) | |
1203 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) | |
1204 | if Debounces.on == false then break end | |
1205 | wait() | |
1206 | end | |
1207 | con1:disconnect() | |
1208 | Debounces.on = false | |
1209 | Debounces.NoIdl = false | |
1210 | wait(0.1) | |
1211 | ht:FindFirstChild("Torso").CanCollide = false | |
1212 | ht:FindFirstChild("RightArm").CanCollide = false | |
1213 | ht:FindFirstChild("LeftArm").CanCollide = false | |
1214 | ht:FindFirstChild("RightLeg").CanCollide = false | |
1215 | ht:FindFirstChild("LeftLeg").CanCollide = false | |
1216 | ht:FindFirstChild("Head").CanCollide = false | |
1217 | elseif Grab == true then | |
1218 | Grab = false | |
1219 | for i = 1, 20 do | |
1220 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.2) | |
1221 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-20)), 0.1) | |
1222 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
1223 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1224 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
1225 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
1226 | if Debounces.on == false then end | |
1227 | wait() | |
1228 | end | |
1229 | if gp ~= nil then | |
1230 | for i,v in pairs(larm:GetChildren()) do | |
1231 | if v.Name == "asd" and v:IsA("Weld") then | |
1232 | v:Remove() | |
1233 | end | |
1234 | end | |
1235 | bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
1236 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
1237 | bv.P = 125000000000000 | |
1238 | bv.velocity = char.Head.CFrame.lookVector * 1000 | |
1239 | for i = 1, 12 do | |
1240 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.75)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(20)), 0.5) | |
1241 | if Debounces.on == false then end | |
1242 | wait() | |
1243 | end | |
1244 | ht=nil | |
1245 | Spawn(function() | |
1246 | wait(0.5) | |
1247 | bv:Destroy() | |
1248 | end) | |
1249 | Debounces.on = false | |
1250 | Debounces.NoIdl = false | |
1251 | elseif ht == nil then wait() | |
1252 | Grab = false | |
1253 | Debounces.on = false | |
1254 | Debounces.NoIdl = false | |
1255 | end | |
1256 | end | |
1257 | end | |
1258 | end) | |
1259 | ||
1260 | ||
1261 | ||
1262 | ||
1263 | mouse.KeyDown:connect(function(key) | |
1264 | if key == "c" then | |
1265 | if Debounces.CanAttack == true then | |
1266 | Debounces.CanAttack = false | |
1267 | Debounces.NoIdl = true | |
1268 | Debounces.on = true | |
1269 | ||
1270 | ||
1271 | ||
1272 | ||
1273 | GroundWaves5 = function() | |
1274 | local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1275 | ||
1276 | Colors = {"Lime green", "Lime green"} | |
1277 | ||
1278 | ||
1279 | local wave11 = Instance.new("Part", char) | |
1280 | wave11.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1281 | wave11.Anchored = true | |
1282 | wave11.Name = "Wave" | |
1283 | wave11.CanCollide = false | |
1284 | wave11.Locked = true | |
1285 | wave11.Size = Vector3.new(1, 1, 1) | |
1286 | wave11.TopSurface = "Smooth" | |
1287 | wave11.BottomSurface = "Smooth" | |
1288 | wave11.Transparency = 0.35 | |
1289 | wave11.CFrame = HandCF | |
1290 | wm31 = Instance.new("SpecialMesh", wave11) | |
1291 | wm31.MeshId = "rbxassetid://3270017" | |
1292 | coroutine.wrap(function() | |
1293 | for i = 1, 30, 1 do | |
1294 | wm31.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
1295 | wave11.Size = wm31.Scale | |
1296 | wave11.CFrame = HandCF | |
1297 | wave11.Transparency = i/30 | |
1298 | wait() | |
1299 | end | |
1300 | wait() | |
1301 | wave11:Destroy() | |
1302 | end)() | |
1303 | end | |
1304 | GroundWaves6 = function() | |
1305 | local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1306 | ||
1307 | Colors = {"Lime green", "Lime green"} | |
1308 | ||
1309 | local wave111 = Instance.new("Part", char) | |
1310 | wave111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1311 | wave111.Anchored = true | |
1312 | wave111.Name = "Wave" | |
1313 | wave111.CanCollide = false | |
1314 | wave111.Locked = true | |
1315 | wave111.Size = Vector3.new(1, 1, 1) | |
1316 | wave111.TopSurface = "Smooth" | |
1317 | wave111.BottomSurface = "Smooth" | |
1318 | wave111.Transparency = 0.35 | |
1319 | wave111.CFrame = HandCF | |
1320 | wm311 = Instance.new("SpecialMesh", wave111) | |
1321 | wm311.MeshId = "rbxassetid://3270017" | |
1322 | coroutine.wrap(function() | |
1323 | for i = 1, 30, 1 do | |
1324 | wm311.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
1325 | wave111.Size = wm311.Scale | |
1326 | wave111.CFrame = HandCF | |
1327 | wave111.Transparency = i/30 | |
1328 | wait() | |
1329 | end | |
1330 | wait() | |
1331 | wave111:Destroy() | |
1332 | end)() | |
1333 | end | |
1334 | GroundWaves7 = function() | |
1335 | local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1336 | ||
1337 | Colors = {"Lime green", "Lime green"} | |
1338 | local wave1111 = Instance.new("Part", char) | |
1339 | wave1111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1340 | wave1111.Anchored = true | |
1341 | wave1111.Name = "Wave" | |
1342 | wave1111.CanCollide = false | |
1343 | wave1111.Locked = true | |
1344 | wave1111.Size = Vector3.new(1, 1, 1) | |
1345 | wave1111.TopSurface = "Smooth" | |
1346 | wave1111.BottomSurface = "Smooth" | |
1347 | wave1111.Transparency = 0.35 | |
1348 | wave1111.CFrame = HandCF | |
1349 | wm3111 = Instance.new("SpecialMesh", wave1111) | |
1350 | wm3111.MeshId = "rbxassetid://3270017" | |
1351 | coroutine.wrap(function() | |
1352 | for i = 1, 30, 1 do | |
1353 | wm3111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
1354 | wave1111.Size = wm3111.Scale | |
1355 | wave1111.CFrame = HandCF | |
1356 | wave1111.Transparency = i/30 | |
1357 | wait() | |
1358 | end | |
1359 | wait() | |
1360 | wave1111:Destroy() | |
1361 | end)() | |
1362 | end | |
1363 | GroundWaves8 = function() | |
1364 | local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1365 | ||
1366 | Colors = {"Lime green", "Lime green"} | |
1367 | local wave11111 = Instance.new("Part", char) | |
1368 | wave11111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1369 | wave11111.Anchored = true | |
1370 | wave11111.Name = "Wave" | |
1371 | wave11111.CanCollide = false | |
1372 | wave11111.Locked = true | |
1373 | wave11111.Size = Vector3.new(1, 1, 1) | |
1374 | wave11111.TopSurface = "Smooth" | |
1375 | wave11111.BottomSurface = "Smooth" | |
1376 | wave11111.Transparency = 0.35 | |
1377 | wave11111.CFrame = HandCF | |
1378 | wm31111 = Instance.new("SpecialMesh", wave11111) | |
1379 | wm31111.MeshId = "rbxassetid://3270017" | |
1380 | coroutine.wrap(function() | |
1381 | for i = 1, 30, 1 do | |
1382 | wm31111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
1383 | wave11111.Size = wm31111.Scale | |
1384 | wave11111.CFrame = HandCF | |
1385 | wave11111.Transparency = i/30 | |
1386 | wait() | |
1387 | end | |
1388 | wait() | |
1389 | wave11111:Destroy() | |
1390 | end)() | |
1391 | end | |
1392 | GroundWaves9 = function() | |
1393 | local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1394 | ||
1395 | Colors = {"Lime green", "Lime green"} | |
1396 | local wave111111 = Instance.new("Part", char) | |
1397 | wave111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1398 | wave111111.Anchored = true | |
1399 | wave111111.Name = "Wave" | |
1400 | wave111111.CanCollide = false | |
1401 | wave111111.Locked = true | |
1402 | wave111111.Size = Vector3.new(1, 1, 1) | |
1403 | wave111111.TopSurface = "Smooth" | |
1404 | wave111111.BottomSurface = "Smooth" | |
1405 | wave111111.Transparency = 0.35 | |
1406 | wave111111.CFrame = HandCF | |
1407 | wm311111 = Instance.new("SpecialMesh", wave111111) | |
1408 | wm311111.MeshId = "rbxassetid://3270017" | |
1409 | coroutine.wrap(function() | |
1410 | for i = 1, 30, 1 do | |
1411 | wm311111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
1412 | wave111111.Size = wm311111.Scale | |
1413 | wave111111.CFrame = HandCF | |
1414 | wave111111.Transparency = i/30 | |
1415 | wait() | |
1416 | end | |
1417 | wait() | |
1418 | wave111111:Destroy() | |
1419 | end)() | |
1420 | end | |
1421 | GroundWaves10 = function() | |
1422 | local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1423 | ||
1424 | Colors = {"Lime green", "Lime green"} | |
1425 | local wave1111111 = Instance.new("Part", char) | |
1426 | wave1111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1427 | wave1111111.Anchored = true | |
1428 | wave1111111.Name = "Wave" | |
1429 | wave1111111.CanCollide = false | |
1430 | wave1111111.Locked = true | |
1431 | wave1111111.Size = Vector3.new(1, 1, 1) | |
1432 | wave1111111.TopSurface = "Smooth" | |
1433 | wave1111111.BottomSurface = "Smooth" | |
1434 | wave1111111.Transparency = 0.35 | |
1435 | wave1111111.CFrame = HandCF | |
1436 | wm3111111 = Instance.new("SpecialMesh", wave1111111) | |
1437 | wm3111111.MeshId = "rbxassetid://3270017" | |
1438 | coroutine.wrap(function() | |
1439 | for i = 1, 30, 1 do | |
1440 | wm3111111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5) | |
1441 | wave1111111.Size = wm3111111.Scale | |
1442 | wave1111111.CFrame = HandCF | |
1443 | wave1111111.Transparency = i/30 | |
1444 | wait() | |
1445 | end | |
1446 | wait() | |
1447 | wave1111111:Destroy() | |
1448 | end)() | |
1449 | end | |
1450 | ||
1451 | ||
1452 | ||
1453 | for i = 1, 40 do | |
1454 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
1455 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
1456 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
1457 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
1458 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1459 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
1460 | if Debounces.on == false then break end | |
1461 | wait() | |
1462 | end | |
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | coroutine.resume(coroutine.create(function() | |
1468 | for i=1, 5 do | |
1469 | p=Instance.new("Part") | |
1470 | p.FrontSurface=par.TopSurface | |
1471 | p.Material=par.Material | |
1472 | p.BottomSurface=0 | |
1473 | p.Anchored=true p.CanCollide=false | |
1474 | p.BrickColor=par.BrickColor | |
1475 | p.Size=Vector3.new(math.random(15,35)/5,math.random(15,35)/5,math.random(4,5)) | |
1476 | p.CFrame=CFrame.new(ht.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) | |
1477 | p.Parent=char | |
1478 | game:GetService("Debris"):AddItem(p,2+i*.1) | |
1479 | if math.random(1,5)==5 then | |
1480 | 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) | |
1481 | end | |
1482 | end | |
1483 | for i=1, 5 do | |
1484 | for i=1, 1 do | |
1485 | p=Instance.new("Part") | |
1486 | p.TopSurface=par.TopSurface | |
1487 | p.BottomSurface=par.BottomSurface | |
1488 | p.Material=par.Material | |
1489 | p.BottomSurface=0 | |
1490 | p.Anchored=false p.CanCollide=true | |
1491 | p.BrickColor=par.BrickColor | |
1492 | p.formFactor="Custom" | |
1493 | p.Size=Vector3.new(math.random(15,35)/12,math.random(13,35)/12,math.random(15,35)/12) | |
1494 | p.CFrame=CFrame.new(ht.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) | |
1495 | p.Parent=char | |
1496 | game:GetService("Debris"):AddItem(p,3+i*.1) | |
1497 | p.Velocity=Vector3.new(math.random(-10,10)*4,math.random(40,80),math.random(-10,10)*4) | |
1498 | p.RotVelocity=p.Velocity | |
1499 | if math.random(1,5)==5 then | |
1500 | 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) | |
1501 | end | |
1502 | end | |
1503 | end | |
1504 | end)) | |
1505 | ||
1506 | ||
1507 | ||
1508 | ||
1509 | coroutine.resume(coroutine.create(function() | |
1510 | wait(0.2) | |
1511 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do | |
1512 | if v:FindFirstChild('Humanoid') then | |
1513 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1514 | v.Humanoid.PlatformStand = true | |
1515 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1516 | end | |
1517 | end | |
1518 | ||
1519 | GroundWaves5() | |
1520 | GroundWaves6() | |
1521 | GroundWaves7() | |
1522 | GroundWaves8() | |
1523 | GroundWaves9() | |
1524 | GroundWaves10() | |
1525 | end)) | |
1526 | for i = 1, 20 do | |
1527 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.6) | |
1528 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6) | |
1529 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
1530 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
1531 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
1532 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1533 | if Debounces.on == false then break end | |
1534 | wait() | |
1535 | end | |
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | if Debounces.CanAttack == false then | |
1541 | Debounces.CanAttack = true | |
1542 | Debounces.on = false | |
1543 | Debounces.NoIdl = false | |
1544 | ||
1545 | end | |
1546 | end | |
1547 | end | |
1548 | end) | |
1549 | ||
1550 | ||
1551 | function newRay(start,face,range,wat) | |
1552 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
1553 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
1554 | return rey,hit,pos | |
1555 | end | |
1556 | ||
1557 | ||
1558 | ||
1559 | fat = Instance.new("BindableEvent",script) | |
1560 | fat.Name = "Heartbeat" | |
1561 | ||
1562 | script:WaitForChild("Heartbeat") | |
1563 | ||
1564 | frame = 1/30 | |
1565 | tf = 0 | |
1566 | 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. | |
1567 | tossremainder = false --if set to true t will be set to 0 after Fire()-ing. | |
1568 | lastframe = tick() | |
1569 | script.Heartbeat:Fire() --ayy lmao | |
1570 | ||
1571 | game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp | |
1572 | tf = tf + s | |
1573 | if tf >= frame then | |
1574 | if allowframeloss then | |
1575 | script.Heartbeat:Fire() | |
1576 | lastframe=tick() | |
1577 | else | |
1578 | --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame)))) | |
1579 | for i=1, math.floor(tf/frame) do | |
1580 | script.Heartbeat:Fire() | |
1581 | end | |
1582 | lastframe=tick() | |
1583 | end | |
1584 | if tossremainder then | |
1585 | tf = 0 | |
1586 | else | |
1587 | tf = tf - frame * math.floor(tf/frame) | |
1588 | end | |
1589 | end | |
1590 | end) | |
1591 | ||
1592 | function Swait(NUMBER) | |
1593 | if NUMBER == 0 or NUMBER == nil then | |
1594 | fat.Event:wait() | |
1595 | else | |
1596 | for i = 1, NUMBER do | |
1597 | fat.Event:wait() | |
1598 | end | |
1599 | end | |
1600 | end | |
1601 | ||
1602 | function Landing2() | |
1603 | local rng = Instance.new("Part", char) | |
1604 | rng.Anchored = true | |
1605 | rng.BrickColor = BrickColor.new("Lime green") | |
1606 | rng.CanCollide = false | |
1607 | rng.FormFactor = 3 | |
1608 | rng.Name = "Ring" | |
1609 | rng.Size = Vector3.new(1, 1, 1) | |
1610 | rng.Transparency = 0 | |
1611 | rng.TopSurface = 0 | |
1612 | rng.BottomSurface = 0 | |
1613 | rng.Position = root.Position | |
1614 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1615 | local rngm = Instance.new("SpecialMesh", rng) | |
1616 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1617 | local rng2 = rng:Clone() | |
1618 | rng2.Parent = char | |
1619 | local rng2m = rng2.Mesh | |
1620 | local rng3 = rng:Clone() | |
1621 | rng3.Parent = char | |
1622 | local rng3m = rng3.Mesh | |
1623 | local rng4 = rng:Clone() | |
1624 | rng4.Parent = char | |
1625 | local rng4m = rng4.Mesh | |
1626 | local rng5 = rng:Clone() | |
1627 | rng5.Parent = char | |
1628 | local rng5m = rng5.Mesh | |
1629 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,905))do | |
1630 | if v:FindFirstChild('Humanoid') then | |
1631 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1632 | v.Humanoid.PlatformStand = true | |
1633 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1634 | end | |
1635 | end | |
1636 | --MagicBlock(BrickColor.new("Lime green"),root.CFrame,15,15,15,5,5,5,0.015) | |
1637 | -- CFuncs["Sound"].Create("rbxassetid://187137517", rng, 10, 1) | |
1638 | --CFuncs["Sound"].Create("rbxassetid://597291504", rng, 5, 0.85) | |
1639 | ---CFuncs["Sound"].Create("rbxassetid://144699494", rng, 10, 1) | |
1640 | wait() | |
1641 | local scaler = 10 | |
1642 | local scaler2 = 10 | |
1643 | for i = 0,10,0.1 do | |
1644 | Swait() | |
1645 | rng.Transparency = rng.Transparency + 0.01 | |
1646 | rng2.Transparency = rng2.Transparency + 0.01 | |
1647 | rng3.Transparency = rng3.Transparency + 0.01 | |
1648 | rng4.Transparency = rng4.Transparency + 0.01 | |
1649 | rng5.Transparency = rng5.Transparency + 0.01 | |
1650 | scaler = scaler - 0.125 | |
1651 | scaler2 = scaler2 - 0.1 | |
1652 | rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4) | |
1653 | rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3) | |
1654 | rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2) | |
1655 | rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1) | |
1656 | rng5.Size = rng5m.Scale | |
1657 | rng5.CFrame = rng.CFrame | |
1658 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5) | |
1659 | end | |
1660 | end | |
1661 | function Landing() | |
1662 | Grabee = torso | |
1663 | par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char) | |
1664 | if par then | |
1665 | local cfremz = CFrame.new(loc) | |
1666 | debris(cfremz, par, 50) | |
1667 | end | |
1668 | for i=1, 50 do | |
1669 | p=Instance.new("Part") | |
1670 | p.FrontSurface=par.TopSurface | |
1671 | p.Material=par.Material | |
1672 | p.BottomSurface=0 | |
1673 | p.Anchored=true p.CanCollide=false | |
1674 | p.BrickColor=par.BrickColor | |
1675 | p.Size=Vector3.new(math.random(15,35)/5,math.random(15,35)/5,math.random(4,5)) | |
1676 | 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) | |
1677 | p.Parent=char | |
1678 | game:GetService("Debris"):AddItem(p,2+i*.1) | |
1679 | if math.random(1,5)==5 then | |
1680 | 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) | |
1681 | end | |
1682 | end | |
1683 | for i=1, 50 do | |
1684 | for i=1, 1 do | |
1685 | p=Instance.new("Part") | |
1686 | p.TopSurface=par.TopSurface | |
1687 | p.BottomSurface=par.BottomSurface | |
1688 | p.Material=par.Material | |
1689 | p.BottomSurface=0 | |
1690 | p.Anchored=false p.CanCollide=true | |
1691 | p.BrickColor=par.BrickColor | |
1692 | p.formFactor="Custom" | |
1693 | p.Size=Vector3.new(math.random(15,35)/12,math.random(13,35)/12,math.random(15,35)/12) | |
1694 | 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) | |
1695 | p.Parent=char | |
1696 | game:GetService("Debris"):AddItem(p,3+i*.1) | |
1697 | p.Velocity=Vector3.new(math.random(-10,10)*4,math.random(40,80),math.random(-10,10)*4) | |
1698 | p.RotVelocity=p.Velocity | |
1699 | if math.random(1,5)==5 then | |
1700 | 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) | |
1701 | end | |
1702 | end | |
1703 | Swait(.025) | |
1704 | end | |
1705 | end | |
1706 | ||
1707 | ||
1708 | ||
1709 | ||
1710 | ||
1711 | ||
1712 | ||
1713 | ||
1714 | ||
1715 | ||
1716 | mouse.KeyDown:connect(function(key) | |
1717 | if key == "m" then | |
1718 | hum.WalkSpeed = 0 | |
1719 | if Debounces.CanAttack == true then | |
1720 | Debounces.CanAttack = false | |
1721 | Debounces.on = true | |
1722 | Debounces.NoIdl = true | |
1723 | ||
1724 | for i = 1, 20 do | |
1725 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2) | |
1726 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2) | |
1727 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2) | |
1728 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3.2, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2) | |
1729 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -1.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2) | |
1730 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.6, -2, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2) | |
1731 | if Debounces.on == false then break end | |
1732 | wait() | |
1733 | ||
1734 | end | |
1735 | wait(1) | |
1736 | local rng = Instance.new("Part", char) | |
1737 | rng.Anchored = true | |
1738 | rng.BrickColor = BrickColor.new("Lime green") | |
1739 | rng.CanCollide = false | |
1740 | rng.FormFactor = 3 | |
1741 | rng.Name = "Ring" | |
1742 | rng.Size = Vector3.new(1, 1, 1) | |
1743 | rng.Transparency = 0.35 | |
1744 | rng.TopSurface = 0 | |
1745 | rng.BottomSurface = 0 | |
1746 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
1747 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1748 | local rngm = Instance.new("SpecialMesh", rng) | |
1749 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1750 | rngm.Scale = Vector3.new(1, 1, 2) | |
1751 | l = Instance.new("Sound",char) | |
1752 | l.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
1753 | l.Looped = false | |
1754 | l.Pitch = .7 | |
1755 | l.Volume = 1 | |
1756 | l:Play() | |
1757 | coroutine.wrap(function() | |
1758 | for i = 1, 60, 2 do | |
1759 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
1760 | rng.Transparency = i/60 | |
1761 | wait() | |
1762 | end | |
1763 | wait() | |
1764 | rng:Destroy() | |
1765 | end)() | |
1766 | hum.WalkSpeed = 50 | |
1767 | BV = Instance.new("BodyVelocity", torso) | |
1768 | BV.maxForce = Vector3.new(0,100000,0) | |
1769 | BV.P = 100000 | |
1770 | BV.velocity = Vector3.new(0,999999,0) | |
1771 | for i = 1, 145 do | |
1772 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7) | |
1773 | 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) | |
1774 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7) | |
1775 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7) | |
1776 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7) | |
1777 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, 0, -2) * CFrame.Angles(math.rad(0), 0, 0), 0.7) | |
1778 | if Debounces.on == false then break end | |
1779 | wait() | |
1780 | end | |
1781 | l:Destroy() | |
1782 | BV:Destroy() | |
1783 | coroutine.resume(coroutine.create(function() | |
1784 | wait(0.01) | |
1785 | l = Instance.new("Sound",char) | |
1786 | l.SoundId = "http://www.roblox.com/asset/?id=849891594" | |
1787 | l.Looped = false | |
1788 | l.Pitch = 1 | |
1789 | l.Volume = 80 | |
1790 | l:Play() | |
1791 | end)) | |
1792 | for i = 1, 60 do | |
1793 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-10)), 0.4) | |
1794 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(10)), 0.4) | |
1795 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4) | |
1796 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4) | |
1797 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1798 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1799 | if Debounces.on == false then break end | |
1800 | wait() | |
1801 | end | |
1802 | if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then | |
1803 | for i = 1, 30 do | |
1804 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(-10)), 0.6) | |
1805 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), 0.6) | |
1806 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.6) | |
1807 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(-90), math.rad(0), 0), 0.6) | |
1808 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) | |
1809 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) | |
1810 | if Debounces.on == false then break end | |
1811 | wait() | |
1812 | end | |
1813 | end | |
1814 | Debounces.on = false | |
1815 | Debounces.NoIdl = false | |
1816 | local ry,ht,ps=nil,nil,nil | |
1817 | while ht==nil do | |
1818 | ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char}) | |
1819 | wait() | |
1820 | end | |
1821 | ||
1822 | ||
1823 | coroutine.resume(coroutine.create(function() | |
1824 | ||
1825 | for i,v in pairs(workspace:children()) do | |
1826 | charr = v:FindFirstChild('Character') | |
1827 | for i = 1, 15 do | |
1828 | charr.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7)) | |
1829 | wait() | |
1830 | end | |
1831 | ||
1832 | charr.Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1833 | end | |
1834 | end)) | |
1835 | ||
1836 | ||
1837 | ||
1838 | ||
1839 | coroutine.resume(coroutine.create(function() | |
1840 | for i = 1, 15 do | |
1841 | char.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7)) | |
1842 | wait() | |
1843 | end | |
1844 | char.Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1845 | end)) | |
1846 | ||
1847 | ||
1848 | coroutine.resume(coroutine.create(function() | |
1849 | Landing2() | |
1850 | end)) | |
1851 | Landing() | |
1852 | game:GetService("Debris"):AddItem(rng, 1) | |
1853 | game:GetService("Debris"):AddItem(rng2, 1) | |
1854 | game:GetService("Debris"):AddItem(rng3, 1) | |
1855 | game:GetService("Debris"):AddItem(rng4, 1) | |
1856 | game:GetService("Debris"):AddItem(rng5, 1) | |
1857 | hum.WalkSpeed = 5 | |
1858 | if Debounces.CanAttack == false then | |
1859 | Debounces.CanAttack = true | |
1860 | end | |
1861 | end | |
1862 | end | |
1863 | end) | |
1864 | ||
1865 | ||
1866 | ||
1867 | ptez = {0.7, 0.8, 0.9, 1} | |
1868 | ||
1869 | function GroundPound() | |
1870 | local rng = Instance.new("Part", char) | |
1871 | rng.Anchored = true | |
1872 | rng.BrickColor = BrickColor.new("Lime green") | |
1873 | rng.CanCollide = false | |
1874 | rng.FormFactor = 3 | |
1875 | rng.Name = "Ring" | |
1876 | rng.Size = Vector3.new(1, 1, 1) | |
1877 | rng.Transparency = 0.35 | |
1878 | rng.TopSurface = 0 | |
1879 | rng.BottomSurface = 0 | |
1880 | rng.Position = larm.Position - Vector3.new(0,4,0) | |
1881 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1882 | local rngm = Instance.new("SpecialMesh", rng) | |
1883 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1884 | rngm.Scale = Vector3.new(1, 1, 2) | |
1885 | coroutine.resume(coroutine.create(function() | |
1886 | t = Instance.new("Sound",char) | |
1887 | t.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
1888 | t.Pitch = ptez[math.random(1,#ptez)] | |
1889 | t.Volume = 1 | |
1890 | wait(.1) | |
1891 | t:Play() | |
1892 | end)) | |
1893 | coroutine.wrap(function() | |
1894 | for i = 1, 60, 2 do | |
1895 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
1896 | rng.Transparency = i/60 | |
1897 | wait() | |
1898 | end | |
1899 | wait() | |
1900 | rng:Destroy() | |
1901 | end)() | |
1902 | ||
1903 | end | |
1904 | ||
1905 | ||
1906 | function GroundPound2() | |
1907 | local rng = Instance.new("Part", char) | |
1908 | rng.Anchored = true | |
1909 | rng.BrickColor = BrickColor.new("Lime green") | |
1910 | rng.CanCollide = false | |
1911 | rng.FormFactor = 3 | |
1912 | rng.Name = "Ring" | |
1913 | rng.Size = Vector3.new(1, 1, 1) | |
1914 | rng.Transparency = 0.35 | |
1915 | rng.TopSurface = 0 | |
1916 | rng.BottomSurface = 0 | |
1917 | rng.Position = rarm.Position - Vector3.new(0,4,0) | |
1918 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1919 | local rngm = Instance.new("SpecialMesh", rng) | |
1920 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1921 | rngm.Scale = Vector3.new(1, 1, 2) | |
1922 | coroutine.resume(coroutine.create(function() | |
1923 | t = Instance.new("Sound",char) | |
1924 | t.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
1925 | t.Pitch = ptez[math.random(1,#ptez)] | |
1926 | t.Volume = 1 | |
1927 | wait(.1) | |
1928 | t:Play() | |
1929 | end)) | |
1930 | coroutine.wrap(function() | |
1931 | for i = 1, 60, 2 do | |
1932 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
1933 | rng.Transparency = i/60 | |
1934 | wait() | |
1935 | end | |
1936 | wait() | |
1937 | rng:Destroy() | |
1938 | end)() | |
1939 | end | |
1940 | ||
1941 | ||
1942 | ||
1943 | ||
1944 | mouse.KeyDown:connect(function(key) | |
1945 | if key == "h" then | |
1946 | if Debounces.CanAttack == true then | |
1947 | Debounces.CanAttack = false | |
1948 | Debounces.NoIdl = true | |
1949 | Debounces.on = true | |
1950 | ||
1951 | ||
1952 | ||
1953 | ||
1954 | coroutine.resume(coroutine.create(function() | |
1955 | ||
1956 | for i,v in pairs(workspace:children()) do | |
1957 | charr = v:FindFirstChild('Character') | |
1958 | for i = 1, 48 do | |
1959 | charr.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7)) | |
1960 | wait() | |
1961 | end | |
1962 | ||
1963 | charr.Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1964 | end | |
1965 | end)) | |
1966 | ||
1967 | ||
1968 | ||
1969 | ||
1970 | coroutine.resume(coroutine.create(function() | |
1971 | for i = 1, 78 do | |
1972 | char.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7)) | |
1973 | wait() | |
1974 | end | |
1975 | char.Humanoid.CameraOffset = Vector3.new(0,0,0) | |
1976 | end)) | |
1977 | ||
1978 | ||
1979 | coroutine.resume(coroutine.create(function() | |
1980 | wait(0.1) | |
1981 | for i = 1,78 do | |
1982 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do | |
1983 | if v:FindFirstChild('Humanoid') then | |
1984 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1985 | v.Humanoid.PlatformStand = true | |
1986 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1987 | end | |
1988 | end | |
1989 | end | |
1990 | end)) | |
1991 | ||
1992 | GroundPound() | |
1993 | for i = 1, 5 do | |
1994 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
1995 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
1996 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
1997 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
1998 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
1999 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2000 | if Debounces.on == false then break end | |
2001 | wait() | |
2002 | end | |
2003 | GroundPound2() | |
2004 | for i = 1, 5 do | |
2005 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2006 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2007 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2008 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2009 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2010 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2011 | if Debounces.on == false then break end | |
2012 | wait() | |
2013 | end | |
2014 | GroundPound() | |
2015 | for i = 1, 5 do | |
2016 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
2017 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2018 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
2019 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
2020 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
2021 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2022 | if Debounces.on == false then break end | |
2023 | wait() | |
2024 | end | |
2025 | GroundPound2() | |
2026 | for i = 1, 5 do | |
2027 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2028 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2029 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2030 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2031 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2032 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2033 | if Debounces.on == false then break end | |
2034 | wait() | |
2035 | end | |
2036 | GroundPound() | |
2037 | for i = 1, 5 do | |
2038 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
2039 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2040 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
2041 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
2042 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
2043 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2044 | if Debounces.on == false then break end | |
2045 | wait() | |
2046 | end | |
2047 | GroundPound2() | |
2048 | for i = 1, 5 do | |
2049 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2050 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2051 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2052 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2053 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2054 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2055 | if Debounces.on == false then break end | |
2056 | wait() | |
2057 | end | |
2058 | GroundPound() | |
2059 | for i = 1, 5 do | |
2060 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
2061 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2062 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
2063 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
2064 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
2065 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2066 | if Debounces.on == false then break end | |
2067 | wait() | |
2068 | end | |
2069 | GroundPound2() | |
2070 | for i = 1, 5 do | |
2071 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2072 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2073 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2074 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2075 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2076 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2077 | if Debounces.on == false then break end | |
2078 | wait() | |
2079 | end | |
2080 | GroundPound() | |
2081 | for i = 1, 5 do | |
2082 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
2083 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2084 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
2085 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
2086 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
2087 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2088 | if Debounces.on == false then break end | |
2089 | wait() | |
2090 | end | |
2091 | GroundPound2() | |
2092 | for i = 1, 5 do | |
2093 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2094 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2095 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2096 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2097 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2098 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2099 | if Debounces.on == false then break end | |
2100 | wait() | |
2101 | end | |
2102 | GroundPound() | |
2103 | for i = 1, 5 do | |
2104 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
2105 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2106 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
2107 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
2108 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
2109 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2110 | if Debounces.on == false then break end | |
2111 | wait() | |
2112 | end | |
2113 | GroundPound2() | |
2114 | for i = 1, 5 do | |
2115 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2116 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2117 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2118 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2119 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2120 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2121 | if Debounces.on == false then break end | |
2122 | wait() | |
2123 | end | |
2124 | GroundPound() | |
2125 | for i = 1, 5 do | |
2126 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
2127 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2128 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
2129 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
2130 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
2131 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2132 | if Debounces.on == false then break end | |
2133 | wait() | |
2134 | end | |
2135 | GroundPound2() | |
2136 | for i = 1, 5 do | |
2137 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2138 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2139 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2140 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2141 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2142 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2143 | if Debounces.on == false then break end | |
2144 | wait() | |
2145 | end | |
2146 | GroundPound() | |
2147 | for i = 1, 5 do | |
2148 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
2149 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2150 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
2151 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
2152 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
2153 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2154 | if Debounces.on == false then break end | |
2155 | wait() | |
2156 | end | |
2157 | GroundPound2() | |
2158 | for i = 1, 5 do | |
2159 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
2160 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
2161 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
2162 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
2163 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
2164 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
2165 | if Debounces.on == false then break end | |
2166 | wait() | |
2167 | end | |
2168 | ||
2169 | ||
2170 | ||
2171 | if Debounces.CanAttack == false then | |
2172 | Debounces.CanAttack = true | |
2173 | Debounces.on = false | |
2174 | Debounces.NoIdl = false | |
2175 | ||
2176 | end | |
2177 | end | |
2178 | end | |
2179 | end) | |
2180 | ||
2181 | ||
2182 | ||
2183 | ||
2184 | local animpose = "Idle" | |
2185 | local lastanimpose = "Idle" | |
2186 | local sine = 0 | |
2187 | local change = 1 | |
2188 | local val = 0 | |
2189 | local ffing = false | |
2190 | ---------------------------------------------------- | |
2191 | x = Instance.new("Sound", char) | |
2192 | x.SoundId = "http://www.roblox.com/asset/?id=187922823" | |
2193 | x.Looped = true | |
2194 | x.Volume = 30 | |
2195 | x.Pitch = 1 | |
2196 | local footsteps = false | |
2197 | ------------------------------- | |
2198 | game:GetService("RunService").RenderStepped:connect(function() | |
2199 | if char.Humanoid.Jump == true then | |
2200 | jump = true | |
2201 | else | |
2202 | jump = false | |
2203 | end | |
2204 | char.Humanoid.FreeFalling:connect(function(f) | |
2205 | if f then | |
2206 | ffing = true | |
2207 | else | |
2208 | ffing = false | |
2209 | end | |
2210 | end) | |
2211 | sine = sine + change | |
2212 | if jumpn == true then | |
2213 | animpose = "Jumping" | |
2214 | elseif ffing == true then | |
2215 | animpose = "Freefalling" | |
2216 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
2217 | animpose = "Idle" | |
2218 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
2219 | animpose = "Walking" | |
2220 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
2221 | animpose = "Running" | |
2222 | end | |
2223 | if animpose ~= lastanimpose then | |
2224 | sine = 0 | |
2225 | if Debounces.NoIdl == false then | |
2226 | if animpose == "Idle" then | |
2227 | for i = 1, 2 do | |
2228 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
2229 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
2230 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
2231 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
2232 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
2233 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
2234 | end | |
2235 | elseif animpose == "Walking" then | |
2236 | for i = 1, 2 do | |
2237 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(0)), 0.2) | |
2238 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2) | |
2239 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2) | |
2240 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2) | |
2241 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4) | |
2242 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4) | |
2243 | end | |
2244 | elseif animpose == "Running" then | |
2245 | for i = 1, 2 do | |
2246 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-0), math.rad(-40), math.rad(0)), 0.2) | |
2247 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2) | |
2248 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2) | |
2249 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2) | |
2250 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4) | |
2251 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4) | |
2252 | end | |
2253 | wait() | |
2254 | end | |
2255 | else | |
2256 | end | |
2257 | end | |
2258 | lastanimpose = animpose | |
2259 | if Debounces.NoIdl == false then | |
2260 | if animpose == "Idle" then | |
2261 | if stanceToggle == "Normal" then | |
2262 | change = 0.5 | |
2263 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(88+2*math.cos(sine/14)),math.rad(50),math.rad(0)), 0.2) | |
2264 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(-30),math.rad(-40-2*math.cos(sine/14))), 0.2) | |
2265 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2) | |
2266 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2) | |
2267 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2268 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2269 | elseif stanceToggle == "Sitting" then | |
2270 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2) | |
2271 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2) | |
2272 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2) | |
2273 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2) | |
2274 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2) | |
2275 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2) | |
2276 | end | |
2277 | elseif animpose == "Walking" then | |
2278 | if stanceToggle == "Normal" then | |
2279 | change = 1 | |
2280 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/-4, math.rad(1) + -math.sin(sine/14)/2, math.rad(30)), 0.1) | |
2281 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/4, math.rad(1) + -math.sin(sine/14)/2, math.rad(-30)), 0.1) | |
2282 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/7)), math.rad(0), math.rad(0)),0.2) | |
2283 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/7)), 0, math.rad(0)), 0.2) | |
2284 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .1) | |
2285 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .1) | |
2286 | end | |
2287 | elseif animpose == "Running" then | |
2288 | change = 1 | |
2289 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10-20*math.cos(sine/4)/2), math.rad(-40+10*math.cos(sine/4)/2), math.rad(50-10*math.cos(sine/4)/2)), 0.2) | |
2290 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .5)*CFrame.Angles(math.rad(10+20*math.cos(sine/4)/2), math.rad(40-10*math.cos(sine/4)/2), math.rad(-50+10*math.cos(sine/4)/2)), 0.2) | |
2291 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2) | |
2292 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2) | |
2293 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4) | |
2294 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4) | |
2295 | end | |
2296 | end | |
2297 | if animpose == "Walking" then | |
2298 | if footsteps == false then | |
2299 | x:Play() | |
2300 | footsteps = true | |
2301 | end | |
2302 | x.Pitch = 0.9 | |
2303 | elseif animpose == "Idle" then | |
2304 | x:Stop() | |
2305 | footsteps = false | |
2306 | elseif animpose == "Running" then | |
2307 | x.Pitch = 1.2 | |
2308 | if footsteps == false then | |
2309 | x:Play() | |
2310 | footsteps = true | |
2311 | end | |
2312 | end | |
2313 | end) |