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