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 | - | if p.Name ~= "Dark_Eccentric" then |
| 2 | + | local Player,game,owner = owner,game |
| 3 | local RealPlayer = Player | |
| 4 | do | |
| 5 | print("FE Compatibility code by Mokiros")
| |
| 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()}
| |
| 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 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local Mouse = Player:GetMouse() | |
| 66 | local UIS = game:GetService("UserInputService")
| |
| 67 | local input = function(io,a) | |
| 68 | if a then return end | |
| 69 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 71 | end | |
| 72 | UIS.InputBegan:Connect(input) | |
| 73 | UIS.InputEnded:Connect(input) | |
| 74 | ||
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | ||
| 85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 86 | --Real game object | |
| 87 | local _rg = game | |
| 88 | ||
| 89 | --Metatable for fake service | |
| 90 | local fsmt = {
| |
| 91 | __index = function(self,k) | |
| 92 | local s = rawget(self,"_RealService") | |
| 93 | if s then return s[k] end | |
| 94 | end, | |
| 95 | __newindex = function(self,k,v) | |
| 96 | local s = rawget(self,"_RealService") | |
| 97 | if s then s[k]=v end | |
| 98 | end, | |
| 99 | __call = function(self,...) | |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | if s then return s(...) 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 self[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 | } | |
| 120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 121 | g.service = g.GetService | |
| 122 | ||
| 123 | setmetatable(g,{
| |
| 124 | __index=function(self,s) | |
| 125 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 126 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 127 | end, | |
| 128 | __newindex = fsmt.__newindex, | |
| 129 | __call = fsmt.__call | |
| 130 | }) | |
| 131 | --Changing owner to fake player object to support owner:GetMouse() | |
| 132 | game,owner = g,g.Players.LocalPlayer | |
| 133 | end | |
| 134 | ||
| 135 | p = game.Players.LocalPlayer | |
| 136 | if p.Name ~= "ThatProGamerKilledU" then | |
| 137 | print'Owner Access!' | |
| 138 | end | |
| 139 | if p.Name == "Dark_Eccentric" then | |
| 140 | char = p.Character | |
| 141 | torso = char.Torso | |
| 142 | neck = char.Torso.Neck | |
| 143 | ||
| 144 | Player=game:GetService("Players").LocalPlayer
| |
| 145 | Character=Player.Character | |
| 146 | PlayerGui=Player.PlayerGui | |
| 147 | Backpack=Player.Backpack | |
| 148 | Torso=Character.Torso | |
| 149 | Head=Character.Head | |
| 150 | Humanoid=Character.Humanoid | |
| 151 | LeftArm=Character["Left Arm"] | |
| 152 | LeftLeg=Character["Left Leg"] | |
| 153 | RightArm=Character["Right Arm"] | |
| 154 | RightLeg=Character["Right Leg"] | |
| 155 | cam=game.Workspace.CurrentCamera | |
| 156 | LS=Torso["Left Shoulder"] | |
| 157 | LH=Torso["Left Hip"] | |
| 158 | RS=Torso["Right Shoulder"] | |
| 159 | RH=Torso["Right Hip"] | |
| 160 | Face = Head.face | |
| 161 | Neck=Torso.Neck | |
| 162 | it=Instance.new | |
| 163 | attacktype=1 | |
| 164 | vt=Vector3.new | |
| 165 | cf=CFrame.new | |
| 166 | euler=CFrame.fromEulerAnglesXYZ | |
| 167 | angles=CFrame.Angles | |
| 168 | cloaked=false | |
| 169 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 170 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 171 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 172 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 173 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 174 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 175 | RootPart=Character.HumanoidRootPart | |
| 176 | RootJoint=RootPart.RootJoint | |
| 177 | RootCF=euler(-1.57,0,3.14) | |
| 178 | attack = false | |
| 179 | bounce=false | |
| 180 | cooldown=false | |
| 181 | deeznuts=false | |
| 182 | attackdebounce = false | |
| 183 | deb=false | |
| 184 | equipped=true | |
| 185 | hand=false | |
| 186 | MMouse=nil | |
| 187 | combo=0 | |
| 188 | mana=0 | |
| 189 | trispeed=.2 | |
| 190 | attackmode='none' | |
| 191 | local idle=0 | |
| 192 | local Anim="Idle" | |
| 193 | local Effects={}
| |
| 194 | local gun=false | |
| 195 | local shoot=false | |
| 196 | player=nil | |
| 197 | mana=0 | |
| 198 | cam = workspace.CurrentCamera | |
| 199 | ZTarget = nil | |
| 200 | RocketTarget = nil | |
| 201 | local m = Instance.new("Model",Character)
| |
| 202 | m.Name = "WeaponModel" | |
| 203 | ||
| 204 | mouse=Player:GetMouse() | |
| 205 | --save shoulders | |
| 206 | RSH, LSH=nil, nil | |
| 207 | --welds | |
| 208 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 209 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 210 | LH=Torso["Left Hip"] | |
| 211 | RH=Torso["Right Hip"] | |
| 212 | TorsoColor=Torso.BrickColor | |
| 213 | function NoOutline(Part) | |
| 214 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 215 | end | |
| 216 | player=Player | |
| 217 | ch=Character | |
| 218 | RSH=ch.Torso["Right Shoulder"] | |
| 219 | LSH=ch.Torso["Left Shoulder"] | |
| 220 | -- | |
| 221 | RSH.Parent=nil | |
| 222 | LSH.Parent=nil | |
| 223 | -- | |
| 224 | RW.Name="Right Shoulder" | |
| 225 | RW.Part0=ch.Torso | |
| 226 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 227 | RW.C1=cf(0, 0.5, 0) | |
| 228 | RW.Part1=ch["Right Arm"] | |
| 229 | RW.Parent=ch.Torso | |
| 230 | -- | |
| 231 | LW.Name="Left Shoulder" | |
| 232 | LW.Part0=ch.Torso | |
| 233 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 234 | LW.C1=cf(0, 0.5, 0) | |
| 235 | LW.Part1=ch["Left Arm"] | |
| 236 | LW.Parent=ch.Torso | |
| 237 | ||
| 238 | function swait(num) | |
| 239 | if num==0 or num==nil then | |
| 240 | game:service'RunService'.Heartbeat:wait(0) | |
| 241 | else | |
| 242 | for i=0,num do | |
| 243 | game:service'RunService'.Heartbeat:wait(0) | |
| 244 | end | |
| 245 | end | |
| 246 | end | |
| 247 | ||
| 248 | ||
| 249 | local Player = game.Players.localPlayer | |
| 250 | local Character = Player.Character | |
| 251 | local red = 255 | |
| 252 | local green = 255 | |
| 253 | local blue = 255 | |
| 254 | local Humanoid = Character.Humanoid | |
| 255 | local mouse = Player:GetMouse() | |
| 256 | local m = Instance.new("Model", Character)
| |
| 257 | m.Name = "WeaponModel" | |
| 258 | local LeftArm = Character["Left Arm"] | |
| 259 | local RightArm = Character["Right Arm"] | |
| 260 | local LeftLeg = Character["Left Leg"] | |
| 261 | local RightLeg = Character["Right Leg"] | |
| 262 | local Head = Character.Head | |
| 263 | local Torso = Character.Torso | |
| 264 | local cam = game.Workspace.CurrentCamera | |
| 265 | local RootPart = Character.HumanoidRootPart | |
| 266 | local RootJoint = RootPart.RootJoint | |
| 267 | local equipped = false | |
| 268 | local attack = false | |
| 269 | local Anim = "Idle" | |
| 270 | local idle = 0 | |
| 271 | local attacktype = 1 | |
| 272 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 273 | local velocity = RootPart.Velocity.y | |
| 274 | local sine = 0 | |
| 275 | local change = 1 | |
| 276 | local grabbed = false | |
| 277 | local cn = CFrame.new | |
| 278 | local mr = math.rad | |
| 279 | local angles = CFrame.Angles | |
| 280 | local ud = UDim2.new | |
| 281 | local c3 = Color3.new | |
| 282 | local lim = 0 | |
| 283 | local st = 0 | |
| 284 | local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 285 | local attacktype = 1 | |
| 286 | local ZTarget, RocketTarget = nil, nil | |
| 287 | local euler = CFrame.fromEulerAnglesXYZ | |
| 288 | function clerp(a,b,t) | |
| 289 | local qa = {QuaternionFromCFrame(a)}
| |
| 290 | local qb = {QuaternionFromCFrame(b)}
| |
| 291 | local ax, ay, az = a.x, a.y, a.z | |
| 292 | local bx, by, bz = b.x, b.y, b.z | |
| 293 | local _t = 1-t | |
| 294 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 295 | end | |
| 296 | ||
| 297 | function QuaternionFromCFrame(cf) | |
| 298 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 299 | local trace = m00 + m11 + m22 | |
| 300 | if trace > 0 then | |
| 301 | local s = math.sqrt(1 + trace) | |
| 302 | local recip = 0.5/s | |
| 303 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 304 | else | |
| 305 | local i = 0 | |
| 306 | if m11 > m00 then | |
| 307 | i = 1 | |
| 308 | end | |
| 309 | if m22 > (i == 0 and m00 or m11) then | |
| 310 | i = 2 | |
| 311 | end | |
| 312 | if i == 0 then | |
| 313 | local s = math.sqrt(m00-m11-m22+1) | |
| 314 | local recip = 0.5/s | |
| 315 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 316 | elseif i == 1 then | |
| 317 | local s = math.sqrt(m11-m22-m00+1) | |
| 318 | local recip = 0.5/s | |
| 319 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 320 | elseif i == 2 then | |
| 321 | local s = math.sqrt(m22-m00-m11+1) | |
| 322 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 323 | end | |
| 324 | end | |
| 325 | end | |
| 326 | ||
| 327 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 328 | local xs, ys, zs = x + x, y + y, z + z | |
| 329 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 330 | local xx = x*xs | |
| 331 | local xy = x*ys | |
| 332 | local xz = x*zs | |
| 333 | local yy = y*ys | |
| 334 | local yz = y*zs | |
| 335 | local zz = z*zs | |
| 336 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
| 337 | end | |
| 338 | ||
| 339 | function QuaternionSlerp(a, b, t) | |
| 340 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 341 | local startInterp, finishInterp; | |
| 342 | if cosTheta >= 0.0001 then | |
| 343 | if (1 - cosTheta) > 0.0001 then | |
| 344 | local theta = math.acos(cosTheta) | |
| 345 | local invSinTheta = 1/math.sin(theta) | |
| 346 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 347 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 348 | else | |
| 349 | startInterp = 1-t | |
| 350 | finishInterp = t | |
| 351 | end | |
| 352 | else | |
| 353 | if (1+cosTheta) > 0.0001 then | |
| 354 | local theta = math.acos(-cosTheta) | |
| 355 | local invSinTheta = 1/math.sin(theta) | |
| 356 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 357 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 358 | else | |
| 359 | startInterp = t-1 | |
| 360 | finishInterp = t | |
| 361 | end | |
| 362 | end | |
| 363 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
| 364 | end | |
| 365 | rayCast = function(Position, Direction, Range, Ignore) | |
| 366 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 367 | end | |
| 368 | local v = game.Players.localPlayer | |
| 369 | local torso = v.Character.Torso | |
| 370 | ||
| 371 | plr = game.Players.LocalPlayer | |
| 372 | char = game.Players.LocalPlayer.Character | |
| 373 | hum = game.Players.LocalPlayer.Character.Humanoid | |
| 374 | t = game.Players.LocalPlayer.Character.Torso | |
| 375 | h = game.Players.LocalPlayer.Character.Head | |
| 376 | ra = game.Players.LocalPlayer.Character["Right Arm"] | |
| 377 | la = game.Players.LocalPlayer.Character["Left Arm"] | |
| 378 | rl = game.Players.LocalPlayer.Character["Right Leg"] | |
| 379 | ll = game.Players.LocalPlayer.Character["Left Leg"] | |
| 380 | tors = Character.Torso | |
| 381 | lleg = Character["Left Leg"] | |
| 382 | root = Character.HumanoidRootPart | |
| 383 | hed = Character.Head | |
| 384 | rleg = Character["Right Leg"] | |
| 385 | rarm = Character["Right Arm"] | |
| 386 | larm = Character["Left Arm"] | |
| 387 | bsize1 = NumberSequenceKeypoint.new(3,3,3) | |
| 388 | bsize2 = NumberSequenceKeypoint.new(10,10,10) | |
| 389 | local Effects = {}
| |
| 390 | attack = false | |
| 391 | local attacking = false | |
| 392 | vt = Vector3.new | |
| 393 | bc = BrickColor.new | |
| 394 | br = BrickColor.random | |
| 395 | it = Instance.new | |
| 396 | cf = CFrame.new | |
| 397 | euler = CFrame.fromEulerAnglesXYZ | |
| 398 | angles = CFrame.Angles | |
| 399 | matr = math.random | |
| 400 | local colororg = BrickColor.new("Dark indigo") -- set color u like
| |
| 401 | local meshtype = "Sphere" -- only for specialmesh | |
| 402 | mouse = plr:GetMouse() | |
| 403 | ||
| 404 | ||
| 405 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 406 | if hit.Parent==nil then | |
| 407 | return | |
| 408 | end | |
| 409 | h=hit.Parent:FindFirstChild("Humanoid")
| |
| 410 | for _,v in pairs(hit.Parent:children()) do | |
| 411 | if v:IsA("Humanoid") then
| |
| 412 | h=v | |
| 413 | end | |
| 414 | end | |
| 415 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 416 | h=hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 417 | end | |
| 418 | if hit.Parent.className=="Hat" then | |
| 419 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 420 | end | |
| 421 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 422 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 423 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 424 | return | |
| 425 | end]] | |
| 426 | -- hs(hit,1.2) | |
| 427 | c=Instance.new("ObjectValue")
| |
| 428 | c.Name="creator" | |
| 429 | c.Value=game:service("Players").LocalPlayer
| |
| 430 | c.Parent=h | |
| 431 | game:GetService("Debris"):AddItem(c,.5)
| |
| 432 | Damage=math.random(minim,maxim) | |
| 433 | -- h:TakeDamage(Damage) | |
| 434 | blocked=false | |
| 435 | block=hit.Parent:findFirstChild("Block")
| |
| 436 | if block~=nil then | |
| 437 | print(block.className) | |
| 438 | if block.className=="NumberValue" then | |
| 439 | if block.Value>0 then | |
| 440 | blocked=true | |
| 441 | if decreaseblock==nil then | |
| 442 | block.Value=block.Value-1 | |
| 443 | end | |
| 444 | end | |
| 445 | end | |
| 446 | if block.className=="IntValue" then | |
| 447 | if block.Value>0 then | |
| 448 | blocked=true | |
| 449 | if decreaseblock~=nil then | |
| 450 | block.Value=block.Value-1 | |
| 451 | end | |
| 452 | end | |
| 453 | end | |
| 454 | end | |
| 455 | if blocked==false then | |
| 456 | -- h:TakeDamage(Damage) | |
| 457 | h.Health=h.Health-Damage | |
| 458 | showDamage(hit.Parent,Damage,3,TorsoColor) | |
| 459 | else | |
| 460 | h.Health=h.Health-(Damage/2) | |
| 461 | showDamage(hit.Parent,Damage/2,3,BrickColor.new("Bright blue"))
| |
| 462 | end | |
| 463 | if Type=="Knockdown" then | |
| 464 | hum=hit.Parent.Humanoid | |
| 465 | hum.PlatformStand=true | |
| 466 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 467 | swait(1) | |
| 468 | HHumanoid.PlatformStand=false | |
| 469 | end),hum) | |
| 470 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 471 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 472 | local bodvol=Instance.new("BodyVelocity")
| |
| 473 | bodvol.velocity=angle*knockback | |
| 474 | bodvol.P=5000 | |
| 475 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 476 | bodvol.Parent=hit | |
| 477 | rl=Instance.new("BodyAngularVelocity")
| |
| 478 | rl.P=3000 | |
| 479 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 480 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 481 | rl.Parent=hit | |
| 482 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 483 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 484 | elseif Type=="Normal" then | |
| 485 | vp=Instance.new("BodyVelocity")
| |
| 486 | vp.P=500 | |
| 487 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 488 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 489 | if KnockbackType==1 then | |
| 490 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 491 | elseif KnockbackType==2 then | |
| 492 | vp.velocity=Property.CFrame.lookVector*knockback | |
| 493 | end | |
| 494 | if knockback>0 then | |
| 495 | vp.Parent=hit.Parent.Torso | |
| 496 | end | |
| 497 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 498 | elseif Type=="Up" then | |
| 499 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 500 | bodyVelocity.velocity=vt(0,10,0) | |
| 501 | bodyVelocity.P=1000 | |
| 502 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
| 503 | bodyVelocity.Parent=hit | |
| 504 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 505 | rl=Instance.new("BodyAngularVelocity")
| |
| 506 | rl.P=3000 | |
| 507 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 508 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
| 509 | rl.Parent=hit | |
| 510 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 511 | elseif Type=="Snare" then | |
| 512 | bp=Instance.new("BodyPosition")
| |
| 513 | bp.P=2000 | |
| 514 | bp.D=100 | |
| 515 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 516 | bp.position=hit.Parent.Torso.Position | |
| 517 | bp.Parent=hit.Parent.Torso | |
| 518 | game:GetService("Debris"):AddItem(bp,1)
| |
| 519 | elseif Type=="Target" then | |
| 520 | if Targetting==false then | |
| 521 | ZTarget=hit.Parent.Torso | |
| 522 | coroutine.resume(coroutine.create(function(Part) | |
| 523 | swait(5) | |
| 524 | end),ZTarget) | |
| 525 | TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 526 | targetgui=Instance.new("BillboardGui")
| |
| 527 | targetgui.Parent=ZTarget | |
| 528 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 529 | targ=Instance.new("ImageLabel")
| |
| 530 | targ.Parent=targetgui | |
| 531 | targ.BackgroundTransparency=1 | |
| 532 | targ.Image="rbxassetid://4834067" | |
| 533 | targ.Size=UDim2.new(1,0,1,0) | |
| 534 | cam.CameraType="Scriptable" | |
| 535 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 536 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 537 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 538 | Targetting=true | |
| 539 | RocketTarget=ZTarget | |
| 540 | for i=1,Property do | |
| 541 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 542 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 543 | swait() | |
| 544 | end | |
| 545 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 546 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 547 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 548 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 549 | end | |
| 550 | Targetting=false | |
| 551 | RocketTarget=nil | |
| 552 | targetgui.Parent=nil | |
| 553 | cam.CameraType="Custom" | |
| 554 | end | |
| 555 | end | |
| 556 | debounce=Instance.new("BoolValue")
| |
| 557 | debounce.Name="DebounceHit" | |
| 558 | debounce.Parent=hit.Parent | |
| 559 | debounce.Value=true | |
| 560 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 561 | c=Instance.new("ObjectValue")
| |
| 562 | c.Name="creator" | |
| 563 | c.Value=Player | |
| 564 | c.Parent=h | |
| 565 | game:GetService("Debris"):AddItem(c,.5)
| |
| 566 | CRIT=false | |
| 567 | hitDeb=true | |
| 568 | AttackPos=6 | |
| 569 | end | |
| 570 | end | |
| 571 | ||
| 572 | showDamage=function(Char,Dealt,du,Color) | |
| 573 | m=Instance.new("Model")
| |
| 574 | m.Name="" | |
| 575 | h=Instance.new("Humanoid")
| |
| 576 | h.Health=0 | |
| 577 | h.MaxHealth=0 | |
| 578 | h.Parent=m | |
| 579 | c=Instance.new("Part")
| |
| 580 | c.Transparency=0 | |
| 581 | c.Material = "Neon" | |
| 582 | c.BrickColor=bc("Bright red")
| |
| 583 | c.Name="Head" | |
| 584 | c.TopSurface=0 | |
| 585 | c.BottomSurface=0 | |
| 586 | CV="Hot pink" | |
| 587 | ||
| 588 | local txt = Instance.new("BillboardGui", c)
| |
| 589 | txt.Adornee = c | |
| 590 | txt.Name = "_status" | |
| 591 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 592 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 593 | local text = Instance.new("TextLabel", txt)
| |
| 594 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 595 | text.FontSize = "Size24" | |
| 596 | text.TextScaled = true | |
| 597 | text.TextTransparency = 0 | |
| 598 | text.BackgroundTransparency = 1 | |
| 599 | text.TextTransparency = 0 | |
| 600 | text.TextStrokeTransparency = 0 | |
| 601 | if Dealt < 12 then | |
| 602 | text.Font = "Highway" | |
| 603 | elseif Dealt < 20 then | |
| 604 | text.Font = "SourceSansBold" | |
| 605 | elseif Dealt >= 20 then | |
| 606 | text.Font = "Fantasy" | |
| 607 | end | |
| 608 | text.TextStrokeColor3 = BrickColor.new("Really black").Color
| |
| 609 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
| |
| 610 | v=Instance.new("Part")
| |
| 611 | v.Name = "ColorBrick" | |
| 612 | v.Parent=c | |
| 613 | v.FormFactor="Symmetric" | |
| 614 | v.Anchored=true | |
| 615 | v.CanCollide=false | |
| 616 | v.BottomSurface="Smooth" | |
| 617 | v.TopSurface="Smooth" | |
| 618 | v.Size=Vector3.new(10,5,3) | |
| 619 | v.Transparency=1 | |
| 620 | v.CFrame=c.CFrame | |
| 621 | v.BrickColor=BrickColor.new(CV) | |
| 622 | v.Transparency=1 | |
| 623 | if Dealt < 12 then | |
| 624 | text.TextColor3 = BrickColor.new("White").Color
| |
| 625 | elseif Dealt < 20 then | |
| 626 | text.TextColor3 = BrickColor.new("Bright yellow").Color
| |
| 627 | elseif Dealt >= 20 then | |
| 628 | text.TextColor3 = BrickColor.new("Really red").Color
| |
| 629 | end | |
| 630 | v.Shape="Block" | |
| 631 | text.Text = tostring(Dealt).. "!" | |
| 632 | local dam = Instance.new("Sound",c)
| |
| 633 | local rndm=math.random(1,#hitsounds) | |
| 634 | local r=rndm | |
| 635 | dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r] | |
| 636 | dam.Volume = 1.25 | |
| 637 | dam.Pitch = 1 | |
| 638 | dam:Play() | |
| 639 | c.formFactor="Plate" | |
| 640 | c.Transparency = 0.99 | |
| 641 | c.Size=Vector3.new(1,.4,1) | |
| 642 | ms=Instance.new("CylinderMesh")
| |
| 643 | ms.Scale=Vector3.new(.8,.8,.8) | |
| 644 | if CRIT==true then | |
| 645 | ms.Scale=Vector3.new(1,1.25,1) | |
| 646 | end | |
| 647 | ms.Parent=c | |
| 648 | c.Reflectance=0 | |
| 649 | Instance.new("BodyGyro").Parent=c
| |
| 650 | c.Parent=m | |
| 651 | if Char:findFirstChild("Head")~=nil then
| |
| 652 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 653 | elseif Char.Parent:findFirstChild("Head")~=nil then
| |
| 654 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 655 | end | |
| 656 | f=Instance.new("BodyPosition")
| |
| 657 | f.P=2000 | |
| 658 | f.D=100 | |
| 659 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 660 | f.position=c.Position+Vector3.new(0,3,0) | |
| 661 | f.Parent=c | |
| 662 | game:GetService("Debris"):AddItem(m,.5+du)
| |
| 663 | c.CanCollide=false | |
| 664 | m.Parent=workspace | |
| 665 | c.CanCollide=false | |
| 666 | wait(1) | |
| 667 | for l = 0, 9 do | |
| 668 | text.TextTransparency = text.TextTransparency + 0.1 | |
| 669 | text.TextStrokeTransparency = text.TextStrokeTransparency + 0.1 | |
| 670 | wait() | |
| 671 | end | |
| 672 | end | |
| 673 | ||
| 674 | ---------------- Weapon model | |
| 675 | ||
| 676 | local handle = Instance.new("Part")
| |
| 677 | handle.Parent = Character | |
| 678 | handle.Size = Vector3.new(0.225, 0.225, 0.225) | |
| 679 | handle.Archivable = true | |
| 680 | handle.Transparency = 0 | |
| 681 | handle.BrickColor = BrickColor.new("Really red")
| |
| 682 | handle.Material = "Neon" | |
| 683 | local handlmesh = Instance.new("BlockMesh",handle)
| |
| 684 | handlmesh.Scale = Vector3.new(0.75,0.75,32.5) | |
| 685 | local weld1 = Instance.new("Weld")
| |
| 686 | weld1.Parent = handle | |
| 687 | weld1.Part0 = rarm | |
| 688 | weld1.Part1 = handle | |
| 689 | weld1.C1 = CFrame.new(0, 1, 0.25*1.5)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)) | |
| 690 | local handle2 = Instance.new("Part")
| |
| 691 | handle2.Parent = Character | |
| 692 | handle2.Size = Vector3.new(0.3, 0.3, 0.75) | |
| 693 | handle2.Archivable = true | |
| 694 | handle2.Transparency = 0 | |
| 695 | handle2.BrickColor = BrickColor.new("Really red")
| |
| 696 | handle2.Material = "Neon" | |
| 697 | local weld12 = Instance.new("Weld")
| |
| 698 | weld12.Parent = handle2 | |
| 699 | weld12.Part0 = rarm | |
| 700 | weld12.Part1 = handle2 | |
| 701 | weld12.C1 = CFrame.new(0, 1, -2.5*1.45)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)) | |
| 702 | local handle3 = Instance.new("Part")
| |
| 703 | handle3.Parent = Character | |
| 704 | handle3.Size = Vector3.new(0.275, 0.275, 0.75) | |
| 705 | handle3.Archivable = true | |
| 706 | handle3.Transparency = 0 | |
| 707 | handle3.BrickColor = BrickColor.new("Really red")
| |
| 708 | handle3.Material = "Neon" | |
| 709 | local weld13 = Instance.new("Weld")
| |
| 710 | weld13.Parent = handle3 | |
| 711 | weld13.Part0 = rarm | |
| 712 | weld13.Part1 = handle3 | |
| 713 | weld13.C1 = CFrame.new(0, 1, 2.5*1.5)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)) | |
| 714 | local blade = Instance.new("Part")
| |
| 715 | blade.Parent = Character | |
| 716 | blade.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 717 | blade.Archivable = true | |
| 718 | blade.Transparency = 0 | |
| 719 | blade.CanCollide = false | |
| 720 | blade.BrickColor = BrickColor.new("Really red")
| |
| 721 | blade.Material = "Neon" | |
| 722 | local msh = Instance.new("SpecialMesh",blade)
| |
| 723 | msh.Scale = vt(0.25,1.25*5,3*5) | |
| 724 | msh.MeshType = "Wedge" | |
| 725 | local weld1a = Instance.new("Weld")
| |
| 726 | weld1a.Parent = blade | |
| 727 | weld1a.Part0 = rarm | |
| 728 | weld1a.Part1 = blade | |
| 729 | weld1a.C1 = CFrame.new(0, -3.05, 2.65)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0)) | |
| 730 | local bladeefo = Instance.new("ParticleEmitter",blade)
| |
| 731 | bladeefo.Texture = "http://www.roblox.com/asset/?id=296874871" | |
| 732 | bladeefo.LightEmission = 1 | |
| 733 | bladeefo.LockedToPart = true | |
| 734 | bladeefo.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 735 | bladeefo.Rate = 900 | |
| 736 | bladeefo.VelocitySpread = 900000000000 | |
| 737 | bladeefo.Lifetime = NumberRange.new(0.25) | |
| 738 | bladeefo.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.25,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 739 | bladeefo.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)})
| |
| 740 | bladeefo.Rotation = NumberRange.new(-500,500) | |
| 741 | bladeefo.RotSpeed = NumberRange.new(-500,500) | |
| 742 | bladeefo.Speed = NumberRange.new(5,7.5) | |
| 743 | ||
| 744 | local bld2 = blade:Clone() | |
| 745 | bld2.Parent = Character | |
| 746 | local bld2eff = bld2.ParticleEmitter | |
| 747 | local weld2a = bld2.Weld | |
| 748 | weld2a.C1 = CFrame.new(0, -3.55, 3.15)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(0)) | |
| 749 | local bld3 = blade:Clone() | |
| 750 | bld3.Parent = Character | |
| 751 | local bld3eff = bld3.ParticleEmitter | |
| 752 | local weld3a = bld3.Weld | |
| 753 | weld3a.C1 = CFrame.new(0, -4.05, 3.65)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(0)) | |
| 754 | local bld4 = blade:Clone() | |
| 755 | bld4.Parent = Character | |
| 756 | local bld4eff = bld4.ParticleEmitter | |
| 757 | local weld4a = bld4.Weld | |
| 758 | weld4a.C1 = CFrame.new(0, -4.55, 4.15)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)) | |
| 759 | ----- lol | |
| 760 | handle.CanCollide = false | |
| 761 | handle2.CanCollide = false | |
| 762 | handle3.CanCollide = false | |
| 763 | ---- | |
| 764 | ||
| 765 | function attackone() | |
| 766 | attack = true | |
| 767 | for i = 0,1,0.1 do | |
| 768 | swait() | |
| 769 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 770 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
| 771 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(10)), 0.3) | |
| 772 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3) | |
| 773 | end | |
| 774 | wait(0.15) | |
| 775 | local slas = Instance.new("Sound",blade)
| |
| 776 | slas.SoundId = "rbxassetid://92597296" | |
| 777 | slas.Volume = 2.5 | |
| 778 | slas.Pitch = 0.74 | |
| 779 | slas:Play() | |
| 780 | local slas2 = Instance.new("Sound",blade)
| |
| 781 | slas2.SoundId = "rbxassetid://92597369" | |
| 782 | slas2.Volume = 1.5 | |
| 783 | slas2.Pitch = 0.5 | |
| 784 | slas2:Play() | |
| 785 | local hit = blade.Touched:connect(function(hit) | |
| 786 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 787 | end) | |
| 788 | local hit2 = bld2.Touched:connect(function(hit) | |
| 789 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 790 | end) | |
| 791 | local hit3 = bld3.Touched:connect(function(hit) | |
| 792 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 793 | end) | |
| 794 | local hit4 = bld4.Touched:connect(function(hit) | |
| 795 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 796 | end) | |
| 797 | for i = 0,1,0.1 do | |
| 798 | swait() | |
| 799 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
| 800 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3) | |
| 801 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(180), math.rad(180), math.rad(-120)), 0.3) | |
| 802 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
| 803 | end | |
| 804 | attack = false | |
| 805 | hit:disconnect() | |
| 806 | hit2:disconnect() | |
| 807 | hit3:disconnect() | |
| 808 | hit4:disconnect() | |
| 809 | wait(3) | |
| 810 | slas:Destroy() | |
| 811 | slas2:Destroy() | |
| 812 | end | |
| 813 | ||
| 814 | function attacktwo() | |
| 815 | attack = true | |
| 816 | for i = 0,1,0.1 do | |
| 817 | swait() | |
| 818 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 819 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
| 820 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(-90), math.rad(10)), 0.3) | |
| 821 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3) | |
| 822 | end | |
| 823 | wait(0.15) | |
| 824 | local slas = Instance.new("Sound",blade)
| |
| 825 | slas.SoundId = "rbxassetid://28144425" | |
| 826 | slas.Volume = 2.5 | |
| 827 | slas.Pitch = 0.95 | |
| 828 | slas:Play() | |
| 829 | local hit = blade.Touched:connect(function(hit) | |
| 830 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 831 | end) | |
| 832 | local hit2 = bld2.Touched:connect(function(hit) | |
| 833 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 834 | end) | |
| 835 | local hit3 = bld3.Touched:connect(function(hit) | |
| 836 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 837 | end) | |
| 838 | local hit4 = bld4.Touched:connect(function(hit) | |
| 839 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 840 | end) | |
| 841 | for i = 0,1,0.1 do | |
| 842 | swait() | |
| 843 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 844 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
| 845 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 846 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 847 | end | |
| 848 | attack = false | |
| 849 | hit:disconnect() | |
| 850 | hit2:disconnect() | |
| 851 | hit3:disconnect() | |
| 852 | hit4:disconnect() | |
| 853 | wait(3) | |
| 854 | slas:Destroy() | |
| 855 | end | |
| 856 | ||
| 857 | function attackthree() | |
| 858 | attack = true | |
| 859 | local swin = Instance.new("Sound",blade)
| |
| 860 | swin.SoundId = "rbxassetid://92597296" | |
| 861 | swin.Volume = 5 | |
| 862 | swin.Pitch = 0.75 | |
| 863 | swin:Play() | |
| 864 | for i = 0,1,0.1 do | |
| 865 | swait() | |
| 866 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 867 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
| 868 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(-90), math.rad(10)), 0.3) | |
| 869 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3) | |
| 870 | end | |
| 871 | wait(0.15) | |
| 872 | local hit = blade.Touched:connect(function(hit) | |
| 873 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 874 | end) | |
| 875 | local hit2 = bld2.Touched:connect(function(hit) | |
| 876 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 877 | end) | |
| 878 | local hit3 = bld3.Touched:connect(function(hit) | |
| 879 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 880 | end) | |
| 881 | local hit4 = bld4.Touched:connect(function(hit) | |
| 882 | Damagefunc(hit,3,7,5,"Normal",root,.2,1) | |
| 883 | end) | |
| 884 | for z = 0,2 do | |
| 885 | local slas = Instance.new("Sound",blade)
| |
| 886 | slas.SoundId = "rbxassetid://92597369" | |
| 887 | slas.Volume = 1.5 | |
| 888 | slas.Pitch = 1 | |
| 889 | slas:Play() | |
| 890 | local swin2 = Instance.new("Sound",blade)
| |
| 891 | swin2.SoundId = "rbxassetid://92597296" | |
| 892 | swin2.Volume = 5 | |
| 893 | swin2.Pitch = 1.25 | |
| 894 | swin2:Play() | |
| 895 | local swin3 = Instance.new("Sound",blade)
| |
| 896 | swin3.SoundId = "rbxassetid://92597296" | |
| 897 | swin3.Volume = 2.5 | |
| 898 | swin3.Pitch = 0.95 | |
| 899 | swin3:Play() | |
| 900 | for i = 0,1,0.5 do | |
| 901 | swait() | |
| 902 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
| 903 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 904 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 905 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 906 | end | |
| 907 | for i = 0,1,0.5 do | |
| 908 | swait() | |
| 909 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(120)),.3) | |
| 910 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 911 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 912 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 913 | end | |
| 914 | for i = 0,1,0.5 do | |
| 915 | swait() | |
| 916 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),.3) | |
| 917 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 918 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 919 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 920 | end | |
| 921 | for i = 0,1,0.5 do | |
| 922 | swait() | |
| 923 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(240)),.3) | |
| 924 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 925 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 926 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 927 | end | |
| 928 | for i = 0,1,0.5 do | |
| 929 | swait() | |
| 930 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(300)),.3) | |
| 931 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 932 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 933 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 934 | end | |
| 935 | for i = 0,1,0.5 do | |
| 936 | swait() | |
| 937 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),.3) | |
| 938 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 939 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(-90)), 0.3) | |
| 940 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)), 0.3) | |
| 941 | end | |
| 942 | slas:Destroy() | |
| 943 | swin2:Destroy() | |
| 944 | swin3:Destroy() | |
| 945 | end | |
| 946 | attack = false | |
| 947 | hit:disconnect() | |
| 948 | hit2:disconnect() | |
| 949 | hit3:disconnect() | |
| 950 | hit4:disconnect() | |
| 951 | wait(3) | |
| 952 | end | |
| 953 | ||
| 954 | function attackfour() | |
| 955 | attack = true | |
| 956 | for i = 0,1,0.1 do | |
| 957 | swait() | |
| 958 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-100)),.3) | |
| 959 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(100)),.3) | |
| 960 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(-40), math.rad(10)), 0.3) | |
| 961 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3) | |
| 962 | end | |
| 963 | wait(0.05) | |
| 964 | local swin = Instance.new("Sound",blade)
| |
| 965 | swin.SoundId = "rbxassetid://92597296" | |
| 966 | swin.Volume = 2.5 | |
| 967 | swin.Pitch = 0.75 | |
| 968 | swin:Play() | |
| 969 | for i = 0,1,0.1 do | |
| 970 | swait() | |
| 971 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 972 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
| 973 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(-40), math.rad(10)), 0.3) | |
| 974 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3) | |
| 975 | end | |
| 976 | local lb = Instance.new("Part")
| |
| 977 | lb.Parent = char | |
| 978 | lb.Material = "Neon" | |
| 979 | lb.BrickColor = BrickColor.new("Really red")
| |
| 980 | lb.CanCollide = false | |
| 981 | lb.Shape = "Ball" | |
| 982 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 983 | lb.CFrame = lb.CFrame - vt(0,0.5,0) | |
| 984 | lb.Anchored = true | |
| 985 | lb.Size = vt(3,3,3) | |
| 986 | local thing = Instance.new("SpecialMesh",lb)
| |
| 987 | thing.MeshType = meshtype | |
| 988 | local hitcircle = lb.Touched:connect(function(hit) | |
| 989 | Damagefunc(hit,7,14,5,"Normal",root,.2,1) | |
| 990 | end) | |
| 991 | local sa = Instance.new("Sound",lb)
| |
| 992 | sa.SoundId = "rbxassetid://233091205" | |
| 993 | sa.Volume = 1.25 | |
| 994 | sa.Pitch = 1 | |
| 995 | sa:Play() | |
| 996 | local tra = Instance.new("ParticleEmitter",lb)
| |
| 997 | tra.Texture = "rbxassetid://296874871" | |
| 998 | tra.LightEmission = 0.95 | |
| 999 | tra.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 1000 | tra.Rate = 1000 | |
| 1001 | tra.Lifetime = NumberRange.new(1) | |
| 1002 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1003 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1004 | tra.Speed = NumberRange.new(10,25) | |
| 1005 | tra.Rotation = NumberRange.new(-500,500) | |
| 1006 | tra.VelocitySpread = 90000 | |
| 1007 | tra.RotSpeed = NumberRange.new(-500,500) | |
| 1008 | for i = 0, 24 do | |
| 1009 | wait() | |
| 1010 | thing.Scale = thing.Scale + vt(0.1,0.1,0.1) | |
| 1011 | lb.Size = lb.Size + vt(0.1,0.1,0.1) | |
| 1012 | lb.Transparency = lb.Transparency + 0.05 | |
| 1013 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 1014 | lb.CFrame = lb.CFrame - vt(0,0.5,0) | |
| 1015 | end | |
| 1016 | attack = false | |
| 1017 | hitcircle:disconnect() | |
| 1018 | tra.Rate = 0 | |
| 1019 | wait(5) | |
| 1020 | lb:Destroy() | |
| 1021 | swin:Destroy() | |
| 1022 | end | |
| 1023 | ||
| 1024 | local hold = false | |
| 1025 | function do1() | |
| 1026 | attack = true | |
| 1027 | for i = 0,1,0.1 do | |
| 1028 | swait() | |
| 1029 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1030 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
| 1031 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(-40), math.rad(10)), 0.3) | |
| 1032 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(-10), math.rad(-90)), 0.3) | |
| 1033 | end | |
| 1034 | local lb = Instance.new("Part")
| |
| 1035 | lb.Parent = char | |
| 1036 | lb.Material = "Neon" | |
| 1037 | lb.BrickColor = BrickColor.new("Really red")
| |
| 1038 | lb.CanCollide = false | |
| 1039 | lb.Shape = "Ball" | |
| 1040 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 1041 | lb.Anchored = true | |
| 1042 | lb.Size = vt(0.2,0.2,0.2) | |
| 1043 | local thing = Instance.new("SpecialMesh",lb)
| |
| 1044 | thing.MeshType = meshtype | |
| 1045 | local tra = Instance.new("ParticleEmitter",lb)
| |
| 1046 | tra.Texture = "rbxassetid://296874871" | |
| 1047 | tra.LightEmission = 0.95 | |
| 1048 | tra.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 1049 | tra.Rate = 1000 | |
| 1050 | tra.Lifetime = NumberRange.new(0.25) | |
| 1051 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,12.5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1052 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.95,0)})
| |
| 1053 | tra.Speed = NumberRange.new(0) | |
| 1054 | tra.Rotation = NumberRange.new(-500,500) | |
| 1055 | tra.VelocitySpread = 90000 | |
| 1056 | tra.LockedToPart = true | |
| 1057 | tra.RotSpeed = NumberRange.new(-500,500) | |
| 1058 | local saz = Instance.new("Sound",lb)
| |
| 1059 | saz.SoundId = "rbxassetid://192410062" | |
| 1060 | saz.Volume = 1.5 | |
| 1061 | saz.Pitch = 1 | |
| 1062 | saz:Play() | |
| 1063 | for i = 0, 24 do | |
| 1064 | wait() | |
| 1065 | lb.Size = lb.Size + vt(0.15,0.15,0.15) | |
| 1066 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 1067 | end | |
| 1068 | while wait() do | |
| 1069 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 1070 | if hold == false then | |
| 1071 | break | |
| 1072 | end | |
| 1073 | end | |
| 1074 | lb.Touched:connect(function(hit) | |
| 1075 | Damagefunc(hit,10,25,5,"Normal",root,.2,1) | |
| 1076 | end) | |
| 1077 | tra.Rate = 0 | |
| 1078 | lb.Anchored = false | |
| 1079 | local sa = Instance.new("Sound",lb)
| |
| 1080 | sa.SoundId = "rbxassetid://233091205" | |
| 1081 | sa.Volume = 1.25 | |
| 1082 | sa.Pitch = 1 | |
| 1083 | sa:Play() | |
| 1084 | local trail = Instance.new("ParticleEmitter",lb)
| |
| 1085 | trail.Texture = "rbxassetid://296874871" | |
| 1086 | trail.LightEmission = 0.95 | |
| 1087 | trail.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 1088 | trail.Rate = 10000 | |
| 1089 | trail.Lifetime = NumberRange.new(1.5) | |
| 1090 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1091 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1092 | trail.Speed = NumberRange.new(0,0) | |
| 1093 | trail.Rotation = NumberRange.new(-500,500) | |
| 1094 | trail.RotSpeed = NumberRange.new(-500,500) | |
| 1095 | local bv = Instance.new("BodyVelocity")
| |
| 1096 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1097 | bv.velocity = mouse.Hit.lookVector *100 | |
| 1098 | bv.Parent = lb | |
| 1099 | wait(0.1) | |
| 1100 | attack = false | |
| 1101 | wait(10) | |
| 1102 | lb:Destroy() | |
| 1103 | end | |
| 1104 | ||
| 1105 | function do2() | |
| 1106 | attack = true | |
| 1107 | for i = 0,1,0.1 do | |
| 1108 | swait() | |
| 1109 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1110 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1111 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(60), math.rad(90)), 0.3) | |
| 1112 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1113 | end | |
| 1114 | local touched = false | |
| 1115 | local over = false | |
| 1116 | local delay = false | |
| 1117 | local spart = Instance.new("Part",char)
| |
| 1118 | local thing = Instance.new("SpecialMesh",spart)
| |
| 1119 | thing.MeshType = meshtype | |
| 1120 | spart.Size = vt(1,1,1) | |
| 1121 | spart.Anchored = true | |
| 1122 | spart.BrickColor = BrickColor.new("Really red")
| |
| 1123 | spart.Transparency = 0.5 | |
| 1124 | spart.CanCollide = false | |
| 1125 | spart.Material = "Neon" | |
| 1126 | spart.CFrame = hed.CFrame + Vector3.new(0,-1,0) | |
| 1127 | local pt1e = NumberSequenceKeypoint.new(0,2,0) | |
| 1128 | local pt2e = NumberSequenceKeypoint.new(1,0.5,0) | |
| 1129 | local effecto = Instance.new("ParticleEmitter",spart)
| |
| 1130 | effecto.Texture = "rbxassetid://296874871" | |
| 1131 | effecto.LightEmission = 1 | |
| 1132 | effecto.LockedToPart = true | |
| 1133 | effecto.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 1134 | effecto.Rate = 10000 | |
| 1135 | effecto.VelocitySpread = 900000000000 | |
| 1136 | effecto.Lifetime = NumberRange.new(0.25) | |
| 1137 | effecto.Size = NumberSequence.new({pt1e,pt2e})
| |
| 1138 | effecto.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1139 | effecto.Speed = NumberRange.new(10,25) | |
| 1140 | effecto.Rotation = NumberRange.new(-500,500) | |
| 1141 | effecto.RotSpeed = NumberRange.new(-500,500) | |
| 1142 | spart.CFrame = tors.CFrame + Vector3.new(0,0.1,0) | |
| 1143 | local tick2 = Instance.new("Sound",spart)
| |
| 1144 | tick2.SoundId = "rbxassetid://233091205" | |
| 1145 | tick2.Volume = 2.5 | |
| 1146 | tick2.Pitch = 1 | |
| 1147 | tick2:Play() | |
| 1148 | spart.CFrame = hed.CFrame + Vector3.new(0,-1,0) | |
| 1149 | spart.Anchored = false | |
| 1150 | spart.Size = vt(0.75,12.5,12.5) | |
| 1151 | spart.CFrame = hed.CFrame + Vector3.new(0,-1,0) | |
| 1152 | local bv = Instance.new("BodyVelocity")
| |
| 1153 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1154 | bv.velocity = hed.CFrame.lookVector * 175 | |
| 1155 | bv.Parent = spart | |
| 1156 | spart.Touched:connect(function(hit) | |
| 1157 | local saveposition = spart.CFrame | |
| 1158 | local effector2 = Instance.new("ParticleEmitter",spart)
| |
| 1159 | effector2.Texture = "rbxassetid://296874871" | |
| 1160 | effector2.LightEmission = 1 | |
| 1161 | effector2.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 1162 | effector2.Rate = 10000 | |
| 1163 | effector2.Lifetime = NumberRange.new(0.25) | |
| 1164 | effector2.VelocitySpread = 999999999999999 | |
| 1165 | effector2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1166 | effector2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1167 | effector2.Speed = NumberRange.new(50) | |
| 1168 | effector2.Rotation = NumberRange.new(-500,500) | |
| 1169 | effector2.RotSpeed = NumberRange.new(-500,500) | |
| 1170 | Damagefunc(hit,12,22,-20,"Normal",root,.2,1) | |
| 1171 | over = true | |
| 1172 | wait(0.25) | |
| 1173 | effector2.Rate = 0 | |
| 1174 | wait(0.25) | |
| 1175 | effector2:Destroy() | |
| 1176 | end) | |
| 1177 | for i = 0,1,0.1 do | |
| 1178 | swait() | |
| 1179 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1180 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1181 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(-90), math.rad(90)), 0.3) | |
| 1182 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1183 | end | |
| 1184 | attack = false | |
| 1185 | wait(5) | |
| 1186 | effecto.Rate = 0 | |
| 1187 | wait(1.5) | |
| 1188 | spart:Destroy() | |
| 1189 | end | |
| 1190 | ||
| 1191 | function do3() | |
| 1192 | attack = true | |
| 1193 | local lb = Instance.new("Part")
| |
| 1194 | lb.Parent = char | |
| 1195 | lb.Material = "Neon" | |
| 1196 | lb.BrickColor = BrickColor.new("Really red")
| |
| 1197 | lb.CanCollide = false | |
| 1198 | lb.Shape = "Ball" | |
| 1199 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*5 | |
| 1200 | lb.Anchored = true | |
| 1201 | lb.Size = vt(0.2,0.2,0.2) | |
| 1202 | local thing = Instance.new("SpecialMesh",lb)
| |
| 1203 | thing.MeshType = meshtype | |
| 1204 | hum.WalkSpeed = 0 | |
| 1205 | for i = 0,1,0.75 do | |
| 1206 | swait() | |
| 1207 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1208 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1209 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1210 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1211 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1212 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
| 1213 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1214 | end | |
| 1215 | for i = 0,1,0.75 do | |
| 1216 | swait() | |
| 1217 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1218 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1219 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1220 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1221 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1222 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(30), math.rad(90)), 0.3) | |
| 1223 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1224 | end | |
| 1225 | for i = 0,1,0.75 do | |
| 1226 | swait() | |
| 1227 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1228 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1229 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1230 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1231 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1232 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(60), math.rad(30), math.rad(90)), 0.3) | |
| 1233 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1234 | end | |
| 1235 | for i = 0,1,0.75 do | |
| 1236 | swait() | |
| 1237 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1238 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1239 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1240 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1241 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1242 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(30), math.rad(90)), 0.3) | |
| 1243 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1244 | end | |
| 1245 | for i = 0,1,0.75 do | |
| 1246 | swait() | |
| 1247 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1248 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1249 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1250 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1251 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1252 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(120), math.rad(30), math.rad(90)), 0.3) | |
| 1253 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1254 | end | |
| 1255 | for i = 0,1,0.75 do | |
| 1256 | swait() | |
| 1257 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1258 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1259 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1260 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1261 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1262 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(30), math.rad(90)), 0.3) | |
| 1263 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1264 | end | |
| 1265 | for i = 0,1,0.75 do | |
| 1266 | swait() | |
| 1267 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1268 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1269 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1270 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1271 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1272 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(240), math.rad(30), math.rad(90)), 0.3) | |
| 1273 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1274 | end | |
| 1275 | for i = 0,1,0.75 do | |
| 1276 | swait() | |
| 1277 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1278 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1279 | thing.Scale = thing.Scale + vt(4.5,4.5,0) | |
| 1280 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1281 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1282 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(300), math.rad(30), math.rad(90)), 0.3) | |
| 1283 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1284 | end | |
| 1285 | local touched = false | |
| 1286 | local rotationval = 1 | |
| 1287 | local delay = false | |
| 1288 | local distance = 3.55 | |
| 1289 | local spart = Instance.new("Part",t)
| |
| 1290 | local tick4 = Instance.new("Sound",t)
| |
| 1291 | tick4.SoundId = "rbxassetid://228343271" | |
| 1292 | tick4.Volume = 2.5 | |
| 1293 | tick4.Pitch = 0.9 | |
| 1294 | local tick2 = Instance.new("Sound",t)
| |
| 1295 | tick2.SoundId = "rbxassetid://233091205" | |
| 1296 | tick2.Volume = 5 | |
| 1297 | tick2.Pitch = 1 | |
| 1298 | tick2:Play() | |
| 1299 | spart.Size = vt(10,10,1) | |
| 1300 | spart.BrickColor = BrickColor.new("Really red")
| |
| 1301 | spart.Transparency = 0.35 | |
| 1302 | spart.CanCollide = false | |
| 1303 | spart.Anchored = true | |
| 1304 | spart.Material = "Neon" | |
| 1305 | spart.CFrame = hed.CFrame + Vector3.new(0,0.1,0) | |
| 1306 | wait(0.05) | |
| 1307 | spart.Touched:connect(function(hit) | |
| 1308 | local effector2 = Instance.new("ParticleEmitter",spart)
| |
| 1309 | effector2.Texture = "http://www.roblox.com/asset/?id=296874871" | |
| 1310 | effector2.LightEmission = 1 | |
| 1311 | effector2.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 1312 | effector2.Rate = 10000 | |
| 1313 | effector2.Lifetime = NumberRange.new(0.25) | |
| 1314 | effector2.VelocitySpread = 999999999999999 | |
| 1315 | effector2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1316 | effector2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1317 | effector2.Speed = NumberRange.new(50) | |
| 1318 | effector2.Rotation = NumberRange.new(-500,500) | |
| 1319 | effector2.RotSpeed = NumberRange.new(-500,500) | |
| 1320 | Damagefunc(hit,5,15,-20,"Normal",root,.2,1) | |
| 1321 | wait(0.25) | |
| 1322 | effector2.Rate = 0 | |
| 1323 | wait(0.25) | |
| 1324 | end) | |
| 1325 | tick4:Play() | |
| 1326 | for x = 0, 9 do | |
| 1327 | for i = 0,1,0.75 do | |
| 1328 | swait() | |
| 1329 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1330 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1331 | distance = distance + 1*5 | |
| 1332 | rotationval = rotationval - 0.125 | |
| 1333 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1334 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1335 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1336 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1337 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1338 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3) | |
| 1339 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1340 | end | |
| 1341 | for i = 0,1,0.75 do | |
| 1342 | swait() | |
| 1343 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1344 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1345 | distance = distance + 1*5 | |
| 1346 | rotationval = rotationval - 0.125 | |
| 1347 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1348 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1349 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1350 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1351 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1352 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(30), math.rad(90)), 0.3) | |
| 1353 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1354 | end | |
| 1355 | for i = 0,1,0.75 do | |
| 1356 | swait() | |
| 1357 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1358 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1359 | distance = distance + 1*5 | |
| 1360 | rotationval = rotationval - 0.125 | |
| 1361 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1362 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1363 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1364 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1365 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1366 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(60), math.rad(30), math.rad(90)), 0.3) | |
| 1367 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1368 | end | |
| 1369 | for i = 0,1,0.75 do | |
| 1370 | swait() | |
| 1371 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1372 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1373 | distance = distance + 1*5 | |
| 1374 | rotationval = rotationval - 0.125 | |
| 1375 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1376 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1377 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1378 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1379 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1380 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(30), math.rad(90)), 0.3) | |
| 1381 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1382 | end | |
| 1383 | for i = 0,1,0.75 do | |
| 1384 | swait() | |
| 1385 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1386 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1387 | distance = distance + 1*5 | |
| 1388 | rotationval = rotationval - 0.125 | |
| 1389 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1390 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1391 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1392 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1393 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1394 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(120), math.rad(30), math.rad(90)), 0.3) | |
| 1395 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1396 | end | |
| 1397 | for i = 0,1,0.75 do | |
| 1398 | swait() | |
| 1399 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1400 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1401 | distance = distance + 1*5 | |
| 1402 | rotationval = rotationval - 0.125 | |
| 1403 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1404 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1405 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1406 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1407 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1408 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(30), math.rad(90)), 0.3) | |
| 1409 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1410 | end | |
| 1411 | for i = 0,1,0.75 do | |
| 1412 | swait() | |
| 1413 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1414 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1415 | distance = distance + 1*5 | |
| 1416 | rotationval = rotationval - 0.125 | |
| 1417 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1418 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1419 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1420 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1421 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1422 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(240), math.rad(30), math.rad(90)), 0.3) | |
| 1423 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1424 | end | |
| 1425 | for i = 0,1,0.75 do | |
| 1426 | swait() | |
| 1427 | lb.CFrame = char.Head.CFrame + char.Head.CFrame.lookVector*3 | |
| 1428 | lb.CFrame = lb.CFrame - vt(0,1.5,0) | |
| 1429 | distance = distance + 1*5 | |
| 1430 | rotationval = rotationval - 0.125 | |
| 1431 | spart.Size = spart.Size + Vector3.new(0,0,2*5) | |
| 1432 | spart.CFrame = hed.CFrame*CFrame.Angles(0,0,rotationval) + hed.CFrame.lookVector*distance | |
| 1433 | spart.CFrame = spart.CFrame + Vector3.new(0,-1.5,0) | |
| 1434 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1435 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 1436 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(300), math.rad(30), math.rad(90)), 0.3) | |
| 1437 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1438 | end | |
| 1439 | end | |
| 1440 | spart:Destroy() | |
| 1441 | hum.WalkSpeed = 16 | |
| 1442 | attack = false | |
| 1443 | for i = 0, 24 do | |
| 1444 | lb.Transparency = lb.Transparency + 0.05 | |
| 1445 | thing.Scale = thing.Scale - vt(4.5,4.5,0) | |
| 1446 | wait() | |
| 1447 | end | |
| 1448 | lb:Destroy() | |
| 1449 | end | |
| 1450 | ||
| 1451 | function DeleteParent(parent) | |
| 1452 | for i,v in pairs(parent:children()) do | |
| 1453 | if v:IsA("Part") then
| |
| 1454 | v:Destroy() | |
| 1455 | end | |
| 1456 | end | |
| 1457 | end | |
| 1458 | ||
| 1459 | ||
| 1460 | function do4() | |
| 1461 | hum.WalkSpeed = 0 | |
| 1462 | attack = true | |
| 1463 | for i = 0,1,0.1 do | |
| 1464 | swait() | |
| 1465 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1466 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1467 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
| 1468 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3) | |
| 1469 | end | |
| 1470 | local shur = Instance.new("Part",char)
| |
| 1471 | local gahd = Instance.new("Sound",shur)
| |
| 1472 | gahd.SoundId = "rbxassetid://136007472" | |
| 1473 | gahd.Volume = 2.5 | |
| 1474 | gahd.Pitch = 0.7 | |
| 1475 | gahd:Play() | |
| 1476 | shur.Transparency = 1 | |
| 1477 | shur.Material = "Neon" | |
| 1478 | shur.BrickColor = bc("Bright red")
| |
| 1479 | shur.Anchored = true | |
| 1480 | shur.CFrame = tors.CFrame + vt(0,-2.5,0) | |
| 1481 | shur.Size = vt(1,0.2,1) | |
| 1482 | shur.CanCollide = false | |
| 1483 | local dec = Instance.new("Decal",shur)
| |
| 1484 | dec.Texture = "http://www.roblox.com/asset/?id=359972668" | |
| 1485 | dec.Face = "Top" | |
| 1486 | local dec2 = dec:Clone() | |
| 1487 | dec2.Parent = shur | |
| 1488 | dec2.Face = "Bottom" | |
| 1489 | local Meshshur = Instance.new("CylinderMesh",shur)
| |
| 1490 | Meshshur.Scale = vt(0,1,0) | |
| 1491 | local value1 = 1*2.5 | |
| 1492 | game:service'RunService'.RenderStepped:connect(function() | |
| 1493 | shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0) | |
| 1494 | end) | |
| 1495 | for i = 0, 50 do | |
| 1496 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
| 1497 | value1 = value1 - 0.015*2.5 | |
| 1498 | wait() | |
| 1499 | end | |
| 1500 | local lb = Instance.new("Part")
| |
| 1501 | lb.Parent = char | |
| 1502 | lb.Material = "Neon" | |
| 1503 | lb.BrickColor = BrickColor.new("Really red")
| |
| 1504 | lb.CanCollide = false | |
| 1505 | lb.Shape = "Ball" | |
| 1506 | lb.Position = larm.Position | |
| 1507 | lb.CFrame = lb.CFrame + vt(0,1.5,0) | |
| 1508 | lb.Anchored = true | |
| 1509 | lb.Size = vt(0.2,0.2,0.2) | |
| 1510 | local thing = Instance.new("SpecialMesh",lb)
| |
| 1511 | thing.MeshType = meshtype | |
| 1512 | local tra = Instance.new("ParticleEmitter",lb)
| |
| 1513 | tra.Texture = "rbxassetid://296874871" | |
| 1514 | tra.LightEmission = 0.95 | |
| 1515 | tra.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 1516 | tra.Rate = 1000 | |
| 1517 | tra.Lifetime = NumberRange.new(0.25) | |
| 1518 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,25,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1519 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1520 | tra.Speed = NumberRange.new(0) | |
| 1521 | tra.Rotation = NumberRange.new(-500,500) | |
| 1522 | tra.VelocitySpread = 90000 | |
| 1523 | tra.LockedToPart = true | |
| 1524 | tra.RotSpeed = NumberRange.new(-500,500) | |
| 1525 | local tran = Instance.new("ParticleEmitter",lb)
| |
| 1526 | tran.Texture = "rbxassetid://296874871" | |
| 1527 | tran.LightEmission = 0.95 | |
| 1528 | tran.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 1529 | tran.Rate = 0 | |
| 1530 | tran.Lifetime = NumberRange.new(1) | |
| 1531 | tran.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,25,0)})
| |
| 1532 | tran.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1533 | tran.Speed = NumberRange.new(25,50) | |
| 1534 | tran.Rotation = NumberRange.new(-500,500) | |
| 1535 | tran.VelocitySpread = 90000 | |
| 1536 | tran.LockedToPart = true | |
| 1537 | tran.RotSpeed = NumberRange.new(-500,500) | |
| 1538 | local saz = Instance.new("Sound",lb)
| |
| 1539 | saz.SoundId = "rbxassetid://192410062" | |
| 1540 | saz.Volume = 7.5 | |
| 1541 | saz.Pitch = 1 | |
| 1542 | saz:Play() | |
| 1543 | for i = 0, 59 do | |
| 1544 | wait() | |
| 1545 | lb.Size = lb.Size + vt(0.5,0.5,0.5) | |
| 1546 | lb.CFrame = lb.CFrame + vt(0,0.275,0) | |
| 1547 | end | |
| 1548 | local savepoint = Instance.new("Part",lb)
| |
| 1549 | savepoint.CFrame = lb.CFrame | |
| 1550 | savepoint.Transparency = 1 | |
| 1551 | savepoint.CanCollide = false | |
| 1552 | savepoint.Anchored = true | |
| 1553 | for i = 0, 29 do | |
| 1554 | shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0) | |
| 1555 | lb.CFrame = savepoint.CFrame | |
| 1556 | lb.Size = lb.Size - vt(0.75,0.75,0.75) | |
| 1557 | local lba = Instance.new("Part")
| |
| 1558 | lba.Parent = lb | |
| 1559 | lba.Material = "Neon" | |
| 1560 | lba.BrickColor = BrickColor.new("Really red")
| |
| 1561 | lba.CanCollide = false | |
| 1562 | lba.Shape = "Ball" | |
| 1563 | lba.CFrame = lb.CFrame | |
| 1564 | lba.Size = vt(6,6,6) | |
| 1565 | local thinga = Instance.new("SpecialMesh",lba)
| |
| 1566 | thinga.MeshType = meshtype | |
| 1567 | lba.Touched:connect(function(hit) | |
| 1568 | Damagefunc(hit,22,29,5,"Normal",root,.2,1) | |
| 1569 | end) | |
| 1570 | local sa = Instance.new("Sound",lb)
| |
| 1571 | sa.SoundId = "rbxassetid://233091205" | |
| 1572 | sa.Volume = 1.25 | |
| 1573 | sa.Pitch = 0.75 | |
| 1574 | sa:Play() | |
| 1575 | local trail = Instance.new("ParticleEmitter",lba)
| |
| 1576 | trail.Texture = "rbxassetid://296874871" | |
| 1577 | trail.LightEmission = 0.95 | |
| 1578 | trail.Color = ColorSequence.new(lb.BrickColor.Color) | |
| 1579 | trail.Rate = 10000 | |
| 1580 | trail.Lifetime = NumberRange.new(1.5) | |
| 1581 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1582 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1583 | trail.Speed = NumberRange.new(0,0) | |
| 1584 | trail.Rotation = NumberRange.new(-500,500) | |
| 1585 | trail.RotSpeed = NumberRange.new(-500,500) | |
| 1586 | local bv = Instance.new("BodyVelocity")
| |
| 1587 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1588 | bv.velocity = mouse.Hit.lookVector *100 | |
| 1589 | bv.Parent = lba | |
| 1590 | wait(0.25) | |
| 1591 | end | |
| 1592 | tra.Rate = 0 | |
| 1593 | tran.Rate = 9000 | |
| 1594 | local sar = Instance.new("Sound",lb)
| |
| 1595 | sar.SoundId = "rbxassetid://233091205" | |
| 1596 | sar.Volume = 2.5 | |
| 1597 | sar.Pitch = 0.5 | |
| 1598 | sar:Play() | |
| 1599 | local hit = lb.Touched:connect(function(hit) | |
| 1600 | Damagefunc(hit,40,50,5,"Normal",root,.2,1) | |
| 1601 | end) | |
| 1602 | for i = 0, 44 do | |
| 1603 | lb.Size = lb.Size + vt(3,3,3) | |
| 1604 | lb.CFrame = savepoint.CFrame | |
| 1605 | lb.Transparency = lb.Transparency + 0.025 | |
| 1606 | wait() | |
| 1607 | end | |
| 1608 | tran.Rate = 0 | |
| 1609 | hit:disconnect() | |
| 1610 | attack = false | |
| 1611 | hum.WalkSpeed = 16 | |
| 1612 | for i = 0, 100 do | |
| 1613 | dec.Transparency = dec.Transparency + 0.015 | |
| 1614 | dec2.Transparency = dec.Transparency | |
| 1615 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
| 1616 | value1 = value1 - 0.015*2.5 | |
| 1617 | wait(0) | |
| 1618 | end | |
| 1619 | shur:Destroy() | |
| 1620 | wait(10) | |
| 1621 | lb:Destroy() | |
| 1622 | end | |
| 1623 | ||
| 1624 | function doSpecial() | |
| 1625 | hum.WalkSpeed = 0 | |
| 1626 | attack = true | |
| 1627 | local ff = Instance.new("ForceField",char)
| |
| 1628 | for i = 0,1,0.1 do | |
| 1629 | swait() | |
| 1630 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1631 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1632 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
| 1633 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3) | |
| 1634 | end | |
| 1635 | local shur = Instance.new("Part",char)
| |
| 1636 | local gahd = Instance.new("Sound",char)
| |
| 1637 | gahd.SoundId = "rbxassetid://136007472" | |
| 1638 | gahd.Volume = 1 | |
| 1639 | gahd.Pitch = 0.7 | |
| 1640 | gahd:Play() | |
| 1641 | shur.Transparency = 1 | |
| 1642 | shur.Material = "Neon" | |
| 1643 | shur.BrickColor = bc("Bright red")
| |
| 1644 | shur.Anchored = true | |
| 1645 | shur.CFrame = tors.CFrame + vt(0,-2.5,0) | |
| 1646 | shur.Size = vt(1,0.2,1) | |
| 1647 | shur.CanCollide = false | |
| 1648 | local dec = Instance.new("Decal",shur)
| |
| 1649 | dec.Texture = "http://www.roblox.com/asset/?id=359972668" | |
| 1650 | dec.Face = "Top" | |
| 1651 | local dec2 = dec:Clone() | |
| 1652 | dec2.Parent = shur | |
| 1653 | dec2.Face = "Bottom" | |
| 1654 | local Meshshur = Instance.new("CylinderMesh",shur)
| |
| 1655 | Meshshur.Scale = vt(0,1,0) | |
| 1656 | local value1 = 1*5 | |
| 1657 | game:service'RunService'.RenderStepped:connect(function() | |
| 1658 | shur.CFrame = shur.CFrame*CFrame.Angles(0,0.05,0) | |
| 1659 | end) | |
| 1660 | for i = 0, 50 do | |
| 1661 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
| 1662 | value1 = value1 - 0.015*5 | |
| 1663 | wait() | |
| 1664 | end | |
| 1665 | local ex = Instance.new("Sound",char)
| |
| 1666 | ex.SoundId = "rbxassetid://197161452" | |
| 1667 | ex.Volume = 1 | |
| 1668 | ex.Pitch = 1 | |
| 1669 | ex:Play() | |
| 1670 | local ex2 = Instance.new("Sound",char)
| |
| 1671 | ex2.SoundId = "rbxassetid://197161452" | |
| 1672 | ex2.Volume = 0.75 | |
| 1673 | ex2.Pitch = 0.85 | |
| 1674 | ex2:Play() | |
| 1675 | local ex3 = Instance.new("Sound",char)
| |
| 1676 | ex3.SoundId = "rbxassetid://197161452" | |
| 1677 | ex3.Volume = 0.5 | |
| 1678 | ex3.Pitch = 0.65 | |
| 1679 | ex3:Play() | |
| 1680 | local ex4 = Instance.new("Sound",char)
| |
| 1681 | ex4.SoundId = "rbxassetid://446876721" | |
| 1682 | ex4.Volume = 1 | |
| 1683 | ex4.Pitch = 0.5 | |
| 1684 | ex4:Play() | |
| 1685 | local ex5 = Instance.new("Sound",char)
| |
| 1686 | ex5.SoundId = "rbxassetid://446876721" | |
| 1687 | ex5.Volume = 1.5 | |
| 1688 | ex5.Pitch = 0.5 | |
| 1689 | ex5:Play() | |
| 1690 | local seen = Instance.new("Sound",char)
| |
| 1691 | seen.SoundId = "rbxassetid://445796828" | |
| 1692 | seen.Pitch = 0.75 | |
| 1693 | seen.Volume = 1.75 | |
| 1694 | seen.Looped = true | |
| 1695 | seen:Play() | |
| 1696 | local las = Instance.new("Part")
| |
| 1697 | local expld = Instance.new("Explosion", las)
| |
| 1698 | expld.BlastPressure = 1 | |
| 1699 | las.Parent = char | |
| 1700 | las.Material = "Neon" | |
| 1701 | las.BrickColor = BrickColor.new("Really red")
| |
| 1702 | las.CanCollide = false | |
| 1703 | las.Shape = "Ball" | |
| 1704 | las.Transparency = 0 | |
| 1705 | las.Size = vt(60,60,60) | |
| 1706 | las.CFrame = shur.CFrame | |
| 1707 | las.Anchored = true | |
| 1708 | expld.BlastRadius = 9999999999 | |
| 1709 | expld.Position = las.Position | |
| 1710 | local thing = Instance.new("SpecialMesh",las)
| |
| 1711 | thing.MeshType = "Sphere" | |
| 1712 | thing.Scale = vt(1,0.1,1) | |
| 1713 | local bo = Instance.new("Part")
| |
| 1714 | bo.Parent = las | |
| 1715 | bo.Material = "Neon" | |
| 1716 | bo.BrickColor = BrickColor.new("Really red")
| |
| 1717 | bo.CanCollide = false | |
| 1718 | bo.Shape = "Ball" | |
| 1719 | bo.Transparency = 0 | |
| 1720 | bo.Size = vt(1,1,1) | |
| 1721 | bo.CFrame = shur.CFrame | |
| 1722 | bo.Anchored = true | |
| 1723 | local thingbo = Instance.new("SpecialMesh",bo)
| |
| 1724 | thingbo.MeshType = "Sphere" | |
| 1725 | thingbo.Scale = vt(90,90,90) | |
| 1726 | local boim = Instance.new("Part")
| |
| 1727 | boim.Parent = las | |
| 1728 | boim.Material = "Neon" | |
| 1729 | boim.BrickColor = BrickColor.new("Really red")
| |
| 1730 | boim.CanCollide = false | |
| 1731 | boim.Shape = "Ball" | |
| 1732 | boim.Transparency = 1 | |
| 1733 | boim.Size = vt(150,150,150) | |
| 1734 | boim.CFrame = shur.CFrame | |
| 1735 | boim.Anchored = true | |
| 1736 | local boim2 = Instance.new("Part")
| |
| 1737 | boim2.Parent = las | |
| 1738 | boim2.Material = "Neon" | |
| 1739 | boim2.BrickColor = BrickColor.new("Really red")
| |
| 1740 | boim2.CanCollide = false | |
| 1741 | boim2.Shape = "Ball" | |
| 1742 | boim2.Transparency = 0.65 | |
| 1743 | boim2.Size = vt(1,1,1) | |
| 1744 | boim2.CFrame = shur.CFrame | |
| 1745 | boim2.Anchored = true | |
| 1746 | local boimmsh = Instance.new("SpecialMesh",boim2)
| |
| 1747 | boimmsh.MeshType = "FileMesh" | |
| 1748 | boimmsh.Scale = vt(165,165,165) | |
| 1749 | local shock = Instance.new("Part")
| |
| 1750 | shock.Parent = las | |
| 1751 | shock.Material = "Neon" | |
| 1752 | shock.BrickColor = BrickColor.new("Really red")
| |
| 1753 | shock.CanCollide = false | |
| 1754 | shock.Shape = "Ball" | |
| 1755 | shock.Transparency = 0.25 | |
| 1756 | shock.CFrame = shur.CFrame | |
| 1757 | shock.Anchored = true | |
| 1758 | shock.Size = vt(0.2,0.2,0.2) | |
| 1759 | local thingshock = Instance.new("SpecialMesh",shock)
| |
| 1760 | thingshock.MeshType = "FileMesh" | |
| 1761 | thingshock.Scale = vt(50,25,50) | |
| 1762 | thingshock.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1763 | local shock2 = Instance.new("Part")
| |
| 1764 | shock2.Parent = las | |
| 1765 | shock2.Material = "Neon" | |
| 1766 | shock2.BrickColor = BrickColor.new("Really red")
| |
| 1767 | shock2.CanCollide = false | |
| 1768 | shock2.Shape = "Ball" | |
| 1769 | shock2.Transparency = 0.5 | |
| 1770 | shock2.CFrame = shur.CFrame | |
| 1771 | shock2.Anchored = true | |
| 1772 | shock2.Size = vt(0.2,0.2,0.2) | |
| 1773 | local thingshock2 = Instance.new("SpecialMesh",shock2)
| |
| 1774 | thingshock2.MeshType = "FileMesh" | |
| 1775 | thingshock2.Scale = vt(85,20,85) | |
| 1776 | thingshock2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1777 | local shock3 = Instance.new("Part")
| |
| 1778 | shock3.Parent = las | |
| 1779 | shock3.Material = "Neon" | |
| 1780 | shock3.BrickColor = BrickColor.new("Really red")
| |
| 1781 | shock3.CanCollide = false | |
| 1782 | shock3.Shape = "Ball" | |
| 1783 | shock3.Transparency = 0.75 | |
| 1784 | shock3.CFrame = shur.CFrame | |
| 1785 | shock3.Anchored = true | |
| 1786 | shock3.Size = vt(0.2,0.2,0.2) | |
| 1787 | local thingshock3 = Instance.new("SpecialMesh",shock3)
| |
| 1788 | thingshock3.MeshType = "FileMesh" | |
| 1789 | thingshock3.Scale = vt(100,15,100) | |
| 1790 | thingshock3.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1791 | local scaleval = 5 | |
| 1792 | game:service'RunService'.RenderStepped:connect(function() | |
| 1793 | scaleval = scaleval - 0.035 | |
| 1794 | boim.CFrame = shur.CFrame | |
| 1795 | bo.Transparency = bo.Transparency + 0.0055 | |
| 1796 | boimmsh.Scale = boimmsh.Scale + vt(1,1,1) | |
| 1797 | boim2.Transparency = boim2.Transparency + 0.00125 | |
| 1798 | thingbo.Scale = thingbo.Scale + vt(scaleval,scaleval,scaleval) | |
| 1799 | shock.CFrame = shock.CFrame*CFrame.Angles(0,0.1,0) | |
| 1800 | shock2.CFrame = shock2.CFrame*CFrame.Angles(0,-0.1,0) | |
| 1801 | shock3.CFrame = shock3.CFrame*CFrame.Angles(0,0.1,0) | |
| 1802 | las.CFrame = shur.CFrame + vt(math.random(-1,1),0,math.random(-1,1)) | |
| 1803 | thing.Scale = thing.Scale + vt(0,5,0) | |
| 1804 | end) | |
| 1805 | for i = 0, 15 do | |
| 1806 | local sa = Instance.new("Sound",char)
| |
| 1807 | sa.SoundId = "rbxassetid://233091205" | |
| 1808 | sa.Volume = 0.85 | |
| 1809 | sa.Pitch = 0.85 | |
| 1810 | sa:Play() | |
| 1811 | local lb = Instance.new("Part")
| |
| 1812 | lb.Parent = las | |
| 1813 | lb.Material = "Neon" | |
| 1814 | lb.BrickColor = BrickColor.new("Really red")
| |
| 1815 | lb.CanCollide = false | |
| 1816 | lb.Shape = "Ball" | |
| 1817 | lb.CFrame = shur.CFrame | |
| 1818 | lb.Anchored = true | |
| 1819 | lb.Size = vt(0.2,0.2,0.2) | |
| 1820 | local thing = Instance.new("SpecialMesh",lb)
| |
| 1821 | thing.MeshType = "FileMesh" | |
| 1822 | thing.Scale = vt(50,25,50) | |
| 1823 | thing.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1824 | local lb3 = Instance.new("Part")
| |
| 1825 | lb3.Parent = las | |
| 1826 | lb3.Material = "Neon" | |
| 1827 | lb3.BrickColor = BrickColor.new("Really red")
| |
| 1828 | lb3.CanCollide = false | |
| 1829 | lb3.Shape = "Ball" | |
| 1830 | lb3.CFrame = shur.CFrame | |
| 1831 | lb3.Anchored = true | |
| 1832 | lb3.Size = vt(0.2,0.2,0.2) | |
| 1833 | local thing3 = Instance.new("SpecialMesh",lb3)
| |
| 1834 | thing3.MeshType = "FileMesh" | |
| 1835 | thing3.Scale = vt(50,30,50) | |
| 1836 | thing3.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1837 | local lb2 = Instance.new("Part")
| |
| 1838 | lb2.Parent = las | |
| 1839 | lb2.Material = "Neon" | |
| 1840 | lb2.BrickColor = BrickColor.new("Really red")
| |
| 1841 | lb2.CanCollide = false | |
| 1842 | lb2.Shape = "Ball" | |
| 1843 | lb2.CFrame = shur.CFrame | |
| 1844 | lb2.Anchored = true | |
| 1845 | lb2.Size = vt(0.2,0.2,0.2) | |
| 1846 | local thing2 = Instance.new("SpecialMesh",lb2)
| |
| 1847 | thing2.MeshType = "FileMesh" | |
| 1848 | thing2.Scale = vt(50,40,50) | |
| 1849 | thing2.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1850 | local ring = Instance.new("Part")
| |
| 1851 | ring.Parent = las | |
| 1852 | ring.Material = "Neon" | |
| 1853 | ring.BrickColor = BrickColor.new("Really red")
| |
| 1854 | ring.CanCollide = false | |
| 1855 | ring.Shape = "Ball" | |
| 1856 | ring.CFrame = shur.CFrame | |
| 1857 | ring.CFrame = ring.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1858 | ring.Anchored = true | |
| 1859 | ring.Size = vt(0.2,0.2,0.2) | |
| 1860 | local thingring = Instance.new("SpecialMesh",ring)
| |
| 1861 | thingring.MeshType = "FileMesh" | |
| 1862 | thingring.Scale = vt(150,150,50) | |
| 1863 | thingring.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1864 | local ring2 = Instance.new("Part")
| |
| 1865 | ring2.Parent = las | |
| 1866 | ring2.Material = "Neon" | |
| 1867 | ring2.BrickColor = BrickColor.new("Really red")
| |
| 1868 | ring2.CanCollide = false | |
| 1869 | ring2.Shape = "Ball" | |
| 1870 | ring2.CFrame = shur.CFrame | |
| 1871 | ring2.CFrame = ring2.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1872 | ring2.Anchored = true | |
| 1873 | ring2.Size = vt(0.2,0.2,0.2) | |
| 1874 | local thingring2 = Instance.new("SpecialMesh",ring2)
| |
| 1875 | thingring2.MeshType = "FileMesh" | |
| 1876 | thingring2.Scale = vt(150,150,50) | |
| 1877 | thingring2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1878 | local circle = Instance.new("Part")
| |
| 1879 | circle.Parent = las | |
| 1880 | circle.Material = "Neon" | |
| 1881 | circle.BrickColor = BrickColor.new("Really red")
| |
| 1882 | circle.CanCollide = false | |
| 1883 | circle.Shape = "Ball" | |
| 1884 | circle.Transparency = 0 | |
| 1885 | circle.Size = vt(125,125,125) | |
| 1886 | circle.CFrame = shur.CFrame | |
| 1887 | circle.Anchored = true | |
| 1888 | local smooth = game:service'RunService'.RenderStepped:connect(function() | |
| 1889 | sa.Volume = sa.Volume - 0.025 | |
| 1890 | thingring.Scale = thingring.Scale + vt(1,1,0) | |
| 1891 | ring.Transparency = ring.Transparency + 0.025 | |
| 1892 | thingring2.Scale = thingring2.Scale + vt(1,1,0) | |
| 1893 | ring2.Transparency = ring2.Transparency + 0.025 | |
| 1894 | circle.Size = circle.Size + vt(1,1,1) | |
| 1895 | circle.Transparency = circle.Transparency + 0.025 | |
| 1896 | circle.CFrame = shur.CFrame | |
| 1897 | lb.CFrame = lb.CFrame*CFrame.Angles(0,-0.05,0) | |
| 1898 | thing.Scale = thing.Scale + vt(5,0,5) | |
| 1899 | lb.Transparency = lb.Transparency + 0.025 | |
| 1900 | lb2.CFrame = lb2.CFrame*CFrame.Angles(0,0.05,0) | |
| 1901 | thing2.Scale = thing2.Scale + vt(3.5,0,3.5) | |
| 1902 | lb2.Transparency = lb2.Transparency + 0.025 | |
| 1903 | lb3.CFrame = lb3.CFrame*CFrame.Angles(0,-0.05,0) | |
| 1904 | thing3.Scale = thing3.Scale + vt(2.5,0,2.5) | |
| 1905 | lb3.Transparency = lb3.Transparency + 0.025 | |
| 1906 | end) | |
| 1907 | wait(1) | |
| 1908 | lb:Destroy() | |
| 1909 | lb2:Destroy() | |
| 1910 | lb3:Destroy() | |
| 1911 | circle:Destroy() | |
| 1912 | ring:Destroy() | |
| 1913 | ring2:Destroy() | |
| 1914 | sa:Destroy() | |
| 1915 | smooth:disconnect() | |
| 1916 | end | |
| 1917 | attack = false | |
| 1918 | hum.WalkSpeed = 16 | |
| 1919 | ex:Destroy() | |
| 1920 | ex2:Destroy() | |
| 1921 | ex3:Destroy() | |
| 1922 | ex4:Destroy() | |
| 1923 | ex5:Destroy() | |
| 1924 | for i = 0, 100 do | |
| 1925 | seen.Volume = seen.Volume - 0.05 | |
| 1926 | thing.Scale = thing.Scale - vt(0.01,0,0.01) | |
| 1927 | thingshock.Scale = thingshock.Scale - vt(1,0,1) | |
| 1928 | thingshock2.Scale = thingshock2.Scale - vt(1,0,1) | |
| 1929 | thingshock3.Scale = thingshock3.Scale - vt(1,0,1) | |
| 1930 | las.Transparency = las.Transparency + 0.025 | |
| 1931 | shock.Transparency = shock.Transparency + 0.025 | |
| 1932 | shock2.Transparency = shock2.Transparency + 0.025 | |
| 1933 | shock3.Transparency = shock3.Transparency + 0.025 | |
| 1934 | dec.Transparency = dec.Transparency + 0.015 | |
| 1935 | dec2.Transparency = dec.Transparency | |
| 1936 | Meshshur.Scale = Meshshur.Scale + vt(value1,0,value1) | |
| 1937 | value1 = value1 - 0.015*5 | |
| 1938 | wait(0) | |
| 1939 | end | |
| 1940 | shur:Destroy() | |
| 1941 | gahd:Destroy() | |
| 1942 | ff:Destroy() | |
| 1943 | las:Destroy() | |
| 1944 | end | |
| 1945 | ||
| 1946 | attackcombo = 0 | |
| 1947 | ||
| 1948 | mouse.Button1Down:connect(function() | |
| 1949 | if hold == false then | |
| 1950 | if attack == false and attackcombo == 0 then | |
| 1951 | attackcombo = 1 | |
| 1952 | attackone() | |
| 1953 | elseif attack == false and attackcombo == 1 then | |
| 1954 | attackcombo = 2 | |
| 1955 | attacktwo() | |
| 1956 | elseif attack == false and attackcombo == 2 then | |
| 1957 | attackcombo = 3 | |
| 1958 | attackthree() | |
| 1959 | elseif attack == false and attackcombo == 3 then | |
| 1960 | attackcombo = 0 | |
| 1961 | attackfour() | |
| 1962 | end | |
| 1963 | end | |
| 1964 | if attack == true and hold == true then | |
| 1965 | hold = false | |
| 1966 | end | |
| 1967 | end) | |
| 1968 | mouse.KeyDown:connect(function(key) | |
| 1969 | if key == "z" and attack == false and hold == false then | |
| 1970 | hold = true | |
| 1971 | do1() | |
| 1972 | elseif key == "x" and attack == false then | |
| 1973 | do2() | |
| 1974 | elseif key == "c" and attack == false then | |
| 1975 | do3() | |
| 1976 | elseif key == "v" and attack == false then | |
| 1977 | do4() | |
| 1978 | elseif key == "q" and attack == false and plr.Name == "elementman124" then | |
| 1979 | doSpecial() | |
| 1980 | end | |
| 1981 | end) | |
| 1982 | char.Humanoid.Animator.Parent = nil | |
| 1983 | ||
| 1984 | game:GetService("RunService").Stepped:connect(function()
| |
| 1985 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1986 | velocity = RootPart.Velocity.y | |
| 1987 | sine = sine + change | |
| 1988 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
| 1989 | if equipped == true or equipped == false then | |
| 1990 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1991 | Anim = "Jump" | |
| 1992 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1993 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1994 | if attack == false then | |
| 1995 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1996 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 1997 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(25)), 0.3) | |
| 1998 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-25)), 0.3) | |
| 1999 | end | |
| 2000 | else | |
| 2001 | if RootPart.Velocity.y < -1 and hit == nil then | |
| 2002 | Anim = "Fall" | |
| 2003 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 2004 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 2005 | if attack == false then | |
| 2006 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2007 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3) | |
| 2008 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(25)), 0.3) | |
| 2009 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-25)), 0.3) | |
| 2010 | end | |
| 2011 | else | |
| 2012 | if Torsovelocity < 1 and hit ~= nil then | |
| 2013 | Anim = "Idle" | |
| 2014 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(-20),math.rad(0)),.3) | |
| 2015 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 2016 | if attack == false then | |
| 2017 | change = 1 | |
| 2018 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))* angles(math.rad(0),math.rad(0),math.rad(10)),.3) | |
| 2019 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-10)),.3) | |
| 2020 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(10 - 2.5 * math.cos(sine / 32))), 0.3) | |
| 2021 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 + 2.5 * math.cos(sine / 32))), 0.3) | |
| 2022 | end | |
| 2023 | else | |
| 2024 | if Torsovelocity > 2 and hit ~= nil then | |
| 2025 | Anim = "Walk" | |
| 2026 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 50 * math.cos(sine / 6))),.3) | |
| 2027 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 50 * math.cos(sine / 6))),.3) | |
| 2028 | if attack == false then | |
| 2029 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 2.5))* angles(math.rad(15),math.rad(0),math.rad(0)),.3) | |
| 2030 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 2031 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(75 + 1.5 * math.cos(sine / 5)), math.rad(75), math.rad(10)), 0.3) | |
| 2032 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0 - 25 * math.cos(sine / 5)), math.rad(0), math.rad(-10)), 0.3) | |
| 2033 | end | |
| 2034 | end | |
| 2035 | end | |
| 2036 | end | |
| 2037 | end | |
| 2038 | end | |
| 2039 | end) | |
| 2040 | end |