SHOW:
|
|
- or go back to the newest paste.
| 1 | ----===////Goku Black\\\\===---- | |
| 2 | ||
| 3 | ||
| 4 | jun = game.Players.LocalPlayer | |
| 5 | local char = jun.Character | |
| 6 | local Head = char.Head | |
| 7 | local mouse = jun:GetMouse() | |
| 8 | local larm = char["Left Arm"] | |
| 9 | local rarm = char["Right Arm"] | |
| 10 | local lleg = char["Left Leg"] | |
| 11 | local rleg = char["Right Leg"] | |
| 12 | local hed = char.Head | |
| 13 | local torso = char.Torso | |
| 14 | local hum = char.Humanoid | |
| 15 | local cam = game.Workspace.CurrentCamera | |
| 16 | local root = char.HumanoidRootPart | |
| 17 | local deb = false | |
| 18 | local shot = 0 | |
| 19 | local debris=game:service"Debris" | |
| 20 | local l = game:GetService("Lighting")
| |
| 21 | local rs = game:GetService("RunService").RenderStepped
| |
| 22 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 23 | math.randomseed(os.time()) | |
| 24 | for i,v in pairs(char:children()) do | |
| 25 | if jun:IsA("Hat") then
| |
| 26 | jun:Destroy() | |
| 27 | end | |
| 28 | end | |
| 29 | for i,v in pairs (hed:GetChildren()) do | |
| 30 | if jun:IsA("Sound") then
| |
| 31 | jun:Destroy() | |
| 32 | end | |
| 33 | end | |
| 34 | ||
| 35 | Stuff = false | |
| 36 | ---------------------------------------------------------------- | |
| 37 | rleg.Transparency = 0 | |
| 38 | rarm.Transparency = 0 | |
| 39 | larm.Transparency = 0 | |
| 40 | lleg.Transparency = 0 | |
| 41 | torso.Transparency = 0 | |
| 42 | ||
| 43 | Player = game:GetService("Players").LocalPlayer
| |
| 44 | Character = Player.Character | |
| 45 | rarm = Character["Right Arm"] | |
| 46 | larm = Character["Left Arm"] | |
| 47 | ||
| 48 | ---------------------------------------------------------------- | |
| 49 | ||
| 50 | ---------------------------- SHIRT AND PANTS -- | |
| 51 | -------------------------------- | |
| 52 | shirt = Instance.new("Shirt", char)
| |
| 53 | shirt.Name = "Shirt" | |
| 54 | pants = Instance.new("Pants", char)
| |
| 55 | pants.Name = "Pants" | |
| 56 | char.Shirt.ShirtTemplate = "rbxassetid://687373540" | |
| 57 | char.Pants.PantsTemplate = "rbxassetid://511495401" | |
| 58 | ---------------------- BODY COLORS --------------------------------------- | |
| 59 | char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
| |
| 60 | char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
| |
| 61 | char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
| |
| 62 | char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
| |
| 63 | ||
| 64 | --------------------------------------------------------- | |
| 65 | -------------------------------------------------------- | |
| 66 | hed.face.Texture = "rbxassetid://461020241" | |
| 67 | ||
| 68 | jun.Character.Humanoid.Health = 1000 | |
| 69 | jun.Character.Humanoid.MaxHealth = 1000 | |
| 70 | ||
| 71 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 72 | --------------------------------------------------------- | |
| 73 | ||
| 74 | Debounces = {
| |
| 75 | CanAttack = true; | |
| 76 | NoIdl = false; | |
| 77 | Slashing = false; | |
| 78 | Slashed = false; | |
| 79 | RPunch = false; | |
| 80 | RPunched = false; | |
| 81 | LPunch = false; | |
| 82 | LPunched = false; | |
| 83 | } | |
| 84 | local Touche = {char.Name, }
| |
| 85 | ||
| 86 | ------------------------ ----------------------------------------- | |
| 87 | ||
| 88 | --------------------------------------------------------------------- | |
| 89 | ||
| 90 | rarm.Touched:connect(function(ht) | |
| 91 | hit = ht.Parent | |
| 92 | if ht and hit:IsA("Model") then
| |
| 93 | if hit:FindFirstChild("Humanoid") then
| |
| 94 | if hit.Name ~= jun.Name then | |
| 95 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 96 | Debounces.RPunched = true | |
| 97 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 98 | if Debounces.ks==true then | |
| 99 | z = Instance.new("Sound",hed)
| |
| 100 | z.SoundId = "rbxassetid://169380525" | |
| 101 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 102 | z.Volume = 1 | |
| 103 | z:Play() | |
| 104 | end | |
| 105 | wait(.2) | |
| 106 | Debounces.RPunched = false | |
| 107 | end | |
| 108 | end | |
| 109 | end | |
| 110 | elseif ht and hit:IsA("Hat") then
| |
| 111 | if hit.Parent.Name ~= p.Name then | |
| 112 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 113 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 114 | Debounces.RPunched = true | |
| 115 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 116 | if Debounces.ks==true then | |
| 117 | z = Instance.new("Sound",hed)
| |
| 118 | z.SoundId = "rbxassetid://169380525" | |
| 119 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 120 | z.Volume = 1 | |
| 121 | z:Play() | |
| 122 | end | |
| 123 | wait(.2) | |
| 124 | Debounces.RPunched = false | |
| 125 | end | |
| 126 | end | |
| 127 | end | |
| 128 | end | |
| 129 | end) | |
| 130 | larm.Touched:connect(function(ht) | |
| 131 | hit = ht.Parent | |
| 132 | if ht and hit:IsA("Model") then
| |
| 133 | if hit:FindFirstChild("Humanoid") then
| |
| 134 | if hit.Name ~= jun.Name then | |
| 135 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 136 | Debounces.LPunched = true | |
| 137 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 138 | if Debounces.ks2==true then | |
| 139 | z = Instance.new("Sound",hed)
| |
| 140 | z.SoundId = "rbxassetid://169380525" | |
| 141 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 142 | z.Volume = 1 | |
| 143 | z:Play() | |
| 144 | end | |
| 145 | wait(.2) | |
| 146 | Debounces.LPunched = false | |
| 147 | end | |
| 148 | end | |
| 149 | end | |
| 150 | elseif ht and hit:IsA("Hat") then
| |
| 151 | if hit.Parent.Name ~= jun.Name then | |
| 152 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 153 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 154 | Debounces.LPunched = true | |
| 155 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 156 | if Debounces.ks2==true then | |
| 157 | z = Instance.new("Sound",hed)
| |
| 158 | z.SoundId = "rbxassetid://169380525" | |
| 159 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 160 | z.Volume = 1 | |
| 161 | z:Play() | |
| 162 | end | |
| 163 | wait(.2) | |
| 164 | Debounces.LPunched = false | |
| 165 | end | |
| 166 | end | |
| 167 | end | |
| 168 | end | |
| 169 | end) | |
| 170 | ---------------------------------------------------- | |
| 171 | mod4 = Instance.new("Model",char)
| |
| 172 | ||
| 173 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 174 | ||
| 175 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 176 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 177 | local List = {}
| |
| 178 | for i,v in pairs(workspace:GetChildren())do | |
| 179 | if v:IsA("Model")then
| |
| 180 | if v:findFirstChild("Torso")then
| |
| 181 | if v ~= char then | |
| 182 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 183 | table.insert(List,v) | |
| 184 | end | |
| 185 | end | |
| 186 | end | |
| 187 | end | |
| 188 | end | |
| 189 | return List | |
| 190 | end | |
| 191 | ||
| 192 | function Punch() | |
| 193 | part=Instance.new('Part',mod4)
| |
| 194 | part.Anchored=true | |
| 195 | part.CanCollide=false | |
| 196 | part.FormFactor='Custom' | |
| 197 | part.Size=Vector3.new(.2,.2,.2) | |
| 198 | part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0) | |
| 199 | part.Transparency=.7 | |
| 200 | part.BrickColor=BrickColor.new('Dark indigo')
| |
| 201 | mesh=Instance.new('SpecialMesh',part)
| |
| 202 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
| 203 | mesh.Scale=Vector3.new(3,3,3) | |
| 204 | part2=Instance.new('Part',mod4)
| |
| 205 | part2.Anchored=true | |
| 206 | part2.CanCollide=false | |
| 207 | part2.FormFactor='Custom' | |
| 208 | part2.Size=Vector3.new(.2,.2,.2) | |
| 209 | part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
| 210 | part2.Transparency=.7 | |
| 211 | part2.BrickColor=BrickColor.new('Dark indigo')
| |
| 212 | mesh2=Instance.new('SpecialMesh',part2)
| |
| 213 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 214 | mesh2.Scale=Vector3.new(3,1.5,3) | |
| 215 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
| 216 | if v:FindFirstChild('Humanoid') then
| |
| 217 | v.Humanoid:TakeDamage(math.random(2,6)) | |
| 218 | end | |
| 219 | end | |
| 220 | coroutine.resume(coroutine.create(function() | |
| 221 | for i=0,0.62,0.4 do | |
| 222 | wait() | |
| 223 | part.CFrame=part.CFrame | |
| 224 | part.Transparency=i | |
| 225 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
| 226 | part2.CFrame=part2.CFrame | |
| 227 | part2.Transparency=i | |
| 228 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
| 229 | end | |
| 230 | part.Parent=nil | |
| 231 | part2.Parent=nil | |
| 232 | end)) | |
| 233 | end | |
| 234 | ---------------------------------------------------- | |
| 235 | rarm.Touched:connect(function(ht) | |
| 236 | hit = ht.Parent | |
| 237 | if ht and hit:IsA("Model") then
| |
| 238 | if hit:FindFirstChild("Humanoid") then
| |
| 239 | if hit.Name ~= jun.Name then | |
| 240 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 241 | Debounces.RPunched = true | |
| 242 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 243 | if Debounces.ks==true then | |
| 244 | z = Instance.new("Sound",hed)
| |
| 245 | z.SoundId = "rbxassetid://169380525" | |
| 246 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 247 | z.Volume = 1 | |
| 248 | z:Play() | |
| 249 | end | |
| 250 | wait(.2) | |
| 251 | Debounces.RPunched = false | |
| 252 | end | |
| 253 | end | |
| 254 | end | |
| 255 | elseif ht and hit:IsA("Hat") then
| |
| 256 | if hit.Parent.Name ~= p.Name then | |
| 257 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 258 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 259 | Debounces.RPunched = true | |
| 260 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 261 | if Debounces.ks==true then | |
| 262 | z = Instance.new("Sound",hed)
| |
| 263 | z.SoundId = "rbxassetid://169380525" | |
| 264 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 265 | z.Volume = 1 | |
| 266 | z:Play() | |
| 267 | end | |
| 268 | wait(.2) | |
| 269 | Debounces.RPunched = false | |
| 270 | end | |
| 271 | end | |
| 272 | end | |
| 273 | end | |
| 274 | end) | |
| 275 | larm.Touched:connect(function(ht) | |
| 276 | hit = ht.Parent | |
| 277 | if ht and hit:IsA("Model") then
| |
| 278 | if hit:FindFirstChild("Humanoid") then
| |
| 279 | if hit.Name ~= jun.Name then | |
| 280 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 281 | Debounces.LPunched = true | |
| 282 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 283 | if Debounces.ks2==true then | |
| 284 | z = Instance.new("Sound",hed)
| |
| 285 | z.SoundId = "rbxassetid://169380525" | |
| 286 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 287 | z.Volume = 1 | |
| 288 | z:Play() | |
| 289 | end | |
| 290 | wait(.2) | |
| 291 | Debounces.LPunched = false | |
| 292 | end | |
| 293 | end | |
| 294 | end | |
| 295 | elseif ht and hit:IsA("Hat") then
| |
| 296 | if hit.Parent.Name ~= jun.Name then | |
| 297 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 298 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 299 | Debounces.LPunched = true | |
| 300 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 301 | if Debounces.ks2==true then | |
| 302 | z = Instance.new("Sound",hed)
| |
| 303 | z.SoundId = "rbxassetid://169380525" | |
| 304 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 305 | z.Volume = 1 | |
| 306 | z:Play() | |
| 307 | end | |
| 308 | wait(.2) | |
| 309 | Debounces.LPunched = false | |
| 310 | end | |
| 311 | end | |
| 312 | end | |
| 313 | end | |
| 314 | end) | |
| 315 | ||
| 316 | --------------------------- CHARGE ---------------------------------------- | |
| 317 | Charging = false | |
| 318 | mouse.KeyDown:connect(function(key) | |
| 319 | if key == "r" then | |
| 320 | if Charging == false then | |
| 321 | Charging = true | |
| 322 | if Debounces.CanAttack == true then | |
| 323 | Debounces.CanAttack = false | |
| 324 | Debounces.NoIdl = true | |
| 325 | Debounces.on = true | |
| 326 | for i = 1,20 do | |
| 327 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2) | |
| 328 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2) | |
| 329 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
| 330 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 331 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
| 332 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
| 333 | if Debounces.on == false then break end | |
| 334 | rs:wait() | |
| 335 | end | |
| 336 | --[[for i = 1,20 do | |
| 337 | 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) | |
| 338 | 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) | |
| 339 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
| 340 | 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) | |
| 341 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
| 342 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
| 343 | if Debounces.on == false then break end | |
| 344 | rs:wait() | |
| 345 | end]]-- | |
| 346 | --------------------------------------------------------------------------- | |
| 347 | ||
| 348 | --------------------------------------------------------------------------- | |
| 349 | mouse.KeyDown:connect(function(key) | |
| 350 | if key == "q" then | |
| 351 | if Debounces.CanAttack == true then | |
| 352 | Debounces.CanAttack = false | |
| 353 | Debounces.NoIdl = true | |
| 354 | Debounces.on = true | |
| 355 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 356 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 357 | local List = {}
| |
| 358 | for i,v in pairs(workspace:GetChildren())do | |
| 359 | if v:IsA("Model")then
| |
| 360 | if v:findFirstChild("Torso")then
| |
| 361 | if v ~= char then | |
| 362 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 363 | table.insert(List,v) | |
| 364 | end | |
| 365 | end | |
| 366 | end | |
| 367 | end | |
| 368 | end | |
| 369 | return List | |
| 370 | end | |
| 371 | z = Instance.new("Sound",hed)
| |
| 372 | z.SoundId = "rbxassetid://232213955" | |
| 373 | z.Pitch = 1 | |
| 374 | z.Volume = 1 | |
| 375 | wait(0.2) | |
| 376 | z:Play() | |
| 377 | sp = Instance.new("Part",rarm)
| |
| 378 | sp.Anchored = true | |
| 379 | sp.CanCollide = false | |
| 380 | sp.Locked = true | |
| 381 | sp.Transparency = 0 | |
| 382 | sp.Material = "Neon" | |
| 383 | sp.Size = Vector3.new(1,1,1) | |
| 384 | sp.TopSurface = "SmoothNoOutlines" | |
| 385 | sp.BottomSurface = "SmoothNoOutlines" | |
| 386 | sp.BrickColor = BrickColor.new("Dark indigo")
| |
| 387 | spm = Instance.new("SpecialMesh",sp)
| |
| 388 | spm.MeshId = "http://www.roblox.com/asset/?id=9756362" | |
| 389 | spm.Scale = Vector3.new(21,21,21) | |
| 390 | sp2 = Instance.new("Part", rarm)
| |
| 391 | sp2.Name = "Energy" | |
| 392 | sp2.BrickColor = BrickColor.new("Dark indigo")
| |
| 393 | sp2.Size = Vector3.new(1, 1, 1) | |
| 394 | sp2.Shape = "Ball" | |
| 395 | sp2.CanCollide = false | |
| 396 | sp2.Anchored = true | |
| 397 | sp2.Locked = true | |
| 398 | sp2.TopSurface = 0 | |
| 399 | sp2.BottomSurface = 0 | |
| 400 | sp2.Transparency = 1 | |
| 401 | spm2 = Instance.new("SpecialMesh",sp2)
| |
| 402 | spm2.MeshId = "rbxassetid://9756362" | |
| 403 | spm2.Scale = Vector3.new(4,4,4) | |
| 404 | for i = 1, 20 do | |
| 405 | spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
| 406 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 407 | 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) | |
| 408 | 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) | |
| 409 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
| 410 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 411 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 412 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 413 | if Debounces.on == false then break end | |
| 414 | rs:wait() | |
| 415 | end | |
| 416 | for i = 1, 100, 20 do rs:wait() | |
| 417 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 418 | end | |
| 419 | for i = 1, 20 do | |
| 420 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 421 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
| 422 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4) | |
| 423 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) | |
| 424 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) | |
| 425 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 426 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 427 | if Debounces.on == false then break end | |
| 428 | rs:wait() | |
| 429 | end | |
| 430 | sp.Transparency = 1 | |
| 431 | for i = 1, 20 do | |
| 432 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
| 433 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4) | |
| 434 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) | |
| 435 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) | |
| 436 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 437 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 438 | if Debounces.on == false then break end | |
| 439 | rs:wait() | |
| 440 | end | |
| 441 | wait(1) | |
| 442 | sp.Transparency = 0 | |
| 443 | sp2.Transparency = 0.84 | |
| 444 | for i = 1, 20 do | |
| 445 | --spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
| 446 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
| 447 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
| 448 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
| 449 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
| 450 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
| 451 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
| 452 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
| 453 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
| 454 | if Debounces.on == false then break end | |
| 455 | rs:wait() | |
| 456 | end | |
| 457 | for i = 1, 2880, 50 do | |
| 458 | rs:wait() | |
| 459 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
| 460 | sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 461 | rs:wait() | |
| 462 | end | |
| 463 | sp:Destroy() | |
| 464 | sp2:Destroy() | |
| 465 | local X = Instance.new("Part",char)
| |
| 466 | local O = Instance.new("ObjectValue",X)
| |
| 467 | O.Name = "creator" | |
| 468 | X.Locked = true | |
| 469 | X.Name = "Shell" | |
| 470 | X.Anchored = false | |
| 471 | X.CanCollide = false | |
| 472 | X.Transparency = 0 | |
| 473 | X.Reflectance = 0 | |
| 474 | X.BottomSurface = 0 | |
| 475 | X.TopSurface = 0 | |
| 476 | X.Shape = 0 | |
| 477 | local V = Instance.new("ObjectValue",X)
| |
| 478 | V.Value = char | |
| 479 | V.Name = "creator" | |
| 480 | X.BrickColor = BrickColor.new("Dark indigo")
| |
| 481 | X.Size = Vector3.new(2,2,2) | |
| 482 | X.Material = "Neon" | |
| 483 | local Z = Instance.new("SpecialMesh",X)
| |
| 484 | Z.MeshId = "rbxassetid://9756362" | |
| 485 | Z.Scale = Vector3.new(0.5,0.5,1) | |
| 486 | X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) | |
| 487 | local bv = Instance.new("BodyVelocity",X)
| |
| 488 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 489 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
| 490 | bv.velocity = X.CFrame.lookVector*65 | |
| 491 | ||
| 492 | Explode = X.Touched:connect(function(hit) | |
| 493 | if hit ~= char and hit.Name ~= "Shell" then | |
| 494 | local cf = X.CFrame | |
| 495 | bv:Destroy() | |
| 496 | X.Anchored = true | |
| 497 | Z:Remove() | |
| 498 | Explode:disconnect() | |
| 499 | X.Size = Vector3.new(3,3,3) | |
| 500 | X.Touched:connect(function(hit) end) | |
| 501 | X.CanCollide = false | |
| 502 | local part3 = Instance.new("Part", rarm)
| |
| 503 | part3.Anchored=true | |
| 504 | part3.CanCollide=false | |
| 505 | part3.Locked = true | |
| 506 | part3.TopSurface = "SmoothNoOutlines" | |
| 507 | part3.BottomSurface = "SmoothNoOutlines" | |
| 508 | part3.FormFactor='Custom' | |
| 509 | part3.Size=Vector3.new(1,1, 1) | |
| 510 | part3.CFrame=X.CFrame | |
| 511 | part3.Transparency=0 | |
| 512 | part3.BrickColor=BrickColor.new("Dark indigo")
| |
| 513 | local mesh3 = Instance.new("SpecialMesh",part3)
| |
| 514 | mesh3.MeshType = "Sphere" | |
| 515 | mesh3.Scale = Vector3.new(1,1,1) | |
| 516 | --debris:AddItem(X,8) | |
| 517 | local part4 = Instance.new("Part", rarm)
| |
| 518 | part4.Material = "Neon" | |
| 519 | part4.Anchored=true | |
| 520 | part4.CanCollide=false | |
| 521 | part4.Locked = true | |
| 522 | part4.TopSurface = "SmoothNoOutlines" | |
| 523 | part4.BottomSurface = "SmoothNoOutlines" | |
| 524 | part4.FormFactor='Custom' | |
| 525 | part4.Size=Vector3.new(1,1, 1) | |
| 526 | part4.CFrame=X.CFrame | |
| 527 | part4.Transparency=0 | |
| 528 | part4.BrickColor=BrickColor.new("Dark indigo")
| |
| 529 | local mesh4 = Instance.new("SpecialMesh",part4)
| |
| 530 | mesh4.MeshType = "Sphere" | |
| 531 | mesh4.Scale = Vector3.new(.5,.5,.5) | |
| 532 | local part7 = Instance.new("Part", rarm)
| |
| 533 | part7.Material = "Neon" | |
| 534 | part7.Anchored=true | |
| 535 | part7.CanCollide=false | |
| 536 | part7.Locked = true | |
| 537 | part7.TopSurface = "SmoothNoOutlines" | |
| 538 | part7.BottomSurface = "SmoothNoOutlines" | |
| 539 | part7.FormFactor='Custom' | |
| 540 | part7.Size=Vector3.new(1,1, 1) | |
| 541 | part7.CFrame=X.CFrame | |
| 542 | part7.Transparency=0 | |
| 543 | part7.BrickColor=BrickColor.new("Dark indigo")
| |
| 544 | local mesh7 = Instance.new("SpecialMesh",part7)
| |
| 545 | mesh7.MeshType = "Sphere" | |
| 546 | mesh7.Scale = Vector3.new(0.1, 0.1, 0.1) | |
| 547 | --[[X.Touched:connect(function(ht) | |
| 548 | hit = ht.Parent | |
| 549 | if ht and hit:IsA("Model") then
| |
| 550 | if hit:FindFirstChild("Humanoid") then
| |
| 551 | if hit.Name ~= p.Name then | |
| 552 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 553 | wait(.3) | |
| 554 | end | |
| 555 | end | |
| 556 | elseif ht and hit:IsA("Hat") then
| |
| 557 | if hit.Parent.Name ~= p.Name then | |
| 558 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 559 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 560 | wait(.3) | |
| 561 | end | |
| 562 | end | |
| 563 | end | |
| 564 | end) | |
| 565 | part3.Touched:connect(function(ht) | |
| 566 | hit = ht.Parent | |
| 567 | if ht and hit:IsA("Model") then
| |
| 568 | if hit:FindFirstChild("Humanoid") then
| |
| 569 | if hit.Name ~= p.Name then | |
| 570 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 571 | wait(.3) | |
| 572 | end | |
| 573 | end | |
| 574 | elseif ht and hit:IsA("Hat") then
| |
| 575 | if hit.Parent.Name ~= p.Name then | |
| 576 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 577 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 578 | wait(.3) | |
| 579 | end | |
| 580 | end | |
| 581 | end | |
| 582 | end)]]-- | |
| 583 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
| 584 | if v:FindFirstChild('Humanoid') then
| |
| 585 | v.Humanoid:TakeDamage(math.random(60,90)) | |
| 586 | v.Humanoid.PlatformStand = true | |
| 587 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
| |
| 588 | end | |
| 589 | end | |
| 590 | ||
| 591 | local acos = math.acos | |
| 592 | local sqrt = math.sqrt | |
| 593 | local Vec3 = Vector3.new | |
| 594 | local fromAxisAngle = CFrame.fromAxisAngle | |
| 595 | ||
| 596 | local function toAxisAngle(CFr) | |
| 597 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
| 598 | local Angle = math.acos((R00+R11+R22-1)/2) | |
| 599 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 600 | A = A == 0 and 0.00001 or A | |
| 601 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 602 | B = B == 0 and 0.00001 or B | |
| 603 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 604 | C = C == 0 and 0.00001 or C | |
| 605 | local x = (R21-R12)/sqrt(A) | |
| 606 | local y = (R02-R20)/sqrt(B) | |
| 607 | local z = (R10-R01)/sqrt(C) | |
| 608 | return Vec3(x,y,z),Angle | |
| 609 | end | |
| 610 | ||
| 611 | function ApplyTrig(Num,Func) | |
| 612 | local Min,Max = Func(0),Func(1) | |
| 613 | local i = Func(Num) | |
| 614 | return (i-Min)/(Max-Min) | |
| 615 | end | |
| 616 | ||
| 617 | function LerpCFrame(CFrame1,CFrame2,Num) | |
| 618 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
| 619 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
| 620 | end | |
| 621 | ||
| 622 | function Crater(Torso,Radius) | |
| 623 | Spawn(function() | |
| 624 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
| 625 | local Ignore = {}
| |
| 626 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 627 | if v.Character ~= nil then | |
| 628 | Ignore[#Ignore+1] = v.Character | |
| 629 | end | |
| 630 | end | |
| 631 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
| 632 | if Hit == nil then return end | |
| 633 | local Parts = {}
| |
| 634 | for i = 1,360,10 do | |
| 635 | local P = Instance.new("Part",Torso.Parent)
| |
| 636 | P.Anchored = true | |
| 637 | P.FormFactor = "Custom" | |
| 638 | P.BrickColor = Hit.BrickColor | |
| 639 | P.Material = Hit.Material | |
| 640 | P.TopSurface = "Smooth" | |
| 641 | P.BottomSurface = "Smooth" | |
| 642 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
| 643 | 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))) | |
| 644 | 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}
| |
| 645 | if math.random(0,5) == 0 then -- rubble | |
| 646 | local P = Instance.new("Part",Torso.Parent)
| |
| 647 | P.Anchored = true | |
| 648 | P.FormFactor = "Custom" | |
| 649 | P.BrickColor = Hit.BrickColor | |
| 650 | P.Material = Hit.Material | |
| 651 | P.TopSurface = "Smooth" | |
| 652 | P.BottomSurface = "Smooth" | |
| 653 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
| 654 | 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))) | |
| 655 | 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}
| |
| 656 | end | |
| 657 | end | |
| 658 | for i = 0,1,0.05 do | |
| 659 | for i2,v in pairs(Parts) do | |
| 660 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
| 661 | end | |
| 662 | wait(0.02) | |
| 663 | end | |
| 664 | for i,v in pairs(Parts) do | |
| 665 | if v[1].Size.X > 2.1 then | |
| 666 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
| 667 | end | |
| 668 | v[1].Anchored = false | |
| 669 | end | |
| 670 | for i = 0,1,0.05 do | |
| 671 | for i2,v in pairs(Parts) do | |
| 672 | v[1].Transparency = i | |
| 673 | if i == 1 then | |
| 674 | v[1]:Destroy() | |
| 675 | elseif i >= 0.25 then | |
| 676 | v[1].CanCollide = false | |
| 677 | end | |
| 678 | end | |
| 679 | wait(0.02) | |
| 680 | end | |
| 681 | Parts = nil | |
| 682 | end) | |
| 683 | end | |
| 684 | ||
| 685 | ROW = function(out, trans, s, wt, t, ang, plus) | |
| 686 | for i = 1, 360, 360/t do | |
| 687 | local c = Instance.new("Part", game.Workspace)
| |
| 688 | c.FormFactor = 3 | |
| 689 | c.TopSurface = 0 | |
| 690 | c.BottomSurface = 0 | |
| 691 | c.Size = s | |
| 692 | c.Anchored = true | |
| 693 | c.CanCollide = wt | |
| 694 | c.Material=workspace.Base.Material | |
| 695 | c.Transparency = trans | |
| 696 | c.BrickColor = workspace.Base.BrickColor | |
| 697 | 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 | |
| 698 | c.Locked=true | |
| 699 | game.Debris:AddItem(c,15) | |
| 700 | end | |
| 701 | end | |
| 702 | ||
| 703 | Part = function(x,y,z,color,tr,cc,an,parent) | |
| 704 | local p = Instance.new('Part',parent or Weapon)
| |
| 705 | p.formFactor = 'Custom' | |
| 706 | p.Size = Vector3.new(x,y,z) | |
| 707 | p.BrickColor = BrickColor.new(color) | |
| 708 | p.CanCollide = cc | |
| 709 | p.Transparency = tr | |
| 710 | p.Anchored = an | |
| 711 | p.TopSurface,p.BottomSurface = 0,0 | |
| 712 | p.Locked=true | |
| 713 | p:BreakJoints() | |
| 714 | return p end | |
| 715 | ||
| 716 | Mesh = function(par,num,x,y,z) | |
| 717 | local msh = _ | |
| 718 | if num == 1 then msh = Instance.new("CylinderMesh",par)
| |
| 719 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
| |
| 720 | elseif num == 3 then msh = Instance.new("BlockMesh",par)
| |
| 721 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
| |
| 722 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
| |
| 723 | end msh.Scale = Vector3.new(x,y,z) | |
| 724 | return msh end | |
| 725 | ||
| 726 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
| 727 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
| 728 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
| 729 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
| 730 | v1,v2,v3=sz.x,sz.y,sz.z | |
| 731 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
| 732 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
| 733 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
| 734 | a.CFrame=cfr | |
| 735 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 736 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 737 | ||
| 738 | Spawn(function() | |
| 739 | while wait() do | |
| 740 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
| 741 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
| 742 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
| 743 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
| 744 | a.Transparency=a.Transparency+0.05 | |
| 745 | a2.Transparency=a2.Transparency+0.05 | |
| 746 | a3.Transparency=a3.Transparency+0.05 | |
| 747 | end | |
| 748 | end) | |
| 749 | end | |
| 750 | ||
| 751 | Crater(X,20) | |
| 752 | 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) | |
| 753 | z = Instance.new("Sound",X)
| |
| 754 | z.SoundId = "rbxassetid://231917744" | |
| 755 | z.Pitch = .5 | |
| 756 | z.Volume = 10 | |
| 757 | z1 = Instance.new("Sound",X)
| |
| 758 | z1.SoundId = "rbxassetid://231917744" | |
| 759 | z1.Pitch = .5 | |
| 760 | z1.Volume = 10 | |
| 761 | z2 = Instance.new("Sound",X)
| |
| 762 | z2.SoundId = "rbxassetid://231917744" | |
| 763 | z2.Pitch = .5 | |
| 764 | z2.Volume = 10 | |
| 765 | z3 = Instance.new("Sound",X)
| |
| 766 | z3.SoundId = "rbxassetid://245537790" | |
| 767 | z3.Pitch = .7 | |
| 768 | z3.Volume = 1 | |
| 769 | z4 = Instance.new("Sound",X)
| |
| 770 | z4.SoundId = "rbxassetid://245537790" | |
| 771 | z4.Pitch = .7 | |
| 772 | z4.Volume = 1 | |
| 773 | wait(0.1) | |
| 774 | z:Play() | |
| 775 | z1:Play() | |
| 776 | z2:Play() | |
| 777 | z3:Play() | |
| 778 | z4:Play() | |
| 779 | ||
| 780 | local part=Instance.new('Part',rarm)
| |
| 781 | part.Anchored=true | |
| 782 | part.CanCollide=false | |
| 783 | part.Locked = true | |
| 784 | part.FormFactor='Custom' | |
| 785 | part.Size=Vector3.new(1,1,1) | |
| 786 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
| 787 | part.Transparency=0 | |
| 788 | part.BrickColor=BrickColor.new('Dark indigo')
| |
| 789 | local mesh=Instance.new('SpecialMesh',part)
| |
| 790 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 791 | mesh.Scale=Vector3.new(2,2,2) | |
| 792 | local part2=part:clone() | |
| 793 | part2.Parent = rarm | |
| 794 | part2.BrickColor=BrickColor.new("Dark indigo")
| |
| 795 | local part5=part:clone() | |
| 796 | part5.Parent = rarm | |
| 797 | part5.BrickColor=BrickColor.new("Magenta")
| |
| 798 | local part6=part:clone() | |
| 799 | part6.Parent = rarm | |
| 800 | part6.BrickColor=BrickColor.new("Black")
| |
| 801 | local mesh2=mesh:clone() | |
| 802 | mesh2.Parent=part2 | |
| 803 | mesh2.Scale=Vector3.new(3, 3, 3) | |
| 804 | local mesh5=mesh:clone() | |
| 805 | mesh5.Parent=part5 | |
| 806 | mesh5.Scale=Vector3.new(3, 3, 3) | |
| 807 | local mesh6=mesh:clone() | |
| 808 | mesh6.Parent=part6 | |
| 809 | mesh6.Scale=Vector3.new(3, 3, 3) | |
| 810 | local blast = Instance.new("Part", rarm)
| |
| 811 | blast.BrickColor = BrickColor.new("Dark indigo")
| |
| 812 | blast.Anchored = true | |
| 813 | blast.CanCollide = false | |
| 814 | blast.Locked = true | |
| 815 | blast.Size = Vector3.new(1, 1, 1) | |
| 816 | blast.TopSurface = "Smooth" | |
| 817 | blast.BottomSurface = "Smooth" | |
| 818 | blast.Transparency = 0 | |
| 819 | blast.CFrame = HandCF | |
| 820 | local bm = Instance.new("SpecialMesh", blast)
| |
| 821 | bm.Scale = Vector3.new(5,1,5) | |
| 822 | bm.MeshId = "rbxassetid://3270017" | |
| 823 | local blast2 = Instance.new("Part", rarm)
| |
| 824 | blast2.BrickColor = BrickColor.new("Dark indigo")
| |
| 825 | blast2.Anchored = true | |
| 826 | blast2.CanCollide = false | |
| 827 | blast2.Locked = true | |
| 828 | blast2.Size = Vector3.new(1, 1, 1) | |
| 829 | blast2.TopSurface = "Smooth" | |
| 830 | blast2.BottomSurface = "Smooth" | |
| 831 | blast2.Transparency = 0 | |
| 832 | blast2.CFrame = HandCF | |
| 833 | local bm2 = Instance.new("SpecialMesh", blast2)
| |
| 834 | bm2.Scale = Vector3.new(3,1,3) | |
| 835 | bm2.MeshId = "rbxassetid://3270017" | |
| 836 | local blast3 = Instance.new("Part", rarm)
| |
| 837 | blast3.BrickColor = BrickColor.new("Dark indigo")
| |
| 838 | blast3.Anchored = true | |
| 839 | blast3.CanCollide = false | |
| 840 | blast3.Locked = true | |
| 841 | blast3.Size = Vector3.new(1, 1, 1) | |
| 842 | blast3.TopSurface = "Smooth" | |
| 843 | blast3.BottomSurface = "Smooth" | |
| 844 | blast3.Transparency = 0 | |
| 845 | blast3.CFrame = HandCF | |
| 846 | local bm3 = Instance.new("SpecialMesh", blast3)
| |
| 847 | bm3.Scale = Vector3.new(3,1,3) | |
| 848 | bm3.MeshId = "rbxassetid://3270017" | |
| 849 | for i = 1,120 do rs:wait() | |
| 850 | X.Transparency = X.Transparency + (1/120) | |
| 851 | part.Transparency = part.Transparency + (1/120) | |
| 852 | part2.Transparency = part2.Transparency + (1/120) | |
| 853 | part3.Transparency = part3.Transparency + (1/120) | |
| 854 | part4.Transparency = part4.Transparency + (1/120) | |
| 855 | part5.Transparency = part5.Transparency + (1/120) | |
| 856 | part6.Transparency = part6.Transparency + (1/120) | |
| 857 | part7.Transparency = part7.Transparency + (1/120) | |
| 858 | blast.Transparency = blast.Transparency + (1/120) | |
| 859 | blast2.Transparency = blast2.Transparency + (1/120) | |
| 860 | blast3.Transparency = blast3.Transparency + (1/120) | |
| 861 | X.Size = X.Size + Vector3.new(.8,.8,.8) | |
| 862 | --part3.Size = part3.Size + Vector3.new(3,3,3) | |
| 863 | mesh.Scale = mesh.Scale + Vector3.new(1,.2,1) | |
| 864 | mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1) | |
| 865 | mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3) | |
| 866 | mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7) | |
| 867 | mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6) | |
| 868 | mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2) | |
| 869 | mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4) | |
| 870 | bm.Scale = bm.Scale + Vector3.new(6,6,.2) | |
| 871 | bm2.Scale = bm2.Scale + Vector3.new(4,4,.2) | |
| 872 | bm3.Scale = bm3.Scale + Vector3.new(4,4,.2) | |
| 873 | X.CFrame = cf | |
| 874 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
| 875 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
| 876 | part3.CFrame=X.CFrame | |
| 877 | part4.CFrame=X.CFrame | |
| 878 | part7.CFrame=X.CFrame | |
| 879 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
| 880 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
| 881 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 882 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
| 883 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
| 884 | rs:wait() | |
| 885 | end | |
| 886 | X:Destroy() | |
| 887 | part:Destroy() | |
| 888 | print("you think you can steal le script by taking of the credits!??")
| |
| 889 | print("boi you is wrong")
| |
| 890 | part2:Destroy() | |
| 891 | part3:Destroy() | |
| 892 | part4:Destroy() | |
| 893 | part5:Destroy() | |
| 894 | part6:Destroy() | |
| 895 | blast:Destroy() | |
| 896 | blast2:Destroy() | |
| 897 | blast3:Destroy() | |
| 898 | z:Destroy() | |
| 899 | z1:Destroy() | |
| 900 | z2:Destroy() | |
| 901 | z3:Destroy() | |
| 902 | z4:Destroy() | |
| 903 | end | |
| 904 | end) | |
| 905 | for i = 1, 20 do | |
| 906 | 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) | |
| 907 | 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) | |
| 908 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 909 | 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) | |
| 910 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
| 911 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
| 912 | if Debounces.on == false then break end | |
| 913 | rs:wait() | |
| 914 | end | |
| 915 | if Debounces.CanAttack == false then | |
| 916 | Debounces.CanAttack = true | |
| 917 | Debounces.NoIdl = false | |
| 918 | Debounces.on = false | |
| 919 | end | |
| 920 | end | |
| 921 | end | |
| 922 | end) | |
| 923 | --------------------------------------------------------------------------------------------- | |
| 924 | mouse.KeyDown:connect(function(key) | |
| 925 | if key == "e" then | |
| 926 | if Debounces.CanAttack == true then | |
| 927 | Debounces.CanAttack = false | |
| 928 | Debounces.on = true | |
| 929 | Debounces.NoIdl = true | |
| 930 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5}
| |
| 931 | z = Instance.new("Sound", rarm)
| |
| 932 | z.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
| 933 | z.Volume = .6 | |
| 934 | z.Pitch = pt[math.random(1,#pt)] | |
| 935 | z.Looped = false | |
| 936 | z:Play() | |
| 937 | Debounces.RPunch = true | |
| 938 | Debounces.LPunch = true | |
| 939 | Debounces.ks = true | |
| 940 | Debounces.ks2 = true | |
| 941 | for i = 1, 3 do | |
| 942 | 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) | |
| 943 | 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) | |
| 944 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 945 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 946 | 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) | |
| 947 | 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) | |
| 948 | if Debounces.on == false then break end | |
| 949 | wait() | |
| 950 | end | |
| 951 | z2 = Instance.new("Sound", larm)
| |
| 952 | z2.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 953 | z2.Volume = .6 | |
| 954 | z2.Pitch = pt[math.random(1,#pt)] | |
| 955 | z2.Looped = false | |
| 956 | z2:Play() | |
| 957 | for i = 1, 3 do | |
| 958 | 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) | |
| 959 | 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) | |
| 960 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 961 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 962 | 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) | |
| 963 | 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) | |
| 964 | if Debounces.on == false then break end | |
| 965 | wait() | |
| 966 | end | |
| 967 | z3 = Instance.new("Sound", rarm)
| |
| 968 | z3.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 969 | z3.Volume = 0.6 | |
| 970 | z3.Pitch = pt[math.random(1,#pt)] | |
| 971 | z3.Looped = false | |
| 972 | z3:Play() | |
| 973 | for i = 1, 3 do | |
| 974 | 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) | |
| 975 | 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) | |
| 976 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 977 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 978 | 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) | |
| 979 | 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) | |
| 980 | if Debounces.on == false then break end | |
| 981 | wait() | |
| 982 | end | |
| 983 | z4 = Instance.new("Sound", larm)
| |
| 984 | z4.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 985 | z4.Volume = .6 | |
| 986 | z4.Pitch = pt[math.random(1,#pt)] | |
| 987 | z4.Looped = false | |
| 988 | z4:Play() | |
| 989 | for i = 1, 3 do | |
| 990 | 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) | |
| 991 | 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) | |
| 992 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 993 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 994 | 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) | |
| 995 | 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) | |
| 996 | if Debounces.on == false then break end | |
| 997 | wait() | |
| 998 | end | |
| 999 | z5 = Instance.new("Sound", rarm)
| |
| 1000 | z5.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1001 | z5.Volume = .6 | |
| 1002 | z5.Pitch = pt[math.random(1,#pt)] | |
| 1003 | z5.Looped = false | |
| 1004 | z5:Play() | |
| 1005 | for i = 1, 3 do | |
| 1006 | 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) | |
| 1007 | 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) | |
| 1008 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1009 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1010 | 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) | |
| 1011 | 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) | |
| 1012 | if Debounces.on == false then break end | |
| 1013 | wait() | |
| 1014 | end | |
| 1015 | z6 = Instance.new("Sound", larm)
| |
| 1016 | z6.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1017 | z6.Volume = .6 | |
| 1018 | z6.Pitch = pt[math.random(1,#pt)] | |
| 1019 | z6.Looped = false | |
| 1020 | z6:Play() | |
| 1021 | for i = 1, 3 do | |
| 1022 | 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) | |
| 1023 | 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) | |
| 1024 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1025 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1026 | 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) | |
| 1027 | 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) | |
| 1028 | if Debounces.on == false then break end | |
| 1029 | wait() | |
| 1030 | end | |
| 1031 | z7 = Instance.new("Sound", rarm)
| |
| 1032 | z7.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
| 1033 | z7.Volume = .6 | |
| 1034 | z7.Pitch = pt[math.random(1,#pt)] | |
| 1035 | z7.Looped = false | |
| 1036 | z7:Play() | |
| 1037 | for i = 1, 3 do | |
| 1038 | 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) | |
| 1039 | 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) | |
| 1040 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1041 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1042 | 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) | |
| 1043 | 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) | |
| 1044 | if Debounces.on == false then break end | |
| 1045 | wait() | |
| 1046 | end | |
| 1047 | z8 = Instance.new("Sound", larm)
| |
| 1048 | z8.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1049 | z8.Volume = .6 | |
| 1050 | z8.Pitch = pt[math.random(1,#pt)] | |
| 1051 | z8.Looped = false | |
| 1052 | z8:Play() | |
| 1053 | for i = 1, 3 do | |
| 1054 | 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) | |
| 1055 | 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) | |
| 1056 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1057 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1058 | 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) | |
| 1059 | 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) | |
| 1060 | if Debounces.on == false then break end | |
| 1061 | wait() | |
| 1062 | end | |
| 1063 | z9 = Instance.new("Sound", rarm)
| |
| 1064 | z9.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1065 | z9.Volume = 0.6 | |
| 1066 | z9.Pitch = pt[math.random(1,#pt)] | |
| 1067 | z9.Looped = false | |
| 1068 | z9:Play() | |
| 1069 | for i = 1, 3 do | |
| 1070 | 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) | |
| 1071 | 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) | |
| 1072 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1073 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1074 | 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) | |
| 1075 | 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) | |
| 1076 | if Debounces.on == false then break end | |
| 1077 | wait() | |
| 1078 | end | |
| 1079 | z10 = Instance.new("Sound", larm)
| |
| 1080 | z10.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1081 | z10.Volume = .6 | |
| 1082 | z10.Pitch = pt[math.random(1,#pt)] | |
| 1083 | z10.Looped = false | |
| 1084 | z10:Play() | |
| 1085 | for i = 1, 3 do | |
| 1086 | 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) | |
| 1087 | 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) | |
| 1088 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1089 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1090 | 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) | |
| 1091 | 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) | |
| 1092 | if Debounces.on == false then break end | |
| 1093 | wait() | |
| 1094 | end | |
| 1095 | z11 = Instance.new("Sound", rarm)
| |
| 1096 | z11.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1097 | z11.Volume = .6 | |
| 1098 | z11.Pitch = pt[math.random(1,#pt)] | |
| 1099 | z11.Looped = false | |
| 1100 | z11:Play() | |
| 1101 | for i = 1, 3 do | |
| 1102 | 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) | |
| 1103 | 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) | |
| 1104 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1105 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1106 | 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) | |
| 1107 | 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) | |
| 1108 | if Debounces.on == false then break end | |
| 1109 | wait() | |
| 1110 | end | |
| 1111 | z12 = Instance.new("Sound", larm)
| |
| 1112 | z12.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1113 | z12.Volume = .6 | |
| 1114 | z12.Pitch = pt[math.random(1,#pt)] | |
| 1115 | z12.Looped = false | |
| 1116 | z12:Play() | |
| 1117 | for i = 1, 3 do | |
| 1118 | 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) | |
| 1119 | 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) | |
| 1120 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1121 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1122 | 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) | |
| 1123 | 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) | |
| 1124 | if Debounces.on == false then break end | |
| 1125 | wait() | |
| 1126 | end | |
| 1127 | z13 = Instance.new("Sound", rarm)
| |
| 1128 | z13.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1129 | z13.Volume = 0.6 | |
| 1130 | z13.Pitch = pt[math.random(1,#pt)] | |
| 1131 | z13.Looped = false | |
| 1132 | z13:Play() | |
| 1133 | for i = 1, 3 do | |
| 1134 | 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) | |
| 1135 | 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) | |
| 1136 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1137 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1138 | 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) | |
| 1139 | 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) | |
| 1140 | if Debounces.on == false then break end | |
| 1141 | wait() | |
| 1142 | end | |
| 1143 | z14 = Instance.new("Sound", larm)
| |
| 1144 | z14.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1145 | z14.Volume = .6 | |
| 1146 | z14.Pitch = pt[math.random(1,#pt)] | |
| 1147 | z14.Looped = false | |
| 1148 | z14:Play() | |
| 1149 | for i = 1, 3 do | |
| 1150 | 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) | |
| 1151 | 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) | |
| 1152 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1153 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1154 | 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) | |
| 1155 | 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) | |
| 1156 | if Debounces.on == false then break end | |
| 1157 | wait() | |
| 1158 | end | |
| 1159 | z15 = Instance.new("Sound", rarm)
| |
| 1160 | z15.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1161 | z15.Volume = .6 | |
| 1162 | z15.Pitch = pt[math.random(1,#pt)] | |
| 1163 | z15.Looped = false | |
| 1164 | z15:Play() | |
| 1165 | for i = 1, 3 do | |
| 1166 | 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) | |
| 1167 | 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) | |
| 1168 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 1169 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 1170 | 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) | |
| 1171 | 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) | |
| 1172 | if Debounces.on == false then break end | |
| 1173 | wait() | |
| 1174 | end | |
| 1175 | z16 = Instance.new("Sound", larm)
| |
| 1176 | z16.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1177 | z16.Volume = .6 | |
| 1178 | z16.Pitch = pt[math.random(1,#pt)] | |
| 1179 | z16.Looped = false | |
| 1180 | z16:Play() | |
| 1181 | for i = 1, 3 do | |
| 1182 | 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) | |
| 1183 | 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) | |
| 1184 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1185 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1186 | 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) | |
| 1187 | 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) | |
| 1188 | if Debounces.on == false then break end | |
| 1189 | wait() | |
| 1190 | end | |
| 1191 | z17 = Instance.new("Sound", rarm)
| |
| 1192 | z17.SoundId = "http://www.roblox.com/asset/?id=206083107"--160867463, 161006212 | |
| 1193 | z17.Volume = .6 | |
| 1194 | z17.Pitch = pt[math.random(1,#pt)] | |
| 1195 | z17.Looped = false | |
| 1196 | z17:Play() | |
| 1197 | for i = 1, 3 do | |
| 1198 | 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) | |
| 1199 | 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) | |
| 1200 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1201 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1202 | 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) | |
| 1203 | 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) | |
| 1204 | if Debounces.on == false then break end | |
| 1205 | wait() | |
| 1206 | end | |
| 1207 | z18 = Instance.new("Sound", larm)
| |
| 1208 | z18.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1209 | z18.Volume = .6 | |
| 1210 | z18.Pitch = pt[math.random(1,#pt)] | |
| 1211 | z18.Looped = false | |
| 1212 | z18:Play() | |
| 1213 | for i = 1, 3 do | |
| 1214 | 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) | |
| 1215 | 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) | |
| 1216 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1217 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1218 | 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) | |
| 1219 | 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) | |
| 1220 | if Debounces.on == false then break end | |
| 1221 | wait() | |
| 1222 | end | |
| 1223 | z19 = Instance.new("Sound", rarm)
| |
| 1224 | z19.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1225 | z19.Volume = 0.6 | |
| 1226 | z19.Pitch = pt[math.random(1,#pt)] | |
| 1227 | z19.Looped = false | |
| 1228 | z19:Play() | |
| 1229 | for i = 1, 3 do | |
| 1230 | 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) | |
| 1231 | 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) | |
| 1232 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 1233 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 1234 | 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) | |
| 1235 | 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) | |
| 1236 | if Debounces.on == false then break end | |
| 1237 | wait() | |
| 1238 | end | |
| 1239 | z20 = Instance.new("Sound", larm)
| |
| 1240 | z20.SoundId = "http://www.roblox.com/asset/?id=206083107" | |
| 1241 | z20.Volume = .6 | |
| 1242 | z20.Pitch = pt[math.random(1,#pt)] | |
| 1243 | z20.Looped = false | |
| 1244 | z20:Play() | |
| 1245 | for i = 1, 3 do | |
| 1246 | 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) | |
| 1247 | 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) | |
| 1248 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 1249 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 1250 | 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) | |
| 1251 | 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) | |
| 1252 | if Debounces.on == false then break end | |
| 1253 | wait() | |
| 1254 | end | |
| 1255 | z:Destroy() | |
| 1256 | z2:Destroy() | |
| 1257 | z3:Destroy() | |
| 1258 | z4:Destroy() | |
| 1259 | z5:Destroy() | |
| 1260 | z6:Destroy() | |
| 1261 | z7:Destroy() | |
| 1262 | z8:Destroy() | |
| 1263 | z9:Destroy() | |
| 1264 | z10:Destroy() | |
| 1265 | z11:Destroy() | |
| 1266 | z12:Destroy() | |
| 1267 | z13:Destroy() | |
| 1268 | z14:Destroy() | |
| 1269 | z15:Destroy() | |
| 1270 | z16:Destroy() | |
| 1271 | z17:Destroy() | |
| 1272 | z18:Destroy() | |
| 1273 | z19:Destroy() | |
| 1274 | z20:Destroy() | |
| 1275 | Debounces.LPunch = false | |
| 1276 | Debounces.RPunch = false | |
| 1277 | Debounces.ks = false | |
| 1278 | Debounces.ks2 = false | |
| 1279 | if Debounces.CanAttack == false then | |
| 1280 | Debounces.CanAttack = true | |
| 1281 | Debounces.on = false | |
| 1282 | Debounces.NoIdl = false | |
| 1283 | end | |
| 1284 | end | |
| 1285 | end | |
| 1286 | end) | |
| 1287 | -------------------------------------------------------------------------------------------------- | |
| 1288 | ---------------------------------------------------- | |
| 1289 | mouse.KeyDown:connect(function(key) | |
| 1290 | if key == "y" then | |
| 1291 | if Debounces.CanAttack == true then | |
| 1292 | Debounces.CanAttack = false | |
| 1293 | Debounces.on = true | |
| 1294 | Debounces.NoIdl = true | |
| 1295 | for i = 1, 15 do | |
| 1296 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(90+1), math.rad(0), math.rad(-60)), 0.2) | |
| 1297 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(93),math.rad(0),math.rad(10)), 0.2) | |
| 1298 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-20),math.rad(-10),0), 0.2) | |
| 1299 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(10), 0), 0.2) | |
| 1300 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.2) | |
| 1301 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.2) | |
| 1302 | if Debounces.on == false then break end if Debounces.on == false then break end | |
| 1303 | rs:wait(2.7) | |
| 1304 | end | |
| 1305 | x = Instance.new("Sound",char)
| |
| 1306 | x.SoundId = "rbxassetid://228343271" | |
| 1307 | x.Pitch = 1 | |
| 1308 | x.Volume = .8 | |
| 1309 | wait(.1) | |
| 1310 | x:Play() | |
| 1311 | Debounces.on = false | |
| 1312 | Debounces.Here = false | |
| 1313 | shot = shot + 1 | |
| 1314 | local rng = Instance.new("Part", larm)
| |
| 1315 | rng.Anchored = true | |
| 1316 | rng.BrickColor = BrickColor.new("Dark indigo")
| |
| 1317 | rng.CanCollide = false | |
| 1318 | rng.FormFactor = 3 | |
| 1319 | rng.Name = "Ring" | |
| 1320 | rng.Size = Vector3.new(1, 1, 1) | |
| 1321 | rng.Transparency = 0.35 | |
| 1322 | rng.TopSurface = 0 | |
| 1323 | rng.BottomSurface = 0 | |
| 1324 | rng2 = rng:clone() | |
| 1325 | rng3 = rng2:clone() | |
| 1326 | rng4 = rng2:clone() | |
| 1327 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1328 | rngm.MeshId = "http://www.roblox.com/asset/?id=1125473" -- 1125473 | |
| 1329 | rngm.Scale = Vector3.new(10, 10, 1) | |
| 1330 | rngm2 = rngm:clone() | |
| 1331 | rngm2.Scale = Vector3.new(5, 5, 3) | |
| 1332 | rngm3=rngm2:clone() | |
| 1333 | rngm3.Parent = rng3 | |
| 1334 | rngm3.Scale = Vector3.new(8, 8, 1) | |
| 1335 | rngm4 = rngm2:clone() | |
| 1336 | rngm4.Parent = rng4 | |
| 1337 | rngm4.Scale = Vector3.new(6, 6, 1) | |
| 1338 | local bem = Instance.new("Part", larm)
| |
| 1339 | bem.Anchored = true | |
| 1340 | bem.BrickColor = BrickColor.new("Dark indigo")
| |
| 1341 | bem.CanCollide = false | |
| 1342 | bem.FormFactor = 3 | |
| 1343 | bem.Name = "Beam" .. shot | |
| 1344 | bem.Size = Vector3.new(1, 1, 1) | |
| 1345 | bem.Transparency = 0.35 | |
| 1346 | bem.TopSurface = 0 | |
| 1347 | bem.BottomSurface = 0 | |
| 1348 | local bemm = Instance.new("SpecialMesh", bem)
| |
| 1349 | bemm.MeshType = 4 | |
| 1350 | bemm.Scale = Vector3.new(1, 4, 4) | |
| 1351 | local out = Instance.new("Part", larm)
| |
| 1352 | out.Anchored = true | |
| 1353 | out.BrickColor = BrickColor.new("Dark indigo")
| |
| 1354 | out.CanCollide = false | |
| 1355 | out.FormFactor = 3 | |
| 1356 | out.Name = "Out" | |
| 1357 | out.Size = Vector3.new(4, 4, 4) | |
| 1358 | out.Transparency = 0.35 | |
| 1359 | out.TopSurface = 0 | |
| 1360 | out.BottomSurface = 0 | |
| 1361 | local outm = Instance.new("SpecialMesh", out)
| |
| 1362 | outm.MeshId = "http://www.roblox.com/asset/?id=24388358" | |
| 1363 | outm.Scale = Vector3.new(6, 4, 6) | |
| 1364 | local bnd = Instance.new("Part", larm)
| |
| 1365 | bnd.Anchored = true | |
| 1366 | bnd.BrickColor = BrickColor.new("Really black")
| |
| 1367 | bnd.CanCollide = false | |
| 1368 | bnd.FormFactor = 3 | |
| 1369 | bnd.Name = "Bend" | |
| 1370 | bnd.Size = Vector3.new(1, 1, 1) | |
| 1371 | bnd.Transparency = 1 | |
| 1372 | bnd.TopSurface = 0 | |
| 1373 | bnd.BottomSurface = 0 | |
| 1374 | local bndm = Instance.new("SpecialMesh", bnd)
| |
| 1375 | bndm.MeshType = 3 | |
| 1376 | bndm.Scale = Vector3.new(8, 8, 8) | |
| 1377 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
| 1378 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 1379 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
| 1380 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
| 1381 | rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) | |
| 1382 | rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
| 1383 | Debounces.Shewt = true | |
| 1384 | coroutine.wrap(function() | |
| 1385 | for i = 1, 20, 0.2 do | |
| 1386 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
| 1387 | rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) | |
| 1388 | rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) | |
| 1389 | rng.Transparency = i/20 | |
| 1390 | rng3.Transparency = 1/24 | |
| 1391 | rng4.Transparency = i/26 | |
| 1392 | wait() | |
| 1393 | end | |
| 1394 | wait() | |
| 1395 | rng:Destroy() | |
| 1396 | end)() | |
| 1397 | if Debounces.Shewt == true then | |
| 1398 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht)
| |
| 1399 | hit = ht.Parent | |
| 1400 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
| |
| 1401 | if HasntTouched(hit.Name) == true and deb == false then | |
| 1402 | deb = true | |
| 1403 | coroutine.wrap(function() | |
| 1404 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 1405 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 1406 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73))
| |
| 1407 | end)() | |
| 1408 | table.insert(Touche, hit.Name) | |
| 1409 | deb = false | |
| 1410 | end | |
| 1411 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
| |
| 1412 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
| 1413 | deb = true | |
| 1414 | coroutine.wrap(function() | |
| 1415 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
| |
| 1416 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 1417 | wait(1) | |
| 1418 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
| |
| 1419 | end)() | |
| 1420 | table.insert(Touche, hit.Parent.Name) | |
| 1421 | deb = false | |
| 1422 | for i, v in pairs(Touche) do | |
| 1423 | print(v) | |
| 1424 | end | |
| 1425 | end | |
| 1426 | end | |
| 1427 | end) | |
| 1428 | end | |
| 1429 | for i = 0, 260, 8 do | |
| 1430 | bem.Size = Vector3.new(i, 3, 3) | |
| 1431 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
| 1432 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 1433 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
| 1434 | bnd.Size = Vector3.new(1,1,1) | |
| 1435 | bndm.Scale = Vector3.new(8,8,8) | |
| 1436 | if i % 10 == 0 then | |
| 1437 | local newRng = rng2:Clone() | |
| 1438 | newRng.Parent = larm | |
| 1439 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
| 1440 | local newRngm = rngm2:clone() | |
| 1441 | newRngm.Parent=newRng | |
| 1442 | coroutine.wrap(function() | |
| 1443 | for i = 1, 10, 0.2 do | |
| 1444 | newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3) | |
| 1445 | newRng.Transparency = i/10 | |
| 1446 | wait() | |
| 1447 | end | |
| 1448 | wait() | |
| 1449 | newRng:Destroy() | |
| 1450 | end)() | |
| 1451 | end | |
| 1452 | wait() | |
| 1453 | end | |
| 1454 | wait() | |
| 1455 | Debounces.Shewt = false | |
| 1456 | bem:Destroy() | |
| 1457 | out:Destroy() | |
| 1458 | bnd:Destroy() | |
| 1459 | Debounces.Ready = false | |
| 1460 | for i, v in pairs(Touche) do | |
| 1461 | table.remove(Touche, i) | |
| 1462 | end | |
| 1463 | wait() | |
| 1464 | table.insert(Touche, char.Name) | |
| 1465 | Debounces.NoIdl = false | |
| 1466 | if Debounces.CanAttack == false then | |
| 1467 | Debounces.CanAttack = true | |
| 1468 | end | |
| 1469 | end | |
| 1470 | end | |
| 1471 | end) | |
| 1472 | ---------------------------------------------------- | |
| 1473 | mouse.KeyDown:connect(function(key) | |
| 1474 | if key == "x" then | |
| 1475 | if Debounces.CanAttack == true then | |
| 1476 | Debounces.CanAttack = false | |
| 1477 | Debounces.NoIdl = true | |
| 1478 | Debounces.on = true | |
| 1479 | hed.Anchored=true | |
| 1480 | local shell = Instance.new("Part",torso)
| |
| 1481 | shell.BrickColor = BrickColor.new("Really black")
| |
| 1482 | shell.Anchored = false | |
| 1483 | shell.CanCollide = false | |
| 1484 | shell.Locked = true | |
| 1485 | shell.Material = "Neon" | |
| 1486 | shell.TopSurface = "SmoothNoOutlines" | |
| 1487 | shell.BottomSurface = "SmoothNoOutlines" | |
| 1488 | shell.Size = Vector3.new(1.2,1.2,1.2) | |
| 1489 | shell.FormFactor = 3 | |
| 1490 | local shellm = Instance.new("SpecialMesh",shell)
| |
| 1491 | shellm.MeshType = "Sphere" | |
| 1492 | shellm.Scale = Vector3.new(1.2,1.2,1.2) | |
| 1493 | local Omega = function() | |
| 1494 | local X = Instance.new("Part",char)
| |
| 1495 | local O = Instance.new("ObjectValue",X)
| |
| 1496 | O.Name = "creator" | |
| 1497 | X.Locked = true | |
| 1498 | X.Name = "Shell" | |
| 1499 | X.Anchored = false | |
| 1500 | X.CanCollide = false | |
| 1501 | X.Transparency = 0.5 | |
| 1502 | X.Reflectance = 0 | |
| 1503 | X.BottomSurface = 0 | |
| 1504 | X.TopSurface = 0 | |
| 1505 | X.Shape = 0 | |
| 1506 | local V = Instance.new("ObjectValue",X)
| |
| 1507 | V.Value = char | |
| 1508 | V.Name = "creator" | |
| 1509 | X.BrickColor = BrickColor.new("Really black")
| |
| 1510 | X.Size = Vector3.new(100,40,100) | |
| 1511 | X.CFrame=torso.CFrame*CFrame.new(0,0,-40) | |
| 1512 | X.Material = "Neon" | |
| 1513 | b = Instance.new("Sound")
| |
| 1514 | b.SoundId = "http://www.roblox.com/asset/?id=262498472" | |
| 1515 | b.Parent = char.Head | |
| 1516 | b.Looped = false | |
| 1517 | b.Pitch = 1 | |
| 1518 | b.Volume = 1 | |
| 1519 | wait(.1) | |
| 1520 | b:Play() | |
| 1521 | local Z = Instance.new("SpecialMesh",X)
| |
| 1522 | Z.MeshType = "Sphere" | |
| 1523 | Z.Scale = Vector3.new(0.2,0.2,0.2) | |
| 1524 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
| 1525 | local bv = Instance.new("BodyVelocity",X)
| |
| 1526 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 1527 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
| 1528 | bv.velocity = root.CFrame.lookVector*10 | |
| 1529 | Explode = X.Touched:connect(function(hit) | |
| 1530 | if hit ~= char and hit.Name ~= "Shell" and hit ~= X and hit:IsA("Part") or hit:IsA("BasePart") then
| |
| 1531 | local cf = X.CFrame | |
| 1532 | bv:Destroy() | |
| 1533 | X.Anchored = true | |
| 1534 | Z:Remove() | |
| 1535 | Explode:disconnect() | |
| 1536 | X.Size = Vector3.new(3,3,3) | |
| 1537 | X.Touched:connect(function(hit) end) | |
| 1538 | X.CanCollide = false | |
| 1539 | for i,v in pairs(FindNearestTorso(X.CFrame.p,200))do | |
| 1540 | if v:FindFirstChild('Humanoid') then
| |
| 1541 | v.Humanoid:TakeDamage(math.random(80,120)) | |
| 1542 | end | |
| 1543 | end | |
| 1544 | for i = 1, (40) do rs:wait() | |
| 1545 | X.Transparency = X.Transparency + (1/40) | |
| 1546 | X.Size = X.Size + Vector3.new(1,1,1) | |
| 1547 | X.CFrame = root.CFrame * CFrame.new(0,0,-10) | |
| 1548 | end | |
| 1549 | X:Destroy() | |
| 1550 | end | |
| 1551 | end) | |
| 1552 | end | |
| 1553 | --Omega() | |
| 1554 | local function wat() | |
| 1555 | local sweld=Instance.new('ManualWeld',shell)
| |
| 1556 | sweld.Part0=shell | |
| 1557 | sweld.Part1=rarm | |
| 1558 | sweld.C0=CFrame.new(0,1,0) | |
| 1559 | return sweld | |
| 1560 | end | |
| 1561 | local watweld=wat() | |
| 1562 | for i = 1,200 do | |
| 1563 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.03) | |
| 1564 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
| 1565 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1566 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1567 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1568 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1569 | if Debounces.on == false then break end | |
| 1570 | rs:wait() | |
| 1571 | end | |
| 1572 | b = Instance.new("Sound")
| |
| 1573 | b.SoundId = "http://www.roblox.com/asset/?id=245537790" | |
| 1574 | b.Parent = char.Head | |
| 1575 | b.Looped = false | |
| 1576 | b.Pitch = 1 | |
| 1577 | b.Volume = 1 | |
| 1578 | wait(.1) | |
| 1579 | b:Play() | |
| 1580 | watweld.Part1=torso | |
| 1581 | watweld.C0=CFrame.new(0,-4,0) | |
| 1582 | for i = 1,30 do | |
| 1583 | watweld.C0=watweld.C0*CFrame.new(0,-1,0) | |
| 1584 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.4) | |
| 1585 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-170)), 0.4) | |
| 1586 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1587 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1588 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1589 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1590 | if Debounces.on == false then break end | |
| 1591 | rs:wait() | |
| 1592 | end | |
| 1593 | local shelbx=true | |
| 1594 | --Experimental Damagefunction | |
| 1595 | coroutine.resume(coroutine.create(function() while shelbx do wait() | |
| 1596 | for _,v in pairs(game.workspace:GetChildren()) do | |
| 1597 | if v:IsA'Model' and v:FindFirstChild'Humanoid' and v:FindFirstChild'Torso' and v~=pchar then | |
| 1598 | local mag=(v.Torso.CFrame.p-shell.CFrame.p).magnitude | |
| 1599 | if mag <= shell.Size.x then | |
| 1600 | v.Humanoid.Health=v.Humanoid.Health-(v.Humanoid.MaxHealth/7) | |
| 1601 | end | |
| 1602 | end | |
| 1603 | end | |
| 1604 | end end)) | |
| 1605 | for i = 1,40 do | |
| 1606 | --shell.CFrame = torso.CFrame * CFrame.new(0,20,0) | |
| 1607 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
| 1608 | local watweld=wat() | |
| 1609 | watweld.C0=CFrame.new(0,-14-i,0) | |
| 1610 | watweld.Part1=torso | |
| 1611 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(100)), 0.4) | |
| 1612 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-100)), 0.4) | |
| 1613 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1614 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1615 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1616 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1617 | if Debounces.on == false then break end | |
| 1618 | rs:wait() | |
| 1619 | end | |
| 1620 | for i = 1,40 do | |
| 1621 | --shell.CFrame = torso.CFrame * CFrame.new(0,0,-30) | |
| 1622 | local watweld=wat() | |
| 1623 | watweld.Part1=torso | |
| 1624 | watweld.C0=watweld.C0:lerp(CFrame.new(0,0,40),1) | |
| 1625 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(20)), 0.4) | |
| 1626 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.4) | |
| 1627 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1628 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1629 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1630 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1631 | if Debounces.on == false then break end | |
| 1632 | rs:wait() | |
| 1633 | end | |
| 1634 | for i = 1,60 do | |
| 1635 | --shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
| 1636 | local watweld=wat() | |
| 1637 | watweld.Part1=torso | |
| 1638 | watweld.C0=watweld.C0:lerp(CFrame.new(0,0,60),1) | |
| 1639 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-30)), 0.4) | |
| 1640 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.4) | |
| 1641 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1642 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1643 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1644 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1645 | if Debounces.on == false then break end | |
| 1646 | rs:wait() | |
| 1647 | end | |
| 1648 | for i = 1,60 do | |
| 1649 | --shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
| 1650 | --shell.Size = shell.Size + Vector3.new(1,1,1) | |
| 1651 | shell.Size=shell.Size+Vector3.new(1,1,1) | |
| 1652 | local watweld=wat() | |
| 1653 | watweld.Part1=torso | |
| 1654 | watweld.C0=watweld.C0:lerp(CFrame.new(0,0,62),1) | |
| 1655 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(120)), 0.4) | |
| 1656 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-120)), 0.4) | |
| 1657 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1658 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1659 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1660 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 1661 | if Debounces.on == false then break end | |
| 1662 | rs:wait() | |
| 1663 | end | |
| 1664 | coroutine.resume(coroutine.create(function() | |
| 1665 | for i=0,1,.1 do wait() shell.Transparency=i end | |
| 1666 | shell:Destroy() | |
| 1667 | shelbx=false | |
| 1668 | end)) | |
| 1669 | hed.Anchored=false | |
| 1670 | if Debounces.CanAttack == false then | |
| 1671 | Debounces.CanAttack = true | |
| 1672 | Debounces.NoIdl = false | |
| 1673 | Debounces.on = false | |
| 1674 | b:Destroy() | |
| 1675 | ||
| 1676 | end | |
| 1677 | end | |
| 1678 | end | |
| 1679 | end) | |
| 1680 | ---------------------------------------------------- | |
| 1681 | mouse.KeyDown:connect(function(key) | |
| 1682 | if key == "z" then | |
| 1683 | if Debounces.CanAttack == true then | |
| 1684 | Debounces.CanAttack = false | |
| 1685 | Debounces.NoIdl = true | |
| 1686 | char.Humanoid.WalkSpeed = .01 | |
| 1687 | Debounces.on = true | |
| 1688 | for i = 1, 20 do | |
| 1689 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-12)), 0.3) | |
| 1690 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(90)), 0.3) | |
| 1691 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.3) | |
| 1692 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.3) | |
| 1693 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.3) | |
| 1694 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.3) | |
| 1695 | if Debounces.on == false then | |
| 1696 | break | |
| 1697 | end | |
| 1698 | wait() | |
| 1699 | end | |
| 1700 | for i = 1, 20 do | |
| 1701 | wait() | |
| 1702 | end | |
| 1703 | x = Instance.new("Sound")
| |
| 1704 | x.SoundId = "http://www.roblox.com/asset/?id=235097614" | |
| 1705 | x.Parent = char | |
| 1706 | x.Looped = false | |
| 1707 | x.Pitch = .7 | |
| 1708 | x.Volume = .6 | |
| 1709 | wait(.1) | |
| 1710 | x:Play() | |
| 1711 | Debounces.on = false | |
| 1712 | Debounces.Here = false | |
| 1713 | shot = shot + 1 | |
| 1714 | for i = 1, 6 do | |
| 1715 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-12)), 0.4) | |
| 1716 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(90)), 0.4) | |
| 1717 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.4) | |
| 1718 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.4) | |
| 1719 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.4) | |
| 1720 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 3) * CFrame.Angles(0, math.rad(90), 0), 0.4) | |
| 1721 | wait() | |
| 1722 | end | |
| 1723 | local rng = Instance.new("Part", char)
| |
| 1724 | rng.Anchored = true | |
| 1725 | rng.BrickColor = BrickColor.new("Dark indigo")
| |
| 1726 | rng.CanCollide = false | |
| 1727 | rng.FormFactor = 3 | |
| 1728 | rng.Name = "Ring" | |
| 1729 | rng.Size = Vector3.new(1, 1, 1) | |
| 1730 | rng.Transparency = 0.35 | |
| 1731 | rng.TopSurface = 0 | |
| 1732 | rng.BottomSurface = 0 | |
| 1733 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1734 | rngm.MeshId = "http://www.roblox.com/asset/?id=24388358" | |
| 1735 | rngm.Scale = Vector3.new(10, 10, 1) | |
| 1736 | local bem = Instance.new("Part", char)
| |
| 1737 | bem.Anchored = true | |
| 1738 | bem.BrickColor = BrickColor.new("Darl indigo")
| |
| 1739 | bem.CanCollide = false | |
| 1740 | bem.FormFactor = 3 | |
| 1741 | bem.Name = "Beam" .. shot | |
| 1742 | bem.Size = Vector3.new(1, 1, 1) | |
| 1743 | bem.Transparency = 0.35 | |
| 1744 | bem.TopSurface = 0 | |
| 1745 | bem.BottomSurface = 0 | |
| 1746 | local bemm = Instance.new("SpecialMesh", bem)
| |
| 1747 | bemm.MeshType = 4 | |
| 1748 | bemm.Scale = Vector3.new(1, 4, 4) | |
| 1749 | local out = Instance.new("Part", char)
| |
| 1750 | out.Anchored = true | |
| 1751 | out.BrickColor = BrickColor.new("Dark indigo")
| |
| 1752 | out.CanCollide = false | |
| 1753 | out.FormFactor = 3 | |
| 1754 | out.Name = "Out" | |
| 1755 | out.Size = Vector3.new(4, 4, 4) | |
| 1756 | out.Transparency = 0.35 | |
| 1757 | out.TopSurface = 0 | |
| 1758 | out.BottomSurface = 0 | |
| 1759 | local outm = Instance.new("SpecialMesh", out)
| |
| 1760 | outm.MeshId = "http://www.roblox.com/asset/?id=24388358" --24388358 | |
| 1761 | outm.Scale = Vector3.new(4, 4, 4) | |
| 1762 | local bnd = Instance.new("Part", char)
| |
| 1763 | bnd.Anchored = true | |
| 1764 | bnd.BrickColor = BrickColor.new("Dark indigo")
| |
| 1765 | bnd.CanCollide = false | |
| 1766 | bnd.FormFactor = 3 | |
| 1767 | bnd.Name = "Bend" | |
| 1768 | bnd.Size = Vector3.new(1, 1, 1) | |
| 1769 | bnd.Transparency = 1 | |
| 1770 | bnd.TopSurface = 0 | |
| 1771 | bnd.BottomSurface = 0 | |
| 1772 | local bndm = Instance.new("SpecialMesh", bnd)
| |
| 1773 | bndm.MeshType = 3 | |
| 1774 | bndm.Scale = Vector3.new(8, 8, 8) | |
| 1775 | out.CFrame = rarm.CFrame * CFrame.new(0, -1.75, 0) | |
| 1776 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 1777 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
| 1778 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
| 1779 | Debounces.Shewt = true | |
| 1780 | coroutine.wrap(function() | |
| 1781 | for i = 1, 20, 0.2 do | |
| 1782 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
| 1783 | rng.Transparency = i/20 | |
| 1784 | wait() | |
| 1785 | end | |
| 1786 | wait() | |
| 1787 | rng:Destroy() | |
| 1788 | end)() | |
| 1789 | if Debounces.Shewt == true then | |
| 1790 | char:WaitForChild("Beam" .. shot).Touched:connect(function(ht)
| |
| 1791 | hit = ht.Parent | |
| 1792 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
| |
| 1793 | if HasntTouched(hit.Name) == true and deb == false then | |
| 1794 | deb = true | |
| 1795 | coroutine.wrap(function() | |
| 1796 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 1797 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 1798 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73))
| |
| 1799 | end)() | |
| 1800 | table.insert(Touche, hit.Name) | |
| 1801 | deb = false | |
| 1802 | end | |
| 1803 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
| |
| 1804 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
| 1805 | deb = true | |
| 1806 | coroutine.wrap(function() | |
| 1807 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
| |
| 1808 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180
| |
| 1809 | wait(1) | |
| 1810 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
| |
| 1811 | end)() | |
| 1812 | table.insert(Touche, hit.Parent.Name) | |
| 1813 | deb = false | |
| 1814 | for i, v in pairs(Touche) do | |
| 1815 | print(v) | |
| 1816 | end | |
| 1817 | end | |
| 1818 | end | |
| 1819 | end) | |
| 1820 | end | |
| 1821 | for i = 0, 260, 8 do | |
| 1822 | bem.Size = Vector3.new(i, 2, 2) | |
| 1823 | bem.CFrame = rarm.CFrame * CFrame.new(0, -3.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 1824 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
| 1825 | bnd.Size = Vector3.new(1,1,1) | |
| 1826 | bndm.Scale = Vector3.new(8,8,8) | |
| 1827 | wait() | |
| 1828 | end | |
| 1829 | wait() | |
| 1830 | Debounces.Shewt = false | |
| 1831 | bem:Destroy() | |
| 1832 | out:Destroy() | |
| 1833 | bnd:Destroy() | |
| 1834 | char.Humanoid.WalkSpeed = 10 | |
| 1835 | Debounces.Ready = false | |
| 1836 | for i, v in pairs(Touche) do | |
| 1837 | table.remove(Touche, i) | |
| 1838 | end | |
| 1839 | wait() | |
| 1840 | table.insert(Touche, char.Name) | |
| 1841 | Debounces.NoIdl = false | |
| 1842 | if Debounces.CanAttack == false then | |
| 1843 | Debounces.CanAttack = true | |
| 1844 | for i = 1, 20 do | |
| 1845 | wait() | |
| 1846 | hum.WalkSpeed = 5 | |
| 1847 | end | |
| 1848 | end | |
| 1849 | end | |
| 1850 | end | |
| 1851 | end) | |
| 1852 | ||
| 1853 | ------------------------ | |
| 1854 | ||
| 1855 | mouse.KeyDown:connect(function(key) | |
| 1856 | if key == "t" then | |
| 1857 | if Debounces.CanAttack == true then | |
| 1858 | Debounces.CanAttack = false | |
| 1859 | Debounces.NoIdl = true | |
| 1860 | Debounces.on = true | |
| 1861 | Debounces.ks = true | |
| 1862 | kik = rleg.Touched:connect(function(ht) | |
| 1863 | hit = ht.Parent | |
| 1864 | if ht and hit:IsA("Model") then
| |
| 1865 | if hit:FindFirstChild("Humanoid") then
| |
| 1866 | if hit.Name ~= p.Name then | |
| 1867 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1868 | Debounces.Slashed = true]]-- | |
| 1869 | if Debounces.ks==true then | |
| 1870 | z = Instance.new("Sound",hed)
| |
| 1871 | z.SoundId = "rbxassetid://169380525" | |
| 1872 | z.Volume = 1 | |
| 1873 | z:Play() | |
| 1874 | Debounces.ks=false | |
| 1875 | end | |
| 1876 | hit:FindFirstChild("Humanoid"):TakeDamage(2)
| |
| 1877 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300
| |
| 1878 | --Debounces.Slashed = false | |
| 1879 | --end | |
| 1880 | end | |
| 1881 | end | |
| 1882 | elseif ht and hit:IsA("Hat") then
| |
| 1883 | if hit.Parent.Name ~= p.Name then | |
| 1884 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1885 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1886 | Debounces.Slashed = true]]-- | |
| 1887 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2)
| |
| 1888 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300
| |
| 1889 | --Debounces.Slashed = false | |
| 1890 | --end | |
| 1891 | end | |
| 1892 | end | |
| 1893 | end | |
| 1894 | end) | |
| 1895 | for i = 1,20 do | |
| 1896 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
| 1897 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.4) | |
| 1898 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 1899 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), math.rad(90)), 0.4) | |
| 1900 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-90)), 0.4) | |
| 1901 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
| 1902 | if Debounces.on == false then break end | |
| 1903 | rs:wait() | |
| 1904 | end | |
| 1905 | kik:disconnect() | |
| 1906 | if Debounces.CanAttack == false then | |
| 1907 | Debounces.CanAttack = true | |
| 1908 | Debounces.NoIdl = false | |
| 1909 | Debounces.on = false | |
| 1910 | end | |
| 1911 | end | |
| 1912 | end | |
| 1913 | end) | |
| 1914 | --------------------------------------------------------------------------------- | |
| 1915 | ||
| 1916 | pt=Instance.new('Part',torso)
| |
| 1917 | pt.Anchored=true | |
| 1918 | pt.CanCollide=false | |
| 1919 | pt.Locked = true | |
| 1920 | pt.FormFactor='Custom' | |
| 1921 | pt.Size=Vector3.new(1,1,1) | |
| 1922 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 1923 | pt.Transparency=.6 | |
| 1924 | pt.BrickColor=BrickColor.new('Dark indigo')
| |
| 1925 | msh=Instance.new('SpecialMesh',pt)
| |
| 1926 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 1927 | msh.Scale=Vector3.new(8,4,8) | |
| 1928 | pt2=pt:clone() | |
| 1929 | pt2.Parent = torso | |
| 1930 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 1931 | pt2.BrickColor=BrickColor.new("Dark indigo")
| |
| 1932 | msh2=msh:clone() | |
| 1933 | msh2.Parent=pt2 | |
| 1934 | msh2.Scale=Vector3.new(10,5,10) | |
| 1935 | ||
| 1936 | 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}
| |
| 1937 | ||
| 1938 | bl = Instance.new("Part", char)
| |
| 1939 | bl.Locked = true | |
| 1940 | bl.Name = "Shell" | |
| 1941 | bl.BrickColor = BrickColor.new("Dark indigo")
| |
| 1942 | bl.Anchored = true | |
| 1943 | bl.CanCollide = false | |
| 1944 | bl.Transparency = 0 | |
| 1945 | bl.Reflectance = 0 | |
| 1946 | bl.BottomSurface = 0 | |
| 1947 | bl.TopSurface = 0 | |
| 1948 | bl.Shape = 0 | |
| 1949 | blm = Instance.new("SpecialMesh",bl)
| |
| 1950 | blm.MeshType = "Sphere" | |
| 1951 | blm.Scale = Vector3.new(1,1,1) | |
| 1952 | blm.MeshId = "rbxassetid://9982590" | |
| 1953 | ||
| 1954 | ||
| 1955 | ||
| 1956 | coroutine.resume(coroutine.create(function() | |
| 1957 | for i=1, math.huge, 4 do | |
| 1958 | if Charging == true then | |
| 1959 | rs:wait() | |
| 1960 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 1961 | blm.Scale = blm.Scale + Vector3.new(9.5, 9.5, 9.5) | |
| 1962 | bl.Transparency = bl.Transparency + 0.1 | |
| 1963 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
| 1964 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
| 1965 | msh.Scale = msh.Scale + Vector3.new(9.5,0,9.5) | |
| 1966 | msh2.Scale = msh2.Scale + Vector3.new(9.5,0,9.5) | |
| 1967 | ||
| 1968 | elseif Charging == false then break | |
| 1969 | end | |
| 1970 | end | |
| 1971 | end)) | |
| 1972 | repeat | |
| 1973 | local p = Instance.new('Part',torso)
| |
| 1974 | p.formFactor = 'Custom' | |
| 1975 | p.Size = Vector3.new(1,1,1) | |
| 1976 | p.BrickColor = BrickColor.new("Dark indigo")
| |
| 1977 | p.CanCollide = false | |
| 1978 | p.Transparency = 0 | |
| 1979 | p.Anchored = true | |
| 1980 | p.Locked=true | |
| 1981 | p.Material = workspace.Base.Material | |
| 1982 | s = math.random(1,40)/10 | |
| 1983 | local m = Instance.new("SpecialMesh",p)
| |
| 1984 | m.MeshId = "rbxassetid://9755053" ---- Particles for when charging | |
| 1985 | m.Scale = Vector3.new(s,s,s) | |
| 1986 | 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()) | |
| 1987 | ||
| 1988 | ------------------------------------------------- | |
| 1989 | ||
| 1990 | --[[coroutine.wrap(function() | |
| 1991 | wait(2) | |
| 1992 | while Charging == true do | |
| 1993 | wait(2) | |
| 1994 | GroundWave1() | |
| 1995 | wait(2) | |
| 1996 | end | |
| 1997 | end)()]]-- | |
| 1998 | Spawn(function() | |
| 1999 | while rs:wait() do | |
| 2000 | if Charging == true then | |
| 2001 | 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))) | |
| 2002 | 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))) | |
| 2003 | 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)) | |
| 2004 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
| 2005 | 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))) | |
| 2006 | 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))) | |
| 2007 | elseif Charging == false then break | |
| 2008 | end | |
| 2009 | end | |
| 2010 | end) | |
| 2011 | Spawn(function() | |
| 2012 | while rs:wait() do | |
| 2013 | if p.Transparency >= 1 then p:Destroy() break end | |
| 2014 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
| 2015 | p.Transparency = p.Transparency+0.01 | |
| 2016 | end | |
| 2017 | end) | |
| 2018 | wait(.3) | |
| 2019 | until Charging == false | |
| 2020 | end | |
| 2021 | end | |
| 2022 | end | |
| 2023 | end) | |
| 2024 | ||
| 2025 | ||
| 2026 | ||
| 2027 | ---------------------------------------------------- | |
| 2028 | mouse.KeyUp:connect(function(key) | |
| 2029 | if key == "r" then | |
| 2030 | if Charging == true then | |
| 2031 | Charging = false | |
| 2032 | pt:Destroy() | |
| 2033 | pt2:Destroy() | |
| 2034 | bl:Destroy() | |
| 2035 | if Debounces.CanAttack == false then | |
| 2036 | Debounces.CanAttack = true | |
| 2037 | Debounces.NoIdl = false | |
| 2038 | Debounces.on = false | |
| 2039 | end | |
| 2040 | end | |
| 2041 | end | |
| 2042 | end) | |
| 2043 | ------------------------------------------------ | |
| 2044 | ||
| 2045 | function lerp(a, b, t) -- Linear interpolation | |
| 2046 | return a + (b - a)*t | |
| 2047 | end | |
| 2048 | ||
| 2049 | function slerp(a, b, t) --Spherical interpolation | |
| 2050 | dot = a:Dot(b) | |
| 2051 | if dot > 0.99999 or dot < -0.99999 then | |
| 2052 | return t <= 0.5 and a or b | |
| 2053 | else | |
| 2054 | r = math.acos(dot) | |
| 2055 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 2056 | end | |
| 2057 | end | |
| 2058 | ||
| 2059 | function matrixInterpolate(a, b, t) | |
| 2060 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 2061 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 2062 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 2063 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 2064 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 2065 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 2066 | local t = v1:Dot(v2) | |
| 2067 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 2068 | return CFrame.new() | |
| 2069 | end | |
| 2070 | return CFrame.new( | |
| 2071 | v0.x, v0.y, v0.z, | |
| 2072 | v1.x, v1.y, v1.z, | |
| 2073 | v2.x, v2.y, v2.z, | |
| 2074 | v3.x, v3.y, v3.z) | |
| 2075 | end | |
| 2076 | ---------------------------------------------------- | |
| 2077 | function genWeld(a,b) | |
| 2078 | local w = Instance.new("Weld",a)
| |
| 2079 | w.Part0 = a | |
| 2080 | w.Part1 = b | |
| 2081 | return w | |
| 2082 | end | |
| 2083 | function weld(a, b) | |
| 2084 | local weld = Instance.new("Weld")
| |
| 2085 | weld.Name = "W" | |
| 2086 | weld.Part0 = a | |
| 2087 | weld.Part1 = b | |
| 2088 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 2089 | weld.Parent = a | |
| 2090 | return weld; | |
| 2091 | end | |
| 2092 | ---------------------------------------------------- | |
| 2093 | function Lerp(c1,c2,al) | |
| 2094 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 2095 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 2096 | for i,v in pairs(com1) do | |
| 2097 | com1[i] = v+(com2[i]-v)*al | |
| 2098 | end | |
| 2099 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 2100 | end | |
| 2101 | ------------------------------------------------------------------- | |
| 2102 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 2103 | local wld = Instance.new("Weld", wp1)
| |
| 2104 | wld.Part0 = wp0 | |
| 2105 | wld.Part1 = wp1 | |
| 2106 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 2107 | end | |
| 2108 | ---------------------------------------------------- | |
| 2109 | function weld5(part0, part1, c0, c1) | |
| 2110 | weeld=Instance.new("Weld", part0)
| |
| 2111 | weeld.Part0=part0 | |
| 2112 | weeld.Part1=part1 | |
| 2113 | weeld.C0=c0 | |
| 2114 | weeld.C1=c1 | |
| 2115 | return weeld | |
| 2116 | end | |
| 2117 | ---------------------------------------------------- | |
| 2118 | function HasntTouched(plrname) | |
| 2119 | local ret = true | |
| 2120 | for _, v in pairs(Touche) do | |
| 2121 | if v == plrname then | |
| 2122 | ret = false | |
| 2123 | end | |
| 2124 | end | |
| 2125 | return ret | |
| 2126 | end | |
| 2127 | ---------------------------------------------------- | |
| 2128 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 2129 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 2130 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 2131 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 2132 | newWeld(torso, hed, 0, 1.5, 0) | |
| 2133 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 2134 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 2135 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 2136 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 2137 | newWeld(root, torso, 0, -1, 0) | |
| 2138 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 2139 | ---------------------------------------------------- | |
| 2140 | ||
| 2141 | ------------------------------- | |
| 2142 | local animpose = "Idle" | |
| 2143 | local lastanimpose = "Idle" | |
| 2144 | local sine = 0 | |
| 2145 | local change = 1 | |
| 2146 | local val = 0 | |
| 2147 | local ffing = false | |
| 2148 | ------------------------------- | |
| 2149 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 2150 | --[[if char.Humanoid.Jump == true then | |
| 2151 | jump = true | |
| 2152 | else | |
| 2153 | jump = false | |
| 2154 | end]] | |
| 2155 | char.Humanoid.FreeFalling:connect(function(f) | |
| 2156 | if f then | |
| 2157 | ffing = true | |
| 2158 | else | |
| 2159 | ffing = false | |
| 2160 | end | |
| 2161 | end) | |
| 2162 | sine = sine + change | |
| 2163 | if jumpn == true then | |
| 2164 | animpose = "Jumping" | |
| 2165 | elseif ffing == true then | |
| 2166 | animpose = "Freefalling" | |
| 2167 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 2168 | animpose = "Idle" | |
| 2169 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 2170 | animpose = "Walking" | |
| 2171 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 2172 | animpose = "Running" | |
| 2173 | end | |
| 2174 | ||
| 2175 | lastanimpose = animpose | |
| 2176 | if Debounces.NoIdl == false then | |
| 2177 | if animpose == "Idle" then | |
| 2178 | change = 0.5 | |
| 2179 | 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) | |
| 2180 | 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) | |
| 2181 | 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) | |
| 2182 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 2183 | 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) | |
| 2184 | 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) | |
| 2185 | 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) | |
| 2186 | --[[rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(-10+4*math.cos(sine/8)),math.rad(-20-2*math.cos(sine/8)),math.rad(10+2*math.cos(sine/8))), 0.2) | |
| 2187 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(0),math.rad(10+2*math.cos(sine/8)),math.rad(-18-2*math.cos(sine/8))), 0.2) | |
| 2188 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(20+4*math.cos(sine/8)),0), 0.2) | |
| 2189 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(-12-3*math.cos(sine/8)),math.rad(0),0), 0.2) | |
| 2190 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+2*math.cos(sine/8)), math.rad(-20-4*math.cos(sine/8)), 0), 0.2) | |
| 2191 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/8)), math.rad(20+4*math.cos(sine/8)), math.rad(-5+1*math.cos(sine/8))), 0.2) | |
| 2192 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0-4*math.cos(sine/8)), math.rad(-10-4*math.cos(sine/8)), math.rad(5+1*math.cos(sine/8))), 0.2)]]-- | |
| 2193 | elseif animpose == "Walking" then | |
| 2194 | change = 1 | |
| 2195 | 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) | |
| 2196 | 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) | |
| 2197 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
| 2198 | 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) | |
| 2199 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
| 2200 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
| 2201 | elseif animpose == "Running" then | |
| 2202 | change = 1 | |
| 2203 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-20),math.rad(-22),math.rad(20+2*math.cos(sine/14))), 0.2) | |
| 2204 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-10),math.rad(10),math.rad(-14-2*math.cos(sine/14))), 0.2) | |
| 2205 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(20),0,0), 0.4) | |
| 2206 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 2207 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-40),0, math.rad(0)), 0.05) | |
| 2208 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(-8)), 0.4) | |
| 2209 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(8)), 0.4) | |
| 2210 | end | |
| 2211 | end | |
| 2212 | end) | |
| 2213 | ||
| 2214 | for _,c in pairs (jun.Character:GetChildren()) do | |
| 2215 | if c.className == "Hat" then | |
| 2216 | c.Handle.Transparency = 1 | |
| 2217 | end | |
| 2218 | end | |
| 2219 | ||
| 2220 | ||
| 2221 | Hair99 = Instance.new("Part")
| |
| 2222 | ||
| 2223 | Hair99.Parent = jun.Character | |
| 2224 | Hair99.Name = "Hair" | |
| 2225 | Hair99.formFactor = "Symmetric" | |
| 2226 | Hair99.Size = Vector3.new(1, 1, 1) | |
| 2227 | Hair99.CFrame = jun.Character.Head.CFrame | |
| 2228 | Hair99:BreakJoints() | |
| 2229 | Hair99.CanCollide = false | |
| 2230 | Hair99.TopSurface = "Smooth" | |
| 2231 | Hair99.BottomSurface = "Smooth" | |
| 2232 | Hair99.BrickColor = BrickColor.new("Really black")
| |
| 2233 | Hair99.Transparency = 1 | |
| 2234 | ||
| 2235 | Weld = Instance.new("Weld")
| |
| 2236 | Weld.Part0 = jun.Character.Head | |
| 2237 | Weld.Part1 = Hair99 | |
| 2238 | Weld.Parent = jun.Character.Head | |
| 2239 | Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2240 | ||
| 2241 | Hair7 = Instance.new("Part")
| |
| 2242 | Hair7.Parent = jun.Character | |
| 2243 | Hair7.Name = "Hair" | |
| 2244 | Hair7.CanCollide = false | |
| 2245 | Hair7.Locked = true | |
| 2246 | Hair7.TopSurface = "Smooth" | |
| 2247 | Hair7.BottomSurface = "Smooth" | |
| 2248 | Hair7.formFactor = "Symmetric" | |
| 2249 | Hair7.Material = "Neon" | |
| 2250 | Hair7.BrickColor = BrickColor.new("Really black")
| |
| 2251 | Hair7.CFrame = jun.Character.Torso.CFrame | |
| 2252 | Hair7.Size = Vector3.new(1, 1, 1) | |
| 2253 | Hair7.Transparency = 1 | |
| 2254 | ||
| 2255 | Mesh = Instance.new("SpecialMesh")
| |
| 2256 | Mesh.Parent = Hair99 | |
| 2257 | Mesh.MeshType = "Sphere" | |
| 2258 | Mesh.Offset = Vector3.new(0, 0.1, 0.1) | |
| 2259 | Mesh.Scale = Vector3.new(1.2, 1.2, 1.2) | |
| 2260 | ||
| 2261 | ||
| 2262 | Weld = Instance.new("Weld")
| |
| 2263 | Weld.Parent = jun.Character.Head | |
| 2264 | Weld.Part0 = jun.Character.Head | |
| 2265 | Weld.Part1 = Hair7 | |
| 2266 | Weld.C0 = CFrame.new(0, 1, 0) | |
| 2267 | ||
| 2268 | Mesh = Instance.new("SpecialMesh")
| |
| 2269 | Mesh.Offset = Vector3.new(0.2, -0.2, 0.2) | |
| 2270 | Mesh.Parent = Hair7 | |
| 2271 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 2272 | Mesh.MeshType = "FileMesh" | |
| 2273 | Mesh.MeshId = "http://www.roblox.com/asset/?id=476757756" | |
| 2274 | Mesh.TextureId = "" | |
| 2275 | ||
| 2276 | jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0) | |
| 2277 | ||
| 2278 | for i = 1, 6 do | |
| 2279 | Hair99.Transparency = Hair99.Transparency - .2 | |
| 2280 | Hair7.Transparency = Hair7.Transparency - .2 | |
| 2281 | wait(0) | |
| 2282 | end | |
| 2283 | ||
| 2284 | ------------------------------- TRANSFORM FUNC ----------------------------------------------------- | |
| 2285 | Charging = false | |
| 2286 | chargewait = false | |
| 2287 | mouse.KeyDown:connect(function(key) | |
| 2288 | if key == "h" then | |
| 2289 | if Charging == false and chargewait == false then | |
| 2290 | Charging = true | |
| 2291 | chargewait = true | |
| 2292 | if Debounces.CanAttack == true then | |
| 2293 | Debounces.CanAttack = false | |
| 2294 | Debounces.NoIdl = true | |
| 2295 | Debounces.on = true | |
| 2296 | ||
| 2297 | ||
| 2298 | ||
| 2299 | ||
| 2300 | for i = 1,20 do | |
| 2301 | 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) | |
| 2302 | 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) | |
| 2303 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
| 2304 | 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) | |
| 2305 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
| 2306 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
| 2307 | ||
| 2308 | if Debounces.on == false then break end | |
| 2309 | rs:wait() | |
| 2310 | end | |
| 2311 | pt=Instance.new('Part',torso)
| |
| 2312 | pt.Anchored=true | |
| 2313 | pt.CanCollide=false | |
| 2314 | pt.Locked = true | |
| 2315 | pt.Material = "Neon" | |
| 2316 | pt.FormFactor='Custom' | |
| 2317 | pt.Size=Vector3.new(1,1,1) | |
| 2318 | pt.BrickColor = BrickColor.new("Dark indigo")
| |
| 2319 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 2320 | pt.Transparency=.6 | |
| 2321 | ||
| 2322 | ||
| 2323 | msh=Instance.new('SpecialMesh',pt)
| |
| 2324 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 2325 | msh.Scale=Vector3.new(8,4,8) | |
| 2326 | pt2=pt:clone() | |
| 2327 | pt2.Parent = torso | |
| 2328 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 2329 | ||
| 2330 | ||
| 2331 | msh2=msh:clone() | |
| 2332 | msh2.Parent=pt2 | |
| 2333 | msh2.Scale=Vector3.new(10,5,10) | |
| 2334 | ||
| 2335 | 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}
| |
| 2336 | ||
| 2337 | bl = Instance.new("Part", char)
| |
| 2338 | bl.Locked = true | |
| 2339 | bl.Name = "Shell" | |
| 2340 | ||
| 2341 | ||
| 2342 | bl.Anchored = true | |
| 2343 | bl.Material = "Neon" | |
| 2344 | bl.CanCollide = false | |
| 2345 | bl.BrickColor = BrickColor.new("Dark indigo")
| |
| 2346 | bl.Transparency = 0 | |
| 2347 | bl.Reflectance = 0 | |
| 2348 | bl.BottomSurface = 0 | |
| 2349 | bl.TopSurface = 0 | |
| 2350 | bl.Shape = 0 | |
| 2351 | blm = Instance.new("SpecialMesh",bl)
| |
| 2352 | blm.MeshType = "Sphere" | |
| 2353 | blm.Scale = Vector3.new(1,1,1) | |
| 2354 | ||
| 2355 | ||
| 2356 | ||
| 2357 | ||
| 2358 | coroutine.resume(coroutine.create(function() | |
| 2359 | for i=1, math.huge, 4 do | |
| 2360 | if Charging == true then | |
| 2361 | rs:wait() | |
| 2362 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 2363 | blm.Scale = blm.Scale + Vector3.new(0.5, 0.5, 0.5) | |
| 2364 | bl.Transparency = bl.Transparency + 0.05 | |
| 2365 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
| 2366 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
| 2367 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
| 2368 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
| 2369 | elseif Charging == false then break | |
| 2370 | end | |
| 2371 | end | |
| 2372 | end)) | |
| 2373 | ||
| 2374 | ||
| 2375 | repeat | |
| 2376 | local p = Instance.new('Part',torso)
| |
| 2377 | p.formFactor = 'Custom' | |
| 2378 | p.Size = Vector3.new(1,1,1) | |
| 2379 | ||
| 2380 | p.CanCollide = false | |
| 2381 | p.Transparency = 0 | |
| 2382 | p.Anchored = true | |
| 2383 | p.Locked=true | |
| 2384 | p.Material = "Neon" | |
| 2385 | p.Transparency = 1 | |
| 2386 | p.BrickColor = BrickColor.new("Dark indigo")
| |
| 2387 | s = math.random(1,40)/10 | |
| 2388 | local m = Instance.new("BlockMesh",p)
| |
| 2389 | m.Scale = Vector3.new(s,s,s) | |
| 2390 | 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()) | |
| 2391 | --[[coroutine.wrap(function() | |
| 2392 | wait(2) | |
| 2393 | while Charging == true do | |
| 2394 | wait(2) | |
| 2395 | GroundWave1() | |
| 2396 | wait(2) | |
| 2397 | end | |
| 2398 | end)()]]-- | |
| 2399 | Spawn(function() | |
| 2400 | while rs:wait() do | |
| 2401 | if Charging == true then | |
| 2402 | 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))) | |
| 2403 | 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))) | |
| 2404 | 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)) | |
| 2405 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
| 2406 | 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))) | |
| 2407 | 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))) | |
| 2408 | elseif Charging == false then break | |
| 2409 | end | |
| 2410 | end | |
| 2411 | end) | |
| 2412 | Spawn(function() | |
| 2413 | while rs:wait() do | |
| 2414 | if p.Transparency >= 1 then p:Destroy() break end | |
| 2415 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
| 2416 | p.Transparency = p.Transparency+0.01 | |
| 2417 | end | |
| 2418 | end) | |
| 2419 | ||
| 2420 | ||
| 2421 | ||
| 2422 | ||
| 2423 | local Transforming = true | |
| 2424 | hum.WalkSpeed = 0 | |
| 2425 | local fx = Instance.new("Part",torso)
| |
| 2426 | larm.Anchored = true | |
| 2427 | rarm.Anchored = true | |
| 2428 | rleg.Anchored = true | |
| 2429 | lleg.Anchored = true | |
| 2430 | torso.Anchored = true | |
| 2431 | hed.Anchored = true | |
| 2432 | fx.Anchored = true | |
| 2433 | fx.Material = "Neon" | |
| 2434 | fx.CanCollide = false | |
| 2435 | fx.Locked = true | |
| 2436 | fx.Transparency = 1 | |
| 2437 | fx.Material = "Neon" | |
| 2438 | fx.Size = Vector3.new(5,5,5) | |
| 2439 | fx.TopSurface = "SmoothNoOutlines" | |
| 2440 | fx.BottomSurface = "SmoothNoOutlines" | |
| 2441 | fx.BrickColor = BrickColor.new("Dark indigo")
| |
| 2442 | fxm = Instance.new("SpecialMesh",fx)
| |
| 2443 | fxm.MeshType = "Sphere" | |
| 2444 | fxm.Scale = Vector3.new(1,1,1) | |
| 2445 | for i = 1, 20 do rs:wait() | |
| 2446 | fx.Transparency = fx.Transparency - (1/20) | |
| 2447 | fx.CFrame = torso.CFrame | |
| 2448 | fxm.Scale = fxm.Scale + Vector3.new(0.1,0.1,0.1) | |
| 2449 | rs:wait() | |
| 2450 | end | |
| 2451 | ---------------------------------------------------- | |
| 2452 | GroundWave = function() | |
| 2453 | if Transforming == true then | |
| 2454 | local wave = Instance.new("Part", torso)
| |
| 2455 | wave.BrickColor = BrickColor.new("Dark indigo")
| |
| 2456 | wave.Anchored = true | |
| 2457 | wave.CanCollide = false | |
| 2458 | wave.Locked = true | |
| 2459 | wave.Size = Vector3.new(1, 1, 1) | |
| 2460 | wave.TopSurface = "Smooth" | |
| 2461 | wave.BottomSurface = "Smooth" | |
| 2462 | wave.Transparency = 0.35 | |
| 2463 | wave.CFrame = fx.CFrame | |
| 2464 | wm = Instance.new("SpecialMesh", wave)
| |
| 2465 | wm.MeshType = "Sphere" | |
| 2466 | wm.Scale = Vector3.new(1,1,1) | |
| 2467 | coroutine.wrap(function() | |
| 2468 | for i = 1, 18, 1 do | |
| 2469 | wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2) | |
| 2470 | --wave.Size = wm.Scale | |
| 2471 | wave.CFrame = fx.CFrame | |
| 2472 | wave.Transparency = i/14 | |
| 2473 | wait() | |
| 2474 | end | |
| 2475 | wait() | |
| 2476 | wave:Destroy() | |
| 2477 | end)() | |
| 2478 | elseif Transforming == false then | |
| 2479 | wait() | |
| 2480 | end | |
| 2481 | end | |
| 2482 | ||
| 2483 | for i = 1, 100 do rs:wait() | |
| 2484 | fx.CFrame = torso.CFrame | |
| 2485 | end | |
| 2486 | ||
| 2487 | Spawn(function() | |
| 2488 | while wait(1) do | |
| 2489 | GroundWave() | |
| 2490 | end | |
| 2491 | end) | |
| 2492 | ||
| 2493 | wait(4) | |
| 2494 | ||
| 2495 | Transforming = false | |
| 2496 | ||
| 2497 | for i = 1, 20 do rs:wait() | |
| 2498 | fx.Transparency = fx.Transparency + (1/20) | |
| 2499 | fx.CFrame = torso.CFrame | |
| 2500 | fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5) | |
| 2501 | rs:wait() | |
| 2502 | end | |
| 2503 | ||
| 2504 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 2505 | local wave = Instance.new("Part", torso)
| |
| 2506 | wave.BrickColor = workspace.Base.BrickColor | |
| 2507 | wave.Material = workspace.Base.Material | |
| 2508 | wave.Anchored = true | |
| 2509 | wave.CanCollide = false | |
| 2510 | wave.Locked = true | |
| 2511 | wave.Size = Vector3.new(1, 1, 1) | |
| 2512 | wave.TopSurface = "Smooth" | |
| 2513 | wave.BottomSurface = "Smooth" | |
| 2514 | wave.Transparency = 0.35 | |
| 2515 | wave.CFrame = HandCF | |
| 2516 | wm = Instance.new("SpecialMesh", wave)
| |
| 2517 | wm.MeshId = "rbxassetid://3270017" | |
| 2518 | coroutine.wrap(function() | |
| 2519 | for i = 1, 14, 1 do | |
| 2520 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
| 2521 | wave.Size = wm.Scale | |
| 2522 | wave.CFrame = HandCF | |
| 2523 | wave.Transparency = i/14 | |
| 2524 | wait() | |
| 2525 | end | |
| 2526 | wait() | |
| 2527 | wave:Destroy() | |
| 2528 | end)() | |
| 2529 | hum.WalkSpeed = 17 | |
| 2530 | ---------------------------------------------------- | |
| 2531 | Blast = function() | |
| 2532 | local Colors = {"Dark indigo", "Dark indigo"}
| |
| 2533 | local wave = Instance.new("Part", torso)
| |
| 2534 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 2535 | wave.Anchored = true | |
| 2536 | wave.CanCollide = false | |
| 2537 | wave.Locked = true | |
| 2538 | wave.Size = Vector3.new(1, 1, 1) | |
| 2539 | wave.TopSurface = "Smooth" | |
| 2540 | wave.BottomSurface = "Smooth" | |
| 2541 | wave.Transparency = 0.35 | |
| 2542 | wave.CFrame = rarm.CFrame | |
| 2543 | wm = Instance.new("SpecialMesh", wave)
| |
| 2544 | wm.MeshType = "Sphere" | |
| 2545 | wm.Scale = Vector3.new(1,1,1) | |
| 2546 | z = Instance.new("Sound",wave)
| |
| 2547 | z.SoundId = "rbxassetid://237035051" | |
| 2548 | z.Volume = 1 | |
| 2549 | z.Pitch = .9 | |
| 2550 | z:Play() | |
| 2551 | coroutine.wrap(function() | |
| 2552 | for i = 1, 30, 1 do | |
| 2553 | wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4) | |
| 2554 | --wave.Size = wm.Scale | |
| 2555 | wave.CFrame = rarm.CFrame | |
| 2556 | wave.Transparency = (1/14) | |
| 2557 | rs:wait() | |
| 2558 | end | |
| 2559 | rs:wait() | |
| 2560 | wave:Destroy() | |
| 2561 | z:Destroy() | |
| 2562 | end)() | |
| 2563 | end | |
| 2564 | ||
| 2565 | larm.Anchored = false | |
| 2566 | rarm.Anchored = false | |
| 2567 | rleg.Anchored = false | |
| 2568 | lleg.Anchored = false | |
| 2569 | torso.Anchored = false | |
| 2570 | hed.Anchored = false | |
| 2571 | --------------------------------------------- | |
| 2572 | ||
| 2573 | ||
| 2574 | p = Instance.new("Part")
| |
| 2575 | p.Parent = jun.Character | |
| 2576 | p.Anchored = true | |
| 2577 | p.CanCollide = false | |
| 2578 | p.Transparency = 0.15 | |
| 2579 | p.formFactor = "Symmetric" | |
| 2580 | p.Size = Vector3.new(0, 0, 0) | |
| 2581 | p.TopSurface = "Smooth" | |
| 2582 | p.BottomSurface = "Smooth" | |
| 2583 | p.Name = "Sharingan" | |
| 2584 | p.Shape = "Ball" | |
| 2585 | p.CFrame = jun.Character.Torso.CFrame | |
| 2586 | p.BrickColor = BrickColor.new("Dark indigo")
| |
| 2587 | for i = 1 , 10 do | |
| 2588 | wait(0.07) | |
| 2589 | p.Size = p.Size + Vector3.new(4, 4, 4) | |
| 2590 | p.Transparency = p.Transparency + 0.1 | |
| 2591 | p.CFrame = jun.Character.Torso.CFrame | |
| 2592 | end | |
| 2593 | p:Destroy() | |
| 2594 | ||
| 2595 | local runServ = game:GetService("RunService").RenderStepped
| |
| 2596 | ||
| 2597 | local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
| |
| 2598 | local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
| |
| 2599 | local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
| |
| 2600 | HBill.Size = UDim2.new(15,0,2.2,0) | |
| 2601 | HBill.Name = "Health Display" | |
| 2602 | HBill.StudsOffset = Vector3.new(0,4,0) | |
| 2603 | HBill.AlwaysOnTop = true | |
| 2604 | HBill.Enabled = true | |
| 2605 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2606 | HMain.BackgroundTransparency = 1 | |
| 2607 | HMain.Size = UDim2.new(1,0,1,0) | |
| 2608 | HBarBack.Parent = HMain | |
| 2609 | HBarBack.BackgroundColor3 = Color3.new(0,0,0) | |
| 2610 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
| 2611 | HBarBack.BorderSizePixel = 2 | |
| 2612 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
| 2613 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
| 2614 | HBar.Parent = HBarBack | |
| 2615 | HBar.BackgroundColor3 = Color3.new(0, 1, 0) | |
| 2616 | HBar.BorderColor3 = Color3.new(0,0,0) | |
| 2617 | HBar.Size = UDim2.new(.5,0,1,0) | |
| 2618 | HHealth.BackgroundTransparency = 1 | |
| 2619 | HHealth.Size = UDim2.new(1,0,1,0) | |
| 2620 | HHealth.Font = "Bodoni" | |
| 2621 | HHealth.Text = " " | |
| 2622 | HHealth.TextScaled = true | |
| 2623 | HHealth.TextColor3 = Color3.new(220, 144, 149) | |
| 2624 | HHealth.TextStrokeColor3 = BrickColor.new("Really black").Color
| |
| 2625 | HHealth.TextStrokeTransparency = 0 | |
| 2626 | HName.Parent = HMain | |
| 2627 | HName.BackgroundTransparency = 1 | |
| 2628 | HName.Size = UDim2.new(1,0,.5,0) | |
| 2629 | HName.Font = "Bodoni" | |
| 2630 | HName.Text = "Black Goku" | |
| 2631 | HName.TextScaled = true | |
| 2632 | HName.TextColor3 = BrickColor.new("Carnation pink").Color
| |
| 2633 | HName.TextStrokeColor3 = Color3.new(0,0,0) | |
| 2634 | HName.TextStrokeTransparency = 0 | |
| 2635 | HName.TextYAlignment = "Top" | |
| 2636 | ---------------------------------------------------------- | |
| 2637 | -------------------------------------------------------------------------------------------- | |
| 2638 | z = Instance.new("Sound", char)
| |
| 2639 | z.SoundId = "rbxassetid://658752546" | |
| 2640 | z.Looped = true | |
| 2641 | z.Pitch = 1 | |
| 2642 | z.Volume = 4 | |
| 2643 | wait(.1) | |
| 2644 | z:Play() | |
| 2645 | ----------------------------------------------------- | |
| 2646 | ||
| 2647 | --------------------------------------------------- | |
| 2648 | ||
| 2649 | for u, c in pairs (jun.Character:GetChildren()) do -- This func removes the | |
| 2650 | if c.className == "Hat" then -- base form hair. | |
| 2651 | c.Handle.Transparency = 0 -- Put after transformation | |
| 2652 | end | |
| 2653 | if c.Name == "Hair" then | |
| 2654 | c:Remove() | |
| 2655 | end | |
| 2656 | end | |
| 2657 | ||
| 2658 | ---------------------------------------------------- | |
| 2659 | Magik = function() | |
| 2660 | Spawn(function() | |
| 2661 | local function lerp(a,b,c) | |
| 2662 | return a+(b-a)*c | |
| 2663 | end | |
| 2664 | local function rndRange(rng) | |
| 2665 | return math.random(-rng*1000,rng*1000)/1000 | |
| 2666 | end | |
| 2667 | local magik = Instance.new("Part", lleg)
| |
| 2668 | local Colors = {"Really black", "Really black"}
| |
| 2669 | magik.Anchored = true | |
| 2670 | magik.Locked = true | |
| 2671 | magik.Material = "Neon" | |
| 2672 | magik.FormFactor = "Custom" | |
| 2673 | magik.Size = Vector3.new(1.2, 1.2, 1.2) | |
| 2674 | magik.TopSurface = "Smooth" | |
| 2675 | magik.BottomSurface = "Smooth" | |
| 2676 | magik.Transparency = 0 | |
| 2677 | magik.CanCollide = false | |
| 2678 | ||
| 2679 | if holy == false then | |
| 2680 | magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 2681 | else | |
| 2682 | magik.BrickColor = BrickColor.new("Really black")
| |
| 2683 | end | |
| 2684 | ||
| 2685 | local mr = math.rad | |
| 2686 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
| 2687 | local cf = lleg.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
| 2688 | magik.CFrame = cf | |
| 2689 | for i = 0, 1, .05 do | |
| 2690 | local newTrans = lerp(0.5, 1, i) | |
| 2691 | local ns = lerp(1,1.2,i) | |
| 2692 | magik.Transparency = newTrans | |
| 2693 | magik.Size = Vector3.new(ns,ns,ns) | |
| 2694 | magik.CFrame = cf | |
| 2695 | rs:wait() | |
| 2696 | end | |
| 2697 | magik:Destroy() | |
| 2698 | wait() | |
| 2699 | end) | |
| 2700 | end | |
| 2701 | ---------------------------------------------------- | |
| 2702 | Magik2 = function() | |
| 2703 | Spawn(function() | |
| 2704 | local function lerp(a,b,c) | |
| 2705 | return a+(b-a)*c | |
| 2706 | end | |
| 2707 | local function rndRange(rng) | |
| 2708 | return math.random(-rng*1000,rng*1000)/1000 | |
| 2709 | end | |
| 2710 | local magik2 = Instance.new("Part", rleg)
| |
| 2711 | local Colors = {"Really black", "Really black"}
| |
| 2712 | magik2.Anchored = true | |
| 2713 | magik2.Locked = true | |
| 2714 | magik2.Material = "Neon" | |
| 2715 | magik2.FormFactor = "Custom" | |
| 2716 | magik2.Size = Vector3.new(1.2, 1.2, 1.2) | |
| 2717 | magik2.TopSurface = "Smooth" | |
| 2718 | magik2.BottomSurface = "Smooth" | |
| 2719 | magik2.Transparency = 0 | |
| 2720 | magik2.CanCollide = false | |
| 2721 | ||
| 2722 | if holy == false then | |
| 2723 | magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 2724 | else | |
| 2725 | magik2.BrickColor = BrickColor.new("Really black")
| |
| 2726 | end | |
| 2727 | ||
| 2728 | local mr = math.rad | |
| 2729 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
| 2730 | local cf = rleg.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
| 2731 | magik2.CFrame = cf | |
| 2732 | for i = 0, 1, .05 do | |
| 2733 | local newTrans = lerp(0.5, 1, i) | |
| 2734 | local ns = lerp(1,1.2,i) | |
| 2735 | magik2.Transparency = newTrans | |
| 2736 | magik2.Size = Vector3.new(ns,ns,ns) | |
| 2737 | magik2.CFrame = cf | |
| 2738 | rs:wait() | |
| 2739 | end | |
| 2740 | magik2:Destroy() | |
| 2741 | wait() | |
| 2742 | end) | |
| 2743 | end | |
| 2744 | ---------------------------------------------------- | |
| 2745 | ||
| 2746 | Magik3 = function() | |
| 2747 | Spawn(function() | |
| 2748 | local function lerp(a,b,c) | |
| 2749 | return a+(b-a)*c | |
| 2750 | end | |
| 2751 | local function rndRange(rng) | |
| 2752 | return math.random(-rng*1000,rng*1000)/1000 | |
| 2753 | end | |
| 2754 | local magik3 = Instance.new("Part", lleg)
| |
| 2755 | local Colors = {"Really black", "Really black"}
| |
| 2756 | magik3.Anchored = true | |
| 2757 | magik3.Locked = true | |
| 2758 | magik3.Material = "Neon" | |
| 2759 | magik3.FormFactor = "Custom" | |
| 2760 | magik3.Size = Vector3.new(1.2, 1.2, 1.2) | |
| 2761 | magik3.TopSurface = "Smooth" | |
| 2762 | magik3.BottomSurface = "Smooth" | |
| 2763 | magik3.Transparency = 0 | |
| 2764 | magik3.CanCollide = false | |
| 2765 | ||
| 2766 | if holy == false then | |
| 2767 | magik3.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 2768 | else | |
| 2769 | magik3.BrickColor = BrickColor.new("Really black")
| |
| 2770 | end | |
| 2771 | ||
| 2772 | local mr = math.rad | |
| 2773 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
| 2774 | local cf = lleg.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
| 2775 | magik3.CFrame = cf | |
| 2776 | for i = 0, 1, .05 do | |
| 2777 | local newTrans = lerp(0.5, 1, i) | |
| 2778 | local ns = lerp(1,1.2,i) | |
| 2779 | magik3.Transparency = newTrans | |
| 2780 | magik3.Size = Vector3.new(ns,ns,ns) | |
| 2781 | magik3.CFrame = cf | |
| 2782 | rs:wait() | |
| 2783 | end | |
| 2784 | magik3:Destroy() | |
| 2785 | wait() | |
| 2786 | end) | |
| 2787 | end | |
| 2788 | -------------------------------------- | |
| 2789 | ||
| 2790 | Magik4 = function() | |
| 2791 | Spawn(function() | |
| 2792 | local function lerp(a,b,c) | |
| 2793 | return a+(b-a)*c | |
| 2794 | end | |
| 2795 | local function rndRange(rng) | |
| 2796 | return math.random(-rng*1000,rng*1000)/1000 | |
| 2797 | end | |
| 2798 | local magik4 = Instance.new("Part", rleg)
| |
| 2799 | local Colors = {"Really black", "Really black"}
| |
| 2800 | magik4.Anchored = true | |
| 2801 | magik4.Locked = true | |
| 2802 | magik4.Material = "Neon" | |
| 2803 | magik4.FormFactor = "Custom" | |
| 2804 | magik4.Size = Vector3.new(1.2, 1.2, 1.2) | |
| 2805 | magik4.TopSurface = "Smooth" | |
| 2806 | magik4.BottomSurface = "Smooth" | |
| 2807 | magik4.Transparency = 0 | |
| 2808 | magik4.CanCollide = false | |
| 2809 | ||
| 2810 | if holy == false then | |
| 2811 | magik4.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 2812 | else | |
| 2813 | magik4.BrickColor = BrickColor.new("Really black")
| |
| 2814 | end | |
| 2815 | ||
| 2816 | local mr = math.rad | |
| 2817 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
| 2818 | local cf = rleg.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
| 2819 | magik4.CFrame = cf | |
| 2820 | for i = 0, 1, .05 do | |
| 2821 | local newTrans = lerp(0.5, 1, i) | |
| 2822 | local ns = lerp(1,1.2,i) | |
| 2823 | magik4.Transparency = newTrans | |
| 2824 | magik4.Size = Vector3.new(ns,ns,ns) | |
| 2825 | magik4.CFrame = cf | |
| 2826 | rs:wait() | |
| 2827 | end | |
| 2828 | magik4:Destroy() | |
| 2829 | wait() | |
| 2830 | end) | |
| 2831 | end | |
| 2832 | ------------------------------------------------------------- | |
| 2833 | ||
| 2834 | ||
| 2835 | Spawn(function() | |
| 2836 | while wait(.1) do | |
| 2837 | Magik() | |
| 2838 | end | |
| 2839 | end) | |
| 2840 | ||
| 2841 | Spawn(function() | |
| 2842 | while wait(.1) do | |
| 2843 | Magik2() | |
| 2844 | end | |
| 2845 | end) | |
| 2846 | ||
| 2847 | Spawn(function() | |
| 2848 | while wait(.1) do | |
| 2849 | Magik3() | |
| 2850 | end | |
| 2851 | end) | |
| 2852 | ||
| 2853 | ||
| 2854 | Spawn(function() | |
| 2855 | while wait(.1) do | |
| 2856 | Magik4() | |
| 2857 | end | |
| 2858 | end) | |
| 2859 | ||
| 2860 | ||
| 2861 | ------------ | |
| 2862 | z = Instance.new("Sound", char)
| |
| 2863 | z.SoundId = "rbxassetid://703383214" | |
| 2864 | z.Looped = true | |
| 2865 | z.Pitch = 1 | |
| 2866 | z.Volume = 4 | |
| 2867 | wait(.1) | |
| 2868 | z:Play() | |
| 2869 | ||
| 2870 | ||
| 2871 | ------------------------------------------------------------------ | |
| 2872 | ||
| 2873 | jun.Character.Humanoid.MaxHealth = 1000000000 | |
| 2874 | jun.Character.Humanoid.Health = 1000000000 | |
| 2875 | ||
| 2876 | ------------------------------------------------------------------------------------- | |
| 2877 | hed.face.Texture = "rbxassetid://601974383" | |
| 2878 | ----------------------- SHIFT TO RUN FUNC -------------------------- | |
| 2879 | ||
| 2880 | local player = game.Players.LocalPlayer | |
| 2881 | local pchar = player.Character | |
| 2882 | local mouse = player:GetMouse() | |
| 2883 | local cam = workspace.CurrentCamera | |
| 2884 | ||
| 2885 | local rad = math.rad | |
| 2886 | ||
| 2887 | local keysDown = {}
| |
| 2888 | local flySpeed = 0 | |
| 2889 | local MAX_FLY_SPEED = 150 | |
| 2890 | ||
| 2891 | local canFly = false | |
| 2892 | local flyToggled = false | |
| 2893 | ||
| 2894 | local forward, side = 0, 0 | |
| 2895 | local lastForward, lastSide = 0, 0 | |
| 2896 | ||
| 2897 | local floatBP = Instance.new("BodyPosition")
| |
| 2898 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
| 2899 | local flyBV = Instance.new("BodyVelocity")
| |
| 2900 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
| 2901 | local turnBG = Instance.new("BodyGyro")
| |
| 2902 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 2903 | ||
| 2904 | mouse.KeyDown:connect(function(key) | |
| 2905 | keysDown[key] = true | |
| 2906 | ||
| 2907 | if key == "f" then | |
| 2908 | flyToggled = not flyToggled | |
| 2909 | ||
| 2910 | if not flyToggled then | |
| 2911 | stanceToggle = "Normal" | |
| 2912 | floatBP.Parent = nil | |
| 2913 | flyBV.Parent = nil | |
| 2914 | turnBG.Parent = nil | |
| 2915 | root.Velocity = Vector3.new() | |
| 2916 | pchar.Humanoid.PlatformStand = false | |
| 2917 | end | |
| 2918 | end | |
| 2919 | ||
| 2920 | end) | |
| 2921 | mouse.KeyUp:connect(function(key) | |
| 2922 | keysDown[key] = nil | |
| 2923 | end) | |
| 2924 | ||
| 2925 | local function updateFly() | |
| 2926 | ||
| 2927 | if not flyToggled then return end | |
| 2928 | ||
| 2929 | lastForward = forward | |
| 2930 | lastSide = side | |
| 2931 | ||
| 2932 | forward = 0 | |
| 2933 | side = 0 | |
| 2934 | ||
| 2935 | if keysDown.w then | |
| 2936 | forward = forward + 1 | |
| 2937 | end | |
| 2938 | if keysDown.s then | |
| 2939 | forward = forward - 1 | |
| 2940 | end | |
| 2941 | if keysDown.a then | |
| 2942 | side = side - 1 | |
| 2943 | end | |
| 2944 | if keysDown.d then | |
| 2945 | side = side + 1 | |
| 2946 | end | |
| 2947 | ||
| 2948 | canFly = (forward ~= 0 or side ~= 0) | |
| 2949 | ||
| 2950 | if canFly then | |
| 2951 | stanceToggle = "Floating" | |
| 2952 | turnBG.Parent = root | |
| 2953 | floatBP.Parent = nil | |
| 2954 | flyBV.Parent = root | |
| 2955 | ||
| 2956 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
| 2957 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
| 2958 | else | |
| 2959 | floatBP.position = root.Position | |
| 2960 | floatBP.Parent = root | |
| 2961 | ||
| 2962 | flySpeed = flySpeed - 1 | |
| 2963 | if flySpeed < 0 then flySpeed = 0 end | |
| 2964 | end | |
| 2965 | ||
| 2966 | local camCF = cam.CoordinateFrame | |
| 2967 | local in_forward = canFly and forward or lastForward | |
| 2968 | local in_side = canFly and side or lastSide | |
| 2969 | ||
| 2970 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
| 2971 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
| 2972 | ||
| 2973 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
| 2974 | 0) | |
| 2975 | end | |
| 2976 | ||
| 2977 | game:service'RunService'.RenderStepped:connect(function() | |
| 2978 | if flyToggled then | |
| 2979 | pchar.Humanoid.PlatformStand = true | |
| 2980 | end | |
| 2981 | updateFly() | |
| 2982 | end) | |
| 2983 | ||
| 2984 | ||
| 2985 | ------------------------------------------- | |
| 2986 | repeat wait() until game.Players.LocalPlayer | |
| 2987 | local Mouse = game.Players.LocalPlayer:GetMouse() | |
| 2988 | local Plr = game.Players.LocalPlayer | |
| 2989 | ||
| 2990 | Mouse.KeyDown:connect(function(KeyDown) | |
| 2991 | if KeyDown == "0" then | |
| 2992 | Plr.Character.Humanoid.WalkSpeed = 40 | |
| 2993 | end | |
| 2994 | end) | |
| 2995 | ||
| 2996 | Mouse.KeyUp:connect(function(KeyUp) | |
| 2997 | if KeyUp == "0" then | |
| 2998 | Plr.Character.Humanoid.WalkSpeed = 17 | |
| 2999 | end | |
| 3000 | end) | |
| 3001 | ------------------------------------- | |
| 3002 | ||
| 3003 | ||
| 3004 | ------------------------------- | |
| 3005 | local animpose = "Idle" | |
| 3006 | local lastanimpose = "Idle" | |
| 3007 | local sine = 0 | |
| 3008 | local change = 1 | |
| 3009 | local val = 0 | |
| 3010 | local ffing = false | |
| 3011 | ------------------------------- | |
| 3012 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 3013 | --[[if char.Humanoid.Jump == true then | |
| 3014 | jump = true | |
| 3015 | else | |
| 3016 | jump = false | |
| 3017 | end]] | |
| 3018 | char.Humanoid.FreeFalling:connect(function(f) | |
| 3019 | if f then | |
| 3020 | ffing = true | |
| 3021 | else | |
| 3022 | ffing = false | |
| 3023 | end | |
| 3024 | end) | |
| 3025 | sine = sine + change | |
| 3026 | if jumpn == true then | |
| 3027 | animpose = "Jumping" | |
| 3028 | elseif ffing == true then | |
| 3029 | animpose = "Freefalling" | |
| 3030 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 3031 | animpose = "Idle" | |
| 3032 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 3033 | animpose = "Walking" | |
| 3034 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 3035 | animpose = "Running" | |
| 3036 | end | |
| 3037 | ||
| 3038 | lastanimpose = animpose | |
| 3039 | if Debounces.NoIdl == false then | |
| 3040 | if animpose == "Idle" then | |
| 3041 | change = 0.5 | |
| 3042 | 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) | |
| 3043 | 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) | |
| 3044 | 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) | |
| 3045 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 3046 | 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) | |
| 3047 | 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) | |
| 3048 | 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) | |
| 3049 | --[[rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(-10+4*math.cos(sine/8)),math.rad(-20-2*math.cos(sine/8)),math.rad(10+2*math.cos(sine/8))), 0.2) | |
| 3050 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/8),0)*CFrame.Angles(math.rad(0),math.rad(10+2*math.cos(sine/8)),math.rad(-18-2*math.cos(sine/8))), 0.2) | |
| 3051 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(20+4*math.cos(sine/8)),0), 0.2) | |
| 3052 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(-12-3*math.cos(sine/8)),math.rad(0),0), 0.2) | |
| 3053 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+2*math.cos(sine/8)), math.rad(-20-4*math.cos(sine/8)), 0), 0.2) | |
| 3054 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/8)), math.rad(20+4*math.cos(sine/8)), math.rad(-5+1*math.cos(sine/8))), 0.2) | |
| 3055 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0-4*math.cos(sine/8)), math.rad(-10-4*math.cos(sine/8)), math.rad(5+1*math.cos(sine/8))), 0.2)]]-- | |
| 3056 | elseif animpose == "Walking" then | |
| 3057 | change = 1 | |
| 3058 | 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) | |
| 3059 | 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) | |
| 3060 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
| 3061 | 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) | |
| 3062 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
| 3063 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
| 3064 | elseif animpose == "Running" then | |
| 3065 | change = 1 | |
| 3066 | 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) | |
| 3067 | 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) | |
| 3068 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
| 3069 | 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) | |
| 3070 | 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) | |
| 3071 | 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) | |
| 3072 | end | |
| 3073 | end | |
| 3074 | end) | |
| 3075 | ------------------------------------------------------------------------------------------------- | |
| 3076 | runServ:connect(function() | |
| 3077 | HHealth.Text = "["..math.floor(game.Players.LocalPlayer.Character.Humanoid.Health).."]" | |
| 3078 | HBar:TweenSize(UDim2.new((game.Players.LocalPlayer.Character.Humanoid.Health/game.Players.LocalPlayer.Character.Humanoid.MaxHealth),0,1,0), _, "Linear", .4) | |
| 3079 | end) | |
| 3080 | ||
| 3081 | local p = game.Players.LocalPlayer | |
| 3082 | local char = p.Character | |
| 3083 | local mouse = p:GetMouse() | |
| 3084 | local torso = char.Torso | |
| 3085 | ||
| 3086 | local rot ={4}
| |
| 3087 | ||
| 3088 | local pe1 = Instance.new("ParticleEmitter",torso)
| |
| 3089 | ||
| 3090 | pe1.Transparency = NumberSequence.new(0.2,0.2) | |
| 3091 | ||
| 3092 | pe1.Size = NumberSequence.new(7,7,7) | |
| 3093 | pe1.LockedToPart = true | |
| 3094 | ||
| 3095 | pe1.Color = ColorSequence.new(Color3.new(255,0,0)) | |
| 3096 | ||
| 3097 | pe1.Texture = "rbxassetid://" | |
| 3098 | pe1.Lifetime = NumberRange.new(0.1,0.1) | |
| 3099 | pe1.Rate = 6 | |
| 3100 | pe1.RotSpeed = NumberRange.new(0,0) | |
| 3101 | pe1.Rotation = NumberRange.new(rot[math.random(1,#rot)]) | |
| 3102 | pe1.Speed = NumberRange.new(0,0) | |
| 3103 | ||
| 3104 | local pe2 = Instance.new("ParticleEmitter",torso)
| |
| 3105 | ||
| 3106 | pe2.Transparency = NumberSequence.new(0,0.85000002384186,0.375,0.13749998807907,0.58124995231628,0.018750011920929,0.11874997615814,0.14999997615814,0.58749997615814,0.125,0.83749997615814,0.050000011920929,0.94999998807907,0.25) | |
| 3107 | ||
| 3108 | - | pe2.Size = NumberSequence.new(9,9,9) |
| 3108 | + | pe2.Size = NumberSequence.new(7,7,7) |
| 3109 | pe2.LockedToPart = true | |
| 3110 | ||
| 3111 | pe2.Color = ColorSequence.new(Color3.new(220, 144, 149)) | |
| 3112 | ||
| 3113 | pe2.Texture = "rbxassetid://635877610" | |
| 3114 | pe2.Lifetime = NumberRange.new(0.1,0.1) | |
| 3115 | - | pe2.Rate = 50 |
| 3115 | + | pe2.Rate = 5 |
| 3116 | pe2.RotSpeed = NumberRange.new(0,0) | |
| 3117 | pe2Rotation = NumberRange.new(rot[math.random(1,#rot)]) | |
| 3118 | pe2Speed = NumberRange.new(0,0) | |
| 3119 | ||
| 3120 | local pe3 = Instance.new("ParticleEmitter",torso)
| |
| 3121 | ||
| 3122 | pe3.Transparency = NumberSequence.new(0.2,0.2) | |
| 3123 | ||
| 3124 | pe3.Size = NumberSequence.new(7,7,7) | |
| 3125 | pe3.LockedToPart = true | |
| 3126 | ||
| 3127 | pe3.Color = ColorSequence.new(Color3.new(0,0,0)) | |
| 3128 | ||
| 3129 | pe3.Texture = "rbxassetid://278520320" | |
| 3130 | pe3.Lifetime = NumberRange.new(0.1,0.1) | |
| 3131 | pe3.Rate = 6 | |
| 3132 | pe3.RotSpeed = NumberRange.new(0,0) | |
| 3133 | pe3.Rotation = NumberRange.new(rot[math.random(1,#rot)]) | |
| 3134 | pe3.Speed = NumberRange.new(0,0) | |
| 3135 | ||
| 3136 | ||
| 3137 | ||
| 3138 | --------------------------------------------------- | |
| 3139 | ||
| 3140 | ---------------------------------------- | |
| 3141 | ||
| 3142 | ||
| 3143 | for _,c in pairs (jun.Character:GetChildren()) do | |
| 3144 | if c.className == "Hat" then | |
| 3145 | c.Handle.Transparency = 1 | |
| 3146 | end | |
| 3147 | end | |
| 3148 | ||
| 3149 | Hair22 = Instance.new("Part")
| |
| 3150 | ||
| 3151 | Hair22.Parent = jun.Character | |
| 3152 | Hair22.Name = "Hair" | |
| 3153 | Hair22.formFactor = "Symmetric" | |
| 3154 | Hair22.Size = Vector3.new(1, 1, 1) | |
| 3155 | Hair22.CFrame = jun.Character.Head.CFrame | |
| 3156 | Hair22:BreakJoints() | |
| 3157 | Hair22.CanCollide = false | |
| 3158 | Hair22.TopSurface = "Smooth" | |
| 3159 | Hair22.BottomSurface = "Smooth" | |
| 3160 | Hair22.BrickColor = BrickColor.new("Carnation pink")
| |
| 3161 | Hair22.Transparency = 1 | |
| 3162 | ||
| 3163 | Weld = Instance.new("Weld")
| |
| 3164 | Weld.Part0 = jun.Character.Head | |
| 3165 | Weld.Part1 = Hair22 | |
| 3166 | Weld.Parent = jun.Character.Head | |
| 3167 | Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 3168 | ||
| 3169 | Mesh = Instance.new("SpecialMesh")
| |
| 3170 | Mesh.Parent = Hair22 | |
| 3171 | Mesh.MeshType = "Sphere" | |
| 3172 | Mesh.Scale = Vector3.new(0, 0, 0) | |
| 3173 | ||
| 3174 | Hair4 = Instance.new("Part")
| |
| 3175 | Hair4.Parent = jun.Character | |
| 3176 | Hair4.Name = "Hair" | |
| 3177 | Hair4.CanCollide = false | |
| 3178 | Hair4.Locked = true | |
| 3179 | Hair4.TopSurface = "Smooth" | |
| 3180 | Hair4.BottomSurface = "Smooth" | |
| 3181 | Hair4.formFactor = "Symmetric" | |
| 3182 | Hair4.Material = "Neon" | |
| 3183 | Hair4.BrickColor = BrickColor.new("Carnation pink")
| |
| 3184 | Hair4.CFrame = jun.Character.Torso.CFrame | |
| 3185 | Hair4.Size = Vector3.new(0, 0, 0) | |
| 3186 | Hair4.Transparency = 1 | |
| 3187 | ||
| 3188 | Weld = Instance.new("Weld")
| |
| 3189 | Weld.Parent = jun.Character.Head | |
| 3190 | Weld.Part0 = jun.Character.Head | |
| 3191 | Weld.Part1 = Hair4 | |
| 3192 | Weld.C0 = CFrame.new(0, 1, 0) | |
| 3193 | ||
| 3194 | Mesh = Instance.new("SpecialMesh")
| |
| 3195 | Mesh.Offset = Vector3.new(0, 0, 0.5) | |
| 3196 | Mesh.Parent = Hair4 | |
| 3197 | Mesh.Scale = Vector3.new(0.05, 0.05, 0.05) | |
| 3198 | Mesh.MeshType = "FileMesh" | |
| 3199 | Mesh.MeshId = "http://www.roblox.com/asset/?id=502907463" | |
| 3200 | Mesh.TextureId = "" | |
| 3201 | ||
| 3202 | ||
| 3203 | ||
| 3204 | ||
| 3205 | --------------- other functions------------------------ | |
| 3206 | ||
| 3207 | for i = 1, 6 do | |
| 3208 | Hair22.Transparency = Hair22.Transparency - .2 | |
| 3209 | Hair4.Transparency = Hair4.Transparency - .2 | |
| 3210 | end | |
| 3211 | ||
| 3212 | ---------------------- blok meshs --------------------------------- | |
| 3213 | ||
| 3214 | char = jun.Character | |
| 3215 | ||
| 3216 | ||
| 3217 | until Charging == false | |
| 3218 | end | |
| 3219 | end | |
| 3220 | end | |
| 3221 | end) | |
| 3222 | ||
| 3223 | ||
| 3224 | ---------------------------------------------------- | |
| 3225 | ||
| 3226 | -------------------------------------------- | |
| 3227 | mouse.KeyUp:connect(function(key) | |
| 3228 | if key == "h" then | |
| 3229 | if Charging == true and chargewait == true then | |
| 3230 | chargewait = false | |
| 3231 | wait(1) | |
| 3232 | Charging = false | |
| 3233 | ||
| 3234 | --[[for i,v in pairs (torso:GetChildren()) do | |
| 3235 | if v:IsA("Sound") then
| |
| 3236 | v:Destroy() | |
| 3237 | end | |
| 3238 | end]] | |
| 3239 | ||
| 3240 | ||
| 3241 | --so("http://roblox.com/asset/?id=160867463",torso,1,0.7)
| |
| 3242 | ||
| 3243 | pt:Destroy() | |
| 3244 | pt2:Destroy() | |
| 3245 | bl:Destroy() | |
| 3246 | if Debounces.CanAttack == false then | |
| 3247 | Debounces.CanAttack = true | |
| 3248 | Debounces.NoIdl = false | |
| 3249 | Debounces.on = false | |
| 3250 | Debounces.grab = false | |
| 3251 | ||
| 3252 | end | |
| 3253 | end | |
| 3254 | end | |
| 3255 | end) | |
| 3256 | ---------------------------------------------------- | |
| 3257 | LocalPlayer = game:GetService("Players").LocalPlayer
| |
| 3258 | local lastCF=char.Torso.Position | |
| 3259 | local x1=Instance.new("Part",game.Workspace)
| |
| 3260 | x1.Name="Lightning" | |
| 3261 | x1.Size=Vector3.new(1,1,1) | |
| 3262 | x1.CanCollide=false | |
| 3263 | x1.Anchored=true | |
| 3264 | x1.Transparency=1 | |
| 3265 | Spawn(function() | |
| 3266 | while true do | |
| 3267 | wait(-1) | |
| 3268 | x1.CFrame=char.Torso.CFrame*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(50,360)))*CFrame.new(0,0,2.6) | |
| 3269 | end | |
| 3270 | end) | |
| 3271 | for i = 1,math.huge do | |
| 3272 | local dist2 = (lastCF-x1.Position).magnitude | |
| 3273 | local x2=Instance.new("Part",game.Workspace)
| |
| 3274 | x2.Name="Lightning2" | |
| 3275 | x2.Size=Vector3.new(1,1,1) | |
| 3276 | x2.Material="Neon" | |
| 3277 | x2.BrickColor=BrickColor.new("Really black")
| |
| 3278 | x2.CFrame=CFrame.new(lastCF,x1.Position)*CFrame.new(0,0,-dist2/2) | |
| 3279 | x2.CanCollide=false | |
| 3280 | x2.Anchored=true | |
| 3281 | local m = Instance.new("BlockMesh",x2)
| |
| 3282 | m.Scale = Vector3.new(0.5,0.5,dist2) | |
| 3283 | lastCF=x1.Position | |
| 3284 | spawn(function() | |
| 3285 | for i = 1,20 do | |
| 3286 | xx=m.Scale.x/2 | |
| 3287 | y=m.Scale.x/2 | |
| 3288 | m.Scale=m.Scale-Vector3.new(xx,y,0) | |
| 3289 | wait() | |
| 3290 | end | |
| 3291 | end) | |
| 3292 | game.Debris:AddItem(x2,1.5) | |
| 3293 | wait() | |
| 3294 | end | |
| 3295 | ||
| 3296 | ----------------------------------------------------- |