SHOW:
|
|
- or go back to the newest paste.
| 1 | This script has been converted to FE by iPxter | |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | - | Player=game:GetService("Players").LocalPlayer
|
| 7 | + | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
|
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | - | mouse=Player:GetMouse() |
| 62 | + | local Player = owner, |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | ----------------- | |
| 88 | --some sin thing-- | |
| 89 | -------------------------------------------------------------- | |
| 90 | --By CKbackup (Sugarie Saffron), credits to original creator-- | |
| 91 | -------------------------------------------------------------- | |
| 92 | ||
| 93 | Player= owner | |
| 94 | Character=Player.Character | |
| 95 | PlayerGui=Player.PlayerGui | |
| 96 | Backpack=Player.Backpack | |
| 97 | Torso=Character.Torso | |
| 98 | Head=Character.Head | |
| 99 | Humanoid=Character:FindFirstChildOfClass("Humanoid")
| |
| 100 | m=Instance.new('Model',Character)
| |
| 101 | LeftArm=Character["Left Arm"] | |
| 102 | LeftLeg=Character["Left Leg"] | |
| 103 | RightArm=Character["Right Arm"] | |
| 104 | RightLeg=Character["Right Leg"] | |
| 105 | LS=Torso["Left Shoulder"] | |
| 106 | LH=Torso["Left Hip"] | |
| 107 | RS=Torso["Right Shoulder"] | |
| 108 | RH=Torso["Right Hip"] | |
| 109 | Face = Head.face | |
| 110 | Neck=Torso.Neck | |
| 111 | it=Instance.new | |
| 112 | attacktype=1 | |
| 113 | vt=Vector3.new | |
| 114 | cf=CFrame.new | |
| 115 | euler=CFrame.fromEulerAnglesXYZ | |
| 116 | angles=CFrame.Angles | |
| 117 | cloaked=false | |
| 118 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 119 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 120 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 121 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 122 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 123 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 124 | RootPart=Character.HumanoidRootPart | |
| 125 | RootJoint=RootPart.RootJoint | |
| 126 | RootCF=euler(-1.57,0,3.14) | |
| 127 | attack = false | |
| 128 | attackdebounce = false | |
| 129 | deb=false | |
| 130 | equipped=true | |
| 131 | hand=false | |
| 132 | MMouse=nil | |
| 133 | combo=0 | |
| 134 | trispeed=1 | |
| 135 | pathtrans=.7 | |
| 136 | attackmode='none' | |
| 137 | local idle=0 | |
| 138 | local Anim="Idle" | |
| 139 | local Effects={}
| |
| 140 | local gun=false | |
| 141 | local shoot=false | |
| 142 | player=nil | |
| 143 | cloak=false | |
| 144 | lightcolor='Royal purple' | |
| 145 | ||
| 146 | local Color1=Torso.BrickColor | |
| 147 | ||
| 148 | ||
| 149 | --save shoulders | |
| 150 | RSH, LSH=nil, nil | |
| 151 | --welds | |
| 152 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 153 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 154 | LH=Torso["Left Hip"] | |
| 155 | RH=Torso["Right Hip"] | |
| 156 | TorsoColor=BrickColor.new("Royal purple")
| |
| 157 | function NoOutline(Part) | |
| 158 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 159 | end | |
| 160 | player=Player | |
| 161 | ch=Character | |
| 162 | RSH=ch.Torso["Right Shoulder"] | |
| 163 | LSH=ch.Torso["Left Shoulder"] | |
| 164 | -- | |
| 165 | RSH.Parent=nil | |
| 166 | LSH.Parent=nil | |
| 167 | -- | |
| 168 | RW.Name="Right Shoulder" | |
| 169 | RW.Part0=ch.Torso | |
| 170 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 171 | RW.C1=cf(0, 0.5, 0) | |
| 172 | RW.Part1=ch["Right Arm"] | |
| 173 | RW.Parent=ch.Torso | |
| 174 | -- | |
| 175 | LW.Name="Left Shoulder" | |
| 176 | LW.Part0=ch.Torso | |
| 177 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 178 | LW.C1=cf(0, 0.5, 0) | |
| 179 | LW.Part1=ch["Left Arm"] | |
| 180 | LW.Parent=ch.Torso | |
| 181 | ||
| 182 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 183 | local fp=it("Part")
| |
| 184 | fp.formFactor=formfactor | |
| 185 | fp.Parent=parent | |
| 186 | fp.Reflectance=reflectance | |
| 187 | fp.Transparency=transparency | |
| 188 | fp.CanCollide=false | |
| 189 | fp.Locked=true | |
| 190 | fp.BrickColor=brickcolor | |
| 191 | fp.Name=name | |
| 192 | fp.Size=size | |
| 193 | fp.Position=Torso.Position | |
| 194 | NoOutline(fp) | |
| 195 | fp.Material="Neon" | |
| 196 | fp:BreakJoints() | |
| 197 | return fp | |
| 198 | end | |
| 199 | ||
| 200 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 201 | local mesh=it(Mesh) | |
| 202 | mesh.Parent=part | |
| 203 | if Mesh=="SpecialMesh" then | |
| 204 | mesh.MeshType=meshtype | |
| 205 | if meshid~="nil" then | |
| 206 | mesh.MeshId="rbxassetid://"..meshid | |
| 207 | end | |
| 208 | end | |
| 209 | mesh.Offset=offset | |
| 210 | mesh.Scale=scale | |
| 211 | return mesh | |
| 212 | end | |
| 213 | ||
| 214 | function weld(parent,part0,part1,c0) | |
| 215 | local weld=it("Weld")
| |
| 216 | weld.Parent=parent | |
| 217 | weld.Part0=part0 | |
| 218 | weld.Part1=part1 | |
| 219 | weld.C0=c0 | |
| 220 | return weld | |
| 221 | end | |
| 222 | ||
| 223 | local Color1=Torso.BrickColor | |
| 224 | ||
| 225 | local bodvel=Instance.new("BodyVelocity")
| |
| 226 | local bg=Instance.new("BodyGyro")
| |
| 227 | ||
| 228 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 229 | ArtificialHB.Name = "Heartbeat" | |
| 230 | script:WaitForChild("Heartbeat")
| |
| 231 | frame = 0.015 | |
| 232 | tf = 0 | |
| 233 | allowframeloss = false | |
| 234 | tossremainder = false | |
| 235 | lastframe = tick() | |
| 236 | script.Heartbeat:Fire() | |
| 237 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 238 | tf = tf + s | |
| 239 | if tf >= frame then | |
| 240 | if allowframeloss then | |
| 241 | script.Heartbeat:Fire() | |
| 242 | lastframe = tick() | |
| 243 | else | |
| 244 | for i = 1, math.floor(tf / frame) do | |
| 245 | script.Heartbeat:Fire() | |
| 246 | end | |
| 247 | lastframe = tick() | |
| 248 | end | |
| 249 | if tossremainder then | |
| 250 | tf = 0 | |
| 251 | else | |
| 252 | tf = tf - frame * math.floor(tf / frame) | |
| 253 | end | |
| 254 | end | |
| 255 | end) | |
| 256 | function swait(num) | |
| 257 | if num == 0 or num == nil then | |
| 258 | ArtificialHB.Event:wait(0) | |
| 259 | else | |
| 260 | for i = 0, num do | |
| 261 | ArtificialHB.Event:wait(0) | |
| 262 | end | |
| 263 | end | |
| 264 | end | |
| 265 | ||
| 266 | ||
| 267 | function so(id,par,pit,vol) | |
| 268 | local sou = Instance.new("Sound", par or workspace)
| |
| 269 | if par == Character then | |
| 270 | sou.Parent = Torso | |
| 271 | end | |
| 272 | sou.Volume = vol | |
| 273 | sou.Pitch = pit or 1 | |
| 274 | sou.SoundId = "rbxassetid://" .. id | |
| 275 | sou.PlayOnRemove = true | |
| 276 | sou:Destroy() | |
| 277 | end | |
| 278 | ||
| 279 | function clerp(a,b,t) | |
| 280 | local qa = {QuaternionFromCFrame(a)}
| |
| 281 | local qb = {QuaternionFromCFrame(b)}
| |
| 282 | local ax, ay, az = a.x, a.y, a.z | |
| 283 | local bx, by, bz = b.x, b.y, b.z | |
| 284 | local _t = 1-t | |
| 285 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 286 | end | |
| 287 | ||
| 288 | function QuaternionFromCFrame(cf) | |
| 289 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 290 | local trace = m00 + m11 + m22 | |
| 291 | if trace > 0 then | |
| 292 | local s = math.sqrt(1 + trace) | |
| 293 | local recip = 0.5/s | |
| 294 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 295 | else | |
| 296 | local i = 0 | |
| 297 | if m11 > m00 then | |
| 298 | i = 1 | |
| 299 | end | |
| 300 | if m22 > (i == 0 and m00 or m11) then | |
| 301 | i = 2 | |
| 302 | end | |
| 303 | if i == 0 then | |
| 304 | local s = math.sqrt(m00-m11-m22+1) | |
| 305 | local recip = 0.5/s | |
| 306 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 307 | elseif i == 1 then | |
| 308 | local s = math.sqrt(m11-m22-m00+1) | |
| 309 | local recip = 0.5/s | |
| 310 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 311 | elseif i == 2 then | |
| 312 | local s = math.sqrt(m22-m00-m11+1) | |
| 313 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 314 | end | |
| 315 | end | |
| 316 | end | |
| 317 | ||
| 318 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 319 | local xs, ys, zs = x + x, y + y, z + z | |
| 320 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 321 | local xx = x*xs | |
| 322 | local xy = x*ys | |
| 323 | local xz = x*zs | |
| 324 | local yy = y*ys | |
| 325 | local yz = y*zs | |
| 326 | local zz = z*zs | |
| 327 | 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)) | |
| 328 | end | |
| 329 | ||
| 330 | function QuaternionSlerp(a, b, t) | |
| 331 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 332 | local startInterp, finishInterp; | |
| 333 | if cosTheta >= 0.0001 then | |
| 334 | if (1 - cosTheta) > 0.0001 then | |
| 335 | local theta = math.acos(cosTheta) | |
| 336 | local invSinTheta = 1/math.sin(theta) | |
| 337 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 338 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 339 | else | |
| 340 | startInterp = 1-t | |
| 341 | finishInterp = t | |
| 342 | end | |
| 343 | else | |
| 344 | if (1+cosTheta) > 0.0001 then | |
| 345 | local theta = math.acos(-cosTheta) | |
| 346 | local invSinTheta = 1/math.sin(theta) | |
| 347 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 348 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 349 | else | |
| 350 | startInterp = t-1 | |
| 351 | finishInterp = t | |
| 352 | end | |
| 353 | end | |
| 354 | 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 | |
| 355 | end | |
| 356 | ||
| 357 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 358 | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
| 359 | end | |
| 360 | ||
| 361 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
| 362 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 363 | prt.Anchored=true | |
| 364 | prt.CFrame=cframe | |
| 365 | local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://4770583",vt(0,0,0),vt(x1,y1,z1))
| |
| 366 | --rbxassetid://4770560 | |
| 367 | game:GetService("Debris"):AddItem(prt,2)
| |
| 368 | CF=prt.CFrame | |
| 369 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
| 370 | for i=0,1,0.2 do | |
| 371 | swait() | |
| 372 | Part.CFrame=CF*cf(0,0,-0.4) | |
| 373 | end | |
| 374 | for i=0,1,delay do | |
| 375 | swait() | |
| 376 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
| 377 | Mesh.Scale=Mesh.Scale | |
| 378 | end | |
| 379 | for i=0,1,0.1 do | |
| 380 | swait() | |
| 381 | Part.Transparency=i | |
| 382 | end | |
| 383 | Part:Destroy() | |
| 384 | end),prt,msh,CF) | |
| 385 | end | |
| 386 | ||
| 387 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 388 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 389 | prt.Anchored=true | |
| 390 | prt.CFrame=cframe | |
| 391 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 392 | game:GetService("Debris"):AddItem(prt,5)
| |
| 393 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 394 | for i=0,1,delay do | |
| 395 | swait() | |
| 396 | Part.CFrame=Part.CFrame*euler(math.random(0,360),math.random(0,360),math.random(0,360)) | |
| 397 | Part.Transparency=i | |
| 398 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 399 | end | |
| 400 | Part:Destroy() | |
| 401 | end),prt,msh) | |
| 402 | end | |
| 403 | ||
| 404 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 405 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 406 | prt.Anchored=false | |
| 407 | prt.CFrame=cframe | |
| 408 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 409 | local wld=weld(prt,prt,Parent,cframe) | |
| 410 | game:GetService("Debris"):AddItem(prt,5)
| |
| 411 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 412 | for i=0,1,delay do | |
| 413 | swait() | |
| 414 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
| 415 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 416 | Part.Transparency=i | |
| 417 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 418 | end | |
| 419 | Part:Destroy() | |
| 420 | end),prt,msh,wld) | |
| 421 | end | |
| 422 | ||
| 423 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 424 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 425 | prt.Material = "Neon" | |
| 426 | prt.Anchored=false | |
| 427 | prt.CFrame=cframe | |
| 428 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 429 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
| 430 | game:GetService("Debris"):AddItem(prt,5)
| |
| 431 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 432 | for i=0,1,delay do | |
| 433 | swait() | |
| 434 | Weld.C0=euler(i*20,0,0) | |
| 435 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 436 | Part.Transparency=i | |
| 437 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 438 | end | |
| 439 | Part:Destroy() | |
| 440 | end),prt,msh,wld) | |
| 441 | end | |
| 442 | ||
| 443 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 444 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 445 | prt.Material = "Neon" | |
| 446 | prt.Anchored=true | |
| 447 | prt.CFrame=cframe | |
| 448 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 449 | game:GetService("Debris"):AddItem(prt,2)
| |
| 450 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 451 | for i=0,1,delay do | |
| 452 | swait() | |
| 453 | Part.CFrame=Part.CFrame | |
| 454 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 455 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 456 | prt2.Anchored=true | |
| 457 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 458 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
| |
| 459 | game:GetService("Debris"):AddItem(prt2,2)
| |
| 460 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 461 | for i=0,1,0.1 do | |
| 462 | swait() | |
| 463 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
| 464 | end | |
| 465 | Part:Destroy() | |
| 466 | end),prt2,msh2) | |
| 467 | end | |
| 468 | for i=0,1,delay*2 do | |
| 469 | swait() | |
| 470 | Part.CFrame=Part.CFrame | |
| 471 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
| 472 | end | |
| 473 | Part:Destroy() | |
| 474 | end),prt,msh) | |
| 475 | end | |
| 476 | ||
| 477 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 478 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 479 | prt.Anchored=true | |
| 480 | prt.CFrame=cframe | |
| 481 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 482 | game:GetService("Debris"):AddItem(prt,2)
| |
| 483 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 484 | for i=0,1,delay do | |
| 485 | swait() | |
| 486 | Part.CFrame=Part.CFrame | |
| 487 | Part.Transparency=i | |
| 488 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 489 | end | |
| 490 | Part:Destroy() | |
| 491 | end),prt,msh) | |
| 492 | end | |
| 493 | ||
| 494 | function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3) | |
| 495 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 496 | prt.Anchored=true | |
| 497 | prt.CFrame=cframe*euler(x2,y2,z2) | |
| 498 | --"rbxassetid://168892465" | |
| 499 | local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://3270017",vt(0,0,0),vt(x1,y1,z1))
| |
| 500 | game:GetService("Debris"):AddItem(prt,2)
| |
| 501 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 502 | for i=0,1,0.03 do | |
| 503 | swait() | |
| 504 | Part.CFrame=Part.CFrame | |
| 505 | Part.Transparency=i | |
| 506 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 507 | end | |
| 508 | Part:Destroy() | |
| 509 | end),prt,msh) | |
| 510 | end | |
| 511 | ||
| 512 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
| 513 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 514 | prt.Anchored=true | |
| 515 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 516 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 517 | game:GetService("Debris"):AddItem(prt,2)
| |
| 518 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
| 519 | CF=Part.CFrame | |
| 520 | Numbb=0 | |
| 521 | randnumb=math.random()/10 | |
| 522 | rand1=math.random()/10 | |
| 523 | for i=0,1,rand1 do | |
| 524 | swait() | |
| 525 | CF=CF*cf(0,math.random()/2,0) | |
| 526 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
| 527 | Part.CFrame=CF*euler(Numbb,0,0) | |
| 528 | Part.Transparency=i | |
| 529 | Numbb=Numbb+randnumb | |
| 530 | end | |
| 531 | Part:Destroy() | |
| 532 | end),prt,CF,Numbb,randnumb) | |
| 533 | end | |
| 534 | - | c.Value=game:service("Players").LocalPlayer
|
| 534 | + | |
| 535 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 536 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 537 | prt.Anchored=true | |
| 538 | prt.CFrame=cframe | |
| 539 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://1051557",vt(0,0,0),vt(x1,y1,z1))
| |
| 540 | game:GetService("Debris"):AddItem(prt,5)
| |
| 541 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 542 | for i=0,1,delay do | |
| 543 | swait() | |
| 544 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
| 545 | Part.Transparency=i | |
| 546 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 547 | end | |
| 548 | Part:Destroy() | |
| 549 | end),prt,msh) | |
| 550 | end | |
| 551 | ||
| 552 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 553 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 554 | prt.Anchored=true | |
| 555 | prt.CFrame=cframe | |
| 556 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://20329976",vt(0,0,0),vt(x1,y1,z1))
| |
| 557 | game:GetService("Debris"):AddItem(prt,2)
| |
| 558 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 559 | for i=0,1,delay do | |
| 560 | swait() | |
| 561 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
| 562 | Part.Transparency=i | |
| 563 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 564 | end | |
| 565 | Part:Destroy() | |
| 566 | end),prt,msh) | |
| 567 | end | |
| 568 | ||
| 569 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
| 570 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 571 | prt.Anchored=true | |
| 572 | prt.CFrame=cframe*cf(x,y,z) | |
| 573 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
| |
| 574 | game:GetService("Debris"):AddItem(prt,5)
| |
| 575 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
| 576 | local num=math.random() | |
| 577 | local num2=math.random(-3,2)+math.random() | |
| 578 | local numm=0 | |
| 579 | for i=0,1,delay*2 do | |
| 580 | swait() | |
| 581 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
| 582 | Part.Transparency=i | |
| 583 | numm=numm+0.01 | |
| 584 | end | |
| 585 | Part:Destroy() | |
| 586 | Mesh:Destroy() | |
| 587 | end),prt,msh,x,y,z) | |
| 588 | end | |
| 589 | ||
| 590 | function puncheff(par) | |
| 591 | so(386946017,par,math.random(80,120)/100,1) | |
| 592 | MagicCircle(BrickColor.new("Alder"), par.CFrame, 1, 1, 1, 1, 1, 1, 0.05)
| |
| 593 | end | |
| 594 | ||
| 595 | Damagefunc=function(hit,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 596 | if hit.Parent==nil then | |
| 597 | return | |
| 598 | end | |
| 599 | local torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
| |
| 600 | h=hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 601 | for _,v in pairs(hit.Parent:children()) do | |
| 602 | if v:IsA("Humanoid") then
| |
| 603 | h=v | |
| 604 | end | |
| 605 | end | |
| 606 | if hit.Parent.Parent:FindFirstChild("Head")~=nil then
| |
| 607 | h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 608 | end | |
| 609 | if hit.Parent.className=="Hat" then | |
| 610 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 611 | end | |
| 612 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Head")~=nil then
| |
| 613 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 614 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 615 | return | |
| 616 | end]] | |
| 617 | -- hs(hit,1.2) | |
| 618 | c=Instance.new("ObjectValue")
| |
| 619 | c.Name="creator" | |
| 620 | c.Value=owner | |
| 621 | c.Parent=h | |
| 622 | game:GetService("Debris"):AddItem(c,.5)
| |
| 623 | Damage=math.random(minim,maxim) | |
| 624 | -- h:TakeDamage(Damage) | |
| 625 | blocked=false | |
| 626 | block=hit.Parent:findFirstChild("Block")
| |
| 627 | if block~=nil then | |
| 628 | print(block.className) | |
| 629 | if block.className=="NumberValue" then | |
| 630 | if block.Value>0 then | |
| 631 | blocked=true | |
| 632 | if decreaseblock==nil then | |
| 633 | block.Value=block.Value-1 | |
| 634 | end | |
| 635 | end | |
| 636 | end | |
| 637 | if block.className=="IntValue" then | |
| 638 | if block.Value>0 then | |
| 639 | blocked=true | |
| 640 | if decreaseblock~=nil then | |
| 641 | block.Value=block.Value-1 | |
| 642 | end | |
| 643 | end | |
| 644 | end | |
| 645 | end | |
| 646 | if efft == "Blunt" then | |
| 647 | puncheff(hit) | |
| 648 | end | |
| 649 | h.MaxHealth = 100 | |
| 650 | h.Health=h.Health-Damage | |
| 651 | showDamage(hit.Parent,Damage,.5,TorsoColor) | |
| 652 | if Type=="Knockdown" then | |
| 653 | local hum=hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 654 | hum.PlatformStand=true | |
| 655 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 656 | swait(30) | |
| 657 | HHumanoid.PlatformStand=false | |
| 658 | end),hum) | |
| 659 | local bodvol=Instance.new("BodyVelocity")
| |
| 660 | bodvol.velocity=RootPart.CFrame.lookVector*knockback | |
| 661 | bodvol.P=50000 | |
| 662 | bodvol.maxForce=Vector3.new(5000, 0, 5000) * 5000000000 | |
| 663 | bodvol.Parent=torsy | |
| 664 | torsy.CFrame = CFrame.new(torsy.Position)*CFrame.Angles(math.rad(90),0,0) | |
| 665 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 666 | elseif Type=="Normal" then | |
| 667 | vp=Instance.new("BodyVelocity")
| |
| 668 | vp.P=500 | |
| 669 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 670 | vp.velocity=Character.Torso.CFrame.lookVector*knockback | |
| 671 | -- if KnockbackType==1 then | |
| 672 | -- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 673 | -- elseif KnockbackType==2 then | |
| 674 | -- vp.velocity=Property.CFrame.lookVector*knockback | |
| 675 | -- end | |
| 676 | if knockback>0 then | |
| 677 | vp.Parent=torsy | |
| 678 | end | |
| 679 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 680 | elseif Type=="Up" then | |
| 681 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 682 | bodyVelocity.velocity=vt(0,10,0) | |
| 683 | bodyVelocity.P=1000 | |
| 684 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
| 685 | bodyVelocity.Parent=hit | |
| 686 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 687 | rl=Instance.new("BodyAngularVelocity")
| |
| 688 | rl.P=3000 | |
| 689 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 690 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
| 691 | rl.Parent=hit | |
| 692 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 693 | elseif Type=="Snare" then | |
| 694 | bp=Instance.new("BodyPosition")
| |
| 695 | bp.P=2000 | |
| 696 | bp.D=100 | |
| 697 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 698 | - | Player=game:GetService('Players').LocalPlayer
|
| 698 | + | |
| 699 | bp.Parent=torsy | |
| 700 | - | Mouse=Player:GetMouse() |
| 700 | + | |
| 701 | elseif Type=="Target" then | |
| 702 | if Targetting==false then | |
| 703 | ZTarget=torsy | |
| 704 | coroutine.resume(coroutine.create(function(Part) | |
| 705 | so("15666462",Part,1,1.5)
| |
| 706 | swait(5) | |
| 707 | so("15666462",Part,1,1.5)
| |
| 708 | end),ZTarget) | |
| 709 | TargHum=ZTarget.Parent:FindFirstChildOfClass("Humanoid")
| |
| 710 | targetgui=Instance.new("BillboardGui")
| |
| 711 | targetgui.Parent=ZTarget | |
| 712 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 713 | targ=Instance.new("ImageLabel")
| |
| 714 | targ.Parent=targetgui | |
| 715 | targ.BackgroundTransparency=1 | |
| 716 | targ.Image="rbxassetid://4834067" | |
| 717 | targ.Size=UDim2.new(1,0,1,0) | |
| 718 | cam.CameraType="Scriptable" | |
| 719 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 720 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 721 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 722 | Targetting=true | |
| 723 | RocketTarget=ZTarget | |
| 724 | for i=1,Property do | |
| 725 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 726 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 727 | swait() | |
| 728 | end | |
| 729 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 730 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 731 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 732 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 733 | end | |
| 734 | Targetting=false | |
| 735 | RocketTarget=nil | |
| 736 | targetgui:Destroy() | |
| 737 | cam.CameraType="Custom" | |
| 738 | end | |
| 739 | end | |
| 740 | debounce=Instance.new("BoolValue")
| |
| 741 | debounce.Name="DebounceHit" | |
| 742 | debounce.Parent=hit.Parent | |
| 743 | debounce.Value=true | |
| 744 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 745 | c=Instance.new("ObjectValue")
| |
| 746 | c.Name="creator" | |
| 747 | c.Value=Player | |
| 748 | c.Parent=h | |
| 749 | game:GetService("Debris"):AddItem(c,.5)
| |
| 750 | CRIT=false | |
| 751 | hitDeb=true | |
| 752 | AttackPos=6 | |
| 753 | end | |
| 754 | end | |
| 755 | ||
| 756 | function showDamage(Dude, Text, Time, Color) | |
| 757 | coroutine.resume(coroutine.create(function() | |
| 758 | local naeeym2 = Instance.new("BillboardGui",Dude)
| |
| 759 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 760 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 761 | naeeym2.Adornee = Dude.Head | |
| 762 | naeeym2.Name = "TalkingBillBoard" | |
| 763 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 764 | tecks2.BackgroundTransparency = 1 | |
| 765 | tecks2.BorderSizePixel = 0 | |
| 766 | tecks2.Text = Text | |
| 767 | tecks2.Font = "Fantasy" | |
| 768 | tecks2.TextSize = 24 | |
| 769 | tecks2.TextStrokeTransparency = 0 | |
| 770 | tecks2.TextColor3 = Color3.new(.8,0,1) | |
| 771 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 772 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 773 | swait(10) | |
| 774 | for i = 0,1,.05 do | |
| 775 | swait() | |
| 776 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0) | |
| 777 | tecks2.TextStrokeTransparency = i | |
| 778 | tecks2.TextTransparency = i | |
| 779 | end | |
| 780 | naeeym2:Destroy() | |
| 781 | end)) | |
| 782 | end | |
| 783 | ||
| 784 | Player=owner | |
| 785 | Character=Player.Character | |
| 786 | ||
| 787 | m=Instance.new('Model',Character)
| |
| 788 | ||
| 789 | ||
| 790 | local function weldBetween(a, b) | |
| 791 | local weldd = Instance.new("ManualWeld")
| |
| 792 | weldd.Part0 = a | |
| 793 | weldd.Part1 = b | |
| 794 | weldd.C0 = CFrame.new() | |
| 795 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 796 | weldd.Parent = a | |
| 797 | return weldd | |
| 798 | end | |
| 799 | ||
| 800 | it=Instance.new | |
| 801 | ||
| 802 | function nooutline(part) | |
| 803 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
| 804 | end | |
| 805 | ||
| 806 | function parta(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
| 807 | local fp=it("Part")
| |
| 808 | fp.formFactor=formfactor | |
| 809 | fp.Parent=parent | |
| 810 | fp.Reflectance=reflectance | |
| 811 | fp.Transparency=transparency | |
| 812 | fp.CanCollide=false | |
| 813 | fp.Locked=true | |
| 814 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
| 815 | fp.Name=name | |
| 816 | fp.Size=size | |
| 817 | fp.Position=Character.Torso.Position | |
| 818 | nooutline(fp) | |
| 819 | fp.Material=material | |
| 820 | fp:BreakJoints() | |
| 821 | return fp | |
| 822 | end | |
| 823 | ||
| 824 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 825 | local mesh=it(Mesh) | |
| 826 | mesh.Parent=part | |
| 827 | if Mesh=="SpecialMesh" then | |
| 828 | mesh.MeshType=meshtype | |
| 829 | mesh.MeshId=meshid | |
| 830 | end | |
| 831 | mesh.Offset=offset | |
| 832 | mesh.Scale=scale | |
| 833 | return mesh | |
| 834 | end | |
| 835 | ||
| 836 | function weld(parent,part0,part1,c0,c1) | |
| 837 | local weld=it("Weld")
| |
| 838 | weld.Parent=parent | |
| 839 | weld.Part0=part0 | |
| 840 | weld.Part1=part1 | |
| 841 | weld.C0=c0 | |
| 842 | weld.C1=c1 | |
| 843 | return weld | |
| 844 | end | |
| 845 | ||
| 846 | local modelzorz=Instance.new("Model")
| |
| 847 | modelzorz.Parent=Character | |
| 848 | modelzorz.Name="Claw1" | |
| 849 | ||
| 850 | Handle=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1)) | |
| 851 | Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963)) | |
| 852 | Gear=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
| 853 | Gearweld=weld(modelzorz,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086)) | |
| 854 | ||
| 855 | local modelzorz2=Instance.new("Model")
| |
| 856 | modelzorz2.Parent=Character | |
| 857 | modelzorz2.Name="Claw2" | |
| 858 | ||
| 859 | Handle2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1)) | |
| 860 | Handle2weld=weld(modelzorz2,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559)) | |
| 861 | Gear2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
| 862 | Gear2weld=weld(modelzorz2,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636)) | |
| 863 | ||
| 864 | local modelzorz3=Instance.new("Model")
| |
| 865 | modelzorz3.Parent=Character | |
| 866 | modelzorz3.Name="Eye" | |
| 867 | ||
| 868 | handle=parta(Enum.FormFactor.Custom,modelzorz3,Enum.Material.SmoothPlastic,0,1,TorsoColor,"Handle",Vector3.new(1,6,6)) | |
| 869 | handleweld=weld(modelzorz3,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
| 870 | ||
| 871 | New = function(Object, Parent, Name, Data) | |
| 872 | local Object = Instance.new(Object) | |
| 873 | for Index, Value in pairs(Data or {}) do
| |
| 874 | Object[Index] = Value | |
| 875 | end | |
| 876 | Object.Parent = Parent | |
| 877 | Object.Name = Name | |
| 878 | return Object | |
| 879 | end | |
| 880 | ||
| 881 | Gear2 = New("Part",modelzorz2,"Gear2",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(5, 7, 5),CFrame = CFrame.new(68.5, 2.5, -42.5, 0, 0, -1, -1, 0, 0, 0, 1, 0),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 882 | Mesh = New("SpecialMesh",Gear2,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://92052865",MeshType = Enum.MeshType.FileMesh,})
| |
| 883 | Weld = New("ManualWeld",Gear2,"Weld",{Part0 = Gear2,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, 1, -1, 0, 0),C1 = CFrame.new(0, 3.57627869e-06, 2.99999237, 0.999991357, -6.94066244e-08, 4.63798642e-07, 6.63525327e-07, -0.999994934, -2.62497252e-07, 2.04890966e-08, 2.84217094e-13, -0.999997139),})
| |
| 884 | Gear = New("Part",modelzorz,"Gear",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(5, 7, 5),CFrame = CFrame.new(78.5, 2.5, -42.5, 0, 0, 1, 1, 0, 0, 0, 1, 0),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 885 | Mesh = New("SpecialMesh",Gear,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://92053026",MeshType = Enum.MeshType.FileMesh,})
| |
| 886 | Weld = New("ManualWeld",Gear,"Weld",{Part0 = Gear,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0),C1 = CFrame.new(0, 3.57627869e-06, 2.99999237, 0.999991357, -6.94066244e-08, 4.63798642e-07, 6.63525327e-07, -0.999994934, -2.62497252e-07, 2.04890966e-08, 2.84217094e-13, -0.999997139),})
| |
| 887 | DragonHead = New("Part",modelzorz3,"DragonHead",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(72.5999985, 5.5999999, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 888 | Mesh = New("SpecialMesh",DragonHead,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.FileMesh,})
| |
| 889 | Weld = New("ManualWeld",DragonHead,"Weld",{Part0 = DragonHead,Part1 = handle,C1 = CFrame.new(-4, 0, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
| |
| 890 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(70.0999985, 8.60000038, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.384314, 0.145098, 0.819608),})
| |
| 891 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(1, 1, 2),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,})
| |
| 892 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4, 3.00000048, 2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
| |
| 893 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(75.0999985, 8.60000038, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.384314, 0.145098, 0.819608),})
| |
| 894 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(1, 1, 2),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,})
| |
| 895 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4, 3.00000048, -2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
| |
| 896 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(70.0999985, 8.60000038, -64.0999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 897 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(0.899999976, 0.899999976, 0.5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,})
| |
| 898 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4.5, 3.00000048, 2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
| |
| 899 | EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(75.0999985, 8.60000038, -64.0999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 900 | Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(0.899999976, 0.899999976, 0.5),MeshId = "rbxassetid://420164161",MeshType = Enum.MeshType.Sphere,})
| |
| 901 | Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4.5, 3.00000048, -2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
| |
| 902 | ||
| 903 | ||
| 904 | local moosick = it("Sound",Character)
| |
| 905 | moosick.SoundId = "rbxassetid://608726256" | |
| 906 | --142653441, 175067863 | |
| 907 | moosick.Name = "moosick" | |
| 908 | moosick.Looped = true | |
| 909 | moosick.Volume = 1 | |
| 910 | ||
| 911 | anim = Character:findFirstChild("Animate")
| |
| 912 | if anim then | |
| 913 | anim:Destroy() | |
| 914 | end | |
| 915 | ||
| 916 | local pemit = Instance.new("ParticleEmitter")
| |
| 917 | pemit.Color = ColorSequence.new(Color3.new(.5,0,1)) | |
| 918 | pemit.Lifetime = NumberRange.new(1) | |
| 919 | pemit.Acceleration = Vector3.new(0,20,0) | |
| 920 | pemit.EmissionDirection = "Front" | |
| 921 | pemit.Size = NumberSequence.new(1,0) | |
| 922 | pemit.Speed = NumberRange.new(10) | |
| 923 | pemit.LightEmission = 1 | |
| 924 | pemit.Rate = 500 | |
| 925 | pemit.Rotation = NumberRange.new(0,360) | |
| 926 | pemit.RotSpeed = NumberRange.new(150) | |
| 927 | pemit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
| 928 | pemit.Enabled = false | |
| 929 | ||
| 930 | local pe1 = pemit:Clone() | |
| 931 | pe1.Parent = Handle | |
| 932 | local pe2 = pemit:Clone() | |
| 933 | pe2.Parent = Handle2 | |
| 934 | local pe3 = pemit:Clone() | |
| 935 | pe3.Parent = handle | |
| 936 | pe3.EmissionDirection = "Right" | |
| 937 | pe3.Rate = 1000 | |
| 938 | ||
| 939 | local light = Instance.new("PointLight", Character.Torso)
| |
| 940 | light.Color = TorsoColor.Color | |
| 941 | light.Brightness = 5 | |
| 942 | light.Range = 15 | |
| 943 | light.Enabled = false | |
| 944 | ||
| 945 | local Footsteps = it("Sound",Character.Torso)
| |
| 946 | Footsteps.SoundId = "rbxassetid://142665235" | |
| 947 | Footsteps.Looped = true | |
| 948 | Footsteps.Pitch = 0.8 | |
| 949 | Footsteps.Volume = 0.3 | |
| 950 | ||
| 951 | local Footsteps2 = it("Sound",Character.Torso)
| |
| 952 | Footsteps2.SoundId = "rbxassetid://142665235" | |
| 953 | Footsteps2.Looped = true | |
| 954 | Footsteps2.Pitch = 1 | |
| 955 | Footsteps2.Volume = 0.4 | |
| 956 | ||
| 957 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 958 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 959 | prt.Material = Enum.Material.Neon | |
| 960 | prt.Anchored=true | |
| 961 | prt.CFrame=cframe | |
| 962 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 963 | game:GetService("Debris"):AddItem(prt,2)
| |
| 964 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 965 | for i=0,1,delay do | |
| 966 | swait() | |
| 967 | Part.CFrame=Part.CFrame | |
| 968 | Part.Transparency=i | |
| 969 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 970 | end | |
| 971 | Part:Destroy() | |
| 972 | end),prt,msh) | |
| 973 | end | |
| 974 | ||
| 975 | TrailDeb = false | |
| 976 | ||
| 977 | function equipanim() | |
| 978 | attack=true | |
| 979 | Gear.Transparency = 1 | |
| 980 | Gear2.Transparency = 1 | |
| 981 | for i,v in pairs(modelzorz3:children()) do | |
| 982 | if v:IsA("BasePart") then v.Transparency = 1 end
| |
| 983 | end | |
| 984 | Humanoid.WalkSpeed = 0 | |
| 985 | moosick:Play() | |
| 986 | for i=0,1,0.05 do | |
| 987 | swait() | |
| 988 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 989 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 990 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
| 991 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
| 992 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 993 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 994 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 995 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
| 996 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
| 997 | end | |
| 998 | swait(60) | |
| 999 | for i=0,1,0.05 do | |
| 1000 | swait() | |
| 1001 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1002 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1003 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
| 1004 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
| 1005 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1006 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1007 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
| 1008 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
| 1009 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
| 1010 | end | |
| 1011 | so(136007472,Torso,1,1) | |
| 1012 | swait(30) | |
| 1013 | for i=0,30 do | |
| 1014 | swait(1) | |
| 1015 | MagicRing(BrickColor.new("Alder"), Gear.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0)
| |
| 1016 | MagicRing(BrickColor.new("Alder"), Gear2.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0)
| |
| 1017 | MagicRing(BrickColor.new("Alder"), DragonHead.CFrame*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))), 60, 60, 6, 1, 1, 1, -3, -3, 0)
| |
| 1018 | end | |
| 1019 | swait(180) | |
| 1020 | so(233096557,Torso,1,5) | |
| 1021 | so(233091205,Torso,1,5) | |
| 1022 | so(150829983,DragonHead,.9,5) | |
| 1023 | MagicCircle(BrickColor.new("Alder"), Gear.CFrame, 10, 10, 10, 1, 1, 1, 0.01)
| |
| 1024 | MagicCircle(BrickColor.new("Alder"), Gear2.CFrame, 10, 10, 10, 1, 1, 1, 0.01)
| |
| 1025 | MagicCircle(BrickColor.new("Alder"), DragonHead.CFrame, 20, 20, 20, 1, 1, 1, 0.01)
| |
| 1026 | Gear.Transparency = 0 | |
| 1027 | Gear2.Transparency = 0 | |
| 1028 | for i,v in pairs(modelzorz3:children()) do | |
| 1029 | if v:IsA("BasePart") and v ~= handle then v.Transparency = 0 end
| |
| 1030 | end | |
| 1031 | pe1.Enabled = true | |
| 1032 | pe2.Enabled = true | |
| 1033 | pe3.Enabled = true | |
| 1034 | light.Enabled = true | |
| 1035 | for a=1,300 do | |
| 1036 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0)) | |
| 1037 | swait() | |
| 1038 | end | |
| 1039 | attack = false | |
| 1040 | end | |
| 1041 | ||
| 1042 | function attackone() | |
| 1043 | attack=true | |
| 1044 | if TrailDeb == false then | |
| 1045 | TrailDeb = true | |
| 1046 | end | |
| 1047 | coroutine.wrap(function() | |
| 1048 | local Old = Handle.CFrame.p | |
| 1049 | while true do swait() | |
| 1050 | if not TrailDeb then break end | |
| 1051 | local New = Handle.CFrame.p | |
| 1052 | local Mag =(Old -New).magnitude | |
| 1053 | local Dis =(Old +New)/2 | |
| 1054 | local Trail = Instance.new("Part",Character)
| |
| 1055 | Trail.Material = "Neon" | |
| 1056 | Trail.Anchored = true | |
| 1057 | Trail.CanCollide = false | |
| 1058 | Trail.BrickColor = TorsoColor | |
| 1059 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 1060 | Trail.TopSurface = 0 | |
| 1061 | Trail.BottomSurface = 0 | |
| 1062 | Trail.formFactor = "Custom" | |
| 1063 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 1064 | local ms = Instance.new("BlockMesh",Trail)
| |
| 1065 | ms.Scale = Vector3.new(1,1,1) | |
| 1066 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 1067 | TM.Scale = Vector3.new(20,1,20) | |
| 1068 | Old = New | |
| 1069 | coroutine.wrap(function() | |
| 1070 | for i = 1,0,-0.1 do | |
| 1071 | swait() | |
| 1072 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 1073 | end | |
| 1074 | Trail:remove() | |
| 1075 | end)() | |
| 1076 | coroutine.wrap(function() | |
| 1077 | for i = 1,10 do | |
| 1078 | swait() | |
| 1079 | Trail.Transparency = Trail.Transparency +0.1 | |
| 1080 | end end)()end end)() | |
| 1081 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end) | |
| 1082 | for i=0,1,0.08 do | |
| 1083 | swait() | |
| 1084 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
| 1085 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
| 1086 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
| 1087 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
| 1088 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1089 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
| 1090 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1091 | end | |
| 1092 | so("231917758",Handle,1,.9)
| |
| 1093 | so("159972643",Torso,1,1)
| |
| 1094 | for i=0,1,0.1 do | |
| 1095 | swait() | |
| 1096 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
| 1097 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
| 1098 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
| 1099 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
| 1100 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1101 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
| 1102 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1103 | end | |
| 1104 | --dmgstop() | |
| 1105 | attack=false | |
| 1106 | con1:disconnect() | |
| 1107 | if TrailDeb == true then | |
| 1108 | TrailDeb = false | |
| 1109 | end | |
| 1110 | end | |
| 1111 | ||
| 1112 | function attacktwo() | |
| 1113 | attack=true | |
| 1114 | if TrailDeb == false then | |
| 1115 | TrailDeb = true | |
| 1116 | end | |
| 1117 | coroutine.wrap(function() | |
| 1118 | local Old = Handle2.CFrame.p | |
| 1119 | while true do swait() | |
| 1120 | if not TrailDeb then break end | |
| 1121 | local New = Handle2.CFrame.p | |
| 1122 | local Mag =(Old -New).magnitude | |
| 1123 | local Dis =(Old +New)/2 | |
| 1124 | local Trail = Instance.new("Part",Character)
| |
| 1125 | Trail.Material = "Neon" | |
| 1126 | Trail.Anchored = true | |
| 1127 | Trail.CanCollide = false | |
| 1128 | Trail.BrickColor = TorsoColor | |
| 1129 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 1130 | Trail.TopSurface = 0 | |
| 1131 | Trail.BottomSurface = 0 | |
| 1132 | Trail.formFactor = "Custom" | |
| 1133 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 1134 | local ms = Instance.new("BlockMesh",Trail)
| |
| 1135 | ms.Scale = Vector3.new(1,1,1) | |
| 1136 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 1137 | TM.Scale = Vector3.new(20,1,20) | |
| 1138 | Old = New | |
| 1139 | coroutine.wrap(function() | |
| 1140 | for i = 1,0,-0.1 do | |
| 1141 | swait() | |
| 1142 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 1143 | end | |
| 1144 | Trail:remove() | |
| 1145 | end)() | |
| 1146 | coroutine.wrap(function() | |
| 1147 | for i = 1,10 do | |
| 1148 | swait() | |
| 1149 | Trail.Transparency = Trail.Transparency +0.1 | |
| 1150 | end end)()end end)() | |
| 1151 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end) | |
| 1152 | for i=0,1,0.08 do | |
| 1153 | swait() | |
| 1154 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
| 1155 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
| 1156 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3) | |
| 1157 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
| 1158 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1159 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
| 1160 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1161 | end | |
| 1162 | so("231917758",Handle2,1,.8)
| |
| 1163 | so("159972627",Torso,1,1)
| |
| 1164 | for i=0,1,0.1 do | |
| 1165 | swait() | |
| 1166 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
| 1167 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
| 1168 | LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3) | |
| 1169 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3) | |
| 1170 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1171 | Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2) | |
| 1172 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1173 | end | |
| 1174 | --dmgstop() | |
| 1175 | attack=false | |
| 1176 | con1:disconnect() | |
| 1177 | if TrailDeb == true then | |
| 1178 | TrailDeb = false | |
| 1179 | end | |
| 1180 | end | |
| 1181 | ||
| 1182 | function attackthree() | |
| 1183 | attack=true | |
| 1184 | if TrailDeb == false then | |
| 1185 | TrailDeb = true | |
| 1186 | end | |
| 1187 | coroutine.wrap(function() | |
| 1188 | local Old = Handle.CFrame.p | |
| 1189 | while true do swait() | |
| 1190 | if not TrailDeb then break end | |
| 1191 | local New = Handle.CFrame.p | |
| 1192 | local Mag =(Old -New).magnitude | |
| 1193 | local Dis =(Old +New)/2 | |
| 1194 | local Trail = Instance.new("Part",Character)
| |
| 1195 | Trail.Material = "Neon" | |
| 1196 | Trail.Anchored = true | |
| 1197 | Trail.CanCollide = false | |
| 1198 | Trail.BrickColor = TorsoColor | |
| 1199 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 1200 | Trail.TopSurface = 0 | |
| 1201 | Trail.BottomSurface = 0 | |
| 1202 | Trail.formFactor = "Custom" | |
| 1203 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 1204 | local ms = Instance.new("BlockMesh",Trail)
| |
| 1205 | ms.Scale = Vector3.new(1,1,1) | |
| 1206 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 1207 | TM.Scale = Vector3.new(20,1,20) | |
| 1208 | Old = New | |
| 1209 | coroutine.wrap(function() | |
| 1210 | for i = 1,0,-0.1 do | |
| 1211 | swait() | |
| 1212 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 1213 | end | |
| 1214 | Trail:remove() | |
| 1215 | end)() | |
| 1216 | coroutine.wrap(function() | |
| 1217 | for i = 1,10 do | |
| 1218 | swait() | |
| 1219 | Trail.Transparency = Trail.Transparency +0.1 | |
| 1220 | end end)()end end)() | |
| 1221 | con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,30,"Up",RootPart,.2,1) end) | |
| 1222 | for i=0,1,0.08 do | |
| 1223 | swait() | |
| 1224 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1225 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1226 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3) | |
| 1227 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
| 1228 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1229 | Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2) | |
| 1230 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1231 | end | |
| 1232 | so("231917758",Handle,1,1)
| |
| 1233 | so("159882477",Torso,1,1)
| |
| 1234 | for i=0,1,0.05 do | |
| 1235 | swait() | |
| 1236 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1237 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 1238 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1239 | Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2) | |
| 1240 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1241 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3) | |
| 1242 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
| 1243 | end | |
| 1244 | --dmgstop() | |
| 1245 | attack=false | |
| 1246 | con1:disconnect() | |
| 1247 | if TrailDeb == true then | |
| 1248 | TrailDeb = false | |
| 1249 | end | |
| 1250 | end | |
| 1251 | ||
| 1252 | function attackfour() | |
| 1253 | attack=true | |
| 1254 | if TrailDeb == false then | |
| 1255 | TrailDeb = true | |
| 1256 | end | |
| 1257 | coroutine.wrap(function() | |
| 1258 | local Old = Handle2.CFrame.p | |
| 1259 | while true do swait() | |
| 1260 | if not TrailDeb then break end | |
| 1261 | local New = Handle2.CFrame.p | |
| 1262 | local Mag =(Old -New).magnitude | |
| 1263 | local Dis =(Old +New)/2 | |
| 1264 | local Trail = Instance.new("Part",Character)
| |
| 1265 | Trail.Material = "Neon" | |
| 1266 | Trail.Anchored = true | |
| 1267 | Trail.CanCollide = false | |
| 1268 | Trail.BrickColor = TorsoColor | |
| 1269 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 1270 | Trail.TopSurface = 0 | |
| 1271 | Trail.BottomSurface = 0 | |
| 1272 | Trail.formFactor = "Custom" | |
| 1273 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 1274 | local ms = Instance.new("BlockMesh",Trail)
| |
| 1275 | ms.Scale = Vector3.new(1,1,1) | |
| 1276 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 1277 | TM.Scale = Vector3.new(20,1,20) | |
| 1278 | Old = New | |
| 1279 | coroutine.wrap(function() | |
| 1280 | for i = 1,0,-0.1 do | |
| 1281 | swait() | |
| 1282 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 1283 | end | |
| 1284 | Trail:remove() | |
| 1285 | end)() | |
| 1286 | coroutine.wrap(function() | |
| 1287 | for i = 1,10 do | |
| 1288 | swait() | |
| 1289 | Trail.Transparency = Trail.Transparency +0.1 | |
| 1290 | end end)()end end)() | |
| 1291 | coroutine.wrap(function() | |
| 1292 | local Old = Handle.CFrame.p | |
| 1293 | while true do swait() | |
| 1294 | if not TrailDeb then break end | |
| 1295 | local New = Handle.CFrame.p | |
| 1296 | local Mag =(Old -New).magnitude | |
| 1297 | local Dis =(Old +New)/2 | |
| 1298 | local Trail = Instance.new("Part",Character)
| |
| 1299 | Trail.Material = "Neon" | |
| 1300 | Trail.Anchored = true | |
| 1301 | Trail.CanCollide = false | |
| 1302 | Trail.BrickColor = TorsoColor | |
| 1303 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 1304 | Trail.TopSurface = 0 | |
| 1305 | Trail.BottomSurface = 0 | |
| 1306 | Trail.formFactor = "Custom" | |
| 1307 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 1308 | local ms = Instance.new("BlockMesh",Trail)
| |
| 1309 | ms.Scale = Vector3.new(1,1,1) | |
| 1310 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 1311 | TM.Scale = Vector3.new(20,1,20) | |
| 1312 | Old = New | |
| 1313 | coroutine.wrap(function() | |
| 1314 | for i = 1,0,-0.1 do | |
| 1315 | swait() | |
| 1316 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 1317 | end | |
| 1318 | Trail:remove() | |
| 1319 | end)() | |
| 1320 | coroutine.wrap(function() | |
| 1321 | for i = 1,10 do | |
| 1322 | swait() | |
| 1323 | Trail.Transparency = Trail.Transparency +0.1 | |
| 1324 | end end)()end end)() | |
| 1325 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
| 1326 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
| 1327 | for i=0,1,0.08 do | |
| 1328 | swait() | |
| 1329 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3) | |
| 1330 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3) | |
| 1331 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3) | |
| 1332 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
| 1333 | LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3) | |
| 1334 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1335 | Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1336 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
| 1337 | end | |
| 1338 | if anim then | |
| 1339 | anim.Disabled=true | |
| 1340 | end | |
| 1341 | so("231917758",Torso,1,0.7)
| |
| 1342 | so("159882584",Torso,1,1)
| |
| 1343 | for i=0,1,0.04 do | |
| 1344 | swait() | |
| 1345 | Torso.Velocity=RootPart.CFrame.lookVector*50 | |
| 1346 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3) | |
| 1347 | RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3) | |
| 1348 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3) | |
| 1349 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1350 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1351 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1352 | Handleweld.C0=clerp(Handleweld.C0,cf(3,4,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
| 1353 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,4,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
| 1354 | end | |
| 1355 | --dmgstop() | |
| 1356 | attack=false | |
| 1357 | con1:disconnect() | |
| 1358 | con2:disconnect() | |
| 1359 | if anim then | |
| 1360 | anim.Disabled=false | |
| 1361 | end | |
| 1362 | if TrailDeb == true then | |
| 1363 | TrailDeb = false | |
| 1364 | end | |
| 1365 | end | |
| 1366 | ||
| 1367 | function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2) | |
| 1368 | local prt = parta(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1369 | prt.Anchored = true | |
| 1370 | prt.CFrame = cframe | |
| 1371 | local msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1372 | coroutine.resume(coroutine.create(function() | |
| 1373 | for i = 0, 1, 0.05 do | |
| 1374 | swait() | |
| 1375 | prt.Transparency = i | |
| 1376 | msh.Scale = msh.Scale + vt(x2, y2, z2) | |
| 1377 | end | |
| 1378 | prt.Parent = nil | |
| 1379 | end)) | |
| 1380 | end | |
| 1381 | ||
| 1382 | function MagniDamage(par,efft,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 1383 | for _, c in pairs(workspace:GetDescendants()) do | |
| 1384 | local hum = c:FindFirstChildOfClass("Humanoid")
| |
| 1385 | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
| |
| 1386 | local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
| |
| 1387 | if head ~= nil then | |
| 1388 | local targ = head.Position - par.Position | |
| 1389 | local mag = targ.magnitude | |
| 1390 | if magni >= mag and c.Name ~= Player.Name then | |
| 1391 | Damagefunc(head,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 1392 | end | |
| 1393 | end | |
| 1394 | end | |
| 1395 | end | |
| 1396 | end | |
| 1397 | ||
| 1398 | function MagicCircle4(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1399 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1400 | prt.Anchored = true | |
| 1401 | prt.CFrame = cframe | |
| 1402 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1403 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 1404 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1405 | for i = 0, 1, delay do | |
| 1406 | swait() | |
| 1407 | Part.CFrame = Part.CFrame | |
| 1408 | Part.Transparency = i | |
| 1409 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1410 | end | |
| 1411 | Part.Parent = nil | |
| 1412 | end), prt, msh) | |
| 1413 | end | |
| 1414 | ||
| 1415 | function smashdown() | |
| 1416 | attack=true | |
| 1417 | ||
| 1418 | if TrailDeb == false then | |
| 1419 | TrailDeb = true | |
| 1420 | end | |
| 1421 | coroutine.wrap(function() | |
| 1422 | local Old = Handle2.CFrame.p | |
| 1423 | while true do swait() | |
| 1424 | if not TrailDeb then break end | |
| 1425 | local New = Handle2.CFrame.p | |
| 1426 | local Mag =(Old -New).magnitude | |
| 1427 | local Dis =(Old +New)/2 | |
| 1428 | local Trail = Instance.new("Part",Character)
| |
| 1429 | Trail.Material = "Neon" | |
| 1430 | Trail.Anchored = true | |
| 1431 | Trail.CanCollide = false | |
| 1432 | Trail.BrickColor = TorsoColor | |
| 1433 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 1434 | Trail.TopSurface = 0 | |
| 1435 | Trail.BottomSurface = 0 | |
| 1436 | Trail.formFactor = "Custom" | |
| 1437 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 1438 | local ms = Instance.new("BlockMesh",Trail)
| |
| 1439 | ms.Scale = Vector3.new(1,1,1) | |
| 1440 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 1441 | TM.Scale = Vector3.new(20,1,20) | |
| 1442 | Old = New | |
| 1443 | coroutine.wrap(function() | |
| 1444 | for i = 1,0,-0.1 do | |
| 1445 | swait() | |
| 1446 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 1447 | end | |
| 1448 | Trail:remove() | |
| 1449 | end)() | |
| 1450 | coroutine.wrap(function() | |
| 1451 | for i = 1,10 do | |
| 1452 | swait() | |
| 1453 | Trail.Transparency = Trail.Transparency +0.1 | |
| 1454 | end end)()end end)() | |
| 1455 | coroutine.wrap(function() | |
| 1456 | local Old = Handle.CFrame.p | |
| 1457 | while true do swait() | |
| 1458 | if not TrailDeb then break end | |
| 1459 | local New = Handle.CFrame.p | |
| 1460 | local Mag =(Old -New).magnitude | |
| 1461 | local Dis =(Old +New)/2 | |
| 1462 | local Trail = Instance.new("Part",Character)
| |
| 1463 | Trail.Material = "Neon" | |
| 1464 | Trail.Anchored = true | |
| 1465 | Trail.CanCollide = false | |
| 1466 | Trail.BrickColor = TorsoColor | |
| 1467 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 1468 | Trail.TopSurface = 0 | |
| 1469 | Trail.BottomSurface = 0 | |
| 1470 | Trail.formFactor = "Custom" | |
| 1471 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 1472 | local ms = Instance.new("BlockMesh",Trail)
| |
| 1473 | ms.Scale = Vector3.new(1,1,1) | |
| 1474 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 1475 | TM.Scale = Vector3.new(20,1,20) | |
| 1476 | Old = New | |
| 1477 | coroutine.wrap(function() | |
| 1478 | for i = 1,0,-0.1 do | |
| 1479 | swait() | |
| 1480 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 1481 | end | |
| 1482 | Trail:remove() | |
| 1483 | end)() | |
| 1484 | coroutine.wrap(function() | |
| 1485 | for i = 1,10 do | |
| 1486 | swait() | |
| 1487 | Trail.Transparency = Trail.Transparency +0.1 | |
| 1488 | end end)()end end)() | |
| 1489 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end) | |
| 1490 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end) | |
| 1491 | for i=0,1,0.08 do | |
| 1492 | swait() | |
| 1493 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1494 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
| 1495 | LW.C0=clerp(LW.C0,cf(-1.5,1,0)*euler(math.rad(180),0,0),.3) | |
| 1496 | RW.C0=clerp(RW.C0,cf(1.5,1,0)*euler(math.rad(180),0,0),.3) | |
| 1497 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1498 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1499 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
| 1500 | Handleweld.C0=clerp(Handleweld.C0,cf(4,30,10)*angles(math.rad(35),math.rad(0),math.rad(-90)),.2) | |
| 1501 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,30,10)*angles(math.rad(35),math.rad(0),math.rad(90)),.2) | |
| 1502 | end | |
| 1503 | Humanoid.WalkSpeed = 0 | |
| 1504 | so("231917758",Torso,1,0.7)
| |
| 1505 | so("159882584",Torso,1,1)
| |
| 1506 | for i=0,1,0.08 do | |
| 1507 | swait() | |
| 1508 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 1509 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1510 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),0,0),.3) | |
| 1511 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(90),0,0),.3) | |
| 1512 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1513 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1514 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
| 1515 | Handleweld.C0=clerp(Handleweld.C0,cf(4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(-90)),.2) | |
| 1516 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(90)),.2) | |
| 1517 | end | |
| 1518 | con1:disconnect() | |
| 1519 | con2:disconnect() | |
| 1520 | attack=false | |
| 1521 | if anim then | |
| 1522 | anim.Disabled=false | |
| 1523 | end | |
| 1524 | if TrailDeb == true then | |
| 1525 | TrailDeb = false | |
| 1526 | end | |
| 1527 | local ref = it("Part",Character)
| |
| 1528 | ref.Size = Vector3.new(0,0,0) | |
| 1529 | ref.Anchored = true | |
| 1530 | ref.CanCollide = false | |
| 1531 | ref.Transparency = 1 | |
| 1532 | local looky = RootPart.CFrame | |
| 1533 | for i=1,10 do | |
| 1534 | ref.CFrame = looky*CFrame.new(0,-2.5,-10*i) | |
| 1535 | BlastEffect(BrickColor.new("White"),ref.CFrame,1,.2,1,1,0,1)
| |
| 1536 | BlastEffect(BrickColor.new("White"),ref.CFrame,5,1,.5,.1,2,.1)
| |
| 1537 | MagniDamage(ref,"",10,30,35,50,"Knockdown",RootPart,.2,1) | |
| 1538 | so(178452221,ref,.6,1) | |
| 1539 | so(192410084,ref,1,1) | |
| 1540 | swait(5) | |
| 1541 | end | |
| 1542 | ref:Destroy() | |
| 1543 | swait(60) | |
| 1544 | --dmgstop() | |
| 1545 | end | |
| 1546 | ||
| 1547 | function mudads() | |
| 1548 | attack=true | |
| 1549 | so("624164065",Torso,1,3)
| |
| 1550 | print("SUNLIGHT YELLO OVRDREV")
| |
| 1551 | ||
| 1552 | ||
| 1553 | if TrailDeb == false then | |
| 1554 | TrailDeb = true | |
| 1555 | end | |
| 1556 | coroutine.wrap(function() | |
| 1557 | local Old = Handle2.CFrame.p | |
| 1558 | while true do swait() | |
| 1559 | if not TrailDeb then break end | |
| 1560 | local New = Handle2.CFrame.p | |
| 1561 | local Mag =(Old -New).magnitude | |
| 1562 | local Dis =(Old +New)/2 | |
| 1563 | local Trail = Instance.new("Part",Character)
| |
| 1564 | Trail.Material = "Neon" | |
| 1565 | Trail.Anchored = true | |
| 1566 | Trail.CanCollide = false | |
| 1567 | Trail.BrickColor = TorsoColor | |
| 1568 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 1569 | Trail.TopSurface = 0 | |
| 1570 | Trail.BottomSurface = 0 | |
| 1571 | Trail.formFactor = "Custom" | |
| 1572 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 1573 | local ms = Instance.new("BlockMesh",Trail)
| |
| 1574 | ms.Scale = Vector3.new(1,1,1) | |
| 1575 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 1576 | TM.Scale = Vector3.new(20,1,20) | |
| 1577 | Old = New | |
| 1578 | coroutine.wrap(function() | |
| 1579 | for i = 1,0,-0.1 do | |
| 1580 | swait() | |
| 1581 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 1582 | end | |
| 1583 | Trail:remove() | |
| 1584 | end)() | |
| 1585 | coroutine.wrap(function() | |
| 1586 | for i = 1,10 do | |
| 1587 | swait() | |
| 1588 | Trail.Transparency = Trail.Transparency +0.1 | |
| 1589 | end end)()end end)() | |
| 1590 | coroutine.wrap(function() | |
| 1591 | local Old = Handle.CFrame.p | |
| 1592 | while true do swait() | |
| 1593 | if not TrailDeb then break end | |
| 1594 | local New = Handle.CFrame.p | |
| 1595 | local Mag =(Old -New).magnitude | |
| 1596 | local Dis =(Old +New)/2 | |
| 1597 | local Trail = Instance.new("Part",Character)
| |
| 1598 | Trail.Material = "Neon" | |
| 1599 | Trail.Anchored = true | |
| 1600 | Trail.CanCollide = false | |
| 1601 | Trail.BrickColor = TorsoColor | |
| 1602 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 1603 | Trail.TopSurface = 0 | |
| 1604 | Trail.BottomSurface = 0 | |
| 1605 | Trail.formFactor = "Custom" | |
| 1606 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 1607 | local ms = Instance.new("BlockMesh",Trail)
| |
| 1608 | ms.Scale = Vector3.new(1,1,1) | |
| 1609 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 1610 | TM.Scale = Vector3.new(20,1,20) | |
| 1611 | Old = New | |
| 1612 | coroutine.wrap(function() | |
| 1613 | for i = 1,0,-0.1 do | |
| 1614 | swait() | |
| 1615 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 1616 | end | |
| 1617 | Trail:remove() | |
| 1618 | end)() | |
| 1619 | coroutine.wrap(function() | |
| 1620 | for i = 1,10 do | |
| 1621 | swait() | |
| 1622 | Trail.Transparency = Trail.Transparency +0.1 | |
| 1623 | end end)()end end)() | |
| 1624 | con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end) | |
| 1625 | con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end) | |
| 1626 | Humanoid.WalkSpeed = 16 | |
| 1627 | so("159882584",Torso,1,1)
| |
| 1628 | for i=0,1,0.08 do | |
| 1629 | swait() | |
| 1630 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 1631 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1632 | LW.C0=clerp(LW.C0,cf(-1.2,1,0)*euler(math.rad(90),math.rad(-90),0),.3) | |
| 1633 | RW.C0=clerp(RW.C0,cf(1.2,1,0)*euler(math.rad(90),math.rad(90),0),.3) | |
| 1634 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1635 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1636 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 1637 | Handleweld.C0=clerp(Handleweld.C0,cf(4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1638 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1639 | end | |
| 1640 | for a = 1,20 do | |
| 1641 | so("231917758",Torso,math.random(6,10)/10,1)
| |
| 1642 | for i=0,1,0.2 do | |
| 1643 | swait() | |
| 1644 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 1645 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1646 | LW.C0=clerp(LW.C0,cf(-1.2,1,-2)*euler(math.rad(90),math.rad(-90),0),.3) | |
| 1647 | RW.C0=clerp(RW.C0,cf(1.2,1,2)*euler(math.rad(90),math.rad(90),0),.3) | |
| 1648 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1649 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1650 | handleweld.C0=clerp(handleweld.C0,cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 1651 | Handleweld.C0=clerp(Handleweld.C0,cf(math.random(-10,10),math.random(0,4),-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1652 | Handle2weld.C0=clerp(Handle2weld.C0,cf(math.random(-10,10),math.random(0,4),20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1653 | end | |
| 1654 | so("231917758",Torso,math.random(6,10)/10,1)
| |
| 1655 | for i=0,1,0.2 do | |
| 1656 | swait() | |
| 1657 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 1658 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1659 | LW.C0=clerp(LW.C0,cf(-1.2,1,2)*euler(math.rad(90),math.rad(-90),0),.3) | |
| 1660 | RW.C0=clerp(RW.C0,cf(1.2,1,-2)*euler(math.rad(90),math.rad(90),0),.3) | |
| 1661 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1662 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1663 | handleweld.C0=clerp(handleweld.C0,cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 1664 | Handleweld.C0=clerp(Handleweld.C0,cf(math.random(-10,10),math.random(0,4),20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1665 | Handle2weld.C0=clerp(Handle2weld.C0,cf(math.random(-10,10),math.random(0,4),-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1666 | end | |
| 1667 | end | |
| 1668 | con1:disconnect() | |
| 1669 | con2:disconnect() | |
| 1670 | --dmgstop() | |
| 1671 | attack=false | |
| 1672 | if anim then | |
| 1673 | anim.Disabled=false | |
| 1674 | end | |
| 1675 | if TrailDeb == true then | |
| 1676 | TrailDeb = false | |
| 1677 | end | |
| 1678 | end | |
| 1679 | ||
| 1680 | function laser() | |
| 1681 | attack = true | |
| 1682 | Humanoid.WalkSpeed = 16 | |
| 1683 | for i=0,1,0.05 do | |
| 1684 | swait() | |
| 1685 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1686 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1687 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
| 1688 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
| 1689 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1690 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1691 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
| 1692 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
| 1693 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
| 1694 | end | |
| 1695 | local blmod = Instance.new("Model",Character)
| |
| 1696 | for a = 1, 5 do | |
| 1697 | local blast2 = it("Part",blmod)
| |
| 1698 | blast2.Size = vt(1,1,1) | |
| 1699 | blast2.BrickColor = TorsoColor | |
| 1700 | blast2.Material = "Neon" | |
| 1701 | blast2.Anchored = false | |
| 1702 | blast2.CanCollide = false | |
| 1703 | local blwe = Instance.new("Weld",blast2)
| |
| 1704 | blwe.Part0 = DragonHead | |
| 1705 | blwe.Part1 = blast2 | |
| 1706 | blwe.C0 = CFrame.new(0, 0, -5) | |
| 1707 | blwe.C1 = CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
| 1708 | local m = Instance.new("BlockMesh", blast2)
| |
| 1709 | m.Scale = Vector3.new(6,6,6) | |
| 1710 | coroutine.resume(coroutine.create(function() | |
| 1711 | for i = 0,1,.1 do | |
| 1712 | blast2.Transparency = 1.2-i | |
| 1713 | swait() | |
| 1714 | blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
| 1715 | end | |
| 1716 | while blast2 do | |
| 1717 | swait() | |
| 1718 | blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
| 1719 | end | |
| 1720 | end)) | |
| 1721 | end | |
| 1722 | so(864314263,DragonHead,1,5) | |
| 1723 | for i=1,150 do | |
| 1724 | MagicRing(BrickColor.new("Alder"), DragonHead.CFrame * CFrame.new(0,0,-5) * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0)
| |
| 1725 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0)) | |
| 1726 | swait() | |
| 1727 | end | |
| 1728 | for i=0,1,0.05 do | |
| 1729 | swait() | |
| 1730 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1731 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1732 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
| 1733 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
| 1734 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1735 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1736 | handleweld.C0=clerp(handleweld.C0,cf(math.random(-1,1),math.random(5,7),math.random(6,8))*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1737 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
| 1738 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
| 1739 | end | |
| 1740 | so(162246701,DragonHead,1,5) | |
| 1741 | local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5) | |
| 1742 | local sannd = Instance.new("Sound",Torso)
| |
| 1743 | sannd.SoundId = "rbxassetid://162246683" | |
| 1744 | sannd.Looped = true | |
| 1745 | sannd.Volume = 1 | |
| 1746 | sannd:Play() | |
| 1747 | local hitcf = mouse.Hit | |
| 1748 | local ref = it("Part",Character)
| |
| 1749 | ref.Size = Vector3.new(0,0,0) | |
| 1750 | ref.Anchored = true | |
| 1751 | ref.CanCollide = false | |
| 1752 | ref.Transparency = 1 | |
| 1753 | local blast = it("Part",blmod)
| |
| 1754 | blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude) | |
| 1755 | blast.BrickColor = TorsoColor | |
| 1756 | blast.Material = "Neon" | |
| 1757 | blast.Anchored = true | |
| 1758 | blast.CanCollide = false | |
| 1759 | blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p) | |
| 1760 | local m = Instance.new("BlockMesh", blast)
| |
| 1761 | m.Scale = Vector3.new(5,5,1) | |
| 1762 | for a = 1, 200 do | |
| 1763 | local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5) | |
| 1764 | local hitcf = mouse.Hit | |
| 1765 | ref.CFrame = hitcf | |
| 1766 | blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude) | |
| 1767 | blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p) | |
| 1768 | MagicBlock(TorsoColor, hitcf, 1, 1, 1, 6, 6, 6, 0.1) | |
| 1769 | MagniDamage(ref,"",10,5,7,0,"Knockdown",RootPart,.05,1) | |
| 1770 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-5),math.rad(0),math.rad(0)) | |
| 1771 | --handleweld.C0 = cf(math.random(-2,2),math.random(4,8),math.random(5,9))*angles(math.rad(-5),math.rad(0),math.rad(0)) | |
| 1772 | swait(1) | |
| 1773 | end | |
| 1774 | for a = 0,1,.05 do | |
| 1775 | sannd.Volume = a | |
| 1776 | for _, b in pairs(blmod:GetChildren()) do | |
| 1777 | b.Transparency = a | |
| 1778 | end | |
| 1779 | swait() | |
| 1780 | end | |
| 1781 | sannd:Destroy() | |
| 1782 | blmod:Destroy() | |
| 1783 | attack = false | |
| 1784 | end | |
| 1785 | ||
| 1786 | function yummy() | |
| 1787 | attack=true | |
| 1788 | if TrailDeb == false then | |
| 1789 | TrailDeb = true | |
| 1790 | end | |
| 1791 | coroutine.wrap(function() | |
| 1792 | local Old = Handle.CFrame.p | |
| 1793 | while true do swait() | |
| 1794 | if not TrailDeb then break end | |
| 1795 | local New = Handle.CFrame.p | |
| 1796 | local Mag =(Old -New).magnitude | |
| 1797 | local Dis =(Old +New)/2 | |
| 1798 | local Trail = Instance.new("Part",Character)
| |
| 1799 | Trail.Material = "Neon" | |
| 1800 | Trail.Anchored = true | |
| 1801 | Trail.CanCollide = false | |
| 1802 | Trail.BrickColor = TorsoColor | |
| 1803 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 1804 | Trail.TopSurface = 0 | |
| 1805 | Trail.BottomSurface = 0 | |
| 1806 | Trail.formFactor = "Custom" | |
| 1807 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 1808 | local ms = Instance.new("BlockMesh",Trail)
| |
| 1809 | ms.Scale = Vector3.new(1,1,1) | |
| 1810 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 1811 | TM.Scale = Vector3.new(20,1,20) | |
| 1812 | Old = New | |
| 1813 | coroutine.wrap(function() | |
| 1814 | for i = 1,0,-0.1 do | |
| 1815 | swait() | |
| 1816 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 1817 | end | |
| 1818 | Trail:remove() | |
| 1819 | end)() | |
| 1820 | coroutine.wrap(function() | |
| 1821 | for i = 1,10 do | |
| 1822 | swait() | |
| 1823 | Trail.Transparency = Trail.Transparency +0.1 | |
| 1824 | end end)()end end)() | |
| 1825 | local grab | |
| 1826 | local torsy | |
| 1827 | local ghum | |
| 1828 | local soaa | |
| 1829 | for i=0,1,0.05 do | |
| 1830 | swait() | |
| 1831 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
| 1832 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
| 1833 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
| 1834 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
| 1835 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1836 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
| 1837 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1838 | end | |
| 1839 | con1=Gear.Touched:connect(function(hit) | |
| 1840 | if grab == nil and hit.Parent ~= Character then | |
| 1841 | torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
| |
| 1842 | ghum = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1843 | if ghum ~= nil and torsy ~= nil then | |
| 1844 | grab=hit.Parent | |
| 1845 | so(386946017,hit,1,1) | |
| 1846 | local soaa = it("Sound",grab.Head)
| |
| 1847 | soaa.Volume = 1 | |
| 1848 | local cho = math.random(1,5) | |
| 1849 | if cho == 1 then | |
| 1850 | soaa.SoundId = "rbxassetid://111896685" | |
| 1851 | elseif cho == 2 then | |
| 1852 | soaa.SoundId = "rbxassetid://535528169" | |
| 1853 | elseif cho == 3 then | |
| 1854 | soaa.SoundId = "rbxassetid://1080363252" | |
| 1855 | elseif cho == 4 then | |
| 1856 | soaa.SoundId = "rbxassetid://147758746" | |
| 1857 | elseif cho == 5 then | |
| 1858 | soaa.SoundId = "rbxassetid://626777433" | |
| 1859 | soaa.Volume = .2 | |
| 1860 | soaa.TimePosition = 1 | |
| 1861 | end | |
| 1862 | soaa:Play() | |
| 1863 | end | |
| 1864 | end | |
| 1865 | end) | |
| 1866 | so("231917758",Handle,1,.9)
| |
| 1867 | so("159972643",Torso,1,1)
| |
| 1868 | for i=0,3,0.1 do | |
| 1869 | swait() | |
| 1870 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
| 1871 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
| 1872 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
| 1873 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
| 1874 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 1875 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
| 1876 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1877 | if torsy~=nil then | |
| 1878 | ghum.PlatformStand = true | |
| 1879 | torsy.CFrame = Gear.CFrame | |
| 1880 | end | |
| 1881 | end | |
| 1882 | if grab ~= nil then | |
| 1883 | Humanoid.WalkSpeed = 0 | |
| 1884 | con1:disconnect() | |
| 1885 | for i=0,3,0.05 do | |
| 1886 | swait() | |
| 1887 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1888 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
| 1889 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
| 1890 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
| 1891 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1892 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1893 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
| 1894 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
| 1895 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1896 | if torsy~=nil then | |
| 1897 | ghum.PlatformStand = true | |
| 1898 | torsy.CFrame = Gear.CFrame | |
| 1899 | end | |
| 1900 | end | |
| 1901 | for i=0,1,0.1 do | |
| 1902 | swait() | |
| 1903 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1904 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
| 1905 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
| 1906 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
| 1907 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1908 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1909 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
| 1910 | Handleweld.C0=clerp(Handleweld.C0,cf(0,16,5)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
| 1911 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1912 | if torsy~=nil then | |
| 1913 | ghum.PlatformStand = true | |
| 1914 | torsy.CFrame = Gear.CFrame | |
| 1915 | end | |
| 1916 | end | |
| 1917 | grab:BreakJoints() | |
| 1918 | for i,v in pairs(grab:children()) do | |
| 1919 | if v:IsA("BasePart") then
| |
| 1920 | game:service'Debris':AddItem(v,.01) | |
| 1921 | end | |
| 1922 | end | |
| 1923 | local ref = it("Part",Character)
| |
| 1924 | ref.Size = Vector3.new(0,0,0) | |
| 1925 | ref.Anchored = true | |
| 1926 | ref.CanCollide = false | |
| 1927 | ref.Transparency = 1 | |
| 1928 | ref.CFrame = Gear.CFrame | |
| 1929 | so(206082327,Gear,1,3) | |
| 1930 | local partasdeff = Instance.new("ParticleEmitter",ref)
| |
| 1931 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
| 1932 | partasdeff.LightEmission = .1 | |
| 1933 | partasdeff.Size = NumberSequence.new(0.2) | |
| 1934 | partasdeff.Texture = "rbxassetid://771221224" | |
| 1935 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
| |
| 1936 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 1937 | partasdeff.Transparency = bbb | |
| 1938 | partasdeff.Size = aaa | |
| 1939 | partasdeff.ZOffset = .9 | |
| 1940 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
| 1941 | partasdeff.LockedToPart = false | |
| 1942 | partasdeff.EmissionDirection = "Back" | |
| 1943 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
| 1944 | partasdeff.Rate = 1000 | |
| 1945 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
| 1946 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
| 1947 | partasdeff.Speed = NumberRange.new(6) | |
| 1948 | partasdeff.VelocitySpread = 10000 | |
| 1949 | partasdeff.Enabled=false | |
| 1950 | partasdeff:Emit(70) | |
| 1951 | game:service'Debris':AddItem(ref,5) | |
| 1952 | swait(90) | |
| 1953 | so(2767085,DragonHead,1,1) | |
| 1954 | swait(150) | |
| 1955 | for i=0,1,0.1 do | |
| 1956 | swait() | |
| 1957 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1958 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 1959 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
| 1960 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
| 1961 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1962 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 1963 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 1964 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
| 1965 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1966 | end | |
| 1967 | so(133966572,DragonHead,.8,2) | |
| 1968 | for i=1,15 do | |
| 1969 | for a=1,5 do | |
| 1970 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)) | |
| 1971 | swait() | |
| 1972 | end | |
| 1973 | local bo = it("Part",Character)
| |
| 1974 | bo.Size = vt(.2,.6,1) | |
| 1975 | bo.BrickColor = BrickColor.new("Persimmon")
| |
| 1976 | bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1977 | bo.Velocity = RootPart.CFrame.lookVector*40 | |
| 1978 | local m = it("SpecialMesh",bo)
| |
| 1979 | m.MeshId = "rbxassetid://305829157" | |
| 1980 | m.Scale = vt(math.random(9,13)/10,math.random(9,13)/10,math.random(9,13)/10) | |
| 1981 | coroutine.wrap(function() | |
| 1982 | swait(300) | |
| 1983 | for a=0,1,.05 do | |
| 1984 | swait() | |
| 1985 | bo.Transparency = a | |
| 1986 | end | |
| 1987 | bo:Destroy() | |
| 1988 | end)() | |
| 1989 | end | |
| 1990 | for a=1,5 do | |
| 1991 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)) | |
| 1992 | swait() | |
| 1993 | end | |
| 1994 | local bo = it("Part",Character)
| |
| 1995 | bo.Size = vt(1,1,1) | |
| 1996 | bo.BrickColor = BrickColor.new("Persimmon")
| |
| 1997 | bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1998 | bo.Velocity = RootPart.CFrame.lookVector*40 | |
| 1999 | local m = it("SpecialMesh",bo)
| |
| 2000 | m.MeshId = "rbxassetid://4770583" | |
| 2001 | m.Scale = vt(3,3,3) | |
| 2002 | coroutine.wrap(function() | |
| 2003 | swait(300) | |
| 2004 | for a=0,1,.05 do | |
| 2005 | swait() | |
| 2006 | bo.Transparency = a | |
| 2007 | end | |
| 2008 | bo:Destroy() | |
| 2009 | end)() | |
| 2010 | swait(60) | |
| 2011 | end | |
| 2012 | --dmgstop() | |
| 2013 | attack=false | |
| 2014 | con1:disconnect() | |
| 2015 | if TrailDeb == true then | |
| 2016 | TrailDeb = false | |
| 2017 | end | |
| 2018 | end | |
| 2019 | ||
| 2020 | function smek() | |
| 2021 | attack=true | |
| 2022 | if TrailDeb == false then | |
| 2023 | TrailDeb = true | |
| 2024 | end | |
| 2025 | coroutine.wrap(function() | |
| 2026 | local Old = Handle.CFrame.p | |
| 2027 | while true do swait() | |
| 2028 | if not TrailDeb then break end | |
| 2029 | local New = Handle.CFrame.p | |
| 2030 | local Mag =(Old -New).magnitude | |
| 2031 | local Dis =(Old +New)/2 | |
| 2032 | local Trail = Instance.new("Part",Character)
| |
| 2033 | Trail.Material = "Neon" | |
| 2034 | Trail.Anchored = true | |
| 2035 | Trail.CanCollide = false | |
| 2036 | Trail.BrickColor = TorsoColor | |
| 2037 | Trail.Size = Vector3.new(0.2,Mag,0.2) | |
| 2038 | Trail.TopSurface = 0 | |
| 2039 | Trail.BottomSurface = 0 | |
| 2040 | Trail.formFactor = "Custom" | |
| 2041 | Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0) | |
| 2042 | local ms = Instance.new("BlockMesh",Trail)
| |
| 2043 | ms.Scale = Vector3.new(1,1,1) | |
| 2044 | local TM = Instance.new("CylinderMesh",Trail)
| |
| 2045 | TM.Scale = Vector3.new(20,1,20) | |
| 2046 | Old = New | |
| 2047 | coroutine.wrap(function() | |
| 2048 | for i = 1,0,-0.1 do | |
| 2049 | swait() | |
| 2050 | TM.Scale = TM.Scale * Vector3.new(i,1,i) | |
| 2051 | end | |
| 2052 | Trail:remove() | |
| 2053 | end)() | |
| 2054 | coroutine.wrap(function() | |
| 2055 | for i = 1,10 do | |
| 2056 | swait() | |
| 2057 | Trail.Transparency = Trail.Transparency +0.1 | |
| 2058 | end end)()end end)() | |
| 2059 | local grab | |
| 2060 | local torsy | |
| 2061 | local ghum | |
| 2062 | local soaa | |
| 2063 | for i=0,1,0.05 do | |
| 2064 | swait() | |
| 2065 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3) | |
| 2066 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3) | |
| 2067 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3) | |
| 2068 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
| 2069 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 2070 | Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
| 2071 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2072 | end | |
| 2073 | con1=Gear.Touched:connect(function(hit) | |
| 2074 | if grab == nil and hit.Parent ~= Character then | |
| 2075 | torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
| |
| 2076 | ghum = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2077 | if ghum ~= nil and torsy ~= nil then | |
| 2078 | grab=hit.Parent | |
| 2079 | so(386946017,hit,1,1) | |
| 2080 | soaa = it("Sound",grab.Head)
| |
| 2081 | soaa.Volume = 1 | |
| 2082 | local cho = math.random(1,5) | |
| 2083 | if cho == 1 then | |
| 2084 | soaa.SoundId = "rbxassetid://111896685" | |
| 2085 | elseif cho == 2 then | |
| 2086 | soaa.SoundId = "rbxassetid://535528169" | |
| 2087 | elseif cho == 3 then | |
| 2088 | soaa.SoundId = "rbxassetid://1080363252" | |
| 2089 | elseif cho == 4 then | |
| 2090 | soaa.SoundId = "rbxassetid://147758746" | |
| 2091 | elseif cho == 5 then | |
| 2092 | soaa.SoundId = "rbxassetid://626777433" | |
| 2093 | soaa.Volume = .2 | |
| 2094 | soaa.TimePosition = 1 | |
| 2095 | end | |
| 2096 | game:service'Debris':AddItem(soaa,8) | |
| 2097 | soaa:Play() | |
| 2098 | end | |
| 2099 | end | |
| 2100 | end) | |
| 2101 | so("231917758",Handle,1,.9)
| |
| 2102 | so("159972643",Torso,1,1)
| |
| 2103 | for i=0,3,0.1 do | |
| 2104 | swait() | |
| 2105 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3) | |
| 2106 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
| 2107 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3) | |
| 2108 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3) | |
| 2109 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 2110 | Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-10)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2) | |
| 2111 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2112 | if torsy~=nil then | |
| 2113 | ghum.PlatformStand = true | |
| 2114 | torsy.CFrame = Gear.CFrame | |
| 2115 | end | |
| 2116 | end | |
| 2117 | if grab ~= nil then | |
| 2118 | Humanoid.WalkSpeed = 0 | |
| 2119 | con1:disconnect() | |
| 2120 | for i=0,3,0.05 do | |
| 2121 | swait() | |
| 2122 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 2123 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
| 2124 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
| 2125 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
| 2126 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2127 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2128 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
| 2129 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
| 2130 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2131 | if torsy~=nil then | |
| 2132 | ghum.PlatformStand = true | |
| 2133 | torsy.CFrame = Gear.CFrame | |
| 2134 | end | |
| 2135 | end | |
| 2136 | for a=1,5 do | |
| 2137 | for i=0,1,0.1 do | |
| 2138 | swait() | |
| 2139 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 2140 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
| 2141 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
| 2142 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
| 2143 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2144 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2145 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
| 2146 | Handleweld.C0=clerp(Handleweld.C0,cf(2,-5,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2147 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2148 | if torsy~=nil then | |
| 2149 | ghum.PlatformStand = true | |
| 2150 | torsy.CFrame = Gear.CFrame | |
| 2151 | end | |
| 2152 | end | |
| 2153 | so(386946017,torsy,1,1) | |
| 2154 | BlastEffect(BrickColor.new("White"),CFrame.new(torsy.Position),.5,.5,.5,.5,.2,.5)
| |
| 2155 | if ghum.Health > 10 then | |
| 2156 | Damagefunc(torsy,"",8,10,0,"Normal",RootPart,0,1) | |
| 2157 | end | |
| 2158 | for i=0,1,0.1 do | |
| 2159 | swait() | |
| 2160 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 2161 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
| 2162 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
| 2163 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
| 2164 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2165 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2166 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
| 2167 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2168 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2169 | if torsy~=nil then | |
| 2170 | ghum.PlatformStand = true | |
| 2171 | torsy.CFrame = Gear.CFrame | |
| 2172 | end | |
| 2173 | end | |
| 2174 | end | |
| 2175 | for i=1,30 do | |
| 2176 | swait() | |
| 2177 | if torsy~=nil then | |
| 2178 | ghum.PlatformStand = true | |
| 2179 | torsy.CFrame = Gear.CFrame | |
| 2180 | end | |
| 2181 | end | |
| 2182 | for i=0,5,0.1 do | |
| 2183 | swait() | |
| 2184 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 2185 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
| 2186 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
| 2187 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
| 2188 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2189 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2190 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2191 | Handleweld.C0=clerp(Handleweld.C0,cf(2,15,10)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
| 2192 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2193 | if torsy~=nil then | |
| 2194 | ghum.PlatformStand = true | |
| 2195 | torsy.CFrame = Gear.CFrame | |
| 2196 | end | |
| 2197 | end | |
| 2198 | for i=0,1,0.1 do | |
| 2199 | swait() | |
| 2200 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 2201 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
| 2202 | RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3) | |
| 2203 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3) | |
| 2204 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2205 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2206 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
| 2207 | Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2208 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2209 | if torsy~=nil then | |
| 2210 | ghum.PlatformStand = true | |
| 2211 | torsy.CFrame = Gear.CFrame | |
| 2212 | end | |
| 2213 | end | |
| 2214 | torsy.Velocity = RootPart.CFrame.lookVector*100 | |
| 2215 | coroutine.wrap(function() | |
| 2216 | local par,pos | |
| 2217 | repeat swait() par,pos = rayCast(torsy.Position,Vector3.new(0,-1,0),2,grab) until par | |
| 2218 | Damagefunc(torsy,"",15,20,0,"Normal",RootPart,0,1) | |
| 2219 | BlastEffect(BrickColor.new("White"),CFrame.new(pos),0,0,0,.5,.2,.5)
| |
| 2220 | so(260430079,torsy,1,5) | |
| 2221 | swait(60) | |
| 2222 | ghum.PlatformStand = false | |
| 2223 | end)() | |
| 2224 | swait(60) | |
| 2225 | end | |
| 2226 | --dmgstop() | |
| 2227 | attack=false | |
| 2228 | con1:disconnect() | |
| 2229 | if TrailDeb == true then | |
| 2230 | TrailDeb = false | |
| 2231 | end | |
| 2232 | end | |
| 2233 | ||
| 2234 | function rawr() | |
| 2235 | attack=true | |
| 2236 | Humanoid.WalkSpeed = 0 | |
| 2237 | for i=0,1,0.05 do | |
| 2238 | swait() | |
| 2239 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 2240 | Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
| 2241 | LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3) | |
| 2242 | RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3) | |
| 2243 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2244 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
| 2245 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2) | |
| 2246 | Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2) | |
| 2247 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2) | |
| 2248 | end | |
| 2249 | so(150829983,DragonHead,.9,5) | |
| 2250 | for a=1,300 do | |
| 2251 | handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0)) | |
| 2252 | BlastEffect(BrickColor.new("White"),RootPart.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,math.random(-50,50),0),1,.2,1,2,0,2)
| |
| 2253 | MagniDamage(Torso,"",30,1,1,5,"Knockdown",RootPart,.05,1) | |
| 2254 | swait() | |
| 2255 | end | |
| 2256 | attack = false | |
| 2257 | end | |
| 2258 | ||
| 2259 | equipanim() | |
| 2260 | ||
| 2261 | mouse.Button1Down:connect(function() | |
| 2262 | if attack==false and attacktype==1 then | |
| 2263 | attacktype=2 | |
| 2264 | attackone() | |
| 2265 | elseif attack==false and attacktype==2 then | |
| 2266 | attacktype=3 | |
| 2267 | attacktwo() | |
| 2268 | elseif attack==false and attacktype==3 then | |
| 2269 | attacktype=1 | |
| 2270 | attackthree() | |
| 2271 | end | |
| 2272 | end) | |
| 2273 | ||
| 2274 | mouse.KeyDown:connect(function(k) | |
| 2275 | k = k:lower() | |
| 2276 | if k=='m' then | |
| 2277 | if Character:FindFirstChild("moosick")~=nil then
| |
| 2278 | if moosick.IsPlaying == true then | |
| 2279 | moosick:Stop() | |
| 2280 | elseif moosick.IsPaused == true then | |
| 2281 | moosick:Play() | |
| 2282 | end | |
| 2283 | elseif Character:FindFirstChild("moosick")==nil then
| |
| 2284 | local moosick = Instance.new("Sound",Character)
| |
| 2285 | moosick.Name = "moosick" | |
| 2286 | moosick.SoundId = "rbxassetid://608726256" | |
| 2287 | moosick.Looped = true | |
| 2288 | moosick.Volume = 1 | |
| 2289 | moosick:Play() | |
| 2290 | end | |
| 2291 | end | |
| 2292 | if attack == false then | |
| 2293 | if k=='z' then | |
| 2294 | mudads() | |
| 2295 | elseif k=='x' then | |
| 2296 | smashdown() | |
| 2297 | elseif k=='c' then | |
| 2298 | laser() | |
| 2299 | elseif k=='v' then | |
| 2300 | smek() | |
| 2301 | elseif k=='b' then | |
| 2302 | yummy() | |
| 2303 | elseif k=='g' then | |
| 2304 | rawr() | |
| 2305 | end | |
| 2306 | end | |
| 2307 | end) | |
| 2308 | ||
| 2309 | local sine = 0 | |
| 2310 | local change = 1 | |
| 2311 | local val = 0 | |
| 2312 | ||
| 2313 | local mananum=0 | |
| 2314 | while true do | |
| 2315 | swait() | |
| 2316 | sine = sine + change | |
| 2317 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 2318 | local velderp=RootPart.Velocity.y | |
| 2319 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 2320 | if equipped==true or equipped==false then | |
| 2321 | --if Anim=="Idle" and attack==false then | |
| 2322 | --idle=idle+1 | |
| 2323 | --else | |
| 2324 | --idle=0 | |
| 2325 | --end | |
| 2326 | if idle>=1000 then | |
| 2327 | if attack==false then | |
| 2328 | --Sheath() | |
| 2329 | end | |
| 2330 | end | |
| 2331 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 2332 | Anim="Jump" | |
| 2333 | if attack==false then | |
| 2334 | Footsteps:Stop() | |
| 2335 | Footsteps2:Stop() | |
| 2336 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
| 2337 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 2338 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3) | |
| 2339 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3) | |
| 2340 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 2341 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3) | |
| 2342 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 2343 | RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2) | |
| 2344 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2) | |
| 2345 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
| 2346 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2) | |
| 2347 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2) | |
| 2348 | end | |
| 2349 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 2350 | Anim="Fall" | |
| 2351 | if attack==false then | |
| 2352 | Footsteps:Stop() | |
| 2353 | Footsteps2:Stop() | |
| 2354 | Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3) | |
| 2355 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 2356 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3) | |
| 2357 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3) | |
| 2358 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 2359 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3) | |
| 2360 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 2361 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2) | |
| 2362 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2) | |
| 2363 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
| 2364 | Handleweld.C0=clerp(Handleweld.C0,cf(4,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2) | |
| 2365 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2) | |
| 2366 | end | |
| 2367 | elseif torvel<1 and hitfloor~=nil then | |
| 2368 | Anim="Idle" | |
| 2369 | change=0.5 | |
| 2370 | if attack==false then | |
| 2371 | Footsteps:Stop() | |
| 2372 | Footsteps2:Stop() | |
| 2373 | Humanoid.WalkSpeed=12 | |
| 2374 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3) | |
| 2375 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3) | |
| 2376 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 2377 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3) | |
| 2378 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3) | |
| 2379 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(16)),.3) | |
| 2380 | LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3) | |
| 2381 | handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
| 2382 | Handleweld.C0=clerp(Handleweld.C0,cf(4-1*math.cos(sine/30),0,0-1*math.cos(sine/30))*angles(math.rad(0+8*math.cos(sine/30)),math.rad(0),math.rad(0-8*math.cos(sine/30))),.2) | |
| 2383 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2) | |
| 2384 | end | |
| 2385 | elseif torvel>2 and hitfloor~=nil then | |
| 2386 | Anim="Walk" | |
| 2387 | if attack==false then | |
| 2388 | change=1 | |
| 2389 | --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3) | |
| 2390 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3) | |
| 2391 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3) | |
| 2392 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3) | |
| 2393 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
| 2394 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
| 2395 | --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 2396 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 2397 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2) | |
| 2398 | --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2) | |
| 2399 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3) | |
| 2400 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3) | |
| 2401 | RH.C0=clerp(RH.C0,RHC0,.3) | |
| 2402 | LH.C0=clerp(LH.C0,LHC0,.3) | |
| 2403 | Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2404 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 2405 | ]]-- | |
| 2406 | Humanoid.WalkSpeed=50 | |
| 2407 | --Footsteps:Play() | |
| 2408 | --Footsteps2:Stop() | |
| 2409 | --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3) | |
| 2410 | --Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3) | |
| 2411 | --Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 2412 | --RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3) | |
| 2413 | --LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3) | |
| 2414 | --RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3) | |
| 2415 | --LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3) | |
| 2416 | --handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2) | |
| 2417 | --Handleweld.C0=clerp(Handleweld.C0,cf(4-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-30),math.rad(0-1*math.cos(sine/30))),.2) | |
| 2418 | --Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2) | |
| 2419 | --end | |
| 2420 | --elseif torvel>=22 and hitfloor~=nil then | |
| 2421 | --Anim="Run" | |
| 2422 | change=1 | |
| 2423 | --if attack==false then | |
| 2424 | Footsteps:Stop() | |
| 2425 | Footsteps2:Play() | |
| 2426 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3) | |
| 2427 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3) | |
| 2428 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 2429 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3) | |
| 2430 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3) | |
| 2431 | RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3) | |
| 2432 | LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3) | |
| 2433 | handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2) | |
| 2434 | Handleweld.C0=clerp(Handleweld.C0,cf(4-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-60),math.rad(0-1*math.cos(sine/30))),.2) | |
| 2435 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2) | |
| 2436 | end | |
| 2437 | end | |
| 2438 | end | |
| 2439 | end |