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