SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,game,owner = owner,game | |
| 3 | local RealPlayer = Player | |
| 4 | do | |
| 5 | print("FE Compatibility code by retram")
| |
| 6 | local rp = RealPlayer | |
| 7 | script.Parent = rp.Character | |
| 8 | ||
| 9 | --RemoteEvent for communicating | |
| 10 | local Event = Instance.new("RemoteEvent")
| |
| 11 | Event.Name = "UserInput_Event" | |
| 12 | ||
| 13 | --Fake event to make stuff like Mouse.KeyDown work | |
| 14 | local function fakeEvent() | |
| 15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 16 | t.connect = t.Connect | |
| 17 | return t | |
| 18 | end | |
| 19 | ||
| 20 | --Creating fake input objects with fake variables | |
| 21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
| |
| 22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 25 | end} | |
| 26 | --Merged 2 functions into one by checking amount of arguments | |
| 27 | CAS.UnbindAction = CAS.BindAction | |
| 28 | ||
| 29 | --This function will trigger the events that have been :Connect()'ed | |
| 30 | local function te(self,ev,...) | |
| 31 | local t = m[ev] | |
| 32 | if t and t._fakeEvent then | |
| 33 | for _,f in pairs(t.Functions) do | |
| 34 | f(...) | |
| 35 | end | |
| 36 | end | |
| 37 | end | |
| 38 | m.TrigEvent = te | |
| 39 | UIS.TrigEvent = te | |
| 40 | ||
| 41 | Event.OnServerEvent:Connect(function(plr,io) | |
| 42 | if plr~=rp then return end | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | if not io.isMouse then | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
| 51 | return m:TrigEvent(b and "Button2Down" or "Button2Up") | |
| 52 | end | |
| 53 | for _,t in pairs(CAS.Actions) do | |
| 54 | for _,k in pairs(t.Keys) do | |
| 55 | if k==io.KeyCode then | |
| 56 | t.Function(t.Name,io.UserInputState,io) | |
| 57 | end | |
| 58 | end | |
| 59 | end | |
| 60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 62 | end | |
| 63 | end) | |
| 64 | Event.Parent = NLS([==[ | |
| 65 | local Player = game:GetService("Players").LocalPlayer
| |
| 66 | local Event = script:WaitForChild("UserInput_Event")
| |
| 67 | local Mouse = Player:GetMouse() | |
| 68 | local UIS = game:GetService("UserInputService")
| |
| 69 | local input = function(io,a) | |
| 70 | if a then return end | |
| 71 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 72 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 73 | end | |
| 74 | UIS.InputBegan:Connect(input) | |
| 75 | UIS.InputEnded:Connect(input) | |
| 76 | local h,t | |
| 77 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 78 | --If player is not moving their mouse, client won't fire events | |
| 79 | while wait(1/30) do | |
| 80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 81 | h,t=Mouse.Hit,Mouse.Target | |
| 82 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 83 | end | |
| 84 | end]==],Player.Character) | |
| 85 | ||
| 86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 87 | --Real game object | |
| 88 | local _rg = game | |
| 89 | ||
| 90 | --Metatable for fake service | |
| 91 | local fsmt = {
| |
| 92 | __index = function(self,k) | |
| 93 | local s = rawget(self,"_RealService") | |
| 94 | if s then | |
| 95 | return typeof(s[k])=="function" | |
| 96 | and function(_,...)return s[k](s,...)end or s[k] | |
| 97 | end | |
| 98 | end, | |
| 99 | __newindex = function(self,k,v) | |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | if s then s[k]=v end | |
| 102 | end | |
| 103 | } | |
| 104 | local function FakeService(t,RealService) | |
| 105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 106 | return setmetatable(t,fsmt) | |
| 107 | end | |
| 108 | ||
| 109 | --Fake game object | |
| 110 | local g = {
| |
| 111 | GetService = function(self,s) | |
| 112 | return rawget(self,s) or _rg:GetService(s) | |
| 113 | end, | |
| 114 | Players = FakeService({
| |
| 115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 116 | },"Players"), | |
| 117 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 119 | RunService = FakeService({
| |
| 120 | _btrs = {},
| |
| 121 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 122 | BindToRenderStep = function(self,name,_,fun) | |
| 123 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 124 | end, | |
| 125 | UnbindFromRenderStep = function(self,name) | |
| 126 | self._btrs[name]:Disconnect() | |
| 127 | end, | |
| 128 | },"RunService") | |
| 129 | } | |
| 130 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 131 | g.service = g.GetService | |
| 132 | FakeService(g,game) | |
| 133 | --Changing owner to fake player object to support owner:GetMouse() | |
| 134 | game,owner = g,g.Players.LocalPlayer | |
| 135 | end local p = game.Players.LocalPlayer | |
| 136 | local char = p.Character | |
| 137 | local mouse = p:GetMouse() | |
| 138 | local larm = char["Left Arm"] | |
| 139 | local rarm = char["Right Arm"] | |
| 140 | local lleg = char["Left Leg"] | |
| 141 | local rleg = char["Right Leg"] | |
| 142 | local hed = char.Head | |
| 143 | local torso = char.Torso | |
| 144 | local hum = char.Humanoid | |
| 145 | local cam = game.Workspace.CurrentCamera | |
| 146 | local root = char.HumanoidRootPart | |
| 147 | local deb = false | |
| 148 | local shot = 0 | |
| 149 | local debris=game:service"Debris" | |
| 150 | local l = game:GetService("Lighting")
| |
| 151 | local rs = game:GetService("RunService").RenderStepped
| |
| 152 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 153 | math.randomseed(os.time()) | |
| 154 | for i,v in pairs (hed:GetChildren()) do | |
| 155 | if v:IsA("Sound") then
| |
| 156 | v:Destroy() | |
| 157 | end | |
| 158 | end | |
| 159 | -------------------------------------------------------------------- | |
| 160 | ||
| 161 | hed.face.Texture = "rbxassetid://589766751" | |
| 162 | ---------------------------------------------------- | |
| 163 | Debounces = {
| |
| 164 | CanAttack = true; | |
| 165 | NoIdl = false; | |
| 166 | Slashing = false; | |
| 167 | Slashed = false; | |
| 168 | RPunch = false; | |
| 169 | RPunched = false; | |
| 170 | LPunch = false; | |
| 171 | LPunched = false; | |
| 172 | } | |
| 173 | local Touche = {char.Name, }
| |
| 174 | ---------------------------------------------------- | |
| 175 | char["Body Colors"].HeadColor = BrickColor.new("White")
| |
| 176 | char["Body Colors"].TorsoColor = BrickColor.new("White")
| |
| 177 | char["Body Colors"].LeftArmColor = BrickColor.new("White")
| |
| 178 | char["Body Colors"].RightArmColor = BrickColor.new("White")
| |
| 179 | ---------------------------------------------------- | |
| 180 | ---------------------------------------------------------------- | |
| 181 | ||
| 182 | ---------------------------- SHIRT AND PANTS -- | |
| 183 | -------------------------------- | |
| 184 | shirt = Instance.new("Shirt", char)
| |
| 185 | shirt.Name = "Shirt" | |
| 186 | pants = Instance.new("Pants", char)
| |
| 187 | pants.Name = "Pants" | |
| 188 | char.Shirt.ShirtTemplate = "rbxassetid://769121053" | |
| 189 | char.Pants.PantsTemplate = "rbxassetid://1507168534" | |
| 190 | ||
| 191 | --------------------------------------------------------- | |
| 192 | ||
| 193 | -------------- | |
| 194 | purple = Color3.new(1, 1, 1) | |
| 195 | local player = "LocalPlayer" | |
| 196 | local Character = game.Players[player].Character | |
| 197 | it = Instance.new | |
| 198 | vt = Vector3.new | |
| 199 | bc = BrickColor.new | |
| 200 | cf = CFrame.new | |
| 201 | local hed = Character.Head | |
| 202 | local ultcooldown = 99999 | |
| 203 | ||
| 204 | paly = game.Players.LocalPlayer | |
| 205 | p = game.Players.LocalPlayer | |
| 206 | char = paly.Character | |
| 207 | torso = char.Torso | |
| 208 | neck = char.Torso.Neck | |
| 209 | hum = char.Humanoid | |
| 210 | Player = game:GetService("Players").LocalPlayer
| |
| 211 | local mouse = Player:GetMouse() | |
| 212 | Character = Player.Character | |
| 213 | tors = Character.Torso | |
| 214 | lleg = Character["Left Leg"] | |
| 215 | root = Character.HumanoidRootPart | |
| 216 | hed = Character.Head | |
| 217 | rleg = Character["Right Leg"] | |
| 218 | rarm = Character["Right Arm"] | |
| 219 | larm = Character["Left Arm"] | |
| 220 | local Effects = {}
| |
| 221 | ||
| 222 | ||
| 223 | function ExplodeMass(rad,par) | |
| 224 | local expart = Instance.new("Part",script.Parent)
| |
| 225 | local expart2 = Instance.new("Part",script.Parent)
| |
| 226 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 227 | partMesh.MeshType = "Sphere" | |
| 228 | local partMesh2 = Instance.new("SpecialMesh",expart2)
| |
| 229 | partMesh2.MeshType = "Sphere" | |
| 230 | local expld = Instance.new("Explosion", script.Parent)
| |
| 231 | local plode = Instance.new("Sound",workspace)
| |
| 232 | plode.SoundId = "rbxassetid://579687077" | |
| 233 | plode.Volume = 1 | |
| 234 | plode.Pitch = 0.85 | |
| 235 | plode.Looped = false | |
| 236 | plode:Play() | |
| 237 | local plodez = Instance.new("Sound",workspace)
| |
| 238 | plodez.SoundId = "rbxassetid://288641686" | |
| 239 | plodez.Volume = 1 | |
| 240 | plodez.Pitch = 0.75 | |
| 241 | plodez.Looped = false | |
| 242 | plodez:Play() | |
| 243 | local plodeza = Instance.new("Sound",workspace)
| |
| 244 | plodeza.SoundId = "rbxassetid://197161452" | |
| 245 | plodeza.Volume = 0.85 | |
| 246 | plodeza.Pitch = 0.65 | |
| 247 | plodeza.Looped = false | |
| 248 | plodeza:Play() | |
| 249 | local plodezar = Instance.new("Sound",workspace)
| |
| 250 | plodezar.SoundId = "rbxassetid://197161452" | |
| 251 | plodezar.Volume = 0.85 | |
| 252 | plodezar.Pitch = 0.25 | |
| 253 | plodezar.Looped = false | |
| 254 | plodezar:Play() | |
| 255 | local s3 = Instance.new("Sound",workspace)
| |
| 256 | s3.SoundId = "rbxassetid://268931189" | |
| 257 | s3.Pitch = 1 | |
| 258 | s3.Volume = 1 | |
| 259 | s3.Looped = false | |
| 260 | s3:Play() | |
| 261 | xay = Instance.new("Sound",workspace)
| |
| 262 | xay.SoundId = "rbxassetid://419447292" | |
| 263 | xay.Pitch = 1 | |
| 264 | xay.Volume = 2.5 | |
| 265 | xay:Play() | |
| 266 | expld.BlastRadius = rad | |
| 267 | expld.Position = par.Position | |
| 268 | partMesh.Scale = vt(rad,rad,rad) | |
| 269 | expart.Size = vt(1,1,1)*1.5 | |
| 270 | expart.Transparency = 0 | |
| 271 | expart.Anchored = true | |
| 272 | expart.Material = "Neon" | |
| 273 | expart.BrickColor = bc("White")
| |
| 274 | expart.CFrame = par.CFrame | |
| 275 | partMesh2.Scale = vt(rad,rad,rad) | |
| 276 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
| 277 | expart2.Transparency = 0.5 | |
| 278 | expart2.Anchored = true | |
| 279 | expart2.Material = "Neon" | |
| 280 | expart2.BrickColor = Character.Torso.BrickColor | |
| 281 | expart2.CFrame = par.CFrame | |
| 282 | local value = 1*rad/10 | |
| 283 | par:Destroy() | |
| 284 | for i = 0, 300 do | |
| 285 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 286 | expart.CFrame = expart.CFrame | |
| 287 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
| 288 | expart2.CFrame = expart.CFrame | |
| 289 | value = value - 0.0175*rad/10 | |
| 290 | if value <= 0 then | |
| 291 | expart.Transparency = expart.Transparency + 0.0125 | |
| 292 | expart2.Transparency = expart2.Transparency + 0.0125 | |
| 293 | value = 0.25 | |
| 294 | end | |
| 295 | wait() | |
| 296 | end | |
| 297 | plode.Parent = nil | |
| 298 | expart.Parent = nil | |
| 299 | expart2.Parent = nil | |
| 300 | expld.Parent = nil | |
| 301 | end | |
| 302 | ||
| 303 | function ExplodeMass2(rad,par) | |
| 304 | local expart = Instance.new("Part",script.Parent)
| |
| 305 | local expart2 = Instance.new("Part",script.Parent)
| |
| 306 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 307 | partMesh.MeshType = "Sphere" | |
| 308 | local partMesh2 = Instance.new("SpecialMesh",expart2)
| |
| 309 | partMesh2.MeshType = "Sphere" | |
| 310 | local expld = Instance.new("Explosion", script.Parent)
| |
| 311 | local plode = Instance.new("Sound",workspace)
| |
| 312 | plode.SoundId = "rbxassetid://579687077" | |
| 313 | plode.Volume = 1 | |
| 314 | plode.Pitch = 0.8 | |
| 315 | plode.Looped = false | |
| 316 | plode:Play() | |
| 317 | local plodez = Instance.new("Sound",workspace)
| |
| 318 | plodez.SoundId = "rbxassetid://288641686" | |
| 319 | plodez.Volume = 1 | |
| 320 | plodez.Pitch = 0.7 | |
| 321 | plodez.Looped = false | |
| 322 | plodez:Play() | |
| 323 | local plodeza = Instance.new("Sound",workspace)
| |
| 324 | plodeza.SoundId = "rbxassetid://197161452" | |
| 325 | plodeza.Volume = 0.85 | |
| 326 | plodeza.Pitch = 0.6 | |
| 327 | plodeza.Looped = false | |
| 328 | plodeza:Play() | |
| 329 | local plodezar = Instance.new("Sound",workspace)
| |
| 330 | plodezar.SoundId = "rbxassetid://197161452" | |
| 331 | plodezar.Volume = 0.85 | |
| 332 | plodezar.Pitch = 0.2 | |
| 333 | plodezar.Looped = false | |
| 334 | plodezar:Play() | |
| 335 | local s3 = Instance.new("Sound",workspace)
| |
| 336 | s3.SoundId = "rbxassetid://268931189" | |
| 337 | s3.Pitch = 0.85 | |
| 338 | s3.Volume = 1 | |
| 339 | s3.Looped = false | |
| 340 | s3:Play() | |
| 341 | xay = Instance.new("Sound",workspace)
| |
| 342 | xay.SoundId = "rbxassetid://419447292" | |
| 343 | xay.Pitch = 1 | |
| 344 | xay.Volume = 3.5 | |
| 345 | xay:Play() | |
| 346 | expld.BlastRadius = rad | |
| 347 | expld.Position = par.Position | |
| 348 | partMesh.Scale = vt(rad,rad,rad) | |
| 349 | expart.Size = vt(1,1,1)*1.5 | |
| 350 | expart.Transparency = 0 | |
| 351 | expart.Anchored = true | |
| 352 | expart.Material = "Neon" | |
| 353 | expart.BrickColor = bc("Really black")
| |
| 354 | expart.CFrame = par.CFrame | |
| 355 | partMesh2.Scale = vt(rad,rad,rad) | |
| 356 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
| 357 | expart2.Transparency = 0.5 | |
| 358 | expart2.Anchored = true | |
| 359 | expart2.Material = "Neon" | |
| 360 | expart2.BrickColor = Character.Torso.BrickColor | |
| 361 | expart2.CFrame = par.CFrame | |
| 362 | local value = 1*rad/10 | |
| 363 | par:Destroy() | |
| 364 | for i = 0, 300 do | |
| 365 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 366 | expart.CFrame = expart.CFrame | |
| 367 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
| 368 | expart2.CFrame = expart.CFrame | |
| 369 | value = value - 0.0175*rad/10 | |
| 370 | if value <= 0 then | |
| 371 | expart.Transparency = expart.Transparency + 0.0125 | |
| 372 | expart2.Transparency = expart2.Transparency + 0.0125 | |
| 373 | value = 0.25 | |
| 374 | end | |
| 375 | wait() | |
| 376 | end | |
| 377 | plode.Parent = nil | |
| 378 | expart.Parent = nil | |
| 379 | expart2.Parent = nil | |
| 380 | expld.Parent = nil | |
| 381 | end | |
| 382 | ||
| 383 | function Blaze2() | |
| 384 | if ultcooldown >= 30 then | |
| 385 | ultcooldown = ultcooldown - 30 | |
| 386 | wit = Character.Torso.BrickColor.Color | |
| 387 | local sloc = Instance.new("Part",workspace)
| |
| 388 | local msh = Instance.new("SpecialMesh",sloc)
| |
| 389 | msh.MeshType = "Sphere" | |
| 390 | sloc.Size = vt(1,1,1) | |
| 391 | sloc.Transparency = 1 | |
| 392 | sloc.BrickColor = Character.Torso.BrickColor | |
| 393 | sloc.Position = hed.Position + vt(0,0,0) | |
| 394 | sloc.CanCollide = false | |
| 395 | sloc.Shape = "Ball" | |
| 396 | sloc.Anchored = true | |
| 397 | sloc.Material = "Neon" | |
| 398 | local forcefield = Instance.new("ForceField",Character)
| |
| 399 | local kolor = Instance.new("ColorCorrectionEffect",game.Lighting)
| |
| 400 | kolor.TintColor = Character.Torso.BrickColor.Color | |
| 401 | local glowz = Instance.new("ParticleEmitter")
| |
| 402 | glowz.LightEmission = 0 | |
| 403 | glowz.Parent = sloc | |
| 404 | glowz.Texture = "rbxassetid://284205403" | |
| 405 | glowz.Color = ColorSequence.new(wit) | |
| 406 | glowz.Size = NumberSequence.new(15) | |
| 407 | glowz.Speed = NumberRange.new(100,250) | |
| 408 | glowz.LockedToPart = false | |
| 409 | glowz.Transparency = NumberSequence.new(0.75) | |
| 410 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
| 411 | glowz.Lifetime = NumberRange.new(1) | |
| 412 | glowz.Rate = 50 | |
| 413 | glowz.VelocitySpread = 9001 | |
| 414 | local s = Instance.new("Sound",workspace)
| |
| 415 | s.SoundId = "rbxassetid://331888777" | |
| 416 | s.Pitch = 0.45 | |
| 417 | s.Volume = 1.5 | |
| 418 | s.Looped = false | |
| 419 | s:Play() | |
| 420 | local s2 = Instance.new("Sound",workspace)
| |
| 421 | s2.SoundId = "rbxassetid://331888777" | |
| 422 | s2.Pitch = 0.5 | |
| 423 | s2.Volume = 1.5 | |
| 424 | s2.Looped = false | |
| 425 | s2:Play() | |
| 426 | local val = 1*5 | |
| 427 | for i = 0 , 20 do | |
| 428 | sloc.Transparency = sloc.Transparency - 0.055 | |
| 429 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 430 | val = val - 0.05*5 | |
| 431 | kolor.Brightness = kolor.Brightness - 0.1 | |
| 432 | kolor.Contrast = kolor.Contrast + 0.1 | |
| 433 | wait() | |
| 434 | end | |
| 435 | for i = 0 , 5 do | |
| 436 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 437 | val = val + 0.05*5 | |
| 438 | kolor.Brightness = kolor.Brightness + 0.5 | |
| 439 | kolor.Contrast = kolor.Contrast - 0.5 | |
| 440 | wait() | |
| 441 | end | |
| 442 | for i = 0 , 5 do | |
| 443 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 444 | val = val - 0.05*5 | |
| 445 | kolor.Brightness = kolor.Brightness - 0.5 | |
| 446 | kolor.Contrast = kolor.Contrast + 0.5 | |
| 447 | wait() | |
| 448 | end | |
| 449 | for i = 0 , 5 do | |
| 450 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 451 | val = val + 0.05*10 | |
| 452 | kolor.Brightness = kolor.Brightness + 0.5 | |
| 453 | kolor.Contrast = kolor.Contrast - 0.5 | |
| 454 | wait() | |
| 455 | end | |
| 456 | for i = 0 , 5 do | |
| 457 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 458 | val = val - 0.05*10 | |
| 459 | kolor.Brightness = kolor.Brightness - 0.5 | |
| 460 | kolor.Contrast = kolor.Contrast + 0.5 | |
| 461 | wait() | |
| 462 | end | |
| 463 | for i = 0 , 5 do | |
| 464 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 465 | val = val + 0.05*20 | |
| 466 | kolor.Brightness = kolor.Brightness + 0.5 | |
| 467 | kolor.Contrast = kolor.Contrast - 0.5 | |
| 468 | wait() | |
| 469 | end | |
| 470 | for i = 0 , 5 do | |
| 471 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 472 | val = val - 0.05*20 | |
| 473 | kolor.Brightness = kolor.Brightness - 0.5 | |
| 474 | kolor.Contrast = kolor.Contrast + 0.5 | |
| 475 | wait() | |
| 476 | end | |
| 477 | for i = 0 , 5 do | |
| 478 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 479 | val = val + 0.05*40 | |
| 480 | kolor.Brightness = kolor.Brightness + 0.5 | |
| 481 | kolor.Contrast = kolor.Contrast - 0.5 | |
| 482 | wait() | |
| 483 | end | |
| 484 | for i = 0 , 5 do | |
| 485 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 486 | val = val - 0.05*40 | |
| 487 | kolor.Brightness = kolor.Brightness - 0.5 | |
| 488 | kolor.Contrast = kolor.Contrast + 0.5 | |
| 489 | wait() | |
| 490 | end | |
| 491 | for i = 0 , 5 do | |
| 492 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 493 | val = val + 0.05*45 | |
| 494 | kolor.Brightness = kolor.Brightness + 0.5 | |
| 495 | kolor.Contrast = kolor.Contrast - 0.5 | |
| 496 | wait() | |
| 497 | end | |
| 498 | for i = 0 , 5 do | |
| 499 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 500 | val = val - 0.05*45 | |
| 501 | kolor.Brightness = kolor.Brightness - 0.5 | |
| 502 | kolor.Contrast = kolor.Contrast + 0.5 | |
| 503 | wait() | |
| 504 | end | |
| 505 | for i = 0 , 5 do | |
| 506 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 507 | val = val + 0.05*50 | |
| 508 | kolor.Brightness = kolor.Brightness + 0.5 | |
| 509 | kolor.Contrast = kolor.Contrast - 0.5 | |
| 510 | wait() | |
| 511 | end | |
| 512 | for i = 0 , 20 do | |
| 513 | sloc.Transparency = sloc.Transparency + 0.055 | |
| 514 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 515 | val = val - 0.05*50 | |
| 516 | wait() | |
| 517 | end | |
| 518 | kolor:Destroy() | |
| 519 | ExplodeMass2(125,sloc) | |
| 520 | sloc:Destroy() | |
| 521 | forcefield:Destroy() | |
| 522 | end | |
| 523 | if ultcooldown < 1 then | |
| 524 | for i = 0, 29 do | |
| 525 | ultcooldown = ultcooldown + 1 | |
| 526 | wait(1) | |
| 527 | end | |
| 528 | end | |
| 529 | end | |
| 530 | ||
| 531 | function Blaze() | |
| 532 | if ultcooldown >= 30 then | |
| 533 | local kolor = Instance.new("ColorCorrectionEffect",game.Lighting)
| |
| 534 | local see = Instance.new("Sound",workspace)
| |
| 535 | see.SoundId = "rbxassetid://21420962" | |
| 536 | see.Pitch = 1 | |
| 537 | see.Volume = 2.75 | |
| 538 | see.Looped = false | |
| 539 | see:Play() | |
| 540 | kolor.Brightness = -1 | |
| 541 | kolor.Contrast = -1 | |
| 542 | kolor.TintColor = Character.Torso.BrickColor.Color | |
| 543 | wait(0.1) | |
| 544 | for i = 0, 9 do | |
| 545 | kolor.Brightness = kolor.Brightness + 0.35 | |
| 546 | kolor.Contrast = kolor.Contrast + 0.35 | |
| 547 | wait(0.05) | |
| 548 | end | |
| 549 | for i = 0, 9 do | |
| 550 | kolor.Brightness = kolor.Brightness - 0.35 | |
| 551 | kolor.Contrast = kolor.Contrast - 0.35 | |
| 552 | wait(0.05) | |
| 553 | end | |
| 554 | kolor:Destroy() | |
| 555 | local sloc = Instance.new("Part",workspace)
| |
| 556 | local msh = Instance.new("SpecialMesh",sloc)
| |
| 557 | msh.MeshType = "Sphere" | |
| 558 | sloc.Size = vt(1,1,1) | |
| 559 | sloc.Transparency = 1 | |
| 560 | sloc.BrickColor = Character.Torso.BrickColor | |
| 561 | sloc.Position = hed.Position + vt(0,5,0) | |
| 562 | sloc.CanCollide = false | |
| 563 | sloc.Shape = "Ball" | |
| 564 | sloc.Anchored = true | |
| 565 | sloc.Material = "Neon" | |
| 566 | local s = Instance.new("Sound",workspace)
| |
| 567 | s.SoundId = "rbxassetid://342793847" | |
| 568 | s.Pitch = 1 | |
| 569 | s.Volume = 1 | |
| 570 | s.Looped = false | |
| 571 | s:Play() | |
| 572 | local s2 = Instance.new("Sound",workspace)
| |
| 573 | s2.SoundId = "rbxassetid://137463716" | |
| 574 | s2.Pitch = 0.25 | |
| 575 | s2.Volume = 1 | |
| 576 | s2.Looped = false | |
| 577 | s2:Play() | |
| 578 | local val = 0.65*5 | |
| 579 | for i = 0 , 75 do | |
| 580 | sloc.Transparency = sloc.Transparency - 0.035 | |
| 581 | msh.Scale = msh.Scale + vt(val,val,val) | |
| 582 | sloc.Position = sloc.Position + vt(0,val,0) | |
| 583 | val = val - 0.0075*5 | |
| 584 | wait() | |
| 585 | end | |
| 586 | msh.Scale = msh.Scale - vt(1,1,1) | |
| 587 | sloc.Transparency = sloc.Transparency + 0.015 | |
| 588 | local spart = Instance.new("Part",workspace)
| |
| 589 | local msh2 = Instance.new("SpecialMesh",spart)
| |
| 590 | msh2.MeshType = "Sphere" | |
| 591 | spart.Size = vt(2,2,2) | |
| 592 | spart.Shape = "Ball" | |
| 593 | spart.BrickColor = Character.Torso.BrickColor | |
| 594 | spart.Material = "Neon" | |
| 595 | spart.Transparency = 0 | |
| 596 | spart.Anchored = false | |
| 597 | msh2.Scale = msh.Scale/2 | |
| 598 | spart.Rotation = hed.Rotation | |
| 599 | spart.CanCollide = false | |
| 600 | spart.Position = sloc.Position + vt(math.random(-0,0),math.random(-0,0),math.random(-0,0)) | |
| 601 | local bv = Instance.new("BodyVelocity")
| |
| 602 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 603 | bv.velocity = spart.CFrame.lookVector*75 | |
| 604 | bv.Parent = spart | |
| 605 | local tick = Instance.new("Sound",workspace)
| |
| 606 | tick.SoundId = "rbxassetid://203691467" | |
| 607 | tick.Volume = 2 | |
| 608 | tick.Pitch = 0.75 | |
| 609 | tick:Play() | |
| 610 | sloc:Destroy() | |
| 611 | wait(0.00001) | |
| 612 | pewdiepie=spart.Touched:connect(function(hit) | |
| 613 | ExplodeMass(100,spart) | |
| 614 | end) | |
| 615 | sloc:Destroy() | |
| 616 | end | |
| 617 | if ultcooldown < 1 then | |
| 618 | for i = 0, 29 do | |
| 619 | ultcooldown = ultcooldown + 1 | |
| 620 | wait(1) | |
| 621 | end | |
| 622 | end | |
| 623 | end | |
| 624 | ||
| 625 | euler = CFrame.fromEulerAnglesXYZ | |
| 626 | angles = CFrame.Angles | |
| 627 | mr = math.rad | |
| 628 | local Weapon = {}
| |
| 629 | local p = game.Players.LocalPlayer | |
| 630 | local char = p.Character | |
| 631 | local mouse = p:GetMouse() | |
| 632 | local larm = char["Left Arm"] | |
| 633 | local rarm = char["Right Arm"] | |
| 634 | local lleg = char["Left Leg"] | |
| 635 | local rleg = char["Right Leg"] | |
| 636 | local hed = char.Head | |
| 637 | local torso = char.Torso | |
| 638 | local hum = char.Humanoid | |
| 639 | local cam = game.Workspace.CurrentCamera | |
| 640 | local root = char.HumanoidRootPart | |
| 641 | local deb = false | |
| 642 | local shot = 0 | |
| 643 | local debris=game:service"Debris" | |
| 644 | local l = game:GetService("Lighting")
| |
| 645 | local rs = game:GetService("RunService").RenderStepped
| |
| 646 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 647 | math.randomseed(os.time()) | |
| 648 | for i,v in pairs (hed:GetChildren()) do | |
| 649 | if v:IsA("Sound") then
| |
| 650 | v:Destroy() | |
| 651 | end | |
| 652 | end | |
| 653 | ||
| 654 | wait(0.016666666666667) | |
| 655 | script.Archivable = false | |
| 656 | Effects = {}
| |
| 657 | local Player = game.Players.localPlayer | |
| 658 | local Character = Player.Character | |
| 659 | local Humanoid = Character.Humanoid | |
| 660 | local mouse = Player:GetMouse() | |
| 661 | local m = Instance.new("Model", Character)
| |
| 662 | m.Name = "WeaponModel" | |
| 663 | local effect = Instance.new("Model", Character)
| |
| 664 | effect.Name = "effecsfsafzx" | |
| 665 | local demon = Instance.new("Model", Character)
| |
| 666 | demon.Name = "demdemd" | |
| 667 | local LeftArm = Character["Left Arm"] | |
| 668 | local RightArm = Character["Right Arm"] | |
| 669 | local LeftLeg = Character["Left Leg"] | |
| 670 | local RightLeg = Character["Right Leg"] | |
| 671 | local do2target = nil | |
| 672 | local Head = Character.Head | |
| 673 | local Torso = Character.Torso | |
| 674 | TorsoColor = Torso.BrickColor | |
| 675 | z = Instance.new("Sound", Torso)
| |
| 676 | z.SoundId = "rbxassetid://0" -- Put Music ID Here. | |
| 677 | z.Looped = true | |
| 678 | z.Pitch = 0 | |
| 679 | z.Volume = 0 | |
| 680 | wait(.1) | |
| 681 | z:Play() | |
| 682 | local cam = game.Workspace.CurrentCamera | |
| 683 | local RootPart = Character.HumanoidRootPart | |
| 684 | local RootJoint = RootPart.RootJoint | |
| 685 | local equipped = false | |
| 686 | local attack = false | |
| 687 | local Anim = "Idle" | |
| 688 | local idle = 0 | |
| 689 | local attacktype = 1 | |
| 690 | local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude | |
| 691 | local velocity = RootPart.Velocity.y | |
| 692 | local sine = 0 | |
| 693 | local change = 1 | |
| 694 | local mana = 0 | |
| 695 | local it = Instance.new | |
| 696 | vt = Vector3.new | |
| 697 | local grabbed = false | |
| 698 | local cf = CFrame.new | |
| 699 | local mr = math.rad | |
| 700 | local angles = CFrame.Angles | |
| 701 | local ud = UDim2.new | |
| 702 | local c3 = Color3.new | |
| 703 | local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 704 | Humanoid.Animator:Destroy() | |
| 705 | Character.Animate:Destroy() | |
| 706 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 707 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 708 | local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0)) | |
| 709 | RSH = nil | |
| 710 | RW = Instance.new("Weld")
| |
| 711 | LW = Instance.new("Weld")
| |
| 712 | RH = Torso["Right Hip"] | |
| 713 | LH = Torso["Left Hip"] | |
| 714 | RSH = Torso["Right Shoulder"] | |
| 715 | LSH = Torso["Left Shoulder"] | |
| 716 | RSH.Parent = nil | |
| 717 | LSH.Parent = nil | |
| 718 | RW.Name = "RW" | |
| 719 | RW.Part0 = Torso | |
| 720 | RW.C0 = cf(1.5, 0.5, 0) | |
| 721 | RW.C1 = cf(0, 0.5, 0) | |
| 722 | RW.Part1 = RightArm | |
| 723 | RW.Parent = Torso | |
| 724 | LW.Name = "LW" | |
| 725 | LW.Part0 = Torso | |
| 726 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 727 | LW.C1 = cf(0, 0.5, 0) | |
| 728 | LW.Part1 = LeftArm | |
| 729 | LW.Parent = Torso | |
| 730 | clerp = function(a, b, t) | |
| 731 | ||
| 732 | return a:lerp(b, t) | |
| 733 | end | |
| 734 | ||
| 735 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 736 | local Create = RbxUtility.Create | |
| 737 | RemoveOutlines = function(part) | |
| 738 | ||
| 739 | part.TopSurface = 10 | |
| 740 | end | |
| 741 | ||
| 742 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 743 | ||
| 744 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
| |
| 745 | RemoveOutlines(Part) | |
| 746 | return Part | |
| 747 | end | |
| 748 | ||
| 749 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 750 | ||
| 751 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
| |
| 752 | if Mesh == "SpecialMesh" then | |
| 753 | Msh.MeshType = MeshType | |
| 754 | Msh.MeshId = MeshId | |
| 755 | end | |
| 756 | return Msh | |
| 757 | end | |
| 758 | ||
| 759 | local co1 = 3 | |
| 760 | local co2 = 10 | |
| 761 | local co3 = 15 | |
| 762 | local co4 = 30 | |
| 763 | local cooldown1 = 0 | |
| 764 | local cooldown2 = 0 | |
| 765 | local cooldown3 = 0 | |
| 766 | local cooldown4 = 0 | |
| 767 | local maxEnergy = 100 | |
| 768 | local Energy = 0 | |
| 769 | local skill1stam = 1000 | |
| 770 | local skill2stam = 1000 | |
| 771 | local skill3stam = 1000 | |
| 772 | local skill4stam = 1000 | |
| 773 | local recovermana = 5 | |
| 774 | local skillcolorscheme = BrickColor.new("White").Color
| |
| 775 | local scrn = Instance.new("ScreenGui", Player.PlayerGui)
| |
| 776 | makeframe = function(par, trans, pos, size, color) | |
| 777 | ||
| 778 | local frame = Instance.new("Frame", par)
| |
| 779 | frame.BackgroundTransparency = trans | |
| 780 | frame.BorderSizePixel = 0 | |
| 781 | frame.Position = pos | |
| 782 | frame.Size = size | |
| 783 | frame.BackgroundColor3 = color | |
| 784 | return frame | |
| 785 | end | |
| 786 | ||
| 787 | makelabel = function(par, text) | |
| 788 | ||
| 789 | local label = Instance.new("TextLabel", par)
| |
| 790 | label.BackgroundTransparency = 1 | |
| 791 | label.Size = UDim2.new(1, 0, 1, 0) | |
| 792 | label.Position = UDim2.new(0, 0, 0, 0) | |
| 793 | label.TextColor3 = Color3.new(255, 255, 255) | |
| 794 | label.TextStrokeTransparency = 0 | |
| 795 | label.FontSize = Enum.FontSize.Size32 | |
| 796 | label.Font = Enum.Font.SourceSansLight | |
| 797 | label.BorderSizePixel = 0 | |
| 798 | label.TextScaled = true | |
| 799 | label.Text = text | |
| 800 | end | |
| 801 | ||
| 802 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 803 | ArtificialHB.Name = "Heartbeat" | |
| 804 | script:WaitForChild("Heartbeat")
| |
| 805 | frame = 0.033333333333333 | |
| 806 | tf = 0 | |
| 807 | allowframeloss = false | |
| 808 | tossremainder = false | |
| 809 | lastframe = tick() | |
| 810 | script.Heartbeat:Fire() | |
| 811 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 812 | ||
| 813 | tf = tf + s | |
| 814 | if frame <= tf then | |
| 815 | if allowframeloss then | |
| 816 | script.Heartbeat:Fire() | |
| 817 | lastframe = tick() | |
| 818 | else | |
| 819 | for i = 1, math.floor(tf / frame) do | |
| 820 | script.Heartbeat:Fire() | |
| 821 | end | |
| 822 | lastframe = tick() | |
| 823 | end | |
| 824 | if tossremainder then | |
| 825 | tf = 0 | |
| 826 | else | |
| 827 | tf = tf - frame * math.floor(tf / frame) | |
| 828 | end | |
| 829 | end | |
| 830 | end | |
| 831 | ) | |
| 832 | swait = function(num) | |
| 833 | ||
| 834 | if num == 0 or num == nil then | |
| 835 | ArtificialHB.Event:wait() | |
| 836 | else | |
| 837 | for i = 0, num do | |
| 838 | ArtificialHB.Event:wait() | |
| 839 | end | |
| 840 | end | |
| 841 | end | |
| 842 | ||
| 843 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
| 844 | ||
| 845 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
| |
| 846 | return Weld | |
| 847 | end | |
| 848 | ||
| 849 | rayCast = function(Position, Direction, Range, Ignore) | |
| 850 | ||
| 851 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 852 | end | |
| 853 | ||
| 854 | CreateSound = function(id, par, vol, pit) | |
| 855 | ||
| 856 | coroutine.resume(coroutine.create(function() | |
| 857 | ||
| 858 | local sou = Instance.new("Sound", par or workspace)
| |
| 859 | sou.Volume = vol | |
| 860 | sou.Pitch = pit or 1 | |
| 861 | sou.SoundId = id | |
| 862 | swait() | |
| 863 | sou:play() | |
| 864 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 865 | end | |
| 866 | )) | |
| 867 | end | |
| 868 | ||
| 869 | local getclosest = function(obj, distance) | |
| 870 | ||
| 871 | local last, lastx = distance + 1, nil | |
| 872 | for i,v in pairs(workspace:GetChildren()) do | |
| 873 | if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
| |
| 874 | local t = v.Torso | |
| 875 | local dist = t.Position - obj.Position.magnitude | |
| 876 | if dist <= distance and dist < last then | |
| 877 | last = dist | |
| 878 | lastx = v | |
| 879 | end | |
| 880 | end | |
| 881 | end | |
| 882 | return lastx | |
| 883 | end | |
| 884 | ||
| 885 | CreatePart2 = function(Parent, Material, Reflectance, Transparency, PartType, BColor, Name, Size) | |
| 886 | ||
| 887 | if PartType == "Part" then | |
| 888 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
| |
| 889 | RemoveOutlines(Part) | |
| 890 | return Part | |
| 891 | else | |
| 892 | do | |
| 893 | if PartType == "WedgePart" then | |
| 894 | local Part = Create("WedgePart")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
| |
| 895 | RemoveOutlines(Part) | |
| 896 | return Part | |
| 897 | end | |
| 898 | end | |
| 899 | end | |
| 900 | end | |
| 901 | ||
| 902 | for _,c in pairs(m:children()) do | |
| 903 | if c.className == "Weld" then | |
| 904 | table.insert(CBladeWelds, R67_PC6072) | |
| 905 | print(R66_PC6093) | |
| 906 | end | |
| 907 | end | |
| 908 | -- NIGH-OMNI FATAL ERROR at PC6105: Re-wrote register: R67 in 'AssignReg' | |
| 909 | ||
| 910 | -- NIGH-OMNI FATAL ERROR at PC6106: Re-wrote register: R67 in 'AssignReg' | |
| 911 | ||
| 912 | --Hit = CreatePart(demon, Enum.Material.Neon, 0, 0, "Really black", R66_PC6093, R67_PC6072(5, 0.200000003, 5)) | |
| 913 | -- NIGH-OMNI FATAL ERROR at PC6120: Re-wrote register: R66 in 'AssignReg' | |
| 914 | ||
| 915 | -- NIGH-OMNI FATAL ERROR at PC6134: Re-wrote register: R66 in 'AssignReg' | |
| 916 | ||
| 917 | HitWeld = CreateWeld(demon, Character.HumanoidRootPart, Hit, CFrame.new(0, R66_PC6093, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(R66_PC6093, -3.50004387, 0.0299530029, 0, 1, 0, 0, 0, -1, -1, 0, 0)) | |
| 918 | CreateMesh("SpecialMesh", Hit, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1033714", Vector3.new(0, 0, 0), Vector3.new(3, 4, 3))
| |
| 919 | FakeMotor = CreatePart(demon, Enum.Material.Neon, 0, 1, "Really black", "FakeMotor", Vector3.new(2.01999998, 0.2016, 2.36000013)) | |
| 920 | FakeMotorWeld = CreateWeld(demon, Hit, FakeMotor, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0199999809, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 921 | Part = CreatePart(demon, Enum.Material.Neon, 0, 0, "Really black", "Part", Vector3.new(2.25000024, 0.200000003, 2.55000019)) | |
| 922 | PartWeld = CreateWeld(demon, FakeMotor, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -5.06998634, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
| 923 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1033714", Vector3.new(0, 0, 0), Vector3.new(2.5, 10, 2.5))
| |
| 924 | Part = CreatePart(demon, Enum.Material.Neon, 0, 0, "Really black", "Part", Vector3.new(2.25000024, 0.200000003, 2.55000019)) | |
| 925 | PartWeld = CreateWeld(demon, FakeMotor, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -7.1599884, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
| 926 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1033714", Vector3.new(0, 0, 0), Vector3.new(1, 10, 1))
| |
| 927 | TornadoHat = CreatePart(demon, Enum.Material.Neon, 0.20000000298023, 0.5, "Really black", "TornadoHat", Vector3.new(3, 0.400000006, 3)) | |
| 928 | TornadoHatWeld = CreateWeld(demon, FakeMotor, TornadoHat, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00997924805, -1.65001106, -0.0699994564, 0, 0, -1, 0, -1, 0, -1, 0, 0)) | |
| 929 | CreateMesh("SpecialMesh", TornadoHat, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1051557", Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
| |
| 930 | local DBlade = {}
| |
| 931 | local DBladeWelds = {}
| |
| 932 | for _,c in pairs(demon:children()) do | |
| 933 | if c.className == "Part" then | |
| 934 | table.insert(DBlade, c) | |
| 935 | end | |
| 936 | end | |
| 937 | for _,c in pairs(demon:children()) do | |
| 938 | if c.className == "Weld" then | |
| 939 | table.insert(DBladeWelds, c) | |
| 940 | print(c) | |
| 941 | end | |
| 942 | end | |
| 943 | demon.Parent = nil | |
| 944 | ||
| 945 | Debounces = {
| |
| 946 | CanAttack = true; | |
| 947 | NoIdl = false; | |
| 948 | Slashing = false; | |
| 949 | Slashed = false; | |
| 950 | RPunch = false; | |
| 951 | RPunched = false; | |
| 952 | LPunch = false; | |
| 953 | LPunched = false; | |
| 954 | } | |
| 955 | local Touche = {char.Name, }
| |
| 956 | ---------------------------------------------------- | |
| 957 | function lerp(a, b, t) -- Linear interpolation | |
| 958 | return a + (b - a)*t | |
| 959 | end | |
| 960 | ||
| 961 | function slerp(a, b, t) --Spherical interpolation | |
| 962 | dot = a:Dot(b) | |
| 963 | if dot > 0.99999 or dot < -0.99999 then | |
| 964 | return t <= 0.5 and a or b | |
| 965 | else | |
| 966 | r = math.acos(dot) | |
| 967 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 968 | end | |
| 969 | end | |
| 970 | ||
| 971 | function matrixInterpolate(a, b, t) | |
| 972 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 973 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 974 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 975 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 976 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 977 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 978 | local t = v1:Dot(v2) | |
| 979 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 980 | return CFrame.new() | |
| 981 | end | |
| 982 | return CFrame.new( | |
| 983 | v0.x, v0.y, v0.z, | |
| 984 | v1.x, v1.y, v1.z, | |
| 985 | v2.x, v2.y, v2.z, | |
| 986 | v3.x, v3.y, v3.z) | |
| 987 | end | |
| 988 | ---------------------------------------------------- | |
| 989 | function genWeld(a,b) | |
| 990 | local w = Instance.new("Weld",a)
| |
| 991 | w.Part0 = a | |
| 992 | w.Part1 = b | |
| 993 | return w | |
| 994 | end | |
| 995 | function weld(a, b) | |
| 996 | local weld = Instance.new("Weld")
| |
| 997 | weld.Name = "W" | |
| 998 | weld.Part0 = a | |
| 999 | weld.Part1 = b | |
| 1000 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 1001 | weld.Parent = a | |
| 1002 | return weld; | |
| 1003 | end | |
| 1004 | ---------------------------------------------------- | |
| 1005 | function Lerp(c1,c2,al) | |
| 1006 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 1007 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 1008 | for i,v in pairs(com1) do | |
| 1009 | com1[i] = v+(com2[i]-v)*al | |
| 1010 | end | |
| 1011 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 1012 | end | |
| 1013 | ---------------------------------------------------- | |
| 1014 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 1015 | local wld = Instance.new("Weld", wp1)
| |
| 1016 | wld.Part0 = wp0 | |
| 1017 | wld.Part1 = wp1 | |
| 1018 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 1019 | end | |
| 1020 | ---------------------------------------------------- | |
| 1021 | function Tween(a,b,c) | |
| 1022 | return a+(b-a)*c | |
| 1023 | end | |
| 1024 | ---------------------------------------------------- | |
| 1025 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 1026 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 1027 | local List = {}
| |
| 1028 | for i,v in pairs(workspace:GetChildren())do | |
| 1029 | if v:IsA("Model")then
| |
| 1030 | if v:findFirstChild("Torso")then
| |
| 1031 | if v ~= char then | |
| 1032 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 1033 | table.insert(List,v) | |
| 1034 | end | |
| 1035 | end | |
| 1036 | end | |
| 1037 | end | |
| 1038 | end | |
| 1039 | return List | |
| 1040 | end | |
| 1041 | ||
| 1042 | mod3 = Instance.new("Model",rleg)
| |
| 1043 | ||
| 1044 | function Stomp() | |
| 1045 | part=Instance.new('Part',mod3)
| |
| 1046 | part.Anchored=true | |
| 1047 | part.CanCollide=false | |
| 1048 | part.FormFactor='Custom' | |
| 1049 | part.Size=Vector3.new(.2,.2,.2) | |
| 1050 | part.CFrame=rleg.CFrame*CFrame.new(0,-2.4,0)*CFrame.Angles(math.rad(90),0,0) | |
| 1051 | part.Transparency=.7 | |
| 1052 | part.BrickColor=BrickColor.new('Bright green')
| |
| 1053 | mesh=Instance.new('SpecialMesh',part)
| |
| 1054 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
| 1055 | mesh.Scale=Vector3.new(25,25,25) | |
| 1056 | part2=part:clone() | |
| 1057 | part2.Parent=mod3 | |
| 1058 | part2.BrickColor=BrickColor.new('Bright green')
| |
| 1059 | mesh2=mesh:clone() | |
| 1060 | mesh2.Parent=part2 | |
| 1061 | mesh2.Scale=Vector3.new(15,15,15) | |
| 1062 | part3=part:clone() | |
| 1063 | part3.Parent=mod3 | |
| 1064 | part3.TopSurface=0 | |
| 1065 | part3.BottomSurface=0 | |
| 1066 | part3.CFrame=rleg.CFrame*CFrame.new(0,-3,0) | |
| 1067 | mesh3=Instance.new('SpecialMesh',part3)
| |
| 1068 | mesh3.MeshType = 3 | |
| 1069 | mesh3.Scale=Vector3.new(12,12,12) | |
| 1070 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do | |
| 1071 | if v:FindFirstChild('Humanoid') then
| |
| 1072 | v.Humanoid:TakeDamage(math.random(20,60)) | |
| 1073 | v.Humanoid.PlatformStand = true | |
| 1074 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
| |
| 1075 | end | |
| 1076 | end | |
| 1077 | coroutine.resume(coroutine.create(function() | |
| 1078 | for i=0,3.8,0.05 do | |
| 1079 | wait() | |
| 1080 | part.CFrame=part.CFrame | |
| 1081 | part.Transparency=i | |
| 1082 | mesh.Scale=mesh.Scale+Vector3.new(2.8,2.8,2.8) | |
| 1083 | part2.CFrame=part2.CFrame | |
| 1084 | part2.Transparency=i | |
| 1085 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
| 1086 | part3.CFrame=part3.CFrame | |
| 1087 | part3.Transparency=i | |
| 1088 | mesh3.Scale=mesh3.Scale+Vector3.new(1.5,1.5,1.5) | |
| 1089 | end | |
| 1090 | end)) | |
| 1091 | end | |
| 1092 | ---------------------------------------------------- | |
| 1093 | function nwPrt(prnt,siz,cf,col) | |
| 1094 | local prt=Instance.new("Part")
| |
| 1095 | prt.Parent=prnt | |
| 1096 | prt.FormFactor=3 | |
| 1097 | prt.Name="Part" | |
| 1098 | prt.Size=siz | |
| 1099 | prt.CanCollide=false | |
| 1100 | prt.Anchored=true | |
| 1101 | prt.Locked=true | |
| 1102 | prt.TopSurface=10 | |
| 1103 | prt.BottomSurface=10 | |
| 1104 | prt.FrontSurface=10 | |
| 1105 | prt.BackSurface=10 | |
| 1106 | prt.LeftSurface=10 | |
| 1107 | prt.RightSurface=10 | |
| 1108 | prt:BreakJoints() | |
| 1109 | prt.CFrame=cf or CFrame.new(30,10,30) | |
| 1110 | prt.Material="Neon" | |
| 1111 | prt.BrickColor=TorsoColor | |
| 1112 | m=Instance.new("SpecialMesh",prt)
| |
| 1113 | m.MeshType=6 | |
| 1114 | return prt | |
| 1115 | end | |
| 1116 | ---------------------------------------------------- | |
| 1117 | function nwSnd(prnt,pch,vol,id) | |
| 1118 | local s=Instance.new("Sound",prnt)
| |
| 1119 | s.Pitch=pch | |
| 1120 | s.Volume=vol | |
| 1121 | s.SoundId="rbxassetid://"..id | |
| 1122 | s.PlayOnRemove=true | |
| 1123 | return s | |
| 1124 | end | |
| 1125 | ---------------------------------------------------- | |
| 1126 | function newRay(start,face,range,wat) | |
| 1127 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
| 1128 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
| 1129 | return rey,hit,pos | |
| 1130 | end | |
| 1131 | ---------------------------------------------------- | |
| 1132 | function Lerp(c1,c2,al) | |
| 1133 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 1134 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 1135 | for i,v in pairs(com1) do | |
| 1136 | com1[i] = v+(com2[i]-v)*al | |
| 1137 | end | |
| 1138 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 1139 | end | |
| 1140 | ---------------------------------------------------- | |
| 1141 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 1142 | local wld = Instance.new("Weld", wp1)
| |
| 1143 | wld.Part0 = wp0 | |
| 1144 | wld.Part1 = wp1 | |
| 1145 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 1146 | end | |
| 1147 | ---------------------------------------------------- | |
| 1148 | function weld5(part0, part1, c0, c1) | |
| 1149 | weeld=Instance.new("Weld", part0)
| |
| 1150 | weeld.Part0=part0 | |
| 1151 | weeld.Part1=part1 | |
| 1152 | weeld.C0=c0 | |
| 1153 | weeld.C1=c1 | |
| 1154 | return weeld | |
| 1155 | end | |
| 1156 | ---------------------------------------------------- | |
| 1157 | function HasntTouched(plrname) | |
| 1158 | local ret = true | |
| 1159 | for _, v in pairs(Touche) do | |
| 1160 | if v == plrname then | |
| 1161 | ret = false | |
| 1162 | end | |
| 1163 | end | |
| 1164 | return ret | |
| 1165 | end | |
| 1166 | ---------------------------------------------------- | |
| 1167 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 1168 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 1169 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 1170 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 1171 | newWeld(torso, hed, 0, 1.5, 0) | |
| 1172 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 1173 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 1174 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 1175 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 1176 | newWeld(root, torso, 0, -1, 0) | |
| 1177 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 1178 | ---------------------------------------------------- | |
| 1179 | z = Instance.new("Sound", char)
| |
| 1180 | z.SoundId = "rbxassetid://887320115"--887320115 | |
| 1181 | z.Looped = true | |
| 1182 | z.Pitch = 1 | |
| 1183 | z.Volume = 4 | |
| 1184 | wait(.1) | |
| 1185 | z:Play() | |
| 1186 | ---------------------------------------------------- | |
| 1187 | local Transforming = true | |
| 1188 | hum.WalkSpeed = 0 | |
| 1189 | local fx = Instance.new("Part",torso)
| |
| 1190 | wit = torso.BrickColor.Color | |
| 1191 | wit2 = Color3.new(0,0,0) | |
| 1192 | local glowz = Instance.new("ParticleEmitter",fx)
| |
| 1193 | glowz.LightEmission = 1 | |
| 1194 | glowz.Texture = "rbxassetid://284205403" | |
| 1195 | glowz.Color = ColorSequence.new(wit) | |
| 1196 | glowz.Size = NumberSequence.new(5) | |
| 1197 | glowz.Speed = NumberRange.new(25,50) | |
| 1198 | glowz.LockedToPart = false | |
| 1199 | glowz.Transparency = NumberSequence.new(0.75) | |
| 1200 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
| 1201 | glowz.Lifetime = NumberRange.new(1) | |
| 1202 | glowz.Rate = 50000 | |
| 1203 | glowz.VelocitySpread = 9001 | |
| 1204 | local glowz2 = Instance.new("ParticleEmitter",fx)
| |
| 1205 | glowz2.LightEmission = 0.5 | |
| 1206 | glowz.Texture = "rbxassetid://284205403" | |
| 1207 | glowz2.Color = ColorSequence.new(wit2) | |
| 1208 | glowz2.Size = NumberSequence.new(5) | |
| 1209 | glowz2.Speed = NumberRange.new(25,50) | |
| 1210 | glowz2.LockedToPart = false | |
| 1211 | glowz2.Transparency = NumberSequence.new(0.75) | |
| 1212 | glowz2.RotSpeed = NumberRange.new(-2000,2000) | |
| 1213 | glowz2.Lifetime = NumberRange.new(1) | |
| 1214 | glowz2.Rate = 50000 | |
| 1215 | glowz2.VelocitySpread = 9001 | |
| 1216 | fx.Anchored = true | |
| 1217 | fx.Material = "Neon" | |
| 1218 | fx.CanCollide = false | |
| 1219 | fx.Locked = true | |
| 1220 | fx.Transparency = 1 | |
| 1221 | fx.Material = "Neon" | |
| 1222 | fx.Size = Vector3.new(1,1,1) | |
| 1223 | fx.TopSurface = "SmoothNoOutlines" | |
| 1224 | fx.BottomSurface = "SmoothNoOutlines" | |
| 1225 | fx.BrickColor = BrickColor.new("Really black")
| |
| 1226 | fxm = Instance.new("SpecialMesh",fx)
| |
| 1227 | fxm.MeshType = "Sphere" | |
| 1228 | local sa2 = Instance.new("Sound",torso)
| |
| 1229 | sa2.SoundId = "rbxassetid://93724183" | |
| 1230 | sa2.Pitch = 0.5 | |
| 1231 | sa2.Volume = 5 | |
| 1232 | sa2.Looped = false | |
| 1233 | sa2:Play() | |
| 1234 | local value = 1 | |
| 1235 | fxm.Scale = Vector3.new(1,1,1) | |
| 1236 | for i = 1, 20 do rs:wait() | |
| 1237 | value = value - 0.05 | |
| 1238 | fx.Transparency = fx.Transparency - (1/20) | |
| 1239 | fx.CFrame = torso.CFrame | |
| 1240 | fxm.Scale = fxm.Scale + Vector3.new(value,value,value) | |
| 1241 | rs:wait() | |
| 1242 | end | |
| 1243 | ---------------------------------------------------- | |
| 1244 | GroundWave1 = function() | |
| 1245 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 1246 | local Colors = {"White", "Really black"}
| |
| 1247 | local wave = Instance.new("Part", torso)
| |
| 1248 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 1249 | wave.Anchored = true | |
| 1250 | wave.CanCollide = false | |
| 1251 | wave.Locked = true | |
| 1252 | wave.Size = Vector3.new(1, 1, 1) | |
| 1253 | wave.TopSurface = "Smooth" | |
| 1254 | wave.BottomSurface = "Smooth" | |
| 1255 | wave.Transparency = 0.35 | |
| 1256 | wave.CFrame = HandCF | |
| 1257 | wm = Instance.new("SpecialMesh", wave)
| |
| 1258 | wm.MeshId = "rbxassetid://3270017" | |
| 1259 | coroutine.wrap(function() | |
| 1260 | for i = 1, 30, 1 do | |
| 1261 | wm.Scale = Vector3.new(50, 50, 1 + i*50) | |
| 1262 | wave.Size = wm.Scale | |
| 1263 | wave.CFrame = HandCF | |
| 1264 | wave.Transparency = i/30 | |
| 1265 | wait() | |
| 1266 | end | |
| 1267 | wait() | |
| 1268 | wave:Destroy() | |
| 1269 | end)() | |
| 1270 | end | |
| 1271 | ---------------------------------------------------- | |
| 1272 | GroundWave = function() | |
| 1273 | if Transforming == true then | |
| 1274 | local value = 5 | |
| 1275 | local value2 = 10 | |
| 1276 | local value3 = 20 | |
| 1277 | local sa2 = Instance.new("Sound",torso)
| |
| 1278 | sa2.SoundId = "rbxassetid://413682983" | |
| 1279 | sa2.Pitch = 1 | |
| 1280 | sa2.Volume = 10 | |
| 1281 | sa2.Looped = false | |
| 1282 | sa2:Play() | |
| 1283 | local wave = Instance.new("Part", torso)
| |
| 1284 | local glowz = Instance.new("ParticleEmitter",wave)
| |
| 1285 | glowz.LightEmission = 1 | |
| 1286 | glowz.Texture = "rbxassetid://284205403" | |
| 1287 | glowz.Color = ColorSequence.new(wit) | |
| 1288 | glowz.Size = NumberSequence.new(30) | |
| 1289 | glowz.Speed = NumberRange.new(25,100) | |
| 1290 | glowz.LockedToPart = false | |
| 1291 | glowz.Transparency = NumberSequence.new(0.75) | |
| 1292 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
| 1293 | glowz.Lifetime = NumberRange.new(1) | |
| 1294 | glowz.Rate = 50000 | |
| 1295 | glowz.VelocitySpread = 9001 | |
| 1296 | local glowz2 = Instance.new("ParticleEmitter",wave)
| |
| 1297 | glowz2.LightEmission = 1 | |
| 1298 | glowz.Texture = "rbxassetid://284205403" | |
| 1299 | glowz2.Color = ColorSequence.new(wit) | |
| 1300 | glowz2.Size = NumberSequence.new(30) | |
| 1301 | glowz2.Speed = NumberRange.new(25,100) | |
| 1302 | glowz2.LockedToPart = false | |
| 1303 | glowz2.Transparency = NumberSequence.new(0.75) | |
| 1304 | glowz2.RotSpeed = NumberRange.new(-2000,2000) | |
| 1305 | glowz2.Lifetime = NumberRange.new(1) | |
| 1306 | glowz2.Rate = 50000 | |
| 1307 | glowz2.VelocitySpread = 9001 | |
| 1308 | wave.BrickColor = TorsoColor | |
| 1309 | wave.Anchored = true | |
| 1310 | wave.CanCollide = false | |
| 1311 | wave.Locked = true | |
| 1312 | wave.Size = Vector3.new(1, 1, 1) | |
| 1313 | wave.TopSurface = "Smooth" | |
| 1314 | wave.BottomSurface = "Smooth" | |
| 1315 | wave.Transparency = 0.35 | |
| 1316 | wave.CFrame = fx.CFrame | |
| 1317 | wave.Material = "Neon" | |
| 1318 | wm = Instance.new("SpecialMesh", wave)
| |
| 1319 | wm.MeshType = "Sphere" | |
| 1320 | wm.Scale = Vector3.new(1,1,1) | |
| 1321 | local wave2 = Instance.new("Part", torso)
| |
| 1322 | wave2.BrickColor = TorsoColor | |
| 1323 | wave2.Anchored = true | |
| 1324 | wave2.CanCollide = false | |
| 1325 | wave2.Locked = true | |
| 1326 | wave2.Size = Vector3.new(1, 1, 1) | |
| 1327 | wave2.TopSurface = "Smooth" | |
| 1328 | wave2.BottomSurface = "Smooth" | |
| 1329 | wave2.Transparency = 0.35 | |
| 1330 | wave2.CFrame = fx.CFrame | |
| 1331 | wave2.Material = "Neon" | |
| 1332 | wm2 = Instance.new("SpecialMesh", wave2)
| |
| 1333 | wm2.MeshType = "FileMesh" | |
| 1334 | wm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1335 | wm2.Scale = Vector3.new(1,1,1) | |
| 1336 | local wave3 = Instance.new("Part", torso)
| |
| 1337 | wave3.BrickColor = BrickColor.new("Really black")
| |
| 1338 | wave3.Anchored = true | |
| 1339 | wave3.CanCollide = false | |
| 1340 | wave3.Locked = true | |
| 1341 | wave3.Size = Vector3.new(1, 1, 1) | |
| 1342 | wave3.TopSurface = "Smooth" | |
| 1343 | wave3.BottomSurface = "Smooth" | |
| 1344 | wave3.Transparency = 0.35 | |
| 1345 | wave3.CFrame = fx.CFrame | |
| 1346 | wave3.Material = "Neon" | |
| 1347 | wm3 = Instance.new("SpecialMesh", wave3)
| |
| 1348 | wm3.MeshType = "FileMesh" | |
| 1349 | wm3.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1350 | wm3.Scale = Vector3.new(1,1,1) | |
| 1351 | coroutine.wrap(function() | |
| 1352 | for i = 1, 18, 1 do | |
| 1353 | value = value - 0.5 | |
| 1354 | value2 = value2 - 0.75*1.5 | |
| 1355 | value3 = value3 - 0.475*1.5 | |
| 1356 | wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5) | |
| 1357 | wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5) | |
| 1358 | wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25) | |
| 1359 | --wave.Size = wm.Scale | |
| 1360 | wave.CFrame = fx.CFrame | |
| 1361 | wave.Transparency = i/14 | |
| 1362 | --wave2.Size = wm2.Scale | |
| 1363 | wave2.CFrame = fx.CFrame | |
| 1364 | wave2.Rotation = Vector3.new(90, 0, 0) | |
| 1365 | wave2.Transparency = i/14 | |
| 1366 | --wave3.Size = wm3.Scale | |
| 1367 | wave3.CFrame = fx.CFrame | |
| 1368 | wave3.Rotation = Vector3.new(90, 0, 0) | |
| 1369 | wave3.Transparency = i/14 | |
| 1370 | wait() | |
| 1371 | glowz.Rate = 0 | |
| 1372 | glowz2.Rate = 0 | |
| 1373 | end | |
| 1374 | wait() | |
| 1375 | wave:Destroy() | |
| 1376 | wave2:Destroy() | |
| 1377 | wave3:Destroy() | |
| 1378 | end)() | |
| 1379 | elseif Transforming == false then | |
| 1380 | wait() | |
| 1381 | end | |
| 1382 | end | |
| 1383 | ||
| 1384 | for i = 1, 100 do rs:wait() | |
| 1385 | fx.CFrame = torso.CFrame | |
| 1386 | end | |
| 1387 | ||
| 1388 | Spawn(function() | |
| 1389 | while wait(1) do | |
| 1390 | GroundWave() | |
| 1391 | end | |
| 1392 | end) | |
| 1393 | ||
| 1394 | wait(4) | |
| 1395 | ||
| 1396 | Transforming = false | |
| 1397 | ||
| 1398 | local value2 = 1 | |
| 1399 | for i = 1, 20 do rs:wait() | |
| 1400 | value2 = value2 - 0.05 | |
| 1401 | glowz.Rate = 0 | |
| 1402 | glowz2.Rate = 0 | |
| 1403 | fx.Transparency = fx.Transparency + (1/20) | |
| 1404 | fx.CFrame = torso.CFrame | |
| 1405 | fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2) | |
| 1406 | rs:wait() | |
| 1407 | end | |
| 1408 | glowz:Destroy() | |
| 1409 | glowz2:Destroy() | |
| 1410 | ||
| 1411 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 1412 | local valuer = 5 | |
| 1413 | local valuer2 = 10 | |
| 1414 | local valuer3 = 15 | |
| 1415 | local sa2 = Instance.new("Sound",torso)
| |
| 1416 | sa2.SoundId = "rbxassetid://130972023" | |
| 1417 | sa2.Pitch = 1 | |
| 1418 | sa2.Volume = 5 | |
| 1419 | sa2.Looped = false | |
| 1420 | sa2:Play() | |
| 1421 | local sar2 = Instance.new("Sound",torso)
| |
| 1422 | sar2.SoundId = "rbxassetid://153274423" | |
| 1423 | sar2.Pitch = 1 | |
| 1424 | sar2.Volume = 5 | |
| 1425 | sar2.Looped = false | |
| 1426 | sar2:Play() | |
| 1427 | local wave = Instance.new("Part", torso)
| |
| 1428 | wave.BrickColor = TorsoColor | |
| 1429 | wave.Anchored = true | |
| 1430 | wave.CanCollide = false | |
| 1431 | wave.Locked = true | |
| 1432 | wave.Size = Vector3.new(1, 1, 1) | |
| 1433 | wave.TopSurface = "Smooth" | |
| 1434 | wave.BottomSurface = "Smooth" | |
| 1435 | wave.Transparency = 0.35 | |
| 1436 | wave.CFrame = HandCF | |
| 1437 | wm = Instance.new("SpecialMesh", wave)
| |
| 1438 | wm.MeshId = "rbxassetid://3270017" | |
| 1439 | local wave2 = Instance.new("Part", torso)
| |
| 1440 | wave2.BrickColor = BrickColor.new("Really black")
| |
| 1441 | wave2.Anchored = true | |
| 1442 | wave2.CanCollide = false | |
| 1443 | wave2.Locked = true | |
| 1444 | wave2.Size = Vector3.new(1, 1, 1) | |
| 1445 | wave2.TopSurface = "Smooth" | |
| 1446 | wave2.BottomSurface = "Smooth" | |
| 1447 | wave2.Transparency = 0.35 | |
| 1448 | wave2.CFrame = HandCF | |
| 1449 | wm2 = Instance.new("SpecialMesh", wave2)
| |
| 1450 | wm2.MeshId = "rbxassetid://3270017" | |
| 1451 | local wave3 = Instance.new("Part", torso)
| |
| 1452 | wave3.BrickColor = TorsoColor | |
| 1453 | wave3.Anchored = true | |
| 1454 | wave3.CanCollide = false | |
| 1455 | wave3.Locked = true | |
| 1456 | wave3.Size = Vector3.new(1, 1, 1) | |
| 1457 | wave3.TopSurface = "Smooth" | |
| 1458 | wave3.BottomSurface = "Smooth" | |
| 1459 | wave3.Transparency = 0.35 | |
| 1460 | wave3.CFrame = HandCF | |
| 1461 | wm3 = Instance.new("SpecialMesh", wave3)
| |
| 1462 | wm3.MeshId = "rbxassetid://3270017" | |
| 1463 | coroutine.wrap(function() | |
| 1464 | for i = 1, 14, 1 do | |
| 1465 | valuer = valuer - 0.35 | |
| 1466 | valuer2 = valuer - 0.45 | |
| 1467 | valuer3 = valuer3 - 0.475 | |
| 1468 | wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200) | |
| 1469 | wave.Size = wm.Scale | |
| 1470 | wave.CFrame = HandCF | |
| 1471 | wave.Transparency = i/14 | |
| 1472 | wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10) | |
| 1473 | wave2.Size = wm2.Scale | |
| 1474 | wave2.CFrame = HandCF | |
| 1475 | wave2.Transparency = i/14 | |
| 1476 | wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1) | |
| 1477 | wave3.Size = wm2.Scale | |
| 1478 | wave3.CFrame = HandCF | |
| 1479 | wave3.Transparency = i/14 | |
| 1480 | wait() | |
| 1481 | end | |
| 1482 | wait() | |
| 1483 | wave:Destroy() | |
| 1484 | wave2:Destroy() | |
| 1485 | end)() | |
| 1486 | hum.WalkSpeed = 16 | |
| 1487 | ---------------------------------------------------- | |
| 1488 | local cor = Instance.new("Part", char)
| |
| 1489 | cor.Name = "Thingy" | |
| 1490 | cor.Locked = true | |
| 1491 | cor.BottomSurface = 0 | |
| 1492 | cor.CanCollide = false | |
| 1493 | cor.Size = Vector3.new(1, 13, 1) | |
| 1494 | cor.Transparency = 1 | |
| 1495 | cor.TopSurface = 0 | |
| 1496 | corw = Instance.new("Weld", cor)
| |
| 1497 | corw.Part0 = rarm | |
| 1498 | corw.Part1 = cor | |
| 1499 | corw.C0 = CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1500 | corw.C1 = CFrame.new(0, 0, 0) | |
| 1501 | weld1 = Instance.new("Weld", char)
| |
| 1502 | weld1.Part0 = cor | |
| 1503 | weld1.Part1 = p6 | |
| 1504 | weld1.C0 = CFrame.new(0, 0, 0) | |
| 1505 | ---------------------------------------------------- | |
| 1506 | Blast = function() | |
| 1507 | local Colors = {"Really black", "Really black"}
| |
| 1508 | local wave = Instance.new("Part", torso)
| |
| 1509 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 1510 | wave.Anchored = true | |
| 1511 | wave.CanCollide = false | |
| 1512 | wave.Locked = true | |
| 1513 | wave.Size = Vector3.new(1, 1, 1) | |
| 1514 | wave.TopSurface = "Smooth" | |
| 1515 | wave.BottomSurface = "Smooth" | |
| 1516 | wave.Transparency = 0.35 | |
| 1517 | wave.CFrame = rarm.CFrame | |
| 1518 | wm = Instance.new("SpecialMesh", wave)
| |
| 1519 | wm.MeshType = "Sphere" | |
| 1520 | wm.Scale = Vector3.new(1,1,1) | |
| 1521 | z = Instance.new("Sound",wave)
| |
| 1522 | z.SoundId = "rbxassetid://237035051" | |
| 1523 | z.Volume = 1 | |
| 1524 | z.Pitch = .9 | |
| 1525 | z:Play() | |
| 1526 | coroutine.wrap(function() | |
| 1527 | for i = 1, 30, 1 do | |
| 1528 | wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4) | |
| 1529 | --wave.Size = wm.Scale | |
| 1530 | wave.CFrame = rarm.CFrame | |
| 1531 | wave.Transparency = (1/14) | |
| 1532 | rs:wait() | |
| 1533 | end | |
| 1534 | rs:wait() | |
| 1535 | wave:Destroy() | |
| 1536 | z:Destroy() | |
| 1537 | end)() | |
| 1538 | end | |
| 1539 | ---------------------------------------------------- | |
| 1540 | rarm.Touched:connect(function(ht) | |
| 1541 | hit = ht.Parent | |
| 1542 | if ht and hit:IsA("Model") then
| |
| 1543 | if hit:FindFirstChild("Humanoid") then
| |
| 1544 | if hit.Name ~= p.Name then | |
| 1545 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 1546 | Debounces.RPunched = true | |
| 1547 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 1548 | if Debounces.ks==true then | |
| 1549 | z = Instance.new("Sound",hed)
| |
| 1550 | z.SoundId = "rbxassetid://169380525" | |
| 1551 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1552 | z.Volume = 1 | |
| 1553 | z:Play() | |
| 1554 | end | |
| 1555 | wait(.2) | |
| 1556 | Debounces.RPunched = false | |
| 1557 | end | |
| 1558 | end | |
| 1559 | end | |
| 1560 | elseif ht and hit:IsA("Hat") then
| |
| 1561 | if hit.Parent.Name ~= p.Name then | |
| 1562 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1563 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 1564 | Debounces.RPunched = true | |
| 1565 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 1566 | if Debounces.ks==true then | |
| 1567 | z = Instance.new("Sound",hed)
| |
| 1568 | z.SoundId = "rbxassetid://169380525" | |
| 1569 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1570 | z.Volume = 1 | |
| 1571 | z:Play() | |
| 1572 | end | |
| 1573 | wait(.2) | |
| 1574 | Debounces.RPunched = false | |
| 1575 | end | |
| 1576 | end | |
| 1577 | end | |
| 1578 | end | |
| 1579 | end) | |
| 1580 | larm.Touched:connect(function(ht) | |
| 1581 | hit = ht.Parent | |
| 1582 | if ht and hit:IsA("Model") then
| |
| 1583 | if hit:FindFirstChild("Humanoid") then
| |
| 1584 | if hit.Name ~= p.Name then | |
| 1585 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 1586 | Debounces.LPunched = true | |
| 1587 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 1588 | if Debounces.ks2==true then | |
| 1589 | z = Instance.new("Sound",hed)
| |
| 1590 | z.SoundId = "rbxassetid://169380525" | |
| 1591 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1592 | z.Volume = 1 | |
| 1593 | z:Play() | |
| 1594 | end | |
| 1595 | wait(.2) | |
| 1596 | Debounces.LPunched = false | |
| 1597 | end | |
| 1598 | end | |
| 1599 | end | |
| 1600 | elseif ht and hit:IsA("Hat") then
| |
| 1601 | if hit.Parent.Name ~= p.Name then | |
| 1602 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1603 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 1604 | Debounces.LPunched = true | |
| 1605 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 1606 | if Debounces.ks2==true then | |
| 1607 | z = Instance.new("Sound",hed)
| |
| 1608 | z.SoundId = "rbxassetid://169380525" | |
| 1609 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1610 | z.Volume = 1 | |
| 1611 | z:Play() | |
| 1612 | end | |
| 1613 | wait(.2) | |
| 1614 | Debounces.LPunched = false | |
| 1615 | end | |
| 1616 | end | |
| 1617 | end | |
| 1618 | end | |
| 1619 | end) | |
| 1620 | ---------------------------------------------------- | |
| 1621 | mod4 = Instance.new("Model",char)
| |
| 1622 | ||
| 1623 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 1624 | ||
| 1625 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 1626 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 1627 | local List = {}
| |
| 1628 | for i,v in pairs(workspace:GetChildren())do | |
| 1629 | if v:IsA("Model")then
| |
| 1630 | if v:findFirstChild("Torso")then
| |
| 1631 | if v ~= char then | |
| 1632 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 1633 | table.insert(List,v) | |
| 1634 | end | |
| 1635 | end | |
| 1636 | end | |
| 1637 | end | |
| 1638 | end | |
| 1639 | return List | |
| 1640 | end | |
| 1641 | ||
| 1642 | function Punch() | |
| 1643 | part=Instance.new('Part',mod4)
| |
| 1644 | part.Anchored=true | |
| 1645 | part.CanCollide=false | |
| 1646 | part.FormFactor='Custom' | |
| 1647 | part.Size=Vector3.new(.2,.2,.2) | |
| 1648 | part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0) | |
| 1649 | part.Transparency=.7 | |
| 1650 | part.BrickColor=BrickColor.new('Really black')
| |
| 1651 | mesh=Instance.new('SpecialMesh',part)
| |
| 1652 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
| 1653 | mesh.Scale=Vector3.new(3,3,3) | |
| 1654 | part2=Instance.new('Part',mod4)
| |
| 1655 | part2.Anchored=true | |
| 1656 | part2.CanCollide=false | |
| 1657 | part2.FormFactor='Custom' | |
| 1658 | part2.Size=Vector3.new(.2,.2,.2) | |
| 1659 | part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
| 1660 | part2.Transparency=.7 | |
| 1661 | part2.BrickColor=BrickColor.new('Really black')
| |
| 1662 | mesh2=Instance.new('SpecialMesh',part2)
| |
| 1663 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 1664 | mesh2.Scale=Vector3.new(3,1.5,3) | |
| 1665 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
| 1666 | if v:FindFirstChild('Humanoid') then
| |
| 1667 | v.Humanoid:TakeDamage(math.random(2,6)) | |
| 1668 | end | |
| 1669 | end | |
| 1670 | coroutine.resume(coroutine.create(function() | |
| 1671 | for i=0,0.62,0.4 do | |
| 1672 | wait() | |
| 1673 | part.CFrame=part.CFrame | |
| 1674 | part.Transparency=i | |
| 1675 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
| 1676 | part2.CFrame=part2.CFrame | |
| 1677 | part2.Transparency=i | |
| 1678 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
| 1679 | end | |
| 1680 | part.Parent=nil | |
| 1681 | part2.Parent=nil | |
| 1682 | end)) | |
| 1683 | end | |
| 1684 | ---------------------------------------------------- | |
| 1685 | rarm.Touched:connect(function(ht) | |
| 1686 | hit = ht.Parent | |
| 1687 | if ht and hit:IsA("Model") then
| |
| 1688 | if hit:FindFirstChild("Humanoid") then
| |
| 1689 | if hit.Name ~= p.Name then | |
| 1690 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 1691 | Debounces.RPunched = true | |
| 1692 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 1693 | if Debounces.ks==true then | |
| 1694 | z = Instance.new("Sound",hed)
| |
| 1695 | z.SoundId = "rbxassetid://169380525" | |
| 1696 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1697 | z.Volume = 1 | |
| 1698 | z:Play() | |
| 1699 | end | |
| 1700 | wait(.2) | |
| 1701 | Debounces.RPunched = false | |
| 1702 | end | |
| 1703 | end | |
| 1704 | end | |
| 1705 | elseif ht and hit:IsA("Hat") then
| |
| 1706 | if hit.Parent.Name ~= p.Name then | |
| 1707 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1708 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
| 1709 | Debounces.RPunched = true | |
| 1710 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8))
| |
| 1711 | if Debounces.ks==true then | |
| 1712 | z = Instance.new("Sound",hed)
| |
| 1713 | z.SoundId = "rbxassetid://169380525" | |
| 1714 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1715 | z.Volume = 1 | |
| 1716 | z:Play() | |
| 1717 | end | |
| 1718 | wait(.2) | |
| 1719 | Debounces.RPunched = false | |
| 1720 | end | |
| 1721 | end | |
| 1722 | end | |
| 1723 | end | |
| 1724 | end) | |
| 1725 | larm.Touched:connect(function(ht) | |
| 1726 | hit = ht.Parent | |
| 1727 | if ht and hit:IsA("Model") then
| |
| 1728 | if hit:FindFirstChild("Humanoid") then
| |
| 1729 | if hit.Name ~= p.Name then | |
| 1730 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 1731 | Debounces.LPunched = true | |
| 1732 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 1733 | if Debounces.ks2==true then | |
| 1734 | z = Instance.new("Sound",hed)
| |
| 1735 | z.SoundId = "rbxassetid://169380525" | |
| 1736 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1737 | z.Volume = 1 | |
| 1738 | z:Play() | |
| 1739 | end | |
| 1740 | wait(.2) | |
| 1741 | Debounces.LPunched = false | |
| 1742 | end | |
| 1743 | end | |
| 1744 | end | |
| 1745 | elseif ht and hit:IsA("Hat") then
| |
| 1746 | if hit.Parent.Name ~= p.Name then | |
| 1747 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1748 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
| 1749 | Debounces.LPunched = true | |
| 1750 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8))
| |
| 1751 | if Debounces.ks2==true then | |
| 1752 | z = Instance.new("Sound",hed)
| |
| 1753 | z.SoundId = "rbxassetid://169380525" | |
| 1754 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1755 | z.Volume = 1 | |
| 1756 | z:Play() | |
| 1757 | end | |
| 1758 | wait(.2) | |
| 1759 | Debounces.LPunched = false | |
| 1760 | end | |
| 1761 | end | |
| 1762 | end | |
| 1763 | end | |
| 1764 | end) | |
| 1765 | ---------------------------------------------------- | |
| 1766 | local player = game.Players.LocalPlayer | |
| 1767 | local pchar = player.Character | |
| 1768 | local mouse = player:GetMouse() | |
| 1769 | local cam = workspace.CurrentCamera | |
| 1770 | ||
| 1771 | local rad = math.rad | |
| 1772 | ||
| 1773 | local keysDown = {}
| |
| 1774 | local flySpeed = 0 | |
| 1775 | local MAX_FLY_SPEED = 3000 | |
| 1776 | ||
| 1777 | local canFly = false | |
| 1778 | local flyToggled = false | |
| 1779 | ||
| 1780 | local forward, side = 0, 0 | |
| 1781 | local lastForward, lastSide = 0, 0 | |
| 1782 | ||
| 1783 | local floatBP = Instance.new("BodyPosition")
| |
| 1784 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
| 1785 | local flyBV = Instance.new("BodyVelocity")
| |
| 1786 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
| 1787 | local turnBG = Instance.new("BodyGyro")
| |
| 1788 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 1789 | ||
| 1790 | mouse.KeyDown:connect(function(key) | |
| 1791 | keysDown[key] = true | |
| 1792 | ||
| 1793 | if key == "f" then | |
| 1794 | flyToggled = not flyToggled | |
| 1795 | ||
| 1796 | if not flyToggled then | |
| 1797 | stanceToggle = "Normal" | |
| 1798 | floatBP.Parent = nil | |
| 1799 | flyBV.Parent = nil | |
| 1800 | turnBG.Parent = nil | |
| 1801 | root.Velocity = Vector3.new() | |
| 1802 | pchar.Humanoid.PlatformStand = false | |
| 1803 | end | |
| 1804 | end | |
| 1805 | ||
| 1806 | end) | |
| 1807 | mouse.KeyUp:connect(function(key) | |
| 1808 | keysDown[key] = nil | |
| 1809 | end) | |
| 1810 | ||
| 1811 | local function updateFly() | |
| 1812 | ||
| 1813 | if not flyToggled then return end | |
| 1814 | ||
| 1815 | lastForward = forward | |
| 1816 | lastSide = side | |
| 1817 | ||
| 1818 | forward = 0 | |
| 1819 | side = 0 | |
| 1820 | ||
| 1821 | if keysDown.w then | |
| 1822 | forward = forward + 1 | |
| 1823 | end | |
| 1824 | if keysDown.s then | |
| 1825 | forward = forward - 1 | |
| 1826 | end | |
| 1827 | if keysDown.a then | |
| 1828 | side = side - 1 | |
| 1829 | end | |
| 1830 | if keysDown.d then | |
| 1831 | side = side + 1 | |
| 1832 | end | |
| 1833 | ||
| 1834 | canFly = (forward ~= 0 or side ~= 0) | |
| 1835 | ||
| 1836 | if canFly then | |
| 1837 | stanceToggle = "Floating" | |
| 1838 | turnBG.Parent = root | |
| 1839 | floatBP.Parent = nil | |
| 1840 | flyBV.Parent = root | |
| 1841 | ||
| 1842 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
| 1843 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
| 1844 | else | |
| 1845 | floatBP.position = root.Position | |
| 1846 | floatBP.Parent = root | |
| 1847 | ||
| 1848 | flySpeed = flySpeed - 1 | |
| 1849 | if flySpeed < 0 then flySpeed = 0 end | |
| 1850 | end | |
| 1851 | ||
| 1852 | local camCF = cam.CoordinateFrame | |
| 1853 | local in_forward = canFly and forward or lastForward | |
| 1854 | local in_side = canFly and side or lastSide | |
| 1855 | ||
| 1856 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
| 1857 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
| 1858 | ||
| 1859 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
| 1860 | 0) | |
| 1861 | end | |
| 1862 | ||
| 1863 | game:service'RunService'.RenderStepped:connect(function() | |
| 1864 | if flyToggled then | |
| 1865 | pchar.Humanoid.PlatformStand = true | |
| 1866 | end | |
| 1867 | updateFly() | |
| 1868 | end) | |
| 1869 | ------------------------------- | |
| 1870 | mouse.KeyDown:connect(function(key) | |
| 1871 | if key == "q" then | |
| 1872 | if Debounces.CanAttack == true then | |
| 1873 | Debounces.CanAttack = false | |
| 1874 | Debounces.NoIdl = true | |
| 1875 | Debounces.on = true | |
| 1876 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 1877 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 1878 | local List = {}
| |
| 1879 | for i,v in pairs(workspace:GetChildren())do | |
| 1880 | if v:IsA("Model")then
| |
| 1881 | if v:findFirstChild("Torso")then
| |
| 1882 | if v ~= char then | |
| 1883 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 1884 | table.insert(List,v) | |
| 1885 | end | |
| 1886 | end | |
| 1887 | end | |
| 1888 | end | |
| 1889 | end | |
| 1890 | return List | |
| 1891 | end | |
| 1892 | z = Instance.new("Sound",workspace)
| |
| 1893 | z.SoundId = "rbxassetid://232213955" | |
| 1894 | z.Pitch = 0.75 | |
| 1895 | z.Volume = 5 | |
| 1896 | wait(0.2) | |
| 1897 | z:Play() | |
| 1898 | sp = Instance.new("Part",rarm)
| |
| 1899 | sp.Anchored = true | |
| 1900 | sp.CanCollide = false | |
| 1901 | sp.Locked = true | |
| 1902 | sp.Transparency = 0 | |
| 1903 | sp.Material = "Neon" | |
| 1904 | sp.Size = Vector3.new(2,2,2) | |
| 1905 | sp.TopSurface = "SmoothNoOutlines" | |
| 1906 | sp.BottomSurface = "SmoothNoOutlines" | |
| 1907 | sp.BrickColor = TorsoColor | |
| 1908 | spm = Instance.new("SpecialMesh",sp)
| |
| 1909 | spm.MeshType = "Sphere" | |
| 1910 | spm.Scale = Vector3.new(42,42,42) | |
| 1911 | sp2 = Instance.new("Part", rarm)
| |
| 1912 | sp2.Name = "Energy" | |
| 1913 | sp2.BrickColor = TorsoColor | |
| 1914 | sp2.Size = Vector3.new(1, 1, 1) | |
| 1915 | sp2.Shape = "Ball" | |
| 1916 | sp2.CanCollide = false | |
| 1917 | sp2.Anchored = true | |
| 1918 | sp2.Locked = true | |
| 1919 | sp2.TopSurface = 0 | |
| 1920 | sp2.BottomSurface = 0 | |
| 1921 | sp2.Transparency = 1 | |
| 1922 | spm2 = Instance.new("SpecialMesh",sp2)
| |
| 1923 | spm2.MeshId = "rbxassetid://9982590" | |
| 1924 | spm2.Scale = Vector3.new(4,4,4) | |
| 1925 | sp3 = Instance.new("Part", rarm)
| |
| 1926 | sp3.Name = "Energy" | |
| 1927 | sp3.BrickColor = TorsoColor | |
| 1928 | sp3.Size = Vector3.new(1, 1, 1) | |
| 1929 | sp3.Shape = "Ball" | |
| 1930 | sp3.CanCollide = false | |
| 1931 | sp3.Anchored = true | |
| 1932 | sp3.Locked = true | |
| 1933 | sp3.TopSurface = 0 | |
| 1934 | sp3.BottomSurface = 0 | |
| 1935 | sp3.Transparency = 1 | |
| 1936 | spm3 = Instance.new("SpecialMesh",sp2)
| |
| 1937 | spm3.MeshId = "rbxassetid://9982590" | |
| 1938 | spm3.Scale = Vector3.new(8,8,8) | |
| 1939 | for i = 1, 20 do | |
| 1940 | spm.Scale = spm.Scale - Vector3.new(2,2,2) | |
| 1941 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 1942 | 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) | |
| 1943 | 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) | |
| 1944 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
| 1945 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 1946 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 1947 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 1948 | if Debounces.on == false then break end | |
| 1949 | rs:wait() | |
| 1950 | end | |
| 1951 | for i = 1, 100, 20 do rs:wait() | |
| 1952 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 1953 | end | |
| 1954 | for i = 1, 20 do | |
| 1955 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
| 1956 | 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) | |
| 1957 | 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) | |
| 1958 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) | |
| 1959 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) | |
| 1960 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 1961 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 1962 | if Debounces.on == false then break end | |
| 1963 | rs:wait() | |
| 1964 | end | |
| 1965 | sp.Transparency = 1 | |
| 1966 | for i = 1, 20 do | |
| 1967 | 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) | |
| 1968 | 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) | |
| 1969 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) | |
| 1970 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) | |
| 1971 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 1972 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 1973 | if Debounces.on == false then break end | |
| 1974 | rs:wait() | |
| 1975 | end | |
| 1976 | wait(1) | |
| 1977 | sp.Transparency = 0 | |
| 1978 | sp2.Transparency = 0.84 | |
| 1979 | for i = 1, 20 do | |
| 1980 | --spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
| 1981 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
| 1982 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
| 1983 | sp3.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
| 1984 | 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) | |
| 1985 | 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) | |
| 1986 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
| 1987 | 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) | |
| 1988 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
| 1989 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
| 1990 | if Debounces.on == false then break end | |
| 1991 | rs:wait() | |
| 1992 | end | |
| 1993 | for i = 1, 2880, 50 do | |
| 1994 | rs:wait() | |
| 1995 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
| 1996 | sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 1997 | sp3.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/-10), math.rad(-i/-10), math.rad(i/-10)) | |
| 1998 | rs:wait() | |
| 1999 | end | |
| 2000 | sp:Destroy() | |
| 2001 | sp2:Destroy() | |
| 2002 | sp3:Destroy() | |
| 2003 | local X = Instance.new("Part",char)
| |
| 2004 | local O = Instance.new("ObjectValue",X)
| |
| 2005 | O.Name = "creator" | |
| 2006 | X.Locked = true | |
| 2007 | X.Name = "Shell" | |
| 2008 | X.Anchored = false | |
| 2009 | X.CanCollide = false | |
| 2010 | X.Transparency = 0 | |
| 2011 | X.Reflectance = 0 | |
| 2012 | X.BottomSurface = 0 | |
| 2013 | X.TopSurface = 0 | |
| 2014 | X.Shape = 0 | |
| 2015 | local V = Instance.new("ObjectValue",X)
| |
| 2016 | V.Value = char | |
| 2017 | V.Name = "creator" | |
| 2018 | X.BrickColor = TorsoColor | |
| 2019 | X.Size = Vector3.new(2,2,2) | |
| 2020 | X.Material = "Neon" | |
| 2021 | local Z = Instance.new("SpecialMesh",X)
| |
| 2022 | Z.MeshType = "Sphere" | |
| 2023 | Z.Scale = Vector3.new(0.5,0.5,1) | |
| 2024 | X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) | |
| 2025 | local bv = Instance.new("BodyVelocity",X)
| |
| 2026 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 2027 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
| 2028 | bv.velocity = X.CFrame.lookVector*75 | |
| 2029 | ||
| 2030 | Explode = X.Touched:connect(function(hit) | |
| 2031 | if hit ~= char and hit.Name ~= "Shell" then | |
| 2032 | local cf = X.CFrame | |
| 2033 | bv:Destroy() | |
| 2034 | X.Anchored = true | |
| 2035 | Z:Remove() | |
| 2036 | Explode:disconnect() | |
| 2037 | X.Size = Vector3.new(6,6,6) | |
| 2038 | X.Touched:connect(function(hit) end) | |
| 2039 | X.CanCollide = false | |
| 2040 | local part3 = Instance.new("Part", rarm)
| |
| 2041 | part3.Anchored=true | |
| 2042 | part3.CanCollide=false | |
| 2043 | part3.Locked = true | |
| 2044 | part3.TopSurface = "SmoothNoOutlines" | |
| 2045 | part3.BottomSurface = "SmoothNoOutlines" | |
| 2046 | part3.FormFactor='Custom' | |
| 2047 | part3.Size=Vector3.new(2,2, 2) | |
| 2048 | part3.CFrame=X.CFrame | |
| 2049 | part3.Transparency=0 | |
| 2050 | part3.BrickColor=TorsoColor | |
| 2051 | local mesh3 = Instance.new("SpecialMesh",part3)
| |
| 2052 | mesh3.MeshType = "Sphere" | |
| 2053 | mesh3.Scale = Vector3.new(2,2,2) | |
| 2054 | --debris:AddItem(X,8) | |
| 2055 | local part4 = Instance.new("Part", rarm)
| |
| 2056 | part4.Material = "Neon" | |
| 2057 | part4.Anchored=true | |
| 2058 | part4.CanCollide=false | |
| 2059 | part4.Locked = true | |
| 2060 | part4.TopSurface = "SmoothNoOutlines" | |
| 2061 | part4.BottomSurface = "SmoothNoOutlines" | |
| 2062 | part4.FormFactor='Custom' | |
| 2063 | part4.Size=Vector3.new(2,2, 2) | |
| 2064 | part4.CFrame=X.CFrame | |
| 2065 | part4.Transparency=0 | |
| 2066 | part4.BrickColor=BrickColor.new("Black")
| |
| 2067 | local mesh4 = Instance.new("SpecialMesh",part4)
| |
| 2068 | mesh4.MeshType = "Sphere" | |
| 2069 | mesh4.Scale = Vector3.new(1,1,1) | |
| 2070 | local part7 = Instance.new("Part", rarm)
| |
| 2071 | part7.Material = "Neon" | |
| 2072 | part7.Anchored=true | |
| 2073 | part7.CanCollide=false | |
| 2074 | part7.Locked = true | |
| 2075 | part7.TopSurface = "SmoothNoOutlines" | |
| 2076 | part7.BottomSurface = "SmoothNoOutlines" | |
| 2077 | part7.FormFactor='Custom' | |
| 2078 | part7.Size=Vector3.new(2,2, 2) | |
| 2079 | part7.CFrame=X.CFrame | |
| 2080 | part7.Transparency=0 | |
| 2081 | part7.BrickColor=BrickColor.new("Really black")
| |
| 2082 | local mesh7 = Instance.new("SpecialMesh",part7)
| |
| 2083 | mesh7.MeshType = "Sphere" | |
| 2084 | mesh7.Scale = Vector3.new(0.2, 0.2, 0.2) | |
| 2085 | --[[X.Touched:connect(function(ht) | |
| 2086 | hit = ht.Parent | |
| 2087 | if ht and hit:IsA("Model") then
| |
| 2088 | if hit:FindFirstChild("Humanoid") then
| |
| 2089 | if hit.Name ~= p.Name then | |
| 2090 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 2091 | wait(.3) | |
| 2092 | end | |
| 2093 | end | |
| 2094 | elseif ht and hit:IsA("Hat") then
| |
| 2095 | if hit.Parent.Name ~= p.Name then | |
| 2096 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 2097 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 2098 | wait(.3) | |
| 2099 | end | |
| 2100 | end | |
| 2101 | end | |
| 2102 | end) | |
| 2103 | part3.Touched:connect(function(ht) | |
| 2104 | hit = ht.Parent | |
| 2105 | if ht and hit:IsA("Model") then
| |
| 2106 | if hit:FindFirstChild("Humanoid") then
| |
| 2107 | if hit.Name ~= p.Name then | |
| 2108 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 2109 | wait(.3) | |
| 2110 | end | |
| 2111 | end | |
| 2112 | elseif ht and hit:IsA("Hat") then
| |
| 2113 | if hit.Parent.Name ~= p.Name then | |
| 2114 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 2115 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6))
| |
| 2116 | wait(.3) | |
| 2117 | end | |
| 2118 | end | |
| 2119 | end | |
| 2120 | end)]]-- | |
| 2121 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
| 2122 | if v:FindFirstChild('Humanoid') then
| |
| 2123 | v.Humanoid:TakeDamage(math.random(60,90)) | |
| 2124 | v.Humanoid.PlatformStand = true | |
| 2125 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
| |
| 2126 | end | |
| 2127 | end | |
| 2128 | ||
| 2129 | local acos = math.acos | |
| 2130 | local sqrt = math.sqrt | |
| 2131 | local Vec3 = Vector3.new | |
| 2132 | local fromAxisAngle = CFrame.fromAxisAngle | |
| 2133 | ||
| 2134 | local function toAxisAngle(CFr) | |
| 2135 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
| 2136 | local Angle = math.acos((R00+R11+R22-1)/2) | |
| 2137 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 2138 | A = A == 0 and 0.00001 or A | |
| 2139 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 2140 | B = B == 0 and 0.00001 or B | |
| 2141 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
| 2142 | C = C == 0 and 0.00001 or C | |
| 2143 | local x = (R21-R12)/sqrt(A) | |
| 2144 | local y = (R02-R20)/sqrt(B) | |
| 2145 | local z = (R10-R01)/sqrt(C) | |
| 2146 | return Vec3(x,y,z),Angle | |
| 2147 | end | |
| 2148 | ||
| 2149 | function ApplyTrig(Num,Func) | |
| 2150 | local Min,Max = Func(0),Func(1) | |
| 2151 | local i = Func(Num) | |
| 2152 | return (i-Min)/(Max-Min) | |
| 2153 | end | |
| 2154 | ||
| 2155 | function LerpCFrame(CFrame1,CFrame2,Num) | |
| 2156 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
| 2157 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
| 2158 | end | |
| 2159 | ||
| 2160 | function Crater(Torso,Radius) | |
| 2161 | Spawn(function() | |
| 2162 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
| 2163 | local Ignore = {}
| |
| 2164 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 2165 | if v.Character ~= nil then | |
| 2166 | Ignore[#Ignore+1] = v.Character | |
| 2167 | end | |
| 2168 | end | |
| 2169 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
| 2170 | if Hit == nil then return end | |
| 2171 | local Parts = {}
| |
| 2172 | for i = 1,360,10 do | |
| 2173 | local P = Instance.new("Part",Torso.Parent)
| |
| 2174 | P.Anchored = true | |
| 2175 | P.FormFactor = "Custom" | |
| 2176 | P.BrickColor = Hit.BrickColor | |
| 2177 | P.Material = Hit.Material | |
| 2178 | P.TopSurface = "Smooth" | |
| 2179 | P.BottomSurface = "Smooth" | |
| 2180 | P.Size = Vector3.new(10,20,20)*(math.random(80,100)/100) | |
| 2181 | 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))) | |
| 2182 | 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}
| |
| 2183 | if math.random(0,5) == 0 then -- rubble | |
| 2184 | local P = Instance.new("Part",Torso.Parent)
| |
| 2185 | P.Anchored = true | |
| 2186 | P.FormFactor = "Custom" | |
| 2187 | P.BrickColor = Hit.BrickColor | |
| 2188 | P.Material = Hit.Material | |
| 2189 | P.TopSurface = "Smooth" | |
| 2190 | P.BottomSurface = "Smooth" | |
| 2191 | P.Size = Vector3.new(4,4,4)*(math.random(80,100)/100) | |
| 2192 | 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))) | |
| 2193 | 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}
| |
| 2194 | end | |
| 2195 | end | |
| 2196 | for i = 0,1,0.05 do | |
| 2197 | for i2,v in pairs(Parts) do | |
| 2198 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
| 2199 | end | |
| 2200 | wait(0.02) | |
| 2201 | end | |
| 2202 | for i,v in pairs(Parts) do | |
| 2203 | if v[1].Size.X > 2.1 then | |
| 2204 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
| 2205 | end | |
| 2206 | v[1].Anchored = false | |
| 2207 | end | |
| 2208 | for i = 0,1,0.05 do | |
| 2209 | for i2,v in pairs(Parts) do | |
| 2210 | v[1].Transparency = i | |
| 2211 | if i == 1 then | |
| 2212 | v[1]:Destroy() | |
| 2213 | elseif i >= 0.25 then | |
| 2214 | v[1].CanCollide = false | |
| 2215 | end | |
| 2216 | end | |
| 2217 | wait(0.02) | |
| 2218 | end | |
| 2219 | Parts = nil | |
| 2220 | end) | |
| 2221 | end | |
| 2222 | ||
| 2223 | ROW = function(out, trans, s, wt, t, ang, plus) | |
| 2224 | for i = 1, 360, 360/t do | |
| 2225 | local c = Instance.new("Part", game.Workspace)
| |
| 2226 | c.FormFactor = 3 | |
| 2227 | c.TopSurface = 0 | |
| 2228 | c.BottomSurface = 0 | |
| 2229 | c.Size = s | |
| 2230 | c.Anchored = true | |
| 2231 | c.CanCollide = wt | |
| 2232 | c.Material=workspace.Base.Material | |
| 2233 | c.Transparency = trans | |
| 2234 | c.BrickColor = workspace.Base.BrickColor | |
| 2235 | 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 | |
| 2236 | c.Locked=true | |
| 2237 | game.Debris:AddItem(c,15) | |
| 2238 | end | |
| 2239 | end | |
| 2240 | ||
| 2241 | Part = function(x,y,z,color,tr,cc,an,parent) | |
| 2242 | local p = Instance.new('Part',parent or Weapon)
| |
| 2243 | p.formFactor = 'Custom' | |
| 2244 | p.Size = Vector3.new(x,y,z) | |
| 2245 | p.BrickColor = BrickColor.new(color) | |
| 2246 | p.CanCollide = cc | |
| 2247 | p.Transparency = tr | |
| 2248 | p.Anchored = an | |
| 2249 | p.TopSurface,p.BottomSurface = 0,0 | |
| 2250 | p.Locked=true | |
| 2251 | p:BreakJoints() | |
| 2252 | return p end | |
| 2253 | ||
| 2254 | Mesh = function(par,num,x,y,z) | |
| 2255 | local msh = _ | |
| 2256 | if num == 1 then msh = Instance.new("CylinderMesh",par)
| |
| 2257 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
| |
| 2258 | elseif num == 3 then msh = Instance.new("BlockMesh",par)
| |
| 2259 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
| |
| 2260 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
| |
| 2261 | end msh.Scale = Vector3.new(x,y,z) | |
| 2262 | return msh end | |
| 2263 | ||
| 2264 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
| 2265 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
| 2266 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
| 2267 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
| 2268 | v1,v2,v3=sz.x,sz.y,sz.z | |
| 2269 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
| 2270 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
| 2271 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
| 2272 | a.CFrame=cfr | |
| 2273 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 2274 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 2275 | ||
| 2276 | Spawn(function() | |
| 2277 | while wait() do | |
| 2278 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
| 2279 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
| 2280 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
| 2281 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
| 2282 | a.Transparency=a.Transparency+0.05 | |
| 2283 | a2.Transparency=a2.Transparency+0.05 | |
| 2284 | a3.Transparency=a3.Transparency+0.05 | |
| 2285 | end | |
| 2286 | end) | |
| 2287 | end | |
| 2288 | ||
| 2289 | Crater(X,20) | |
| 2290 | 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) | |
| 2291 | z = Instance.new("Sound",workspace)
| |
| 2292 | z.SoundId = "rbxassetid://231917744" | |
| 2293 | z.Pitch = .5 | |
| 2294 | z.Volume = 5 | |
| 2295 | z1 = Instance.new("Sound",workspace)
| |
| 2296 | z1.SoundId = "rbxassetid://231917744" | |
| 2297 | z1.Pitch = .5 | |
| 2298 | z1.Volume = 5 | |
| 2299 | z2 = Instance.new("Sound",workspace)
| |
| 2300 | z2.SoundId = "rbxassetid://231917744" | |
| 2301 | z2.Pitch = .5 | |
| 2302 | z2.Volume = 5 | |
| 2303 | z3 = Instance.new("Sound",workspace)
| |
| 2304 | z3.SoundId = "rbxassetid://245537790" | |
| 2305 | z3.Pitch = .7 | |
| 2306 | z3.Volume = 5 | |
| 2307 | z4 = Instance.new("Sound",workspace)
| |
| 2308 | z4.SoundId = "rbxassetid://245537790" | |
| 2309 | z4.Pitch = .7 | |
| 2310 | z4.Volume = 5 | |
| 2311 | z4a = Instance.new("Sound",workspace)
| |
| 2312 | z4a.SoundId = "rbxassetid://419447292" | |
| 2313 | z4a.Pitch = 1 | |
| 2314 | z4a.Volume = 5 | |
| 2315 | z3a = Instance.new("Sound",workspace)
| |
| 2316 | z3a.SoundId = "rbxassetid://421328847" | |
| 2317 | z3a.Pitch = 1 | |
| 2318 | z3a.Volume = 5 | |
| 2319 | wait(0.1) | |
| 2320 | z:Play() | |
| 2321 | z1:Play() | |
| 2322 | z2:Play() | |
| 2323 | z3:Play() | |
| 2324 | z4:Play() | |
| 2325 | z3a:Play() | |
| 2326 | z4a:Play() | |
| 2327 | ||
| 2328 | local part=Instance.new('Part',rarm)
| |
| 2329 | part.Anchored=true | |
| 2330 | part.CanCollide=false | |
| 2331 | part.Locked = true | |
| 2332 | part.FormFactor='Custom' | |
| 2333 | part.Size=Vector3.new(2,2,2) | |
| 2334 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
| 2335 | part.Transparency=0 | |
| 2336 | part.BrickColor=BrickColor.new('Really black')
| |
| 2337 | local mesh=Instance.new('SpecialMesh',part)
| |
| 2338 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 2339 | mesh.Scale=Vector3.new(4,4,4) | |
| 2340 | local part2=part:clone() | |
| 2341 | part2.Parent = rarm | |
| 2342 | part2.BrickColor=TorsoColor | |
| 2343 | local part5=part:clone() | |
| 2344 | part5.Parent = rarm | |
| 2345 | part5.BrickColor=TorsoColor | |
| 2346 | local part6=part:clone() | |
| 2347 | part6.Parent = rarm | |
| 2348 | part6.BrickColor=BrickColor.new("Black")
| |
| 2349 | local mesh2=mesh:clone() | |
| 2350 | mesh2.Parent=part2 | |
| 2351 | mesh2.Scale=Vector3.new(6, 6, 6) | |
| 2352 | local mesh5=mesh:clone() | |
| 2353 | mesh5.Parent=part5 | |
| 2354 | mesh5.Scale=Vector3.new(6, 6, 6) | |
| 2355 | local mesh6=mesh:clone() | |
| 2356 | mesh6.Parent=part6 | |
| 2357 | mesh6.Scale=Vector3.new(6, 6, 6) | |
| 2358 | local blast = Instance.new("Part", rarm)
| |
| 2359 | blast.BrickColor = BrickColor.new("Really black")
| |
| 2360 | blast.Anchored = true | |
| 2361 | blast.CanCollide = false | |
| 2362 | blast.Locked = true | |
| 2363 | blast.Size = Vector3.new(2, 2, 2) | |
| 2364 | blast.TopSurface = "Smooth" | |
| 2365 | blast.BottomSurface = "Smooth" | |
| 2366 | blast.Transparency = 0 | |
| 2367 | blast.CFrame = HandCF | |
| 2368 | local bm = Instance.new("SpecialMesh", blast)
| |
| 2369 | bm.Scale = Vector3.new(10,2,10) | |
| 2370 | bm.MeshId = "rbxassetid://3270017" | |
| 2371 | local blast2 = Instance.new("Part", rarm)
| |
| 2372 | blast2.BrickColor = BrickColor.new("Really black")
| |
| 2373 | blast2.Anchored = true | |
| 2374 | blast2.CanCollide = false | |
| 2375 | blast2.Locked = true | |
| 2376 | blast2.Size = Vector3.new(2, 2, 2) | |
| 2377 | blast2.TopSurface = "Smooth" | |
| 2378 | blast2.BottomSurface = "Smooth" | |
| 2379 | blast2.Transparency = 0 | |
| 2380 | blast2.CFrame = HandCF | |
| 2381 | local bm2 = Instance.new("SpecialMesh", blast2)
| |
| 2382 | bm2.Scale = Vector3.new(6,2,6) | |
| 2383 | bm2.MeshId = "rbxassetid://3270017" | |
| 2384 | local blast3 = Instance.new("Part", rarm)
| |
| 2385 | blast3.BrickColor = BrickColor.new("Really black")
| |
| 2386 | blast3.Anchored = true | |
| 2387 | blast3.CanCollide = false | |
| 2388 | blast3.Locked = true | |
| 2389 | blast3.Size = Vector3.new(1, 1, 1) | |
| 2390 | blast3.TopSurface = "Smooth" | |
| 2391 | blast3.BottomSurface = "Smooth" | |
| 2392 | blast3.Transparency = 0 | |
| 2393 | blast3.CFrame = HandCF | |
| 2394 | local bm3 = Instance.new("SpecialMesh", blast3)
| |
| 2395 | bm3.Scale = Vector3.new(6,2,6) | |
| 2396 | bm3.MeshId = "rbxassetid://3270017" | |
| 2397 | for i = 1,120 do rs:wait() | |
| 2398 | X.Transparency = X.Transparency + (1/120) | |
| 2399 | part.Transparency = part.Transparency + (1/120) | |
| 2400 | part2.Transparency = part2.Transparency + (1/120) | |
| 2401 | part3.Transparency = part3.Transparency + (1/120) | |
| 2402 | part4.Transparency = part4.Transparency + (1/120) | |
| 2403 | part5.Transparency = part5.Transparency + (1/120) | |
| 2404 | part6.Transparency = part6.Transparency + (1/120) | |
| 2405 | part7.Transparency = part7.Transparency + (1/120) | |
| 2406 | blast.Transparency = blast.Transparency + (1/120) | |
| 2407 | blast2.Transparency = blast2.Transparency + (1/120) | |
| 2408 | blast3.Transparency = blast3.Transparency + (1/120) | |
| 2409 | X.Size = X.Size + Vector3.new(1.6,1.6,1.6) | |
| 2410 | --part3.Size = part3.Size + Vector3.new(6,6,6) | |
| 2411 | mesh.Scale = mesh.Scale + Vector3.new(2,.4,2) | |
| 2412 | mesh2.Scale = mesh2.Scale + Vector3.new(2.2,.4,2.2) | |
| 2413 | mesh3.Scale = mesh3.Scale + Vector3.new(6,6,6) | |
| 2414 | mesh4.Scale = mesh4.Scale + Vector3.new(3.4,3.4,3.4) | |
| 2415 | mesh5.Scale = mesh5.Scale + Vector3.new(3.2,.4,3.2) | |
| 2416 | mesh6.Scale = mesh6.Scale + Vector3.new(4,.4,4) | |
| 2417 | mesh7.Scale = mesh7.Scale + Vector3.new(8,8,8) | |
| 2418 | bm.Scale = bm.Scale + Vector3.new(12,12,.4) | |
| 2419 | bm2.Scale = bm2.Scale + Vector3.new(8,8,.4) | |
| 2420 | bm3.Scale = bm3.Scale + Vector3.new(8,8,.4) | |
| 2421 | X.CFrame = cf | |
| 2422 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
| 2423 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
| 2424 | part3.CFrame=X.CFrame | |
| 2425 | part4.CFrame=X.CFrame | |
| 2426 | part7.CFrame=X.CFrame | |
| 2427 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
| 2428 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
| 2429 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 2430 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
| 2431 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
| 2432 | rs:wait() | |
| 2433 | end | |
| 2434 | X:Destroy() | |
| 2435 | part:Destroy() | |
| 2436 | part2:Destroy() | |
| 2437 | part3:Destroy() | |
| 2438 | part4:Destroy() | |
| 2439 | part5:Destroy() | |
| 2440 | part6:Destroy() | |
| 2441 | blast:Destroy() | |
| 2442 | blast2:Destroy() | |
| 2443 | blast3:Destroy() | |
| 2444 | z:Destroy() | |
| 2445 | z1:Destroy() | |
| 2446 | z2:Destroy() | |
| 2447 | z3:Destroy() | |
| 2448 | z4:Destroy() | |
| 2449 | end | |
| 2450 | end) | |
| 2451 | for i = 1, 20 do | |
| 2452 | 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) | |
| 2453 | 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) | |
| 2454 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 2455 | 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) | |
| 2456 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
| 2457 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
| 2458 | if Debounces.on == false then break end | |
| 2459 | rs:wait() | |
| 2460 | end | |
| 2461 | if Debounces.CanAttack == false then | |
| 2462 | Debounces.CanAttack = true | |
| 2463 | Debounces.NoIdl = false | |
| 2464 | Debounces.on = false | |
| 2465 | end | |
| 2466 | end | |
| 2467 | end | |
| 2468 | end) | |
| 2469 | ---------------------------------------------------- | |
| 2470 | mouse.KeyDown:connect(function(key) | |
| 2471 | if key == "c" then | |
| 2472 | Blaze() | |
| 2473 | end | |
| 2474 | end) | |
| 2475 | ---------------------------------------------------- | |
| 2476 | mouse.KeyDown:connect(function(key) | |
| 2477 | if key == "v" then | |
| 2478 | Blaze2() | |
| 2479 | end | |
| 2480 | end) | |
| 2481 | ---------------------------------------------------- | |
| 2482 | mouse.KeyDown:connect(function(key) | |
| 2483 | if key == "x" then | |
| 2484 | hum.WalkSpeed = 0.01 | |
| 2485 | if Debounces.CanAttack == true then | |
| 2486 | Debounces.CanAttack = false | |
| 2487 | Debounces.NoIdl = true | |
| 2488 | Debounces.on = true | |
| 2489 | for i = 1, 30 do | |
| 2490 | 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) | |
| 2491 | 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) | |
| 2492 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
| 2493 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 2494 | 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) | |
| 2495 | 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) | |
| 2496 | if Debounces.on == false then break end | |
| 2497 | rs:wait(6) | |
| 2498 | end | |
| 2499 | v = Instance.new("Sound")
| |
| 2500 | v.SoundId = "rbxassetid://435742675" | |
| 2501 | v.Parent = char | |
| 2502 | v.Looped = false | |
| 2503 | v.Pitch = 1 | |
| 2504 | v.Volume = 18 | |
| 2505 | wait(.01) | |
| 2506 | v:Play() | |
| 2507 | ||
| 2508 | if Daytime == true then | |
| 2509 | Daytime = false | |
| 2510 | l.TimeOfDay = 00 | |
| 2511 | else | |
| 2512 | Daytime = true | |
| 2513 | l.TimeOfDay = 12 | |
| 2514 | l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039) | |
| 2515 | end | |
| 2516 | ||
| 2517 | local Shockwave = function() | |
| 2518 | local rng1 = Instance.new("Part", char)
| |
| 2519 | rng1.Anchored = true | |
| 2520 | rng1.BrickColor = BrickColor.new("Really black")
| |
| 2521 | rng1.CanCollide = false | |
| 2522 | rng1.FormFactor = 3 | |
| 2523 | rng1.Name = "Ring" | |
| 2524 | rng1.Material = "Neon" | |
| 2525 | rng1.Size = Vector3.new(1, 1, 1) | |
| 2526 | rng1.Transparency = 0.35 | |
| 2527 | rng1.TopSurface = 0 | |
| 2528 | rng1.BottomSurface = 0 | |
| 2529 | local rngm1 = Instance.new("SpecialMesh", rng)
| |
| 2530 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2531 | rngm1.Scale = Vector3.new(10, 10, 1) | |
| 2532 | rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0) | |
| 2533 | local Wave = Instance.new("Part", game.Workspace--[[?]])
| |
| 2534 | Wave.Name = "Shockwave" | |
| 2535 | Wave.BrickColor = BrickColor.new("Really black")
| |
| 2536 | Wave.Material = "Neon" | |
| 2537 | Wave.Size = Vector3.new(1, 1, 1) | |
| 2538 | Wave.Shape = "Ball" | |
| 2539 | Wave.CanCollide = false | |
| 2540 | Wave.Anchored = true | |
| 2541 | Wave.TopSurface = 0 | |
| 2542 | Wave.BottomSurface = 0 | |
| 2543 | local Wave2 = Instance.new("Part", game.Workspace--[[?]])
| |
| 2544 | Wave2.Name = "Shockwave2" | |
| 2545 | Wave2.BrickColor = TorsoColor | |
| 2546 | Wave2.Material = "Neon" | |
| 2547 | Wave2.Size = Vector3.new(1, 1, 1) | |
| 2548 | Wave2.Shape = "Ball" | |
| 2549 | Wave2.CanCollide = false | |
| 2550 | Wave2.Anchored = true | |
| 2551 | Wave2.TopSurface = 0 | |
| 2552 | Wave2.BottomSurface = 0 | |
| 2553 | Wave2.Touched:connect(function(hit) | |
| 2554 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then
| |
| 2555 | local Occlude = true | |
| 2556 | local NotOccludes = {
| |
| 2557 | char.Name; | |
| 2558 | "Wings"; | |
| 2559 | "Scythe"; | |
| 2560 | "Thingy"; | |
| 2561 | "Thingy2"; -- put all of the names in a table pls | |
| 2562 | } | |
| 2563 | for i,v in pairs(NotOccludes) do | |
| 2564 | if hit.Parent.Name == v then | |
| 2565 | Occlude = false | |
| 2566 | end | |
| 2567 | end | |
| 2568 | --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then | |
| 2569 | if Occlude then | |
| 2570 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1
| |
| 2571 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120
| |
| 2572 | end | |
| 2573 | end | |
| 2574 | end) | |
| 2575 | ||
| 2576 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere"
| |
| 2577 | ||
| 2578 | coroutine.wrap(function() | |
| 2579 | for i = 1, 20, 0.2 do | |
| 2580 | rngm1.Scale = Vector3.new(10 + i*20, 10 + i*20, 20) | |
| 2581 | rng1.Transparency = i/20 | |
| 2582 | wait() | |
| 2583 | end | |
| 2584 | wait() | |
| 2585 | rng1:Destroy() | |
| 2586 | end)() | |
| 2587 | ||
| 2588 | Delay(0, function() | |
| 2589 | ||
| 2590 | if Daytime == false then | |
| 2591 | for i = 3, 50, 1 do | |
| 2592 | Wave.Size = Vector3.new(0 + i*3, 0 + i*3, 0 + i*3) | |
| 2593 | Wave.CFrame = char.Torso.CFrame | |
| 2594 | local t = i / 50 | |
| 2595 | Wave.Transparency = t | |
| 2596 | Wave2.Size = Vector3.new(1 + i*2.5, 1 + i*2.5, 1 + i*2.5) | |
| 2597 | Wave2.CFrame = char.Torso.CFrame | |
| 2598 | local tq = i / 50 | |
| 2599 | Wave2.Transparency = tq | |
| 2600 | wait() | |
| 2601 | end | |
| 2602 | else | |
| 2603 | for i = 3, 50, 1 do | |
| 2604 | Wave.Size = Vector3.new(0 + i*3, 0 + i*3, 0 + i*3) | |
| 2605 | Wave.CFrame = char.Torso.CFrame | |
| 2606 | local t = i / 50 | |
| 2607 | Wave.Transparency = t | |
| 2608 | Wave2.Size = Vector3.new(1 + i*2.5, 1 + i*2.5, 1 + i*2.5) | |
| 2609 | Wave2.CFrame = char.Torso.CFrame | |
| 2610 | local tq = i / 50 | |
| 2611 | Wave2.Transparency = tq | |
| 2612 | wait() | |
| 2613 | end | |
| 2614 | end | |
| 2615 | Wave:Destroy() | |
| 2616 | Wave2:Destroy() | |
| 2617 | end) | |
| 2618 | Delay(0, function() | |
| 2619 | while wait() do | |
| 2620 | if Wave ~= nil then | |
| 2621 | Wave.CFrame = char.Torso.CFrame | |
| 2622 | else | |
| 2623 | break | |
| 2624 | end | |
| 2625 | end | |
| 2626 | end) | |
| 2627 | end | |
| 2628 | Shockwave() | |
| 2629 | for i = 1, 30 do | |
| 2630 | 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) | |
| 2631 | 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) | |
| 2632 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
| 2633 | 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) | |
| 2634 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
| 2635 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
| 2636 | if Debounces.on == false then break end | |
| 2637 | rs:wait() | |
| 2638 | end | |
| 2639 | wait(2.4) | |
| 2640 | Debounces.NoIdl = false | |
| 2641 | hum.WalkSpeed = 16 | |
| 2642 | Debounces.on = false | |
| 2643 | wait() | |
| 2644 | if Debounces.CanAttack == false then | |
| 2645 | Debounces.CanAttack = true | |
| 2646 | v:Destroy() | |
| 2647 | end | |
| 2648 | end | |
| 2649 | end | |
| 2650 | end) | |
| 2651 | ---------------------------------------------------- | |
| 2652 | mouse.KeyDown:connect(function(key) | |
| 2653 | if key == "e" then | |
| 2654 | if Debounces.CanAttack == true then | |
| 2655 | Debounces.CanAttack = false | |
| 2656 | Debounces.on = true | |
| 2657 | Debounces.NoIdl = true | |
| 2658 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5}
| |
| 2659 | z = Instance.new("Sound", rarm)
| |
| 2660 | z.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 2661 | z.Volume = 1.25 | |
| 2662 | z.Pitch = pt[math.random(1,#pt)] | |
| 2663 | z.Looped = false | |
| 2664 | z:Play() | |
| 2665 | Debounces.RPunch = true | |
| 2666 | Debounces.LPunch = true | |
| 2667 | Debounces.ks = true | |
| 2668 | Debounces.ks2 = true | |
| 2669 | for i = 1, 3 do | |
| 2670 | 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) | |
| 2671 | 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) | |
| 2672 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2673 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2674 | 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) | |
| 2675 | 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) | |
| 2676 | if Debounces.on == false then break end | |
| 2677 | wait() | |
| 2678 | end | |
| 2679 | z2 = Instance.new("Sound", larm)
| |
| 2680 | z2.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2681 | z2.Volume = 1.25 | |
| 2682 | z2.Pitch = pt[math.random(1,#pt)] | |
| 2683 | z2.Looped = false | |
| 2684 | z2:Play() | |
| 2685 | for i = 1, 3 do | |
| 2686 | 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) | |
| 2687 | 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) | |
| 2688 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2689 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2690 | 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) | |
| 2691 | 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) | |
| 2692 | if Debounces.on == false then break end | |
| 2693 | wait() | |
| 2694 | end | |
| 2695 | z3 = Instance.new("Sound", rarm)
| |
| 2696 | z3.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2697 | z3.Volume = 1.25 | |
| 2698 | z3.Pitch = pt[math.random(1,#pt)] | |
| 2699 | z3.Looped = false | |
| 2700 | z3:Play() | |
| 2701 | for i = 1, 3 do | |
| 2702 | 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) | |
| 2703 | 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) | |
| 2704 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2705 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2706 | 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) | |
| 2707 | 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) | |
| 2708 | if Debounces.on == false then break end | |
| 2709 | wait() | |
| 2710 | end | |
| 2711 | z4 = Instance.new("Sound", larm)
| |
| 2712 | z4.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2713 | z4.Volume = 1.25 | |
| 2714 | z4.Pitch = pt[math.random(1,#pt)] | |
| 2715 | z4.Looped = false | |
| 2716 | z4:Play() | |
| 2717 | for i = 1, 3 do | |
| 2718 | 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) | |
| 2719 | 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) | |
| 2720 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2721 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2722 | 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) | |
| 2723 | 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) | |
| 2724 | if Debounces.on == false then break end | |
| 2725 | wait() | |
| 2726 | end | |
| 2727 | z5 = Instance.new("Sound", rarm)
| |
| 2728 | z5.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2729 | z5.Volume = 1.25 | |
| 2730 | z5.Pitch = pt[math.random(1,#pt)] | |
| 2731 | z5.Looped = false | |
| 2732 | z5:Play() | |
| 2733 | for i = 1, 3 do | |
| 2734 | 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) | |
| 2735 | 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) | |
| 2736 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 2737 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 2738 | 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) | |
| 2739 | 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) | |
| 2740 | if Debounces.on == false then break end | |
| 2741 | wait() | |
| 2742 | end | |
| 2743 | z6 = Instance.new("Sound", larm)
| |
| 2744 | z6.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2745 | z6.Volume = 1.25 | |
| 2746 | z6.Pitch = pt[math.random(1,#pt)] | |
| 2747 | z6.Looped = false | |
| 2748 | z6:Play() | |
| 2749 | for i = 1, 3 do | |
| 2750 | 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) | |
| 2751 | 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) | |
| 2752 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2753 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2754 | 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) | |
| 2755 | 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) | |
| 2756 | if Debounces.on == false then break end | |
| 2757 | wait() | |
| 2758 | end | |
| 2759 | z7 = Instance.new("Sound", rarm)
| |
| 2760 | z7.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 2761 | z7.Volume = 1.25 | |
| 2762 | z7.Pitch = pt[math.random(1,#pt)] | |
| 2763 | z7.Looped = false | |
| 2764 | z7:Play() | |
| 2765 | for i = 1, 3 do | |
| 2766 | 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) | |
| 2767 | 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) | |
| 2768 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2769 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2770 | 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) | |
| 2771 | 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) | |
| 2772 | if Debounces.on == false then break end | |
| 2773 | wait() | |
| 2774 | end | |
| 2775 | z8 = Instance.new("Sound", larm)
| |
| 2776 | z8.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2777 | z8.Volume = 1.25 | |
| 2778 | z8.Pitch = pt[math.random(1,#pt)] | |
| 2779 | z8.Looped = false | |
| 2780 | z8:Play() | |
| 2781 | for i = 1, 3 do | |
| 2782 | 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) | |
| 2783 | 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) | |
| 2784 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2785 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2786 | 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) | |
| 2787 | 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) | |
| 2788 | if Debounces.on == false then break end | |
| 2789 | wait() | |
| 2790 | end | |
| 2791 | z9 = Instance.new("Sound", rarm)
| |
| 2792 | z9.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2793 | z9.Volume = 1.25 | |
| 2794 | z9.Pitch = pt[math.random(1,#pt)] | |
| 2795 | z9.Looped = false | |
| 2796 | z9:Play() | |
| 2797 | for i = 1, 3 do | |
| 2798 | 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) | |
| 2799 | 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) | |
| 2800 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2801 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2802 | 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) | |
| 2803 | 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) | |
| 2804 | if Debounces.on == false then break end | |
| 2805 | wait() | |
| 2806 | end | |
| 2807 | z10 = Instance.new("Sound", larm)
| |
| 2808 | z10.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2809 | z10.Volume = 1.25 | |
| 2810 | z10.Pitch = pt[math.random(1,#pt)] | |
| 2811 | z10.Looped = false | |
| 2812 | z10:Play() | |
| 2813 | for i = 1, 3 do | |
| 2814 | 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) | |
| 2815 | 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) | |
| 2816 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2817 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2818 | 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) | |
| 2819 | 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) | |
| 2820 | if Debounces.on == false then break end | |
| 2821 | wait() | |
| 2822 | end | |
| 2823 | z11 = Instance.new("Sound", rarm)
| |
| 2824 | z11.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2825 | z11.Volume = 1.25 | |
| 2826 | z11.Pitch = pt[math.random(1,#pt)] | |
| 2827 | z11.Looped = false | |
| 2828 | z11:Play() | |
| 2829 | for i = 1, 3 do | |
| 2830 | 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) | |
| 2831 | 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) | |
| 2832 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 2833 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 2834 | 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) | |
| 2835 | 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) | |
| 2836 | if Debounces.on == false then break end | |
| 2837 | wait() | |
| 2838 | end | |
| 2839 | z12 = Instance.new("Sound", larm)
| |
| 2840 | z12.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2841 | z12.Volume = 1.25 | |
| 2842 | z12.Pitch = pt[math.random(1,#pt)] | |
| 2843 | z12.Looped = false | |
| 2844 | z12:Play() | |
| 2845 | for i = 1, 3 do | |
| 2846 | 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) | |
| 2847 | 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) | |
| 2848 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2849 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2850 | 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) | |
| 2851 | 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) | |
| 2852 | if Debounces.on == false then break end | |
| 2853 | wait() | |
| 2854 | end | |
| 2855 | z13 = Instance.new("Sound", rarm)
| |
| 2856 | z13.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2857 | z13.Volume = 1.25 | |
| 2858 | z13.Pitch = pt[math.random(1,#pt)] | |
| 2859 | z13.Looped = false | |
| 2860 | z13:Play() | |
| 2861 | for i = 1, 3 do | |
| 2862 | 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) | |
| 2863 | 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) | |
| 2864 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2865 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2866 | 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) | |
| 2867 | 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) | |
| 2868 | if Debounces.on == false then break end | |
| 2869 | wait() | |
| 2870 | end | |
| 2871 | z14 = Instance.new("Sound", larm)
| |
| 2872 | z14.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2873 | z14.Volume = 1.25 | |
| 2874 | z14.Pitch = pt[math.random(1,#pt)] | |
| 2875 | z14.Looped = false | |
| 2876 | z14:Play() | |
| 2877 | for i = 1, 3 do | |
| 2878 | 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) | |
| 2879 | 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) | |
| 2880 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2881 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2882 | 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) | |
| 2883 | 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) | |
| 2884 | if Debounces.on == false then break end | |
| 2885 | wait() | |
| 2886 | end | |
| 2887 | z15 = Instance.new("Sound", rarm)
| |
| 2888 | z15.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2889 | z15.Volume = 1.25 | |
| 2890 | z15.Pitch = pt[math.random(1,#pt)] | |
| 2891 | z15.Looped = false | |
| 2892 | z15:Play() | |
| 2893 | for i = 1, 3 do | |
| 2894 | 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) | |
| 2895 | 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) | |
| 2896 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
| 2897 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
| 2898 | 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) | |
| 2899 | 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) | |
| 2900 | if Debounces.on == false then break end | |
| 2901 | wait() | |
| 2902 | end | |
| 2903 | z16 = Instance.new("Sound", larm)
| |
| 2904 | z16.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2905 | z16.Volume = 1.25 | |
| 2906 | z16.Pitch = pt[math.random(1,#pt)] | |
| 2907 | z16.Looped = false | |
| 2908 | z16:Play() | |
| 2909 | for i = 1, 3 do | |
| 2910 | 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) | |
| 2911 | 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) | |
| 2912 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2913 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2914 | 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) | |
| 2915 | 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) | |
| 2916 | if Debounces.on == false then break end | |
| 2917 | wait() | |
| 2918 | end | |
| 2919 | z17 = Instance.new("Sound", rarm)
| |
| 2920 | z17.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
| 2921 | z17.Volume = 1.25 | |
| 2922 | z17.Pitch = pt[math.random(1,#pt)] | |
| 2923 | z17.Looped = false | |
| 2924 | z17:Play() | |
| 2925 | for i = 1, 3 do | |
| 2926 | 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) | |
| 2927 | 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) | |
| 2928 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2929 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2930 | 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) | |
| 2931 | 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) | |
| 2932 | if Debounces.on == false then break end | |
| 2933 | wait() | |
| 2934 | end | |
| 2935 | z18 = Instance.new("Sound", larm)
| |
| 2936 | z18.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2937 | z18.Volume = 1.25 | |
| 2938 | z18.Pitch = pt[math.random(1,#pt)] | |
| 2939 | z18.Looped = false | |
| 2940 | z18:Play() | |
| 2941 | for i = 1, 3 do | |
| 2942 | 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) | |
| 2943 | 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) | |
| 2944 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2945 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2946 | 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) | |
| 2947 | 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) | |
| 2948 | if Debounces.on == false then break end | |
| 2949 | wait() | |
| 2950 | end | |
| 2951 | z19 = Instance.new("Sound", rarm)
| |
| 2952 | z19.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2953 | z19.Volume = 1.25 | |
| 2954 | z19.Pitch = pt[math.random(1,#pt)] | |
| 2955 | z19.Looped = false | |
| 2956 | z19:Play() | |
| 2957 | for i = 1, 3 do | |
| 2958 | 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) | |
| 2959 | 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) | |
| 2960 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
| 2961 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
| 2962 | 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) | |
| 2963 | 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) | |
| 2964 | if Debounces.on == false then break end | |
| 2965 | wait() | |
| 2966 | end | |
| 2967 | z20 = Instance.new("Sound", larm)
| |
| 2968 | z20.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
| 2969 | z20.Volume = 1.25 | |
| 2970 | z20.Pitch = pt[math.random(1,#pt)] | |
| 2971 | z20.Looped = false | |
| 2972 | z20:Play() | |
| 2973 | for i = 1, 3 do | |
| 2974 | 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) | |
| 2975 | 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) | |
| 2976 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
| 2977 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
| 2978 | 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) | |
| 2979 | 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) | |
| 2980 | if Debounces.on == false then break end | |
| 2981 | wait() | |
| 2982 | end | |
| 2983 | z:Destroy() | |
| 2984 | z2:Destroy() | |
| 2985 | z3:Destroy() | |
| 2986 | z4:Destroy() | |
| 2987 | z5:Destroy() | |
| 2988 | z6:Destroy() | |
| 2989 | z7:Destroy() | |
| 2990 | z8:Destroy() | |
| 2991 | z9:Destroy() | |
| 2992 | z10:Destroy() | |
| 2993 | z11:Destroy() | |
| 2994 | z12:Destroy() | |
| 2995 | z13:Destroy() | |
| 2996 | z14:Destroy() | |
| 2997 | z15:Destroy() | |
| 2998 | z16:Destroy() | |
| 2999 | z17:Destroy() | |
| 3000 | z18:Destroy() | |
| 3001 | z19:Destroy() | |
| 3002 | z20:Destroy() | |
| 3003 | Debounces.LPunch = false | |
| 3004 | Debounces.RPunch = false | |
| 3005 | Debounces.ks = false | |
| 3006 | Debounces.ks2 = false | |
| 3007 | if Debounces.CanAttack == false then | |
| 3008 | Debounces.CanAttack = true | |
| 3009 | Debounces.on = false | |
| 3010 | Debounces.NoIdl = false | |
| 3011 | end | |
| 3012 | end | |
| 3013 | end | |
| 3014 | end) | |
| 3015 | ------------------------------- | |
| 3016 | mouse.KeyDown:connect(function(key) | |
| 3017 | if key == "t" then | |
| 3018 | if Debounces.CanAttack == true then | |
| 3019 | Debounces.CanAttack = false | |
| 3020 | Debounces.NoIdl = true | |
| 3021 | Debounces.on = true | |
| 3022 | Debounces.ks = true | |
| 3023 | kik = rleg.Touched:connect(function(ht) | |
| 3024 | hit = ht.Parent | |
| 3025 | if ht and hit:IsA("Model") then
| |
| 3026 | if hit:FindFirstChild("Humanoid") then
| |
| 3027 | if hit.Name ~= p.Name then | |
| 3028 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 3029 | Debounces.Slashed = true]]-- | |
| 3030 | if Debounces.ks==true then | |
| 3031 | z = Instance.new("Sound",hed)
| |
| 3032 | z.SoundId = "rbxassetid://169380525" | |
| 3033 | z.Volume = 1 | |
| 3034 | z:Play() | |
| 3035 | Debounces.ks=false | |
| 3036 | end | |
| 3037 | hit:FindFirstChild("Humanoid"):TakeDamage(2)
| |
| 3038 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300
| |
| 3039 | --Debounces.Slashed = false | |
| 3040 | --end | |
| 3041 | end | |
| 3042 | end | |
| 3043 | elseif ht and hit:IsA("Hat") then
| |
| 3044 | if hit.Parent.Name ~= p.Name then | |
| 3045 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 3046 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 3047 | Debounces.Slashed = true]]-- | |
| 3048 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2)
| |
| 3049 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300
| |
| 3050 | --Debounces.Slashed = false | |
| 3051 | --end | |
| 3052 | end | |
| 3053 | end | |
| 3054 | end | |
| 3055 | end) | |
| 3056 | for i = 1,20 do | |
| 3057 | 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) | |
| 3058 | 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) | |
| 3059 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3060 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), math.rad(90)), 0.4) | |
| 3061 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-90)), 0.4) | |
| 3062 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
| 3063 | if Debounces.on == false then break end | |
| 3064 | rs:wait() | |
| 3065 | end | |
| 3066 | kik:disconnect() | |
| 3067 | if Debounces.CanAttack == false then | |
| 3068 | Debounces.CanAttack = true | |
| 3069 | Debounces.NoIdl = false | |
| 3070 | Debounces.on = false | |
| 3071 | end | |
| 3072 | end | |
| 3073 | end | |
| 3074 | end) | |
| 3075 | ---------------------------------------------------- | |
| 3076 | mouse.KeyDown:connect(function(key) | |
| 3077 | if key == "y" then | |
| 3078 | if Debounces.CanAttack == true then | |
| 3079 | Debounces.CanAttack = false | |
| 3080 | Debounces.on = true | |
| 3081 | Debounces.NoIdl = true | |
| 3082 | for i = 1, 15 do | |
| 3083 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,-0.25)*CFrame.Angles(math.rad(0),math.rad(-35),math.rad(-90)), 0.2) | |
| 3084 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(-35),math.rad(-90)), 0.6) | |
| 3085 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2) | |
| 3086 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.4) | |
| 3087 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
| 3088 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
| 3089 | if Debounces.on == false then break end | |
| 3090 | rs:wait(2.7) | |
| 3091 | end | |
| 3092 | xa = Instance.new("Sound",char)
| |
| 3093 | xa.SoundId = "rbxassetid://419447292" | |
| 3094 | xa.Pitch = 1 | |
| 3095 | xa.Volume = 2.5 | |
| 3096 | wait(.1) | |
| 3097 | xa:Play() | |
| 3098 | Debounces.on = false | |
| 3099 | Debounces.Here = false | |
| 3100 | shot = shot + 1 | |
| 3101 | local rng = Instance.new("Part", larm)
| |
| 3102 | rng.Anchored = true | |
| 3103 | rng.BrickColor = TorsoColor | |
| 3104 | rng.CanCollide = false | |
| 3105 | rng.FormFactor = 3 | |
| 3106 | rng.Name = "Ring" | |
| 3107 | rng.Size = Vector3.new(1, 1, 1) | |
| 3108 | rng.Transparency = 0.35 | |
| 3109 | rng.TopSurface = 0 | |
| 3110 | rng.BottomSurface = 0 | |
| 3111 | rng2 = rng:clone() | |
| 3112 | rng3 = rng2:clone() | |
| 3113 | rng4 = rng2:clone() | |
| 3114 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3115 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 3116 | rngm.Scale = Vector3.new(10, 10, 1) | |
| 3117 | rngm2 = rngm:clone() | |
| 3118 | rngm2.Scale = Vector3.new(5, 5, 3) | |
| 3119 | rngm3=rngm2:clone() | |
| 3120 | rngm3.Parent = rng3 | |
| 3121 | rngm3.Scale = Vector3.new(8, 8, 1) | |
| 3122 | rngm4 = rngm2:clone() | |
| 3123 | rngm4.Parent = rng4 | |
| 3124 | rngm4.Scale = Vector3.new(6, 6, 1) | |
| 3125 | local bem = Instance.new("Part", larm)
| |
| 3126 | bem.Anchored = true | |
| 3127 | bem.BrickColor = BrickColor.new("Really black")
| |
| 3128 | bem.CanCollide = false | |
| 3129 | bem.FormFactor = 3 | |
| 3130 | bem.Name = "Beam" .. shot | |
| 3131 | bem.Size = Vector3.new(1, 1, 1) | |
| 3132 | bem.Transparency = 0.35 | |
| 3133 | bem.Material = "Neon" | |
| 3134 | bem.TopSurface = 0 | |
| 3135 | bem.BottomSurface = 0 | |
| 3136 | local bemm = Instance.new("SpecialMesh", bem)
| |
| 3137 | bemm.MeshType = 4 | |
| 3138 | bemm.Scale = Vector3.new(1, 50, 50) | |
| 3139 | local out = Instance.new("Part", larm)
| |
| 3140 | out.Anchored = true | |
| 3141 | out.BrickColor = BrickColor.new("Really black")
| |
| 3142 | out.CanCollide = false | |
| 3143 | out.FormFactor = 3 | |
| 3144 | out.Name = "Out" | |
| 3145 | out.Size = Vector3.new(8, 8, 8) | |
| 3146 | out.Transparency = 0.35 | |
| 3147 | out.TopSurface = 0 | |
| 3148 | out.BottomSurface = 0 | |
| 3149 | local outm = Instance.new("SpecialMesh", out)
| |
| 3150 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 3151 | outm.Scale = Vector3.new(12, 8, 12) | |
| 3152 | local bnd = Instance.new("Part", larm)
| |
| 3153 | bnd.Anchored = true | |
| 3154 | bnd.BrickColor = BrickColor.new("Really black")
| |
| 3155 | bnd.CanCollide = false | |
| 3156 | bnd.FormFactor = 3 | |
| 3157 | bnd.Name = "ink sans" | |
| 3158 | bnd.Size = Vector3.new(1, 1, 1) | |
| 3159 | bnd.Transparency = 1 | |
| 3160 | bnd.TopSurface = 0 | |
| 3161 | bnd.BottomSurface = 0 | |
| 3162 | local bndm = Instance.new("SpecialMesh", bnd)
| |
| 3163 | bndm.MeshType = 3 | |
| 3164 | bndm.Scale = Vector3.new(16, 16, 16) | |
| 3165 | out.CFrame = larm.CFrame * CFrame.new(0, -5.4, 0) | |
| 3166 | bem.CFrame = out.CFrame * CFrame.new(0, -50, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 3167 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
| 3168 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
| 3169 | rng3.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
| 3170 | rng4.CFrame = rng.CFrame * CFrame.new(0, -2, 0) | |
| 3171 | Debounces.Shewt = true | |
| 3172 | coroutine.wrap(function() | |
| 3173 | for i = 1, 20, 0.2 do | |
| 3174 | rngm.Scale = Vector3.new(20 + i*4, 20 + i*4, 2) | |
| 3175 | rngm3.Scale = Vector3.new(16 + i*6, 16 + i*6, 2) | |
| 3176 | rngm4.Scale = Vector3.new(12 + i*8, 12 + i*8, 2) | |
| 3177 | rng.Transparency = i/20 | |
| 3178 | rng3.Transparency = 1/24 | |
| 3179 | rng4.Transparency = i/26 | |
| 3180 | wait() | |
| 3181 | end | |
| 3182 | wait() | |
| 3183 | rng:Destroy() | |
| 3184 | end)() | |
| 3185 | if Debounces.Shewt == true then | |
| 3186 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht)
| |
| 3187 | hit = ht.Parent | |
| 3188 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then
| |
| 3189 | if HasntTouched(hit.Name) == true and deb == false then | |
| 3190 | deb = true | |
| 3191 | coroutine.wrap(function() | |
| 3192 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 3193 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 275
| |
| 3194 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73))
| |
| 3195 | end)() | |
| 3196 | table.insert(Touche, hit.Name) | |
| 3197 | deb = false | |
| 3198 | end | |
| 3199 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then
| |
| 3200 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
| 3201 | deb = true | |
| 3202 | coroutine.wrap(function() | |
| 3203 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
| |
| 3204 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 275
| |
| 3205 | wait(1) | |
| 3206 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false
| |
| 3207 | end)() | |
| 3208 | table.insert(Touche, hit.Parent.Name) | |
| 3209 | deb = false | |
| 3210 | for i, v in pairs(Touche) do | |
| 3211 | print(v) | |
| 3212 | end | |
| 3213 | end | |
| 3214 | end | |
| 3215 | end) | |
| 3216 | end | |
| 3217 | for i = 0, 260, 8 do | |
| 3218 | bem.Size = Vector3.new(i, 30, 30) | |
| 3219 | out.CFrame = larm.CFrame * CFrame.new(0, -5.4, 0) | |
| 3220 | bem.CFrame = larm.CFrame * CFrame.new(0, -42 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
| 3221 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
| 3222 | bnd.Size = Vector3.new(2,2,2) | |
| 3223 | bndm.Scale = Vector3.new(16,16,16) | |
| 3224 | if i % 10 == 0 then | |
| 3225 | local newRng = rng2:Clone() | |
| 3226 | newRng.Parent = larm | |
| 3227 | newRng.CFrame = larm.CFrame * CFrame.new(0, -8.4-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
| 3228 | local newRngm = rngm2:clone() | |
| 3229 | newRngm.Parent=newRng | |
| 3230 | coroutine.wrap(function() | |
| 3231 | for i = 1, 10, 0.2 do | |
| 3232 | newRngm.Scale = Vector3.new(16 + i*4, 16 + i*4, 6) | |
| 3233 | newRng.Transparency = i/10 | |
| 3234 | wait() | |
| 3235 | end | |
| 3236 | wait() | |
| 3237 | newRng:Destroy() | |
| 3238 | end)() | |
| 3239 | end | |
| 3240 | wait() | |
| 3241 | end | |
| 3242 | wait() | |
| 3243 | Debounces.Shewt = false | |
| 3244 | bem:Destroy() | |
| 3245 | out:Destroy() | |
| 3246 | bnd:Destroy() | |
| 3247 | Debounces.Ready = false | |
| 3248 | for i, v in pairs(Touche) do | |
| 3249 | table.remove(Touche, i) | |
| 3250 | end | |
| 3251 | wait() | |
| 3252 | table.insert(Touche, char.Name) | |
| 3253 | Debounces.NoIdl = false | |
| 3254 | if Debounces.CanAttack == false then | |
| 3255 | Debounces.CanAttack = true | |
| 3256 | end | |
| 3257 | end | |
| 3258 | end | |
| 3259 | end) | |
| 3260 | ---------------------------------------------------- | |
| 3261 | mouse.KeyDown:connect(function(key) | |
| 3262 | if key == "h" then | |
| 3263 | if Debounces.CanAttack == true then | |
| 3264 | Debounces.CanAttack = false | |
| 3265 | Debounces.on = true | |
| 3266 | Debounces.NoIdl = true | |
| 3267 | for i = 1, 20 do | |
| 3268 | 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) | |
| 3269 | 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) | |
| 3270 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
| 3271 | 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) | |
| 3272 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
| 3273 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
| 3274 | if Debounces.on == false then break end | |
| 3275 | rs:wait(2.6) | |
| 3276 | end | |
| 3277 | Spawn(function() | |
| 3278 | local Parts = {}
| |
| 3279 | for Y = -5,5 do | |
| 3280 | local P = Instance.new("Part",char)
| |
| 3281 | P.Anchored = true | |
| 3282 | P.FormFactor = "Custom" | |
| 3283 | P.CanCollide = false | |
| 3284 | P.Size = Vector3.new(2,4,2) | |
| 3285 | P.TopSurface = "SmoothNoOutlines" | |
| 3286 | P.BottomSurface = "SmoothNoOutlines" | |
| 3287 | P.Material = "Neon" | |
| 3288 | P.BrickColor = BrickColor.new("Really black")
| |
| 3289 | P.Name = tostring(Y) | |
| 3290 | local i = (Y+5)/(10) | |
| 3291 | i = 1-math.cos(math.pi*i-(math.pi/2)) | |
| 3292 | P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0) | |
| 3293 | --[[P.Touched:connect(function(ht) | |
| 3294 | local hit = ht.Parent | |
| 3295 | if hit:FindFirstChild("Humanoid") then
| |
| 3296 | hit.Humanoid:TakeDamage(math.random(20,50)) | |
| 3297 | end | |
| 3298 | end)]]-- | |
| 3299 | s = Instance.new("Sound",P)
| |
| 3300 | s.SoundId = "rbxassetid://228343271" | |
| 3301 | s.Volume = 1 | |
| 3302 | s.Pitch = 0.9 | |
| 3303 | s:Play() | |
| 3304 | sa = Instance.new("Sound",P)
| |
| 3305 | sa.SoundId = "rbxassetid://419447292" | |
| 3306 | sa.Volume = 1 | |
| 3307 | sa.Pitch = 1 | |
| 3308 | sa:Play() | |
| 3309 | P.Touched:connect(function(ht) | |
| 3310 | hit = ht.Parent | |
| 3311 | if ht and hit:IsA("Model") then
| |
| 3312 | if hit:FindFirstChild("Humanoid") then
| |
| 3313 | if hit.Name ~= p.Name then | |
| 3314 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 3315 | Debounces.Slashed = true]]-- | |
| 3316 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(1,3))
| |
| 3317 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 3318 | wait(1) | |
| 3319 | --Debounces.Slashed = false | |
| 3320 | --end | |
| 3321 | end | |
| 3322 | end | |
| 3323 | elseif ht and hit:IsA("Hat") then
| |
| 3324 | if hit.Parent.Name ~= p.Name then | |
| 3325 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 3326 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 3327 | Debounces.Slashed = true]]-- | |
| 3328 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (1,3))
| |
| 3329 | hit:FindFirstChild("Humanoid").PlatformStand = true
| |
| 3330 | wait(1) | |
| 3331 | --Debounces.Slashed = false | |
| 3332 | --end | |
| 3333 | end | |
| 3334 | end | |
| 3335 | end | |
| 3336 | end) | |
| 3337 | Parts[#Parts+1] = P | |
| 3338 | end | |
| 3339 | local BREAKIT = false | |
| 3340 | local CParts = {}
| |
| 3341 | local Rocks = {}
| |
| 3342 | local LastPos = nil | |
| 3343 | for i = 1,70 do | |
| 3344 | for i2,v in pairs(Parts) do | |
| 3345 | v.CFrame = v.CFrame*CFrame.new(0,0,-4) | |
| 3346 | local cf = v.CFrame | |
| 3347 | v.Size = v.Size+Vector3.new(0.4,0.35,0) | |
| 3348 | v.CFrame = cf | |
| 3349 | v.Transparency = v.Transparency+0.02 | |
| 3350 | if v.Transparency >= 0.975 then BREAKIT = true end | |
| 3351 | if v.Name == "0" then | |
| 3352 | local Ignore = {}
| |
| 3353 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 3354 | if v.Character ~= nil then | |
| 3355 | Ignore[#Ignore+1] = v.Character | |
| 3356 | end | |
| 3357 | end | |
| 3358 | local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0)) | |
| 3359 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) | |
| 3360 | if Hit ~= nil then | |
| 3361 | if #Rocks == 0 then | |
| 3362 | for i = 1,5 do | |
| 3363 | local P = Instance.new("Part",char)
| |
| 3364 | Rocks[#Rocks+1] = P | |
| 3365 | P.Anchored = true | |
| 3366 | P.FormFactor = "Custom" | |
| 3367 | P.BrickColor = Hit.BrickColor | |
| 3368 | P.Material = Hit.Material | |
| 3369 | P.TopSurface = "Smooth" | |
| 3370 | P.BottomSurface = "Smooth" | |
| 3371 | P.Size = Vector3.new(2,2,2)*(math.random(500,900)/100) | |
| 3372 | end | |
| 3373 | end | |
| 3374 | for i,P in pairs(Rocks) do | |
| 3375 | P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
| 3376 | end | |
| 3377 | local P = Instance.new("Part",char)
| |
| 3378 | CParts[#CParts+1] = {P,tick()}
| |
| 3379 | P.Anchored = true | |
| 3380 | P.FormFactor = "Custom" | |
| 3381 | P.BrickColor = Hit.BrickColor | |
| 3382 | P.Material = Hit.Material | |
| 3383 | P.TopSurface = "Smooth" | |
| 3384 | P.BottomSurface = "Smooth" | |
| 3385 | P.Size = Vector3.new(2,2,2)*(math.random(100,300)/100) | |
| 3386 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
| 3387 | Pos = Pos.p | |
| 3388 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
| 3389 | local P = P:Clone() | |
| 3390 | CParts[#CParts+1] = {P,tick()}
| |
| 3391 | P.Parent = char | |
| 3392 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) | |
| 3393 | Pos = Pos.p | |
| 3394 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20))) | |
| 3395 | if LastPos ~= nil then | |
| 3396 | local P = P:Clone() | |
| 3397 | CParts[#CParts+1] = {P,tick()}
| |
| 3398 | P.Parent = char | |
| 3399 | P.BrickColor = TorsoColor | |
| 3400 | P.Material = "Neon" | |
| 3401 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
| 3402 | Pos = Pos.p | |
| 3403 | local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
| 3404 | P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) | |
| 3405 | --P.Velocity = Vector3.new(0,-1000,0) | |
| 3406 | P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) | |
| 3407 | end | |
| 3408 | LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
| 3409 | end | |
| 3410 | end | |
| 3411 | end | |
| 3412 | if BREAKIT then break end | |
| 3413 | wait(0.002) | |
| 3414 | end | |
| 3415 | for i,v in pairs(Rocks) do | |
| 3416 | CParts[#CParts+1] = {v,tick()}
| |
| 3417 | end | |
| 3418 | for i,v in pairs(Parts) do | |
| 3419 | v:Destroy() | |
| 3420 | end | |
| 3421 | Parts = nil | |
| 3422 | while true do | |
| 3423 | local t = tick() | |
| 3424 | local p = nil | |
| 3425 | for i,v in pairs(CParts) do | |
| 3426 | if t-v[2] > 4 then | |
| 3427 | v[1].Transparency = v[1].Transparency+0.05 | |
| 3428 | if v[1].Transparency >= 1 then | |
| 3429 | v[1]:Destroy() | |
| 3430 | CParts[i] = nil | |
| 3431 | end | |
| 3432 | end | |
| 3433 | p = v | |
| 3434 | end | |
| 3435 | if p == nil then break end | |
| 3436 | wait(0.002) | |
| 3437 | end | |
| 3438 | for i,v in pairs(CParts) do | |
| 3439 | v:Destroy() | |
| 3440 | end | |
| 3441 | CParts = {}
| |
| 3442 | end) | |
| 3443 | for i = 1, 20 do | |
| 3444 | 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) | |
| 3445 | 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) | |
| 3446 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 3447 | 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) | |
| 3448 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
| 3449 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
| 3450 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1) | |
| 3451 | if Debounces.on == false then break end | |
| 3452 | rs:wait(2) | |
| 3453 | end | |
| 3454 | if Debounces.CanAttack == false then | |
| 3455 | Debounces.CanAttack = true | |
| 3456 | Debounces.on = false | |
| 3457 | Debounces.NoIdl = false | |
| 3458 | end | |
| 3459 | end | |
| 3460 | end | |
| 3461 | end) | |
| 3462 | ---------------------------------------------------- | |
| 3463 | local orbt={}
| |
| 3464 | local stlt={}
| |
| 3465 | local chot={}
| |
| 3466 | local cfxt={}
| |
| 3467 | local pfxt={}
| |
| 3468 | local cns=0 | |
| 3469 | local cnOrb=nil | |
| 3470 | mouse.KeyDown:connect(function(key) | |
| 3471 | if key == "u" then | |
| 3472 | if Debounces.CanAttack == true then | |
| 3473 | Debounces.CanAttack = false | |
| 3474 | Debounces.NoIdl = true | |
| 3475 | Debounces.on = true | |
| 3476 | orbt={}
| |
| 3477 | stlt={}
| |
| 3478 | chot={}
| |
| 3479 | cfxt={}
| |
| 3480 | for i = 1, 20 do | |
| 3481 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2) | |
| 3482 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.6) | |
| 3483 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) | |
| 3484 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4) | |
| 3485 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
| 3486 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
| 3487 | if Debounces.on == false then end | |
| 3488 | rs:wait() | |
| 3489 | end | |
| 3490 | z2 = Instance.new("Sound",char)
| |
| 3491 | z2.SoundId = "rbxassetid://489657591" | |
| 3492 | z2.Pitch = 1 | |
| 3493 | z2.Volume = 2 | |
| 3494 | wait(0.1) | |
| 3495 | z2:Play() | |
| 3496 | cnOrb=nwPrt(char,Vector3.new(1,1,1),larm.CFrame*CFrame.new(0,-3.4,-0.1),"White") | |
| 3497 | debris:AddItem(cnOrb,50) | |
| 3498 | cnOrb.Mesh.MeshType=3 | |
| 3499 | cnOrb.Transparency = 0.5 | |
| 3500 | table.insert(orbt,cnOrb) | |
| 3501 | table.insert(stlt,cnOrb) | |
| 3502 | local nt=0 | |
| 3503 | for i=0,14.75,0.02 do | |
| 3504 | nt=nt+1 | |
| 3505 | cns=i | |
| 3506 | if nt>=2 then | |
| 3507 | nt=0 | |
| 3508 | local cho=nwPrt(mod3,Vector3.new(0.2,0.2,0.2),cnOrb.CFrame*CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))*CFrame.new(0,5+cns,0),"White") | |
| 3509 | debris:AddItem(cho,1) | |
| 3510 | cho.Mesh.MeshType=3 | |
| 3511 | cho.Transparency = 1 | |
| 3512 | table.insert(chot,cho) | |
| 3513 | end | |
| 3514 | cnOrb.CFrame=larm.CFrame*CFrame.new(0,-3.4-(cns/2),-0.1) | |
| 3515 | cnOrb.Mesh.Scale=Vector3.new(i,i,i) | |
| 3516 | wait() | |
| 3517 | end | |
| 3518 | for i = 1, 14 do | |
| 3519 | 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) | |
| 3520 | 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) | |
| 3521 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
| 3522 | 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) | |
| 3523 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
| 3524 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
| 3525 | if Debounces.on == false then end | |
| 3526 | rs:wait() | |
| 3527 | end | |
| 3528 | coroutine.wrap(function() | |
| 3529 | for i = 1, 20 do | |
| 3530 | 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) | |
| 3531 | 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) | |
| 3532 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
| 3533 | 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) | |
| 3534 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
| 3535 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
| 3536 | if Debounces.on == false then end | |
| 3537 | rs:wait() | |
| 3538 | end | |
| 3539 | end)() | |
| 3540 | wait(0.1) | |
| 3541 | stlt={}
| |
| 3542 | local ry,ht,ps=newRay(root.CFrame*CFrame.new(0,0,-4),root.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(math.rad(-5),0,0)*CFrame.new(0,0,-2),160,{char})
| |
| 3543 | cnOrb.CFrame=root.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(math.rad(-5),0,0) | |
| 3544 | local nt=0 | |
| 3545 | for i=0,160,3 do | |
| 3546 | cnOrb.CFrame=cnOrb.CFrame*CFrame.new(0,0,-3) | |
| 3547 | nt=nt+1 | |
| 3548 | if nt>=6 then | |
| 3549 | nt=0 | |
| 3550 | local cfx=nwPrt(mod3,Vector3.new(10,10,10),cnOrb.CFrame*CFrame.new(0,0,2)*CFrame.Angles(math.rad(90),0,0),"Really black") | |
| 3551 | cfx.Mesh.MeshId="rbxassetid://0" | |
| 3552 | cfx.Transparency=0.4 | |
| 3553 | table.insert(cfxt,cfx) | |
| 3554 | debris:AddItem(cfx,1) | |
| 3555 | end | |
| 3556 | if (cnOrb.Position-ps).magnitude<12 then | |
| 3557 | break | |
| 3558 | end | |
| 3559 | wait() | |
| 3560 | end | |
| 3561 | orbt={}
| |
| 3562 | ||
| 3563 | for i=0,1,0.1 do | |
| 3564 | local cs=cnOrb.Mesh.Scale | |
| 3565 | cnOrb.Mesh.Scale=Vector3.new(Tween(cs.X,100,i),Tween(cs.Y,100,i),Tween(cs.Z,100,i)) | |
| 3566 | wait() | |
| 3567 | end | |
| 3568 | local ofx=nwPrt(cnOrb,Vector3.new(10,10,10),cnOrb.CFrame,"Really black") | |
| 3569 | ofx.Transparency=0.5 | |
| 3570 | ofx.Mesh.MeshType=3 | |
| 3571 | ofx.Mesh.Scale=Vector3.new(30,30,30) | |
| 3572 | for _,v in pairs(game:service"Players":GetChildren()) do | |
| 3573 | pcall(function() | |
| 3574 | for _,c in pairs(v.Character:GetChildren()) do | |
| 3575 | if v~=p and c:IsA("Part") and (cnOrb.CFrame.p-c.CFrame.p).magnitude<120 and (cnOrb.CFrame.p-c.CFrame.p).magnitude>50 then
| |
| 3576 | local hrp=v.Character:FindFirstChild("HumanoidRootPart")
| |
| 3577 | hrp.Velocity=CFrame.new(hrp.CFrame.p,(cnOrb.CFrame*CFrame.new(0,10,0)).p).lookVector*2500 | |
| 3578 | end | |
| 3579 | end | |
| 3580 | end) | |
| 3581 | end | |
| 3582 | for i=0,1,0.05 do | |
| 3583 | local cs=cnOrb.Mesh.Scale | |
| 3584 | cnOrb.Mesh.Scale=Vector3.new(Tween(cs.X,0.1,i),Tween(cs.Y,0.1,i),Tween(cs.Z,0.1,i)) | |
| 3585 | local ofs=ofx.Mesh.Scale | |
| 3586 | ofx.Mesh.Scale=Vector3.new(Tween(ofs.X,0.1,i),Tween(ofs.Y,0.1,i),Tween(ofs.Z,0.1,i)) | |
| 3587 | ofx.Transparency=Tween(ofx.Transparency,1,i) | |
| 3588 | wait() | |
| 3589 | end | |
| 3590 | ofx:Destroy() | |
| 3591 | cnOrb.CFrame=CFrame.new(cnOrb.Position)*CFrame.new(0,10,0) | |
| 3592 | local cnfx=nwPrt(cnOrb,Vector3.new(100,100,100),cnOrb.CFrame,"Really black") | |
| 3593 | cnfx.Mesh.MeshType=3 | |
| 3594 | cnOrb.Transparency=0.5 | |
| 3595 | local cnr=nwPrt(cnOrb,Vector3.new(100,100,100),cnOrb.CFrame,"Really black") | |
| 3596 | cnr.Transparency=0.5 | |
| 3597 | cnr.Mesh.MeshType=3 | |
| 3598 | local rn1=nwPrt(cnOrb,Vector3.new(10,10,10),cnOrb.CFrame*CFrame.Angles(math.rad(90),0,0),"White") | |
| 3599 | rn1.Transparency=1 | |
| 3600 | rn1.Mesh.MeshId="rbxassetid://3270017" | |
| 3601 | local rn2=nwPrt(cnOrb,Vector3.new(10,10,10),cnOrb.CFrame,"White") | |
| 3602 | rn2.Transparency=1 | |
| 3603 | rn2.Mesh.MeshId="rbxassetid://3270017" | |
| 3604 | local rn3=nwPrt(cnOrb,Vector3.new(100,100,100),cnOrb.CFrame*CFrame.Angles(math.rad(-90),0,0),"White") | |
| 3605 | rn3.Transparency=1 | |
| 3606 | rn3.Mesh.MeshId="rbxassetid://3270017" | |
| 3607 | local rn4=nwPrt(cnOrb,Vector3.new(100,100,100),cnOrb.CFrame,"White") | |
| 3608 | rn4.Transparency=1 | |
| 3609 | rn4.Mesh.MeshId="rbxassetid://3270017" | |
| 3610 | local rn5=nwPrt(cnOrb,Vector3.new(200,200,100),cnOrb.CFrame,"White") | |
| 3611 | rn5.Transparency=1 | |
| 3612 | rn5.Mesh.MeshId="rbxassetid://3270017" | |
| 3613 | local rn6=nwPrt(cnOrb,Vector3.new(200,200,100),cnOrb.CFrame,"White") | |
| 3614 | rn6.Transparency=1 | |
| 3615 | rn6.Mesh.MeshId="rbxassetid://3270017" | |
| 3616 | local nt=0 | |
| 3617 | local cs=nil | |
| 3618 | z4 = Instance.new("Sound",char)
| |
| 3619 | z4.SoundId = "rbxassetid://419447292" | |
| 3620 | z4.Pitch = 1 | |
| 3621 | z4.Volume = 10 | |
| 3622 | wait(0.1) | |
| 3623 | z4:Play() | |
| 3624 | z3 = Instance.new("Sound",char)
| |
| 3625 | z3.SoundId = "rbxassetid://421328847" | |
| 3626 | z3.Pitch = 1 | |
| 3627 | z3.Volume = 10 | |
| 3628 | wait(0.1) | |
| 3629 | z3:Play() | |
| 3630 | for i=0,1,0.05 do | |
| 3631 | cs=cnOrb.Mesh.Scale | |
| 3632 | cnOrb.Mesh.Scale=Vector3.new(Tween(cs.X,100,i),Tween(cs.Y,100,i),Tween(cs.Z,100,i)) | |
| 3633 | local fs=cnfx.Mesh.Scale | |
| 3634 | cnfx.Mesh.Scale=Vector3.new(Tween(fs.X,120,i),Tween(fs.Y,120,i),Tween(fs.Z,120,i)) | |
| 3635 | cnfx.Transparency=cnfx.Transparency+0.05 | |
| 3636 | rn1.Mesh.Scale=Vector3.new(Tween(fs.X,120,i),Tween(fs.Y,120,i),Tween(fs.Z,60,i)) | |
| 3637 | rn2.Mesh.Scale=Vector3.new(Tween(fs.X,120,i),Tween(fs.Y,120,i),Tween(fs.Z,60,i)) | |
| 3638 | rn1.CFrame=rn1.CFrame*CFrame.Angles(math.rad(10),math.rad(6),math.rad(3)) | |
| 3639 | rn2.CFrame=rn2.CFrame*CFrame.Angles(math.rad(10),math.rad(6),math.rad(3)) | |
| 3640 | rn1.Transparency=Tween(rn1.Transparency,0.8,i) | |
| 3641 | rn2.Transparency=Tween(rn2.Transparency,0.8,i) | |
| 3642 | rn3.Mesh.Scale=Vector3.new(Tween(fs.X,1200,i),Tween(fs.Y,1200,i),Tween(fs.Z,600,i)) | |
| 3643 | rn4.Mesh.Scale=Vector3.new(Tween(fs.X,1200,i),Tween(fs.Y,1200,i),Tween(fs.Z,600,i)) | |
| 3644 | rn3.CFrame=rn3.CFrame*CFrame.Angles(math.rad(-10),math.rad(-6),math.rad(-3)) | |
| 3645 | rn4.CFrame=rn4.CFrame*CFrame.Angles(math.rad(-10),math.rad(-6),math.rad(-3)) | |
| 3646 | rn3.Transparency=Tween(rn1.Transparency,0.8,i) | |
| 3647 | rn4.Transparency=Tween(rn2.Transparency,0.8,i) | |
| 3648 | rn5.Transparency=Tween(rn2.Transparency,0.25,i) | |
| 3649 | rn5.CFrame=rn5.CFrame*CFrame.Angles(math.rad(-20),math.rad(-18),math.rad(-9)) | |
| 3650 | rn5.Mesh.Scale=Vector3.new(Tween(fs.X,2400,i),Tween(fs.Y,2400,i),Tween(fs.Z,1200,i)) | |
| 3651 | rn6.Transparency=Tween(rn2.Transparency,0.25,i) | |
| 3652 | rn6.CFrame=rn6.CFrame*CFrame.Angles(math.rad(20),math.rad(18),math.rad(9)) | |
| 3653 | rn6.Mesh.Scale=Vector3.new(Tween(fs.X,2400,i),Tween(fs.Y,2400,i),Tween(fs.Z,1200,i)) | |
| 3654 | local rs=cnr.Mesh.Scale | |
| 3655 | cnr.Mesh.Scale=Vector3.new(Tween(rs.X,10,i),Tween(rs.Y,10,i),Tween(rs.Z,10,i)) | |
| 3656 | nt=nt+1 | |
| 3657 | if nt>=6 then | |
| 3658 | local pls={}
| |
| 3659 | for _,v in pairs(game.Players:GetChildren()) do | |
| 3660 | table.insert(pls,v) | |
| 3661 | end | |
| 3662 | local ry2,ht2,ps2=newRay(cnOrb.CFrame,cnOrb.CFrame*CFrame.new(0,-1,0),1000,pls) | |
| 3663 | local pffx=nwPrt(mod3,Vector3.new(1,1,1),CFrame.new(ps2)*CFrame.new(0,10,-12),"White") | |
| 3664 | pffx.Mesh.MeshId="rbxassetid://0" | |
| 3665 | pffx.Mesh.Scale=Vector3.new(cs.X,cs.Y/5,cs.Z) | |
| 3666 | debris:AddItem(pffx,2) | |
| 3667 | table.insert(pfxt,pffx) | |
| 3668 | nt=0 | |
| 3669 | end | |
| 3670 | wait() | |
| 3671 | end | |
| 3672 | local int=0 | |
| 3673 | coroutine.wrap(function() | |
| 3674 | for i=1,500 do | |
| 3675 | rn1.CFrame=rn1.CFrame*CFrame.Angles(math.rad(10),math.rad(5),math.rad(5)) | |
| 3676 | rn2.CFrame=rn2.CFrame*CFrame.Angles(math.rad(10),math.rad(5),math.rad(5)) | |
| 3677 | rn3.CFrame=rn3.CFrame*CFrame.Angles(math.rad(-10),math.rad(-5),math.rad(-5)) | |
| 3678 | rn4.CFrame=rn4.CFrame*CFrame.Angles(math.rad(-10),math.rad(-5),math.rad(-5)) | |
| 3679 | rn5.CFrame=rn5.CFrame*CFrame.Angles(math.rad(5),math.rad(5),math.rad(5)) | |
| 3680 | rn6.CFrame=rn6.CFrame*CFrame.Angles(math.rad(-5),math.rad(-5),math.rad(-5)) | |
| 3681 | nt=nt+1 | |
| 3682 | int=int+1 | |
| 3683 | local htd={p}
| |
| 3684 | for _,v in pairs(game:service"Players":GetChildren()) do | |
| 3685 | pcall(function() | |
| 3686 | for _,c in pairs(v.Character:GetChildren()) do | |
| 3687 | if c:IsA("Part") and not inT(v,htd) and (cnOrb.CFrame.p-c.CFrame.p).magnitude<50 then
| |
| 3688 | v.Character:FindFirstChild("Humanoid").Health=v.Character:FindFirstChild("Humanoid").Health-2
| |
| 3689 | v.Character:FindFirstChild("HumanoidRootPart").Velocity=Vector3.new(0,0,0)
| |
| 3690 | table.insert(htd,v) | |
| 3691 | end | |
| 3692 | end | |
| 3693 | end) | |
| 3694 | end | |
| 3695 | htd={p}
| |
| 3696 | if int>=6 then | |
| 3697 | for _,v in pairs(game:service"Players":GetChildren()) do | |
| 3698 | pcall(function() | |
| 3699 | for _,c in pairs(v.Character:GetChildren()) do | |
| 3700 | if c:IsA("Part") and not inT(v,htd) and (cnOrb.CFrame.p-c.CFrame.p).magnitude<50 then
| |
| 3701 | table.insert(htd,v) | |
| 3702 | local hfx=nwPrt(mod3,Vector3.new(1,1,1),c.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)),"White") | |
| 3703 | hfx.Mesh.Scale=Vector3.new(2,2,2) | |
| 3704 | hfx.Mesh.MeshType=3 | |
| 3705 | debris:AddItem(hfx,2) | |
| 3706 | coroutine.wrap(function() | |
| 3707 | pcall(function() | |
| 3708 | for i=0,1,0.05 do | |
| 3709 | pcall(function() | |
| 3710 | local hs=hfx.Mesh.Scale | |
| 3711 | hfx.CFrame=Lerp(hfx.CFrame,cnOrb.CFrame,i) | |
| 3712 | hfx.Mesh.Scale=Vector3.new(Tween(hs.X,0.1,i),Tween(hs.Y,0.1,i),Tween(hs.Z,0.1,i)) | |
| 3713 | end) | |
| 3714 | wait() | |
| 3715 | end | |
| 3716 | hfx:Destroy() | |
| 3717 | end) | |
| 3718 | end)() | |
| 3719 | end | |
| 3720 | end | |
| 3721 | end) | |
| 3722 | end | |
| 3723 | int=0 | |
| 3724 | end | |
| 3725 | if nt>=4 then | |
| 3726 | local pls={}
| |
| 3727 | for _,v in pairs(game.Players:GetChildren()) do | |
| 3728 | table.insert(pls,v) | |
| 3729 | end | |
| 3730 | local ry2,ht2,ps2=newRay(cnOrb.CFrame,cnOrb.CFrame*CFrame.new(0,-1,0),1000,pls) | |
| 3731 | local pffx=nwPrt(mod3,Vector3.new(1,1,1),CFrame.new(ps2)*CFrame.new(0,10,-12),"White") | |
| 3732 | pffx.Transparency=0.4 | |
| 3733 | pffx.Mesh.MeshId="rbxassetid://0" | |
| 3734 | pffx.Mesh.Scale=Vector3.new(cs.X-10,cs.Y/5,cs.Z-10) | |
| 3735 | debris:AddItem(pffx,2) | |
| 3736 | table.insert(pfxt,pffx) | |
| 3737 | nt=0 | |
| 3738 | end | |
| 3739 | wait() | |
| 3740 | end | |
| 3741 | cnOrb:Destroy() | |
| 3742 | cnfx:Destroy() | |
| 3743 | for _,v in pairs(mod3:GetChildren()) do | |
| 3744 | v:Destroy() | |
| 3745 | end | |
| 3746 | orbt={}
| |
| 3747 | stlt={}
| |
| 3748 | chot={}
| |
| 3749 | cfxt={}
| |
| 3750 | pfxt={}
| |
| 3751 | end)() | |
| 3752 | if Debounces.CanAttack == false then | |
| 3753 | Debounces.CanAttack = true | |
| 3754 | Debounces.NoIdl = false | |
| 3755 | Debounces.on = false | |
| 3756 | end | |
| 3757 | end | |
| 3758 | end | |
| 3759 | end) | |
| 3760 | ---------------------------------------------------- | |
| 3761 | --[[mouse.KeyDown:connect(function(key) | |
| 3762 | if key == "y" then | |
| 3763 | if Debounces.CanAttack == true then | |
| 3764 | Debounces.CanAttack = false | |
| 3765 | Debounces.NoIdl = true | |
| 3766 | Debounces.on = true | |
| 3767 | local shell = Instance.new("Part",torso)
| |
| 3768 | shell.BrickColor = TorsoColor | |
| 3769 | shell.Anchored = false | |
| 3770 | shell.CanCollide = false | |
| 3771 | shell.Locked = true | |
| 3772 | shell.TopSurface = "SmoothNoOutlines" | |
| 3773 | shell.BottomSurface = "SmoothNoOutlines" | |
| 3774 | shell.Size = Vector3.new(1.2,1.2,1.2) | |
| 3775 | shell.FormFactor = 3 | |
| 3776 | local shellm = Instance.new("SpecialMesh",shell)
| |
| 3777 | shellm.MeshType = "Sphere" | |
| 3778 | shellm.Scale = Vector3.new(1.2,1.2,1.2) | |
| 3779 | Omega = function() | |
| 3780 | local X = Instance.new("Part",char)
| |
| 3781 | local O = Instance.new("ObjectValue",X)
| |
| 3782 | O.Name = "creator" | |
| 3783 | X.Locked = true | |
| 3784 | X.Name = "Shell" | |
| 3785 | X.Anchored = false | |
| 3786 | X.CanCollide = false | |
| 3787 | X.Transparency = 0.5 | |
| 3788 | X.Reflectance = 0 | |
| 3789 | X.BottomSurface = 0 | |
| 3790 | X.TopSurface = 0 | |
| 3791 | X.Shape = 0 | |
| 3792 | local V = Instance.new("ObjectValue",X)
| |
| 3793 | V.Value = char | |
| 3794 | V.Name = "creator" | |
| 3795 | X.BrickColor = TorsoColor | |
| 3796 | X.Size = Vector3.new(40,40,40) | |
| 3797 | --X.Material = "Neon" | |
| 3798 | local Z = Instance.new("SpecialMesh",X)
| |
| 3799 | Z.MeshType = "Sphere" | |
| 3800 | Z.Scale = Vector3.new(0.2,0.2,0.2) | |
| 3801 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
| 3802 | local bv = Instance.new("BodyVelocity",X)
| |
| 3803 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 3804 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
| 3805 | bv.velocity = root.CFrame.lookVector*10 | |
| 3806 | Explode = X.Touched:connect(function(hit) | |
| 3807 | if hit ~= char and hit.Name ~= "Shell" and hit ~= X and hit:IsA("Part") or hit:IsA("BasePart}") then
| |
| 3808 | local cf = X.CFrame | |
| 3809 | bv:Destroy() | |
| 3810 | X.Anchored = true | |
| 3811 | Z:Remove() | |
| 3812 | Explode:disconnect() | |
| 3813 | X.Size = Vector3.new(3,3,3) | |
| 3814 | X.Touched:connect(function(hit) end) | |
| 3815 | X.CanCollide = false | |
| 3816 | for i,v in pairs(FindNearestTorso(X.CFrame.p,200))do | |
| 3817 | if v:FindFirstChild('Humanoid') then
| |
| 3818 | v.Humanoid:TakeDamage(math.random(80,120)) | |
| 3819 | end | |
| 3820 | end | |
| 3821 | for i = 1, (40) do rs:wait() | |
| 3822 | X.Transparency = X.Transparency + (1/40) | |
| 3823 | X.Size = X.Size + Vector3.new(1,1,1) | |
| 3824 | X.CFrame = root.CFrame * CFrame.new(0,0,-10) | |
| 3825 | end | |
| 3826 | X:Destroy() | |
| 3827 | end | |
| 3828 | end) | |
| 3829 | end | |
| 3830 | for i = 1,200 do | |
| 3831 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 3832 | 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) | |
| 3833 | 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) | |
| 3834 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3835 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3836 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3837 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3838 | if Debounces.on == false then break end | |
| 3839 | rs:wait() | |
| 3840 | end | |
| 3841 | for i = 1,30 do | |
| 3842 | shell.CFrame = torso.CFrame * CFrame.new(0,8,0) | |
| 3843 | 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) | |
| 3844 | 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) | |
| 3845 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3846 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3847 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3848 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3849 | if Debounces.on == false then break end | |
| 3850 | rs:wait() | |
| 3851 | end | |
| 3852 | for i = 1,40 do | |
| 3853 | shell.CFrame = torso.CFrame * CFrame.new(0,20,0) | |
| 3854 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
| 3855 | 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) | |
| 3856 | 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) | |
| 3857 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3858 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3859 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3860 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3861 | if Debounces.on == false then break end | |
| 3862 | rs:wait() | |
| 3863 | end | |
| 3864 | for i = 1,40 do | |
| 3865 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-30) | |
| 3866 | 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) | |
| 3867 | 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) | |
| 3868 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3869 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3870 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3871 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3872 | if Debounces.on == false then break end | |
| 3873 | rs:wait() | |
| 3874 | end | |
| 3875 | for i = 1,60 do | |
| 3876 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
| 3877 | 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) | |
| 3878 | 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) | |
| 3879 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3880 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3881 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3882 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3883 | if Debounces.on == false then break end | |
| 3884 | rs:wait() | |
| 3885 | end | |
| 3886 | for i = 1,60 do | |
| 3887 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
| 3888 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
| 3889 | 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) | |
| 3890 | 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) | |
| 3891 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
| 3892 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 3893 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3894 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
| 3895 | if Debounces.on == false then break end | |
| 3896 | rs:wait() | |
| 3897 | end | |
| 3898 | if Debounces.CanAttack == false then | |
| 3899 | Debounces.CanAttack = true | |
| 3900 | Debounces.NoIdl = false | |
| 3901 | Debounces.on = false | |
| 3902 | end | |
| 3903 | end | |
| 3904 | end | |
| 3905 | end)]]-- | |
| 3906 | ---------------------------------------------------- | |
| 3907 | Charging = false | |
| 3908 | mouse.KeyDown:connect(function(key) | |
| 3909 | if key == "r" then | |
| 3910 | if Charging == false then | |
| 3911 | Charging = true | |
| 3912 | if Debounces.CanAttack == true then | |
| 3913 | Debounces.CanAttack = false | |
| 3914 | Debounces.NoIdl = true | |
| 3915 | Debounces.on = true | |
| 3916 | for i = 1,20 do | |
| 3917 | 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) | |
| 3918 | 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) | |
| 3919 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
| 3920 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 3921 | 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) | |
| 3922 | 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) | |
| 3923 | if Debounces.on == false then break end | |
| 3924 | rs:wait() | |
| 3925 | end | |
| 3926 | --[[for i = 1,20 do | |
| 3927 | 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) | |
| 3928 | 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) | |
| 3929 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
| 3930 | 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) | |
| 3931 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
| 3932 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
| 3933 | if Debounces.on == false then break end | |
| 3934 | rs:wait() | |
| 3935 | end]]-- | |
| 3936 | xay = Instance.new("Sound",char)
| |
| 3937 | xay.SoundId = "rbxassetid://419447292" | |
| 3938 | xay.Pitch = 1 | |
| 3939 | xay.Volume = 2.5 | |
| 3940 | xay:Play() | |
| 3941 | pt=Instance.new('Part',torso)
| |
| 3942 | pt.Anchored=true | |
| 3943 | pt.CanCollide=false | |
| 3944 | pt.Locked = true | |
| 3945 | pt.FormFactor='Custom' | |
| 3946 | pt.Size=Vector3.new(1,1,1) | |
| 3947 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 3948 | pt.Transparency=.6 | |
| 3949 | pt.BrickColor=BrickColor.new('Really black')
| |
| 3950 | msh=Instance.new('SpecialMesh',pt)
| |
| 3951 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
| 3952 | msh.Scale=Vector3.new(8,4,8) | |
| 3953 | pt2=pt:clone() | |
| 3954 | pt2.Parent = torso | |
| 3955 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
| 3956 | pt2.BrickColor=TorsoColor | |
| 3957 | msh2=msh:clone() | |
| 3958 | msh2.Parent=pt2 | |
| 3959 | msh2.Scale=Vector3.new(10,5,10) | |
| 3960 | ||
| 3961 | 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}
| |
| 3962 | ||
| 3963 | bl = Instance.new("Part", char)
| |
| 3964 | bl.Locked = true | |
| 3965 | bl.Name = "Shell" | |
| 3966 | bl.BrickColor = BrickColor.new("Really black")
| |
| 3967 | bl.Anchored = true | |
| 3968 | bl.CanCollide = false | |
| 3969 | bl.Transparency = 0 | |
| 3970 | bl.Reflectance = 0 | |
| 3971 | bl.BottomSurface = 0 | |
| 3972 | bl.TopSurface = 0 | |
| 3973 | bl.Shape = 0 | |
| 3974 | blm = Instance.new("SpecialMesh",bl)
| |
| 3975 | blm.MeshType = "Sphere" | |
| 3976 | blm.Scale = Vector3.new(1,1,1) | |
| 3977 | blm.MeshId = "rbxassetid://9982590" | |
| 3978 | ||
| 3979 | bl2 = Instance.new("Part", char)
| |
| 3980 | bl2.Locked = true | |
| 3981 | bl2.Name = "Shella" | |
| 3982 | bl2.BrickColor = BrickColor.new("Really black")
| |
| 3983 | bl2.Anchored = true | |
| 3984 | bl2.CanCollide = false | |
| 3985 | bl2.Transparency = 0 | |
| 3986 | bl2.Reflectance = 0 | |
| 3987 | bl2.BottomSurface = 0 | |
| 3988 | bl2.TopSurface = 0 | |
| 3989 | bl2.Shape = 0 | |
| 3990 | blm2 = Instance.new("SpecialMesh",bl2)
| |
| 3991 | blm2.MeshType = "Sphere" | |
| 3992 | blm2.Scale = Vector3.new(1,1,1) | |
| 3993 | blm2.MeshId = "rbxassetid://9982590" | |
| 3994 | ||
| 3995 | coroutine.resume(coroutine.create(function() | |
| 3996 | for i=1, math.huge, 4 do | |
| 3997 | if Charging == true then | |
| 3998 | rs:wait() | |
| 3999 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 4000 | blm.Scale = blm.Scale + Vector3.new(15, 15, 15) | |
| 4001 | bl.Transparency = bl.Transparency + 0.075 | |
| 4002 | bl2.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
| 4003 | blm2.Scale = blm2.Scale + Vector3.new(5, 5, 5) | |
| 4004 | bl2.Transparency = bl2.Transparency + 0.025 | |
| 4005 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
| 4006 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
| 4007 | msh.Scale = msh.Scale + Vector3.new(5,2.5,5) | |
| 4008 | msh2.Scale = msh2.Scale + Vector3.new(10,5,10) | |
| 4009 | elseif Charging == false then break | |
| 4010 | end | |
| 4011 | end | |
| 4012 | end)) | |
| 4013 | ||
| 4014 | repeat | |
| 4015 | local p = Instance.new('Part',torso)
| |
| 4016 | p.formFactor = 'Custom' | |
| 4017 | p.Size = Vector3.new(1,1,1) | |
| 4018 | p.BrickColor = workspace.Base.BrickColor | |
| 4019 | p.CanCollide = false | |
| 4020 | p.Transparency = 0 | |
| 4021 | p.Anchored = true | |
| 4022 | p.Locked=true | |
| 4023 | p.Material = workspace.Base.Material | |
| 4024 | s = math.random(1,40)/10 | |
| 4025 | local m = Instance.new("BlockMesh",p)
| |
| 4026 | m.Scale = Vector3.new(s,s,s) | |
| 4027 | 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()) | |
| 4028 | --[[coroutine.wrap(function() | |
| 4029 | wait(2) | |
| 4030 | while Charging == true do | |
| 4031 | wait(2) | |
| 4032 | GroundWave1() | |
| 4033 | wait(2) | |
| 4034 | end | |
| 4035 | end)()]]-- | |
| 4036 | Spawn(function() | |
| 4037 | while rs:wait() do | |
| 4038 | if Charging == true then | |
| 4039 | 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))) | |
| 4040 | 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))) | |
| 4041 | 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)) | |
| 4042 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
| 4043 | 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))) | |
| 4044 | 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))) | |
| 4045 | elseif Charging == false then break | |
| 4046 | end | |
| 4047 | end | |
| 4048 | end) | |
| 4049 | Spawn(function() | |
| 4050 | while rs:wait() do | |
| 4051 | if p.Transparency >= 1 then p:Destroy() break end | |
| 4052 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
| 4053 | p.Transparency = p.Transparency+0.01 | |
| 4054 | end | |
| 4055 | end) | |
| 4056 | wait(.3) | |
| 4057 | until Charging == false | |
| 4058 | end | |
| 4059 | end | |
| 4060 | end | |
| 4061 | end) | |
| 4062 | ---------------------------------------------------- | |
| 4063 | mouse.KeyUp:connect(function(key) | |
| 4064 | if key == "r" then | |
| 4065 | if Charging == true then | |
| 4066 | Charging = false | |
| 4067 | pt:Destroy() | |
| 4068 | pt2:Destroy() | |
| 4069 | bl:Destroy() | |
| 4070 | if Debounces.CanAttack == false then | |
| 4071 | Debounces.CanAttack = true | |
| 4072 | Debounces.NoIdl = false | |
| 4073 | Debounces.on = false | |
| 4074 | end | |
| 4075 | end | |
| 4076 | end | |
| 4077 | end) | |
| 4078 | ---------------------------------------------------- | |
| 4079 | mouse.KeyDown:connect(function(key) | |
| 4080 | if key == "g" then | |
| 4081 | if Debounces.CanAttack == true then | |
| 4082 | Debounces.CanAttack = false | |
| 4083 | Debounces.NoIdl = true | |
| 4084 | Debounces.on = true | |
| 4085 | local shell = Instance.new("Part",torso)
| |
| 4086 | shell.BrickColor = TorsoColor | |
| 4087 | shell.Anchored = true | |
| 4088 | shell.CanCollide = false | |
| 4089 | shell.Locked = true | |
| 4090 | shell.TopSurface = "SmoothNoOutlines" | |
| 4091 | shell.BottomSurface = "SmoothNoOutlines" | |
| 4092 | shell.Size = Vector3.new(1,1,1) | |
| 4093 | shellm = Instance.new("SpecialMesh",shell)
| |
| 4094 | shellm.MeshType = "Sphere" | |
| 4095 | shellm.Scale = Vector3.new(1,1,1) | |
| 4096 | local shell2 = Instance.new("Part",torso)
| |
| 4097 | shell2.BrickColor = TorsoColor | |
| 4098 | shell2.Anchored = true | |
| 4099 | shell2.CanCollide = false | |
| 4100 | shell2.Locked = true | |
| 4101 | shell2.TopSurface = "SmoothNoOutlines" | |
| 4102 | shell2.BottomSurface = "SmoothNoOutlines" | |
| 4103 | shell2.Size = Vector3.new(1,1,1) | |
| 4104 | shellm2 = Instance.new("SpecialMesh",shell2)
| |
| 4105 | shellm2.MeshType = "Sphere" | |
| 4106 | shellm2.Scale = Vector3.new(1,1,1) | |
| 4107 | ||
| 4108 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 4109 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 4110 | local List = {}
| |
| 4111 | for i,v in pairs(workspace:GetChildren())do | |
| 4112 | if v:IsA("Model")then
| |
| 4113 | if v:findFirstChild("Torso")then
| |
| 4114 | if v ~= char then | |
| 4115 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 4116 | table.insert(List,v) | |
| 4117 | end | |
| 4118 | end | |
| 4119 | end | |
| 4120 | end | |
| 4121 | end | |
| 4122 | return List | |
| 4123 | end | |
| 4124 | ||
| 4125 | Shell = function() | |
| 4126 | local X = Instance.new("Part",char)
| |
| 4127 | local O = Instance.new("ObjectValue",X)
| |
| 4128 | O.Name = "creator" | |
| 4129 | X.Locked = true | |
| 4130 | X.Name = "Shell" | |
| 4131 | X.Anchored = false | |
| 4132 | X.CanCollide = false | |
| 4133 | X.Transparency = 0 | |
| 4134 | X.Reflectance = 0 | |
| 4135 | X.BottomSurface = 0 | |
| 4136 | X.TopSurface = 0 | |
| 4137 | X.Shape = 0 | |
| 4138 | local V = Instance.new("ObjectValue",X)
| |
| 4139 | V.Value = char | |
| 4140 | V.Name = "creator" | |
| 4141 | X.BrickColor = TorsoColor | |
| 4142 | X.Size = Vector3.new(1,1,1) | |
| 4143 | --X.Material = "Neon" | |
| 4144 | local Z = Instance.new("SpecialMesh",X)
| |
| 4145 | Z.MeshType = "Sphere" | |
| 4146 | Z.Scale = Vector3.new(1,1,1) | |
| 4147 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
| 4148 | local bv = Instance.new("BodyVelocity",X)
| |
| 4149 | bv.maxForce = Vector3.new(99999,99999,99999) | |
| 4150 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
| 4151 | bv.velocity = root.CFrame.lookVector*65 | |
| 4152 | Explode = X.Touched:connect(function(hit) | |
| 4153 | if hit ~= char and hit.Name ~= "Shell" and hit:IsA("Part") or hit:IsA("BasePart}") then
| |
| 4154 | local cf = X.CFrame | |
| 4155 | bv:Destroy() | |
| 4156 | X.Anchored = true | |
| 4157 | Z:Remove() | |
| 4158 | Explode:disconnect() | |
| 4159 | X.Size = Vector3.new(3,3,3) | |
| 4160 | X.Touched:connect(function(hit) end) | |
| 4161 | X.CanCollide = false | |
| 4162 | for i,v in pairs(FindNearestTorso(X.CFrame.p,40))do | |
| 4163 | if v:FindFirstChild('Humanoid') then
| |
| 4164 | v.Humanoid:TakeDamage(math.random(6,12)) | |
| 4165 | end | |
| 4166 | end | |
| 4167 | for i = 1, (40) do rs:wait() | |
| 4168 | X.Transparency = X.Transparency + (1/40) | |
| 4169 | X.Size = X.Size + Vector3.new(1,1,1) | |
| 4170 | X.CFrame = cf | |
| 4171 | end | |
| 4172 | X:Destroy() | |
| 4173 | end | |
| 4174 | end) | |
| 4175 | end | |
| 4176 | Shell() | |
| 4177 | for i = 1, 10 do | |
| 4178 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4179 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4180 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 4181 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 4182 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.7) | |
| 4183 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.7) | |
| 4184 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.7) | |
| 4185 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.7) | |
| 4186 | if Debounces.on == false then break end | |
| 4187 | rs:wait() | |
| 4188 | end | |
| 4189 | Shell() | |
| 4190 | shell.Transparency = 1 | |
| 4191 | for i = 1, 10 do | |
| 4192 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4193 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4194 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 4195 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 4196 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 4197 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 4198 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 4199 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 4200 | if Debounces.on == false then break end | |
| 4201 | rs:wait() | |
| 4202 | end | |
| 4203 | Shell() | |
| 4204 | shell.Transparency = 0 | |
| 4205 | shell2.Transparency = 1 | |
| 4206 | for i = 1, 10 do | |
| 4207 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4208 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4209 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 4210 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 4211 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 4212 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 4213 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 4214 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 4215 | if Debounces.on == false then break end | |
| 4216 | rs:wait() | |
| 4217 | end | |
| 4218 | Shell() | |
| 4219 | shell2.Transparency = 0 | |
| 4220 | shell.Transparency = 1 | |
| 4221 | for i = 1, 10 do | |
| 4222 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4223 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4224 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 4225 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 4226 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 4227 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 4228 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 4229 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 4230 | if Debounces.on == false then break end | |
| 4231 | rs:wait() | |
| 4232 | end | |
| 4233 | Shell() | |
| 4234 | shell.Transparency = 0 | |
| 4235 | shell2.Transparency = 1 | |
| 4236 | for i = 1, 10 do | |
| 4237 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4238 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4239 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 4240 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 4241 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 4242 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 4243 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 4244 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 4245 | if Debounces.on == false then break end | |
| 4246 | rs:wait() | |
| 4247 | end | |
| 4248 | Shell() | |
| 4249 | shell2.Transparency = 0 | |
| 4250 | shell.Transparency = 1 | |
| 4251 | for i = 1, 10 do | |
| 4252 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4253 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4254 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 4255 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 4256 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 4257 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 4258 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 4259 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 4260 | if Debounces.on == false then break end | |
| 4261 | rs:wait() | |
| 4262 | end | |
| 4263 | Shell() | |
| 4264 | shell.Transparency = 0 | |
| 4265 | shell2.Transparency = 1 | |
| 4266 | for i = 1, 10 do | |
| 4267 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4268 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4269 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 4270 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.5) | |
| 4271 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 4272 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 4273 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 4274 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 4275 | if Debounces.on == false then break end | |
| 4276 | rs:wait() | |
| 4277 | end | |
| 4278 | Shell() | |
| 4279 | shell2.Transparency = 0 | |
| 4280 | shell.Transparency = 1 | |
| 4281 | for i = 1, 10 do | |
| 4282 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4283 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4284 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 4285 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 4286 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 4287 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 4288 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 4289 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 4290 | if Debounces.on == false then break end | |
| 4291 | rs:wait() | |
| 4292 | end | |
| 4293 | Shell() | |
| 4294 | shell.Transparency = 0 | |
| 4295 | shell2.Transparency = 1 | |
| 4296 | for i = 1, 10 do | |
| 4297 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4298 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4299 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 4300 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 4301 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 4302 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 4303 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 4304 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 4305 | if Debounces.on == false then break end | |
| 4306 | rs:wait() | |
| 4307 | end | |
| 4308 | Shell() | |
| 4309 | shell2.Transparency = 0 | |
| 4310 | shell.Transparency = 1 | |
| 4311 | for i = 1, 10 do | |
| 4312 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4313 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4314 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 4315 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 4316 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 4317 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 4318 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 4319 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 4320 | if Debounces.on == false then break end | |
| 4321 | rs:wait() | |
| 4322 | end | |
| 4323 | Shell() | |
| 4324 | shell.Transparency = 0 | |
| 4325 | shell2.Transparency = 1 | |
| 4326 | for i = 1, 10 do | |
| 4327 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4328 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4329 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 4330 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 4331 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 4332 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 4333 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 4334 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 4335 | if Debounces.on == false then break end | |
| 4336 | rs:wait() | |
| 4337 | end | |
| 4338 | Shell() | |
| 4339 | shell2.Transparency = 0 | |
| 4340 | shell.Transparency = 1 | |
| 4341 | for i = 1, 10 do | |
| 4342 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4343 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4344 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
| 4345 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
| 4346 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
| 4347 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
| 4348 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
| 4349 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
| 4350 | if Debounces.on == false then break end | |
| 4351 | rs:wait() | |
| 4352 | end | |
| 4353 | Shell() | |
| 4354 | shell.Transparency = 0 | |
| 4355 | shell2.Transparency = 1 | |
| 4356 | for i = 1, 10 do | |
| 4357 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 4358 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 4359 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
| 4360 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
| 4361 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
| 4362 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
| 4363 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
| 4364 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
| 4365 | if Debounces.on == false then break end | |
| 4366 | rs:wait() | |
| 4367 | end | |
| 4368 | shell.Transparency = 1 | |
| 4369 | if Debounces.CanAttack == false then | |
| 4370 | Debounces.CanAttack = true | |
| 4371 | Debounces.NoIdl = false | |
| 4372 | Debounces.on = false | |
| 4373 | end | |
| 4374 | end | |
| 4375 | end | |
| 4376 | end) | |
| 4377 | ---------------------------------------------------- | |
| 4378 | Search = false | |
| 4379 | mouse.KeyDown:connect(function(key) | |
| 4380 | if key == "n" then | |
| 4381 | if Search == false then | |
| 4382 | Search = true | |
| 4383 | for i,v in pairs(game.Players:getPlayers()) do | |
| 4384 | if v.Name~=char.Name then | |
| 4385 | for j,k in pairs(v.Character:GetChildren()) do | |
| 4386 | if k:IsA("BasePart") and k.Transparency >= 1 then
| |
| 4387 | bawx=Instance.new("SelectionBox",cam)
| |
| 4388 | bawx.Color = BrickColor.new("Bright red")
| |
| 4389 | bawx.Transparency = .5 | |
| 4390 | bawx.Adornee = k | |
| 4391 | end | |
| 4392 | end | |
| 4393 | end | |
| 4394 | end | |
| 4395 | elseif Search == true then | |
| 4396 | Search = false | |
| 4397 | for i, v in pairs(cam:GetChildren()) do | |
| 4398 | if v:IsA("SelectionBox") then
| |
| 4399 | v:Destroy() | |
| 4400 | end | |
| 4401 | end | |
| 4402 | end | |
| 4403 | end | |
| 4404 | end) | |
| 4405 | ---------------------------------------------------- | |
| 4406 | Grab = false | |
| 4407 | mouse.KeyDown:connect(function(key) | |
| 4408 | if key == "z" then | |
| 4409 | Debounces.on = true | |
| 4410 | Debounces.NoIdl = true | |
| 4411 | Debounces.ks = true | |
| 4412 | if Grab == false then | |
| 4413 | gp = nil | |
| 4414 | for i = 1, 20 do | |
| 4415 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.2) | |
| 4416 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.2) | |
| 4417 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
| 4418 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
| 4419 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
| 4420 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
| 4421 | if Debounces.on == false then break end | |
| 4422 | rs:wait() | |
| 4423 | end | |
| 4424 | con1=larm.Touched:connect(function(hit) -- this is grab | |
| 4425 | ht = hit.Parent | |
| 4426 | hum1=ht:FindFirstChild('Humanoid')
| |
| 4427 | if hum1 ~= nil then | |
| 4428 | if Debounces.ks==true then | |
| 4429 | z = Instance.new("Sound",hed)
| |
| 4430 | z.SoundId = "rbxassetid://169380525" | |
| 4431 | z.Volume = 1 | |
| 4432 | z:Play() | |
| 4433 | Debounces.ks=false | |
| 4434 | end | |
| 4435 | hum1.PlatformStand=true | |
| 4436 | gp = ht | |
| 4437 | Grab = true | |
| 4438 | asd=weld5(root,ht:FindFirstChild("Torso"),CFrame.new(0,0,-2.4),CFrame.new(0,0,0))
| |
| 4439 | asd.Parent = larm | |
| 4440 | asd.Name = "asd" | |
| 4441 | asd.C0=asd.C0*CFrame.Angles(math.rad(0),math.rad(180),0) | |
| 4442 | --[[elseif hum1 == nil then | |
| 4443 | con1:disconnect() | |
| 4444 | wait() return]]-- | |
| 4445 | end | |
| 4446 | end) | |
| 4447 | for i = 1, 20 do | |
| 4448 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.2) | |
| 4449 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.2) | |
| 4450 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
| 4451 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
| 4452 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
| 4453 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
| 4454 | if Debounces.on == false then break end | |
| 4455 | rs:wait() | |
| 4456 | end | |
| 4457 | if hum1 == nil then | |
| 4458 | Debounces.on = false | |
| 4459 | Debounces.NoIdl = false | |
| 4460 | end | |
| 4461 | con1:disconnect() | |
| 4462 | elseif Grab == true then | |
| 4463 | Grab = false | |
| 4464 | Punch() | |
| 4465 | z = Instance.new("Sound",hed)
| |
| 4466 | z.SoundId = "rbxassetid://169380525" | |
| 4467 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4468 | z.Volume = 1 | |
| 4469 | z:Play() | |
| 4470 | for i = 1, 10 do | |
| 4471 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 4472 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 4473 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 4474 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 4475 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4476 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4477 | if Debounces.on == false then break end | |
| 4478 | rs:wait() | |
| 4479 | end | |
| 4480 | Punch() | |
| 4481 | z = Instance.new("Sound",hed)
| |
| 4482 | z.SoundId = "rbxassetid://169380525" | |
| 4483 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4484 | z.Volume = 1 | |
| 4485 | z:Play() | |
| 4486 | for i = 1, 10 do | |
| 4487 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 4488 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 4489 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 4490 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 4491 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4492 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4493 | if Debounces.on == false then break end | |
| 4494 | rs:wait() | |
| 4495 | end | |
| 4496 | Punch() | |
| 4497 | z = Instance.new("Sound",hed)
| |
| 4498 | z.SoundId = "rbxassetid://169380525" | |
| 4499 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4500 | z.Volume = 1 | |
| 4501 | z:Play() | |
| 4502 | for i = 1, 10 do | |
| 4503 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 4504 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 4505 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 4506 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 4507 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4508 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4509 | if Debounces.on == false then break end | |
| 4510 | rs:wait() | |
| 4511 | end | |
| 4512 | Punch() | |
| 4513 | z = Instance.new("Sound",hed)
| |
| 4514 | z.SoundId = "rbxassetid://169380525" | |
| 4515 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4516 | z.Volume = 1 | |
| 4517 | z:Play() | |
| 4518 | for i = 1, 10 do | |
| 4519 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 4520 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 4521 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 4522 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 4523 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4524 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4525 | if Debounces.on == false then break end | |
| 4526 | rs:wait() | |
| 4527 | end | |
| 4528 | Punch() | |
| 4529 | z = Instance.new("Sound",hed)
| |
| 4530 | z.SoundId = "rbxassetid://169380525" | |
| 4531 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4532 | z.Volume = 1 | |
| 4533 | z:Play() | |
| 4534 | for i = 1, 10 do | |
| 4535 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 4536 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 4537 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 4538 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 4539 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4540 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4541 | if Debounces.on == false then break end | |
| 4542 | rs:wait() | |
| 4543 | end | |
| 4544 | Punch() | |
| 4545 | z = Instance.new("Sound",hed)
| |
| 4546 | z.SoundId = "rbxassetid://169380525" | |
| 4547 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4548 | z.Volume = 1 | |
| 4549 | z:Play() | |
| 4550 | for i = 1, 10 do | |
| 4551 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 4552 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 4553 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 4554 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 4555 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4556 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4557 | if Debounces.on == false then break end | |
| 4558 | rs:wait() | |
| 4559 | end | |
| 4560 | Punch() | |
| 4561 | z = Instance.new("Sound",hed)
| |
| 4562 | z.SoundId = "rbxassetid://169380525" | |
| 4563 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4564 | z.Volume = 1 | |
| 4565 | z:Play() | |
| 4566 | for i = 1, 10 do | |
| 4567 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 4568 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 4569 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 4570 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 4571 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4572 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4573 | if Debounces.on == false then break end | |
| 4574 | rs:wait() | |
| 4575 | end | |
| 4576 | Punch() | |
| 4577 | z = Instance.new("Sound",hed)
| |
| 4578 | z.SoundId = "rbxassetid://169380525" | |
| 4579 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4580 | z.Volume = 1 | |
| 4581 | z:Play() | |
| 4582 | for i = 1, 10 do | |
| 4583 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 4584 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 4585 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 4586 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 4587 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4588 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4589 | if Debounces.on == false then break end | |
| 4590 | rs:wait() | |
| 4591 | end | |
| 4592 | Punch() | |
| 4593 | z = Instance.new("Sound",hed)
| |
| 4594 | z.SoundId = "rbxassetid://169380525" | |
| 4595 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4596 | z.Volume = 1 | |
| 4597 | z:Play() | |
| 4598 | for i = 1, 10 do | |
| 4599 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 4600 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 4601 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 4602 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 4603 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4604 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4605 | if Debounces.on == false then break end | |
| 4606 | rs:wait() | |
| 4607 | end | |
| 4608 | Punch() | |
| 4609 | z = Instance.new("Sound",hed)
| |
| 4610 | z.SoundId = "rbxassetid://169380525" | |
| 4611 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4612 | z.Volume = 1 | |
| 4613 | z:Play() | |
| 4614 | for i = 1, 10 do | |
| 4615 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 4616 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 4617 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 4618 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 4619 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4620 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4621 | if Debounces.on == false then break end | |
| 4622 | rs:wait() | |
| 4623 | end | |
| 4624 | Punch() | |
| 4625 | z = Instance.new("Sound",hed)
| |
| 4626 | z.SoundId = "rbxassetid://169380525" | |
| 4627 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4628 | z.Volume = 1 | |
| 4629 | z:Play() | |
| 4630 | for i = 1, 10 do | |
| 4631 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
| 4632 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
| 4633 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
| 4634 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
| 4635 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4636 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4637 | if Debounces.on == false then break end | |
| 4638 | rs:wait() | |
| 4639 | end | |
| 4640 | Punch() | |
| 4641 | z = Instance.new("Sound",hed)
| |
| 4642 | z.SoundId = "rbxassetid://169380525" | |
| 4643 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 4644 | z.Volume = 1 | |
| 4645 | z:Play() | |
| 4646 | for i = 1, 10 do | |
| 4647 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
| 4648 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
| 4649 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
| 4650 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
| 4651 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 4652 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 4653 | if Debounces.on == false then break end | |
| 4654 | rs:wait() | |
| 4655 | end | |
| 4656 | con1:disconnect() | |
| 4657 | Debounces.on = false | |
| 4658 | Debounces.NoIdl = false | |
| 4659 | if gp ~= nil then | |
| 4660 | gp:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 140
| |
| 4661 | for i,v in pairs(larm:GetChildren()) do | |
| 4662 | if v.Name == "asd" and v:IsA("Weld") then
| |
| 4663 | v:Remove() | |
| 4664 | end | |
| 4665 | end | |
| 4666 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
| |
| 4667 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
| 4668 | bv.P = 125000 | |
| 4669 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
| 4670 | hum1=nil | |
| 4671 | ht=nil | |
| 4672 | Debounces.on = false | |
| 4673 | Debounces.NoIdl = false | |
| 4674 | elseif ht == nil then wait() | |
| 4675 | Grab = false | |
| 4676 | Debounces.on = false | |
| 4677 | Debounces.NoIdl = false | |
| 4678 | end | |
| 4679 | end | |
| 4680 | end | |
| 4681 | end) | |
| 4682 | ---------------------------------------------------- | |
| 4683 | paly = game.Players.LocalPlayer | |
| 4684 | paly = game.Players.LocalPlayer | |
| 4685 | p = game.Players.LocalPlayer | |
| 4686 | char = paly.Character | |
| 4687 | vt = Vector3.new | |
| 4688 | rarm = char["Right Arm"] | |
| 4689 | larm = char["Left Arm"] | |
| 4690 | local maincolor = char.Torso.BrickColor | |
| 4691 | ||
| 4692 | local orb = Instance.new("Part")
| |
| 4693 | orb.Parent = char | |
| 4694 | orb.Size = Vector3.new(0.5, 0.5, 0.5) | |
| 4695 | orb.Archivable = true | |
| 4696 | orb.Transparency = 1 | |
| 4697 | orb.BrickColor = maincolor | |
| 4698 | orb.Material = "Neon" | |
| 4699 | orb.CanCollide = false | |
| 4700 | local weld1 = Instance.new("Weld")
| |
| 4701 | weld1.Parent = rarm | |
| 4702 | weld1.Part0 = rarm | |
| 4703 | weld1.Part1 = orb | |
| 4704 | weld1.C1 = CFrame.new(0, 1.125, 0) | |
| 4705 | local pt1 = NumberSequenceKeypoint.new(0,0.85,0) | |
| 4706 | local pt2 = NumberSequenceKeypoint.new(1,0,0) | |
| 4707 | local effecto = Instance.new("ParticleEmitter",orb)
| |
| 4708 | effecto.LightEmission = 1 | |
| 4709 | effecto.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
| 4710 | effecto.Color = ColorSequence.new(maincolor.Color) | |
| 4711 | effecto.Rate = 10000 | |
| 4712 | effecto.Lifetime = NumberRange.new(1) | |
| 4713 | effecto.Size = NumberSequence.new({pt1,pt2})
| |
| 4714 | effecto.Speed = NumberRange.new(0,0) | |
| 4715 | effecto.RotSpeed = NumberRange.new(100,100) | |
| 4716 | ||
| 4717 | local orbz = Instance.new("Part")
| |
| 4718 | orbz.Parent = char | |
| 4719 | orbz.Size = Vector3.new(0.5, 0.5, 0.5) | |
| 4720 | orbz.Archivable = true | |
| 4721 | orbz.Transparency = 1 | |
| 4722 | orbz.BrickColor = maincolor | |
| 4723 | orbz.Material = "Neon" | |
| 4724 | orbz.CanCollide = false | |
| 4725 | local weldz1 = Instance.new("Weld")
| |
| 4726 | weldz1.Parent = larm | |
| 4727 | weldz1.Part0 = larm | |
| 4728 | weldz1.Part1 = orbz | |
| 4729 | weldz1.C1 = CFrame.new(0, 1.125, 0) | |
| 4730 | local effecton = Instance.new("ParticleEmitter",orbz)
| |
| 4731 | effecton.LightEmission = 1 | |
| 4732 | effecton.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
| 4733 | effecton.Color = ColorSequence.new(maincolor.Color) | |
| 4734 | effecton.Rate = 10000 | |
| 4735 | effecton.Lifetime = NumberRange.new(1) | |
| 4736 | effecton.Size = NumberSequence.new({pt1,pt2})
| |
| 4737 | effecton.Speed = NumberRange.new(0,0) | |
| 4738 | effecton.RotSpeed = NumberRange.new(100,100) | |
| 4739 | ------------------------------------------- | |
| 4740 | ||
| 4741 | mouse.KeyDown:connect(function(key) | |
| 4742 | if string.byte(key) == 52 then | |
| 4743 | char.Humanoid.WalkSpeed = 60 | |
| 4744 | end | |
| 4745 | end) | |
| 4746 | mouse.KeyUp:connect(function(key) | |
| 4747 | if string.byte(key) == 52 then | |
| 4748 | char.Humanoid.WalkSpeed = 8 | |
| 4749 | end | |
| 4750 | end) | |
| 4751 | ------------------------------- | |
| 4752 | local animpose = "Idle" | |
| 4753 | local lastanimpose = "Idle" | |
| 4754 | local sine = 0 | |
| 4755 | local change = 1 | |
| 4756 | local val = 0 | |
| 4757 | local och = 0 | |
| 4758 | local ffing = false | |
| 4759 | ------------------------------- | |
| 4760 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 4761 | --[[if char.Humanoid.Jump == true then | |
| 4762 | jump = true | |
| 4763 | else | |
| 4764 | jump = false | |
| 4765 | end]] | |
| 4766 | char.Humanoid.FreeFalling:connect(function(f) | |
| 4767 | if f then | |
| 4768 | ffing = true | |
| 4769 | else | |
| 4770 | ffing = false | |
| 4771 | end | |
| 4772 | end) | |
| 4773 | sine = sine + change | |
| 4774 | if jumpn == true then | |
| 4775 | animpose = "Jumping" | |
| 4776 | elseif ffing == true then | |
| 4777 | animpose = "Freefalling" | |
| 4778 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 4779 | animpose = "Idle" | |
| 4780 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 4781 | animpose = "Walking" | |
| 4782 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 4783 | animpose = "Running" | |
| 4784 | end | |
| 4785 | if animpose ~= lastanimpose then | |
| 4786 | sine = 0 | |
| 4787 | if Debounces.NoIdl == false then | |
| 4788 | if animpose == "Idle" then | |
| 4789 | for i = 1, 2 do | |
| 4790 | 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) | |
| 4791 | 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) | |
| 4792 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
| 4793 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
| 4794 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.625, -0.35) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
| 4795 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
| 4796 | end | |
| 4797 | elseif animpose == "Walking" then | |
| 4798 | for i = 1, 2 do | |
| 4799 | 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) | |
| 4800 | 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) | |
| 4801 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
| 4802 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
| 4803 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
| 4804 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
| 4805 | end | |
| 4806 | elseif animpose == "Running" then | |
| 4807 | for i = 1, 2 do | |
| 4808 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles (math.rad(44), math.rad (0), math.rad(0)), 0.15) | |
| 4809 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.1*math.cos(sine/14), -1) * CFrame.Angles(math.rad(- 80), math.rad(0), 0), 0.15) | |
| 4810 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad (0), math.rad(50), math.rad(-40)), 0.15) | |
| 4811 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(40)), 0.15) | |
| 4812 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(- 10)), .15) | |
| 4813 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(10)), .15) | |
| 4814 | wait() | |
| 4815 | end | |
| 4816 | end | |
| 4817 | else | |
| 4818 | end | |
| 4819 | end | |
| 4820 | lastanimpose = animpose | |
| 4821 | if Debounces.NoIdl == false then | |
| 4822 | if animpose == "Idle" then | |
| 4823 | change = 0.5 | |
| 4824 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3) | |
| 4825 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3) | |
| 4826 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2) | |
| 4827 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2) | |
| 4828 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2) | |
| 4829 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2) | |
| 4830 | elseif animpose == "Walking" then | |
| 4831 | change = 1 | |
| 4832 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-32),math.rad(-28),math.rad(10+2*math.cos(sine/14))), 0.2) | |
| 4833 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(50),math.rad(-45),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
| 4834 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
| 4835 | 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) | |
| 4836 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.215, -0.35) * CFrame.Angles(-0.35, 0, 0), 0.4) | |
| 4837 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(-0.475,0,0), 0.4) | |
| 4838 | elseif animpose == "Running" then | |
| 4839 | change = 1 | |
| 4840 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles (math.rad(44), math.rad (0), math.rad(0)), 0.15) | |
| 4841 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.1*math.cos(sine/14), -1) * CFrame.Angles(math.rad(- 80), math.rad(0), 0), 0.15) | |
| 4842 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad (0), math.rad(50), math.rad(-40)), 0.15) | |
| 4843 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(40)), 0.15) | |
| 4844 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(- 10)), .15) | |
| 4845 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(10)), .15) | |
| 4846 | end | |
| 4847 | end | |
| 4848 | end) | |
| 4849 | ||
| 4850 | hum.MaxHealth = math.huge | |
| 4851 | wait(3) | |
| 4852 | hum.Health = hum.MaxHealth | |
| 4853 | ||
| 4854 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module | |
| 4855 | --[[Part0 = Vector3 (Start pos) | |
| 4856 | Part1 = Vector3 (End pos) | |
| 4857 | Times = number (Amount of lightning parts) | |
| 4858 | Offset = number (Offset) | |
| 4859 | Color = color (brickcolor value) | |
| 4860 | Thickness = number (thickness) | |
| 4861 | Trans = number (transparency) | |
| 4862 | ]]-- | |
| 4863 | local magz = (Part0 - Part1).magnitude | |
| 4864 | local curpos = Part0 | |
| 4865 | local trz = {-Offset,Offset}
| |
| 4866 | for i=1,Times do | |
| 4867 | local li = Instance.new("Part", torso)
| |
| 4868 | li.Name = "Lightning" | |
| 4869 | li.TopSurface =0 | |
| 4870 | li.Material = "Neon" | |
| 4871 | li.BottomSurface = 0 | |
| 4872 | li.Anchored = true | |
| 4873 | li.Locked = true | |
| 4874 | li.Transparency = Trans or 0.4 | |
| 4875 | li.BrickColor = TorsoColor | |
| 4876 | li.formFactor = "Custom" | |
| 4877 | li.CanCollide = false | |
| 4878 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
| 4879 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
| 4880 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
| 4881 | if Times == i then | |
| 4882 | local magz2 = (curpos - Part1).magnitude | |
| 4883 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
| 4884 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
| 4885 | else | |
| 4886 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
| 4887 | end | |
| 4888 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
| 4889 | game.Debris:AddItem(li,.1) | |
| 4890 | end | |
| 4891 | end | |
| 4892 | ||
| 4893 | BodyParts = {} -- Parts to emit lightning effects from
| |
| 4894 | for _, v in pairs(char:GetChildren()) do | |
| 4895 | if v:IsA("Part") then
| |
| 4896 | table.insert(BodyParts, v) | |
| 4897 | end | |
| 4898 | end | |
| 4899 | ||
| 4900 | Bounding = {} -- Calculate the bounding boxes
| |
| 4901 | for _, v in pairs(BodyParts) do | |
| 4902 | local temp = {X=nil, Y=nil, Z=nil}
| |
| 4903 | temp.X = v.Size.X/2 * 10 | |
| 4904 | temp.Y = v.Size.Y/2 * 10 | |
| 4905 | temp.Z = v.Size.Z/2 * 10 | |
| 4906 | Bounding[v.Name] = temp | |
| 4907 | --table.insert(Bounding, v.Name, temp) | |
| 4908 | end | |
| 4909 | ||
| 4910 | while wait(math.random(1,10)/10) do -- Emit the Lightning effects randomly | |
| 4911 | local Body1 = BodyParts[math.random(#BodyParts)] | |
| 4912 | local Body2 = BodyParts[math.random(#BodyParts)] | |
| 4913 | local Pos1 = Vector3.new( | |
| 4914 | math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10, | |
| 4915 | math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10, | |
| 4916 | math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10 | |
| 4917 | ) | |
| 4918 | local Pos2 = Vector3.new( | |
| 4919 | math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10, | |
| 4920 | math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10, | |
| 4921 | math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10 | |
| 4922 | ) | |
| 4923 | local SPos1 = Body1.Position + Pos1 | |
| 4924 | local SPos2 = Body2.Position + Pos2 | |
| 4925 | Lightning(SPos1, SPos2, 4, 3, "Bright blue", .3, .56) | |
| 4926 | end | |
| 4927 | och=och+1 | |
| 4928 | for _,v in pairs(orbt) do | |
| 4929 | pcall(function() | |
| 4930 | v.Mesh.Scale=Vector3.new(cns+(0.2*math.cos(och/12)),cns+(0.2*math.cos(och/10)),cns+(0.2*math.cos(och/8))) | |
| 4931 | end) | |
| 4932 | end | |
| 4933 | for _,v in pairs(stlt) do | |
| 4934 | pcall(function() | |
| 4935 | v.CFrame=larm.CFrame*CFrame.new(0,-3.5-(cns/2),-0.1) | |
| 4936 | end) | |
| 4937 | end | |
| 4938 | for _,v in pairs(chot) do | |
| 4939 | pcall(function() | |
| 4940 | v.CFrame=Lerp(v.CFrame,cnOrb.CFrame,0.1) | |
| 4941 | v.Mesh.Scale=Vector3.new(Tween(v.Mesh.Scale.X,0,0.1),Tween(v.Mesh.Scale.Y,0,0.1),Tween(v.Mesh.Scale.Z,0,0.1)) | |
| 4942 | end) | |
| 4943 | end | |
| 4944 | for _,v in pairs(cfxt) do | |
| 4945 | pcall(function() | |
| 4946 | local vs=v.Mesh.Scale | |
| 4947 | v.Mesh.Scale=Vector3.new(vs.x+0.5,vs.y+0.1,vs.z+0.5) | |
| 4948 | v.Transparency=v.Transparency+0.05 | |
| 4949 | end) | |
| 4950 | end | |
| 4951 | for _,v in pairs(pfxt) do | |
| 4952 | pcall(function() | |
| 4953 | local vs=v.Mesh.Scale | |
| 4954 | v.Mesh.Scale=Vector3.new(vs.x+2,vs.y+0.5,vs.z+2) | |
| 4955 | v.Transparency=v.Transparency+0.025 | |
| 4956 | end) | |
| 4957 | end |