SHOW:
|
|
- or go back to the newest paste.
1 | --Made by Noobygames12, edited by RealPieDiePew | |
2 | --If credit is removed, go die. | |
3 | play = game.Players.LocalPlayer | |
4 | p = game.Players.LocalPlayer | |
5 | char = paly.Character | |
6 | torso = char.Torso | |
7 | neck = char.Torso.Neck | |
8 | hum = char.Humanoid | |
9 | Player = game:GetService("Players").LocalPlayer | |
10 | local mouse = Player:GetMouse() | |
11 | Character = Player.Character | |
12 | tors = Character.Torso | |
13 | lleg = Character["Left Leg"] | |
14 | root = Character.HumanoidRootPart | |
15 | hed = Character.Head | |
16 | rleg = Character["Right Leg"] | |
17 | rarm = Character["Right Arm"] | |
18 | larm = Character["Left Arm"] | |
19 | tors.Material = Enum.Material.Fabric | |
20 | local root = char.HumanoidRootPart | |
21 | local rj = root.RootJoint | |
22 | local deb = false | |
23 | local shot = 0 | |
24 | local stanceToggle = "Idle1" | |
25 | local l = game:GetService("Lighting") | |
26 | local rs = game:GetService("RunService").RenderStepped | |
27 | local hb = game:GetService("RunService").Heartbeat | |
28 | local Stepped = game:GetService("RunService").Stepped | |
29 | math.randomseed(os.time()) | |
30 | ptez = {0.7, 0.8, 0.9, 1} | |
31 | local BC = Character["Body Colors"] | |
32 | BC.HeadColor = BrickColor.new("Bright violet") | |
33 | BC.LeftArmColor = BrickColor.new("Bright violet") | |
34 | BC.LeftLegColor = BrickColor.new("Bright violet") | |
35 | BC.RightArmColor = BrickColor.new("Bright violet") | |
36 | BC.RightLegColor = BrickColor.new("Bright violet") | |
37 | BC.TorsoColor = BrickColor.new("Really black") | |
38 | local Effects = {} | |
39 | hed.face:Destroy() | |
40 | hum.MaxHealth = 1000000 | |
41 | attack = false | |
42 | vt = Vector3.new | |
43 | bc = BrickColor.new | |
44 | br = BrickColor.random | |
45 | it = Instance.new | |
46 | cf = CFrame.new | |
47 | euler = CFrame.fromEulerAnglesXYZ | |
48 | angles = CFrame.Angles | |
49 | matr = math.random | |
50 | local basiccooldown = math.huge | |
51 | local ultcooldown = math.huge | |
52 | local secondcooldown = math.huge | |
53 | local thirdcooldown = math.huge | |
54 | local s = Instance.new("Sound",char) | |
55 | s.Name = "sos" | |
56 | s.SoundId = "http://www.roblox.com/asset/?id=195900687" | |
57 | s.Pitch = 1 | |
58 | s.Volume = math.huge | |
59 | s.Looped = true | |
60 | s:Play() | |
61 | ||
62 | local prtrm = Instance.new("Part",Character) | |
63 | prtrm.Size = vt(2.1,2.1,1.1) | |
64 | prtrm.CanCollide = false | |
65 | prtrm.Transparency = 0.5 | |
66 | prtrm.Material = "SmoothPlastic" | |
67 | prtrm.BrickColor = bc("Really black") | |
68 | local wldm = Instance.new("Weld",Character) | |
69 | wldm.Part0 = tors | |
70 | wldm.Part1 = prtrm | |
71 | ||
72 | local prtr = Instance.new("Part",Character) | |
73 | prtr.Size = vt(1.1,2.1,1.1) | |
74 | prtr.CanCollide = false | |
75 | prtr.Transparency = 0.5 | |
76 | prtr.Material = "SmoothPlastic" | |
77 | prtr.BrickColor = bc("Bright violet") | |
78 | local prtrl = Instance.new("Part",Character) | |
79 | prtrl.Size = vt(1.1,2.1,1.1) | |
80 | prtrl.CanCollide = false | |
81 | prtrl.Transparency = 0.5 | |
82 | prtrl.Material = "SmoothPlastic" | |
83 | prtrl.BrickColor = bc("Bright violet") | |
84 | local eff = Instance.new("ParticleEmitter",prtr) | |
85 | eff.LightEmission = 0 | |
86 | eff.Texture = "rbxassetid://284205403" | |
87 | eff.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1)) | |
88 | eff.Size = NumberSequence.new(0.5,1) | |
89 | eff.Acceleration = vt(0,25,0) | |
90 | eff.Speed = NumberRange.new(-5) | |
91 | eff.LockedToPart = false | |
92 | eff.Transparency = NumberSequence.new(0.95) | |
93 | eff.Lifetime = NumberRange.new(0.5) | |
94 | eff.Rate = 100000 | |
95 | eff.VelocitySpread = 25 | |
96 | local wld = Instance.new("Weld",Character) | |
97 | wld.Part0 = rarm | |
98 | wld.Part1 = prtr | |
99 | local wldl = Instance.new("Weld",Character) | |
100 | wldl.Part0 = rleg | |
101 | wldl.Part1 = prtrl | |
102 | ||
103 | local prtr2 = Instance.new("Part",Character) | |
104 | prtr2.Size = vt(1.1,2.1,1.1) | |
105 | prtr2.CanCollide = false | |
106 | prtr2.Transparency = 0.5 | |
107 | prtr2.Material = "SmoothPlastic" | |
108 | prtr2.BrickColor = bc("Bright violet") | |
109 | local prtrl2 = Instance.new("Part",Character) | |
110 | prtrl2.Size = vt(1.1,2.1,1.1) | |
111 | prtrl2.CanCollide = false | |
112 | prtrl2.Transparency = 0.5 | |
113 | prtrl2.Material = "SmoothPlastic" | |
114 | prtrl2.BrickColor = bc("Bright violet") | |
115 | local eff2 = Instance.new("ParticleEmitter",prtr2) | |
116 | eff2.LightEmission = 0 | |
117 | eff2.Texture = "rbxassetid://284205403" | |
118 | eff2.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1)) | |
119 | eff2.Size = NumberSequence.new(0.5,1) | |
120 | eff2.Acceleration = vt(0,25,0) | |
121 | eff2.Speed = NumberRange.new(-5) | |
122 | eff2.LockedToPart = false | |
123 | eff2.Transparency = NumberSequence.new(0.95) | |
124 | eff2.Lifetime = NumberRange.new(0.5) | |
125 | eff2.Rate = 100000 | |
126 | eff2.VelocitySpread = 25 | |
127 | local wld2 = Instance.new("Weld",Character) | |
128 | wld2.Part0 = larm | |
129 | wld2.Part1 = prtr2 | |
130 | local wldl2 = Instance.new("Weld",Character) | |
131 | wldl2.Part0 = lleg | |
132 | wldl2.Part1 = prtrl2 | |
133 | ||
134 | local lightning = Instance.new("ParticleEmitter",torso) | |
135 | lightning.Texture = "http://www.roblox.com/asset/?id=348321827" | |
136 | lightning.LightEmission = 0 | |
137 | lightning.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1)) | |
138 | lightning.LockedToPart = true | |
139 | lightning.Rate = 20 | |
140 | lightning.Lifetime = NumberRange.new(0.1,0.10) | |
141 | lightning.Rotation = NumberRange.new(0,360) | |
142 | lightning.Size = NumberSequence.new(3,3,3) | |
143 | lightning.Transparency = NumberSequence.new(0,0) | |
144 | lightning.Speed = NumberRange.new(0,0) | |
145 | lightning.RotSpeed = NumberRange.new(0,0) | |
146 | lightning.ZOffset = 5 | |
147 | lightning.Enabled = false | |
148 | ||
149 | local eeeffecto = Instance.new("ParticleEmitter",torso) | |
150 | eeeffecto.Texture = "http://www.roblox.com/asset/?id=305943367" | |
151 | eeeffecto.LightEmission = 0 | |
152 | eeeffecto.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1)) | |
153 | eeeffecto.LockedToPart = true | |
154 | eeeffecto.Rate = 10 | |
155 | eeeffecto.Lifetime = NumberRange.new(0.1,0.1) | |
156 | eeeffecto.Rotation = NumberRange.new(0,0) | |
157 | eeeffecto.Size = NumberSequence.new(9,9,9) | |
158 | eeeffecto.Transparency = NumberSequence.new(0,0) | |
159 | eeeffecto.Speed = NumberRange.new(0,0) | |
160 | eeeffecto.RotSpeed = NumberRange.new(0,0) | |
161 | eeeffecto.Enabled = false | |
162 | ||
163 | ||
164 | for i,v in pairs(Character:children()) do | |
165 | if v:IsA("Shirt") then | |
166 | v:Destroy() | |
167 | end | |
168 | end | |
169 | for i,v in pairs(Character:children()) do | |
170 | if v:IsA("Pants") then | |
171 | v:Destroy() | |
172 | end | |
173 | end | |
174 | for i,v in pairs(char:children()) do | |
175 | if v:IsA("Accessory") then | |
176 | v:Destroy() | |
177 | end | |
178 | end | |
179 | ||
180 | CV="Hot pink" | |
181 | ||
182 | Reaper = Instance.new("Model",Character) | |
183 | Reaper.Name = "Reaper" | |
184 | rh = Instance.new("Part") | |
185 | rh.Name = "rh" | |
186 | rh.Parent = Reaper | |
187 | rh.Locked = true | |
188 | rh.CanCollide = false | |
189 | mesh = Instance.new("SpecialMesh") | |
190 | rh.formFactor = "Symmetric" | |
191 | mesh.MeshType = "FileMesh" | |
192 | mesh.MeshId = "http://www.roblox.com/asset/?id=21057410" | |
193 | mesh.TextureId = "http://www.roblox.com/asset/?id=250577405" | |
194 | mesh.Scale = Vector3.new(1.05, 1.05, 1.05) | |
195 | mesh.Parent = rh | |
196 | local weld = Instance.new("Weld") | |
197 | weld.Parent = rh | |
198 | weld.Part0 = rh | |
199 | weld.Part1 = Player.Character.Head | |
200 | weld.C0 = CFrame.new(0, -0.045, -0.028)*CFrame.Angles(0, 0, 0) | |
201 | ||
202 | local txt = Instance.new("BillboardGui", char) | |
203 | txt.Adornee = char .Head | |
204 | txt.Name = "_status" | |
205 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
206 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
207 | local text = Instance.new("TextLabel", txt) | |
208 | text.Size = UDim2.new(10, 0, 7, 0) | |
209 | text.FontSize = "Size24" | |
210 | text.TextScaled = true | |
211 | text.TextTransparency = 0 | |
212 | text.BackgroundTransparency = 1 | |
213 | text.TextTransparency = 0 | |
214 | text.TextStrokeTransparency = 0 | |
215 | text.Font = "SciFi" | |
216 | text.TextStrokeColor3 = BrickColor.new("Really black").Color | |
217 | ||
218 | v=Instance.new("Part") | |
219 | v.Name = "ColorBrick" | |
220 | v.Parent=p.Character | |
221 | v.FormFactor="Symmetric" | |
222 | v.Anchored=true | |
223 | v.CanCollide=false | |
224 | v.BottomSurface="Smooth" | |
225 | v.TopSurface="Smooth" | |
226 | v.Size=Vector3.new(10,5,3) | |
227 | v.Transparency=1 | |
228 | v.CFrame=char.Torso.CFrame | |
229 | v.BrickColor=BrickColor.new(CV) | |
230 | v.Transparency=1 | |
231 | text.TextColor3 = BrickColor.new("Bright violet").Color | |
232 | v.Shape="Block" | |
233 | text.Text = "Rex, Ruler of the Universe:" ..math.floor(hum.Health) | |
234 | ||
235 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
236 | local gui = it(GuiType) | |
237 | gui.Parent = parent | |
238 | gui.Text = text | |
239 | gui.BackgroundTransparency = backtrans | |
240 | gui.BackgroundColor3 = backcol | |
241 | gui.SizeConstraint = "RelativeXY" | |
242 | gui.TextXAlignment = "Center" | |
243 | gui.TextYAlignment = "Center" | |
244 | gui.Position = pos | |
245 | gui.Size = size | |
246 | gui.Font = "SourceSans" | |
247 | gui.FontSize = "Size14" | |
248 | gui.TextWrapped = false | |
249 | gui.TextStrokeTransparency = 0 | |
250 | gui.TextColor = BrickColor.new("White") | |
251 | return gui | |
252 | end | |
253 | ||
254 | local boll = Instance.new("Part",game.Lighting) | |
255 | boll.Transparency = 0.5 | |
256 | boll.Material = "Neon" | |
257 | boll.BrickColor = bc("Bright red") | |
258 | boll.Anchored = true | |
259 | boll.Size = vt(1,1,1) | |
260 | boll.Shape = "Ball" | |
261 | boll.CanCollide = false | |
262 | ||
263 | local shur = Instance.new("Part",game.Lighting) | |
264 | shur.Transparency = 0 | |
265 | shur.Material = "Neon" | |
266 | shur.BrickColor = bc("Bright red") | |
267 | shur.Anchored = true | |
268 | shur.Size = vt(5,0.2,5) | |
269 | shur.CanCollide = false | |
270 | local Meshshur = Instance.new("CylinderMesh",shur) | |
271 | ||
272 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
273 | if hit.Parent==nil then | |
274 | return | |
275 | end | |
276 | h=hit.Parent:FindFirstChild("Humanoid") | |
277 | for _,v in pairs(hit.Parent:children()) do | |
278 | if v:IsA("Humanoid") then | |
279 | h=v | |
280 | end | |
281 | end | |
282 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
283 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
284 | end | |
285 | if hit.Parent.className=="Hat" then | |
286 | hit=hit.Parent.Parent:findFirstChild("Head") | |
287 | end | |
288 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
289 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
290 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
291 | return | |
292 | end]] | |
293 | -- hs(hit,1.2) | |
294 | c=Instance.new("ObjectValue") | |
295 | c.Name="creator" | |
296 | c.Value=game:service("Players").LocalPlayer | |
297 | c.Parent=h | |
298 | game:GetService("Debris"):AddItem(c,.5) | |
299 | Damage=math.random(minim,maxim) | |
300 | -- h:TakeDamage(Damage) | |
301 | blocked=false | |
302 | block=hit.Parent:findFirstChild("Block") | |
303 | if block~=nil then | |
304 | print(block.className) | |
305 | if block.className=="NumberValue" then | |
306 | if block.Value>0 then | |
307 | blocked=true | |
308 | if decreaseblock==nil then | |
309 | block.Value=block.Value-1 | |
310 | end | |
311 | end | |
312 | end | |
313 | if block.className=="IntValue" then | |
314 | if block.Value>0 then | |
315 | blocked=true | |
316 | if decreaseblock~=nil then | |
317 | block.Value=block.Value-1 | |
318 | end | |
319 | end | |
320 | end | |
321 | end | |
322 | if blocked==false then | |
323 | -- h:TakeDamage(Damage) | |
324 | h.Health=h.Health-Damage | |
325 | showDamage(hit.Parent,Damage,.5,TorsoColor) | |
326 | else | |
327 | h.Health=h.Health-(Damage/2) | |
328 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
329 | end | |
330 | if Type=="Knockdown" then | |
331 | hum=hit.Parent.Humanoid | |
332 | hum.PlatformStand=true | |
333 | coroutine.resume(coroutine.create(function(HHumanoid) | |
334 | swait(1) | |
335 | HHumanoid.PlatformStand=false | |
336 | end),hum) | |
337 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
338 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
339 | local bodvol=Instance.new("BodyVelocity") | |
340 | bodvol.velocity=angle*knockback | |
341 | bodvol.P=5000 | |
342 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
343 | bodvol.Parent=hit | |
344 | rl=Instance.new("BodyAngularVelocity") | |
345 | rl.P=3000 | |
346 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
347 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
348 | rl.Parent=hit | |
349 | game:GetService("Debris"):AddItem(bodvol,.5) | |
350 | game:GetService("Debris"):AddItem(rl,.5) | |
351 | elseif Type=="Normal" then | |
352 | vp=Instance.new("BodyVelocity") | |
353 | vp.P=500 | |
354 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
355 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
356 | if KnockbackType==1 then | |
357 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
358 | elseif KnockbackType==2 then | |
359 | vp.velocity=Property.CFrame.lookVector*knockback | |
360 | end | |
361 | if knockback>0 then | |
362 | vp.Parent=hit.Parent.Torso | |
363 | end | |
364 | game:GetService("Debris"):AddItem(vp,.5) | |
365 | elseif Type=="Up" then | |
366 | local bodyVelocity=Instance.new("BodyVelocity") | |
367 | bodyVelocity.velocity=vt(0,10,0) | |
368 | bodyVelocity.P=1000 | |
369 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
370 | bodyVelocity.Parent=hit | |
371 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
372 | rl=Instance.new("BodyAngularVelocity") | |
373 | rl.P=3000 | |
374 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
375 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
376 | rl.Parent=hit | |
377 | game:GetService("Debris"):AddItem(rl,.5) | |
378 | elseif Type=="Snare" then | |
379 | bp=Instance.new("BodyPosition") | |
380 | bp.P=2000 | |
381 | bp.D=100 | |
382 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
383 | bp.position=hit.Parent.Torso.Position | |
384 | bp.Parent=hit.Parent.Torso | |
385 | game:GetService("Debris"):AddItem(bp,1) | |
386 | elseif Type=="Target" then | |
387 | if Targetting==false then | |
388 | ZTarget=hit.Parent.Torso | |
389 | coroutine.resume(coroutine.create(function(Part) | |
390 | swait(5) | |
391 | end),ZTarget) | |
392 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
393 | targetgui=Instance.new("BillboardGui") | |
394 | targetgui.Parent=ZTarget | |
395 | targetgui.Size=UDim2.new(10,100,10,100) | |
396 | targ=Instance.new("ImageLabel") | |
397 | targ.Parent=targetgui | |
398 | targ.BackgroundTransparency=1 | |
399 | targ.Image="rbxassetid://4834067" | |
400 | targ.Size=UDim2.new(1,0,1,0) | |
401 | cam.CameraType="Scriptable" | |
402 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
403 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
404 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
405 | Targetting=true | |
406 | RocketTarget=ZTarget | |
407 | for i=1,Property do | |
408 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
409 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
410 | swait() | |
411 | end | |
412 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
413 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
414 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
415 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
416 | end | |
417 | Targetting=false | |
418 | RocketTarget=nil | |
419 | targetgui.Parent=nil | |
420 | cam.CameraType="Custom" | |
421 | end | |
422 | end | |
423 | debounce=Instance.new("BoolValue") | |
424 | debounce.Name="DebounceHit" | |
425 | debounce.Parent=hit.Parent | |
426 | debounce.Value=true | |
427 | game:GetService("Debris"):AddItem(debounce,Delay) | |
428 | c=Instance.new("ObjectValue") | |
429 | c.Name="creator" | |
430 | c.Value=Player | |
431 | c.Parent=h | |
432 | game:GetService("Debris"):AddItem(c,.5) | |
433 | CRIT=false | |
434 | hitDeb=true | |
435 | AttackPos=6 | |
436 | end | |
437 | end | |
438 | ||
439 | showDamage=function(Char,Dealt,du,Color) | |
440 | m=Instance.new("Model") | |
441 | m.Name=tostring(Dealt) | |
442 | h=Instance.new("Humanoid") | |
443 | h.Health=0 | |
444 | h.MaxHealth=0 | |
445 | h.Parent=m | |
446 | c=Instance.new("Part") | |
447 | c.Transparency=0 | |
448 | c.Material = "Neon" | |
449 | c.BrickColor=bc("New Yeller") | |
450 | c.Name="Head" | |
451 | c.TopSurface=0 | |
452 | c.BottomSurface=0 | |
453 | local tick = Instance.new("Sound",c) | |
454 | tick.SoundId = "rbxassetid://12221976" | |
455 | tick.Volume = 5 | |
456 | tick.Pitch = 4 | |
457 | tick:Play() | |
458 | c.formFactor="Plate" | |
459 | c.Size=Vector3.new(1,.4,1) | |
460 | ms=Instance.new("CylinderMesh") | |
461 | ms.Scale=Vector3.new(.8,.8,.8) | |
462 | if CRIT==true then | |
463 | ms.Scale=Vector3.new(1,1.25,1) | |
464 | end | |
465 | ms.Parent=c | |
466 | c.Reflectance=0 | |
467 | Instance.new("BodyGyro").Parent=c | |
468 | c.Parent=m | |
469 | if Char:findFirstChild("Head")~=nil then | |
470 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
471 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
472 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
473 | end | |
474 | f=Instance.new("BodyPosition") | |
475 | f.P=2000 | |
476 | f.D=100 | |
477 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
478 | f.position=c.Position+Vector3.new(0,3,0) | |
479 | f.Parent=c | |
480 | game:GetService("Debris"):AddItem(m,.5+du) | |
481 | c.CanCollide=false | |
482 | m.Parent=workspace | |
483 | c.CanCollide=false | |
484 | p:Destroy() | |
485 | end | |
486 | ||
487 | function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type) | |
488 | for _, c in pairs(workspace:children()) do | |
489 | local hum = c:findFirstChild("Humanoid") | |
490 | if hum ~= nil then | |
491 | local head = c:findFirstChild("Torso") | |
492 | if head ~= nil then | |
493 | local targ = head.Position - Part.Position | |
494 | local mag = targ.magnitude | |
495 | if mag <= magni and c.Name ~= Player.Name then | |
496 | Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3) | |
497 | end | |
498 | end | |
499 | end | |
500 | end | |
501 | end | |
502 | ||
503 | function ExplodeFast(rad,par) | |
504 | local expart = Instance.new("Part",script.Parent) | |
505 | local expart2 = Instance.new("Part",script.Parent) | |
506 | local partMesh = Instance.new("SpecialMesh",expart) | |
507 | partMesh.MeshType = "Sphere" | |
508 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
509 | partMesh2.MeshType = "Sphere" | |
510 | local expld = Instance.new("Explosion", script.Parent) | |
511 | expld.Visible = false | |
512 | local plode = Instance.new("Sound",expart) | |
513 | plode.SoundId = "rbxassetid://153274423" | |
514 | plode.Volume = 2.5 | |
515 | plode.Pitch = 1 | |
516 | plode.Looped = false | |
517 | plode:Play() | |
518 | local ploder = Instance.new("Sound",expart) | |
519 | ploder.SoundId = "rbxassetid://130972023" | |
520 | ploder.Volume = 2.5 | |
521 | ploder.Pitch = 1 | |
522 | ploder.Looped = false | |
523 | ploder:Play() | |
524 | expld.BlastRadius = rad | |
525 | expld.Position = par.Position | |
526 | partMesh.Scale = vt(rad,rad,rad) | |
527 | expart.Size = vt(1,1,1)*1.5 | |
528 | expart.Transparency = 0 | |
529 | expart.Anchored = true | |
530 | expart.Material = "Neon" | |
531 | expart.BrickColor = bc("Really black") | |
532 | expart.CFrame = par.CFrame | |
533 | partMesh2.Scale = vt(rad,rad,rad) | |
534 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
535 | expart2.Transparency = 0.5 | |
536 | expart2.Anchored = true | |
537 | expart2.Material = "Neon" | |
538 | expart2.BrickColor = bc("Bright violet") | |
539 | expart2.CFrame = par.CFrame | |
540 | local value = 1*rad/6.5 | |
541 | par:Destroy() | |
542 | for i = 0, 100 do | |
543 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
544 | expart.CFrame = expart.CFrame | |
545 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
546 | expart2.CFrame = expart.CFrame | |
547 | value = value - 0.035*rad/6.5 | |
548 | if value < 1 then | |
549 | value = 0.25 | |
550 | expart.Transparency = expart.Transparency + 0.025 | |
551 | expart2.Transparency = expart2.Transparency + 0.025 | |
552 | end | |
553 | wait() | |
554 | end | |
555 | plode.Parent = nil | |
556 | ploder.Parent = nil | |
557 | expart.Parent = nil | |
558 | expart2.Parent = nil | |
559 | expld.Parent = nil | |
560 | end | |
561 | ||
562 | function Explode(rad,par) | |
563 | local expart = Instance.new("Part",script.Parent) | |
564 | local expart2 = Instance.new("Part",script.Parent) | |
565 | local partMesh = Instance.new("SpecialMesh",expart) | |
566 | partMesh.MeshType = "Sphere" | |
567 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
568 | partMesh2.MeshType = "Sphere" | |
569 | local expld = Instance.new("Explosion", script.Parent) | |
570 | expld.Visible = false | |
571 | local plode = Instance.new("Sound",expart) | |
572 | plode.SoundId = "rbxassetid://288641686" | |
573 | plode.Volume = 2.5 | |
574 | plode.Pitch = 0.75 | |
575 | plode.Looped = false | |
576 | plode:Play() | |
577 | local ploder = Instance.new("Sound",expart) | |
578 | ploder.SoundId = "rbxassetid://206049428" | |
579 | ploder.Volume = 3.25 | |
580 | ploder.Pitch = 0.5 | |
581 | ploder.Looped = false | |
582 | ploder:Play() | |
583 | expld.BlastRadius = rad | |
584 | expld.Position = par.Position | |
585 | partMesh.Scale = vt(rad,rad,rad) | |
586 | expart.Size = vt(1,1,1)*1.5 | |
587 | expart.Transparency = 0 | |
588 | expart.Anchored = true | |
589 | expart.Material = "Neon" | |
590 | expart.BrickColor = bc("Really black") | |
591 | expart.CFrame = par.CFrame | |
592 | partMesh2.Scale = vt(rad,rad,rad) | |
593 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
594 | expart2.Transparency = 0.5 | |
595 | expart2.Anchored = true | |
596 | expart2.Material = "Neon" | |
597 | expart2.BrickColor = bc("Bright violet") | |
598 | expart2.CFrame = par.CFrame | |
599 | local value = 1*rad/6.5 | |
600 | par:Destroy() | |
601 | for i = 0, 100 do | |
602 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
603 | expart.CFrame = expart.CFrame | |
604 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
605 | expart2.CFrame = expart.CFrame | |
606 | value = value - 0.035*rad/6.5 | |
607 | if value < 1 then | |
608 | value = 0.25 | |
609 | expart.Transparency = expart.Transparency + 0.025 | |
610 | expart2.Transparency = expart2.Transparency + 0.025 | |
611 | end | |
612 | wait() | |
613 | end | |
614 | plode.Parent = nil | |
615 | ploder.Parent = nil | |
616 | expart.Parent = nil | |
617 | expart2.Parent = nil | |
618 | expld.Parent = nil | |
619 | end | |
620 | ||
621 | function ExplodeMass(rad,par) | |
622 | local expart = Instance.new("Part",script.Parent) | |
623 | local expart2 = Instance.new("Part",script.Parent) | |
624 | local partMesh = Instance.new("SpecialMesh",expart) | |
625 | partMesh.MeshType = "Sphere" | |
626 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
627 | partMesh2.MeshType = "Sphere" | |
628 | local expld = Instance.new("Explosion", script.Parent) | |
629 | expld.Visible = false | |
630 | local plode = Instance.new("Sound",workspace) | |
631 | plode.SoundId = "rbxassetid://579687077" | |
632 | plode.Volume = 1 | |
633 | plode.Pitch = 0.75 | |
634 | plode.Looped = false | |
635 | plode:Play() | |
636 | local plodez = Instance.new("Sound",workspace) | |
637 | plodez.SoundId = "rbxassetid://288641686" | |
638 | plodez.Volume = 1 | |
639 | plodez.Pitch = 0.625 | |
640 | plodez.Looped = false | |
641 | plodez:Play() | |
642 | local plodeza = Instance.new("Sound",workspace) | |
643 | plodeza.SoundId = "rbxassetid://197161452" | |
644 | plodeza.Volume = 0.85 | |
645 | plodeza.Pitch = 0.5 | |
646 | plodeza.Looped = false | |
647 | plodeza:Play() | |
648 | local plodezar = Instance.new("Sound",workspace) | |
649 | plodezar.SoundId = "rbxassetid://197161452" | |
650 | plodezar.Volume = 0.85 | |
651 | plodezar.Pitch = 0.2 | |
652 | plodezar.Looped = false | |
653 | plodezar:Play() | |
654 | local s3 = Instance.new("Sound",workspace) | |
655 | s3.SoundId = "rbxassetid://268931189" | |
656 | s3.Pitch = 0.875 | |
657 | s3.Volume = 1 | |
658 | s3.Looped = false | |
659 | s3:Play() | |
660 | expld.BlastRadius = rad | |
661 | expld.Position = par.Position | |
662 | partMesh.Scale = vt(rad,rad,rad) | |
663 | expart.Size = vt(1,1,1)*1.5 | |
664 | expart.Transparency = 0 | |
665 | expart.Anchored = true | |
666 | expart.Material = "Neon" | |
667 | expart.BrickColor = bc("Really black") | |
668 | expart.CFrame = par.CFrame | |
669 | partMesh2.Scale = vt(rad,rad,rad) | |
670 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
671 | expart2.Transparency = 0.5 | |
672 | expart2.Anchored = true | |
673 | expart2.Material = "Neon" | |
674 | expart2.BrickColor = bc("Bright violet") | |
675 | expart2.CFrame = par.CFrame | |
676 | local value = 1*rad/10 | |
677 | par:Destroy() | |
678 | for i = 0, 300 do | |
679 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
680 | expart.CFrame = expart.CFrame | |
681 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
682 | expart2.CFrame = expart.CFrame | |
683 | value = value - 0.0175*rad/10 | |
684 | if value <= 0 then | |
685 | expart.Transparency = expart.Transparency + 0.0125 | |
686 | expart2.Transparency = expart2.Transparency + 0.0125 | |
687 | value = 0.25 | |
688 | end | |
689 | wait() | |
690 | end | |
691 | plode.Parent = nil | |
692 | expart.Parent = nil | |
693 | expart2.Parent = nil | |
694 | expld.Parent = nil | |
695 | end | |
696 | ||
697 | local basgui = it("GuiMain") | |
698 | basgui.Parent = Player.PlayerGui | |
699 | basgui.Name = "CooldownsGUI" | |
700 | local basframe = it("Frame") | |
701 | basframe.Parent = basgui | |
702 | basframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
703 | basframe.BackgroundTransparency = 1 | |
704 | basframe.BorderColor3 = Color3.new(17, 17, 17) | |
705 | basframe.Size = UDim2.new(0.2, 0, 0.2, 0) | |
706 | basframe.Position = UDim2.new(0.8, 0, 0.8, 0) | |
707 | local healthgui = gui("TextLabel", basframe, "Health: " ..basiccooldown, 1, BrickColor.random().Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.5, 0, -0.5, 0)) | |
708 | local basicgui = gui("TextLabel", basframe, "Basic: " ..basiccooldown, 1, BrickColor.random().Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0.25, 0)) | |
709 | local basic2gui = gui("TextLabel", basframe, "FirstMove: " ..secondcooldown, 1, BrickColor.random().Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1.25, 0)) | |
710 | local basic3gui = gui("TextLabel", basframe, "SecondMove: " ..thirdcooldown, 1, BrickColor.random().Color, UDim2.new(0, 0, 0, 0), UDim2.new(1.15, 0, 0.25, 0)) | |
711 | local basic4gui = gui("TextLabel", basframe, "Ultimate: " ..ultcooldown, 1, BrickColor.random().Color, UDim2.new(0, 0, 0, 0), UDim2.new(1.15, 0, 1.25, 0)) | |
712 | basicgui.ZIndex = 2 | |
713 | healthgui.TextSize = 24 | |
714 | healthgui.ZIndex = 2 | |
715 | basicgui.TextSize = 24 | |
716 | basic4gui.ZIndex = 2 | |
717 | basic4gui.TextSize = 24 | |
718 | basic3gui.ZIndex = 2 | |
719 | basic3gui.TextSize = 24 | |
720 | basic2gui.ZIndex = 2 | |
721 | basic2gui.TextSize = 24 | |
722 | ||
723 | ||
724 | function Blaze() | |
725 | if ultcooldown >= 30 then | |
726 | local kolor = Instance.new("ColorCorrectionEffect",game.Lighting) | |
727 | local see = Instance.new("Sound",workspace) | |
728 | see.SoundId = "rbxassetid://21420962" | |
729 | see.Pitch = 1 | |
730 | see.Volume = 2.75 | |
731 | see.Looped = false | |
732 | see:Play() | |
733 | kolor.Brightness = -1 | |
734 | kolor.Contrast = -1 | |
735 | kolor.TintColor = BrickColor.new("Bright violet").Color | |
736 | wait(0.1) | |
737 | for i = 0, 9 do | |
738 | kolor.Brightness = kolor.Brightness + 0.35 | |
739 | kolor.Contrast = kolor.Contrast + 0.35 | |
740 | wait(0.05) | |
741 | end | |
742 | for i = 0, 9 do | |
743 | kolor.Brightness = kolor.Brightness - 0.35 | |
744 | kolor.Contrast = kolor.Contrast - 0.35 | |
745 | wait(0.05) | |
746 | end | |
747 | kolor:Destroy() | |
748 | local sloc = Instance.new("Part",workspace) | |
749 | local msh = Instance.new("SpecialMesh",sloc) | |
750 | msh.MeshType = "Sphere" | |
751 | sloc.Size = vt(1,1,1) | |
752 | sloc.Transparency = 1 | |
753 | sloc.BrickColor = bc("Really black") | |
754 | sloc.Position = hed.Position + vt(0,250,0) | |
755 | sloc.CanCollide = false | |
756 | sloc.Shape = "Ball" | |
757 | sloc.Anchored = true | |
758 | sloc.Material = "Neon" | |
759 | local s = Instance.new("Sound",workspace) | |
760 | s.SoundId = "rbxassetid://342793847" | |
761 | s.Pitch = 0.75 | |
762 | s.Volume = 1 | |
763 | s.Looped = false | |
764 | s:Play() | |
765 | local s2 = Instance.new("Sound",workspace) | |
766 | s2.SoundId = "rbxassetid://137463716" | |
767 | s2.Pitch = 0.5 | |
768 | s2.Volume = 1 | |
769 | s2.Looped = false | |
770 | s2:Play() | |
771 | local val = 0.65*5 | |
772 | for i = 0 , 150 do | |
773 | sloc.Transparency = sloc.Transparency - 0.035 | |
774 | msh.Scale = msh.Scale + vt(val,val,val) | |
775 | val = val - 0.0075*2.5 | |
776 | wait() | |
777 | end | |
778 | msh.Scale = msh.Scale - vt(1,1,1) | |
779 | sloc.Transparency = sloc.Transparency + 0.015 | |
780 | local spart = Instance.new("Part",workspace) | |
781 | local msh2 = Instance.new("SpecialMesh",spart) | |
782 | msh2.MeshType = "Sphere" | |
783 | spart.Size = vt(2,2,2) | |
784 | spart.Shape = "Ball" | |
785 | spart.BrickColor = bc("Really black") | |
786 | spart.Material = "Neon" | |
787 | spart.Transparency = 0 | |
788 | spart.Anchored = false | |
789 | msh2.Scale = msh.Scale/2 | |
790 | spart.Rotation = hed.Rotation | |
791 | spart.CanCollide = false | |
792 | spart.Position = sloc.Position + vt(math.random(-0,0),math.random(-0,0),math.random(-0,0)) | |
793 | local bv = Instance.new("BodyVelocity") | |
794 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
795 | bv.velocity = mouse.Hit.lookVector * 125 | |
796 | bv.Parent = spart | |
797 | local tick = Instance.new("Sound",workspace) | |
798 | tick.SoundId = "rbxassetid://203691467" | |
799 | tick.Volume = 2 | |
800 | tick.Pitch = 0.5 | |
801 | tick:Play() | |
802 | sloc:Destroy() | |
803 | wait(0.00001) | |
804 | pewdiepie=spart.Touched:connect(function(hit) | |
805 | ExplodeMass(125,spart) | |
806 | end) | |
807 | sloc:Destroy() | |
808 | end | |
809 | if ultcooldown < 1 then | |
810 | for i = 0, 29 do | |
811 | ultcooldown = ultcooldown + 1 | |
812 | wait(1) | |
813 | end | |
814 | end | |
815 | end | |
816 | ||
817 | function LocateSpot() | |
818 | if basiccooldown >= 5 then | |
819 | local spart = Instance.new("Part",workspace) | |
820 | local msh = Instance.new("SpecialMesh",spart) | |
821 | msh.MeshType = "Sphere" | |
822 | local sa2 = Instance.new("Sound",spart) | |
823 | sa2.SoundId = "rbxassetid://244578827" | |
824 | sa2.Pitch = 1 | |
825 | sa2.Volume = 2.5 | |
826 | sa2.Looped = false | |
827 | sa2:Play() | |
828 | spart.Size = vt(1,1,1) | |
829 | spart.BrickColor = BrickColor.new("Bright violet") | |
830 | spart.Material = "Neon" | |
831 | spart.Transparency = 0.25 | |
832 | spart.Anchored = true | |
833 | spart.CanCollide = false | |
834 | spart.CFrame = mouse.Hit | |
835 | spart.Rotation = vt(0,0,0) | |
836 | local value = 2.75 | |
837 | for i = 0, 74 do | |
838 | value = value - 0.035 | |
839 | msh.Scale = msh.Scale + vt(value,0,value) | |
840 | wait() | |
841 | end | |
842 | wait(1) | |
843 | for i = 0, 24 do | |
844 | value = value - 0.2215 | |
845 | spart.Transparency = spart.Transparency - 0.015 | |
846 | msh.Scale = msh.Scale + vt(value,500,value) | |
847 | wait() | |
848 | end | |
849 | wait(0.1) | |
850 | Explode(42.5,spart) | |
851 | end | |
852 | end | |
853 | ||
854 | function TeleportSpot() | |
855 | if basiccooldown >= 5 then | |
856 | local sparta = Instance.new("Part",workspace) | |
857 | local msher = Instance.new("SpecialMesh",sparta) | |
858 | msher.MeshType = "Sphere" | |
859 | msher.Scale = vt(0,0.1,0) | |
860 | local sa2 = Instance.new("Sound",sparta) | |
861 | sa2.SoundId = "rbxassetid://169380479" | |
862 | sa2.Pitch = 0.75 | |
863 | sa2.Volume = 2 | |
864 | sa2.Looped = false | |
865 | sa2:Play() | |
866 | local sa3 = Instance.new("Sound",sparta) | |
867 | sa3.SoundId = "rbxassetid://289556450" | |
868 | sa3.Pitch = 1 | |
869 | sa3.Volume = 3 | |
870 | sa3.Looped = false | |
871 | sparta.Size = vt(1,1,1) | |
872 | sparta.BrickColor = BrickColor.new("Bright violet") | |
873 | sparta.Material = "Neon" | |
874 | sparta.Transparency = 0 | |
875 | sparta.Anchored = true | |
876 | sparta.CanCollide = false | |
877 | sparta.CFrame = mouse.Hit | |
878 | sparta.Rotation = vt(0,0,0) | |
879 | local sparte = sparta:Clone() | |
880 | sparte.Position = tors.Position + vt(0,-2.75,0) | |
881 | sparte.Parent = workspace | |
882 | local msher2 = sparte.Mesh | |
883 | local value2 = 2.5 | |
884 | for i = 0, 24 do | |
885 | value2 = value2 - 0.065 | |
886 | msher.Scale = msher.Scale + vt(value2,0,value2) | |
887 | msher2.Scale = msher2.Scale + vt(value2,0,value2) | |
888 | wait() | |
889 | end | |
890 | for i = 0, 5 do | |
891 | msher.Scale = msher.Scale + vt(0,500,0) | |
892 | msher2.Scale = msher2.Scale + vt(0,500,0) | |
893 | wait() | |
894 | end | |
895 | wait(0.1) | |
896 | sa3:Play() | |
897 | tors.CFrame = sparta.CFrame | |
898 | for i = 0, 49 do | |
899 | value2 = value2 - 0.5 | |
900 | sparta.Transparency = sparta.Transparency + 0.1 | |
901 | msher.Scale = msher.Scale - vt(value2,-500,value2) | |
902 | sparte.Transparency = sparte.Transparency + 0.1 | |
903 | msher2.Scale = msher2.Scale - vt(value2,-500,value2) | |
904 | wait() | |
905 | end | |
906 | sparta:Destroy() | |
907 | sparte:Destroy() | |
908 | end | |
909 | end | |
910 | ||
911 | mod4 = Instance.new("Model",char) | |
912 | ||
913 | ptez = {0.7, 0.8, 0.9, 1} | |
914 | ||
915 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
916 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
917 | local List = {} | |
918 | for i,v in pairs(workspace:GetChildren())do | |
919 | if v:IsA("Model")then | |
920 | if v:findFirstChild("Torso")then | |
921 | if v ~= char then | |
922 | if(v.Torso.Position -Position).magnitude <= Distance then | |
923 | table.insert(List,v) | |
924 | end | |
925 | end | |
926 | end | |
927 | end | |
928 | end | |
929 | return List | |
930 | end | |
931 | ||
932 | function Slam() | |
933 | local part=Instance.new('Part',mod4) | |
934 | part.Anchored=true | |
935 | part.CanCollide=false | |
936 | part.FormFactor='Custom' | |
937 | part.Size=Vector3.new(.2,.2,.2) | |
938 | part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0) | |
939 | part.Transparency=.7 | |
940 | part.BrickColor=BrickColor.new('Really black') | |
941 | mesh=Instance.new('SpecialMesh',part) | |
942 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
943 | mesh.Scale=Vector3.new(3,3,3) | |
944 | local part2=Instance.new('Part',mod4) | |
945 | part2.Anchored=true | |
946 | part2.CanCollide=false | |
947 | part2.FormFactor='Custom' | |
948 | part2.Size=Vector3.new(.2,.2,.2) | |
949 | part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6) | |
950 | part2.Transparency=.7 | |
951 | part2.BrickColor=BrickColor.new("Plum") | |
952 | mesh2=Instance.new('SpecialMesh',part2) | |
953 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
954 | mesh2.Scale=Vector3.new(3,1.5,3) | |
955 | x = Instance.new("Sound",larm) | |
956 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
957 | x.Pitch = ptez[math.random(1,#ptez)] | |
958 | x.Volume = 1 | |
959 | wait(.1) | |
960 | x1 = Instance.new("Sound",larm) | |
961 | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" | |
962 | x1.Pitch = ptez[math.random(1,#ptez)] | |
963 | x1.Volume = 1 | |
964 | wait(.1) | |
965 | x:Play() | |
966 | x1:Play() | |
967 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
968 | if v:FindFirstChild('Humanoid') then | |
969 | v.Humanoid:TakeDamage(math.random(99,99)) | |
970 | end | |
971 | end | |
972 | coroutine.resume(coroutine.create(function() | |
973 | for i=0,0.62,0.13 do | |
974 | wait() | |
975 | part.CFrame=part.CFrame | |
976 | part.Transparency=i | |
977 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
978 | part2.CFrame=part2.CFrame | |
979 | part2.Transparency=i | |
980 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
981 | end | |
982 | part.Parent=nil | |
983 | part2.Parent=nil | |
984 | x:Destroy() | |
985 | end)) | |
986 | end | |
987 | ||
988 | game.StarterGui:SetCore("ChatMakeSystemMessage", { | |
989 | Text = "Made by Noobygames12, Edited by RealPieDiePew."; | |
990 | Color = Color3.new(0, 1, 1); | |
991 | Font = Enum.Font.Code; | |
992 | FontSize = Enum.FontSize.Size24; | |
993 | }) | |
994 | wait() | |
995 | game.StarterGui:SetCore("ChatMakeSystemMessage", { | |
996 | Text = "RealPieDiePew#4968 and dont remove credits."; | |
997 | Color = Color3.new(0, 1, 1); | |
998 | Font = Enum.Font.Code; | |
999 | FontSize = Enum.FontSize.Size24; | |
1000 | }) | |
1001 | ||
1002 | Reap = function() | |
1003 | ||
1004 | rarm.Touched:connect(function(ht1) | |
1005 | ||
1006 | hit1 = ht1.Parent | |
1007 | if ht1 and hit1:IsA("Model") and hit1:FindFirstChild("Humanoid") and hit1.Name ~= Player.Name and Debounces.Reaping == true and Debounces.Reaped == false then | |
1008 | Debounces.Reaped = true | |
1009 | h = hit1:FindFirstChild("Humanoid") | |
1010 | if h ~= nil then | |
1011 | hum.MaxHealth = hum.MaxHealth + h.MaxHealth | |
1012 | hum.Health = hum.MaxHealth | |
1013 | e = Instance.new("Part") | |
1014 | e.TopSurface = 0 | |
1015 | e.BottomSurface = 0 | |
1016 | e.Reflectance = 0.05 | |
1017 | e.formFactor = "Symmetric" | |
1018 | e.Size = Vector3.new(1, 1, 1) | |
1019 | e.Anchored = true | |
1020 | e.CanCollide = false | |
1021 | e.BrickColor = BrickColor.new("Really blue") | |
1022 | e.CFrame = CFrame.new(ht1.Position) | |
1023 | e.Parent = hit1 | |
1024 | Instance.new("BlockMesh", e) | |
1025 | coroutine.resume(coroutine.create(function(par) | |
1026 | ||
1027 | for i = 1, 13 do | |
1028 | par.CFrame = par.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-20, 20) / 50, math.random(-20, 20) / 50, math.random(-20, 20) / 50) | |
1029 | par.Transparency = i / 13 | |
1030 | par.Mesh.Scale = par.Mesh.Scale + Vector3.new(0.4, 0.4, 0.4) | |
1031 | wait() | |
1032 | end | |
1033 | par.Parent = nil | |
1034 | end | |
1035 | ), e) | |
1036 | for _,v in pairs(hit1:children()) do | |
1037 | if v.className == "Part" then | |
1038 | v.BrickColor = BrickColor.new("Really black") | |
1039 | v.RotVelocity = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)) * 3 | |
1040 | v:BreakJoints() | |
1041 | f = Instance.new("BodyVelocity") | |
1042 | f.P = 3000 | |
1043 | f.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1044 | f.velocity = Vector3.new(math.random(-30, 30) / 10, math.random(-30, 30) / 10, math.random(-30, 30) / 10) | |
1045 | f.Parent = v | |
1046 | v.CanCollide = false | |
1047 | coroutine.resume(coroutine.create(function(par) | |
1048 | ||
1049 | for i = 1, 30 do | |
1050 | par.Transparency = i / 30 | |
1051 | wait() | |
1052 | end | |
1053 | par.Parent = nil | |
1054 | end | |
1055 | ), v) | |
1056 | else | |
1057 | if v.className == "Hat" then | |
1058 | v.Handle.BrickColor = BrickColor.new("Really black") | |
1059 | v.Handle.RotVelocity = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)) * 3 | |
1060 | v.Handle:BreakJoints() | |
1061 | f = Instance.new("BodyVelocity") | |
1062 | f.P = 3000 | |
1063 | f.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1064 | f.velocity = Vector3.new(math.random(-30, 30) / 10, math.random(-30, 30) / 10, math.random(-30, 30) / 10) | |
1065 | f.Parent = v.Handle | |
1066 | v.Handle.CanCollide = false | |
1067 | coroutine.resume(coroutine.create(function(par) | |
1068 | ||
1069 | for i = 1, 30 do | |
1070 | par.Transparency = i / 30 | |
1071 | wait() | |
1072 | end | |
1073 | par.Parent = nil | |
1074 | end | |
1075 | ), v.Handle) | |
1076 | if h == nil then | |
1077 | wait() | |
1078 | end | |
1079 | end | |
1080 | end | |
1081 | end | |
1082 | end | |
1083 | end | |
1084 | end | |
1085 | ) | |
1086 | Debounces.Reaped = false | |
1087 | end | |
1088 | ||
1089 | mouse.KeyDown:connect(function(key) | |
1090 | ||
1091 | if key == "e" and Debounces.CanAttack == true then | |
1092 | Debounces.CanAttack = false | |
1093 | Debounces.NoIdl = true | |
1094 | Debounces.on = true | |
1095 | Debounces.Reaping = true | |
1096 | for i = 1, 35 do | |
1097 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.4) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(70)), .4) | |
1098 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-30)), 0.4) | |
1099 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(70), 0), 0.4) | |
1100 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.4) | |
1101 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-10)), 0.4) | |
1102 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(7), math.rad(-20), math.rad(10)), 0.4) | |
1103 | if Debounces.on == false then | |
1104 | break | |
1105 | end | |
1106 | lightning.Enabled = true | |
1107 | eeeffecto.Enabled = true | |
1108 | fat.Event:wait() | |
1109 | end | |
1110 | do | |
1111 | wait(1) | |
1112 | Reap() | |
1113 | for i = 1, 10 do | |
1114 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, -0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(70)), 0.7) | |
1115 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.7) | |
1116 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(-70), 0), 0.7) | |
1117 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.7) | |
1118 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-20), math.rad(-10)), 0.7) | |
1119 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(10)), 0.7) | |
1120 | if Debounces.on == false then | |
1121 | break | |
1122 | end | |
1123 | lightning.Enabled = false | |
1124 | eeeffecto.Enabled = false | |
1125 | fat.Event:wait() | |
1126 | end | |
1127 | do | |
1128 | if Debounces.CanAttack == false then | |
1129 | Debounces.CanAttack = true | |
1130 | Debounces.NoIdl = false | |
1131 | Debounces.on = false | |
1132 | Debounces.Reaping = false | |
1133 | end | |
1134 | end | |
1135 | end | |
1136 | end | |
1137 | end | |
1138 | ) | |
1139 | ||
1140 | function ExplosiveLightBall() | |
1141 | if basiccooldown >= 5 then | |
1142 | local spart = Instance.new("Part",workspace) | |
1143 | local msh = Instance.new("SpecialMesh",spart) | |
1144 | msh.MeshType = "Sphere" | |
1145 | local sa = Instance.new("Sound",hed) | |
1146 | sa.SoundId = "rbxassetid://203691467" | |
1147 | sa.Pitch = 0.775 | |
1148 | sa.Volume = 1 | |
1149 | sa.Looped = false | |
1150 | local sa1 = Instance.new("Sound",hed) | |
1151 | sa1.SoundId = "rbxassetid://200633529" | |
1152 | sa1.Pitch = 0.75 | |
1153 | sa1.Volume = 1 | |
1154 | sa1.Looped = false | |
1155 | sa1:Play() | |
1156 | local sans1 = Instance.new("Sound",hed) | |
1157 | sans1.SoundId = "rbxassetid://200633529" | |
1158 | sans1.Pitch = 0.725 | |
1159 | sans1.Volume = 1 | |
1160 | sans1.Looped = false | |
1161 | sans1:Play() | |
1162 | spart.Size = vt(1,1,1) | |
1163 | spart.BrickColor = BrickColor.new("Bright violet") | |
1164 | spart.Material = "Neon" | |
1165 | spart.Transparency = 1 | |
1166 | spart.Anchored = true | |
1167 | spart.CanCollide = false | |
1168 | spart.Position = hed.Position + vt(0,20,0) | |
1169 | local value = 2.5 | |
1170 | for i = 0, 24 do | |
1171 | spart.Transparency = spart.Transparency - 0.05 | |
1172 | value = value - 0.05 | |
1173 | msh.Scale = msh.Scale + vt(value,value,value) | |
1174 | wait() | |
1175 | end | |
1176 | sa:Play() | |
1177 | spart.Anchored = false | |
1178 | local bv = Instance.new("BodyVelocity") | |
1179 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1180 | bv.velocity = mouse.Hit.lookVector *125 | |
1181 | bv.Parent = spart | |
1182 | wait(0.1) | |
1183 | pewdiepie=spart.Touched:connect(function(hit) Explode(20,spart) end) | |
1184 | end | |
1185 | end | |
1186 | ||
1187 | function ExplosiveLightBalls() | |
1188 | if basiccooldown >= 5 then | |
1189 | local spart = Instance.new("Part",workspace) | |
1190 | local msh = Instance.new("SpecialMesh",spart) | |
1191 | msh.MeshType = "Sphere" | |
1192 | spart.Size = vt(1,1,1) | |
1193 | spart.BrickColor = BrickColor.new("Bright violet") | |
1194 | spart.Material = "Neon" | |
1195 | spart.Transparency = 0.65 | |
1196 | spart.Anchored = true | |
1197 | spart.CanCollide = false | |
1198 | spart.CFrame = mouse.Hit | |
1199 | spart.Rotation = vt(0,0,0) | |
1200 | msh.Scale = vt(15,15,15)*2 | |
1201 | wait(0.35) | |
1202 | ExplodeFast(15,spart) | |
1203 | end | |
1204 | end | |
1205 | ||
1206 | mouse.KeyDown:connect(function(k) | |
1207 | ||
1208 | k = k:lower() | |
1209 | if k == "z" then | |
1210 | ExplosiveLightBall() | |
1211 | end | |
1212 | if k == "x" then | |
1213 | LocateSpot() | |
1214 | end | |
1215 | if k == "c" then | |
1216 | ExplosiveLightBalls() | |
1217 | end | |
1218 | if k == "v" then | |
1219 | TeleportSpot() | |
1220 | end | |
1221 | if k == "b" then | |
1222 | Blaze() | |
1223 | end | |
1224 | end) | |
1225 | ||
1226 | ---------------------------------------------------- | |
1227 | fat = Instance.new("BindableEvent",script) | |
1228 | fat.Name = "Heartbeat" | |
1229 | ||
1230 | script:WaitForChild("Heartbeat") | |
1231 | ||
1232 | frame = 1/30 | |
1233 | tf = 0 | |
1234 | allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater. | |
1235 | tossremainder = false --if set to true t will be set to 0 after Fire()-ing. | |
1236 | lastframe = tick() | |
1237 | script.Heartbeat:Fire() --ayy lmao | |
1238 | ||
1239 | game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp | |
1240 | tf = tf + s | |
1241 | if tf >= frame then | |
1242 | if allowframeloss then | |
1243 | script.Heartbeat:Fire() | |
1244 | lastframe=tick() | |
1245 | else | |
1246 | --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame)))) | |
1247 | for i=1, math.floor(tf/frame) do | |
1248 | script.Heartbeat:Fire() | |
1249 | end | |
1250 | lastframe=tick() | |
1251 | end | |
1252 | if tossremainder then | |
1253 | tf = 0 | |
1254 | else | |
1255 | tf = tf - frame * math.floor(tf/frame) | |
1256 | end | |
1257 | end | |
1258 | end) | |
1259 | ---------------------------------------------------- | |
1260 | Debounces = { | |
1261 | CanAttack = true; | |
1262 | CanJoke = true; | |
1263 | NoIdl = false; | |
1264 | Slashing = false; | |
1265 | Slashed = false; | |
1266 | ks = false; | |
1267 | RPunch = false; | |
1268 | RPunched = false; | |
1269 | LPunch = false; | |
1270 | LPunched = false; | |
1271 | } | |
1272 | local Touche = {char.Name, } | |
1273 | function HasntTouched(plrname) | |
1274 | local ret = true | |
1275 | for _, v in pairs(Touche) do | |
1276 | if v == plrname then | |
1277 | ret = false | |
1278 | end | |
1279 | end | |
1280 | return ret | |
1281 | end | |
1282 | ---------------------------------------------------- | |
1283 | function weld5(part0, part1, c0, c1) | |
1284 | weeld=Instance.new("Weld", part0) | |
1285 | weeld.Part0=part0 | |
1286 | weeld.Part1=part1 | |
1287 | weeld.C0=c0 | |
1288 | weeld.C1=c1 | |
1289 | return weeld | |
1290 | end | |
1291 | ---------------------------------------------------- | |
1292 | function lerp(a, b, t) -- Linear interpolation | |
1293 | return a + (b - a)*t | |
1294 | end | |
1295 | ||
1296 | function slerp(a, b, t) --Spherical interpolation | |
1297 | dot = a:Dot(b) | |
1298 | if dot > 0.99999 or dot < -0.99999 then | |
1299 | return t <= 0.5 and a or b | |
1300 | else | |
1301 | r = math.acos(dot) | |
1302 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
1303 | end | |
1304 | end | |
1305 | ||
1306 | function matrixInterpolate(a, b, t) | |
1307 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
1308 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
1309 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
1310 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
1311 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
1312 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
1313 | local t = v1:Dot(v2) | |
1314 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
1315 | return CFrame.new() | |
1316 | end | |
1317 | return CFrame.new( | |
1318 | v0.x, v0.y, v0.z, | |
1319 | v1.x, v1.y, v1.z, | |
1320 | v2.x, v2.y, v2.z, | |
1321 | v3.x, v3.y, v3.z) | |
1322 | end | |
1323 | ---------------------------------------------------- | |
1324 | function genWeld(a,b) | |
1325 | local w = Instance.new("Weld",a) | |
1326 | w.Part0 = a | |
1327 | w.Part1 = b | |
1328 | return w | |
1329 | end | |
1330 | function weld(a, b) | |
1331 | local weld = Instance.new("Weld") | |
1332 | weld.Name = "W" | |
1333 | weld.Part0 = a | |
1334 | weld.Part1 = b | |
1335 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
1336 | weld.Parent = a | |
1337 | return weld; | |
1338 | end | |
1339 | ---------------------------------------------------- | |
1340 | function Lerp(c1,c2,al) | |
1341 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
1342 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
1343 | for i,v in pairs(com1) do | |
1344 | com1[i] = v+(com2[i]-v)*al | |
1345 | end | |
1346 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
1347 | end | |
1348 | ---------------------------------------------------- | |
1349 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
1350 | local wld = Instance.new("Weld", wp1) | |
1351 | wld.Part0 = wp0 | |
1352 | wld.Part1 = wp1 | |
1353 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
1354 | end | |
1355 | ---------------------------------------------------- | |
1356 | newWeld(torso, larm, -1.5, 0.5, 0) | |
1357 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
1358 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
1359 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
1360 | newWeld(torso, hed, 0, 1.5, 0) | |
1361 | newWeld(torso, lleg, -0.5, -1, 0) | |
1362 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
1363 | newWeld(torso, rleg, 0.5, -1, 0) | |
1364 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
1365 | newWeld(root, torso, 0, -1, 0) | |
1366 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
1367 | ---------------------------------------------------- | |
1368 | hats={} | |
1369 | Part = function(x,y,z,color,tr,cc,an,parent) | |
1370 | local p = Instance.new('Part',parent or Weapon) | |
1371 | p.formFactor = 'Custom' | |
1372 | p.Size = Vector3.new(x,y,z) | |
1373 | p.BrickColor = BrickColor.new(color) | |
1374 | p.CanCollide = cc | |
1375 | p.Transparency = tr | |
1376 | p.Anchored = an | |
1377 | p.TopSurface,p.BottomSurface = 0,0 | |
1378 | p:BreakJoints() | |
1379 | return p | |
1380 | end | |
1381 | Weld = function(p0,p1,x,y,z,rx,ry,rz,par) | |
1382 | local w = Instance.new('Motor',par or p0) | |
1383 | w.Part0 = p0 | |
1384 | w.Part1 = p1 | |
1385 | w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz) | |
1386 | return w | |
1387 | end | |
1388 | Mesh = function(par,num,x,y,z) | |
1389 | local msh = nil | |
1390 | if num == 1 then | |
1391 | msh = Instance.new("CylinderMesh",par) | |
1392 | elseif num == 2 then | |
1393 | msh = Instance.new("SpecialMesh",par) | |
1394 | msh.MeshType = 'Wedge' | |
1395 | elseif num == 3 then | |
1396 | msh = Instance.new("BlockMesh",par) | |
1397 | elseif type(num) == 'string' then | |
1398 | msh = Instance.new("SpecialMesh",par) | |
1399 | msh.MeshId = num | |
1400 | end | |
1401 | msh.Scale = Vector3.new(x,y,z) | |
1402 | return msh | |
1403 | end | |
1404 | ||
1405 | function addh(id,txt,s1,s2,s3,x,y,z) | |
1406 | local hat=Part(1,1,1,'',0,false,false,char) | |
1407 | table.insert(hats,hat) | |
1408 | Weld(char.Head,hat,x,y,z,0,0,0,p) | |
1409 | m=Mesh(hat,'http://www.roblox.com/asset/?id='..id,s1,s2,s3) | |
1410 | m.TextureId='http://www.roblox.com/asset/?id='..txt | |
1411 | return m | |
1412 | end | |
1413 | ||
1414 | addh('11380070','11380053',1,1,1,0,-.75,0) | |
1415 | ---------------------------------------------------- | |
1416 | New = function(Object, Parent, Name, Data) | |
1417 | local Object = Instance.new(Object) | |
1418 | for Index, Value in pairs(Data or {}) do | |
1419 | Object[Index] = Value | |
1420 | end | |
1421 | Object.Parent = Parent | |
1422 | Object.Name = Name | |
1423 | return Object | |
1424 | end | |
1425 | ---------------------------------------------------- | |
1426 | local animpose = "Idle1" | |
1427 | local lastanimpose = "Idle1" | |
1428 | local grab = false | |
1429 | local Smooth = 1 | |
1430 | local sine = 0 | |
1431 | local change = 1 | |
1432 | local val = 0 | |
1433 | local ffing = false | |
1434 | ---------------------------------------------------- | |
1435 | jump = false | |
1436 | rs:connect(function() | |
1437 | if char.Humanoid.Jump == true then | |
1438 | jump = true | |
1439 | else | |
1440 | jump = false | |
1441 | end | |
1442 | char.Humanoid.FreeFalling:connect(function(f) | |
1443 | if f then | |
1444 | ffing = true | |
1445 | else | |
1446 | ffing = false | |
1447 | end | |
1448 | end) | |
1449 | sine = sine + change | |
1450 | if jump == true then | |
1451 | animpose = "Jumping" | |
1452 | elseif ffing == true then | |
1453 | animpose = "Freefalling" | |
1454 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
1455 | animpose = "Idle" | |
1456 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
1457 | animpose = "Walking" | |
1458 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
1459 | animpose = "Running" | |
1460 | end | |
1461 | RightLeg = CFrame.new(0.5,-1,0) | |
1462 | LeftLeg = CFrame.new(-0.5,-1,0) | |
1463 | ||
1464 | lefth = (torso.CFrame*LeftLeg) | |
1465 | righth = (torso.CFrame*RightLeg) | |
1466 | ||
1467 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
1468 | ||
1469 | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) | |
1470 | ||
1471 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
1472 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
1473 | if animpose ~= lastanimpose then | |
1474 | sine = 0 | |
1475 | if Debounces.NoIdl == false then | |
1476 | if stanceToggle == "Idle1" then | |
1477 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3) | |
1478 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3) | |
1479 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2) | |
1480 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
1481 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
1482 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
1483 | end | |
1484 | fat.Event:wait() | |
1485 | end | |
1486 | else | |
1487 | end | |
1488 | lastanimpose = animpose | |
1489 | if Debounces.NoIdl == false then | |
1490 | if animpose == "Idle" then | |
1491 | change = 0.5 | |
1492 | if stanceToggle == "Idle1" then | |
1493 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.57 - 0.1 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-3 + 6 * math.sin(sine / 10)), math.rad(-15 - 10 * math.cos(sine / 10)), math.rad(13 + 6 * math.cos(sine / 10))), 0.4) | |
1494 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4) | |
1495 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.57 - 0.1 * math.sin(sine / 10), 0.1 - 0.1 * math.sin(sine / 10)) * CFrame.Angles(math.rad(-4 - 6 * math.sin(sine / 10)), math.rad(15 + 10 * math.cos(sine / 10)), math.rad(-13 - 6 * math.cos(sine / 10))), 0.4) | |
1496 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
1497 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0.1 - 0.05 * math.cos(sine / 10)) * CFrame.Angles(math.rad(14 - 5 * math.cos(sine / 10)), math.rad(20), 0), 0.4) | |
1498 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.16 * math.cos(sine / 10), 0) * CFrame.Angles(0, math.rad(20), math.rad(0)), 0.05) | |
1499 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10 + 3 * math.cos(sine / 10)), math.rad(0), math.rad(0)), 0.05) | |
1500 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-12 + 5 * math.sin(sine / 10)), math.rad(20 + 6 * math.sin(sine / 10)), math.rad(-12 - 2 * math.sin(sine / 10))), 0.4) | |
1501 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.6 - 0.1 * math.sin(sine / 10), -0.5) * CFrame.Angles(math.rad(-9 + 5 * math.sin(sine / 10)), math.rad(-9 - 6 * math.sin(sine / 10)), math.rad(4 + 3 * math.sin(sine / 10))), 0.4) | |
1502 | end | |
1503 | elseif animpose == "Walking" then | |
1504 | change = 1 | |
1505 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55, 0) * CFrame.Angles(math.rad(-20) + root.RotVelocity.Y / 20, math.rad(16) - root.RotVelocity.Y / 20, math.rad(-10 - 2 * math.cos(sine / 14)) + root.RotVelocity.Y / 20), 0.2) | |
1506 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(-14), 0, 0), 0.4) | |
1507 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20) - root.RotVelocity.Y / 10, 0), 0.2) | |
1508 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2 - 0.17 * math.cos(sine / 14), 0) * CFrame.Angles(math.rad(-16), math.rad(0), root.RotVelocity.Y / 10), 0.05) | |
1509 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-20) + root.RotVelocity.Y / 10, 0), 0.05) | |
1510 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1.05 - 0.05 * math.sin(sine / 10), 0) * CFrame.Angles(math.rad(-13 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(-8) - root.RotVelocity.Y / 20), 0.4) | |
1511 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -0.5 - 0.1 * math.sin(sine / 14), -0.7) * CFrame.Angles(math.rad(-16 + 3 * math.sin(sine / 10)), math.rad(-20) + root.RotVelocity.Y / 15, math.rad(8) - root.RotVelocity.Y / 20), 0.4) | |
1512 | elseif animpose == "Running" then | |
1513 | change = 1.5 | |
1514 | 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) | |
1515 | 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) | |
1516 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
1517 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/10), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.4) | |
1518 | 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) | |
1519 | 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) | |
1520 | end | |
1521 | end | |
1522 | end) | |
1523 | ||
1524 | paly = game.Players.LocalPlayer | |
1525 | p = game.Players.LocalPlayer | |
1526 | char = paly.Character | |
1527 | vt = Vector3.new | |
1528 | rleg = char["Right Leg"] | |
1529 | lleg = char["Left Leg"] | |
1530 | local maincolor = BrickColor.new("Plum") | |
1531 | ||
1532 | local orb = Instance.new("Part") | |
1533 | orb.Parent = char | |
1534 | orb.Size = Vector3.new(0.2, 0.2, 0.2) | |
1535 | orb.Archivable = true | |
1536 | orb.Transparency = 1 | |
1537 | orb.BrickColor = maincolor | |
1538 | orb.Material = "Neon" | |
1539 | orb.CanCollide = false | |
1540 | local weld1 = Instance.new("Weld") | |
1541 | weld1.Parent = rleg | |
1542 | weld1.Part0 = rleg | |
1543 | weld1.Part1 = orb | |
1544 | weld1.C1 = CFrame.new(0, 1.125, 0) | |
1545 | local pt1 = NumberSequenceKeypoint.new(0,0.85,0) | |
1546 | local pt2 = NumberSequenceKeypoint.new(1,0,0) | |
1547 | local effecto = Instance.new("ParticleEmitter",orb) | |
1548 | effecto.ZOffset = 1 | |
1549 | effecto.LightEmission = 1 | |
1550 | effecto.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
1551 | effecto.Color = ColorSequence.new(maincolor.Color) | |
1552 | effecto.Rate = 10000 | |
1553 | effecto.Lifetime = NumberRange.new(1) | |
1554 | effecto.Size = NumberSequence.new({pt1,pt2}) | |
1555 | effecto.Speed = NumberRange.new(0,0) | |
1556 | effecto.RotSpeed = NumberRange.new(100,100) | |
1557 | ||
1558 | local orbz = Instance.new("Part") | |
1559 | orbz.Parent = char | |
1560 | orbz.Size = Vector3.new(0.2, 0.2, 0.2) | |
1561 | orbz.Archivable = true | |
1562 | orbz.Transparency = 1 | |
1563 | orbz.BrickColor = maincolor | |
1564 | orbz.Material = "Neon" | |
1565 | orbz.CanCollide = false | |
1566 | local weldz1 = Instance.new("Weld") | |
1567 | weldz1.Parent = lleg | |
1568 | weldz1.Part0 = lleg | |
1569 | weldz1.Part1 = orbz | |
1570 | weldz1.C1 = CFrame.new(0, 1.125, 0) | |
1571 | local effecton = Instance.new("ParticleEmitter",orbz) | |
1572 | effecton.ZOffset = 1 | |
1573 | effecton.LightEmission = 1 | |
1574 | effecton.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
1575 | effecton.Color = ColorSequence.new(maincolor.Color) | |
1576 | effecton.Rate = 10000 | |
1577 | effecton.Lifetime = NumberRange.new(1) | |
1578 | effecton.Size = NumberSequence.new({pt1,pt2}) | |
1579 | effecton.Speed = NumberRange.new(0,0) | |
1580 | effecton.RotSpeed = NumberRange.new(100,100) | |
1581 | ||
1582 | local runServ = game:GetService("RunService").RenderStepped | |
1583 | ||
1584 | runServ:connect(function() | |
1585 | text.Text = "Rex, Ruler of the Universe: " ..math.floor(hum.Health) | |
1586 | end) | |
1587 | ||
1588 | Charging = false | |
1589 | chargewait = false | |
1590 | mouse.KeyDown:connect(function(key) | |
1591 | if key == "h" then | |
1592 | if Charging == false and chargewait == false then | |
1593 | Charging = true | |
1594 | chargewait = true | |
1595 | if Debounces.CanAttack == true then | |
1596 | Debounces.CanAttack = false | |
1597 | Debounces.NoIdl = true | |
1598 | Debounces.on = true | |
1599 | ||
1600 | ||
1601 | ||
1602 | ||
1603 | for i = 1,20 do | |
1604 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4) | |
1605 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4) | |
1606 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
1607 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4) | |
1608 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
1609 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
1610 | ||
1611 | if Debounces.on == false then break end | |
1612 | rs:wait() | |
1613 | end | |
1614 | pt=Instance.new('Part',torso) | |
1615 | pt.Anchored=true | |
1616 | pt.CanCollide=false | |
1617 | pt.Locked = true | |
1618 | pt.Material = "Neon" | |
1619 | pt.FormFactor='Custom' | |
1620 | pt.Size=Vector3.new(1,1,1) | |
1621 | pt.BrickColor = BrickColor.new("Really black") | |
1622 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
1623 | pt.Transparency=.6 | |
1624 | ||
1625 | ||
1626 | msh=Instance.new('SpecialMesh',pt) | |
1627 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1628 | msh.Scale=Vector3.new(8,4,8) | |
1629 | pt2=pt:clone() | |
1630 | pt2.Parent = torso | |
1631 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
1632 | ||
1633 | ||
1634 | msh2=msh:clone() | |
1635 | msh2.Parent=pt2 | |
1636 | msh2.Scale=Vector3.new(10,5,10) | |
1637 | ||
1638 | 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} | |
1639 | ||
1640 | bl = Instance.new("Part", char) | |
1641 | bl.Locked = true | |
1642 | bl.Name = "Shell" | |
1643 | ||
1644 | ||
1645 | bl.Anchored = true | |
1646 | bl.Material = "Neon" | |
1647 | bl.CanCollide = false | |
1648 | bl.BrickColor = BrickColor.new("Dark indigo") | |
1649 | bl.Transparency = 0 | |
1650 | bl.Reflectance = 0 | |
1651 | bl.BottomSurface = 0 | |
1652 | bl.TopSurface = 0 | |
1653 | bl.Shape = 0 | |
1654 | blm = Instance.new("SpecialMesh",bl) | |
1655 | blm.MeshType = "Sphere" | |
1656 | blm.Scale = Vector3.new(1,1,1) | |
1657 | ||
1658 | ||
1659 | ||
1660 | ||
1661 | coroutine.resume(coroutine.create(function() | |
1662 | for i=1, math.huge, 4 do | |
1663 | if Charging == true then | |
1664 | rs:wait() | |
1665 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
1666 | blm.Scale = blm.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1667 | bl.Transparency = bl.Transparency + 0.05 | |
1668 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
1669 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
1670 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
1671 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
1672 | elseif Charging == false then break | |
1673 | end | |
1674 | end | |
1675 | end)) | |
1676 | ||
1677 | ||
1678 | repeat | |
1679 | local p = Instance.new('Part',torso) | |
1680 | p.formFactor = 'Custom' | |
1681 | p.Size = Vector3.new(1,1,1) | |
1682 | ||
1683 | p.CanCollide = false | |
1684 | p.Transparency = 0 | |
1685 | p.Anchored = true | |
1686 | p.Locked=true | |
1687 | p.Material = "Neon" | |
1688 | p.Transparency = 1 | |
1689 | p.BrickColor = BrickColor.new("Dark indigo") | |
1690 | s = math.random(1,40)/10 | |
1691 | local m = Instance.new("BlockMesh",p) | |
1692 | m.Scale = Vector3.new(s,s,s) | |
1693 | 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()) | |
1694 | --[[coroutine.wrap(function() | |
1695 | wait(2) | |
1696 | while Charging == true do | |
1697 | wait(2) | |
1698 | GroundWave1() | |
1699 | wait(2) | |
1700 | end | |
1701 | end)()]]-- | |
1702 | Spawn(function() | |
1703 | while rs:wait() do | |
1704 | if Charging == true then | |
1705 | rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50))) | |
1706 | larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30))) | |
1707 | hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0)) | |
1708 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
1709 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10))) | |
1710 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20))) | |
1711 | elseif Charging == false then break | |
1712 | end | |
1713 | end | |
1714 | end) | |
1715 | Spawn(function() | |
1716 | while rs:wait() do | |
1717 | if p.Transparency >= 1 then p:Destroy() break end | |
1718 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
1719 | p.Transparency = p.Transparency+0.01 | |
1720 | end | |
1721 | end) | |
1722 | ||
1723 | ||
1724 | ||
1725 | ||
1726 | local Transforming = true | |
1727 | hum.WalkSpeed = 0 | |
1728 | local fx = Instance.new("Part",torso) | |
1729 | wit = torso.BrickColor.Color | |
1730 | wit2 = Color3.new(0,0,0) | |
1731 | local glowz = Instance.new("ParticleEmitter",fx) | |
1732 | glowz.LightEmission = 1 | |
1733 | glowz.Texture = "rbxassetid://284205403" | |
1734 | glowz.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(0,0,0)) | |
1735 | glowz.Size = NumberSequence.new(5) | |
1736 | glowz.Speed = NumberRange.new(25,50) | |
1737 | glowz.LockedToPart = false | |
1738 | glowz.Transparency = NumberSequence.new(0.75) | |
1739 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
1740 | glowz.Lifetime = NumberRange.new(1) | |
1741 | glowz.Rate = 50000 | |
1742 | glowz.VelocitySpread = 9001 | |
1743 | local glowz2 = Instance.new("ParticleEmitter",fx) | |
1744 | glowz2.LightEmission = 0.5 | |
1745 | glowz.Texture = "rbxassetid://284205403" | |
1746 | glowz2.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(0,0,0)) | |
1747 | glowz2.Size = NumberSequence.new(5) | |
1748 | glowz2.Speed = NumberRange.new(25,50) | |
1749 | glowz2.LockedToPart = false | |
1750 | glowz2.Transparency = NumberSequence.new(0.75) | |
1751 | glowz2.RotSpeed = NumberRange.new(-2000,2000) | |
1752 | glowz2.Lifetime = NumberRange.new(1) | |
1753 | glowz2.Rate = 50000 | |
1754 | glowz2.VelocitySpread = 9001 | |
1755 | fx.Anchored = true | |
1756 | fx.Material = "Neon" | |
1757 | fx.CanCollide = false | |
1758 | fx.Locked = true | |
1759 | fx.Transparency = 1 | |
1760 | fx.Material = "Neon" | |
1761 | fx.Size = Vector3.new(1,1,1) | |
1762 | fx.TopSurface = "SmoothNoOutlines" | |
1763 | fx.BottomSurface = "SmoothNoOutlines" | |
1764 | fx.BrickColor = BrickColor.new("Really black") | |
1765 | fxm = Instance.new("SpecialMesh",fx) | |
1766 | fxm.MeshType = "Sphere" | |
1767 | local sa2 = Instance.new("Sound",torso) | |
1768 | sa2.SoundId = "rbxassetid://93724183" | |
1769 | sa2.Pitch = 0.5 | |
1770 | sa2.Volume = 5 | |
1771 | sa2.Looped = false | |
1772 | sa2:Play() | |
1773 | local value = 1 | |
1774 | fxm.Scale = Vector3.new(1,1,1) | |
1775 | for i = 1, 20 do rs:wait() | |
1776 | value = value - 0.05 | |
1777 | fx.Transparency = fx.Transparency - (1/20) | |
1778 | fx.CFrame = torso.CFrame | |
1779 | fxm.Scale = fxm.Scale + Vector3.new(value,value,value) | |
1780 | rs:wait() | |
1781 | end | |
1782 | ---------------------------------------------------- | |
1783 | GroundWave1 = function() | |
1784 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1785 | local Colors = {"White", "Really black"} | |
1786 | local wave = Instance.new("Part", torso) | |
1787 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1788 | wave.Anchored = true | |
1789 | wave.CanCollide = false | |
1790 | wave.Locked = true | |
1791 | wave.Size = Vector3.new(1, 1, 1) | |
1792 | wave.TopSurface = "Smooth" | |
1793 | wave.BottomSurface = "Smooth" | |
1794 | wave.Transparency = 0.35 | |
1795 | wave.CFrame = HandCF | |
1796 | wm = Instance.new("SpecialMesh", wave) | |
1797 | wm.MeshId = "rbxassetid://3270017" | |
1798 | coroutine.wrap(function() | |
1799 | for i = 1, 30, 1 do | |
1800 | wm.Scale = Vector3.new(50, 50, 1 + i*50) | |
1801 | wave.Size = wm.Scale | |
1802 | wave.CFrame = HandCF | |
1803 | wave.Transparency = i/30 | |
1804 | wait() | |
1805 | end | |
1806 | wait() | |
1807 | wave:Destroy() | |
1808 | end)() | |
1809 | end | |
1810 | ---------------------------------------------------- | |
1811 | GroundWave = function() | |
1812 | if Transforming == true then | |
1813 | local value = 5 | |
1814 | local value2 = 10 | |
1815 | local value3 = 20 | |
1816 | local sa2 = Instance.new("Sound",torso) | |
1817 | sa2.SoundId = "rbxassetid://413682983" | |
1818 | sa2.Pitch = 1 | |
1819 | sa2.Volume = 10 | |
1820 | sa2.Looped = false | |
1821 | sa2:Play() | |
1822 | local wave = Instance.new("Part", torso) | |
1823 | local glowz = Instance.new("ParticleEmitter",wave) | |
1824 | glowz.LightEmission = 1 | |
1825 | glowz.Texture = "rbxassetid://284205403" | |
1826 | glowz.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(0,0,0)) | |
1827 | glowz.Size = NumberSequence.new(30) | |
1828 | glowz.Speed = NumberRange.new(25,100) | |
1829 | glowz.LockedToPart = false | |
1830 | glowz.Transparency = NumberSequence.new(0.75) | |
1831 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
1832 | glowz.Lifetime = NumberRange.new(1) | |
1833 | glowz.Rate = 50000 | |
1834 | glowz.VelocitySpread = 9001 | |
1835 | local glowz2 = Instance.new("ParticleEmitter",wave) | |
1836 | glowz2.LightEmission = 1 | |
1837 | glowz.Texture = "rbxassetid://284205403" | |
1838 | glowz2.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(0,0,0)) | |
1839 | glowz2.Size = NumberSequence.new(30) | |
1840 | glowz2.Speed = NumberRange.new(25,100) | |
1841 | glowz2.LockedToPart = false | |
1842 | glowz2.Transparency = NumberSequence.new(0.75) | |
1843 | glowz2.RotSpeed = NumberRange.new(-2000,2000) | |
1844 | glowz2.Lifetime = NumberRange.new(1) | |
1845 | glowz2.Rate = 50000 | |
1846 | glowz2.VelocitySpread = 9001 | |
1847 | wave.BrickColor = BrickColor.new("Dark indigo") | |
1848 | wave.Anchored = true | |
1849 | wave.CanCollide = false | |
1850 | wave.Locked = true | |
1851 | wave.Size = Vector3.new(1, 1, 1) | |
1852 | wave.TopSurface = "Smooth" | |
1853 | wave.BottomSurface = "Smooth" | |
1854 | wave.Transparency = 0.35 | |
1855 | wave.CFrame = fx.CFrame | |
1856 | wave.Material = "Neon" | |
1857 | wm = Instance.new("SpecialMesh", wave) | |
1858 | wm.MeshType = "Sphere" | |
1859 | wm.Scale = Vector3.new(1,1,1) | |
1860 | local wave2 = Instance.new("Part", torso) | |
1861 | wave2.BrickColor = BrickColor.new("Dark indigo") | |
1862 | wave2.Anchored = true | |
1863 | wave2.CanCollide = false | |
1864 | wave2.Locked = true | |
1865 | wave2.Size = Vector3.new(1, 1, 1) | |
1866 | wave2.TopSurface = "Smooth" | |
1867 | wave2.BottomSurface = "Smooth" | |
1868 | wave2.Transparency = 0.35 | |
1869 | wave2.CFrame = fx.CFrame | |
1870 | wave2.Material = "Neon" | |
1871 | wm2 = Instance.new("SpecialMesh", wave2) | |
1872 | wm2.MeshType = "FileMesh" | |
1873 | wm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1874 | wm2.Scale = Vector3.new(1,1,1) | |
1875 | local wave3 = Instance.new("Part", torso) | |
1876 | wave3.BrickColor = BrickColor.new("Really black") | |
1877 | wave3.Anchored = true | |
1878 | wave3.CanCollide = false | |
1879 | wave3.Locked = true | |
1880 | wave3.Size = Vector3.new(1, 1, 1) | |
1881 | wave3.TopSurface = "Smooth" | |
1882 | wave3.BottomSurface = "Smooth" | |
1883 | wave3.Transparency = 0.35 | |
1884 | wave3.CFrame = fx.CFrame | |
1885 | wave3.Material = "Neon" | |
1886 | wm3 = Instance.new("SpecialMesh", wave3) | |
1887 | wm3.MeshType = "FileMesh" | |
1888 | wm3.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1889 | wm3.Scale = Vector3.new(1,1,1) | |
1890 | coroutine.wrap(function() | |
1891 | for i = 1, 18, 1 do | |
1892 | value = value - 0.5 | |
1893 | value2 = value2 - 0.75*1.5 | |
1894 | value3 = value3 - 0.475*1.5 | |
1895 | wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5) | |
1896 | wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5) | |
1897 | wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25) | |
1898 | --wave.Size = wm.Scale | |
1899 | wave.CFrame = fx.CFrame | |
1900 | wave.Transparency = i/14 | |
1901 | --wave2.Size = wm2.Scale | |
1902 | wave2.CFrame = fx.CFrame | |
1903 | wave2.Rotation = Vector3.new(90, 0, 0) | |
1904 | wave2.Transparency = i/14 | |
1905 | --wave3.Size = wm3.Scale | |
1906 | wave3.CFrame = fx.CFrame | |
1907 | wave3.Rotation = Vector3.new(90, 0, 0) | |
1908 | wave3.Transparency = i/14 | |
1909 | wait() | |
1910 | glowz.Rate = 0 | |
1911 | glowz2.Rate = 0 | |
1912 | end | |
1913 | wait() | |
1914 | wave:Destroy() | |
1915 | wave2:Destroy() | |
1916 | wave3:Destroy() | |
1917 | end)() | |
1918 | elseif Transforming == false then | |
1919 | wait() | |
1920 | end | |
1921 | end | |
1922 | ||
1923 | for i = 1, 100 do rs:wait() | |
1924 | fx.CFrame = torso.CFrame | |
1925 | end | |
1926 | ||
1927 | Spawn(function() | |
1928 | while wait(1) do | |
1929 | GroundWave() | |
1930 | end | |
1931 | end) | |
1932 | ||
1933 | wait(4) | |
1934 | ||
1935 | Transforming = false | |
1936 | ||
1937 | local value2 = 1 | |
1938 | for i = 1, 20 do rs:wait() | |
1939 | value2 = value2 - 0.05 | |
1940 | glowz.Rate = 0 | |
1941 | glowz2.Rate = 0 | |
1942 | fx.Transparency = fx.Transparency + (1/20) | |
1943 | fx.CFrame = torso.CFrame | |
1944 | fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2) | |
1945 | rs:wait() | |
1946 | end | |
1947 | glowz:Destroy() | |
1948 | glowz2:Destroy() | |
1949 | ||
1950 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1951 | local valuer = 5 | |
1952 | local valuer2 = 10 | |
1953 | local valuer3 = 15 | |
1954 | local sa2 = Instance.new("Sound",torso) | |
1955 | sa2.SoundId = "rbxassetid://130972023" | |
1956 | sa2.Pitch = 1 | |
1957 | sa2.Volume = 5 | |
1958 | sa2.Looped = false | |
1959 | sa2:Play() | |
1960 | local sar2 = Instance.new("Sound",torso) | |
1961 | sar2.SoundId = "rbxassetid://153274423" | |
1962 | sar2.Pitch = 1 | |
1963 | sar2.Volume = 5 | |
1964 | sar2.Looped = false | |
1965 | sar2:Play() | |
1966 | local wave = Instance.new("Part", torso) | |
1967 | wave.BrickColor = BrickColor.new("Dark indigo") | |
1968 | wave.Anchored = true | |
1969 | wave.CanCollide = false | |
1970 | wave.Locked = true | |
1971 | wave.Size = Vector3.new(1, 1, 1) | |
1972 | wave.TopSurface = "Smooth" | |
1973 | wave.BottomSurface = "Smooth" | |
1974 | wave.Transparency = 0.35 | |
1975 | wave.CFrame = HandCF | |
1976 | wm = Instance.new("SpecialMesh", wave) | |
1977 | wm.MeshId = "rbxassetid://3270017" | |
1978 | local wave2 = Instance.new("Part", torso) | |
1979 | wave2.BrickColor = BrickColor.new("Really black") | |
1980 | wave2.Anchored = true | |
1981 | wave2.CanCollide = false | |
1982 | wave2.Locked = true | |
1983 | wave2.Size = Vector3.new(1, 1, 1) | |
1984 | wave2.TopSurface = "Smooth" | |
1985 | wave2.BottomSurface = "Smooth" | |
1986 | wave2.Transparency = 0.35 | |
1987 | wave2.CFrame = HandCF | |
1988 | wm2 = Instance.new("SpecialMesh", wave2) | |
1989 | wm2.MeshId = "rbxassetid://3270017" | |
1990 | local wave3 = Instance.new("Part", torso) | |
1991 | wave3.BrickColor = BrickColor.new("Dark indigo") | |
1992 | wave3.Anchored = true | |
1993 | wave3.CanCollide = false | |
1994 | wave3.Locked = true | |
1995 | wave3.Size = Vector3.new(1, 1, 1) | |
1996 | wave3.TopSurface = "Smooth" | |
1997 | wave3.BottomSurface = "Smooth" | |
1998 | wave3.Transparency = 0.35 | |
1999 | wave3.CFrame = HandCF | |
2000 | wm3 = Instance.new("SpecialMesh", wave3) | |
2001 | wm3.MeshId = "rbxassetid://3270017" | |
2002 | coroutine.wrap(function() | |
2003 | for i = 1, 14, 1 do | |
2004 | valuer = valuer - 0.35 | |
2005 | valuer2 = valuer - 0.45 | |
2006 | valuer3 = valuer3 - 0.475 | |
2007 | wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200) | |
2008 | wave.Size = wm.Scale | |
2009 | wave.CFrame = HandCF | |
2010 | wave.Transparency = i/14 | |
2011 | wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10) | |
2012 | wave2.Size = wm2.Scale | |
2013 | wave2.CFrame = HandCF | |
2014 | wave2.Transparency = i/14 | |
2015 | wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1) | |
2016 | wave3.Size = wm2.Scale | |
2017 | wave3.CFrame = HandCF | |
2018 | wave3.Transparency = i/14 | |
2019 | wait() | |
2020 | end | |
2021 | wait() | |
2022 | wave:Destroy() | |
2023 | wave2:Destroy() | |
2024 | end)() | |
2025 | hum.WalkSpeed = 17 | |
2026 | ||
2027 | ||
2028 | ||
2029 | until Charging == false | |
2030 | end | |
2031 | end | |
2032 | end | |
2033 | end) | |
2034 | ||
2035 | ||
2036 | ---------------------------------------------------- | |
2037 | mouse.KeyUp:connect(function(key) | |
2038 | if key == "h" then | |
2039 | if Charging == true and chargewait == true then | |
2040 | chargewait = false | |
2041 | wait(1) | |
2042 | Charging = false | |
2043 | ||
2044 | local runServ = game:GetService("RunService").RenderStepped | |
2045 | ||
2046 | ||
2047 | --[[for i,v in pairs (torso:GetChildren()) do | |
2048 | if v:IsA("Sound") then | |
2049 | v:Destroy() | |
2050 | end | |
2051 | end]] | |
2052 | ||
2053 | ||
2054 | --so("http://roblox.com/asset/?id=160867463",torso,1,0.7) | |
2055 | ||
2056 | pt:Destroy() | |
2057 | pt2:Destroy() | |
2058 | bl:Destroy() | |
2059 | if Debounces.CanAttack == false then | |
2060 | Debounces.CanAttack = true | |
2061 | Debounces.NoIdl = false | |
2062 | Debounces.on = false | |
2063 | Debounces.grab = false | |
2064 | ||
2065 | end | |
2066 | end | |
2067 | end | |
2068 | end) | |
2069 | ||
2070 | while wait() do | |
2071 | healthgui.Text = "[Z]\nUniverse Bullet" | |
2072 | basicgui.Text = "[X]\nUniversal Strike" | |
2073 | basic2gui.Text = "[C]\nKarma" | |
2074 | basic3gui.Text = "[V]\nWarp" | |
2075 | basic4gui.Text = "[B]\nPlanet Destroyer" | |
2076 | hed.BrickColor = BrickColor.new("Bright violet") | |
2077 | tors.BrickColor = BrickColor.new("Really black") | |
2078 | rleg.BrickColor = BrickColor.new("Bright violet") | |
2079 | rarm.BrickColor = BrickColor.new("Bright violet") | |
2080 | larm.BrickColor = BrickColor.new("Bright violet") | |
2081 | lleg.BrickColor = BrickColor.new("Bright violet") | |
2082 | end |