SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end | |
6 | ||
7 | -------[[ Lets start with something simple like the Variables & Settings ]]----- | |
8 | ||
9 | ||
10 | ||
11 | local char = game.Players.LocalPlayer.Character | |
12 | for i,v in pairs(char:children()) do | |
13 | if v:IsA("Accessory") then | |
14 | v:Destroy() | |
15 | end | |
16 | end | |
17 | local aura = Instance.new("ParticleEmitter",game.Players.LocalPlayer.Character.Torso) | |
18 | aura.Size = NumberSequence.new(0) | |
19 | aura.Lifetime = NumberRange.new(0) | |
20 | aura.LightEmission = 0 | |
21 | local jun = game.Players.LocalPlayer | |
22 | local Player=game.Players.LocalPlayer | |
23 | repeat wait() | |
24 | until Player | |
25 | local Char=Player.Character | |
26 | repeat wait() | |
27 | until Char | |
28 | local CurrentEffects={} | |
29 | local CurrentDamages={} | |
30 | local Human=Char.Humanoid | |
31 | local LArm=Char["Left Arm"] | |
32 | local RArm=Char["Right Arm"] | |
33 | local LLeg=Char["Left Leg"] | |
34 | local RLeg=Char["Right Leg"] | |
35 | local Torso=Char.Torso | |
36 | local RS=Torso["Right Shoulder"] | |
37 | local LS=Torso["Left Shoulder"] | |
38 | local RH=Torso["Right Hip"] | |
39 | local LH=Torso["Left Hip"] | |
40 | local Head=Char.Head | |
41 | local Neck=Torso.Neck | |
42 | local RootPart=Char.HumanoidRootPart | |
43 | local RootJoint=RootPart.RootJoint | |
44 | local equipped=false | |
45 | local Debounce=false | |
46 | local Anim="Idle" | |
47 | local chat = game:GetService("Chat") | |
48 | local Mouse=Player:GetMouse() | |
49 | local Lighting=game.Lighting | |
50 | local cf=CFrame.new | |
51 | local v3=Vector3.new | |
52 | local c3=Color3.new | |
53 | local it=Instance.new | |
54 | local angles=CFrame.Angles | |
55 | local rad=math.rad | |
56 | local ran=math.random | |
57 | local huge=math.huge | |
58 | local attacking=false | |
59 | local attacktype=1 | |
60 | local Portalling=false | |
61 | local p = game.Players.LocalPlayer | |
62 | local char = p.Character | |
63 | local mouse = p:GetMouse() | |
64 | local larm = char["Left Arm"] | |
65 | local rarm = char["Right Arm"] | |
66 | local lleg = char["Left Leg"] | |
67 | local rleg = char["Right Leg"] | |
68 | local hed = char.Head | |
69 | local symbolimg = "rbxassetid://349165228" | |
70 | local torso = char.Torso | |
71 | local hum = char.Humanoid | |
72 | local cam = game.Workspace.CurrentCamera | |
73 | local root = char.HumanoidRootPart | |
74 | local deb = false | |
75 | local shot = 0 | |
76 | local debris=game:service"Debris" | |
77 | local l = game:GetService("Lighting") | |
78 | local rs = game:GetService("RunService").RenderStepped | |
79 | local eColors = {"Royal purple", "Really black"} | |
80 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
81 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
82 | LSC0=cf(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
83 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
84 | RSC0=cf(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
85 | ROOTC0 = cf(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
86 | r=game:service'RunService'.RenderStepped | |
87 | -------------------------------------------------------------------- | |
88 | ||
89 | ||
90 | ||
91 | local Transforming = true | |
92 | Human.WalkSpeed = 0 | |
93 | ||
94 | ||
95 | Player:ClearCharacterAppearance() | |
96 | wait(0.1) | |
97 | Player.Character.Head.BrickColor = BrickColor.new("Really black") | |
98 | Player.Character.Torso.BrickColor = BrickColor.new("Really black") | |
99 | Player.Character["Right Arm"].BrickColor = BrickColor.new("Really black") | |
100 | Player.Character["Right Leg"].BrickColor = BrickColor.new("Really black") | |
101 | Player.Character["Left Leg"].BrickColor = BrickColor.new("Really black") | |
102 | Player.Character["Left Arm"].BrickColor = BrickColor.new("Really black") | |
103 | Player.Character.Head.face:Destroy() | |
104 | ||
105 | ||
106 | ||
107 | ||
108 | ||
109 | ||
110 | ||
111 | local selectionBoxOfTorso = Instance.new("SelectionBox",Torso) | |
112 | selectionBoxOfTorso.Adornee = Torso | |
113 | selectionBoxOfTorso.Color = BrickColor.new("Lime green") | |
114 | selectionBoxOfTorso.LineThickness = 0.01 | |
115 | selectionBoxOfTorso.Transparency = 0 | |
116 | ||
117 | local selectionBoxOfRightArm = Instance.new("SelectionBox",Char["Right Arm"]) | |
118 | selectionBoxOfRightArm.Adornee = Char["Right Arm"] | |
119 | selectionBoxOfRightArm.Color = BrickColor.new("Lime green") | |
120 | selectionBoxOfRightArm.LineThickness = 0.01 | |
121 | selectionBoxOfRightArm.Transparency = 0 | |
122 | ||
123 | local selectionBoxOfRightLeg = Instance.new("SelectionBox",Char["Right Leg"]) | |
124 | selectionBoxOfRightLeg.Adornee = Char["Right Leg"] | |
125 | selectionBoxOfRightLeg.Color = BrickColor.new("Lime green") | |
126 | selectionBoxOfRightLeg.LineThickness = 0.01 | |
127 | selectionBoxOfRightLeg.Transparency = 0 | |
128 | ||
129 | local selectionBoxOfLeftArm = Instance.new("SelectionBox",Char["Left Arm"]) | |
130 | selectionBoxOfLeftArm.Adornee = Char["Left Arm"] | |
131 | selectionBoxOfLeftArm.Color = BrickColor.new("Lime green") | |
132 | selectionBoxOfLeftArm.LineThickness = 0.01 | |
133 | selectionBoxOfLeftArm.Transparency = 0 | |
134 | ||
135 | local selectionBoxOfLeftLeg = Instance.new("SelectionBox",Char["Left Leg"]) | |
136 | selectionBoxOfLeftLeg.Adornee = Char["Left Leg"] | |
137 | selectionBoxOfLeftLeg.Color = BrickColor.new("Lime green") | |
138 | selectionBoxOfLeftLeg.LineThickness = 0.01 | |
139 | selectionBoxOfLeftLeg.Transparency = 0 | |
140 | ||
141 | ||
142 | LightOnBody = Instance.new("PointLight", Head) | |
143 | LightOnBody.Brightness = 3000 | |
144 | LightOnBody.Range = 20 | |
145 | LightOnBody.Color = Color3.new(0, 225, 0) | |
146 | ||
147 | ||
148 | ||
149 | local p = game.Players.LocalPlayer | |
150 | local char = p.Character | |
151 | GodOfDestruction = Instance.new("Model",game.Players.LocalPlayer.Character.Torso) | |
152 | GodOfDestruction.Name = "GodOfDestruction" | |
153 | humanoid = Instance.new("Humanoid",game.Players.LocalPlayer.Character.Torso.GodOfDestruction) | |
154 | shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character.Torso.GodOfDestruction) | |
155 | shirt.Name = "Shirt" | |
156 | pants = Instance.new("Pants",game.Players.LocalPlayer.Character.Torso.GodOfDestruction) | |
157 | pants.Name = "Pants" | |
158 | torso = Instance.new("Part",game.Players.LocalPlayer.Character.Torso.GodOfDestruction) | |
159 | torso.Size = Vector3.new(2,2,1) | |
160 | torso.Rotation = Vector3.new(0,180,0) | |
161 | torso.Position = Vector3.new(0,4,0) | |
162 | torso.BrickColor = BrickColor.new("Really black") | |
163 | torso.Name = "Torso" | |
164 | head = Instance.new("Part",game.Players.LocalPlayer.Character.Torso.GodOfDestruction) | |
165 | head.Size = Vector3.new(1.25,1.25,1.25) | |
166 | head.BrickColor = BrickColor.new("Really black") | |
167 | head.Name = "Head" | |
168 | head.Position = Vector3.new(0,6,0) | |
169 | headmesh = Instance.new("SpecialMesh",head) | |
170 | headmesh.MeshType = "Head" | |
171 | larm = Instance.new("Part",game.Players.LocalPlayer.Character.Torso.GodOfDestruction) | |
172 | larm.Size = Vector3.new(1,2,1) | |
173 | larm.BrickColor = BrickColor.new("Really black") | |
174 | larm.Name = "Left Arm" | |
175 | larm.Position = Vector3.new(-2,4,0) | |
176 | rarm = Instance.new("Part",game.Players.LocalPlayer.Character.Torso.GodOfDestruction) | |
177 | rarm.Size = Vector3.new(1,2,1) | |
178 | rarm.BrickColor = BrickColor.new("Really black") | |
179 | rarm.Name = "Right Arm" | |
180 | rarm.Position = Vector3.new(2,4,0) | |
181 | lleg = Instance.new("Part",game.Players.LocalPlayer.Character.Torso.GodOfDestruction) | |
182 | lleg.Size = Vector3.new(1,2,1) | |
183 | lleg.Name = "Left Leg" | |
184 | lleg.Position = Vector3.new(1,2,0) | |
185 | lleg.BrickColor = BrickColor.new("Really black") | |
186 | rleg = Instance.new("Part",game.Players.LocalPlayer.Character.Torso.GodOfDestruction) | |
187 | rleg.Size = Vector3.new(1,2,1) | |
188 | rleg.Name = "Right Leg" | |
189 | rleg.Position = Vector3.new(-1,2,0) | |
190 | rleg.BrickColor = BrickColor.new("Really black") | |
191 | headweld = Instance.new("Weld",game.Players.LocalPlayer.Character.Torso.GodOfDestruction.Head) | |
192 | headweld.Part0 = game.Players.LocalPlayer.Character.Torso.GodOfDestruction.Head | |
193 | headweld.Part1 = torso | |
194 | headweld.C0 = CFrame.new(0, -1.5, 0) | |
195 | larmweld = Instance.new("Weld",game.Players.LocalPlayer.Character.Torso.GodOfDestruction.Torso) | |
196 | larmweld.Part0 = game.Players.LocalPlayer.Character.Torso.GodOfDestruction.Torso | |
197 | larmweld.Part1 = larm | |
198 | larmweld.C0 = CFrame.new(1.5, 0, 0) | |
199 | rarmweld = Instance.new("Weld",game.Players.LocalPlayer.Character.Torso.GodOfDestruction.Torso) | |
200 | rarmweld.Part0 = game.Players.LocalPlayer.Character.Torso.GodOfDestruction.Torso | |
201 | rarmweld.Part1 = rarm | |
202 | rarmweld.C0 = CFrame.new(-1.5, 0, 0) | |
203 | rlegweld = Instance.new("Weld",game.Players.LocalPlayer.Character.Torso.GodOfDestruction.Torso) | |
204 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso.GodOfDestruction.Torso | |
205 | rlegweld.Part1 = rleg | |
206 | rlegweld.C0 = CFrame.new(-0.5, -2, 0) | |
207 | llegweld = Instance.new("Weld",game.Players.LocalPlayer.Character.Torso.GodOfDestruction.Torso) | |
208 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso.GodOfDestruction.Torso | |
209 | llegweld.Part1 = lleg | |
210 | llegweld.C0 = CFrame.new(0.5, -2, 0) | |
211 | npctoplayer = Instance.new("Weld",game.Players.LocalPlayer.Character.Torso) | |
212 | npctoplayer.Part0 = game.Players.LocalPlayer.Character.Torso | |
213 | npctoplayer.Part1 = torso | |
214 | npctoplayer.C0 = CFrame.new(0, 0, -10) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) | |
215 | ||
216 | ||
217 | local selectionBoxOfTorso = Instance.new("SelectionBox",torso) | |
218 | selectionBoxOfTorso.Adornee = torso | |
219 | selectionBoxOfTorso.Color = BrickColor.new("Really red") | |
220 | selectionBoxOfTorso.LineThickness = 0.01 | |
221 | selectionBoxOfTorso.Transparency = 0 | |
222 | ||
223 | local selectionBoxOfRightArm = Instance.new("SelectionBox",rarm) | |
224 | selectionBoxOfRightArm.Adornee =rarm | |
225 | selectionBoxOfRightArm.Color = BrickColor.new("Really red") | |
226 | selectionBoxOfRightArm.LineThickness = 0.01 | |
227 | selectionBoxOfRightArm.Transparency = 0 | |
228 | ||
229 | local selectionBoxOfRightLeg = Instance.new("SelectionBox",rleg) | |
230 | selectionBoxOfRightLeg.Adornee =rleg | |
231 | selectionBoxOfRightLeg.Color = BrickColor.new("Really red") | |
232 | selectionBoxOfRightLeg.LineThickness = 0.01 | |
233 | selectionBoxOfRightLeg.Transparency = 0 | |
234 | ||
235 | local selectionBoxOfLeftArm = Instance.new("SelectionBox",larm) | |
236 | selectionBoxOfLeftArm.Adornee = larm | |
237 | selectionBoxOfLeftArm.Color = BrickColor.new("Really red") | |
238 | selectionBoxOfLeftArm.LineThickness = 0.01 | |
239 | selectionBoxOfLeftArm.Transparency = 0 | |
240 | ||
241 | local selectionBoxOfLeftLeg = Instance.new("SelectionBox",lleg) | |
242 | selectionBoxOfLeftLeg.Adornee = lleg | |
243 | selectionBoxOfLeftLeg.Color = BrickColor.new("Really red") | |
244 | selectionBoxOfLeftLeg.LineThickness = 0.01 | |
245 | selectionBoxOfLeftLeg.Transparency = 0 | |
246 | ||
247 | ||
248 | LightOnBody = Instance.new("PointLight", head) | |
249 | LightOnBody.Brightness = 3000 | |
250 | LightOnBody.Range = 20 | |
251 | LightOnBody.Color = Color3.new(225, 0, 0) | |
252 | ||
253 | ||
254 | ||
255 | ||
256 | ||
257 | ||
258 | ||
259 | ||
260 | CV="Pastel blue" | |
261 | ||
262 | local txt = Instance.new("BillboardGui", GodOfDestruction) | |
263 | txt.Adornee = head | |
264 | txt.Name = "_status" | |
265 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
266 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
267 | local text = Instance.new("TextLabel", txt) | |
268 | text.Size = UDim2.new(10, 0, 7, 0) | |
269 | text.FontSize = "Size24" | |
270 | text.TextScaled = true | |
271 | text.TextTransparency = 0 | |
272 | text.BackgroundTransparency = 1 | |
273 | text.TextTransparency = 0 | |
274 | text.TextStrokeTransparency = 0 | |
275 | text.Font = "Antique" | |
276 | text.TextStrokeColor3 = Color3.new(225,0,0) | |
277 | ||
278 | v=Instance.new("Part") | |
279 | v.Name = "ColorBrick" | |
280 | v.Parent=Player.Character | |
281 | v.FormFactor="Symmetric" | |
282 | v.Anchored=true | |
283 | v.CanCollide=false | |
284 | v.BottomSurface="Smooth" | |
285 | v.TopSurface="Smooth" | |
286 | v.Size=Vector3.new(10,5,3) | |
287 | v.Transparency=1 | |
288 | v.CFrame=Char.Torso.CFrame | |
289 | v.BrickColor=BrickColor.new(CV) | |
290 | v.Transparency=1 | |
291 | text.TextColor3 = Color3.new(0,0,0) | |
292 | v.Shape="Block" | |
293 | text.Text = "God Of Destruction" | |
294 | ||
295 | ||
296 | ||
297 | ||
298 | local ChatService = game:GetService("Chat") | |
299 | ||
300 | ChatService:Chat(Head, "If we fuse...we will become the omni god..", "Green") | |
301 | wait(4) | |
302 | ChatService:Chat(Head, "No one will be able to stop us...", "Green") | |
303 | wait(4) | |
304 | ChatService:Chat(Head, "Lets do this...", "Green") | |
305 | ||
306 | ||
307 | local close = -10 | |
308 | for i=1,10 do | |
309 | wait(0.2) | |
310 | close = close + 1 | |
311 | npctoplayer.C0 = CFrame.new(0, 0, close) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(0)) | |
312 | end | |
313 | game.Players.LocalPlayer.Character.Torso.GodOfDestruction:Destroy() | |
314 | wait(0.1) | |
315 | local p = game.Players.LocalPlayer | |
316 | local char = p.Character | |
317 | local mouse = p:GetMouse() | |
318 | local larm = char["Left Arm"] | |
319 | local rarm = char["Right Arm"] | |
320 | local lleg = char["Left Leg"] | |
321 | local rleg = char["Right Leg"] | |
322 | local hed = char.Head | |
323 | local torso = char.Torso | |
324 | local hum = char.Humanoid | |
325 | local cam = game.Workspace.CurrentCamera | |
326 | local root = char.HumanoidRootPart | |
327 | local deb = false | |
328 | local shot = 0 | |
329 | local debris=game:service"Debris" | |
330 | local l = game:GetService("Lighting") | |
331 | local rs = game:GetService("RunService").RenderStepped | |
332 | ||
333 | ||
334 | Debounces = { | |
335 | CanAttack = true; | |
336 | NoIdl = false; | |
337 | Slashing = false; | |
338 | Slashed = false; | |
339 | RPunch = false; | |
340 | Invisible = false; | |
341 | RPunched = false; | |
342 | LPunch = false; | |
343 | LPunched = false; | |
344 | } | |
345 | local Touche = {char.Name, } | |
346 | ||
347 | ||
348 | function genWeld(a,b) | |
349 | local w = Instance.new("Weld",a) | |
350 | w.Part0 = a | |
351 | w.Part1 = b | |
352 | return w | |
353 | end | |
354 | function weld(a, b) | |
355 | local weld = Instance.new("Weld") | |
356 | weld.Name = "W" | |
357 | weld.Part0 = a | |
358 | weld.Part1 = b | |
359 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
360 | weld.Parent = a | |
361 | return weld; | |
362 | end | |
363 | ---------------------------------------------------- | |
364 | function Lerp(c1,c2,al) | |
365 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
366 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
367 | for i,v in pairs(com1) do | |
368 | com1[i] = v+(com2[i]-v)*al | |
369 | end | |
370 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
371 | end | |
372 | ---------------------------------------------------- | |
373 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
374 | local wld = Instance.new("Weld", wp1) | |
375 | wld.Part0 = wp0 | |
376 | wld.Part1 = wp1 | |
377 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
378 | end | |
379 | ---------------------------------------------------- | |
380 | function weld5(part0, part1, c0, c1) | |
381 | weeld=Instance.new("Weld", part0) | |
382 | weeld.Part0=part0 | |
383 | weeld.Part1=part1 | |
384 | weeld.C0=c0 | |
385 | weeld.C1=c1 | |
386 | return weeld | |
387 | end | |
388 | ---------------------------------------------------- | |
389 | function HasntTouched(plrname) | |
390 | local ret = true | |
391 | for _, v in pairs(Touche) do | |
392 | if v == plrname then | |
393 | ret = false | |
394 | end | |
395 | end | |
396 | return ret | |
397 | end | |
398 | ---------------------------------------------------- | |
399 | ||
400 | newWeld(torso, larm, -1.5, 0.5, 0) | |
401 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
402 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
403 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
404 | newWeld(torso, hed, 0, 1.5, 0) | |
405 | newWeld(torso, lleg, -0.5, -1, 0) | |
406 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
407 | newWeld(torso, rleg, 0.5, -1, 0) | |
408 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
409 | newWeld(root, torso, 0, -1, 0) | |
410 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
411 | ||
412 | ||
413 | p = Instance.new("Part") | |
414 | p.BrickColor = BrickColor.new("Dark indigo") | |
415 | p.Transparency = 1 | |
416 | TorsoColor = p.BrickColor | |
417 | ||
418 | ||
419 | local Transforming = true | |
420 | hum.WalkSpeed = 0 | |
421 | ||
422 | ||
423 | ||
424 | ||
425 | local fx = Instance.new("Part",Torso) | |
426 | wit = p.BrickColor.Color | |
427 | wit2 = Color3.new(85,0,127) | |
428 | local glowz = Instance.new("ParticleEmitter",fx) | |
429 | glowz.LightEmission = 1 | |
430 | glowz.Texture = "rbxassetid://284205403" | |
431 | glowz.Color = ColorSequence.new(wit) | |
432 | glowz.Size = NumberSequence.new(5) | |
433 | glowz.Speed = NumberRange.new(25,50) | |
434 | glowz.LockedToPart = false | |
435 | glowz.Transparency = NumberSequence.new(0.75) | |
436 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
437 | glowz.Lifetime = NumberRange.new(1) | |
438 | glowz.Rate = 50000 | |
439 | glowz.VelocitySpread = 9001 | |
440 | local glowz2 = Instance.new("ParticleEmitter",fx) | |
441 | glowz2.LightEmission = 0.5 | |
442 | glowz.Texture = "rbxassetid://284205403" | |
443 | glowz2.Color = ColorSequence.new(wit2) | |
444 | glowz2.Size = NumberSequence.new(5) | |
445 | glowz2.Speed = NumberRange.new(25,50) | |
446 | glowz2.LockedToPart = false | |
447 | glowz2.Transparency = NumberSequence.new(0.75) | |
448 | glowz2.RotSpeed = NumberRange.new(-2000,2000) | |
449 | glowz2.Lifetime = NumberRange.new(1) | |
450 | glowz2.Rate = 50000 | |
451 | glowz2.VelocitySpread = 9001 | |
452 | fx.Anchored = true | |
453 | fx.Material = "Neon" | |
454 | fx.CanCollide = false | |
455 | fx.Locked = true | |
456 | fx.Transparency = 1 | |
457 | fx.Material = "Neon" | |
458 | fx.Size = Vector3.new(1,1,1) | |
459 | fx.TopSurface = "SmoothNoOutlines" | |
460 | fx.BottomSurface = "SmoothNoOutlines" | |
461 | fx.BrickColor = BrickColor.new("Really black") | |
462 | fxm = Instance.new("SpecialMesh",fx) | |
463 | fxm.MeshType = "Sphere" | |
464 | local sa2 = Instance.new("Sound",Torso) | |
465 | sa2.SoundId = "rbxassetid://93724183" | |
466 | sa2.Pitch = 0.5 | |
467 | sa2.Volume = 5 | |
468 | sa2.Looped = false | |
469 | sa2:Play() | |
470 | local value = 1 | |
471 | fxm.Scale = Vector3.new(1,1,1) | |
472 | for i = 1, 20 do rs:wait() | |
473 | value = value - 0.05 | |
474 | fx.Transparency = fx.Transparency - (1/20) | |
475 | fx.CFrame = Torso.CFrame | |
476 | fxm.Scale = fxm.Scale + Vector3.new(value,value,value) | |
477 | rs:wait() | |
478 | end | |
479 | ||
480 | ||
481 | selectionBoxOfTorso:Destroy() | |
482 | selectionBoxOfRightArm:Destroy() | |
483 | selectionBoxOfRightLeg:Destroy() | |
484 | selectionBoxOfLeftArm:Destroy() | |
485 | selectionBoxOfLeftLeg:Destroy() | |
486 | LightOnBody:Destroy() | |
487 | ||
488 | ||
489 | local selectionBoxOfTorso = Instance.new("SelectionBox",Torso) | |
490 | selectionBoxOfTorso.Adornee = Torso | |
491 | selectionBoxOfTorso.Color = BrickColor.new("Royal purple") | |
492 | selectionBoxOfTorso.LineThickness = 0.01 | |
493 | selectionBoxOfTorso.Transparency = 0 | |
494 | ||
495 | local selectionBoxOfRightArm = Instance.new("SelectionBox",Char["Right Arm"]) | |
496 | selectionBoxOfRightArm.Adornee = Char["Right Arm"] | |
497 | selectionBoxOfRightArm.Color = BrickColor.new("Royal purple") | |
498 | selectionBoxOfRightArm.LineThickness = 0.01 | |
499 | selectionBoxOfRightArm.Transparency = 0 | |
500 | ||
501 | local selectionBoxOfRightLeg = Instance.new("SelectionBox",Char["Right Leg"]) | |
502 | selectionBoxOfRightLeg.Adornee = Char["Right Leg"] | |
503 | selectionBoxOfRightLeg.Color = BrickColor.new("Royal purple") | |
504 | selectionBoxOfRightLeg.LineThickness = 0.01 | |
505 | selectionBoxOfRightLeg.Transparency = 0 | |
506 | ||
507 | local selectionBoxOfLeftArm = Instance.new("SelectionBox",Char["Left Arm"]) | |
508 | selectionBoxOfLeftArm.Adornee = Char["Left Arm"] | |
509 | selectionBoxOfLeftArm.Color = BrickColor.new("Royal purple") | |
510 | selectionBoxOfLeftArm.LineThickness = 0.01 | |
511 | selectionBoxOfLeftArm.Transparency = 0 | |
512 | ||
513 | local selectionBoxOfLeftLeg = Instance.new("SelectionBox",Char["Left Leg"]) | |
514 | selectionBoxOfLeftLeg.Adornee = Char["Left Leg"] | |
515 | selectionBoxOfLeftLeg.Color = BrickColor.new("Royal purple") | |
516 | selectionBoxOfLeftLeg.LineThickness = 0.01 | |
517 | selectionBoxOfLeftLeg.Transparency = 0 | |
518 | ||
519 | ||
520 | ||
521 | ||
522 | local Orbd = Instance.new("Part", char) | |
523 | Orbd.Name = "Orbd" | |
524 | Orbd.Shape = Enum.PartType.Ball | |
525 | Orbd.CanCollide = false | |
526 | ||
527 | Orbd.BrickColor = BrickColor.new("Royal purple") | |
528 | ||
529 | Orbd.Transparency = 0 | |
530 | Orbd.Material = "Neon" | |
531 | Orbd.Size = Vector3.new(0.1, 0.1, 0.1) | |
532 | Orbd.TopSurface = Enum.SurfaceType.Smooth | |
533 | Orbd.BottomSurface = Enum.SurfaceType.Smooth | |
534 | ||
535 | local Weld = Instance.new("Weld", Orbd) | |
536 | Weld.Part0 = char.Head | |
537 | Weld.Part1 = Orbd | |
538 | Weld.C1 = CFrame.new(-0.2, -0.2, 0.5) | |
539 | local glov = Instance.new("PointLight", Orbd) | |
540 | glov.Brightness = 3000 | |
541 | glov.Range = 20 | |
542 | glov.Color = Color3.new(255, 0, 255) | |
543 | ||
544 | -------------------------------------------------------- | |
545 | local Orbvc = Instance.new("Part", char) | |
546 | Orbvc.Name = "Orbvc" | |
547 | Orbvc.Shape = Enum.PartType.Ball | |
548 | Orbvc.CanCollide = false | |
549 | ||
550 | Orbvc.BrickColor = BrickColor.new("Royal purple") | |
551 | ||
552 | Orbvc.Transparency = 0 | |
553 | Orbvc.Material = "Neon" | |
554 | Orbvc.Size = Vector3.new(0.1, 0.1, 0.1) | |
555 | Orbvc.TopSurface = Enum.SurfaceType.Smooth | |
556 | Orbvc.BottomSurface = Enum.SurfaceType.Smooth | |
557 | ||
558 | local Weld = Instance.new("Weld", Orbvc) | |
559 | Weld.Part0 = char.Head | |
560 | Weld.Part1 = Orbvc | |
561 | Weld.C1 = CFrame.new(0.2, -0.2, 0.5) | |
562 | local glo = Instance.new("PointLight", Orbvc) | |
563 | glo.Brightness = 3000 | |
564 | glo.Range = 20 | |
565 | glo.Color = Color3.new(255, 0, 255) | |
566 | ---------------------------------------------------- | |
567 | ||
568 | ||
569 | ||
570 | ||
571 | ||
572 | ||
573 | ||
574 | ||
575 | ||
576 | ||
577 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
578 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
579 | local List = {} | |
580 | for i,v in pairs(workspace:GetChildren())do | |
581 | if v:IsA("Model")then | |
582 | if v:findFirstChild("Torso")then | |
583 | if v ~= char then | |
584 | if(v.Torso.Position -Position).magnitude <= Distance then | |
585 | table.insert(List,v) | |
586 | end | |
587 | end | |
588 | end | |
589 | end | |
590 | end | |
591 | return List | |
592 | end | |
593 | ||
594 | ||
595 | ||
596 | ||
597 | GroundWave1 = function() | |
598 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
599 | local Colors = {"Royal purple", "Really black"} | |
600 | local wave = Instance.new("Part", Torso) | |
601 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
602 | wave.Anchored = true | |
603 | wave.CanCollide = false | |
604 | wave.Locked = true | |
605 | wave.Size = Vector3.new(1, 1, 1) | |
606 | wave.TopSurface = "Smooth" | |
607 | wave.BottomSurface = "Smooth" | |
608 | wave.Transparency = 0.35 | |
609 | wave.CFrame = HandCF | |
610 | wm = Instance.new("SpecialMesh", wave) | |
611 | wm.MeshId = "rbxassetid://3270017" | |
612 | coroutine.wrap(function() | |
613 | for i = 1, 30, 1 do | |
614 | wm.Scale = Vector3.new(50, 50, 1 + i*50) | |
615 | wave.Size = wm.Scale | |
616 | wave.CFrame = HandCF | |
617 | wave.Transparency = i/30 | |
618 | wait() | |
619 | end | |
620 | wait() | |
621 | wave:Destroy() | |
622 | end)() | |
623 | end | |
624 | ---------------------------------------------------- | |
625 | ||
626 | ||
627 | GroundWave3 = function() | |
628 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
629 | local Colors = {"Royal purple", "Royal purple"} | |
630 | local wave = Instance.new("Part", torso) | |
631 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
632 | wave.Anchored = true | |
633 | wave.CanCollide = false | |
634 | wave.Locked = true | |
635 | wave.Size = Vector3.new(1, 1, 1) | |
636 | wave.TopSurface = "Smooth" | |
637 | wave.BottomSurface = "Smooth" | |
638 | wave.Transparency = 0.35 | |
639 | wave.CFrame = HandCF | |
640 | wm = Instance.new("SpecialMesh", wave) | |
641 | wm.MeshId = "rbxassetid://3270017" | |
642 | coroutine.wrap(function() | |
643 | for i = 1, 14, 1 do | |
644 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
645 | wave.Size = wm.Scale | |
646 | wave.CFrame = HandCF | |
647 | wave.Transparency = i/14 | |
648 | wait() | |
649 | end | |
650 | wait() | |
651 | wave:Destroy() | |
652 | end)() | |
653 | end | |
654 | ||
655 | ||
656 | ||
657 | ||
658 | ||
659 | local acos = math.acos | |
660 | local sqrt = math.sqrt | |
661 | local Vec3 = Vector3.new | |
662 | local fromAxisAngle = CFrame.fromAxisAngle | |
663 | ||
664 | local function toAxisAngle(CFr) | |
665 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
666 | local Angle = math.acos((R00+R11+R22-1)/2) | |
667 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
668 | A = A == 0 and 0.00001 or A | |
669 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
670 | B = B == 0 and 0.00001 or B | |
671 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
672 | C = C == 0 and 0.00001 or C | |
673 | local x = (R21-R12)/sqrt(A) | |
674 | local y = (R02-R20)/sqrt(B) | |
675 | local z = (R10-R01)/sqrt(C) | |
676 | return Vec3(x,y,z),Angle | |
677 | end | |
678 | ||
679 | local acos = math.acos | |
680 | local sqrt = math.sqrt | |
681 | local Vec3 = Vector3.new | |
682 | local fromAxisAngle = CFrame.fromAxisAngle | |
683 | ||
684 | local function toAxisAngle(CFr) | |
685 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
686 | local Angle = math.acos((R00+R11+R22-1)/2) | |
687 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
688 | A = A == 0 and 0.00001 or A | |
689 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
690 | B = B == 0 and 0.00001 or B | |
691 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
692 | C = C == 0 and 0.00001 or C | |
693 | local x = (R21-R12)/sqrt(A) | |
694 | local y = (R02-R20)/sqrt(B) | |
695 | local z = (R10-R01)/sqrt(C) | |
696 | return Vec3(x,y,z),Angle | |
697 | end | |
698 | ||
699 | function ApplyTrig(Num,Func) | |
700 | local Min,Max = Func(0),Func(1) | |
701 | local i = Func(Num) | |
702 | return (i-Min)/(Max-Min) | |
703 | --[[if Func == "sin" then | |
704 | return (math.sin((1-Num)*math.pi)+1)/2 | |
705 | elseif Func == "cos" then | |
706 | return (math.cos((1-Num)*math.pi)+1)/2 | |
707 | end]] | |
708 | end | |
709 | ||
710 | function LerpCFrame(CFrame1,CFrame2,Num) | |
711 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
712 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
713 | end | |
714 | ||
715 | ||
716 | ||
717 | local togglecamshake = true | |
718 | ||
719 | function camshake(partoz, magn, intens) | |
720 | if togglecamshake == true then | |
721 | return | |
722 | end | |
723 | for _, guy in pairs(workspace:GetChildren()) do | |
724 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("Torso") and guy.Name ~= "Noob" and magn > (guy:FindFirstChild("Torso").Position - partoz.Position).magnitude then | |
725 | coroutine.resume(coroutine.create(function() | |
726 | local humz = guy:FindFirstChild("Humanoid") | |
727 | local torse = guy:FindFirstChild("Torso") | |
728 | for _ = 1, 5 * intens do | |
729 | wait() | |
730 | humz.CameraOffset = Vector3.new(2 * math.random(-intens, intens), 0.5 * math.random(-intens, intens), 2 * math.random(-intens, intens)) | |
731 | end | |
732 | humz.CameraOffset = Vector3.new(0, 0, 0) | |
733 | end)) | |
734 | end | |
735 | end | |
736 | end | |
737 | ||
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 = BrickColor.new("Royal purple") | |
756 | P.Material = "Granite" | |
757 | P.TopSurface = "Smooth" | |
758 | P.BottomSurface = "Smooth" | |
759 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
760 | 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))) | |
761 | 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} | |
762 | if math.random(0,5) == 0 then -- rubble | |
763 | local P = Instance.new("Part",Torso.Parent) | |
764 | P.Anchored = true | |
765 | P.FormFactor = "Custom" | |
766 | P.BrickColor = BrickColor.new("Royal Purple") | |
767 | P.Material = Hit.Material | |
768 | P.TopSurface = "Smooth" | |
769 | P.BottomSurface = "Smooth" | |
770 | P.Size = Vector3.new(5,5,5)*(math.random(80,100)/100) | |
771 | 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))) | |
772 | 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} | |
773 | end | |
774 | end | |
775 | for i = 0,1,0.05 do | |
776 | for i2,v in pairs(Parts) do | |
777 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
778 | end | |
779 | wait(0.02) | |
780 | end | |
781 | for i,v in pairs(Parts) do | |
782 | if v[1].Size.X > 2.1 then | |
783 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
784 | end | |
785 | v[1].Anchored = false | |
786 | end | |
787 | for i = 0,1,0.05 do | |
788 | for i2,v in pairs(Parts) do | |
789 | v[1].Transparency = i | |
790 | if i == 1 then | |
791 | v[1]:Destroy() | |
792 | elseif i >= 0.25 then | |
793 | v[1].CanCollide = false | |
794 | end | |
795 | end | |
796 | wait(0.02) | |
797 | end | |
798 | Parts = nil | |
799 | end) | |
800 | end | |
801 | ||
802 | ||
803 | ||
804 | GroundWave = function() | |
805 | if Transforming == true then | |
806 | local value = 5 | |
807 | local value2 = 10 | |
808 | local value3 = 20 | |
809 | local sa2 = Instance.new("Sound",Torso) | |
810 | sa2.SoundId = "rbxassetid://393621716" | |
811 | sa2.Pitch = 1 | |
812 | sa2.Volume = 10 | |
813 | sa2.Looped = false | |
814 | sa2:Play() | |
815 | local wave = Instance.new("Part", Torso) | |
816 | local glowz = Instance.new("ParticleEmitter",wave) | |
817 | glowz.LightEmission = 1 | |
818 | glowz.Texture = "rbxassetid://284205403" | |
819 | glowz.Color = ColorSequence.new(wit) | |
820 | glowz.Size = NumberSequence.new(30) | |
821 | glowz.Speed = NumberRange.new(25,100) | |
822 | glowz.LockedToPart = false | |
823 | glowz.Transparency = NumberSequence.new(0.75) | |
824 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
825 | glowz.Lifetime = NumberRange.new(1) | |
826 | glowz.Rate = 50000 | |
827 | glowz.VelocitySpread = 9001 | |
828 | local glowz2 = Instance.new("ParticleEmitter",wave) | |
829 | glowz2.LightEmission = 1 | |
830 | glowz.Texture = "rbxassetid://284205403" | |
831 | glowz2.Color = ColorSequence.new(wit) | |
832 | glowz2.Size = NumberSequence.new(30) | |
833 | glowz2.Speed = NumberRange.new(25,100) | |
834 | glowz2.LockedToPart = false | |
835 | glowz2.Transparency = NumberSequence.new(0.75) | |
836 | glowz2.RotSpeed = NumberRange.new(-2000,2000) | |
837 | glowz2.Lifetime = NumberRange.new(1) | |
838 | glowz2.Rate = 50000 | |
839 | glowz2.VelocitySpread = 9001 | |
840 | wave.BrickColor = BrickColor.new("Really black") | |
841 | wave.Anchored = true | |
842 | wave.CanCollide = false | |
843 | wave.Locked = true | |
844 | wave.Size = Vector3.new(1, 1, 1) | |
845 | wave.TopSurface = "Smooth" | |
846 | wave.BottomSurface = "Smooth" | |
847 | wave.Transparency = 0.35 | |
848 | wave.CFrame = fx.CFrame | |
849 | wave.Material = "Neon" | |
850 | wm = Instance.new("SpecialMesh", wave) | |
851 | wm.MeshType = "Sphere" | |
852 | wm.Scale = Vector3.new(1,1,1) | |
853 | local wave2 = Instance.new("Part", Torso) | |
854 | wave2.BrickColor = TorsoColor | |
855 | wave2.Anchored = true | |
856 | wave2.CanCollide = false | |
857 | wave2.Locked = true | |
858 | wave2.Size = Vector3.new(1, 1, 1) | |
859 | wave2.TopSurface = "Smooth" | |
860 | wave2.BottomSurface = "Smooth" | |
861 | wave2.Transparency = 0.35 | |
862 | wave2.CFrame = fx.CFrame | |
863 | wave2.Material = "Neon" | |
864 | wm2 = Instance.new("SpecialMesh", wave2) | |
865 | wm2.MeshType = "FileMesh" | |
866 | wm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
867 | wm2.Scale = Vector3.new(1,1,1) | |
868 | local wave3 = Instance.new("Part", Torso) | |
869 | wave3.BrickColor = BrickColor.new("Really black") | |
870 | wave3.Anchored = true | |
871 | wave3.CanCollide = false | |
872 | wave3.Locked = true | |
873 | wave3.Size = Vector3.new(1, 1, 1) | |
874 | wave3.TopSurface = "Smooth" | |
875 | wave3.BottomSurface = "Smooth" | |
876 | wave3.Transparency = 0.35 | |
877 | wave3.CFrame = fx.CFrame | |
878 | wave3.Material = "Neon" | |
879 | wm3 = Instance.new("SpecialMesh", wave3) | |
880 | wm3.MeshType = "FileMesh" | |
881 | wm3.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
882 | wm3.Scale = Vector3.new(1,1,1) | |
883 | coroutine.wrap(function() | |
884 | for i = 1, 18, 1 do | |
885 | value = value - 0.5 | |
886 | value2 = value2 - 0.75*1.5 | |
887 | value3 = value3 - 0.475*1.5 | |
888 | wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5) | |
889 | wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5) | |
890 | wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25) | |
891 | --wave.Size = wm.Scale | |
892 | wave.CFrame = fx.CFrame | |
893 | wave.Transparency = i/14 | |
894 | --wave2.Size = wm2.Scale | |
895 | wave2.CFrame = fx.CFrame | |
896 | wave2.Rotation = Vector3.new(90, 0, 0) | |
897 | wave2.Transparency = i/14 | |
898 | --wave3.Size = wm3.Scale | |
899 | wave3.CFrame = fx.CFrame | |
900 | wave3.Rotation = Vector3.new(90, 0, 0) | |
901 | wave3.Transparency = i/14 | |
902 | wait() | |
903 | glowz.Rate = 0 | |
904 | glowz2.Rate = 0 | |
905 | end | |
906 | wait() | |
907 | wave:Destroy() | |
908 | wave2:Destroy() | |
909 | wave3:Destroy() | |
910 | end)() | |
911 | elseif Transforming == false then | |
912 | wait() | |
913 | end | |
914 | end | |
915 | ||
916 | for i = 1, 100 do rs:wait() | |
917 | fx.CFrame = Torso.CFrame | |
918 | end | |
919 | ||
920 | spawn(function() | |
921 | while wait(1) do | |
922 | GroundWave() | |
923 | end | |
924 | end) | |
925 | ||
926 | ||
927 | ||
928 | ||
929 | ||
930 | ||
931 | local RbxUtility = LoadLibrary("RbxUtility") | |
932 | local Create = RbxUtility.Create | |
933 | ||
934 | function RemoveOutlines(part) | |
935 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
936 | end | |
937 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
938 | local Part = Create("Part"){ | |
939 | Parent = Parent, | |
940 | Reflectance = Reflectance, | |
941 | Transparency = Transparency, | |
942 | CanCollide = false, | |
943 | Locked = true, | |
944 | BrickColor = BrickColor.new(tostring(BColor)), | |
945 | Name = Name, | |
946 | Size = Size, | |
947 | Material = Material, | |
948 | } | |
949 | RemoveOutlines(Part) | |
950 | return Part | |
951 | end | |
952 | local Effects = {} | |
953 | ||
954 | ||
955 | ||
956 | wait(2) | |
957 | local Muss = Instance.new("Sound",char) | |
958 | Muss.SoundId = "rbxassetid://186942568" | |
959 | Muss.Pitch = 1 | |
960 | Muss.Volume = 0 | |
961 | Muss.Looped = true | |
962 | Muss:Play() | |
963 | Transforming = false | |
964 | ||
965 | ||
966 | local value2 = 1 | |
967 | for i = 1, 20 do rs:wait() | |
968 | value2 = value2 - 0.05 | |
969 | glowz.Rate = 0 | |
970 | glowz2.Rate = 0 | |
971 | fx.Transparency = fx.Transparency + (1/20) | |
972 | fx.CFrame = torso.CFrame | |
973 | fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2) | |
974 | rs:wait() | |
975 | end | |
976 | ||
977 | ||
978 | local Mus = Instance.new("Sound",char) | |
979 | Mus.SoundId = "rbxassetid://752647397" | |
980 | Mus.Pitch = 1 | |
981 | Mus.Volume = 40 | |
982 | Mus.Looped = false | |
983 | wait(0.3) | |
984 | Mus:Play() | |
985 | ||
986 | glowz:Destroy() | |
987 | glowz2:Destroy() | |
988 | for i = 1,20 do | |
989 | ||
990 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
991 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.2) | |
992 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2) | |
993 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.4) | |
994 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.4, -.7) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.4) | |
995 | end | |
996 | wait(1) | |
997 | for i = 1,20 do | |
998 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
999 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.2) | |
1000 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2) | |
1001 | ||
1002 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.4) | |
1003 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.4) | |
1004 | ||
1005 | end | |
1006 | ||
1007 | ||
1008 | wait(5) | |
1009 | ||
1010 | wait(1.3) | |
1011 | for i = 1,20 do | |
1012 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(30)), 0.2) | |
1013 | ||
1014 | ||
1015 | end | |
1016 | wait(0.4) | |
1017 | for i = 1,20 do | |
1018 | ||
1019 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(-30)), 0.2) | |
1020 | end | |
1021 | wait(0.6) | |
1022 | for i = 1,20 do | |
1023 | wait() | |
1024 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2) | |
1025 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,0)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(-35)), 0.2) | |
1026 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,0)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(35)), 0.2) | |
1027 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.4) | |
1028 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.4) | |
1029 | end | |
1030 | wait(0.2) | |
1031 | for i = 1,20 do | |
1032 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1033 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(30)), 0.2) | |
1034 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(-30)), 0.2) | |
1035 | ||
1036 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.4) | |
1037 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.4) | |
1038 | ||
1039 | end | |
1040 | wait() | |
1041 | ||
1042 | camshake(torso, 48, 6) | |
1043 | for i,v in pairs(FindNearestTorso(Torso.CFrame.p,40))do | |
1044 | if v:FindFirstChild('Humanoid') then | |
1045 | v.Humanoid:TakeDamage(math.random(999999999999999999999999,99999999999999999999999999999999999999)) | |
1046 | end | |
1047 | end | |
1048 | ||
1049 | ||
1050 | ||
1051 | ||
1052 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
1053 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
1054 | end | |
1055 | ||
1056 | function rayCast(Position, Direction, MaxDistance, IgnoreList) | |
1057 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
1058 | end | |
1059 | local TBlast, TBMesh = Instance.new("Part"), Instance.new("SpecialMesh") | |
1060 | TBlast.BrickColor = BrickColor.new("Pink") | |
1061 | TBlast.Transparency = 1 | |
1062 | TBlast.Anchored = true | |
1063 | TBlast.CanCollide = false | |
1064 | TBlast.CFrame = root.CFrame | |
1065 | TBlast.Size = Vector3.new(2,2,2) | |
1066 | TBMesh.Parent = TBlast | |
1067 | TBMesh.MeshType = "Sphere" | |
1068 | game.Lighting.Brightness = 0 | |
1069 | game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color | |
1070 | game.Lighting.TimeOfDay = 0.1 | |
1071 | game.Lighting.FogEnd = 1000 | |
1072 | game.Lighting.FogColor = TBlast.BrickColor.Color | |
1073 | game.Lighting.TimeOfDay = "00:00:00" | |
1074 | game.Lighting.Ambient = Color3.new(0,0,0) | |
1075 | game.Lighting.FogColor = Color3.new(0,0,0) | |
1076 | game.Lighting.FogEnd = 500 | |
1077 | game.Lighting.FogStart = 0 | |
1078 | game.Lighting.GlobalShadows = true | |
1079 | ||
1080 | ||
1081 | ||
1082 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1083 | local valuer = 5 | |
1084 | local valuer2 = 10 | |
1085 | local valuer3 = 15 | |
1086 | local sa2 = Instance.new("Sound",torso) | |
1087 | sa2.SoundId = "rbxassetid://130972023" | |
1088 | sa2.Pitch = 1 | |
1089 | sa2.Volume = 5 | |
1090 | sa2.Looped = false | |
1091 | sa2:Play() | |
1092 | local sar2 = Instance.new("Sound",torso) | |
1093 | sar2.SoundId = "rbxassetid://153274423" | |
1094 | sar2.Pitch = 1 | |
1095 | sar2.Volume = 5 | |
1096 | sar2.Looped = false | |
1097 | sar2:Play() | |
1098 | Crater(torso,67) | |
1099 | ||
1100 | GroundWave4 = function() | |
1101 | ||
1102 | local wave = Instance.new("Part", torso) | |
1103 | wave.BrickColor = BrickColor.new("Royal purple") | |
1104 | wave.Anchored = true | |
1105 | wave.CanCollide = false | |
1106 | wave.Locked = true | |
1107 | wave.Size = Vector3.new(1, 1, 1) | |
1108 | wave.TopSurface = "Smooth" | |
1109 | wave.BottomSurface = "Smooth" | |
1110 | wave.Transparency = 0.35 | |
1111 | wave.CFrame = fx.CFrame | |
1112 | wm = Instance.new("SpecialMesh", wave) | |
1113 | wm.MeshType = "Sphere" | |
1114 | wm.Scale = Vector3.new(1,1,1) | |
1115 | coroutine.wrap(function() | |
1116 | for i = 1, 18, 1 do | |
1117 | wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2) | |
1118 | --wave.Size = wm.Scale | |
1119 | wave.CFrame = fx.CFrame | |
1120 | wave.Transparency = i/14 | |
1121 | wait() | |
1122 | end | |
1123 | wait() | |
1124 | wave:Destroy() | |
1125 | end)() | |
1126 | ||
1127 | end | |
1128 | ||
1129 | ||
1130 | ||
1131 | ||
1132 | ||
1133 | GroundWave1() | |
1134 | ||
1135 | ||
1136 | CV="Pastel blue" | |
1137 | ||
1138 | local txt = Instance.new("BillboardGui", Char) | |
1139 | txt.Adornee = Char .Head | |
1140 | txt.Name = "_status" | |
1141 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
1142 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
1143 | local text = Instance.new("TextLabel", txt) | |
1144 | text.Size = UDim2.new(10, 0, 7, 0) | |
1145 | text.FontSize = "Size24" | |
1146 | text.TextScaled = true | |
1147 | text.TextTransparency = 0 | |
1148 | text.BackgroundTransparency = 1 | |
1149 | text.TextTransparency = 0 | |
1150 | text.TextStrokeTransparency = 0 | |
1151 | text.Font = "Antique" | |
1152 | text.TextStrokeColor3 = Color3.new(170,0,255) | |
1153 | ||
1154 | v=Instance.new("Part") | |
1155 | v.Name = "ColorBrick" | |
1156 | v.Parent=Player.Character | |
1157 | v.FormFactor="Symmetric" | |
1158 | v.Anchored=true | |
1159 | v.CanCollide=false | |
1160 | v.BottomSurface="Smooth" | |
1161 | v.TopSurface="Smooth" | |
1162 | v.Size=Vector3.new(10,5,3) | |
1163 | v.Transparency=1 | |
1164 | v.CFrame=Char.Torso.CFrame | |
1165 | v.BrickColor=BrickColor.new(CV) | |
1166 | v.Transparency=1 | |
1167 | text.TextColor3 = Color3.new(0,0,0) | |
1168 | v.Shape="Block" | |
1169 | text.Text = "The Omni-God of Erradication" | |
1170 | ||
1171 | ||
1172 | ||
1173 | ||
1174 | ROW = function(out, trans, s, wt, t, ang, plus) | |
1175 | for i = 1, 360, 360/t do | |
1176 | local c = Instance.new("Part", game.Workspace) | |
1177 | c.FormFactor = 3 | |
1178 | c.TopSurface = 0 | |
1179 | c.BottomSurface = 0 | |
1180 | c.Size = s | |
1181 | c.Anchored = true | |
1182 | c.CanCollide = wt | |
1183 | c.Material=workspace.Base.Material | |
1184 | c.Transparency = trans | |
1185 | c.BrickColor = workspace.Base.BrickColor | |
1186 | c.CFrame = CFrame.new(Torso.CFrame.x,0,Torso.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
1187 | c.Locked=true | |
1188 | game.Debris:AddItem(c,15) | |
1189 | end | |
1190 | end | |
1191 | ||
1192 | ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0) | |
1193 | ||
1194 | ||
1195 | ||
1196 | ||
1197 | ||
1198 | ||
1199 | ||
1200 | local wave = Instance.new("Part", torso) | |
1201 | wave.BrickColor = TorsoColor | |
1202 | wave.Anchored = true | |
1203 | wave.CanCollide = false | |
1204 | wave.Locked = true | |
1205 | wave.Size = Vector3.new(1, 1, 1) | |
1206 | wave.TopSurface = "Smooth" | |
1207 | wave.BottomSurface = "Smooth" | |
1208 | wave.Transparency = 0.35 | |
1209 | wave.CFrame = HandCF | |
1210 | wm = Instance.new("SpecialMesh", wave) | |
1211 | wm.MeshId = "rbxassetid://3270017" | |
1212 | local wave2 = Instance.new("Part", torso) | |
1213 | wave2.BrickColor = BrickColor.new("Really black") | |
1214 | wave2.Anchored = true | |
1215 | wave2.CanCollide = false | |
1216 | wave2.Locked = true | |
1217 | wave2.Size = Vector3.new(1, 1, 1) | |
1218 | wave2.TopSurface = "Smooth" | |
1219 | wave2.BottomSurface = "Smooth" | |
1220 | wave2.Transparency = 0.35 | |
1221 | wave2.CFrame = HandCF | |
1222 | wm2 = Instance.new("SpecialMesh", wave2) | |
1223 | wm2.MeshId = "rbxassetid://3270017" | |
1224 | local wave3 = Instance.new("Part", torso) | |
1225 | wave3.BrickColor = TorsoColor | |
1226 | wave3.Anchored = true | |
1227 | wave3.CanCollide = false | |
1228 | wave3.Locked = true | |
1229 | wave3.Size = Vector3.new(1, 1, 1) | |
1230 | wave3.TopSurface = "Smooth" | |
1231 | wave3.BottomSurface = "Smooth" | |
1232 | wave3.Transparency = 0.35 | |
1233 | wave3.CFrame = HandCF | |
1234 | wm3 = Instance.new("SpecialMesh", wave3) | |
1235 | wm3.MeshId = "rbxassetid://3270017" | |
1236 | coroutine.wrap(function() | |
1237 | for i = 1, 14, 1 do | |
1238 | valuer = valuer - 0.35 | |
1239 | valuer2 = valuer - 0.45 | |
1240 | valuer3 = valuer3 - 0.475 | |
1241 | wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200) | |
1242 | wave.Size = wm.Scale | |
1243 | wave.CFrame = HandCF | |
1244 | wave.Transparency = i/14 | |
1245 | wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10) | |
1246 | wave2.Size = wm2.Scale | |
1247 | wave2.CFrame = HandCF | |
1248 | wave2.Transparency = i/14 | |
1249 | wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1) | |
1250 | wave3.Size = wm2.Scale | |
1251 | wave3.CFrame = HandCF | |
1252 | wave3.Transparency = i/14 | |
1253 | wait() | |
1254 | end | |
1255 | wait() | |
1256 | wave:Destroy() | |
1257 | wave2:Destroy() | |
1258 | end)() | |
1259 | ||
1260 | local torso = game.Players.LocalPlayer.Character.Torso | |
1261 | local block = Instance.new("Part",torso) | |
1262 | block.Size = Vector3.new(0.1,0.1,0.1) | |
1263 | block.Position = block.Position + Vector3.new(2,2,2) | |
1264 | block.Transparency = 1 | |
1265 | local weld = Instance.new("Weld",torso) | |
1266 | weld.Part0 = torso | |
1267 | weld.Part1 = block | |
1268 | weld.C0 = CFrame.new(0,5,0) | |
1269 | local tables = {5,4,3,2,1} | |
1270 | local part = Instance.new("ParticleEmitter") | |
1271 | part.Parent = game.Players.LocalPlayer.Character.Torso | |
1272 | part.LockedToPart = true | |
1273 | ||
1274 | part.Texture = "rbxassetid://300899196" | |
1275 | part.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,18),NumberSequenceKeypoint.new(1,1)}) | |
1276 | part.Transparency = NumberSequence.new(0.7) | |
1277 | part.Lifetime = NumberRange.new(2) | |
1278 | part.Rate = 30 | |
1279 | local part2 = Instance.new("ParticleEmitter",block) | |
1280 | part2.Lifetime = NumberRange.new(5) | |
1281 | part2.Speed = NumberRange.new(0) | |
1282 | part2.Size = NumberSequence.new(18) | |
1283 | part2.LockedToPart = true | |
1284 | part2.Transparency = NumberSequence.new(0.5) | |
1285 | part2.Rate = 3 | |
1286 | part2.Color = ColorSequence.new(Color3.fromRGB(170,0,255)) | |
1287 | part2.Texture = "http://www.roblox.com/asset/?id=358965396" | |
1288 | local model = Instance.new("Model",torso) | |
1289 | ||
1290 | local ball0 = Instance.new("Part",model) | |
1291 | ball0.Position = ball0.Position + Vector3.new(2,2,2) | |
1292 | ball0.Transparency = 0.5 | |
1293 | ball0.BrickColor = BrickColor.new("Royal purple") | |
1294 | ball0.Size = Vector3.new(1,1,1) | |
1295 | ball0mesh = Instance.new("SpecialMesh",ball0) | |
1296 | ball0mesh.MeshType = "Sphere" | |
1297 | ball0mesh.Scale = Vector3.new(1,1,1) | |
1298 | ballweld = Instance.new("Weld",model) | |
1299 | ballweld.Part0 = torso | |
1300 | ballweld.Part1 = ball0 | |
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | for i = 1,15 do | |
1306 | wait(0.1) | |
1307 | part.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30),NumberSequenceKeypoint.new(1,1)}) | |
1308 | part2.Size = NumberSequence.new(15) | |
1309 | for i = 1 , 3 do | |
1310 | wait() | |
1311 | ball0mesh.Scale = ball0mesh.Scale + Vector3.new(13,13,13) | |
1312 | ||
1313 | end | |
1314 | ||
1315 | wait(0.1) | |
1316 | part2.Size = NumberSequence.new(8) | |
1317 | part.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,18),NumberSequenceKeypoint.new(1,1)}) | |
1318 | ball0mesh.Scale = Vector3.new(1,1,1) | |
1319 | ||
1320 | end | |
1321 | ||
1322 | hum.WalkSpeed = 16 | |
1323 | Muss.Volume = 8 | |
1324 | ||
1325 | ||
1326 | Charging = true | |
1327 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
1328 | function FDebris() | |
1329 | repeat | |
1330 | local p = Instance.new('Part',Torso) | |
1331 | p.formFactor = 'Custom' | |
1332 | p.Size = Vector3.new(1,1,1) | |
1333 | p.BrickColor = BrickColor.new("Dark indigo") | |
1334 | p.CanCollide = false | |
1335 | p.Transparency = 0.2 | |
1336 | p.Anchored = true | |
1337 | p.Locked=true | |
1338 | p.Material = "Neon" | |
1339 | s = math.random(1,40)/10 | |
1340 | local m = Instance.new("BlockMesh",p) | |
1341 | m.Scale = Vector3.new(s,s,s) | |
1342 | p.CFrame = Torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
1343 | --[[coroutine.wrap(function() | |
1344 | wait(2) | |
1345 | while Charging == true do | |
1346 | wait(2) | |
1347 | GroundWave1() | |
1348 | wait(2) | |
1349 | end | |
1350 | end)()]]-- | |
1351 | ||
1352 | spawn(function() | |
1353 | while rs:wait() do | |
1354 | if p.Transparency >= 1 then p:Destroy() break end | |
1355 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
1356 | p.Transparency = p.Transparency+0.01 | |
1357 | end | |
1358 | end) | |
1359 | wait(.3) | |
1360 | until Charging == false | |
1361 | end | |
1362 | ||
1363 | ||
1364 | spawn(function() | |
1365 | while wait(.01) | |
1366 | do | |
1367 | FDebris() | |
1368 | end | |
1369 | end) | |
1370 | ||
1371 | ||
1372 | ||
1373 | FloatPart = function() | |
1374 | local Part = Instance.new('Part',Torso) | |
1375 | Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87) | |
1376 | Part.Anchored = true | |
1377 | Part.Material = 'Neon' | |
1378 | Part.CanCollide = false | |
1379 | Part.BrickColor = BrickColor.new("Royal purple") | |
1380 | local Mesh = Instance.new('SpecialMesh',Part) | |
1381 | Mesh.Scale = Vector3.new(4,4,.2) | |
1382 | Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017' | |
1383 | Mesh.VertexColor = Vector3.new(0,170,255) | |
1384 | spawn(function() | |
1385 | for i = 1,30 do | |
1386 | Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0) | |
1387 | Part.Transparency = Part.Transparency + .035 | |
1388 | game["Run Service"].RenderStepped:wait() | |
1389 | end | |
1390 | Part:Destroy() | |
1391 | end) | |
1392 | end; | |
1393 | ||
1394 | DubPart = function() | |
1395 | local Part = Instance.new('Part',Torso) | |
1396 | Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87) | |
1397 | Part.Anchored = true | |
1398 | Part.CanCollide = false | |
1399 | Part.Material = 'Neon' | |
1400 | Part.BrickColor = BrickColor.new(SecondaryColor) | |
1401 | local Mesh = Instance.new('SpecialMesh',Part) | |
1402 | Mesh.Scale = Vector3.new(7,7,.2) | |
1403 | Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017' | |
1404 | Mesh.VertexColor = Vector3.new(0,170,255) | |
1405 | spawn(function() | |
1406 | for i = 1,30 do | |
1407 | Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0) | |
1408 | Part.Transparency = Part.Transparency + .035 | |
1409 | game["Run Service"].RenderStepped:wait() | |
1410 | end | |
1411 | Part:Destroy() | |
1412 | end) | |
1413 | end; | |
1414 | ||
1415 | Fade = function(Item,t) | |
1416 | spawn(function() | |
1417 | for i = 1,20 do | |
1418 | Item.Transparency = Item.Transparency + .05 | |
1419 | if t then | |
1420 | wait(t) | |
1421 | else | |
1422 | wait() | |
1423 | end | |
1424 | end | |
1425 | Item:Destroy() | |
1426 | end) | |
1427 | end | |
1428 | ||
1429 | Particle = function(PrimaryColor) | |
1430 | local Part = Instance.new('Part',Torso) | |
1431 | Part.BrickColor = BrickColor.new(PrimaryColor) | |
1432 | Part.Anchored = true | |
1433 | Part.Transparency = .3 | |
1434 | Part.CanCollide = false | |
1435 | Part.CFrame = Torso.CFrame * CFrame.new(math.random(-10,10),math.random(-15,15),math.random(-10,10)) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random()) | |
1436 | local Mesh = Instance.new('BlockMesh',Part) | |
1437 | Mesh.Scale = Vector3.new(.05,.1,.1) | |
1438 | spawn(function() | |
1439 | for i = 1,40 do | |
1440 | Part.Transparency = Part.Transparency + .0125 | |
1441 | Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0) | |
1442 | game["Run Service"].RenderStepped:wait() | |
1443 | end | |
1444 | Part:Destroy() | |
1445 | end) | |
1446 | end; | |
1447 | ||
1448 | --[[spawn(function() | |
1449 | while wait() do | |
1450 | wait(.05) | |
1451 | FloatPart() | |
1452 | wait(.08) | |
1453 | FloatPart() | |
1454 | wait(.05) | |
1455 | DubPart() | |
1456 | wait(.08) | |
1457 | end | |
1458 | end)]] | |
1459 | ||
1460 | game["Run Service"].RenderStepped:connect(function(_) | |
1461 | Particle("Royale purple") | |
1462 | Particle("Really black") | |
1463 | Particle("Royal purple") | |
1464 | --Character['HumanoidRootPart'].C1 = Character['HumanoidRootPart'].C1 * CFrame.new(0,Height+math.sin(tick())/150,0) | |
1465 | end) | |
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1483 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1484 | local List = {} | |
1485 | for i,v in pairs(workspace:GetChildren())do | |
1486 | if v:IsA("Model")then | |
1487 | if v:findFirstChild("Torso")then | |
1488 | if v ~= char then | |
1489 | if(v.Torso.Position -Position).magnitude <= Distance then | |
1490 | table.insert(List,v) | |
1491 | end | |
1492 | end | |
1493 | end | |
1494 | end | |
1495 | end | |
1496 | return List | |
1497 | end | |
1498 | ||
1499 | ||
1500 | ||
1501 | ||
1502 | vt = Vector3.new | |
1503 | ||
1504 | ||
1505 | ||
1506 | local player = game.Players.LocalPlayer | |
1507 | local pchar = player.Character | |
1508 | local mouse = player:GetMouse() | |
1509 | local cam = workspace.CurrentCamera | |
1510 | ||
1511 | local rad = math.rad | |
1512 | bodyparts = {} | |
1513 | local keysDown = {} | |
1514 | local flySpeed = 0 | |
1515 | local MAX_FLY_SPEED = 150 | |
1516 | ||
1517 | local canFly = false | |
1518 | local flyToggled = false | |
1519 | ||
1520 | local forward, side = 0, 0 | |
1521 | local lastForward, lastSide = 0, 0 | |
1522 | ||
1523 | local floatBP = Instance.new("BodyPosition") | |
1524 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
1525 | local flyBV = Instance.new("BodyVelocity") | |
1526 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
1527 | local turnBG = Instance.new("BodyGyro") | |
1528 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
1529 | ||
1530 | mouse.KeyDown:connect(function(key) | |
1531 | keysDown[key] = true | |
1532 | ||
1533 | if key == "f" then | |
1534 | flyToggled = not flyToggled | |
1535 | ||
1536 | if not flyToggled then | |
1537 | stanceToggle = "Normal" | |
1538 | floatBP.Parent = nil | |
1539 | flyBV.Parent = nil | |
1540 | turnBG.Parent = nil | |
1541 | root.Velocity = Vector3.new() | |
1542 | pchar.Humanoid.PlatformStand = false | |
1543 | end | |
1544 | end | |
1545 | ||
1546 | end) | |
1547 | mouse.KeyUp:connect(function(key) | |
1548 | keysDown[key] = nil | |
1549 | end) | |
1550 | ||
1551 | local function updateFly() | |
1552 | ||
1553 | ||
1554 | ||
1555 | ||
1556 | if not flyToggled then return end | |
1557 | ||
1558 | lastForward = forward | |
1559 | lastSide = side | |
1560 | ||
1561 | forward = 0 | |
1562 | side = 0 | |
1563 | ||
1564 | if keysDown.w then | |
1565 | forward = forward + 1 | |
1566 | end | |
1567 | if keysDown.s then | |
1568 | forward = forward - 1 | |
1569 | end | |
1570 | if keysDown.a then | |
1571 | side = side - 1 | |
1572 | end | |
1573 | if keysDown.d then | |
1574 | side = side + 1 | |
1575 | end | |
1576 | ||
1577 | canFly = (forward ~= 0 or side ~= 0) | |
1578 | ||
1579 | if canFly then | |
1580 | stanceToggle = "Floating" | |
1581 | turnBG.Parent = root | |
1582 | floatBP.Parent = nil | |
1583 | flyBV.Parent = root | |
1584 | ||
1585 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
1586 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
1587 | else | |
1588 | floatBP.position = root.Position | |
1589 | floatBP.Parent = root | |
1590 | ||
1591 | flySpeed = flySpeed - 1 | |
1592 | if flySpeed < 0 then flySpeed = 0 end | |
1593 | end | |
1594 | ||
1595 | local camCF = cam.CoordinateFrame | |
1596 | local in_forward = canFly and forward or lastForward | |
1597 | local in_side = canFly and side or lastSide | |
1598 | ||
1599 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
1600 | ||
1601 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,0) | |
1602 | end | |
1603 | ||
1604 | game:service'RunService'.RenderStepped:connect(function() | |
1605 | if flyToggled then | |
1606 | pchar.Humanoid.PlatformStand = true | |
1607 | end | |
1608 | updateFly() | |
1609 | end) | |
1610 | ||
1611 | ||
1612 | ||
1613 | mouse.KeyDown:connect(function(key) | |
1614 | if key == "b" then | |
1615 | hum.WalkSpeed = 0 | |
1616 | if Debounces.CanAttack == true then | |
1617 | Debounces.CanAttack = false | |
1618 | Debounces.NoIdl = true | |
1619 | Debounces.on = true | |
1620 | v = Instance.new("Sound") | |
1621 | v.SoundId = "http://www.roblox.com/asset/?id=753551986" | |
1622 | v.Parent = char | |
1623 | v.Looped = false | |
1624 | v.Pitch = 1 | |
1625 | v.Volume = 3000 | |
1626 | wait(0.01) | |
1627 | v:Play() | |
1628 | wait() | |
1629 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.1) | |
1630 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.1) | |
1631 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.1) | |
1632 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.1) | |
1633 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(30), 0, math.rad(-5)), 0.1) | |
1634 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(30), 0, math.rad(5)), 0.1) | |
1635 | if Debounces.on == false then | |
1636 | end | |
1637 | wait() | |
1638 | end | |
1639 | wait() | |
1640 | ||
1641 | ||
1642 | local function Shockwave7() | |
1643 | local ENERGY = Instance.new("Part", Char) | |
1644 | ENERGY.Name = "ENERGY" | |
1645 | ENERGY.CanCollide = false | |
1646 | ENERGY.BrickColor = BrickColor.new("Really black") | |
1647 | ENERGY.Transparency = 0.2 | |
1648 | ENERGY.TopSurface = 0 | |
1649 | ENERGY.BottomSurface = 0 | |
1650 | ENERGY.Anchored = true | |
1651 | local cm = Instance.new("CylinderMesh", ENERGY) | |
1652 | cm.Scale = Vector3.new(1, 20, 1) | |
1653 | ENERGY.Size = Vector3.new(5, 20, 5) | |
1654 | ENERGY.CFrame = char.Torso.CFrame | |
1655 | ENERGY.Touched:connect(function(hit) | |
1656 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
1657 | local Occlude = true | |
1658 | local NotOccludes = { | |
1659 | char.Name; | |
1660 | "Wings"; | |
1661 | "Scythe"; | |
1662 | "Thingy"; | |
1663 | "Thingy2"; -- put all of the names in a table pls | |
1664 | } | |
1665 | for i,v in pairs(NotOccludes) do | |
1666 | if hit.Parent.Name == v then | |
1667 | Occlude = false | |
1668 | end | |
1669 | end | |
1670 | --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 | |
1671 | if Occlude then | |
1672 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 9999999999999999999999999999999999999999999999999999999999999999999999999999999999 | |
1673 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * 220 | |
1674 | end | |
1675 | end | |
1676 | end) | |
1677 | for i = 1, 50 do | |
1678 | ENERGY.CFrame = char.Torso.CFrame | |
1679 | ENERGY.Transparency = ENERGY.Transparency + 0.012 | |
1680 | ENERGY.Size = ENERGY.Size + Vector3.new(0.2, 0, 0.2) | |
1681 | wait() | |
1682 | end | |
1683 | ENERGY:Destroy() | |
1684 | end | |
1685 | Shockwave7() | |
1686 | ||
1687 | ||
1688 | pt=Instance.new('Part',torso) | |
1689 | pt.Anchored=true | |
1690 | pt.CanCollide=false | |
1691 | pt.Locked = true | |
1692 | pt.FormFactor='Custom' | |
1693 | pt.Size=Vector3.new(1,1,1) | |
1694 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
1695 | pt.Transparency=.6 | |
1696 | pt.BrickColor=BrickColor.new('Royal purple') | |
1697 | msh=Instance.new('SpecialMesh',pt) | |
1698 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1699 | msh.Scale=Vector3.new(8,4,8) | |
1700 | pt2=pt:clone() | |
1701 | pt2.Parent = torso | |
1702 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
1703 | pt2.BrickColor=BrickColor.new("Really black") | |
1704 | msh2=msh:clone() | |
1705 | msh2.Parent=pt2 | |
1706 | msh2.Scale=Vector3.new(10,5,10) | |
1707 | ||
1708 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
1709 | bl = Instance.new("Part", char) | |
1710 | bl.Locked = true | |
1711 | bl.Name = "Shell" | |
1712 | bl.BrickColor = BrickColor.new("Royal purple") | |
1713 | bl.Anchored = true | |
1714 | bl.CanCollide = false | |
1715 | bl.Transparency = 0 | |
1716 | bl.Reflectance = 0 | |
1717 | bl.BottomSurface = 0 | |
1718 | bl.TopSurface = 0 | |
1719 | bl.Shape = 0 | |
1720 | blm = Instance.new("SpecialMesh",bl) | |
1721 | blm.MeshType = "Sphere" | |
1722 | blm.Scale = Vector3.new(1,1,1) | |
1723 | blm.MeshId = "rbxassetid://9982590" | |
1724 | ||
1725 | coroutine.resume(coroutine.create(function() | |
1726 | for i=1, math.huge, 4 do | |
1727 | rs:wait() | |
1728 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
1729 | blm.Scale = blm.Scale + Vector3.new(0.1, 0.1, 0.1) | |
1730 | bl.Transparency = bl.Transparency + 0.005 | |
1731 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
1732 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
1733 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
1734 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
1735 | end | |
1736 | end)) | |
1737 | ||
1738 | for i = 1, 15 do | |
1739 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
1740 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
1741 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
1742 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
1743 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
1744 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1745 | if Debounces.on == false then | |
1746 | break | |
1747 | end | |
1748 | wait() | |
1749 | end | |
1750 | for i = 1, 15 do | |
1751 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
1752 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
1753 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
1754 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
1755 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1756 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
1757 | if Debounces.on == false then | |
1758 | break | |
1759 | end | |
1760 | wait() | |
1761 | end | |
1762 | for i = 1, 15 do | |
1763 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
1764 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
1765 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
1766 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
1767 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
1768 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1769 | if Debounces.on == false then | |
1770 | break | |
1771 | end | |
1772 | wait() | |
1773 | end | |
1774 | for i = 1, 15 do | |
1775 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
1776 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
1777 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
1778 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
1779 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1780 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
1781 | if Debounces.on == false then | |
1782 | break | |
1783 | end | |
1784 | wait() | |
1785 | end | |
1786 | for i = 1, 15 do | |
1787 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
1788 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
1789 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
1790 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
1791 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
1792 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1793 | if Debounces.on == false then | |
1794 | break | |
1795 | end | |
1796 | wait() | |
1797 | end | |
1798 | for i = 1, 10 do | |
1799 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
1800 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
1801 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
1802 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
1803 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1804 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
1805 | if Debounces.on == false then | |
1806 | break | |
1807 | end | |
1808 | wait() | |
1809 | end | |
1810 | wait(1.4) | |
1811 | Debounces.NoIdl = false | |
1812 | hum.WalkSpeed = 5 | |
1813 | Debounces.on = false | |
1814 | wait() | |
1815 | if Debounces.CanAttack == false then | |
1816 | Debounces.CanAttack = true | |
1817 | v:Destroy() | |
1818 | bl:Destroy() | |
1819 | blm:Destroy() | |
1820 | pt:Destroy() | |
1821 | pt2:Destroy() | |
1822 | msh:Destroy() | |
1823 | msh2:Destroy() | |
1824 | end | |
1825 | end | |
1826 | end) | |
1827 | ||
1828 | ||
1829 | ||
1830 | ||
1831 | ||
1832 | local grabbed = false | |
1833 | local cf = CFrame.new | |
1834 | local mr = math.rad | |
1835 | local angles = CFrame.Angles | |
1836 | local ud = UDim2.new | |
1837 | local c3 = Color3.new | |
1838 | local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1839 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
1840 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
1841 | local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0)) | |
1842 | ||
1843 | clerp = function(a, b, t) | |
1844 | return a:lerp(b, t) | |
1845 | end | |
1846 | ||
1847 | local RbxUtility = LoadLibrary("RbxUtility") | |
1848 | local Create = RbxUtility.Create | |
1849 | RemoveOutlines = function(part) | |
1850 | part.TopSurface = 10 | |
1851 | end | |
1852 | ||
1853 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1854 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
1855 | RemoveOutlines(Part) | |
1856 | return Part | |
1857 | end | |
1858 | ||
1859 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1860 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
1861 | if Mesh == "SpecialMesh" then | |
1862 | Msh.MeshType = MeshType | |
1863 | Msh.MeshId = MeshId | |
1864 | end | |
1865 | return Msh | |
1866 | end | |
1867 | ||
1868 | ||
1869 | ||
1870 | ||
1871 | ||
1872 | ||
1873 | ||
1874 | ArtificialHB = Instance.new("BindableEvent", script) | |
1875 | ArtificialHB.Name = "Heartbeat" | |
1876 | script:WaitForChild("Heartbeat") | |
1877 | frame = 0.033333333333333 | |
1878 | tf = 0 | |
1879 | allowframeloss = false | |
1880 | tossremainder = false | |
1881 | lastframe = tick() | |
1882 | script.Heartbeat:Fire() | |
1883 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1884 | tf = tf + s | |
1885 | if frame <= tf then | |
1886 | if allowframeloss then | |
1887 | script.Heartbeat:Fire() | |
1888 | lastframe = tick() | |
1889 | else | |
1890 | for i = 1, math.floor(tf / frame) do | |
1891 | script.Heartbeat:Fire() | |
1892 | end | |
1893 | lastframe = tick() | |
1894 | end | |
1895 | if tossremainder then | |
1896 | tf = 0 | |
1897 | else | |
1898 | tf = tf - frame * math.floor(tf / frame) | |
1899 | end | |
1900 | end | |
1901 | end | |
1902 | ) | |
1903 | swait = function(num) | |
1904 | if num == 0 or num == nil then | |
1905 | ArtificialHB.Event:wait() | |
1906 | else | |
1907 | for i = 0, num do | |
1908 | ArtificialHB.Event:wait() | |
1909 | end | |
1910 | end | |
1911 | end | |
1912 | ||
1913 | ||
1914 | ||
1915 | ||
1916 | ||
1917 | ||
1918 | ||
1919 | ||
1920 | ||
1921 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
1922 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
1923 | return Weld | |
1924 | end | |
1925 | ||
1926 | rayCast = function(Position, Direction, Range, Ignore) | |
1927 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
1928 | end | |
1929 | ||
1930 | CreateSound = function(id, par, vol, pit) | |
1931 | coroutine.resume(coroutine.create(function() | |
1932 | local sou = Instance.new("Sound", par or workspace) | |
1933 | sou.Volume = vol | |
1934 | sou.Pitch = pit or 1 | |
1935 | sou.SoundId = id | |
1936 | swait() | |
1937 | sou:play() | |
1938 | game:GetService("Debris"):AddItem(sou, 6) | |
1939 | end | |
1940 | )) | |
1941 | end | |
1942 | ||
1943 | local getclosest = function(obj, distance) | |
1944 | local last, lastx = distance + 1, nil | |
1945 | for i,v in pairs(workspace:GetChildren()) do | |
1946 | if v:IsA("Model") and v ~= char and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then | |
1947 | local t = v.Torso | |
1948 | local dist = t.Position - obj.Position.magnitude | |
1949 | if dist <= distance and dist < last then | |
1950 | last = dist | |
1951 | lastx = v | |
1952 | end | |
1953 | end | |
1954 | end | |
1955 | return lastx | |
1956 | end | |
1957 | ||
1958 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1959 | if hit.Parent == nil then | |
1960 | return | |
1961 | end | |
1962 | local h = hit.Parent:FindFirstChild("Humanoid") | |
1963 | for _,v in pairs(hit.Parent:children()) do | |
1964 | if v:IsA("Humanoid") then | |
1965 | h = v | |
1966 | end | |
1967 | end | |
1968 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
1969 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1970 | return | |
1971 | end | |
1972 | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h}) | |
1973 | game:GetService("Debris"):AddItem(c, 0.5) | |
1974 | if HitSound ~= nil and HitPitch ~= nil then | |
1975 | CreateSound(HitSound, hit, 1, HitPitch) | |
1976 | end | |
1977 | local Damage = math.random(minim, maxim) | |
1978 | local blocked = false | |
1979 | local block = hit.Parent:findFirstChild("Block") | |
1980 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1981 | blocked = true | |
1982 | block.Value = block.Value - 1 | |
1983 | print(block.Value) | |
1984 | end | |
1985 | if blocked == false then | |
1986 | h.Health = h.Health - Damage | |
1987 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1988 | else | |
1989 | h.Health = h.Health - Damage / 2 | |
1990 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1991 | end | |
1992 | if Type == "Knockdown" then | |
1993 | local hum = hit.Parent.Humanoid | |
1994 | hum.PlatformStand = true | |
1995 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1996 | swait(1) | |
1997 | HHumanoid.PlatformStand = false | |
1998 | end | |
1999 | ), hum) | |
2000 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
2001 | local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
2002 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
2003 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
2004 | game:GetService("Debris"):AddItem(rl, 0.5) | |
2005 | else | |
2006 | do | |
2007 | if Type == "Debuff" then | |
2008 | print'hi' | |
2009 | else | |
2010 | if Type == "Up" then | |
2011 | local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
2012 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
2013 | else | |
2014 | do | |
2015 | if Type == "DarkUp" then | |
2016 | coroutine.resume(coroutine.create(function() | |
2017 | for i = 0, 1, 0.1 do | |
2018 | swait() | |
2019 | BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1) | |
2020 | end | |
2021 | end | |
2022 | )) | |
2023 | local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
2024 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
2025 | else | |
2026 | do | |
2027 | if Type == "Snare" then | |
2028 | local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
2029 | game:GetService("Debris"):AddItem(bp, 1) | |
2030 | else | |
2031 | do | |
2032 | if Type == "Freeze" then | |
2033 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
2034 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame}) | |
2035 | hit.Parent.Torso.Anchored = true | |
2036 | coroutine.resume(coroutine.create(function(Part) | |
2037 | swait(1.5) | |
2038 | Part.Anchored = false | |
2039 | end), hit.Parent.Torso) | |
2040 | game:GetService("Debris"):AddItem(BodPos, 3) | |
2041 | game:GetService("Debris"):AddItem(BodGy, 3) | |
2042 | end | |
2043 | do | |
2044 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true}) | |
2045 | game:GetService("Debris"):AddItem(debounce, Delay) | |
2046 | c = Instance.new("ObjectValue") | |
2047 | c.Name = "creator" | |
2048 | c.Value = Player | |
2049 | c.Parent = h | |
2050 | game:GetService("Debris"):AddItem(c, 0.5) | |
2051 | end | |
2052 | end | |
2053 | end | |
2054 | end | |
2055 | end | |
2056 | end | |
2057 | end | |
2058 | end | |
2059 | end | |
2060 | end | |
2061 | end | |
2062 | end | |
2063 | ||
2064 | ShowDamage = function(Pos, Text, Time, Color) | |
2065 | local Rate = 0.033333333333333 | |
2066 | if not Pos then | |
2067 | local Pos = Vector3.new(0, 0, 0) | |
2068 | end | |
2069 | local Text = Text or "" | |
2070 | local Time = Time or 2 | |
2071 | if not Color then | |
2072 | local Color = Color3.new(1, 0, 1) | |
2073 | end | |
2074 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0)) | |
2075 | EffectPart.Anchored = true | |
2076 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart}) | |
2077 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui}) | |
2078 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
2079 | EffectPart.Parent = game:GetService("Workspace") | |
2080 | delay(0, function() | |
2081 | local Frames = Time / Rate | |
2082 | for Frame = 1, Frames do | |
2083 | wait(Rate) | |
2084 | local Percent = Frame / Frames | |
2085 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
2086 | TextLabel.TextTransparency = Percent | |
2087 | end | |
2088 | if EffectPart and EffectPart.Parent then | |
2089 | EffectPart:Destroy() | |
2090 | end | |
2091 | end | |
2092 | ) | |
2093 | end | |
2094 | ||
2095 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type) | |
2096 | for _,c in pairs(workspace:children()) do | |
2097 | local hum = c:findFirstChild("Humanoid") | |
2098 | if hum ~= nil then | |
2099 | local head = c:findFirstChild("Torso") | |
2100 | if head ~= nil then | |
2101 | local targ = head.Position - Part.Position | |
2102 | local mag = targ.magnitude | |
2103 | if mag <= magni and c.Name ~= Player.Name then | |
2104 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1) | |
2105 | end | |
2106 | end | |
2107 | end | |
2108 | end | |
2109 | end | |
2110 | ||
2111 | ||
2112 | ||
2113 | ||
2114 | ||
2115 | local effect = Instance.new("Model", Char) | |
2116 | effect.Name = "Effects" | |
2117 | ||
2118 | ||
2119 | ||
2120 | ||
2121 | ||
2122 | BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
2123 | local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2124 | prt.Anchored = true | |
2125 | prt.CFrame = cframe | |
2126 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2127 | game:GetService("Debris"):AddItem(prt, 10) | |
2128 | if Type == 1 or Type == nil then | |
2129 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
2130 | else | |
2131 | if Type == 2 then | |
2132 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
2133 | end | |
2134 | end | |
2135 | end | |
2136 | ||
2137 | ||
2138 | ||
2139 | ||
2140 | WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2141 | local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2142 | prt.Anchored = true | |
2143 | prt.CFrame = cframe | |
2144 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2145 | game:GetService("Debris"):AddItem(prt, 10) | |
2146 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
2147 | end | |
2148 | ||
2149 | ||
2150 | ||
2151 | local grabbing = false | |
2152 | WindFloor = function() | |
2153 | ||
2154 | end | |
2155 | ||
2156 | ||
2157 | ||
2158 | bc = BrickColor.new | |
2159 | function WindFloor2() | |
2160 | local shur = Instance.new("Part",char) | |
2161 | local gahd = Instance.new("Sound",shur) | |
2162 | gahd.SoundId = "rbxassetid://402981977" | |
2163 | gahd.Volume = 5 | |
2164 | gahd.Pitch = 0.75 | |
2165 | gahd:Play() | |
2166 | shur.Transparency = 1 | |
2167 | shur.Material = "Neon" | |
2168 | shur.BrickColor = bc("Royal purple") | |
2169 | shur.Anchored = true | |
2170 | shur.CFrame = mouse.Hit | |
2171 | shur.Rotation = vt(0,math.random(-500,500),0) | |
2172 | shur.Size = vt(1,0.2,1) | |
2173 | shur.CanCollide = false | |
2174 | local dec = Instance.new("Decal",shur) | |
2175 | dec.Texture = symbolimg | |
2176 | dec.Face = "Top" | |
2177 | local dec2 = dec:Clone() | |
2178 | dec2.Parent = shur | |
2179 | dec2.Face = "Bottom" | |
2180 | local Meshshur = Instance.new("CylinderMesh",shur) | |
2181 | Meshshur.Scale = vt(0,1,0) | |
2182 | local value1 = 1*2.25 | |
2183 | for i = 0, 50 do | |
2184 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
2185 | value1 = value1 - 0.015*2.25 | |
2186 | wait(0) | |
2187 | end | |
2188 | local spart = Instance.new("Part",char) | |
2189 | local tick = Instance.new("Sound",spart) | |
2190 | tick.SoundId = "rbxassetid://414516914" | |
2191 | tick.Volume = 2.5 | |
2192 | tick.Pitch = 0.45 | |
2193 | tick:Play() | |
2194 | spart.Size = vt(1,1,1) | |
2195 | spart.BrickColor = BrickColor.new("Royal purple") | |
2196 | spart.Transparency = 0.1 | |
2197 | spart.Anchored = true | |
2198 | spart.CanCollide = false | |
2199 | spart.CFrame = shur.CFrame + vt(0,2.5,0) | |
2200 | local expld = Instance.new("Explosion", spart) | |
2201 | expld.BlastRadius = 27.5 | |
2202 | expld.Position = spart.Position | |
2203 | local mesh = Instance.new("SpecialMesh",spart) | |
2204 | mesh.MeshType = "FileMesh" | |
2205 | mesh.Scale = vt(1,0.01,1) | |
2206 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
2207 | local parz = spart:Clone() | |
2208 | local mshe = parz.Mesh | |
2209 | mshe.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2210 | parz.CFrame = spart.CFrame | |
2211 | parz.Parent = char | |
2212 | local par2 = spart:Clone() | |
2213 | local msh = par2.Mesh | |
2214 | par2.Mesh.MeshType = "Sphere" | |
2215 | par2.Material = "Neon" | |
2216 | par2.CFrame = spart.CFrame | |
2217 | par2.BrickColor = BrickColor.new("Royal purple") | |
2218 | par2.Parent = char | |
2219 | local par3 = spart:Clone() | |
2220 | local msh3 = par2.Mesh | |
2221 | msh3.Scale = vt(15,0,15) | |
2222 | par3.Mesh.MeshType = "Sphere" | |
2223 | par3.Material = "Neon" | |
2224 | par3.CFrame = spart.CFrame | |
2225 | par3.BrickColor = BrickColor.new("Royal purple") | |
2226 | par3.Parent = char | |
2227 | for i = 0, 150 do | |
2228 | spart.Transparency = spart.Transparency + 0.01 | |
2229 | mesh.Scale = mesh.Scale + vt(2.25,0.15,2.25) | |
2230 | spart.Position = spart.Position | |
2231 | spart.CFrame = spart.CFrame*CFrame.Angles(0,0.5,0) | |
2232 | par2.Transparency = par2.Transparency + 0.01 | |
2233 | msh.Scale = msh.Scale + vt(1.5/1.25,1.5/1.25,1.5/1.25) | |
2234 | par2.Position = par2.Position | |
2235 | par2.CFrame = par2.CFrame*CFrame.Angles(0,-0.5,0) | |
2236 | par3.Transparency = par2.Transparency + 0.05 | |
2237 | msh3.Scale = msh3.Scale + vt(-0.5,50/1.25,-0.5) | |
2238 | par3.Position = par2.Position | |
2239 | par3.CFrame = par2.CFrame*CFrame.Angles(0,-0.5,0) | |
2240 | parz.Transparency = par2.Transparency + 0.01 | |
2241 | mshe.Scale = msh.Scale + vt(4,1,4) | |
2242 | parz.Position = parz.Position | |
2243 | parz.CFrame = parz.CFrame*CFrame.Angles(0,-0.5,0) | |
2244 | wait(0) | |
2245 | end | |
2246 | for i = 0, 100 do | |
2247 | dec.Transparency = dec.Transparency + 0.015 | |
2248 | dec2.Transparency = dec.Transparency | |
2249 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
2250 | value1 = value1 - 0.015*2.25 | |
2251 | wait(0) | |
2252 | end | |
2253 | shur:Destroy() | |
2254 | par2:Destroy() | |
2255 | spart:Destroy() | |
2256 | end | |
2257 | ||
2258 | ||
2259 | ||
2260 | ||
2261 | ||
2262 | ||
2263 | ||
2264 | function BlastStorm() | |
2265 | ||
2266 | local lag = Instance.new("Sound", workspace) | |
2267 | lag.SoundId = "rbxassetid://752783199" | |
2268 | lag.Volume = 20000 | |
2269 | lag.Pitch = 1 | |
2270 | lag:Play() | |
2271 | wait(0) | |
2272 | local ff = Instance.new("ForceField",char) | |
2273 | local shur = Instance.new("Part",char) | |
2274 | local gahd = Instance.new("Sound",char) | |
2275 | gahd.SoundId = "rbxassetid://402981977" | |
2276 | gahd.Volume = 2.5 | |
2277 | gahd.Pitch = 0.6 | |
2278 | gahd:Play() | |
2279 | shur.Transparency = 1 | |
2280 | shur.Material = "Neon" | |
2281 | shur.BrickColor = bc("Royal purple") | |
2282 | shur.Anchored = true | |
2283 | shur.CFrame = mouse.Hit | |
2284 | shur.Size = vt(1,0.2,1) | |
2285 | shur.CanCollide = false | |
2286 | local dec = Instance.new("Decal",shur) | |
2287 | dec.Texture = symbolimg | |
2288 | dec.Face = "Top" | |
2289 | local dec2 = dec:Clone() | |
2290 | dec2.Parent = shur | |
2291 | dec2.Face = "Bottom" | |
2292 | local Meshshur = Instance.new("CylinderMesh",shur) | |
2293 | Meshshur.Scale = vt(0,1,0) | |
2294 | local value1 = 1*12.5 | |
2295 | for i = 0, 50 do | |
2296 | shur.CFrame = torso.CFrame + vt(0,-2.5,0) | |
2297 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
2298 | value1 = value1 - 0.015*12.5 | |
2299 | wait(0) | |
2300 | end | |
2301 | ||
2302 | wait(0) | |
2303 | local spart = Instance.new("Part",char) | |
2304 | local tick = Instance.new("Sound",char) | |
2305 | tick.SoundId = "rbxassetid://414516914" | |
2306 | tick.Volume = 2.5 | |
2307 | tick.Pitch = 0.4 | |
2308 | tick:Play() | |
2309 | local tickz = Instance.new("Sound",char) | |
2310 | tickz.SoundId = "rbxassetid://435742675" | |
2311 | tickz.Volume = 1 | |
2312 | tickz.Pitch = 1 | |
2313 | tickz:Play() | |
2314 | local tickr = Instance.new("Sound",char) | |
2315 | tickr.SoundId = "rbxassetid://435742675" | |
2316 | tickr.Volume = 2.5 | |
2317 | tickr.Pitch = 0.5 | |
2318 | tickr:Play() | |
2319 | local tickel = Instance.new("Sound",char) | |
2320 | tickel.SoundId = "rbxassetid://2248511" | |
2321 | tickel.Volume = 3 | |
2322 | tickel.Pitch = 0.2 | |
2323 | tickel:Play() | |
2324 | spart.Size = vt(1,1,1) | |
2325 | spart.BrickColor = BrickColor.new("Royal purple") | |
2326 | spart.Transparency = 0.1 | |
2327 | spart.Anchored = true | |
2328 | spart.CanCollide = false | |
2329 | spart.CFrame = mouse.Hit | |
2330 | local expld = Instance.new("Explosion", spart) | |
2331 | expld.BlastRadius = 500000 | |
2332 | expld.Position = spart.Position | |
2333 | local mesh = Instance.new("SpecialMesh",spart) | |
2334 | mesh.MeshType = "FileMesh" | |
2335 | mesh.Scale = vt(1,0.01,1) | |
2336 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
2337 | local parz = spart:Clone() | |
2338 | local mshe = parz.Mesh | |
2339 | mshe.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2340 | parz.CFrame = spart.CFrame | |
2341 | parz.Parent = char | |
2342 | local par2 = spart:Clone() | |
2343 | local msh = par2.Mesh | |
2344 | par2.Mesh.MeshType = "Sphere" | |
2345 | par2.Material = "Neon" | |
2346 | par2.CFrame = spart.CFrame | |
2347 | par2.BrickColor = BrickColor.new("Royal purple") | |
2348 | par2.Parent = char | |
2349 | for i = 0, 200 do | |
2350 | spart.Transparency = spart.Transparency + 0.005 | |
2351 | mesh.Scale = mesh.Scale + vt(10,1,10) | |
2352 | spart.Position = spart.Position | |
2353 | spart.CFrame = spart.CFrame*CFrame.Angles(0,0.5,0) | |
2354 | par2.Transparency = par2.Transparency + 0.005 | |
2355 | msh.Scale = msh.Scale + vt(5/1.25,1000/1.25,5/1.25) | |
2356 | par2.Position = par2.Position | |
2357 | par2.CFrame = par2.CFrame*CFrame.Angles(0,-0.5,0) | |
2358 | parz.Transparency = par2.Transparency + 0.005 | |
2359 | mshe.Scale = msh.Scale + vt(6,1,6) | |
2360 | parz.Position = parz.Position | |
2361 | parz.CFrame = parz.CFrame*CFrame.Angles(0,-0.5,0) | |
2362 | wait(0) | |
2363 | end | |
2364 | ff:Destroy() | |
2365 | for i = 0, 100 do | |
2366 | dec.Transparency = dec.Transparency + 0.015 | |
2367 | dec2.Transparency = dec.Transparency | |
2368 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
2369 | value1 = value1 - 0.015*12.5 | |
2370 | wait(0) | |
2371 | end | |
2372 | shur:Destroy() | |
2373 | par2:Destroy() | |
2374 | spart:Destroy() | |
2375 | tick:Destroy() | |
2376 | tickr:Destroy() | |
2377 | tickz:Destroy() | |
2378 | tickel:Destroy() | |
2379 | end | |
2380 | ||
2381 | ||
2382 | ||
2383 | ||
2384 | ||
2385 | ||
2386 | ||
2387 | ||
2388 | local maincolor = Color3.new(170/255,0/255,255/255) | |
2389 | ||
2390 | ||
2391 | ||
2392 | function noobyisscripter() | |
2393 | local hitted = false | |
2394 | local valuesize = 5 | |
2395 | local lb = Instance.new("Part") | |
2396 | lb.Parent = char | |
2397 | lb.Material = "Neon" | |
2398 | lb.BrickColor = BrickColor.new(maincolor) | |
2399 | lb.CanCollide = false | |
2400 | lb.Shape = "Ball" | |
2401 | lb.CFrame = char.Torso.CFrame + Vector3.new(0,0.7,0) | |
2402 | lb.Anchored = false | |
2403 | lb.Size = vt(1,1,1) | |
2404 | local thing = Instance.new("SpecialMesh",lb) | |
2405 | thing.MeshType = "Sphere" | |
2406 | local trail = Instance.new("ParticleEmitter",lb) | |
2407 | trail.Texture = "rbxassetid://296874871" | |
2408 | trail.LightEmission = 0.95 | |
2409 | trail.Color = ColorSequence.new(maincolor) | |
2410 | trail.Rate = 10000 | |
2411 | trail.Lifetime = NumberRange.new(1.5) | |
2412 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2413 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2414 | trail.Speed = NumberRange.new(0,0) | |
2415 | trail.RotSpeed = NumberRange.new(-500,500) | |
2416 | local bv = Instance.new("BodyVelocity") | |
2417 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2418 | bv.velocity = mouse.Hit.lookVector *100 | |
2419 | bv.Parent = lb | |
2420 | wait(0.1) | |
2421 | pewdiepie=lb.Touched:connect(function(hit) | |
2422 | if hitted == false then | |
2423 | local sd = Instance.new("Sound",lb) | |
2424 | sd.SoundId = "rbxassetid://138210320" | |
2425 | sd.Volume = 2.5 | |
2426 | sd:Play() | |
2427 | hitted = true | |
2428 | trail.Rate = 0 | |
2429 | lb.Anchored = true | |
2430 | local explosion = Instance.new("Explosion",lb) | |
2431 | explosion.BlastRadius = 10 | |
2432 | explosion.Position = lb.Position | |
2433 | local ex = Instance.new("ParticleEmitter",lb) | |
2434 | ex.Texture = "rbxassetid://296874871" | |
2435 | ex.LightEmission = 0.95 | |
2436 | ex.Color = ColorSequence.new(maincolor) | |
2437 | ex.Rate = 10000 | |
2438 | ex.Lifetime = NumberRange.new(1.75) | |
2439 | ex.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,25,0)}) | |
2440 | ex.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2441 | ex.Speed = NumberRange.new(25,45) | |
2442 | ex.VelocitySpread = 90000 | |
2443 | ex.RotSpeed = NumberRange.new(-500,500) | |
2444 | for i = 0, 19 do | |
2445 | wait() | |
2446 | valuesize = valuesize - 0.25 | |
2447 | thing.Scale = thing.Scale + vt(valuesize,valuesize,valuesize) | |
2448 | end | |
2449 | ex.Rate = 0 | |
2450 | for i = 0, 9 do | |
2451 | wait() | |
2452 | lb.Transparency = lb.Transparency + 0.1 | |
2453 | end | |
2454 | wait(5) | |
2455 | lb:Destroy() | |
2456 | end | |
2457 | end) | |
2458 | end | |
2459 | ||
2460 | ||
2461 | mouse.KeyDown:connect(function(key) | |
2462 | if key == "g" then | |
2463 | if Debounces.CanAttack == true then | |
2464 | Debounces.CanAttack = false | |
2465 | Debounces.on = true | |
2466 | Debounces.NoIdl = true | |
2467 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5} | |
2468 | shot1 = Instance.new("Sound",Torso) | |
2469 | shot1.SoundId = "rbxassetid://200633492" | |
2470 | shot1.Looped = false | |
2471 | shot1.Pitch = 3 | |
2472 | shot1.Volume = 400 | |
2473 | shot1:Play() | |
2474 | Debounces.RPunch = true | |
2475 | Debounces.LPunch = true | |
2476 | Debounces.ks = true | |
2477 | Debounces.ks2 = true | |
2478 | for i = 1, 3 do | |
2479 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
2480 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
2481 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2482 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2483 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2484 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2485 | if Debounces.on == false then break end | |
2486 | wait() | |
2487 | end | |
2488 | shot1 = Instance.new("Sound",Torso) | |
2489 | shot1.SoundId = "rbxassetid://200633492" | |
2490 | shot1.Looped = false | |
2491 | shot1.Pitch = 3 | |
2492 | shot1.Volume = 400 | |
2493 | shot1:Play() | |
2494 | wait(0.5) | |
2495 | noobyisscripter() | |
2496 | for i = 1, 3 do | |
2497 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2498 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
2499 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2500 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2501 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2502 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2503 | if Debounces.on == false then break end | |
2504 | wait() | |
2505 | end | |
2506 | shot1 = Instance.new("Sound",Torso) | |
2507 | shot1.SoundId = "rbxassetid://200633492" | |
2508 | shot1.Looped = false | |
2509 | shot1.Pitch = 3 | |
2510 | shot1.Volume = 400 | |
2511 | shot1:Play() | |
2512 | wait(0.5) | |
2513 | noobyisscripter() | |
2514 | for i = 1, 3 do | |
2515 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
2516 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
2517 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2518 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2519 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2520 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2521 | if Debounces.on == false then break end | |
2522 | wait() | |
2523 | end | |
2524 | shot1 = Instance.new("Sound",Torso) | |
2525 | shot1.SoundId = "rbxassetid://200633492" | |
2526 | shot1.Looped = false | |
2527 | shot1.Pitch = 3 | |
2528 | shot1.Volume = 400 | |
2529 | shot1:Play() | |
2530 | wait(0.5) | |
2531 | noobyisscripter() | |
2532 | for i = 1, 3 do | |
2533 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2534 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2535 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2536 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2537 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2538 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2539 | if Debounces.on == false then break end | |
2540 | wait() | |
2541 | end | |
2542 | shot1 = Instance.new("Sound",Torso) | |
2543 | shot1.SoundId = "rbxassetid://200633492" | |
2544 | shot1.Looped = false | |
2545 | shot1.Pitch = 3 | |
2546 | shot1.Volume = 400 | |
2547 | shot1:Play() | |
2548 | wait(0.5) | |
2549 | noobyisscripter() | |
2550 | for i = 1, 3 do | |
2551 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
2552 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
2553 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
2554 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
2555 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
2556 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
2557 | if Debounces.on == false then break end | |
2558 | wait() | |
2559 | end | |
2560 | shot1 = Instance.new("Sound",Torso) | |
2561 | shot1.SoundId = "rbxassetid://200633492" | |
2562 | shot1.Looped = false | |
2563 | shot1.Pitch = 3 | |
2564 | shot1.Volume = 400 | |
2565 | shot1:Play() | |
2566 | wait(0.5) | |
2567 | noobyisscripter() | |
2568 | for i = 1, 3 do | |
2569 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2570 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2571 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2572 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2573 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2574 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2575 | if Debounces.on == false then break end | |
2576 | wait() | |
2577 | end | |
2578 | shot1 = Instance.new("Sound",Torso) | |
2579 | shot1.SoundId = "rbxassetid://200633492" | |
2580 | shot1.Looped = false | |
2581 | shot1.Pitch = 3 | |
2582 | shot1.Volume = 400 | |
2583 | shot1:Play() | |
2584 | wait(0.5) | |
2585 | noobyisscripter() | |
2586 | for i = 1, 3 do | |
2587 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
2588 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
2589 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2590 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2591 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2592 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2593 | if Debounces.on == false then break end | |
2594 | wait() | |
2595 | end | |
2596 | shot1 = Instance.new("Sound",Torso) | |
2597 | shot1.SoundId = "rbxassetid://200633492" | |
2598 | shot1.Looped = false | |
2599 | shot1.Pitch = 3 | |
2600 | shot1.Volume = 400 | |
2601 | shot1:Play() | |
2602 | wait(0.5) | |
2603 | noobyisscripter() | |
2604 | for i = 1, 3 do | |
2605 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2606 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
2607 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2608 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2609 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2610 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2611 | if Debounces.on == false then break end | |
2612 | wait() | |
2613 | end | |
2614 | shot1 = Instance.new("Sound",Torso) | |
2615 | shot1.SoundId = "rbxassetid://200633492" | |
2616 | shot1.Looped = false | |
2617 | shot1.Pitch = 3 | |
2618 | shot1.Volume = 400 | |
2619 | shot1:Play() | |
2620 | wait(0.5) | |
2621 | noobyisscripter() | |
2622 | for i = 1, 3 do | |
2623 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
2624 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
2625 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2626 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2627 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2628 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2629 | if Debounces.on == false then break end | |
2630 | wait() | |
2631 | end | |
2632 | shot1 = Instance.new("Sound",Torso) | |
2633 | shot1.SoundId = "rbxassetid://200633492" | |
2634 | shot1.Looped = false | |
2635 | shot1.Pitch = 3 | |
2636 | shot1.Volume = 400 | |
2637 | shot1:Play() | |
2638 | wait(0.5) | |
2639 | noobyisscripter() | |
2640 | for i = 1, 3 do | |
2641 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2642 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2643 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2644 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2645 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2646 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2647 | if Debounces.on == false then break end | |
2648 | wait() | |
2649 | end | |
2650 | shot1 = Instance.new("Sound",Torso) | |
2651 | shot1.SoundId = "rbxassetid://200633492" | |
2652 | shot1.Looped = false | |
2653 | shot1.Pitch = 3 | |
2654 | shot1.Volume = 400 | |
2655 | shot1:Play() | |
2656 | wait(0.5) | |
2657 | noobyisscripter() | |
2658 | for i = 1, 3 do | |
2659 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
2660 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
2661 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
2662 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
2663 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
2664 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
2665 | if Debounces.on == false then break end | |
2666 | wait() | |
2667 | end | |
2668 | shot1 = Instance.new("Sound",Torso) | |
2669 | shot1.SoundId = "rbxassetid://200633492" | |
2670 | shot1.Looped = false | |
2671 | shot1.Pitch = 3 | |
2672 | shot1.Volume = 400 | |
2673 | shot1:Play() | |
2674 | wait(0.5) | |
2675 | noobyisscripter() | |
2676 | for i = 1, 3 do | |
2677 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2678 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
2679 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2680 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2681 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2682 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2683 | if Debounces.on == false then break end | |
2684 | wait() | |
2685 | end | |
2686 | shot1 = Instance.new("Sound",Torso) | |
2687 | shot1.SoundId = "rbxassetid://200633492" | |
2688 | shot1.Looped = false | |
2689 | shot1.Pitch = 3 | |
2690 | shot1.Volume = 400 | |
2691 | shot1:Play() | |
2692 | wait(0.5) | |
2693 | noobyisscripter() | |
2694 | for i = 1, 3 do | |
2695 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
2696 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
2697 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2698 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2699 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2700 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2701 | if Debounces.on == false then break end | |
2702 | wait() | |
2703 | end | |
2704 | shot1 = Instance.new("Sound",Torso) | |
2705 | shot1.SoundId = "rbxassetid://200633492" | |
2706 | shot1.Looped = false | |
2707 | shot1.Pitch = 3 | |
2708 | shot1.Volume = 400 | |
2709 | shot1:Play() | |
2710 | wait(0.5) | |
2711 | noobyisscripter() | |
2712 | for i = 1, 3 do | |
2713 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2714 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2715 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2716 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2717 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2718 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2719 | if Debounces.on == false then break end | |
2720 | wait() | |
2721 | end | |
2722 | shot1 = Instance.new("Sound",Torso) | |
2723 | shot1.SoundId = "rbxassetid://200633492" | |
2724 | shot1.Looped = false | |
2725 | shot1.Pitch = 3 | |
2726 | shot1.Volume = 400 | |
2727 | shot1:Play() | |
2728 | wait(0.5) | |
2729 | noobyisscripter() | |
2730 | for i = 1, 3 do | |
2731 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
2732 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
2733 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
2734 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
2735 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
2736 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
2737 | if Debounces.on == false then break end | |
2738 | wait() | |
2739 | end | |
2740 | shot1 = Instance.new("Sound",Torso) | |
2741 | shot1.SoundId = "rbxassetid://200633492" | |
2742 | shot1.Looped = false | |
2743 | shot1.Pitch = 3 | |
2744 | shot1.Volume = 400 | |
2745 | shot1:Play() | |
2746 | wait(0.5) | |
2747 | noobyisscripter() | |
2748 | for i = 1, 3 do | |
2749 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2750 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2751 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2752 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2753 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2754 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2755 | if Debounces.on == false then break end | |
2756 | wait() | |
2757 | end | |
2758 | shot1 = Instance.new("Sound",Torso) | |
2759 | shot1.SoundId = "rbxassetid://200633492" | |
2760 | shot1.Looped = false | |
2761 | shot1.Pitch = 3 | |
2762 | shot1.Volume = 400 | |
2763 | shot1:Play() | |
2764 | wait(0.5) | |
2765 | noobyisscripter() | |
2766 | for i = 1, 3 do | |
2767 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
2768 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
2769 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2770 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2771 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2772 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2773 | if Debounces.on == false then break end | |
2774 | wait() | |
2775 | end | |
2776 | shot1 = Instance.new("Sound",Torso) | |
2777 | shot1.SoundId = "rbxassetid://200633492" | |
2778 | shot1.Looped = false | |
2779 | shot1.Pitch = 3 | |
2780 | shot1.Volume = 400 | |
2781 | shot1:Play() | |
2782 | wait(0.5) | |
2783 | noobyisscripter() | |
2784 | for i = 1, 3 do | |
2785 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2786 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
2787 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2788 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2789 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2790 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2791 | if Debounces.on == false then break end | |
2792 | wait() | |
2793 | end | |
2794 | shot1 = Instance.new("Sound",Torso) | |
2795 | shot1.SoundId = "rbxassetid://200633492" | |
2796 | shot1.Looped = false | |
2797 | shot1.Pitch = 3 | |
2798 | shot1.Volume = 400 | |
2799 | shot1:Play() | |
2800 | wait(0.5) | |
2801 | noobyisscripter() | |
2802 | for i = 1, 3 do | |
2803 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
2804 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
2805 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2806 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2807 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2808 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2809 | if Debounces.on == false then break end | |
2810 | wait() | |
2811 | end | |
2812 | shot1 = Instance.new("Sound",Torso) | |
2813 | shot1.SoundId = "rbxassetid://200633492" | |
2814 | shot1.Looped = false | |
2815 | shot1.Pitch = 3 | |
2816 | shot1.Volume = 400 | |
2817 | shot1:Play() | |
2818 | wait(0.5) | |
2819 | noobyisscripter() | |
2820 | for i = 1, 3 do | |
2821 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2822 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2823 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2824 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2825 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2826 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2827 | if Debounces.on == false then break end | |
2828 | wait() | |
2829 | end | |
2830 | ||
2831 | Debounces.LPunch = false | |
2832 | Debounces.RPunch = false | |
2833 | Debounces.ks = false | |
2834 | Debounces.ks2 = false | |
2835 | if Debounces.CanAttack == false then | |
2836 | Debounces.CanAttack = true | |
2837 | Debounces.on = false | |
2838 | Debounces.NoIdl = false | |
2839 | end | |
2840 | end | |
2841 | end | |
2842 | end) | |
2843 | ||
2844 | ||
2845 | ||
2846 | ||
2847 | mouse.KeyDown:connect(function(key) | |
2848 | if key == "r" then | |
2849 | ||
2850 | if Debounces.CanAttack == true then | |
2851 | Debounces.CanAttack = false | |
2852 | Debounces.NoIdl = true | |
2853 | Debounces.on = true | |
2854 | game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character,"Here is all of my energy","Red") | |
2855 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
2856 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
2857 | local List = {} | |
2858 | for i,v in pairs(workspace:GetChildren())do | |
2859 | if v:IsA("Model")then | |
2860 | if v:findFirstChild("Torso")then | |
2861 | if v ~= char then | |
2862 | if(v.Torso.Position -Position).magnitude <= Distance then | |
2863 | table.insert(List,v) | |
2864 | end | |
2865 | end | |
2866 | end | |
2867 | end | |
2868 | end | |
2869 | return List | |
2870 | end | |
2871 | z = Instance.new("Sound",hed) | |
2872 | z.SoundId = "rbxassetid://232213955" | |
2873 | z.Pitch = 1 | |
2874 | z.Volume = 1 | |
2875 | wait(0.2) | |
2876 | z:Play() | |
2877 | sp = Instance.new("Part",hed) | |
2878 | sp.Anchored = true | |
2879 | sp.CanCollide = false | |
2880 | sp.Locked = false | |
2881 | sp.Transparency = 0 | |
2882 | sp.Material = "Neon" | |
2883 | sp.Size = Vector3.new(1,1,1) | |
2884 | sp.TopSurface = "SmoothNoOutlines" | |
2885 | sp.BottomSurface = "SmoothNoOutlines" | |
2886 | sp.BrickColor = BrickColor.new("Royal purple") | |
2887 | spm = Instance.new("SpecialMesh",sp) | |
2888 | spm.MeshType = "Sphere" | |
2889 | spm.Scale = Vector3.new(100,100,100) | |
2890 | sp2 = Instance.new("Part", rarm) | |
2891 | sp2.Name = "Energy" | |
2892 | sp2.BrickColor = BrickColor.new("Royal purple") | |
2893 | sp2.Size = Vector3.new(1,1,1) | |
2894 | sp2.Shape = "Ball" | |
2895 | sp2.CanCollide = false | |
2896 | sp2.Anchored = true | |
2897 | sp2.Locked = true | |
2898 | sp2.TopSurface = 0 | |
2899 | sp2.BottomSurface = 0 | |
2900 | sp2.Transparency = 1 | |
2901 | spm2 = Instance.new("SpecialMesh",sp2) | |
2902 | spm2.MeshId = "rbxassetid://9982590" | |
2903 | spm2.Scale = Vector3.new(100,100,100) | |
2904 | for i = 1, 20 do | |
2905 | spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
2906 | sp.CFrame = root.CFrame*CFrame.new(0,100,0) | |
2907 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(8)), 0.4) | |
2908 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-8)), 0.4) | |
2909 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2910 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2911 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
2912 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
2913 | if Debounces.on == false then break end | |
2914 | rs:wait() | |
2915 | end | |
2916 | for i = 1, 100, 20 do rs:wait() | |
2917 | sp.CFrame = root.CFrame*CFrame.new(0,100,0) | |
2918 | end | |
2919 | for i = 1, 20 do | |
2920 | sp.CFrame = root.CFrame*CFrame.new(0,100,0) | |
2921 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-8)), 0.4) | |
2922 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(8)), 0.4) | |
2923 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(0),0), 0.4) | |
2924 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2925 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
2926 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
2927 | if Debounces.on == false then break end | |
2928 | rs:wait() | |
2929 | end | |
2930 | sp.Transparency = 0 | |
2931 | for i = 1, 20 do | |
2932 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-8)), 0.4) | |
2933 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(8)), 0.4) | |
2934 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(0),0), 0.4) | |
2935 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
2936 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
2937 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
2938 | if Debounces.on == false then break end | |
2939 | rs:wait() | |
2940 | end | |
2941 | wait(1) | |
2942 | sp.Transparency = 0 | |
2943 | sp2.Transparency = 0.84 | |
2944 | for i = 1, 20 do | |
2945 | --spm.Scale = spm.Scale - Vector3.new(15,15,15) | |
2946 | sp.CFrame = root.CFrame*CFrame.new(0,100,0) | |
2947 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
2948 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-8)), 0.4) | |
2949 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(8)), 0.2) | |
2950 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
2951 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
2952 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-8)), 0.2) | |
2953 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(8)), 0.2) | |
2954 | if Debounces.on == false then break end | |
2955 | rs:wait() | |
2956 | end | |
2957 | for i = 1, 2880, 50 do | |
2958 | rs:wait() | |
2959 | sp.CFrame = root.CFrame*CFrame.new(0,100,0) | |
2960 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) | |
2961 | rs:wait() | |
2962 | end | |
2963 | sp:Destroy() | |
2964 | sp2:Destroy() | |
2965 | game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character,"TAKE THIS!","Red") | |
2966 | local X = Instance.new("Part",char) | |
2967 | local O = Instance.new("ObjectValue",X) | |
2968 | O.Name = "creator" | |
2969 | X.Locked = true | |
2970 | X.Name = "Shell" | |
2971 | X.Anchored = false | |
2972 | X.CanCollide = false | |
2973 | X.Transparency = 0 | |
2974 | X.Reflectance = 0 | |
2975 | X.BottomSurface = 0 | |
2976 | X.TopSurface = 0 | |
2977 | X.Shape = 0 | |
2978 | local V = Instance.new("ObjectValue",X) | |
2979 | V.Value = char | |
2980 | V.Name = "creator" | |
2981 | X.BrickColor = BrickColor.new("Royal purple") | |
2982 | X.Size = Vector3.new(1,1,1) | |
2983 | X.Material = "Neon" | |
2984 | local Z = Instance.new("SpecialMesh",X) | |
2985 | Z.MeshType = "Sphere" | |
2986 | Z.Scale = Vector3.new(100,100,100) | |
2987 | X.CFrame = rarm.CFrame*CFrame.new(15,15,15) | |
2988 | local bv = Instance.new("BodyVelocity",X) | |
2989 | bv.maxForce = Vector3.new(99999,99999,99999) | |
2990 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
2991 | bv.velocity = X.CFrame.lookVector*65 | |
2992 | ||
2993 | Explode = X.Touched:connect(function(hit) | |
2994 | ||
2995 | local cf = X.CFrame | |
2996 | bv:Destroy() | |
2997 | X.Anchored = true | |
2998 | Z:Remove() | |
2999 | Explode:disconnect() | |
3000 | ||
3001 | local ROW2 = function(out, trans, s, wt, t, ang, plus) | |
3002 | for i = 1, 360, 360/t do | |
3003 | local c = Instance.new("Part", game.Workspace) | |
3004 | c.FormFactor = 3 | |
3005 | c.TopSurface = 0 | |
3006 | c.BottomSurface = 0 | |
3007 | c.Size = s | |
3008 | c.Anchored = true | |
3009 | c.CanCollide = wt | |
3010 | c.Material=workspace.Base.Material | |
3011 | c.Transparency = trans | |
3012 | c.BrickColor = workspace.Base.BrickColor | |
3013 | c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
3014 | c.Locked=true | |
3015 | game.Debris:AddItem(c,25) | |
3016 | end | |
3017 | end | |
3018 | ||
3019 | ROW2(18, 0, Vector3.new(34.5, 70, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0) | |
3020 | ||
3021 | ||
3022 | local ra = Ray.new(X.Position, X.CFrame.upVector * 3) | |
3023 | local part, positi = workspace:FindPartOnRayWithIgnoreList(ra, {Char}, false, true) | |
3024 | if part then | |
3025 | local cfremz = CFrame.new(positi) | |
3026 | debris(cfremz, part, 30) | |
3027 | end | |
3028 | ||
3029 | X.Size = Vector3.new(6,6,6) | |
3030 | X.Touched:connect(function(hit) end) | |
3031 | X.CanCollide = false | |
3032 | local part3 = Instance.new("Part", rarm) | |
3033 | part3.Anchored=true | |
3034 | part3.CanCollide=false | |
3035 | part3.Locked = true | |
3036 | part3.TopSurface = "SmoothNoOutlines" | |
3037 | part3.BottomSurface = "SmoothNoOutlines" | |
3038 | part3.FormFactor='Custom' | |
3039 | part3.Size=Vector3.new(2,2, 2) | |
3040 | part3.CFrame=X.CFrame | |
3041 | part3.Transparency=0 | |
3042 | part3.BrickColor=TorsoColor | |
3043 | local mesh3 = Instance.new("SpecialMesh",part3) | |
3044 | mesh3.MeshType = "Sphere" | |
3045 | mesh3.Scale = Vector3.new(2,2,2) | |
3046 | --debris:AddItem(X,8) | |
3047 | local part4 = Instance.new("Part", rarm) | |
3048 | part4.Material = "Neon" | |
3049 | part4.Anchored=true | |
3050 | part4.CanCollide=false | |
3051 | part4.Locked = true | |
3052 | part4.TopSurface = "SmoothNoOutlines" | |
3053 | part4.BottomSurface = "SmoothNoOutlines" | |
3054 | part4.FormFactor='Custom' | |
3055 | part4.Size=Vector3.new(2,2, 2) | |
3056 | part4.CFrame=X.CFrame | |
3057 | part4.Transparency=0 | |
3058 | part4.BrickColor=BrickColor.new("Black") | |
3059 | local mesh4 = Instance.new("SpecialMesh",part4) | |
3060 | mesh4.MeshType = "Sphere" | |
3061 | mesh4.Scale = Vector3.new(1,1,1) | |
3062 | local part7 = Instance.new("Part", rarm) | |
3063 | part7.Material = "Neon" | |
3064 | part7.Anchored=true | |
3065 | part7.CanCollide=false | |
3066 | part7.Locked = true | |
3067 | part7.TopSurface = "SmoothNoOutlines" | |
3068 | part7.BottomSurface = "SmoothNoOutlines" | |
3069 | part7.FormFactor='Custom' | |
3070 | part7.Size=Vector3.new(2,2, 2) | |
3071 | part7.CFrame=X.CFrame | |
3072 | part7.Transparency=0 | |
3073 | part7.BrickColor=BrickColor.new("Really black") | |
3074 | local mesh7 = Instance.new("SpecialMesh",part7) | |
3075 | mesh7.MeshType = "Sphere" | |
3076 | mesh7.Scale = Vector3.new(0.2, 0.2, 0.2) | |
3077 | --[[X.Touched:connect(function(ht) | |
3078 | hit = ht.Parent | |
3079 | if ht and hit:IsA("Model") then | |
3080 | if hit:FindFirstChild("Humanoid") then | |
3081 | if hit.Name ~= p.Name then | |
3082 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
3083 | wait(.3) | |
3084 | end | |
3085 | end | |
3086 | elseif ht and hit:IsA("Hat") then | |
3087 | if hit.Parent.Name ~= p.Name then | |
3088 | if hit.Parent:FindFirstChild("Humanoid") then | |
3089 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
3090 | wait(.3) | |
3091 | end | |
3092 | end | |
3093 | end | |
3094 | end) | |
3095 | part3.Touched:connect(function(ht) | |
3096 | hit = ht.Parent | |
3097 | if ht and hit:IsA("Model") then | |
3098 | if hit:FindFirstChild("Humanoid") then | |
3099 | if hit.Name ~= p.Name then | |
3100 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
3101 | wait(.3) | |
3102 | end | |
3103 | end | |
3104 | elseif ht and hit:IsA("Hat") then | |
3105 | if hit.Parent.Name ~= p.Name then | |
3106 | if hit.Parent:FindFirstChild("Humanoid") then | |
3107 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
3108 | wait(.3) | |
3109 | end | |
3110 | end | |
3111 | end | |
3112 | end)]]-- | |
3113 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
3114 | if v:FindFirstChild('Humanoid') then | |
3115 | v.Humanoid:TakeDamage(math.random(999999999999999999999999999999999999999999,999999999999999999999999999999999999999)) | |
3116 | v.Humanoid.PlatformStand = true | |
3117 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 999 | |
3118 | end | |
3119 | end | |
3120 | ||
3121 | local acos = math.acos | |
3122 | local sqrt = math.sqrt | |
3123 | local Vec3 = Vector3.new | |
3124 | local fromAxisAngle = CFrame.fromAxisAngle | |
3125 | ||
3126 | local function toAxisAngle(CFr) | |
3127 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
3128 | local Angle = math.acos((R00+R11+R22-1)/2) | |
3129 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
3130 | A = A == 0 and 0.00001 or A | |
3131 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
3132 | B = B == 0 and 0.00001 or B | |
3133 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
3134 | C = C == 0 and 0.00001 or C | |
3135 | local x = (R21-R12)/sqrt(A) | |
3136 | local y = (R02-R20)/sqrt(B) | |
3137 | local z = (R10-R01)/sqrt(C) | |
3138 | return Vec3(x,y,z),Angle | |
3139 | end | |
3140 | ||
3141 | function ApplyTrig(Num,Func) | |
3142 | local Min,Max = Func(0),Func(1) | |
3143 | local i = Func(Num) | |
3144 | return (i-Min)/(Max-Min) | |
3145 | end | |
3146 | ||
3147 | function LerpCFrame(CFrame1,CFrame2,Num) | |
3148 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
3149 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
3150 | end | |
3151 | ||
3152 | function Crater(Torso,Radius) | |
3153 | Spawn(function() | |
3154 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
3155 | local Ignore = {} | |
3156 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
3157 | if v.Character ~= nil then | |
3158 | Ignore[#Ignore+1] = v.Character | |
3159 | end | |
3160 | end | |
3161 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
3162 | if Hit == nil then return end | |
3163 | local Parts = {} | |
3164 | for i = 1,360,10 do | |
3165 | local P = Instance.new("Part",Torso.Parent) | |
3166 | P.Anchored = true | |
3167 | P.FormFactor = "Custom" | |
3168 | P.BrickColor = Hit.BrickColor | |
3169 | P.Material = Hit.Material | |
3170 | P.TopSurface = "Smooth" | |
3171 | P.BottomSurface = "Smooth" | |
3172 | P.Size = Vector3.new(10,20,20)*(math.random(80,100)/100) | |
3173 | 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))) | |
3174 | 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} | |
3175 | if math.random(0,5) == 0 then -- rubble | |
3176 | local P = Instance.new("Part",Torso.Parent) | |
3177 | P.Anchored = true | |
3178 | P.FormFactor = "Custom" | |
3179 | P.BrickColor = Hit.BrickColor | |
3180 | P.Material = Hit.Material | |
3181 | P.TopSurface = "Smooth" | |
3182 | P.BottomSurface = "Smooth" | |
3183 | P.Size = Vector3.new(4,4,4)*(math.random(80,100)/100) | |
3184 | 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))) | |
3185 | 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} | |
3186 | end | |
3187 | end | |
3188 | for i = 0,1,0.05 do | |
3189 | for i2,v in pairs(Parts) do | |
3190 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
3191 | end | |
3192 | wait(0.02) | |
3193 | end | |
3194 | for i,v in pairs(Parts) do | |
3195 | if v[1].Size.X > 2.1 then | |
3196 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
3197 | end | |
3198 | v[1].Anchored = false | |
3199 | end | |
3200 | for i = 0,1,0.05 do | |
3201 | for i2,v in pairs(Parts) do | |
3202 | v[1].Transparency = i | |
3203 | if i == 1 then | |
3204 | v[1]:Destroy() | |
3205 | elseif i >= 0.25 then | |
3206 | v[1].CanCollide = false | |
3207 | end | |
3208 | end | |
3209 | wait(0.02) | |
3210 | end | |
3211 | Parts = nil | |
3212 | end) | |
3213 | end | |
3214 | ||
3215 | ||
3216 | Part = function(x,y,z,color,tr,cc,an,parent) | |
3217 | local p = Instance.new('Part',parent or Weapon) | |
3218 | p.formFactor = 'Custom' | |
3219 | p.Size = Vector3.new(x,y,z) | |
3220 | p.BrickColor = BrickColor.new(color) | |
3221 | p.CanCollide = cc | |
3222 | p.Transparency = tr | |
3223 | p.Anchored = an | |
3224 | p.TopSurface,p.BottomSurface = 0,0 | |
3225 | p.Locked=true | |
3226 | p:BreakJoints() | |
3227 | return p end | |
3228 | ||
3229 | Mesh = function(par,num,x,y,z) | |
3230 | local msh = _ | |
3231 | if num == 1 then msh = Instance.new("CylinderMesh",par) | |
3232 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3 | |
3233 | elseif num == 3 then msh = Instance.new("BlockMesh",par) | |
3234 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso" | |
3235 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num | |
3236 | end msh.Scale = Vector3.new(x,y,z) | |
3237 | return msh end | |
3238 | ||
3239 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
3240 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
3241 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
3242 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
3243 | v1,v2,v3=sz.x,sz.y,sz.z | |
3244 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
3245 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
3246 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
3247 | a.CFrame=cfr | |
3248 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
3249 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
3250 | ||
3251 | Spawn(function() | |
3252 | while wait() do | |
3253 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
3254 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
3255 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
3256 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
3257 | a.Transparency=a.Transparency+0.05 | |
3258 | a2.Transparency=a2.Transparency+0.05 | |
3259 | a3.Transparency=a3.Transparency+0.05 | |
3260 | end | |
3261 | end) | |
3262 | end | |
3263 | ||
3264 | Crater(X,120) | |
3265 | Crater(X,220) | |
3266 | Crater(X,320) | |
3267 | z = Instance.new("Sound",workspace) | |
3268 | z.SoundId = "rbxassetid://231917744" | |
3269 | z.Pitch = .5 | |
3270 | z.Volume = 5 | |
3271 | z1 = Instance.new("Sound",workspace) | |
3272 | z1.SoundId = "rbxassetid://231917744" | |
3273 | z1.Pitch = .5 | |
3274 | z1.Volume = 5 | |
3275 | z2 = Instance.new("Sound",workspace) | |
3276 | z2.SoundId = "rbxassetid://231917744" | |
3277 | z2.Pitch = .5 | |
3278 | z2.Volume = 5 | |
3279 | z3 = Instance.new("Sound",workspace) | |
3280 | z3.SoundId = "rbxassetid://245537790" | |
3281 | z3.Pitch = .7 | |
3282 | z3.Volume = 5 | |
3283 | z4 = Instance.new("Sound",workspace) | |
3284 | z4.SoundId = "rbxassetid://245537790" | |
3285 | z4.Pitch = .7 | |
3286 | z4.Volume = 5 | |
3287 | z4a = Instance.new("Sound",workspace) | |
3288 | z4a.SoundId = "rbxassetid://419447292" | |
3289 | z4a.Pitch = 1 | |
3290 | z4a.Volume = 5 | |
3291 | z3a = Instance.new("Sound",workspace) | |
3292 | z3a.SoundId = "rbxassetid://421328847" | |
3293 | z3a.Pitch = 1 | |
3294 | z3a.Volume = 5 | |
3295 | wait(0.1) | |
3296 | z:Play() | |
3297 | z1:Play() | |
3298 | z2:Play() | |
3299 | z3:Play() | |
3300 | z4:Play() | |
3301 | z3a:Play() | |
3302 | z4a:Play() | |
3303 | ||
3304 | local part=Instance.new('Part',rarm) | |
3305 | part.Anchored=true | |
3306 | part.CanCollide=false | |
3307 | part.Locked = true | |
3308 | part.FormFactor='Custom' | |
3309 | part.Size=Vector3.new(2,2,2) | |
3310 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
3311 | part.Transparency=0 | |
3312 | part.BrickColor=BrickColor.new('Really black') | |
3313 | local mesh=Instance.new('SpecialMesh',part) | |
3314 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
3315 | mesh.Scale=Vector3.new(4,4,4) | |
3316 | local part2=part:clone() | |
3317 | part2.Parent = rarm | |
3318 | part2.BrickColor=TorsoColor | |
3319 | local part5=part:clone() | |
3320 | part5.Parent = rarm | |
3321 | part5.BrickColor=TorsoColor | |
3322 | local part6=part:clone() | |
3323 | part6.Parent = rarm | |
3324 | part6.BrickColor=BrickColor.new("Black") | |
3325 | local mesh2=mesh:clone() | |
3326 | mesh2.Parent=part2 | |
3327 | mesh2.Scale=Vector3.new(6, 6, 6) | |
3328 | local mesh5=mesh:clone() | |
3329 | mesh5.Parent=part5 | |
3330 | mesh5.Scale=Vector3.new(6, 6, 6) | |
3331 | local mesh6=mesh:clone() | |
3332 | mesh6.Parent=part6 | |
3333 | mesh6.Scale=Vector3.new(6, 6, 6) | |
3334 | local blast = Instance.new("Part", rarm) | |
3335 | blast.BrickColor = BrickColor.new("Really black") | |
3336 | blast.Anchored = true | |
3337 | blast.CanCollide = false | |
3338 | blast.Locked = true | |
3339 | blast.Size = Vector3.new(2, 2, 2) | |
3340 | blast.TopSurface = "Smooth" | |
3341 | blast.BottomSurface = "Smooth" | |
3342 | blast.Transparency = 0 | |
3343 | blast.CFrame = HandCF | |
3344 | local bm = Instance.new("SpecialMesh", blast) | |
3345 | bm.Scale = Vector3.new(10,2,10) | |
3346 | bm.MeshId = "rbxassetid://3270017" | |
3347 | local blast2 = Instance.new("Part", rarm) | |
3348 | blast2.BrickColor = BrickColor.new("Really black") | |
3349 | blast2.Anchored = true | |
3350 | blast2.CanCollide = false | |
3351 | blast2.Locked = true | |
3352 | blast2.Size = Vector3.new(2, 2, 2) | |
3353 | blast2.TopSurface = "Smooth" | |
3354 | blast2.BottomSurface = "Smooth" | |
3355 | blast2.Transparency = 0 | |
3356 | blast2.CFrame = HandCF | |
3357 | local bm2 = Instance.new("SpecialMesh", blast2) | |
3358 | bm2.Scale = Vector3.new(6,2,6) | |
3359 | bm2.MeshId = "rbxassetid://3270017" | |
3360 | local blast3 = Instance.new("Part", rarm) | |
3361 | blast3.BrickColor = BrickColor.new("Really black") | |
3362 | blast3.Anchored = true | |
3363 | blast3.CanCollide = false | |
3364 | blast3.Locked = true | |
3365 | blast3.Size = Vector3.new(1, 1, 1) | |
3366 | blast3.TopSurface = "Smooth" | |
3367 | blast3.BottomSurface = "Smooth" | |
3368 | blast3.Transparency = 0 | |
3369 | blast3.CFrame = HandCF | |
3370 | local bm3 = Instance.new("SpecialMesh", blast3) | |
3371 | bm3.Scale = Vector3.new(6,2,6) | |
3372 | bm3.MeshId = "rbxassetid://3270017" | |
3373 | for i = 1,120 do rs:wait() | |
3374 | X.Transparency = X.Transparency + (1/120) | |
3375 | part.Transparency = part.Transparency + (1/120) | |
3376 | part2.Transparency = part2.Transparency + (1/120) | |
3377 | part3.Transparency = part3.Transparency + (1/120) | |
3378 | part4.Transparency = part4.Transparency + (1/120) | |
3379 | part5.Transparency = part5.Transparency + (1/120) | |
3380 | part6.Transparency = part6.Transparency + (1/120) | |
3381 | part7.Transparency = part7.Transparency + (1/120) | |
3382 | blast.Transparency = blast.Transparency + (1/120) | |
3383 | blast2.Transparency = blast2.Transparency + (1/120) | |
3384 | blast3.Transparency = blast3.Transparency + (1/120) | |
3385 | X.Size = X.Size + Vector3.new(1.6,1.6,1.6) | |
3386 | --part3.Size = part3.Size + Vector3.new(6,6,6) | |
3387 | mesh.Scale = mesh.Scale + Vector3.new(2,.4,2) | |
3388 | mesh2.Scale = mesh2.Scale + Vector3.new(2.2,.4,2.2) | |
3389 | mesh3.Scale = mesh3.Scale + Vector3.new(6,6,6) | |
3390 | mesh4.Scale = mesh4.Scale + Vector3.new(3.4,3.4,3.4) | |
3391 | mesh5.Scale = mesh5.Scale + Vector3.new(3.2,.4,3.2) | |
3392 | mesh6.Scale = mesh6.Scale + Vector3.new(4,.4,4) | |
3393 | mesh7.Scale = mesh7.Scale + Vector3.new(8,8,8) | |
3394 | bm.Scale = bm.Scale + Vector3.new(12,12,.4) | |
3395 | bm2.Scale = bm2.Scale + Vector3.new(8,8,.4) | |
3396 | bm3.Scale = bm3.Scale + Vector3.new(8,8,.4) | |
3397 | X.CFrame = cf | |
3398 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
3399 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
3400 | part3.CFrame=X.CFrame | |
3401 | part4.CFrame=X.CFrame | |
3402 | part7.CFrame=X.CFrame | |
3403 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
3404 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
3405 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
3406 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
3407 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
3408 | rs:wait() | |
3409 | end | |
3410 | X:Destroy() | |
3411 | part:Destroy() | |
3412 | part2:Destroy() | |
3413 | part3:Destroy() | |
3414 | part4:Destroy() | |
3415 | part5:Destroy() | |
3416 | part6:Destroy() | |
3417 | blast:Destroy() | |
3418 | blast2:Destroy() | |
3419 | blast3:Destroy() | |
3420 | z:Destroy() | |
3421 | z1:Destroy() | |
3422 | z2:Destroy() | |
3423 | z3:Destroy() | |
3424 | z4:Destroy() | |
3425 | for i = 1, 20 do | |
3426 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
3427 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
3428 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
3429 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
3430 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
3431 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
3432 | if Debounces.on == false then break end | |
3433 | rs:wait() | |
3434 | end | |
3435 | if Debounces.CanAttack == false then | |
3436 | Debounces.CanAttack = true | |
3437 | Debounces.NoIdl = false | |
3438 | Debounces.on = false | |
3439 | end | |
3440 | end) | |
3441 | end | |
3442 | end | |
3443 | end) | |
3444 | ||
3445 | ||
3446 | ||
3447 | ||
3448 | ||
3449 | ||
3450 | ||
3451 | WindFloor = function() | |
3452 | local useRageVer = false | |
3453 | local locor = 0 | |
3454 | if TrackFunction ~= nil then | |
3455 | TrackFunction:disconnect() | |
3456 | TrackFunction = nil | |
3457 | end | |
3458 | Ult = true | |
3459 | Ragemode = false | |
3460 | CanInterrupt(false) | |
3461 | PlayerIsAttacking = true | |
3462 | local cl = 0 | |
3463 | local clastframe = lastframe | |
3464 | BodyVel.velocity = Vector3.new() | |
3465 | local CPlane = MousePlane() | |
3466 | BodyVel.maxForce = Vector3.new(1000000, 1000000, 1000000) | |
3467 | vPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(vPlayer.Character.HumanoidRootPart.Position, vPlayer.Character.HumanoidRootPart.Position + CPlane * 50) | |
3468 | BodyGyro.cframe = CFrame.new(vPlayer.Character.HumanoidRootPart.CFrame.p, vPlayer.Character.HumanoidRootPart.CFrame.p + CPlane * 50) | |
3469 | local cl = 0 | |
3470 | DesiredWalkspeed = 0 | |
3471 | p = Instance.new("Sound", vPlayer.Character.Torso) | |
3472 | p.Volume = 0.8 | |
3473 | p.Pitch = 1 | |
3474 | p.SoundId = "http://www.roblox.com/asset/?id=240517975" | |
3475 | p:Play() | |
3476 | game:GetService("Debris"):AddItem(p, 3) | |
3477 | local pb = Instance.new("Sound", vPlayer.Character.Torso) | |
3478 | pb.Volume = 1 | |
3479 | pb.Pitch = 0.85 | |
3480 | pb.SoundId = "http://www.roblox.com/asset/?id=240517987" | |
3481 | pb:Play() | |
3482 | game:GetService("Debris"):AddItem(pb, 10) | |
3483 | do | |
3484 | for i = 1, 8 do | |
3485 | swait() | |
3486 | cl = cl + i * 0.02 | |
3487 | LerpWelds(clastframe, cl, Animations.LHB.Animation(0)) | |
3488 | if i == 4 then | |
3489 | local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(vPlayer.Character.Torso.Position - Vector3.new(0, 2.5, 0)) * CFrame.Angles(0, math.random(-10, 10), 0), "Really black", "SpecialMesh", Vector3.new(11, 1, 11)) | |
3490 | pc.Mesh.MeshType = "FileMesh" | |
3491 | pc.Anchored = true | |
3492 | pc.CanCollide = false | |
3493 | pc.Parent = workspace | |
3494 | pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
3495 | pc.Name = "Shockwave" | |
3496 | game:GetService("Debris"):AddItem(pc, 5) | |
3497 | coroutine.resume(coroutine.create(function(p) | |
3498 | for ii = 1, 10 do | |
3499 | p.Transparency = ii / 10 | |
3500 | p.CFrame = p.CFrame * CFrame.Angles(0, math.rad(10 + ii), 0) - Vector3.new(0, 0, 0) | |
3501 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(0.5, 0, 0.5) | |
3502 | swait() | |
3503 | end | |
3504 | p:Remove() | |
3505 | end), pc) | |
3506 | end | |
3507 | end | |
3508 | end | |
3509 | BodyVel.Parent = vPlayer.Character.HumanoidRootPart | |
3510 | BodyGyro.Parent = vPlayer.Character.HumanoidRootPart | |
3511 | cl = 0 | |
3512 | clastframe = lastframe | |
3513 | for i = 1, 6 do | |
3514 | swait() | |
3515 | cl = cl + i * 0.05 | |
3516 | LerpWelds(clastframe, cl, Animations.LHB.Animation(1)) | |
3517 | local eff = NewPart(Vector3.new(1, 1, 1), vPlayer.Character.Torso.CFrame * CFrame.new(math.random(-20, 20) / 30, math.random(-20, 20) / 30, math.random(-20, 20) / 30) * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Really black", "BlockMesh", Vector3.new(12, 12, 12)) | |
3518 | eff.Parent = workspace | |
3519 | eff.Name = "BloodEffect" | |
3520 | eff.Anchored = true | |
3521 | eff.CanCollide = false | |
3522 | game:GetService("Debris"):AddItem(eff, 5) | |
3523 | coroutine.resume(coroutine.create(function(p, V, x) | |
3524 | A = vPlayer.Character.Torso.Velocity / 60 | |
3525 | for i = 1, 12 do | |
3526 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(11, 1, 11) / 12 | |
3527 | p.Transparency = 0.75 + i / 48 | |
3528 | p.CFrame = p.CFrame * V + A | |
3529 | swait() | |
3530 | end | |
3531 | p:Remove() | |
3532 | end), eff, CFrame.Angles(math.rad(math.random(-8, 8) * 2), math.rad(math.random(-8, 8) * 2), math.rad(math.random(-8, 8) * 2))) | |
3533 | if i ~= 1 and (i ~= 4 or i == 6) then | |
3534 | local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(vPlayer.Character.Torso.Position - Vector3.new(0, 1.5, 0)) * CFrame.Angles(0, math.rad(i * 20), 0), "White", "SpecialMesh", Vector3.new(8, 1, 8)) | |
3535 | pc.Mesh.MeshType = "FileMesh" | |
3536 | pc.Anchored = true | |
3537 | pc.CanCollide = false | |
3538 | pc.Parent = workspace | |
3539 | pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
3540 | pc.Name = "Shockwave" | |
3541 | game:GetService("Debris"):AddItem(pc, 5) | |
3542 | coroutine.resume(coroutine.create(function(p) | |
3543 | for ii = 1, 7 do | |
3544 | p.Transparency = ii / 7 | |
3545 | p.CFrame = p.CFrame * CFrame.Angles(0, -math.rad(3), 0) - Vector3.new(0, 0, 0) | |
3546 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(1.4, 0, 1.4) | |
3547 | swait() | |
3548 | end | |
3549 | p:Remove() | |
3550 | end), pc) | |
3551 | end | |
3552 | end | |
3553 | swait() | |
3554 | for i = 1, 20 do | |
3555 | do | |
3556 | CPlane = MousePlane() | |
3557 | BodyGyro.Parent = vPlayer.Character.HumanoidRootPart | |
3558 | BodyGyro.cframe = CFrame.new(BodyGyro.Parent.Position, BodyGyro.Parent.Position + CPlane * 50) | |
3559 | if i == 5 or i == 10 then | |
3560 | local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(vPlayer.Character.Torso.Position - Vector3.new(0, 1.5, 0)) * CFrame.Angles(0, math.random(-10, 10), 0), "Really black", "SpecialMesh", Vector3.new(8, 2, 8)) | |
3561 | pc.Mesh.MeshType = "FileMesh" | |
3562 | pc.Anchored = true | |
3563 | pc.CanCollide = false | |
3564 | pc.Parent = workspace | |
3565 | pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
3566 | pc.Name = "Shockwave" | |
3567 | game:GetService("Debris"):AddItem(pc, 5) | |
3568 | coroutine.resume(coroutine.create(function(p) | |
3569 | for ii = 1, 13 do | |
3570 | p.Transparency = ii / 13 | |
3571 | p.CFrame = p.CFrame * CFrame.Angles(0, -math.rad(10 + ii), 0) - Vector3.new(0, 0, 0) | |
3572 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(3, 0, 3) | |
3573 | swait() | |
3574 | end | |
3575 | p:Remove() | |
3576 | end), pc) | |
3577 | else | |
3578 | do | |
3579 | do | |
3580 | if i == 2 or i == 10 then | |
3581 | local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(vPlayer.Character.HumanoidRootPart.Position - Vector3.new(0, 1, 0)) * CFrame.Angles(math.rad(90), 0, 0), "Really black", "SpecialMesh", Vector3.new(56, 56, 1)) | |
3582 | pc.Mesh.MeshType = "FileMesh" | |
3583 | pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3584 | pc.Parent = workspace | |
3585 | pc.Anchored = true | |
3586 | pc.CanCollide = false | |
3587 | pc.Transparency = 0.5 | |
3588 | game:GetService("Debris"):AddItem(pc, 5) | |
3589 | coroutine.resume(coroutine.create(function(p) | |
3590 | for ii = 1, 20 do | |
3591 | p.Transparency = ii / 20 | |
3592 | p.CFrame = p.CFrame * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0) | |
3593 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1.4, 1.4, 0) * 2 | |
3594 | swait() | |
3595 | end | |
3596 | p:Remove() | |
3597 | end), pc) | |
3598 | end | |
3599 | if i % 4 == 0 then | |
3600 | for _,v in pairs(GetNubsInRadius(vPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, 1, 0), 35)) do | |
3601 | applyCameraShake(v, 80 + i * 10, 4) | |
3602 | end | |
3603 | local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(vPlayer.Character.Torso.Position - Vector3.new(0, 1.5, 0)) * CFrame.Angles(0, math.rad(i * 20), 0), "Really black", "SpecialMesh", Vector3.new(18, 2, 18)) | |
3604 | pc.Mesh.MeshType = "FileMesh" | |
3605 | pc.Anchored = true | |
3606 | pc.CanCollide = false | |
3607 | pc.Parent = workspace | |
3608 | pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
3609 | pc.Name = "Shockwave" | |
3610 | game:GetService("Debris"):AddItem(pc, 5) | |
3611 | coroutine.resume(coroutine.create(function(p) | |
3612 | for ii = 1, 10 do | |
3613 | p.Transparency = ii / 10 | |
3614 | p.CFrame = p.CFrame * CFrame.Angles(0, math.rad(7 + ii), 0) - Vector3.new(0, 0, 0) | |
3615 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1.4, 0, 1.4) | |
3616 | swait() | |
3617 | end | |
3618 | p:Remove() | |
3619 | end), pc) | |
3620 | else | |
3621 | do | |
3622 | do | |
3623 | if i % 1 == 0 then | |
3624 | local eff = NewPart(Vector3.new(1, 1, 1), vPlayer.Character.Torso.CFrame * CFrame.new(math.random(-20, 20) / 10, math.random(-20, 20) / 10, math.random(-20, 20) / 10) * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Really black", "BlockMesh", Vector3.new(0.7, 0.7, 0.7)) | |
3625 | eff.Parent = workspace | |
3626 | eff.Name = "BloodEffect" | |
3627 | eff.Anchored = true | |
3628 | eff.CanCollide = false | |
3629 | game:GetService("Debris"):AddItem(eff, 5) | |
3630 | coroutine.resume(coroutine.create(function(p, V, x) | |
3631 | A = vPlayer.Character.Torso.Velocity / 60 | |
3632 | for i = 1, 8 do | |
3633 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(6, 6, 6) / 8 | |
3634 | p.Transparency = 0.2 | |
3635 | p.CFrame = p.CFrame * V + A | |
3636 | swait() | |
3637 | end | |
3638 | p:Remove() | |
3639 | end), eff, CFrame.Angles(math.rad(math.random(-8, 8) * 2), math.rad(math.random(-8, 8) * 2), math.rad(math.random(-8, 8) * 2))) | |
3640 | local eff = NewPart(Vector3.new(1, 1, 1), vPlayer.Character.Torso.CFrame * CFrame.new(math.random(-20, 20) / 30, math.random(-20, 20) / 30, math.random(-20, 20) / 30) * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Really black", "BlockMesh", Vector3.new(12, 12, 12)) | |
3641 | eff.Parent = workspace | |
3642 | eff.Name = "BloodEffect" | |
3643 | eff.Anchored = true | |
3644 | eff.CanCollide = false | |
3645 | game:GetService("Debris"):AddItem(eff, 5) | |
3646 | coroutine.resume(coroutine.create(function(p, V, x) | |
3647 | A = vPlayer.Character.Torso.Velocity / 60 | |
3648 | for i = 1, 12 do | |
3649 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(11, 1, 11) / 12 | |
3650 | p.Transparency = 0.75 + i / 48 | |
3651 | p.CFrame = p.CFrame * V + A | |
3652 | swait() | |
3653 | end | |
3654 | p:Remove() | |
3655 | end), eff, CFrame.Angles(math.rad(math.random(-8, 8) * 2), math.rad(math.random(-8, 8) * 2), math.rad(math.random(-8, 8) * 2))) | |
3656 | end | |
3657 | do | |
3658 | fwait() | |
3659 | end | |
3660 | -- DECOMPILER ERROR at PC942: LeaveBlock: unexpected jumping out DO_STMT | |
3661 | ||
3662 | -- DECOMPILER ERROR at PC942: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
3663 | ||
3664 | -- DECOMPILER ERROR at PC942: LeaveBlock: unexpected jumping out IF_STMT | |
3665 | ||
3666 | -- DECOMPILER ERROR at PC942: LeaveBlock: unexpected jumping out DO_STMT | |
3667 | ||
3668 | -- DECOMPILER ERROR at PC942: LeaveBlock: unexpected jumping out DO_STMT | |
3669 | ||
3670 | -- DECOMPILER ERROR at PC942: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
3671 | ||
3672 | -- DECOMPILER ERROR at PC942: LeaveBlock: unexpected jumping out IF_STMT | |
3673 | ||
3674 | -- DECOMPILER ERROR at PC942: LeaveBlock: unexpected jumping out DO_STMT | |
3675 | ||
3676 | end | |
3677 | end | |
3678 | end | |
3679 | end | |
3680 | end | |
3681 | end | |
3682 | end | |
3683 | end | |
3684 | cl = 0 | |
3685 | clastframe = lastframe | |
3686 | for i = 1, 6 do | |
3687 | swait() | |
3688 | cl = cl + i * 0.05 | |
3689 | LerpWelds(clastframe, cl, Animations.LHB.Animation(2)) | |
3690 | local pc = NewPart(Vector3.new(1, 1, 1), vPlayer.Character["Left Arm"].CFrame * CFrame.new(0, -1.5, 0) * CFrame.Angles(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), "Really black", "BlockMesh", Vector3.new(2.3, 2.3, 2.3)) | |
3691 | pc.CanCollide = false | |
3692 | pc.Anchored = true | |
3693 | pc.Parent = workspace | |
3694 | game:GetService("Debris"):AddItem(pc, 5) | |
3695 | coroutine.resume(coroutine.create(function(p) | |
3696 | local R = CFrame.Angles(math.random(-3, 3), math.random(-4, 4), math.random(-5, 5)) | |
3697 | local C = Vector3.new(math.random(-5, 5) / 40, math.random(-5, 5) / 40, math.random(-5, 5) / 40) + vPlayer.Character.Torso.Velocity / 120 | |
3698 | for i = 1, 30 do | |
3699 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(2, 2, 2) / 30 | |
3700 | p.Transparency = i / 30 | |
3701 | p.CFrame = p.CFrame * R - Vector3.new(0, 0.0054555555555556 * i, 0) + C | |
3702 | swait() | |
3703 | end | |
3704 | p:Remove() | |
3705 | end), pc) | |
3706 | end | |
3707 | cl = 0 | |
3708 | clastframe = lastframe | |
3709 | local Grabbee = nil | |
3710 | for i = 1, 15 do | |
3711 | fwait() | |
3712 | do | |
3713 | if i == 3 then | |
3714 | local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(vPlayer.Character.Torso.Position, vPlayer.Character.Torso.Position + CPlane * 5) * CFrame.Angles(math.rad(90), math.rad(0), 0), "Really black", "SpecialMesh", Vector3.new(8, 2, 8)) | |
3715 | pc.Mesh.MeshType = "FileMesh" | |
3716 | pc.Anchored = true | |
3717 | pc.CanCollide = false | |
3718 | pc.Parent = workspace | |
3719 | pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
3720 | pc.Name = "Shockwave" | |
3721 | game:GetService("Debris"):AddItem(pc, 5) | |
3722 | coroutine.resume(coroutine.create(function(p) | |
3723 | for ii = 1, 10 do | |
3724 | p.Transparency = ii / 10 | |
3725 | p.CFrame = p.CFrame * CFrame.Angles(0, math.rad(7 + ii), 0) - Vector3.new(0, 0, 0) | |
3726 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(1, 0, 1) | |
3727 | swait() | |
3728 | end | |
3729 | p:Remove() | |
3730 | end), pc) | |
3731 | end | |
3732 | BodyVel.velocity = CPlane * (i * 7.5 + 65) | |
3733 | for _,v in pairs(GetNubsInRadius(vPlayer.Character.HumanoidRootPart.Position + CPlane * 2, 4.75)) do | |
3734 | Grabbee = v | |
3735 | do break end | |
3736 | end | |
3737 | do | |
3738 | local pc = NewPart(Vector3.new(1, 1, 1), vPlayer.Character["Left Arm"].CFrame * CFrame.new(0, -1.5, 0) * CFrame.Angles(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), "Really black", "BlockMesh", Vector3.new(2.3, 2.3, 2.3)) | |
3739 | pc.CanCollide = false | |
3740 | pc.Anchored = true | |
3741 | pc.Parent = workspace | |
3742 | game:GetService("Debris"):AddItem(pc, 5) | |
3743 | coroutine.resume(coroutine.create(function(p) | |
3744 | local R = CFrame.Angles(math.random(-3, 3), math.random(-4, 4), math.random(-5, 5)) | |
3745 | local C = Vector3.new(math.random(-5, 5) / 40, math.random(-5, 5) / 40, math.random(-5, 5) / 40) + vPlayer.Character.Torso.Velocity / 120 | |
3746 | for i = 1, 20 do | |
3747 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(2, 2, 2) / 20 | |
3748 | p.Transparency = i / 20 | |
3749 | p.CFrame = p.CFrame * R - Vector3.new(0, 0.0054555555555556 * i, 0) + C | |
3750 | swait() | |
3751 | end | |
3752 | p:Remove() | |
3753 | end), pc) | |
3754 | do | |
3755 | local pc = NewPart(Vector3.new(1, 1, 1), vPlayer.Character["Left Arm"].CFrame * CFrame.new(0, -3.5, 0) * CFrame.Angles(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), "Really black", "BlockMesh", Vector3.new(5, 5, 5)) | |
3756 | pc.CanCollide = false | |
3757 | pc.Anchored = true | |
3758 | pc.Parent = workspace | |
3759 | game:GetService("Debris"):AddItem(pc, 5) | |
3760 | coroutine.resume(coroutine.create(function(p) | |
3761 | local R = CFrame.Angles(math.random(-3, 3), math.random(-4, 4), math.random(-5, 5)) | |
3762 | for i = 1, 20 do | |
3763 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(5, 5, 5) / 20 | |
3764 | p.Transparency = 0.5 + i / 40 | |
3765 | p.CFrame = p.CFrame * R | |
3766 | swait() | |
3767 | end | |
3768 | p:Remove() | |
3769 | end), pc) | |
3770 | if i <= 6 then | |
3771 | cl = cl + i * 0.05 | |
3772 | LerpWelds(clastframe, cl, Animations.LHB.Animation(3)) | |
3773 | end | |
3774 | -- DECOMPILER ERROR at PC1273: LeaveBlock: unexpected jumping out DO_STMT | |
3775 | ||
3776 | -- DECOMPILER ERROR at PC1273: LeaveBlock: unexpected jumping out DO_STMT | |
3777 | ||
3778 | end | |
3779 | end | |
3780 | end | |
3781 | end | |
3782 | if Grabbee ~= nil then | |
3783 | if Grabbee:FindFirstChild("Stats") and Grabbee.Stats.Stunned.Value == false then | |
3784 | Grabbee.Stats.Stun.Value = 999 | |
3785 | end | |
3786 | cbuff = Instance.new("NumberValue", playerstats.Decrease) | |
3787 | cbuff.Name = "DecreaseDef" | |
3788 | cbuff.Value = -2 | |
3789 | Mana.Value = Mana.Value - 10 | |
3790 | if useRageVer == true then | |
3791 | borb = math.floor(40 + Mana.Value / 3 + (locor) / 3) * 0.4 | |
3792 | else | |
3793 | borb = math.floor(40 + Mana.Value / 3) * 0.4 | |
3794 | end | |
3795 | local Grabdone = false | |
3796 | gpos = Instance.new("BodyPosition") | |
3797 | gpos.Name = ":<" | |
3798 | gpos.Parent = vPlayer.Character.HumanoidRootPart | |
3799 | gpos.P = 5000 | |
3800 | gpos.D = 600 | |
3801 | gpos.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
3802 | gpos.position = vPlayer.Character.HumanoidRootPart.Position | |
3803 | coroutine.resume(coroutine.create(function(NNoob) | |
3804 | nubgyro = nil | |
3805 | while Grabdone == false and vPlayer.Character.Humanoid.Health > 0 do | |
3806 | if NNoob.Parent == nil then | |
3807 | break | |
3808 | else | |
3809 | if NNoob.Humanoid.Health < 0 then | |
3810 | break | |
3811 | end | |
3812 | end | |
3813 | NNoob.Humanoid.PlatformStand = true | |
3814 | if nubgyro == nil or nubpos == nil then | |
3815 | if NNoob.Torso:FindFirstChild(":>") then | |
3816 | NNoob.Torso[":>"]:Remove() | |
3817 | end | |
3818 | if NNoob.Torso:FindFirstChild(":<") then | |
3819 | NNoob.Torso[":<"]:Remove() | |
3820 | end | |
3821 | nubgyro = Instance.new("BodyGyro") | |
3822 | nubgyro.Name = ":>" | |
3823 | nubgyro.Parent = NNoob.Torso | |
3824 | nubgyro.P = 5000 | |
3825 | nubgyro.D = 200 | |
3826 | nubgyro.maxTorque = Vector3.new(50000, 50000, 50000) * 5000 | |
3827 | nubgyro.cframe = vPlayer.Character["Left Arm"].CFrame | |
3828 | nubpos = Instance.new("BodyPosition") | |
3829 | nubpos.Name = ":<" | |
3830 | nubpos.Parent = NNoob.Torso | |
3831 | nubpos.P = 8000 | |
3832 | nubpos.D = 200 | |
3833 | nubpos.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
3834 | nubpos.position = vPlayer.Character["Left Arm"].CFrame * CFrame.new(0, -1.6, 0).p | |
3835 | else | |
3836 | if nubgyro.Parent == nil then | |
3837 | nubgyro = nil | |
3838 | nubpos = nil | |
3839 | else | |
3840 | nubgyro.cframe = vPlayer.Character.HumanoidRootPart.CFrame * CFrame.fromEulerAnglesXYZ(math.pi / 18, math.pi, 0) | |
3841 | nubpos.position = vPlayer.Character["Left Arm"].CFrame * CFrame.new(0, -1.4, 0).p - Vector3.new(0, 0.3, 0) | |
3842 | end | |
3843 | end | |
3844 | swait() | |
3845 | end | |
3846 | if nubpos and nubgyro then | |
3847 | nubpos:Remove() | |
3848 | nubgyro:Remove() | |
3849 | if NNoob:FindFirstChild("Humanoid") then | |
3850 | NNoob.Humanoid.PlatformStand = false | |
3851 | end | |
3852 | end | |
3853 | end), Grabbee) | |
3854 | p = Instance.new("Sound", vPlayer.Character.Torso) | |
3855 | p.Volume = 1 | |
3856 | p.Pitch = 0.9 | |
3857 | p.SoundId = "http://www.roblox.com/asset/?id=240429615" | |
3858 | p:Play() | |
3859 | game:GetService("Debris"):AddItem(p, 3) | |
3860 | BodyVel.velocity = Vector3.new() | |
3861 | cl = 0 | |
3862 | clastframe = lastframe | |
3863 | for i = 1, 7 do | |
3864 | swait() | |
3865 | cl = cl + i * 0.036 | |
3866 | LerpWelds(clastframe, cl, Animations.LHB.Animation(4)) | |
3867 | end | |
3868 | cl = 0 | |
3869 | clastframe = lastframe | |
3870 | for i = 1, 8 do | |
3871 | swait() | |
3872 | cl = cl + i * 0.028 | |
3873 | LerpWelds(clastframe, cl, Animations.LHB.Animation(5)) | |
3874 | end | |
3875 | p = Instance.new("Sound", vPlayer.Character.Torso) | |
3876 | p.Volume = 1 | |
3877 | p.Pitch = 0.55 | |
3878 | p.SoundId = "http://www.roblox.com/asset/?id=233856115" | |
3879 | p:Play() | |
3880 | game:GetService("Debris"):AddItem(p, 3) | |
3881 | p = Instance.new("Sound", vPlayer.Character.Torso) | |
3882 | p.Volume = 1 | |
3883 | p.Pitch = 1 | |
3884 | p.SoundId = "http://www.roblox.com/asset/?id=192410070" | |
3885 | p:Play() | |
3886 | game:GetService("Debris"):AddItem(p, 3) | |
3887 | p = Instance.new("Sound", vPlayer.Character.Torso) | |
3888 | p.Volume = 1 | |
3889 | p.Pitch = 0.4 | |
3890 | p.SoundId = "http://www.roblox.com/asset/?id=231917822" | |
3891 | p:Play() | |
3892 | game:GetService("Debris"):AddItem(p, 3) | |
3893 | p = Instance.new("Sound", Grabbee.Torso) | |
3894 | p.Volume = 1 | |
3895 | p.Pitch = 1 | |
3896 | p.SoundId = "http://www.roblox.com/asset/?id=243711335" | |
3897 | p:Play() | |
3898 | game:GetService("Debris"):AddItem(p, 3) | |
3899 | local sees = math.ceil(Mana.Value / borb) | |
3900 | local sees2 = (math.ceil(Corruption / borb)) | |
3901 | local partic1, partic2 = nil, nil | |
3902 | partic1 = Instance.new("ParticleEmitter") | |
3903 | partic1.Name = "AttackParticleEmitter3" | |
3904 | partic1.Texture = "http://www.roblox.com/asset/?id=233069772" | |
3905 | partic1.LightEmission = 0 | |
3906 | partic1.ZOffset = 2 | |
3907 | partic1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)}) | |
3908 | partic1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 5), NumberSequenceKeypoint.new(1, 1)}) | |
3909 | partic1.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0.1, 0.1, 0.1)) | |
3910 | partic1.Rate = 80 | |
3911 | partic1.VelocitySpread = 180 | |
3912 | partic1.Speed = NumberRange.new(6, 10) | |
3913 | partic1.Lifetime = NumberRange.new(1, 1.2) | |
3914 | partic1.Rotation = NumberRange.new(-180, 180) | |
3915 | partic1.RotSpeed = NumberRange.new(-100, 100) | |
3916 | partic1.Parent = Grabbee.Torso | |
3917 | if useRageVer then | |
3918 | partic2 = Instance.new("ParticleEmitter", p) | |
3919 | partic2.Name = "AttackParticleEmitter3" | |
3920 | partic2.Texture = "http://www.roblox.com/asset/?id=241409051" | |
3921 | partic2.LightEmission = 0 | |
3922 | partic2.ZOffset = 1 | |
3923 | partic2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5), NumberSequenceKeypoint.new(1, 1)}) | |
3924 | partic2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)}) | |
3925 | partic2.Color = ColorSequence.new(Color3.new(0.3, 0.3, 0.3), Color3.new(0.2, 0.2, 0.2)) | |
3926 | partic2.Rate = 60 | |
3927 | partic2.VelocitySpread = 180 | |
3928 | partic2.Speed = NumberRange.new(1, 2) | |
3929 | partic2.Lifetime = NumberRange.new(1, 1.2) | |
3930 | partic2.Rotation = NumberRange.new(-180, 180) | |
3931 | partic2.RotSpeed = NumberRange.new(-100, 100) | |
3932 | partic2.Acceleration = Vector3.new(0, 10, 0) | |
3933 | partic2.Parent = Grabbee.Torso | |
3934 | end | |
3935 | for i = 1, borb + borb % 2 do | |
3936 | swait() | |
3937 | if i % 2 == 0 then | |
3938 | applyDamage(Grabbee, 3, Vector3.new(), false, false, nil, 0, 0, "", 0, false, false, 0, true, "Pure", true, false) | |
3939 | local st = Grabbee:FindFirstChild("Stats") | |
3940 | if st and st:FindFirstChild("Mana") then | |
3941 | if st.Mana.Value >= 3 then | |
3942 | --script.Parent.DMG.RemoteEventM:FireServer(st.Mana, 3) | |
3943 | st.Mana.Value = st.Mana.Value - 3 | |
3944 | else | |
3945 | st.Mana.Value = 0 | |
3946 | end | |
3947 | end | |
3948 | end | |
3949 | do | |
3950 | if sees <= Mana.Value then | |
3951 | Mana.Value = Mana.Value - sees | |
3952 | else | |
3953 | Mana.Value = 0 | |
3954 | end | |
3955 | if useRageVer then | |
3956 | if sees2 <= Corruption then | |
3957 | Corruption = Corruption - sees2 | |
3958 | else | |
3959 | Corruption = 0 | |
3960 | end | |
3961 | end | |
3962 | if useRageVer == true and i % 2 == 0 then | |
3963 | if vPlayer.Character.Humanoid.Health >= 6.5 then | |
3964 | vPlayer.Character.Humanoid:TakeDamage(1.5) | |
3965 | end | |
3966 | local eb = BillboardGui("http://www.roblox.com/asset/?id=233069772", Grabbee.Torso.CFrame * CFrame.new(math.random(-20, 20) / 10, math.random(-20, 20) / 10, math.random(-20, 20) / 20).p, 0) | |
3967 | eb.Parent = workspace | |
3968 | eb.BillboardGui.ImageLabel.Rotation = math.random(-180, 180) | |
3969 | eb.BillboardGui.Size = UDim2.new(2, 0, 2, 0) | |
3970 | game:GetService("Debris"):AddItem(eb, 3) | |
3971 | coroutine.resume(coroutine.create(function(p) | |
3972 | local r = math.random(-3, 3) * 9 | |
3973 | if r > -12 and r < 1 then | |
3974 | r = -12 | |
3975 | else | |
3976 | if r < 12 and r > -1 then | |
3977 | r = 12 | |
3978 | end | |
3979 | end | |
3980 | for i = 1, 12 do | |
3981 | p.BillboardGui.ImageLabel.ImageTransparency = 0.5 + i / 24 | |
3982 | p.BillboardGui.Size = UDim2.new(3 + i, 0, 3 + i, 0) | |
3983 | p.BillboardGui.ImageLabel.Rotation = p.BillboardGui.ImageLabel.Rotation + r | |
3984 | swait() | |
3985 | end | |
3986 | p:Remove() | |
3987 | end), eb) | |
3988 | end | |
3989 | do | |
3990 | local eff = NewPart(Vector3.new(1, 1, 1), vPlayer.Character.Torso.CFrame * CFrame.new(math.random(-20, 20) / 30, math.random(-20, 20) / 30, math.random(-20, 20) / 30) * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Really black", "BlockMesh", Vector3.new(12, 12, 12)) | |
3991 | eff.Parent = workspace | |
3992 | eff.Name = "BloodEffect" | |
3993 | eff.Anchored = true | |
3994 | eff.CanCollide = false | |
3995 | game:GetService("Debris"):AddItem(eff, 5) | |
3996 | coroutine.resume(coroutine.create(function(p, V, x) | |
3997 | A = vPlayer.Character.Torso.Velocity / 60 | |
3998 | for i = 1, 8 do | |
3999 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(11, 1, 11) / 8 | |
4000 | p.Transparency = 0.75 + i / 32 | |
4001 | p.CFrame = p.CFrame * V + A | |
4002 | swait() | |
4003 | end | |
4004 | p:Remove() | |
4005 | end), eff, CFrame.Angles(math.rad(math.random(-8, 8) * 2), math.rad(math.random(-8, 8) * 2), math.rad(math.random(-8, 8) * 2))) | |
4006 | if i % 5 == 0 then | |
4007 | for _,v in pairs(GetNubsInRadius(vPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, 1, 0), 35)) do | |
4008 | applyCameraShake(v, 120, 5) | |
4009 | end | |
4010 | applyCameraShake(vPlayer.Character, 120, 5) | |
4011 | local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(vPlayer.Character.Torso.Position + Vector3.new(0, 2.5, 0)) * CFrame.Angles(0, math.rad(i * 20), 0), "Really black", "SpecialMesh", Vector3.new(6, 13, 6)) | |
4012 | pc.Mesh.MeshType = "FileMesh" | |
4013 | pc.Anchored = true | |
4014 | pc.CanCollide = false | |
4015 | pc.Parent = workspace | |
4016 | pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
4017 | pc.Name = "Shockwave" | |
4018 | game:GetService("Debris"):AddItem(pc, 5) | |
4019 | coroutine.resume(coroutine.create(function(p) | |
4020 | for ii = 1, 13 do | |
4021 | p.Transparency = ii / 13 | |
4022 | p.CFrame = p.CFrame * CFrame.Angles(0, math.rad(5 + ii), 0) - Vector3.new(0, 0.38461538461538, 0) | |
4023 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(1, -1, 1) | |
4024 | swait() | |
4025 | end | |
4026 | p:Remove() | |
4027 | end), pc) | |
4028 | end | |
4029 | do | |
4030 | if Grabbee.Parent == nil then | |
4031 | break | |
4032 | else | |
4033 | if Grabbee:FindFirstChild("Humanoid") == nil then | |
4034 | break | |
4035 | end | |
4036 | end | |
4037 | local eff = NewPart(Vector3.new(1, 1, 1), Grabbee.Torso.CFrame * CFrame.new(math.random(-20, 20) / 10, math.random(-25, 25) / 10, math.random(-20, 20) / 20) * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Really black", "BlockMesh", Vector3.new(1.1, 1.1, 1.1)) | |
4038 | eff.Parent = workspace | |
4039 | eff.Name = "BloodEffect" | |
4040 | eff.Anchored = true | |
4041 | eff.CanCollide = false | |
4042 | game:GetService("Debris"):AddItem(eff, 5) | |
4043 | coroutine.resume(coroutine.create(function(p, V, x) | |
4044 | A = vPlayer.Character.Torso.Velocity / 60 | |
4045 | for i = 1, 12 do | |
4046 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(5, 5, 5) / 12 | |
4047 | p.Transparency = 0.25 + i / 48 | |
4048 | p.CFrame = p.CFrame * V + A | |
4049 | swait() | |
4050 | end | |
4051 | p:Remove() | |
4052 | end), eff, CFrame.Angles(math.rad(math.random(-8, 8) * 2), math.rad(math.random(-8, 8) * 2), math.rad(math.random(-8, 8) * 2))) | |
4053 | do | |
4054 | if i % 3 == 0 then | |
4055 | local pc = NewPart(Vector3.new(1, 1, 1), Grabbee.Torso.CFrame * CFrame.new(math.random(-10, 10) / 10, math.random(-10, 10) / 10, math.random(-10, 10) / 10) * CFrame.Angles(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), "Bright blue", "BlockMesh", Vector3.new(2, 2, 2)) | |
4056 | pc.CanCollide = false | |
4057 | pc.Anchored = true | |
4058 | pc.Parent = workspace | |
4059 | game:GetService("Debris"):AddItem(pc, 5) | |
4060 | coroutine.resume(coroutine.create(function(p) | |
4061 | local R = CFrame.Angles(math.random(-3, 3), math.random(-4, 4), math.random(-5, 5)) | |
4062 | local C = Vector3.new(math.random(-5, 5) / 40, math.random(-5, 5) / 40, math.random(-5, 5) / 40) | |
4063 | for i = 1, 20 do | |
4064 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(2, 2, 2) / 20 | |
4065 | p.Transparency = i / 20 | |
4066 | p.CFrame = p.CFrame * R - Vector3.new(0, 0.029757575757576 * i, 0) | |
4067 | swait() | |
4068 | end | |
4069 | p:Remove() | |
4070 | end), pc) | |
4071 | end | |
4072 | end | |
4073 | end | |
4074 | end | |
4075 | end | |
4076 | end | |
4077 | cl = 0 | |
4078 | clastframe = lastframe | |
4079 | for i = 1, 5 do | |
4080 | wait() | |
4081 | cl = cl + i * 0.07 | |
4082 | if i == 3 then | |
4083 | Grabdone = true | |
4084 | partic1.Enabled = false | |
4085 | game:GetService("Debris"):AddItem(partic1, 5) | |
4086 | if partic2 then | |
4087 | partic2.Enabled = false | |
4088 | game:GetService("Debris"):AddItem(partic2, 5) | |
4089 | end | |
4090 | p = Instance.new("Sound", vPlayer.Character.Torso) | |
4091 | p.Volume = 1 | |
4092 | p.Pitch = 0.95 | |
4093 | p.SoundId = "http://www.roblox.com/asset/?id=241816029" | |
4094 | p:Play() | |
4095 | game:GetService("Debris"):AddItem(p, 3) | |
4096 | if Grabbee:FindFirstChild("Stats") then | |
4097 | if Grabbee.Stats.Mana.Value >= 10 then | |
4098 | Grabbee.Stats.Mana.Value = Grabbee.Stats.Mana.Value - 10 | |
4099 | else | |
4100 | Grabbee.Stats.Mana.Value = 0 | |
4101 | end | |
4102 | if Grabbee.Stats.Stunned.Value == false then | |
4103 | Grabbee.Stats.Stun.Value = 999 | |
4104 | end | |
4105 | end | |
4106 | applyDamage(Grabbee, 15, Vector3.new(0, 30, 0) + CPlane * 40, true, false, addonCullMovers, 0, 0, "", 0, false, false, 0, true, "IgnoreDefense", true, false) | |
4107 | local pc = NewPart(Vector3.new(1, 1, 1), CFrame.new(Grabbee.Torso.Position, Grabbee.Torso.Position + CPlane * 9.5 + Vector3.new(0, 5, 0)) * CFrame.Angles(math.random(-30, 30) / 50, math.random(-30, 30) / 50, math.random(-30, 30) / 50), "Really black", "SpecialMesh", Vector3.new(6, 6, 2)) | |
4108 | pc.Mesh.MeshType = "FileMesh" | |
4109 | pc.Mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
4110 | pc.Parent = workspace | |
4111 | pc.Anchored = true | |
4112 | pc.CanCollide = false | |
4113 | pc.Transparency = 0.5 | |
4114 | game:GetService("Debris"):AddItem(pc, 5) | |
4115 | coroutine.resume(coroutine.create(function(p) | |
4116 | for ii = 1, 28 do | |
4117 | p.Transparency = ii / 28 | |
4118 | p.CFrame = p.CFrame * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.1) | |
4119 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(1.8 - ii * 0.05, 1.8 - ii * 0.05, 0) | |
4120 | swait() | |
4121 | end | |
4122 | p:Remove() | |
4123 | end), pc) | |
4124 | for loel = 1, 8 do | |
4125 | local eff = NewPart(Vector3.new(1, 1, 1), Grabbee.Torso.CFrame * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Really black", "BlockMesh", Vector3.new(4, 4, 4)) | |
4126 | eff.Parent = workspace | |
4127 | eff.Name = "BloodEffect" | |
4128 | eff.Anchored = true | |
4129 | eff.CanCollide = false | |
4130 | game:GetService("Debris"):AddItem(eff, 5) | |
4131 | coroutine.resume(coroutine.create(function(p, V, x) | |
4132 | for i = 1, 25 do | |
4133 | p.Transparency = 0.5 + i / 50 | |
4134 | p.CFrame = p.CFrame + x / 2 | |
4135 | swait() | |
4136 | end | |
4137 | p:Remove() | |
4138 | end), eff, CFrame.Angles(math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8))), Vector3.new(math.random(-10, 10) / 10, math.random(-10, 10) / 10, math.random(-10, 10) / 10)) | |
4139 | end | |
4140 | for loel = 1, 3 do | |
4141 | local eff = NewPart(Vector3.new(1, 1, 1), Grabbee.Torso.CFrame * CFrame.new(math.random(-20, 20) / 10, math.random(-25, 25) / 10, math.random(-20, 20) / 20) * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Really black", "BlockMesh", Vector3.new(4, 4, 4)) | |
4142 | eff.Parent = workspace | |
4143 | eff.Name = "BloodEffect" | |
4144 | eff.Anchored = true | |
4145 | eff.CanCollide = false | |
4146 | game:GetService("Debris"):AddItem(eff, 5) | |
4147 | coroutine.resume(coroutine.create(function(p, V, x) | |
4148 | for i = 1, 25 do | |
4149 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(14 + loel * 8, 14 + loel * 8, 14 + loel * 8) / 25 | |
4150 | p.Transparency = 0.25 + i / 18.75 | |
4151 | p.CFrame = p.CFrame * V | |
4152 | swait() | |
4153 | end | |
4154 | p:Remove() | |
4155 | end), eff, CFrame.Angles(math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8)))) | |
4156 | end | |
4157 | end | |
4158 | do | |
4159 | do | |
4160 | LerpWelds(clastframe, cl, Animations.LHB.Animation(6)) | |
4161 | -- DECOMPILER ERROR at PC2735: LeaveBlock: unexpected jumping out DO_STMT | |
4162 | ||
4163 | end | |
4164 | end | |
4165 | end | |
4166 | cbuff:Remove() | |
4167 | gpos:Remove() | |
4168 | else | |
4169 | do | |
4170 | for i = 1, 4 do | |
4171 | fwait() | |
4172 | BodyVel.velocity = BodyVel.velocity / 1.25 | |
4173 | end | |
4174 | do | |
4175 | cl = 0 | |
4176 | coroutine.resume(coroutine.create(function(p) | |
4177 | for i = 1, 30 do | |
4178 | p.Volume = 1 - i / 30 | |
4179 | swait() | |
4180 | end | |
4181 | p:Stop() | |
4182 | end), pb) | |
4183 | clastframe = lastframe | |
4184 | BodyVel.maxForce = Vector3.new(1000000, 0, 1000000) | |
4185 | for i = 1, 15 do | |
4186 | fwait() | |
4187 | BodyVel.velocity = BodyVel.velocity / 1.2 | |
4188 | LerpWelds(clastframe, i / 15, Animations.Stand.Animation(0)) | |
4189 | end | |
4190 | if Grabbee == nil then | |
4191 | Cooldowns["4"] = CooldownsB["4"] / 3 | |
4192 | else | |
4193 | Cooldowns["4"] = CooldownsB["4"] | |
4194 | end | |
4195 | end | |
4196 | end | |
4197 | end | |
4198 | CanInterrupt(true) | |
4199 | PlayerIsAttacking = false | |
4200 | BodyVel.Parent = nil | |
4201 | BodyGyro.Parent = nil | |
4202 | Ult = false | |
4203 | end | |
4204 | ||
4205 | ||
4206 | ||
4207 | mouse.KeyDown:connect(function(k) | |
4208 | ||
4209 | k = k:lower() | |
4210 | if k == "q" then | |
4211 | BlastStorm() | |
4212 | end | |
4213 | if k == "e" then | |
4214 | WindFloor2() | |
4215 | end | |
4216 | if k == "t" then | |
4217 | WindFloor() | |
4218 | end | |
4219 | end) | |
4220 | ||
4221 | ||
4222 | ||
4223 | ||
4224 | ||
4225 | ||
4226 | ||
4227 | ||
4228 | local BC = BrickColor.new | |
4229 | local Col3 = Color3.new | |
4230 | local Inst = Instance.new | |
4231 | local Ud2 = UDim2.new | |
4232 | local FONT = "SourceSansLight" | |
4233 | ||
4234 | ||
4235 | ||
4236 | ||
4237 | ||
4238 | ||
4239 | ||
4240 | Colour1 = BC("Pastel Blue") | |
4241 | Colour2 = BC("Black") | |
4242 | Colour3 = BC("Ghost grey") | |
4243 | Chaos_UI = Inst("ScreenGui", Player.PlayerGui) | |
4244 | Chaos_UI.Name = "Chaos UI" | |
4245 | ColMain, KP, Moves, OM = Inst("Frame", Chaos_UI), Inst("Frame", Chaos_UI), Inst("ScrollingFrame", Chaos_UI), Inst("TextButton", Chaos_UI) | |
4246 | ||
4247 | ||
4248 | Moves.BackgroundColor3 = Col3(72/255,72/255,72/255) | |
4249 | Moves.BackgroundTransparency = .8 | |
4250 | Moves.BorderSizePixel = 0 | |
4251 | Moves.Name = "Moves" | |
4252 | Moves.Position = Ud2(-.2, 0, .4, 0) | |
4253 | Moves.Size = Ud2(.2, 0, .5, 0) | |
4254 | Moves.ScrollBarThickness = 8 | |
4255 | OM.Name = "VML" | |
4256 | OM.Position = Ud2(.002, 0, .83, 0) | |
4257 | OM.Size = Ud2(.05, 0, .08, 0) | |
4258 | OM.Visible = false | |
4259 | OM.Style = "RobloxRoundButton" | |
4260 | OM.Font = FONT | |
4261 | OM.Text = "View Move List" | |
4262 | OM.TextColor3 = Col3(1,1,1) | |
4263 | OM.TextScaled = true | |
4264 | local Title = Inst("TextLabel", Moves) | |
4265 | Title.BackgroundTransparency = 1 | |
4266 | Title.Name = "Title" | |
4267 | Title.Size = Ud2(1, 0, .014, 0) | |
4268 | Title.Font = FONT | |
4269 | Title.Text = "Move List" | |
4270 | Title.TextColor3 = Col3(1,1,1) | |
4271 | Title.TextScaled = true | |
4272 | Title.TextStrokeTransparency = 0 | |
4273 | ||
4274 | OM.Visible = true | |
4275 | ||
4276 | function Create_Moves_In_List() | |
4277 | local ah = .012 | |
4278 | local am = .012 | |
4279 | local move = Title:Clone() move.Parent = Moves move.Name = "A Move" move.Text = "*Whatever you do, DO NOT use 2 different moves tat the same time!!*" move.Position = Ud2(0, 0, ah, 0) move.TextXAlignment = "Left" ah = ah+am | |
4280 | move = Title:Clone() move.Parent = Moves move.Name = "A Move" move.Text = "Q - Ultimate Shadow Blast, must be flying when in use, *be carefull using this*" move.Position = Ud2(0, 0, ah, 0) move.TextXAlignment = "Left" ah = ah+am | |
4281 | move = Title:Clone() move.Parent = Moves move.Name = "A Move" move.Text = "E - Shadow Blast" move.Position = Ud2(0, 0, ah, 0) move.TextXAlignment = "Left" ah = ah+am | |
4282 | move = Title:Clone() move.Parent = Moves move.Name = "A Move" move.Text = "R - Purple Nova, I recommend being in a high distance when you use this" move.Position = Ud2(0, 0, ah, 0) move.TextXAlignment = "Left" ah = ah+am | |
4283 | move = Title:Clone() move.Parent = Moves move.Name = "A Move" move.Text = "T - Unfinished, dont press it" move.Position = Ud2(0, 0, ah, 0) move.TextXAlignment = "Left" ah = ah+am | |
4284 | move = Title:Clone() move.Parent = Moves move.Name = "A Move" move.Text = "F - Fly mode/ Fly mode Deactivate" move.Position = Ud2(0, 0, ah, 0) move.TextXAlignment = "Left" ah = ah+am | |
4285 | move = Title:Clone() move.Parent = Moves move.Name = "A Move" move.Text = "B - Roar, you know how that is" move.Position = Ud2(0, 0, ah, 0) move.TextXAlignment = "Left" ah = ah+am | |
4286 | move = Title:Clone() move.Parent = Moves move.Name = "A Move" move.Text = "G - Destructive Fire Blasts, I recommend being in fly mode" move.Position = Ud2(0, 0, ah, 0) move.TextXAlignment = "Left" ah = ah+am | |
4287 | end | |
4288 | Create_Moves_In_List() | |
4289 | ||
4290 | ||
4291 | local mopen = false | |
4292 | OM.MouseButton1Click:connect(function() | |
4293 | if not Debounces.UIAction and not mopen then | |
4294 | Debounces.UIAction = true | |
4295 | OM.Text = "Hide Move List" | |
4296 | mopen = true | |
4297 | Moves:TweenPosition(Ud2(.002, 0, .4, 0),_, "Bounce", .6, true) | |
4298 | OM:TweenPosition(Ud2(.202, 0, .83, 0),_, "Bounce", .6, true) | |
4299 | wait(.3) | |
4300 | Debounces.UIAction = false | |
4301 | elseif not Debounces.UIAction and mopen then | |
4302 | Debounces.UIAction = true | |
4303 | OM.Text = "View Move List" | |
4304 | mopen = false | |
4305 | Moves:TweenPosition(Ud2(-.2, 0, .4, 0),_, "Bounce", .6, true) | |
4306 | OM:TweenPosition(Ud2(.002, 0, .83, 0),_, "Bounce", .6, true) | |
4307 | wait(.3) | |
4308 | Debounces.UIAction = false | |
4309 | end | |
4310 | end) | |
4311 | ||
4312 | ||
4313 | ||
4314 | ||
4315 | ||
4316 | local animpose = "Idle" | |
4317 | local lastanimpose = "Idle" | |
4318 | local sine = 0 | |
4319 | local change = 1 | |
4320 | local val = 0 | |
4321 | local ffing = false | |
4322 | ------------------------------- | |
4323 | game:GetService("RunService").RenderStepped:connect(function() | |
4324 | --[[if char.Humanoid.Jump == true then | |
4325 | jump = true | |
4326 | else | |
4327 | jump = false | |
4328 | end]] | |
4329 | char.Humanoid.FreeFalling:connect(function(f) | |
4330 | if f then | |
4331 | ffing = true | |
4332 | else | |
4333 | ffing = false | |
4334 | end | |
4335 | end) | |
4336 | sine = sine + change | |
4337 | if jumpn == true then | |
4338 | animpose = "Jumping" | |
4339 | elseif ffing == true then | |
4340 | animpose = "Freefalling" | |
4341 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
4342 | animpose = "Idle" | |
4343 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
4344 | animpose = "Walking" | |
4345 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
4346 | animpose = "Running" | |
4347 | end | |
4348 | if animpose ~= lastanimpose then | |
4349 | sine = 0 | |
4350 | if Debounces.NoIdl == false then | |
4351 | if animpose == "Idle" then | |
4352 | for i = 1, 2 do | |
4353 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
4354 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
4355 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
4356 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
4357 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
4358 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
4359 | end | |
4360 | elseif animpose == "Walking" then | |
4361 | for i = 1, 2 do | |
4362 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
4363 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
4364 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
4365 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
4366 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
4367 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
4368 | end | |
4369 | elseif animpose == "Running" then | |
4370 | for i = 1, 2 do | |
4371 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-14),math.rad(8+2*math.cos(sine/14))), 0.2) | |
4372 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(14),math.rad(-8-2*math.cos(sine/14))), 0.2) | |
4373 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10),0,0), 0.4) | |
4374 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20),0, math.rad(0)), 0.4) | |
4375 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-7)), 0.4) | |
4376 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(7)), 0.4) | |
4377 | wait() | |
4378 | end | |
4379 | end | |
4380 | else | |
4381 | end | |
4382 | end | |
4383 | lastanimpose = animpose | |
4384 | if Debounces.NoIdl == false then | |
4385 | if animpose == "Idle" then | |
4386 | change = 0.5 | |
4387 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-10),math.rad(-10),math.rad(14+2*math.cos(sine/10))), 0.4) | |
4388 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/10),0)*CFrame.Angles(math.rad(-20),math.rad(6),math.rad(-10-2*math.cos(sine/10))), 0.4) | |
4389 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/10)),math.rad(20),0), 0.2) | |
4390 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
4391 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.16*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-20), math.rad(0)), 0.05) | |
4392 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0-0.1*math.cos(sine/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(sine/10)), math.rad(10), math.rad(-0-2*math.cos(sine/10))), 0.4) | |
4393 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1-0.1*math.cos(sine/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(sine/10))), 0.4) | |
4394 | elseif animpose == "Walking" then | |
4395 | change = 1 | |
4396 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
4397 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
4398 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
4399 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
4400 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
4401 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
4402 | elseif animpose == "Running" then | |
4403 | change = 1 | |
4404 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(-30),math.rad(14),math.rad(-30+2*math.cos(sine/14))), 0.2) | |
4405 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2) | |
4406 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
4407 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2) | |
4408 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4) | |
4409 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4) | |
4410 | end | |
4411 | end | |
4412 | end) | |
4413 | ||
4414 | hum.MaxHealth = math.huge | |
4415 | wait(3) | |
4416 | hum.Health = math.huge | |
4417 | ||
4418 | ||
4419 | spawn(function() | |
4420 | while wait(2) | |
4421 | do | |
4422 | GroundWave3() | |
4423 | end | |
4424 | end) | |
4425 | ||
4426 | ||
4427 | while true do --Loop | |
4428 | wait(0.04) | |
4429 | part2.Texture = "http://www.roblox.com/asset/?id=358965396" --Insert decal's first texture | |
4430 | part2.Texture = "http://www.roblox.com/asset/?id=358965513" --second texture | |
4431 | wait(0.04) --wait 1 second, you can change this and make it different for every one | |
4432 | part2.Texture = "http://www.roblox.com/asset/?id=358965632" | |
4433 | wait(0.04) | |
4434 | part2.Texture = "http://www.roblox.com/asset/?id=358965664" | |
4435 | wait(0.04) | |
4436 | end |