SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has been converted to FE by ki2005rill | |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | - | local Yourname = "0" |
| 7 | + | print("FE Compatibility by ki2005rill Enjoy!")
|
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | --[[KillerDarkness0105's/Codex#6685 Sonic Yo-yo script i hope you enjoy :D]]-- | |
| 87 | ||
| 88 | -- Yes if you want this to be Yoyo's yoyo or some people just call it hyuns yoyo then feel free to call it that. | |
| 89 | ||
| 90 | -- also added a function just go to this (local Yoyo = false) and put true (local Yoyo = true) and then change this to your name | |
| 91 | ||
| 92 | local Yourname = "ki2005rill" | |
| 93 | ||
| 94 | -- Thanks to the Character Yoyo made by Hyun for giving me this idea :) | |
| 95 | ||
| 96 | --Yoyo Model by Fenrier and also thanks for the welds. | |
| 97 | ||
| 98 | --[[side note. This yoyo isn't animated by the string. Its fully animated on its own. To see it just go to the idle animation and look for this | |
| 99 | ||
| 100 | ||
| 101 | --wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i) | |
| 102 | wld1.C0=euler(0,0,1.57)*cf(0,2.1,0) | |
| 103 | this is unanimated. | |
| 104 | ||
| 105 | ||
| 106 | ||
| 107 | wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i) | |
| 108 | --wld1.C0=euler(0,0,1.57)*cf(0,2.1,0) | |
| 109 | this is animated. | |
| 110 | ||
| 111 | ]]-- | |
| 112 | ||
| 113 | --[[ The Yo-yo's Bio. | |
| 114 | ||
| 115 | ||
| 116 | The Air grab. | |
| 117 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 118 | This yo-yo isn't just an ordinary yo-yo. This yo-yo is a very special and deadly yo-yo. It can grapple the air using the wind to keep it in the air long enough to evade. | |
| 119 | ||
| 120 | It pulls you toward it getting you away from danger and most times might even save your life. | |
| 121 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 122 | ||
| 123 | Why the yo-yo glows. | |
| 124 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 125 | The yo-yo also uses a "Micro Energy Generator" which allows the yo-yo to spin so fast it does MAJOR damage to your opponent. | |
| 126 | ||
| 127 | Thats why also the reason the yo-yo and string have blue tints and glow blue. | |
| 128 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 129 | ||
| 130 | The yoyo's name. | |
| 131 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 132 | The Sonic Yo-Yo. | |
| 133 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 134 | ||
| 135 | ||
| 136 | ||
| 137 | Attacks and combos | |
| 138 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 139 | The yo-yo is a very light very deadly weapon meaning you can combo and damage your opponents from far away and still do lots of damage. | |
| 140 | - | Player=game:GetService("Players").LocalPlayer
|
| 140 | + | |
| 141 | But you must remember. Speed is key here. You must rely on your speed to evade and dodge attacks. | |
| 142 | ||
| 143 | You are very skilled in hand to hand combat but it doesn't do as much damage as the yo-yo will. | |
| 144 | ||
| 145 | The yo-yo's speed can reach up to 7000mph and can cut through very tough objects. Sometimes even killing or slicing an opponent in one hit. | |
| 146 | ||
| 147 | The yo-yo also has very lethal attacks. It can explode using the "Exploder Chip" inside the yo-yo. Dealing almost Tons to One shot attacks. Though this takes time for you to do so you may want to look for an opening first. This attack also leaves you vulnerable while in the air. | |
| 148 | ||
| 149 | Since your so strong and skilled at fighting you also get a 600 hp boost so 100+600 = 700hp. | |
| 150 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 151 | ||
| 152 | ||
| 153 | Yo-yo stick figure. | |
| 154 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 155 | ||
| 156 | http://stickpage.wikia.com/wiki/Yoyo | |
| 157 | ||
| 158 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 159 | ||
| 160 | ||
| 161 | ||
| 162 | Hyun's youtube | |
| 163 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 164 | ||
| 165 | https://www.youtube.com/channel/UCpuj2Op5x9NuKbw3HaOEfjA | |
| 166 | ||
| 167 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 168 | ||
| 169 | ||
| 170 | ||
| 171 | ||
| 172 | Attack keys. | |
| 173 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 174 | ||
| 175 | C = Air Grapple | |
| 176 | E = Throw | |
| 177 | R = YoyoEvade -2 sec cooldown | |
| 178 | T = Explosion attack -7 sec cooldown | |
| 179 | F = Dash -3 sec cooldown | |
| 180 | Shift = Run | |
| 181 | ||
| 182 | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 183 | ||
| 184 | ||
| 185 | ||
| 186 | ]]-- | |
| 187 | ||
| 188 | ||
| 189 | - | local Yoyo = false |
| 189 | + | |
| 190 | ||
| 191 | ||
| 192 | ||
| 193 | ||
| 194 | ||
| 195 | ||
| 196 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
| 197 | if SinglePlayer then | |
| 198 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
| 199 | end | |
| 200 | local List = {}
| |
| 201 | for i, v in pairs(workspace:GetChildren()) do | |
| 202 | if v:IsA("Model") then
| |
| 203 | if v:findFirstChild("Torso") then
| |
| 204 | if v ~= Character then | |
| 205 | if (v.Torso.Position - Position).magnitude <= Distance then | |
| 206 | table.insert(List, v) | |
| 207 | end | |
| 208 | end | |
| 209 | end | |
| 210 | end | |
| 211 | end | |
| 212 | return List | |
| 213 | end | |
| 214 | ||
| 215 | ||
| 216 | ||
| 217 | ||
| 218 | ||
| 219 | ||
| 220 | ||
| 221 | ||
| 222 | ||
| 223 | ||
| 224 | ||
| 225 | Player=owner | |
| 226 | Character=Player.Character | |
| 227 | PlayerGui=Player.PlayerGui | |
| 228 | Backpack=Player.Backpack | |
| 229 | Torso=Character.Torso | |
| 230 | Head=Character.Head | |
| 231 | Humanoid=Character.Humanoid | |
| 232 | m=Instance.new('Model',Character)
| |
| 233 | LeftArm=Character["Left Arm"] | |
| 234 | LeftLeg=Character["Left Leg"] | |
| 235 | RightArm=Character["Right Arm"] | |
| 236 | RightLeg=Character["Right Leg"] | |
| 237 | LS=Torso["Left Shoulder"] | |
| 238 | LH=Torso["Left Hip"] | |
| 239 | RS=Torso["Right Shoulder"] | |
| 240 | RH=Torso["Right Hip"] | |
| 241 | Face = Head.face | |
| 242 | Neck=Torso.Neck | |
| 243 | it=Instance.new | |
| 244 | attacktype=1 | |
| 245 | vt=Vector3.new | |
| 246 | cf=CFrame.new | |
| 247 | bc = BrickColor.new | |
| 248 | br = BrickColor.random | |
| 249 | it = Instance.new | |
| 250 | euler=CFrame.fromEulerAnglesXYZ | |
| 251 | angles=CFrame.Angles | |
| 252 | cloaked=false | |
| 253 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 254 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 255 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 256 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 257 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 258 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 259 | RootPart=Character.HumanoidRootPart | |
| 260 | RootJoint=RootPart.RootJoint | |
| 261 | RootCF=euler(-1.57,0,3.14) | |
| 262 | attack = false | |
| 263 | attackdebounce = false | |
| 264 | equipped=false | |
| 265 | trispeed=.2 | |
| 266 | attackmode='none' | |
| 267 | local idle=0 | |
| 268 | local Anim="Idle" | |
| 269 | local Effects={}
| |
| 270 | local origcolor = BrickColor.new("Toothpaste",White)
| |
| 271 | local evade = false | |
| 272 | local attackcooldown = false | |
| 273 | local evadecooldown = false | |
| 274 | local Yoyo = true | |
| 275 | local Grabbed = false | |
| 276 | ||
| 277 | ||
| 278 | ||
| 279 | ||
| 280 | ||
| 281 | ||
| 282 | ||
| 283 | ||
| 284 | ||
| 285 | music = Instance.new("Sound",Torso) -- change to Character for global music --Change to Torso for non-global music
| |
| 286 | music.Volume = .55 | |
| 287 | music.SoundId = "rbxassetid://611389938"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938 | |
| 288 | music.Looped = true | |
| 289 | music:Play() | |
| 290 | ||
| 291 | ||
| 292 | ||
| 293 | Humanoid.Animator.Parent = nil | |
| 294 | Character.Animate.Parent = nil | |
| 295 | ||
| 296 | ||
| 297 | if Character:findFirstChild("Yoyo",true) ~= nil then
| |
| 298 | Character:findFirstChild("Yoyo",true).Parent = nil
| |
| 299 | end | |
| 300 | ||
| 301 | function RemoveOutlines(part) | |
| 302 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 303 | end | |
| 304 | ||
| 305 | ||
| 306 | ||
| 307 | ||
| 308 | ||
| 309 | function lerp(a, b, t) -- Linear interpolation | |
| 310 | return a + (b - a)*t | |
| 311 | end | |
| 312 | ||
| 313 | function slerp(a, b, t) --Spherical interpolation | |
| 314 | dot = a:Dot(b) | |
| 315 | if dot > 0.99999 or dot < -0.99999 then | |
| 316 | return t <= 0.5 and a or b | |
| 317 | else | |
| 318 | r = math.acos(dot) | |
| 319 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 320 | end | |
| 321 | end | |
| 322 | ||
| 323 | function matrixInterpolate(a, b, t) | |
| 324 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 325 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 326 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 327 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 328 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 329 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 330 | local t = v1:Dot(v2) | |
| 331 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 332 | return CFrame.new() | |
| 333 | end | |
| 334 | return CFrame.new( | |
| 335 | v0.x, v0.y, v0.z, | |
| 336 | v1.x, v1.y, v1.z, | |
| 337 | v2.x, v2.y, v2.z, | |
| 338 | v3.x, v3.y, v3.z) | |
| 339 | end | |
| 340 | ||
| 341 | function genWeld(a,b) | |
| 342 | local w = Instance.new("Weld",a)
| |
| 343 | w.Part0 = a | |
| 344 | w.Part1 = b | |
| 345 | return w | |
| 346 | end | |
| 347 | function weld(a, b) | |
| 348 | local weld = Instance.new("Weld")
| |
| 349 | weld.Name = "W" | |
| 350 | weld.Part0 = a | |
| 351 | weld.Part1 = b | |
| 352 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 353 | weld.Parent = a | |
| 354 | return weld; | |
| 355 | end | |
| 356 | ||
| 357 | function Lerp(c1,c2,al) | |
| 358 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 359 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 360 | for i,v in pairs(com1) do | |
| 361 | com1[i] = v+(com2[i]-v)*al | |
| 362 | end | |
| 363 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 364 | end | |
| 365 | ||
| 366 | ||
| 367 | function clerp(a,b,t) | |
| 368 | local qa = {QuaternionFromCFrame(a)}
| |
| 369 | local qb = {QuaternionFromCFrame(b)}
| |
| 370 | local ax, ay, az = a.x, a.y, a.z | |
| 371 | local bx, by, bz = b.x, b.y, b.z | |
| 372 | local _t = 1-t | |
| 373 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 374 | end | |
| 375 | ||
| 376 | function QuaternionFromCFrame(cf) | |
| 377 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 378 | local trace = m00 + m11 + m22 | |
| 379 | if trace > 0 then | |
| 380 | local s = math.sqrt(1 + trace) | |
| 381 | local recip = 0.5/s | |
| 382 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 383 | else | |
| 384 | local i = 0 | |
| 385 | if m11 > m00 then | |
| 386 | i = 1 | |
| 387 | end | |
| 388 | if m22 > (i == 0 and m00 or m11) then | |
| 389 | i = 2 | |
| 390 | end | |
| 391 | if i == 0 then | |
| 392 | local s = math.sqrt(m00-m11-m22+1) | |
| 393 | local recip = 0.5/s | |
| 394 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 395 | elseif i == 1 then | |
| 396 | local s = math.sqrt(m11-m22-m00+1) | |
| 397 | local recip = 0.5/s | |
| 398 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 399 | elseif i == 2 then | |
| 400 | local s = math.sqrt(m22-m00-m11+1) | |
| 401 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 402 | end | |
| 403 | end | |
| 404 | end | |
| 405 | ||
| 406 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 407 | local xs, ys, zs = x + x, y + y, z + z | |
| 408 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 409 | local xx = x*xs | |
| 410 | local xy = x*ys | |
| 411 | local xz = x*zs | |
| 412 | local yy = y*ys | |
| 413 | local yz = y*zs | |
| 414 | local zz = z*zs | |
| 415 | 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)) | |
| 416 | end | |
| 417 | ||
| 418 | function QuaternionSlerp(a, b, t) | |
| 419 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 420 | local startInterp, finishInterp; | |
| 421 | if cosTheta >= 0.0001 then | |
| 422 | if (1 - cosTheta) > 0.0001 then | |
| 423 | local theta = math.acos(cosTheta) | |
| 424 | local invSinTheta = 1/math.sin(theta) | |
| 425 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 426 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 427 | else | |
| 428 | startInterp = 1-t | |
| 429 | finishInterp = t | |
| 430 | end | |
| 431 | else | |
| 432 | if (1+cosTheta) > 0.0001 then | |
| 433 | local theta = math.acos(-cosTheta) | |
| 434 | local invSinTheta = 1/math.sin(theta) | |
| 435 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 436 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 437 | else | |
| 438 | startInterp = t-1 | |
| 439 | finishInterp = t | |
| 440 | end | |
| 441 | end | |
| 442 | 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 | |
| 443 | end | |
| 444 | ||
| 445 | --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 446 | ||
| 447 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 448 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 449 | end | |
| 450 | ||
| 451 | ||
| 452 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 453 | local fp = it("Part")
| |
| 454 | fp.formFactor = formfactor | |
| 455 | fp.Parent = parent | |
| 456 | fp.Reflectance = reflectance | |
| 457 | - | Player=game:GetService('Players').LocalPlayer
|
| 457 | + | |
| 458 | fp.CanCollide = false | |
| 459 | - | mouse=Player:GetMouse() |
| 459 | + | |
| 460 | fp.BrickColor = brickcolor | |
| 461 | fp.Name = name | |
| 462 | fp.Size = size | |
| 463 | fp.Position = Torso.Position | |
| 464 | fp.BottomSurface="Smooth" | |
| 465 | fp.TopSurface="Smooth" | |
| 466 | fp:BreakJoints() | |
| 467 | return fp | |
| 468 | end | |
| 469 | ||
| 470 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 471 | local mesh = it(Mesh) | |
| 472 | mesh.Parent = part | |
| 473 | if Mesh=="SpecialMesh" then | |
| 474 | mesh.MeshType = meshtype | |
| 475 | mesh.MeshId = meshid | |
| 476 | end | |
| 477 | mesh.Offset=offset | |
| 478 | mesh.Scale=scale | |
| 479 | return mesh | |
| 480 | end | |
| 481 | ||
| 482 | function weld(parent,part0,part1,c0) | |
| 483 | local weld = it("Weld")
| |
| 484 | weld.Parent = parent | |
| 485 | weld.Part0 = part0 | |
| 486 | weld.Part1 = part1 | |
| 487 | weld.C0 = c0 | |
| 488 | return weld | |
| 489 | end | |
| 490 | ||
| 491 | ||
| 492 | ||
| 493 | --save shoulders | |
| 494 | RSH, LSH=nil, nil | |
| 495 | --welds | |
| 496 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 497 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 498 | LH=Torso["Left Hip"] | |
| 499 | RH=Torso["Right Hip"] | |
| 500 | TorsoColor=Torso.BrickColor | |
| 501 | function NoOutline(Part) | |
| 502 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 503 | end | |
| 504 | player=Player | |
| 505 | ch=Character | |
| 506 | RSH=ch.Torso["Right Shoulder"] | |
| 507 | LSH=ch.Torso["Left Shoulder"] | |
| 508 | -- | |
| 509 | RSH.Parent=nil | |
| 510 | LSH.Parent=nil | |
| 511 | -- | |
| 512 | RW.Name="Right Shoulder" | |
| 513 | RW.Part0=ch.Torso | |
| 514 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 515 | RW.C1=cf(0, 0.5, 0) | |
| 516 | RW.Part1=ch["Right Arm"] | |
| 517 | RW.Parent=ch.Torso | |
| 518 | -- | |
| 519 | LW.Name="Left Shoulder" | |
| 520 | LW.Part0=ch.Torso | |
| 521 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 522 | LW.C1=cf(0, 0.5, 0) | |
| 523 | LW.Part1=ch["Left Arm"] | |
| 524 | LW.Parent=ch.Torso | |
| 525 | ||
| 526 | ||
| 527 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 528 | local wld = Instance.new("Weld", wp1)
| |
| 529 | wld.Part0 = wp0 | |
| 530 | wld.Part1 = wp1 | |
| 531 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 532 | end | |
| 533 | ||
| 534 | ||
| 535 | newWeld(RootPart, Torso, 0, -1, 0) | |
| 536 | Torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 537 | newWeld(Torso, LeftLeg, -0.5, -1, 0) | |
| 538 | LeftLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 539 | newWeld(Torso, RightLeg, 0.5, -1, 0) | |
| 540 | RightLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 541 | ||
| 542 | Player=owner | |
| 543 | Character=Player.Character | |
| 544 | m=Instance.new('Model',Character)
| |
| 545 | ||
| 546 | ||
| 547 | local function weldBetween(a, b) | |
| 548 | local weldd = Instance.new("ManualWeld")
| |
| 549 | weldd.Part0 = a | |
| 550 | weldd.Part1 = b | |
| 551 | weldd.C0 = CFrame.new() | |
| 552 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 553 | weldd.Parent = a | |
| 554 | return weldd | |
| 555 | end | |
| 556 | ||
| 557 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 558 | ArtificialHB.Name = "Heartbeat" | |
| 559 | ||
| 560 | script:WaitForChild("Heartbeat")
| |
| 561 | ||
| 562 | frame = 1 / 60 | |
| 563 | tf = 0 | |
| 564 | allowframeloss = false | |
| 565 | tossremainder = false | |
| 566 | lastframe = tick() | |
| 567 | script.Heartbeat:Fire() | |
| 568 | ||
| 569 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 570 | tf = tf + s | |
| 571 | if tf >= frame then | |
| 572 | if allowframeloss then | |
| 573 | script.Heartbeat:Fire() | |
| 574 | lastframe = tick() | |
| 575 | else | |
| 576 | for i = 1, math.floor(tf / frame) do | |
| 577 | script.Heartbeat:Fire() | |
| 578 | end | |
| 579 | lastframe = tick() | |
| 580 | end | |
| 581 | if tossremainder then | |
| 582 | tf = 0 | |
| 583 | else | |
| 584 | tf = tf - frame * math.floor(tf / frame) | |
| 585 | end | |
| 586 | end | |
| 587 | end) | |
| 588 | ||
| 589 | function swait(num) | |
| 590 | if num == 0 or num == nil then | |
| 591 | ArtificialHB.Event:wait() | |
| 592 | else | |
| 593 | for i = 0, num do | |
| 594 | ArtificialHB.Event:wait() | |
| 595 | end | |
| 596 | end | |
| 597 | end | |
| 598 | ||
| 599 | ||
| 600 | ||
| 601 | ||
| 602 | ||
| 603 | ||
| 604 | ||
| 605 | ||
| 606 | ||
| 607 | local bg = it("BodyGyro")
| |
| 608 | bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
| 609 | bg.P = 20e+003 | |
| 610 | bg.Parent = nil | |
| 611 | ||
| 612 | ||
| 613 | ||
| 614 | ||
| 615 | local modelzorz = Instance.new("Model")
| |
| 616 | modelzorz.Parent = Character | |
| 617 | modelzorz.Name = "Yoyo" | |
| 618 | ||
| 619 | local prt1=part(3,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1))
| |
| 620 | prt1.CanCollide=true | |
| 621 | prt1.Material = "Neon" | |
| 622 | local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,0.3,0.4))
| |
| 623 | ||
| 624 | ||
| 625 | ||
| 626 | ||
| 627 | ||
| 628 | local wld1=weld(prt1,prt1,Torso,euler(1.57,0,0)*cf(-1,1,-0.6)) | |
| 629 | numb=-0.15 | |
| 630 | for i=1,2 do | |
| 631 | local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
| |
| 632 | local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.6,0.1,0.6))
| |
| 633 | local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,numb,0)) | |
| 634 | numb2=0 | |
| 635 | for i=1,16 do | |
| 636 | local prt3=part(3,modelzorz,0.5,0,BrickColor.new("Toothpaste"),"Part3",vt(1,1,1))
| |
| 637 | local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(0.05,0.1,0.1))
| |
| 638 | local wld3=weld(prt3,prt3,prt2,euler(-3.14+0.785,0,1.57)*cf(0,0,0.3)) | |
| 639 | prt3.Material = "Neon" | |
| 640 | wld3.C1=euler(0,numb2,0) | |
| 641 | --numb2=numb2+0.785 | |
| 642 | numb2=numb2+0.3925 | |
| 643 | end | |
| 644 | numb=numb+0.3 | |
| 645 | end | |
| 646 | ||
| 647 | local string1=part(3,modelzorz,0,0,BrickColor.new("Toothpaste"),"String1",vt(1,1,1))
| |
| 648 | local stringmsh1=mesh("CylinderMesh",string1,"","",vt(0,0,0),vt(0.1,1,0.1))
| |
| 649 | local stringwld1=weld(string1,string1,prt13,euler(0,0,0)*cf(0,0,0)) | |
| 650 | local string2=part(3,modelzorz,0,0,BrickColor.new("White"),"String2",vt(1,1,1))
| |
| 651 | local stringmsh2=mesh("CylinderMesh",string2,"","",vt(0,0,0),vt(0.1,1,0.1))
| |
| 652 | local stringwld2=weld(string2,string2,prt13,euler(0,0,0)*cf(0,0,0)) | |
| 653 | string1.Material = "Neon" | |
| 654 | string2.Material = "Neon" | |
| 655 | local strmdl = "Arrow" | |
| 656 | coroutine.resume(coroutine.create(function() | |
| 657 | repeat | |
| 658 | wait(-10) | |
| 659 | local top = RightArm.CFrame*cf(0,-1,0) | |
| 660 | local bottom = prt1.CFrame | |
| 661 | local oristrpos | |
| 662 | if strmdl == "Bow" then | |
| 663 | oristrpos = CFrame.new((top.p+bottom.p)/2) | |
| 664 | elseif strmdl == "Arrow" then | |
| 665 | oristrpos = prt1.CFrame | |
| 666 | end | |
| 667 | local mg1 = (top.p - oristrpos.p).magnitude | |
| 668 | local mg2 = (bottom.p - oristrpos.p).magnitude | |
| 669 | ||
| 670 | string1.Size = Vector3.new(.7,mg1,.7) | |
| 671 | string1.Anchored=true | |
| 672 | string1.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0) | |
| 673 | string1.Transparency = 0.65 | |
| 674 | string2.Size = Vector3.new(.5,mg1,.5) | |
| 675 | string2.Anchored=true | |
| 676 | string2.CFrame = CFrame.new((top.p+oristrpos.p)/2,oristrpos.p) * CFrame.Angles(math.rad(90),0,0) | |
| 677 | --[[ | |
| 678 | --stringmsh1.Scale=vt(0.1,1,0.1) | |
| 679 | stringmsh1.Scale=vt(0.1,mg1,0.1) | |
| 680 | --cff=CFrame.new(prt1.CFrame.p,RightArm.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0) | |
| 681 | cff=cf(RightArm.CFrame*cf(0,-1,0).p,prt1.Position)*angles(math.rad(90),0,0)*cf(0,-mg1/2,0) | |
| 682 | hit2=string1 | |
| 683 | hit=prt1 | |
| 684 | stringwld1.Parent=string1 | |
| 685 | stringwld1.Part0=hit2 | |
| 686 | stringwld1.Part1=hit | |
| 687 | HitPos=cff.p | |
| 688 | local CJ = CFrame.new(HitPos) | |
| 689 | local C0=cff:inverse() *CJ | |
| 690 | local C1=hit.CFrame:inverse() * CJ | |
| 691 | stringwld1.C0=C0 | |
| 692 | stringwld1.C1=C1 | |
| 693 | ]] | |
| 694 | until false | |
| 695 | end)) | |
| 696 | ||
| 697 | ||
| 698 | if (script.Parent.className ~= "HopperBin") then | |
| 699 | Tool = Instance.new("HopperBin")
| |
| 700 | Tool.Parent = Backpack | |
| 701 | Tool.Name = "The Sonic Yo-yo." | |
| 702 | script.Parent = Tool | |
| 703 | end | |
| 704 | Bin = script.Parent | |
| 705 | ||
| 706 | ||
| 707 | ||
| 708 | ||
| 709 | so = function(id,par,vol,pit) | |
| 710 | coroutine.resume(coroutine.create(function() | |
| 711 | local sou = Instance.new("Sound",par or workspace)
| |
| 712 | sou.Volume=vol | |
| 713 | sou.Pitch=pit or 1 | |
| 714 | sou.SoundId=id | |
| 715 | wait() | |
| 716 | sou:play() | |
| 717 | wait(6) | |
| 718 | sou:Remove() | |
| 719 | end)) | |
| 720 | end | |
| 721 | ||
| 722 | function unequipweld() | |
| 723 | wld1.Part1=Torso | |
| 724 | wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6) | |
| 725 | ||
| 726 | ||
| 727 | end | |
| 728 | ||
| 729 | function equipweld() | |
| 730 | wld1.Part1=RightArm | |
| 731 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 732 | end | |
| 733 | ||
| 734 | function hideanim() | |
| 735 | equipped=false | |
| 736 | attacktype=1 | |
| 737 | swait() | |
| 738 | bg.Parent=nil | |
| 739 | ||
| 740 | ||
| 741 | so("http://www.roblox.com/asset/?id=270239880", prt1, 1, 1)
| |
| 742 | unequipweld() | |
| 743 | end | |
| 744 | ||
| 745 | function equipanim() | |
| 746 | equipped=true | |
| 747 | swait() | |
| 748 | equipweld() | |
| 749 | attacktype=1 | |
| 750 | --[[ | |
| 751 | RW.C0=cf(1.5, 0.5, 0) * euler(0,0,0) | |
| 752 | RW.C1=cf(0, 0.5, 0) * euler(0,0.2,-0.2) | |
| 753 | - | m = game.Players.LocalPlayer |
| 753 | + | |
| 754 | LW.C1=cf(0, 0.5, 0) * euler(0,0,0) | |
| 755 | ]]-- | |
| 756 | end | |
| 757 | ||
| 758 | function s(mouse) | |
| 759 | unsheathed = true | |
| 760 | player = Player | |
| 761 | ch = Character | |
| 762 | RSH = ch.Torso["Right Shoulder"] | |
| 763 | LSH = ch.Torso["Left Shoulder"] | |
| 764 | -- | |
| 765 | RSH.Parent = nil | |
| 766 | LSH.Parent = nil | |
| 767 | -- | |
| 768 | RW.Part0 = ch.Torso | |
| 769 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.1) | |
| 770 | RW.C1 = CFrame.new(0, 0.5, 0) | |
| 771 | RW.Part1 = ch["Right Arm"] | |
| 772 | RW.Parent = ch.Torso | |
| 773 | --_G.R = RW | |
| 774 | -- | |
| 775 | LW.Part0 = ch.Torso | |
| 776 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.1) | |
| 777 | LW.C1 = CFrame.new(0, 0.5, 0) | |
| 778 | LW.Part1 = ch["Left Arm"] | |
| 779 | LW.Parent = ch.Torso | |
| 780 | --_G.L = LW | |
| 781 | -- | |
| 782 | equipanim() | |
| 783 | swait() | |
| 784 | ||
| 785 | so("http://www.roblox.com/asset/?id=573105336", prt1, 1, 1)
| |
| 786 | ||
| 787 | end | |
| 788 | ||
| 789 | ||
| 790 | ||
| 791 | ||
| 792 | function ds(mouse) | |
| 793 | hideanim() | |
| 794 | swait() | |
| 795 | RW.Parent = nil | |
| 796 | LW.Parent = nil | |
| 797 | RSH.Parent = player.Character.Torso | |
| 798 | LSH.Parent = player.Character.Torso | |
| 799 | end | |
| 800 | ||
| 801 | ||
| 802 | ||
| 803 | Bin.Selected:connect(s) | |
| 804 | Bin.Deselected:connect(ds) | |
| 805 | ||
| 806 | ||
| 807 | ||
| 808 | ||
| 809 | ||
| 810 | ||
| 811 | ||
| 812 | local particleemitter2 = Instance.new("ParticleEmitter", prt1)
| |
| 813 | particleemitter2.VelocitySpread = 180 | |
| 814 | particleemitter2.Lifetime = NumberRange.new(1) | |
| 815 | particleemitter2.Texture = "http://roblox.com/asset/?id=284205403" | |
| 816 | particleemitter2.Speed = NumberRange.new(1.5) | |
| 817 | particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 818 | particleemitter2.RotSpeed = NumberRange.new(-45, 45) | |
| 819 | particleemitter2.Rate = 0 -- change this is your pc is too trash xd | |
| 820 | particleemitter2.Rotation = NumberRange.new(-45, 45) | |
| 821 | --particleemitter2.Acceleration = Vector3.new(0,3,0) | |
| 822 | particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 823 | particleemitter2.LightEmission = 0.8 | |
| 824 | particleemitter2.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(0,255,255)) | |
| 825 | ||
| 826 | local light = Instance.new("PointLight",prt1)
| |
| 827 | ||
| 828 | particleemitter2.Enabled = true | |
| 829 | ||
| 830 | ||
| 831 | ||
| 832 | ||
| 833 | ||
| 834 | ||
| 835 | if Yoyo == true then | |
| 836 | ||
| 837 | m = owner | |
| 838 | char = m.Character | |
| 839 | local txt = Instance.new("BillboardGui", char)
| |
| 840 | txt.Adornee = char .Head | |
| 841 | txt.Name = "_status" | |
| 842 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 843 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 844 | local text = Instance.new("TextLabel", txt)
| |
| 845 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 846 | text.FontSize = "Size24" | |
| 847 | text.TextScaled = true | |
| 848 | text.TextTransparency = 0 | |
| 849 | text.BackgroundTransparency = 1 | |
| 850 | text.TextTransparency = 0 | |
| 851 | text.TextStrokeTransparency = 0 | |
| 852 | - | c.Value=game:service("Players").LocalPlayer
|
| 852 | + | |
| 853 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
| 854 | ||
| 855 | v=Instance.new("Part")
| |
| 856 | v.Name = "ColorBrick" | |
| 857 | v.Parent=m.Character | |
| 858 | v.FormFactor="Symmetric" | |
| 859 | v.Anchored=true | |
| 860 | v.CanCollide=false | |
| 861 | v.BottomSurface="Smooth" | |
| 862 | v.TopSurface="Smooth" | |
| 863 | v.Size=Vector3.new(10,5,3) | |
| 864 | v.Transparency=1 | |
| 865 | v.CFrame=char.Torso.CFrame | |
| 866 | v.BrickColor=BrickColor.new("Really black")
| |
| 867 | v.Transparency=1 | |
| 868 | text.TextColor3 = Color3.new(0,0,255) | |
| 869 | v.Shape="Block" | |
| 870 | text.Text = "Yoyo" | |
| 871 | ||
| 872 | ||
| 873 | ||
| 874 | for _,v in pairs(m:children()) do | |
| 875 | if v:IsA("Part") then
| |
| 876 | v.CanCollide = false | |
| 877 | end | |
| 878 | end | |
| 879 | end | |
| 880 | if Character.Name == Yourname then | |
| 881 | for _,v in pairs(Character:children()) do | |
| 882 | if v:IsA("Accessory") then
| |
| 883 | v:Remove() | |
| 884 | end | |
| 885 | end | |
| 886 | ||
| 887 | ||
| 888 | ||
| 889 | Head.face.Texture = "rbxassetid://0" | |
| 890 | Character["Body Colors"].HeadColor = BrickColor.new("Navy blue")
| |
| 891 | Character["Body Colors"].TorsoColor = BrickColor.new("Navy blue")
| |
| 892 | Character["Body Colors"].LeftArmColor = BrickColor.new("Navy blue")
| |
| 893 | Character["Body Colors"].RightArmColor = BrickColor.new("Navy blue")
| |
| 894 | Character["Body Colors"].LeftLegColor = BrickColor.new("Navy blue")
| |
| 895 | Character["Body Colors"].RightLegColor = BrickColor.new("Navy blue")
| |
| 896 | ---------------------------------------------------- | |
| 897 | ypcall(function() | |
| 898 | shirt = Instance.new("Shirt", char)
| |
| 899 | shirt.Name = "Shirt" | |
| 900 | pants = Instance.new("Pants", char)
| |
| 901 | pants.Name = "Pants" | |
| 902 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0" | |
| 903 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0" | |
| 904 | end) | |
| 905 | ||
| 906 | end | |
| 907 | ||
| 908 | ||
| 909 | ||
| 910 | ||
| 911 | ||
| 912 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 913 | if hit.Parent==nil then | |
| 914 | return | |
| 915 | end | |
| 916 | h=hit.Parent:FindFirstChild("Humanoid")
| |
| 917 | for _,v in pairs(hit.Parent:children()) do | |
| 918 | if v:IsA("Humanoid") then
| |
| 919 | h=v | |
| 920 | end | |
| 921 | end | |
| 922 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 923 | h=hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 924 | end | |
| 925 | if hit.Parent.className=="Hat" then | |
| 926 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 927 | end | |
| 928 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 929 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 930 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 931 | return | |
| 932 | end]] | |
| 933 | -- hs(hit,1.2) | |
| 934 | c=Instance.new("ObjectValue")
| |
| 935 | c.Name="creator" | |
| 936 | c.Value=owner | |
| 937 | c.Parent=h | |
| 938 | game:GetService("Debris"):AddItem(c,.5)
| |
| 939 | Damage=math.random(minim,maxim) | |
| 940 | -- h:TakeDamage(Damage) | |
| 941 | blocked=false | |
| 942 | block=hit.Parent:findFirstChild("Block")
| |
| 943 | if block~=nil then | |
| 944 | print(block.className) | |
| 945 | if block.className=="NumberValue" then | |
| 946 | if block.Value>0 then | |
| 947 | blocked=true | |
| 948 | if decreaseblock==nil then | |
| 949 | block.Value=block.Value-1 | |
| 950 | end | |
| 951 | end | |
| 952 | end | |
| 953 | if block.className=="IntValue" then | |
| 954 | if block.Value>0 then | |
| 955 | blocked=true | |
| 956 | if decreaseblock~=nil then | |
| 957 | block.Value=block.Value-1 | |
| 958 | end | |
| 959 | end | |
| 960 | end | |
| 961 | end | |
| 962 | if blocked==false then | |
| 963 | -- h:TakeDamage(Damage) | |
| 964 | h.Health=h.Health-Damage | |
| 965 | else | |
| 966 | h.Health=h.Health-(Damage/2) | |
| 967 | end | |
| 968 | h.Health=h.Health-Damage | |
| 969 | ||
| 970 | ||
| 971 | ||
| 972 | if Type=="Knockdown" then | |
| 973 | hum=hit.Parent.Humanoid | |
| 974 | hum.PlatformStand=true | |
| 975 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 976 | swait(5) | |
| 977 | HHumanoid.PlatformStand=false | |
| 978 | end),hum) | |
| 979 | ||
| 980 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 981 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 982 | local bodvol=Instance.new("BodyVelocity")
| |
| 983 | bodvol.velocity=angle*knockback | |
| 984 | bodvol.P=5000 | |
| 985 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 986 | bodvol.Parent=hit | |
| 987 | rl=Instance.new("BodyAngularVelocity")
| |
| 988 | rl.P=30000 | |
| 989 | rl.maxTorque=Vector3.new(0,10,10)*5000 | |
| 990 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(2,4),math.random(-10,10)) | |
| 991 | rl.Parent=hit | |
| 992 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 993 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 994 | elseif Type=="Normal" then | |
| 995 | vp=Instance.new("BodyVelocity")
| |
| 996 | vp.P=500 | |
| 997 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 998 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 999 | if KnockbackType==1 then | |
| 1000 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 1001 | elseif KnockbackType==2 then | |
| 1002 | vp.velocity=Property.CFrame.lookVector*knockback | |
| 1003 | end | |
| 1004 | if knockback>0 then | |
| 1005 | vp.Parent=hit.Parent.Torso | |
| 1006 | end | |
| 1007 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 1008 | elseif Type=="Up" then | |
| 1009 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 1010 | bodyVelocity.velocity=vt(0,40,0) | |
| 1011 | bodyVelocity.P=1000 | |
| 1012 | bodyVelocity.maxForce=Vector3.new(0, 1e+009, 0)--1e+009 | |
| 1013 | bodyVelocity.Parent=hit | |
| 1014 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 1015 | rl=Instance.new("BodyAngularVelocity")
| |
| 1016 | rl.P=3000 | |
| 1017 | rl.maxTorque=Vector3.new(5000,5000,5000)*50000 | |
| 1018 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
| 1019 | rl.Parent=hit | |
| 1020 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 1021 | elseif Type=="Slam" then | |
| 1022 | local bodyVelocity2=Instance.new("BodyVelocity")
| |
| 1023 | bodyVelocity2.velocity=vt(0,-4,0) | |
| 1024 | bodyVelocity2.P=1000 | |
| 1025 | bodyVelocity2.maxForce=Vector3.new(0,-1e+009,0) | |
| 1026 | bodyVelocity2.Parent=hit | |
| 1027 | game:GetService("Debris"):AddItem(bodyVelocity2,1)
| |
| 1028 | rl2=Instance.new("BodyAngularVelocity")
| |
| 1029 | rl2.P=3000 | |
| 1030 | rl2.maxTorque=Vector3.new(5000,5000,5000)*50000 | |
| 1031 | rl2.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
| 1032 | rl2.Parent=hit | |
| 1033 | game:GetService("Debris"):AddItem(rl2,.5)
| |
| 1034 | elseif Type=="Snare" then | |
| 1035 | bp=Instance.new("BodyPosition")
| |
| 1036 | bp.P=2000 | |
| 1037 | bp.D=100 | |
| 1038 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 1039 | bp.position=hit.Parent.Torso.Position | |
| 1040 | bp.Parent=hit.Parent.Torso | |
| 1041 | game:GetService("Debris"):AddItem(bp,1)
| |
| 1042 | elseif Type=="Target" then | |
| 1043 | if Targetting==false then | |
| 1044 | ZTarget=hit.Parent.Torso | |
| 1045 | coroutine.resume(coroutine.create(function(Part) | |
| 1046 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 1047 | swait(5) | |
| 1048 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 1049 | end),ZTarget) | |
| 1050 | TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 1051 | targetgui=Instance.new("BillboardGui")
| |
| 1052 | targetgui.Parent=ZTarget | |
| 1053 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 1054 | targ=Instance.new("ImageLabel")
| |
| 1055 | targ.Parent=targetgui | |
| 1056 | targ.BackgroundTransparency=1 | |
| 1057 | targ.Image="rbxassetid://4834067" | |
| 1058 | targ.Size=UDim2.new(1,0,1,0) | |
| 1059 | cam.CameraType="Scriptable" | |
| 1060 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 1061 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 1062 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 1063 | Targetting=true | |
| 1064 | RocketTarget=ZTarget | |
| 1065 | for i=1,Property do | |
| 1066 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 1067 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 1068 | swait() | |
| 1069 | end | |
| 1070 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 1071 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 1072 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 1073 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 1074 | end | |
| 1075 | Targetting=false | |
| 1076 | RocketTarget=nil | |
| 1077 | targetgui.Parent=nil | |
| 1078 | cam.CameraType="Custom" | |
| 1079 | end | |
| 1080 | end | |
| 1081 | ||
| 1082 | ||
| 1083 | ||
| 1084 | ||
| 1085 | ||
| 1086 | ||
| 1087 | ||
| 1088 | ||
| 1089 | debounce=Instance.new("BoolValue")
| |
| 1090 | debounce.Name="DebounceHit" | |
| 1091 | debounce.Parent=hit.Parent | |
| 1092 | debounce.Value=true | |
| 1093 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 1094 | c=Instance.new("ObjectValue")
| |
| 1095 | c.Name="creator" | |
| 1096 | c.Value=Player | |
| 1097 | c.Parent=h | |
| 1098 | game:GetService("Debris"):AddItem(c,.5)
| |
| 1099 | CRIT=false | |
| 1100 | hitDeb=true | |
| 1101 | AttackPos=6 | |
| 1102 | end | |
| 1103 | end | |
| 1104 | ||
| 1105 | ||
| 1106 | ||
| 1107 | ||
| 1108 | ||
| 1109 | ||
| 1110 | ||
| 1111 | ||
| 1112 | ||
| 1113 | ||
| 1114 | ||
| 1115 | ||
| 1116 | ||
| 1117 | function Dash() | |
| 1118 | evadecooldown = true | |
| 1119 | attack = true | |
| 1120 | so("http://www.roblox.com/asset/?id=558640653", Torso, 1, 1)
| |
| 1121 | for i = 0,1,0.06 do | |
| 1122 | swait() | |
| 1123 | RootPart.Velocity = RootPart.CFrame.lookVector * 240 | |
| 1124 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4) | |
| 1125 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 1126 | RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -.5) * angles(math.rad(80), math.rad(0), math.rad(-50)),.2) | |
| 1127 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1128 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8) | |
| 1129 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8) | |
| 1130 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1131 | end | |
| 1132 | attack = false | |
| 1133 | wait(3) | |
| 1134 | evadecooldown = false | |
| 1135 | end | |
| 1136 | ||
| 1137 | ||
| 1138 | ||
| 1139 | function Dash2() | |
| 1140 | attack = true | |
| 1141 | evadecooldown = true | |
| 1142 | so("http://www.roblox.com/asset/?id=558640653", Torso, 1, 1)
| |
| 1143 | for i = 0,1,0.06 do | |
| 1144 | swait() | |
| 1145 | RootPart.Velocity = RootPart.CFrame.lookVector * 240 | |
| 1146 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4) | |
| 1147 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 1148 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.2) | |
| 1149 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1150 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8) | |
| 1151 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8) | |
| 1152 | end | |
| 1153 | attack = false | |
| 1154 | wait(3) | |
| 1155 | evadecooldown = false | |
| 1156 | end | |
| 1157 | ||
| 1158 | ||
| 1159 | function attackone() | |
| 1160 | ||
| 1161 | attack = true | |
| 1162 | ||
| 1163 | local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(2,5),"Normal",RootPart,.2,1) end) | |
| 1164 | so("http://www.roblox.com/asset/?id=821400988", LeftArm, 1, 1)
| |
| 1165 | for i = 0,1,0.10 do | |
| 1166 | swait() | |
| 1167 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4) | |
| 1168 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2) | |
| 1169 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2) | |
| 1170 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-40), math.rad(-90)),.2) | |
| 1171 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1172 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1173 | ||
| 1174 | end | |
| 1175 | con5:disconnect() | |
| 1176 | attack = false | |
| 1177 | end | |
| 1178 | ||
| 1179 | ||
| 1180 | function throw() | |
| 1181 | ||
| 1182 | attack = true | |
| 1183 | local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,23,37,math.random(5,15),"Normal",RootPart,.2,1) end) | |
| 1184 | so("http://www.roblox.com/asset/?id=268009172", Head, 1, 0.88)
| |
| 1185 | for i = 0,1,0.12 do | |
| 1186 | swait() | |
| 1187 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4) | |
| 1188 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2) | |
| 1189 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2) | |
| 1190 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1191 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1192 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1193 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1194 | --wld1.C0=clerp(wld1.C0,cf(0,-10,-2)*angles(5+30*i,0,10),.2) | |
| 1195 | end | |
| 1196 | ||
| 1197 | so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78)
| |
| 1198 | for i = 0,4,0.06 do | |
| 1199 | swait() | |
| 1200 | so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
| |
| 1201 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4) | |
| 1202 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2) | |
| 1203 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2) | |
| 1204 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1205 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1206 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1207 | wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0) | |
| 1208 | end | |
| 1209 | for i = 0,1,0.12 do | |
| 1210 | swait() | |
| 1211 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4) | |
| 1212 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2) | |
| 1213 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2) | |
| 1214 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1215 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1216 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1217 | wld1.C0=euler(0,0,1.57)*cf(0,15.1-14*i,0) | |
| 1218 | end | |
| 1219 | con5:disconnect() | |
| 1220 | attack = false | |
| 1221 | ||
| 1222 | end | |
| 1223 | ||
| 1224 | ||
| 1225 | function attackoney() | |
| 1226 | local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,17,24,math.random(1,1),"Normal",RootPart,.2,1) end) | |
| 1227 | so("http://www.roblox.com/asset/?id=268009172", Head, 1, 0.88)
| |
| 1228 | for i = 0,1,0.12 do | |
| 1229 | swait() | |
| 1230 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4) | |
| 1231 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2) | |
| 1232 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2) | |
| 1233 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1234 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1235 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1236 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1237 | --wld1.C0=clerp(wld1.C0,cf(0,-10,-2)*angles(5+30*i,0,10),.2) | |
| 1238 | end | |
| 1239 | ||
| 1240 | so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78)
| |
| 1241 | for i = 0,1.5,0.36 do | |
| 1242 | swait() | |
| 1243 | so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
| |
| 1244 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4) | |
| 1245 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2) | |
| 1246 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2) | |
| 1247 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1248 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1249 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1250 | wld1.C0=euler(0,0,1.57)*cf(0,1.1+1*i,0) | |
| 1251 | end | |
| 1252 | for i = 0,1,0.16 do | |
| 1253 | swait() | |
| 1254 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4) | |
| 1255 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2) | |
| 1256 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2) | |
| 1257 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1258 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1259 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1260 | wld1.C0=euler(0,0,1.57)*cf(0,2.1-1*i,0) | |
| 1261 | end | |
| 1262 | attack = false | |
| 1263 | ||
| 1264 | con5:disconnect() | |
| 1265 | end | |
| 1266 | ||
| 1267 | ||
| 1268 | ||
| 1269 | ||
| 1270 | ||
| 1271 | function attacktwoy() | |
| 1272 | attack = true | |
| 1273 | local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,10,14,math.random(1,1),"Normal",RootPart,.2,1) end) | |
| 1274 | for i = 0,1,0.10 do | |
| 1275 | swait() | |
| 1276 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.4) | |
| 1277 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.2) | |
| 1278 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2) | |
| 1279 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.7) * angles(math.rad(0), math.rad(-40), math.rad(-90)),.2) | |
| 1280 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1281 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1282 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1283 | end | |
| 1284 | ||
| 1285 | ||
| 1286 | for i = 0,1,0.10 do | |
| 1287 | swait() | |
| 1288 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4) | |
| 1289 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2) | |
| 1290 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2) | |
| 1291 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-40), math.rad(-90)),.2) | |
| 1292 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1293 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1294 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1295 | end | |
| 1296 | con5:disconnect() | |
| 1297 | attack = false | |
| 1298 | ||
| 1299 | end | |
| 1300 | ||
| 1301 | ||
| 1302 | ||
| 1303 | ||
| 1304 | ||
| 1305 | ||
| 1306 | ||
| 1307 | ||
| 1308 | function attackthreey() | |
| 1309 | attack = true | |
| 1310 | so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
| |
| 1311 | so("http://www.roblox.com/asset/?id=158475221", LeftLeg, 1, 1.3)
| |
| 1312 | local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,17,22,math.random(1,5),"Normal",RootPart,.2,1) end) | |
| 1313 | for i = 0,4.6,0.16 do | |
| 1314 | swait() | |
| 1315 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90*i), math.rad(0)), 0.4) | |
| 1316 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2) | |
| 1317 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2) | |
| 1318 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2) | |
| 1319 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8) | |
| 1320 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8) | |
| 1321 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1322 | end | |
| 1323 | con5:disconnect() | |
| 1324 | ||
| 1325 | attack = false | |
| 1326 | ||
| 1327 | end | |
| 1328 | ||
| 1329 | ||
| 1330 | ||
| 1331 | function YoyoEvade() | |
| 1332 | evade = true | |
| 1333 | Character.Humanoid.Jump = true | |
| 1334 | wait(0.6) | |
| 1335 | attack = true | |
| 1336 | local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,57,82,math.random(1,5),"Knockdown",RootPart,.2,1) end) | |
| 1337 | for i = 0,3.5,0.06 do | |
| 1338 | --RootPart.Velocity = RootPart.CFrame.lookVector * 0 | |
| 1339 | swait() | |
| 1340 | so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
| |
| 1341 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(50), math.rad(0)), 0.4) | |
| 1342 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2) | |
| 1343 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2) | |
| 1344 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1345 | RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,0.20,-0.25)*angles(math.rad(0),math.rad(0),math.rad(0)), 0.8) | |
| 1346 | LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-0.70,-0.25)*angles(math.rad(0),math.rad(0),math.rad(0)), 0.8) | |
| 1347 | wld1.C0=euler(0,0,1.57)*cf(0,1.1+10*i,0) | |
| 1348 | end | |
| 1349 | wait(3) | |
| 1350 | for i = 0,4.6,0.16 do | |
| 1351 | swait() | |
| 1352 | so("http://www.roblox.com/asset/?id=158475221", RightLeg, 0.5, 1.3)
| |
| 1353 | so("http://www.roblox.com/asset/?id=158475221", LeftLeg, 0.5, 1.3)
| |
| 1354 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90*i), math.rad(0)), 0.4) | |
| 1355 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2) | |
| 1356 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2) | |
| 1357 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2) | |
| 1358 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8) | |
| 1359 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8) | |
| 1360 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1361 | end | |
| 1362 | attack = false | |
| 1363 | Character.Humanoid.Jump = false | |
| 1364 | con5:disconnect() | |
| 1365 | wait(2) | |
| 1366 | evade = false | |
| 1367 | ||
| 1368 | end | |
| 1369 | ||
| 1370 | ||
| 1371 | function fy() | |
| 1372 | attack = true | |
| 1373 | local con5=prt1.Touched:connect(function(hit) Damagefunc(hit,34,42,math.random(1,5),"Up",RootPart,.2,1) end) | |
| 1374 | for i = 0,1.5,0.07 do | |
| 1375 | swait() | |
| 1376 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.4) | |
| 1377 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.2) | |
| 1378 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.7) * angles(math.rad(50), math.rad(-80), math.rad(-10)),.2) | |
| 1379 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.3, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2) | |
| 1380 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.2, -0.5) * CFrame.Angles(math.rad(20), math.rad(-3), math.rad(0)), 0.8) | |
| 1381 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0.3) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(4)), 0.8) | |
| 1382 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1383 | end | |
| 1384 | ||
| 1385 | ||
| 1386 | for i = 0,1.7,0.13 do | |
| 1387 | so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
| |
| 1388 | swait() | |
| 1389 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4) | |
| 1390 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40*i),math.rad(0),math.rad(0)),.2) | |
| 1391 | RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -0.5) * angles(math.rad(90*i), math.rad(-80*i), math.rad(-40*i)),.2) | |
| 1392 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2) | |
| 1393 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8) | |
| 1394 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.8) | |
| 1395 | wld1.C0=euler(0,0,1.57)*cf(0,4.1*i,0) | |
| 1396 | end | |
| 1397 | ||
| 1398 | ||
| 1399 | ||
| 1400 | for i = 0,1.7,0.13 do | |
| 1401 | swait() | |
| 1402 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4) | |
| 1403 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40),math.rad(0),math.rad(0)),.2) | |
| 1404 | RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -0.5) * angles(math.rad(90), math.rad(-80), math.rad(-40)),.2) | |
| 1405 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2) | |
| 1406 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8) | |
| 1407 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.8) | |
| 1408 | wld1.C0=euler(0,0,1.57)*cf(0,4.1-3*i,0) | |
| 1409 | end | |
| 1410 | ||
| 1411 | ||
| 1412 | attack = false | |
| 1413 | con5:disconnect() | |
| 1414 | end | |
| 1415 | ||
| 1416 | ||
| 1417 | ||
| 1418 | ||
| 1419 | function grabattack() | |
| 1420 | ||
| 1421 | attack = true | |
| 1422 | ||
| 1423 | --local GGyro = Instance.new("BodyPosition")
| |
| 1424 | local grab = nil | |
| 1425 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 200)) do | |
| 1426 | if v:FindFirstChild('Torso') then
| |
| 1427 | Grabbed = true | |
| 1428 | grab = v | |
| 1429 | end | |
| 1430 | end | |
| 1431 | so("http://roblox.com/asset/?id=10209640",RightArm,1,0.78)
| |
| 1432 | for i = 0,4,0.06 do | |
| 1433 | swait() | |
| 1434 | so("http://www.roblox.com/asset/?id=346009296", prt1, 1, 1)
| |
| 1435 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4) | |
| 1436 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-30)),.2) | |
| 1437 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2) | |
| 1438 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1439 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1440 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1441 | wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0) | |
| 1442 | end | |
| 1443 | for i = 0, 1, 0.13 do | |
| 1444 | swait() | |
| 1445 | if Grabbed == true then | |
| 1446 | wld1.C0=euler(0,0,1.57)*cf(0,26.1-25*i,0) | |
| 1447 | grab.Humanoid.PlatformStand = true | |
| 1448 | --GGyro.position = Partss.Position | |
| 1449 | --GGyro.Parent = grab.Head | |
| 1450 | grab.Torso.CFrame = prt1.CFrame * CFrame.Angles(0,math.rad(-90),0) | |
| 1451 | end | |
| 1452 | ||
| 1453 | end | |
| 1454 | ||
| 1455 | Grabbed = true | |
| 1456 | attack = false | |
| 1457 | end | |
| 1458 | ||
| 1459 | ||
| 1460 | ||
| 1461 | ||
| 1462 | ||
| 1463 | function attacktwo() | |
| 1464 | ||
| 1465 | ||
| 1466 | ||
| 1467 | ||
| 1468 | ||
| 1469 | attack = true | |
| 1470 | ||
| 1471 | local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(2,5),"Normal",RootPart,.2,1) end) | |
| 1472 | so("http://www.roblox.com/asset/?id=821400988", RightArm, 1, 1)
| |
| 1473 | ||
| 1474 | for i = 0,1,0.10 do | |
| 1475 | swait() | |
| 1476 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4) | |
| 1477 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.2) | |
| 1478 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.3) * angles(math.rad(0), math.rad(40), math.rad(90)),.2) | |
| 1479 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1480 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1481 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-40), math.rad(4)), 0.8) | |
| 1482 | ||
| 1483 | end | |
| 1484 | con5:disconnect() | |
| 1485 | attack = false | |
| 1486 | ||
| 1487 | ||
| 1488 | ||
| 1489 | end | |
| 1490 | ||
| 1491 | ||
| 1492 | ||
| 1493 | ||
| 1494 | ||
| 1495 | ||
| 1496 | ||
| 1497 | ||
| 1498 | ||
| 1499 | function attackthree() | |
| 1500 | attack = true | |
| 1501 | local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Knockdown",RootPart,.2,1) end) | |
| 1502 | so("http://www.roblox.com/asset/?id=821400988", LeftLeg, 1, 1)
| |
| 1503 | ||
| 1504 | for i = 0,1,0.10 do | |
| 1505 | swait() | |
| 1506 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-90), math.rad(0)), 0.4) | |
| 1507 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(60)),.2) | |
| 1508 | RW.C0 = clerp(RW.C0, CFrame.new(.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(-90)),.2) | |
| 1509 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1510 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(40), math.rad(-90)), 0.8) | |
| 1511 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(30)), 0.8) | |
| 1512 | ||
| 1513 | end | |
| 1514 | attack = false | |
| 1515 | ||
| 1516 | con5:disconnect() | |
| 1517 | ||
| 1518 | ||
| 1519 | ||
| 1520 | end | |
| 1521 | ||
| 1522 | ||
| 1523 | ||
| 1524 | ||
| 1525 | ||
| 1526 | ||
| 1527 | ||
| 1528 | function attackfour() | |
| 1529 | ||
| 1530 | attack = true | |
| 1531 | local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Normal",RootPart,.2,1) end) | |
| 1532 | so("http://www.roblox.com/asset/?id=821400988", RightArm, 1, 1)
| |
| 1533 | ||
| 1534 | for i = 0,1,0.10 do | |
| 1535 | swait() | |
| 1536 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.7, 0.2) * CFrame.Angles(math.rad(4), math.rad(5), math.rad(0)), 0.4) | |
| 1537 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-40),math.rad(0),math.rad(0)),.2) | |
| 1538 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1539 | RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -1.5) * angles(math.rad(90), math.rad(-80), math.rad(-60)),.2) | |
| 1540 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-32), math.rad(0), math.rad(0)), 0.8) | |
| 1541 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.47, -0.5) * CFrame.Angles(math.rad(-35), math.rad(-0), math.rad(0)), 0.8) | |
| 1542 | end | |
| 1543 | con5:disconnect() | |
| 1544 | ||
| 1545 | attack = false | |
| 1546 | ||
| 1547 | end | |
| 1548 | ||
| 1549 | function attackfive() | |
| 1550 | ||
| 1551 | attack = true | |
| 1552 | local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,13,17,math.random(0,0),"Normal",RootPart,.2,1) end) | |
| 1553 | so("http://www.roblox.com/asset/?id=821400988", RightLeg, 1, 1)
| |
| 1554 | for i = 0,1,0.10 do | |
| 1555 | swait() | |
| 1556 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(90), math.rad(0)), 0.4) | |
| 1557 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(-60)),.2) | |
| 1558 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2) | |
| 1559 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2) | |
| 1560 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(-30)), 0.8) | |
| 1561 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(100), math.rad(-40), math.rad(90)), 0.8) | |
| 1562 | ||
| 1563 | end | |
| 1564 | con5:disconnect() | |
| 1565 | attack = false | |
| 1566 | end | |
| 1567 | ||
| 1568 | ||
| 1569 | ||
| 1570 | function YoyoExplode() | |
| 1571 | attackcooldown = true | |
| 1572 | Character.Humanoid.Jump = true | |
| 1573 | wait(0.6) | |
| 1574 | attack = true | |
| 1575 | so("http://www.roblox.com/asset/?id=449247880", prt1, 1, 1)
| |
| 1576 | for i = 0,4,0.12 do | |
| 1577 | swait() | |
| 1578 | RootPart.Velocity = RootPart.CFrame.lookVector * 0 | |
| 1579 | RootPart.Velocity = RootPart.CFrame.lookVector * 0 | |
| 1580 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(20), 0, 0), 0.8) | |
| 1581 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.2) | |
| 1582 | RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1583 | LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1584 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2) | |
| 1585 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
| 1586 | wld1.C0=clerp(wld1.C0,cf(0,-1.5,-2)*angles(math.rad(5+90*i),1.1,math.rad(0)),.2) | |
| 1587 | end | |
| 1588 | ||
| 1589 | so("http://www.roblox.com/asset/?id=465940184", prt1, 1, 1)
| |
| 1590 | for i = 0,4,0.12 do | |
| 1591 | swait() | |
| 1592 | RootPart.Velocity = RootPart.CFrame.lookVector * 0 | |
| 1593 | RootPart.Velocity = RootPart.CFrame.lookVector * 0 | |
| 1594 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8) | |
| 1595 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
| 1596 | RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1597 | LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1598 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
| 1599 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2) | |
| 1600 | wld1.C0=euler(0,0,1.57)*cf(0,1.1+15*i,0) | |
| 1601 | end | |
| 1602 | for i = 0,1.5,0.12 do | |
| 1603 | swait() | |
| 1604 | RootPart.Velocity = RootPart.CFrame.lookVector * 0 | |
| 1605 | RootPart.Velocity = RootPart.CFrame.lookVector * 0 | |
| 1606 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8) | |
| 1607 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
| 1608 | RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1609 | LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1610 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
| 1611 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2) | |
| 1612 | wld1.C0=euler(0,0,1.57)*cf(0,56.1,0) | |
| 1613 | end | |
| 1614 | ||
| 1615 | for i = 1, 1 do | |
| 1616 | ||
| 1617 | swait() | |
| 1618 | RootPart.Velocity = RootPart.CFrame.lookVector * 0 | |
| 1619 | RootPart.Velocity = RootPart.CFrame.lookVector * 0 | |
| 1620 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.8) | |
| 1621 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2) | |
| 1622 | RightLeg.Weld.C0=clerp(RightLeg.Weld.C0,cf(0.5,-.6,-0.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 1623 | LeftLeg.Weld.C0=clerp(LeftLeg.Weld.C0,cf(-0.5,-.4,-0.3)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
| 1624 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
| 1625 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90),math.rad(0),math.rad(0)),.2) | |
| 1626 | wld1.C0=euler(0,0,1.57)*cf(0,56.1,0) | |
| 1627 | ||
| 1628 | ||
| 1629 | so("http://www.roblox.com/asset/?id=895716446", prt1, 1, 1)
| |
| 1630 | ||
| 1631 | local S = Instance.new("Explosion",workspace)
| |
| 1632 | S.Position = prt1.Position | |
| 1633 | S.BlastPressure = 5 | |
| 1634 | S.BlastRadius = 15 | |
| 1635 | S.ExplosionType = 2 | |
| 1636 | end | |
| 1637 | ||
| 1638 | ||
| 1639 | ||
| 1640 | numb=-0.15 | |
| 1641 | for i=1,2 do | |
| 1642 | local prt1=part(3,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1))
| |
| 1643 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1644 | prt1.CanCollide=true | |
| 1645 | prt1.Material = "Neon" | |
| 1646 | local msh1=mesh("CylinderMesh",prt1,"","",vt(0,0,0),vt(0.4,0.3,0.4))
| |
| 1647 | local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
| |
| 1648 | local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(0.6,0.1,0.6))
| |
| 1649 | local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,numb,0)) | |
| 1650 | numb2=0 | |
| 1651 | for i=1,16 do | |
| 1652 | local prt3=part(3,modelzorz,0.5,0,BrickColor.new("Toothpaste"),"Part3",vt(1,1,1))
| |
| 1653 | local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(0.05,0.1,0.1))
| |
| 1654 | local wld3=weld(prt3,prt3,prt2,euler(-3.14+0.785,0,1.57)*cf(0,0,0.3)) | |
| 1655 | prt3.Material = "Neon" | |
| 1656 | wld3.C1=euler(0,numb2,0) | |
| 1657 | --numb2=numb2+0.785 | |
| 1658 | numb2=numb2+0.3925 | |
| 1659 | end | |
| 1660 | numb=numb+0.3 | |
| 1661 | end | |
| 1662 | ||
| 1663 | ||
| 1664 | for i = 0,4,0.12 do | |
| 1665 | ||
| 1666 | ||
| 1667 | ||
| 1668 | swait() | |
| 1669 | RootPart.Velocity = RootPart.CFrame.lookVector * -140 | |
| 1670 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 1671 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4) | |
| 1672 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 1673 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(-10), math.rad(50)), 0.3) | |
| 1674 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(-10), math.rad(-50)), 0.3) | |
| 1675 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12), math.rad(0), math.rad(0)), 0.8) | |
| 1676 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25), math.rad(-3), math.rad(0)), 0.8) | |
| 1677 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1678 | end | |
| 1679 | ||
| 1680 | attack = false | |
| 1681 | wait(7) | |
| 1682 | attackcooldown = false | |
| 1683 | end | |
| 1684 | ||
| 1685 | ||
| 1686 | ||
| 1687 | ||
| 1688 | ||
| 1689 | ||
| 1690 | ||
| 1691 | mouse.Button1Down:connect(function() | |
| 1692 | if attack==false and equipped == false then | |
| 1693 | if attacktype==1 then | |
| 1694 | attack=true | |
| 1695 | attacktype=2 | |
| 1696 | attackone() | |
| 1697 | elseif attacktype==2 then | |
| 1698 | attack=true | |
| 1699 | attacktype=3 | |
| 1700 | attacktwo() | |
| 1701 | elseif attacktype==3 then | |
| 1702 | attack=true | |
| 1703 | attacktype=4 | |
| 1704 | attackthree() | |
| 1705 | elseif attacktype==4 then | |
| 1706 | attack=true | |
| 1707 | attacktype=5 | |
| 1708 | attackfour() | |
| 1709 | elseif attacktype==5 then | |
| 1710 | attack=true | |
| 1711 | attacktype=1 | |
| 1712 | attackfive() | |
| 1713 | end | |
| 1714 | end | |
| 1715 | end) | |
| 1716 | ||
| 1717 | ||
| 1718 | ||
| 1719 | ||
| 1720 | mouse.Button1Down:connect(function() | |
| 1721 | if attack==false and equipped == true then | |
| 1722 | if attacktype==1 then | |
| 1723 | attack=true | |
| 1724 | attacktype=2 | |
| 1725 | attackoney() | |
| 1726 | elseif attacktype==2 then | |
| 1727 | attack=true | |
| 1728 | attacktype=3 | |
| 1729 | attacktwoy() | |
| 1730 | elseif attacktype==3 then | |
| 1731 | attack=true | |
| 1732 | attacktype=4 | |
| 1733 | attackthreey() | |
| 1734 | elseif attacktype==4 then | |
| 1735 | attack=true | |
| 1736 | attacktype=1 | |
| 1737 | fy() | |
| 1738 | elseif attacktype==5 then | |
| 1739 | attack=true | |
| 1740 | attacktype=1 | |
| 1741 | attackfivey() | |
| 1742 | ||
| 1743 | end | |
| 1744 | end | |
| 1745 | end) | |
| 1746 | ||
| 1747 | ||
| 1748 | ||
| 1749 | ||
| 1750 | ||
| 1751 | function Grapple() | |
| 1752 | ||
| 1753 | attack=true | |
| 1754 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1755 | for i = 0,1,0.03 do | |
| 1756 | swait() | |
| 1757 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4) | |
| 1758 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2) | |
| 1759 | RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -.5) * angles(math.rad(90), math.rad(130), math.rad(90)),.2) | |
| 1760 | LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.3, -.5) * angles(math.rad(60), math.rad(11), math.rad(70)),.2) | |
| 1761 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-4)), 0.8) | |
| 1762 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8) | |
| 1763 | end | |
| 1764 | for i=0,1,0.1 do | |
| 1765 | swait() | |
| 1766 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.4) | |
| 1767 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.2) | |
| 1768 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(40), math.rad(90)),.2) | |
| 1769 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
| 1770 | ||
| 1771 | offset=(Torso.Position.y-mouse.Hit.p.y)/60 | |
| 1772 | mag=(Torso.Position-mouse.Hit.p).magnitude/80 | |
| 1773 | offset=offset/mag | |
| 1774 | end | |
| 1775 | wait(0.2) | |
| 1776 | so("http://roblox.com/asset/?id=10209640",LeftArm,1,0.78)
| |
| 1777 | prt1.Velocity=vt(0,0,0) | |
| 1778 | wld1.Parent=nil | |
| 1779 | local baseprt=part(3,workspace,0,1,BrickColor.new("Black"),"BasePart",vt(1,1,1))
| |
| 1780 | --[[local hit,pos = rayCast(prt1.Position,mouse.Hit.p,100,game) | |
| 1781 | local hit,pos = game.Workspace:FindPartOnRay(Ray.new(prt1.Position, mouse.Hit.p.unit * (100)), workspace) | |
| 1782 | print(pos) | |
| 1783 | print(hit) | |
| 1784 | baseprt.CFrame=CFrame.new(pos)]] | |
| 1785 | baseprt.CFrame=RightArm.CFrame*cf(0,-200,0) | |
| 1786 | fd=Instance.new("BodyPosition")
| |
| 1787 | fd.P=200 | |
| 1788 | fd.D=60 | |
| 1789 | fd.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 1790 | fd.position=baseprt.Position | |
| 1791 | fd.Parent=prt1 | |
| 1792 | coroutine.resume(coroutine.create(function(BodyPos) | |
| 1793 | while fd.Parent~=nil do | |
| 1794 | wait() | |
| 1795 | end | |
| 1796 | end),fd) | |
| 1797 | coroutine.resume(coroutine.create(function() | |
| 1798 | wait(0.1) | |
| 1799 | con1=prt1.Touched:connect(function(hit) | |
| 1800 | so("http://roblox.com/asset/?id=214876666",prt1,1.4,1)
| |
| 1801 | if hit.Name~="String1" then | |
| 1802 | fd.Parent=nil | |
| 1803 | prt1.Anchored=true | |
| 1804 | fddd=Instance.new("BodyPosition")
| |
| 1805 | fddd.P=2000 | |
| 1806 | fddd.D=600 | |
| 1807 | fddd.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 1808 | fddd.position=prt1.Position | |
| 1809 | fddd.Parent=RightArm | |
| 1810 | coroutine.resume(coroutine.create(function(BodyPos) | |
| 1811 | wait(1) | |
| 1812 | prt1.Anchored=false | |
| 1813 | wld1.Parent=RightArm | |
| 1814 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1815 | BodyPos.Parent=nil | |
| 1816 | end),fddd) | |
| 1817 | end | |
| 1818 | end) | |
| 1819 | end)) | |
| 1820 | cond=prt1.Touched:connect(function(hit) Damagefunc(hit,10,20) end) | |
| 1821 | wait(2) | |
| 1822 | con1:disconnect() | |
| 1823 | coroutine.resume(coroutine.create(function(BodyPos) | |
| 1824 | for i=1,20 do | |
| 1825 | wait(0) | |
| 1826 | BodyPos.position=RightArm.Position | |
| 1827 | end | |
| 1828 | end),fd) | |
| 1829 | wait(1) | |
| 1830 | cond:disconnect() | |
| 1831 | fd.Parent=nil | |
| 1832 | wld1.Parent=RightArm | |
| 1833 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1834 | baseprt.Parent=nil | |
| 1835 | attack=false | |
| 1836 | end | |
| 1837 | ||
| 1838 | ||
| 1839 | ||
| 1840 | ||
| 1841 | mouse.KeyDown:connect(function(key) | |
| 1842 | if key == 'c' and attack == false and equipped == true then | |
| 1843 | Grapple() | |
| 1844 | end | |
| 1845 | end) | |
| 1846 | mouse.KeyDown:connect(function(key) | |
| 1847 | if key == 'e' and attack == false and equipped == true then | |
| 1848 | throw() | |
| 1849 | end | |
| 1850 | end) | |
| 1851 | mouse.KeyDown:connect(function(key) | |
| 1852 | if key == 'r' and attack == false and equipped == true and evade == false then | |
| 1853 | YoyoEvade() | |
| 1854 | end | |
| 1855 | end) | |
| 1856 | ||
| 1857 | ||
| 1858 | mouse.KeyDown:connect(function(key) | |
| 1859 | if key == 't' and attackcooldown == false and equipped == true and attack == false then | |
| 1860 | YoyoExplode() | |
| 1861 | end | |
| 1862 | end) | |
| 1863 | ||
| 1864 | ||
| 1865 | ||
| 1866 | mouse.KeyDown:connect(function(key) | |
| 1867 | if key == 'f' and attack == false and equipped == true and evadecooldown == false then | |
| 1868 | Dash() | |
| 1869 | end | |
| 1870 | end) | |
| 1871 | ||
| 1872 | ||
| 1873 | mouse.KeyDown:connect(function(key) | |
| 1874 | if key == 'f' and attack == false and equipped == false and evadecooldown == false then | |
| 1875 | Dash2() | |
| 1876 | end | |
| 1877 | end) | |
| 1878 | ||
| 1879 | mouse.KeyDown:connect(function(key) | |
| 1880 | if key == 'g' and attack == false and equipped == true then | |
| 1881 | grabattack() | |
| 1882 | end | |
| 1883 | end) | |
| 1884 | ||
| 1885 | ||
| 1886 | Character.Humanoid.MaxHealth = 700 | |
| 1887 | Character.Humanoid.Health = 700 | |
| 1888 | Character.Humanoid.WalkSpeed = 8 | |
| 1889 | Character.Humanoid.JumpPower = 100 | |
| 1890 | ------------------------------------ | |
| 1891 | mouse.KeyDown:connect(function(key) | |
| 1892 | if string.byte(key) == 48 then | |
| 1893 | Swing = 2 | |
| 1894 | Character.Humanoid.WalkSpeed = 90 | |
| 1895 | end | |
| 1896 | end) | |
| 1897 | ||
| 1898 | mouse.KeyUp:connect(function(key) | |
| 1899 | if string.byte(key) == 48 then | |
| 1900 | Swing = 1 | |
| 1901 | Character.Humanoid.WalkSpeed = 8 | |
| 1902 | ||
| 1903 | end | |
| 1904 | end) | |
| 1905 | ------------------------------------ | |
| 1906 | ||
| 1907 | print("The Sonic Yo-yo")
| |
| 1908 | print("Made by KillerDarkness0105")
| |
| 1909 | print("Hope you enjoy :D")
| |
| 1910 | print("Controls")
| |
| 1911 | print("C = Air Grapple")
| |
| 1912 | print("E = Throw")
| |
| 1913 | print("R = YoyoEvade -2 sec cooldown")
| |
| 1914 | print("T = Explosion attack -7 sec cooldown")
| |
| 1915 | print("F = Dash -3 sec cooldown")
| |
| 1916 | print("Shift = Run")
| |
| 1917 | ||
| 1918 | ||
| 1919 | ||
| 1920 | local sine = 0 | |
| 1921 | local change = 1 | |
| 1922 | local val = 0 | |
| 1923 | while true do | |
| 1924 | swait() | |
| 1925 | sine = sine + change | |
| 1926 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 1927 | local velderp=RootPart.Velocity.y | |
| 1928 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 1929 | if equipped==true or equipped==false then | |
| 1930 | if attack==false then | |
| 1931 | idle=idle+1 | |
| 1932 | else | |
| 1933 | idle=0 | |
| 1934 | end | |
| 1935 | if idle>=500 then | |
| 1936 | if attack==false then | |
| 1937 | end | |
| 1938 | end | |
| 1939 | ||
| 1940 | ||
| 1941 | ||
| 1942 | --The animations are made here, feel free to edit these to how you ya like :). I hope you know how to edit animations tho ;). | |
| 1943 | ||
| 1944 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 1945 | Anim="Jump" | |
| 1946 | if attack==false and equipped == false then | |
| 1947 | change = 1 | |
| 1948 | for i = 0,4,0.12 do | |
| 1949 | swait() | |
| 1950 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 1951 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4) | |
| 1952 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.3) | |
| 1953 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.3) | |
| 1954 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.3) | |
| 1955 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1) | |
| 1956 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1) | |
| 1957 | wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6) | |
| 1958 | end | |
| 1959 | else | |
| 1960 | if attack==false and equipped == true then | |
| 1961 | for i = 0,4,0.12 do | |
| 1962 | swait() | |
| 1963 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 1964 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(180*i), math.rad(0)), 0.4) | |
| 1965 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.3) | |
| 1966 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.3) | |
| 1967 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.3) | |
| 1968 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1) | |
| 1969 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1) | |
| 1970 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1971 | end | |
| 1972 | end | |
| 1973 | end | |
| 1974 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 1975 | Anim="Fall" | |
| 1976 | change = 1 | |
| 1977 | if attack==false and equipped == false then | |
| 1978 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 1979 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
| 1980 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(5), math.rad(10), math.rad(20)), 0.3) | |
| 1981 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(-10), math.rad(-20)), 0.3) | |
| 1982 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 1983 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3) | |
| 1984 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1) | |
| 1985 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.1) | |
| 1986 | wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6) | |
| 1987 | else | |
| 1988 | if attack==false and equipped == true then | |
| 1989 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 1990 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
| 1991 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(5), math.rad(10), math.rad(20)), 0.3) | |
| 1992 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(-10), math.rad(-20)), 0.3) | |
| 1993 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 1994 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3) | |
| 1995 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1) | |
| 1996 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.1) | |
| 1997 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 1998 | end | |
| 1999 | end | |
| 2000 | elseif torvel<1 and hitfloor~=nil then | |
| 2001 | Anim="Idle" | |
| 2002 | if attack==false and equipped == false then | |
| 2003 | particleemitter2.Rate = 0 | |
| 2004 | light.Color = Color3.new(0, 0, 0) | |
| 2005 | light.Brightness = 0 | |
| 2006 | light.Range = 0 | |
| 2007 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 2008 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 2009 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0+4*math.cos(sine/60)),math.rad(0+4*math.sin(sine/60)),math.rad(0)),.2) | |
| 2010 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0+15*math.cos(sine/60)), math.rad(10)),.2) | |
| 2011 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0-15*math.cos(sine/60)), math.rad(-10)),.2) | |
| 2012 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.1) | |
| 2013 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.1) | |
| 2014 | wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6) | |
| 2015 | else | |
| 2016 | for i = 0,1,0.13 do | |
| 2017 | if attack==false and equipped == true then | |
| 2018 | particleemitter2.Rate = 120 | |
| 2019 | light.Color = Color3.new(0, 255, 255) | |
| 2020 | light.Brightness = 4.50 | |
| 2021 | light.Range = 14 | |
| 2022 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 2023 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 2024 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30+4*math.cos(sine/60)),math.rad(0+4*math.sin(sine/60)),math.rad(-15)),.2) | |
| 2025 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(90+10*math.cos(sine/60)), math.rad(0-25*math.cos(sine/60)), math.rad(0)),.2) | |
| 2026 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.07*math.sin(sine/60), 0) * angles(math.rad(-3), math.rad(0+15*math.cos(sine/60)), math.rad(-10)),.2) | |
| 2027 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.1) | |
| 2028 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.1) | |
| 2029 | wld1.C0=euler(0,0,1.57*math.cos(sine/60))*cf(0,2.1-1.7*math.sin(sine/30),-1.6*i) | |
| 2030 | --wld1.C0=euler(0,0,1.57)*cf(0,2.1,0) | |
| 2031 | end | |
| 2032 | end | |
| 2033 | end | |
| 2034 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
| 2035 | Anim="Walk" | |
| 2036 | if attack==false and equipped == false then | |
| 2037 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 2038 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2) | |
| 2039 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/15)), 0, 0), 0.1) | |
| 2040 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2) | |
| 2041 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2) | |
| 2042 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2) | |
| 2043 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.05*math.cos(sine/15), 0+0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0-20*math.sin(sine/15)), math.rad(3), math.rad(0)), 0.1) | |
| 2044 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/15), 0-0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0+20*math.sin(sine/15)), math.rad(-3), math.rad(0)), 0.1) | |
| 2045 | wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6) | |
| 2046 | else | |
| 2047 | if attack==false and equipped == true then | |
| 2048 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 2049 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2) | |
| 2050 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/15)), 0, 0), 0.1) | |
| 2051 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2) | |
| 2052 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2) | |
| 2053 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20*math.cos(sine/20)), math.rad(0), math.rad(0)),.2) | |
| 2054 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.05*math.cos(sine/15), 0+0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0-20*math.sin(sine/15)), math.rad(3), math.rad(0)), 0.1) | |
| 2055 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/15), 0-0.25*math.sin(sine/15)) * CFrame.Angles(math.rad(0+20*math.sin(sine/15)), math.rad(-3), math.rad(0)), 0.1) | |
| 2056 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 2057 | end | |
| 2058 | end | |
| 2059 | elseif torvel>=22 and hitfloor~=nil then | |
| 2060 | Anim="Run" | |
| 2061 | if attack==false and equipped == false then | |
| 2062 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 2063 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
| 2064 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2065 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+5*math.cos(sine/5)),math.rad(0),math.rad(0)),.2) | |
| 2066 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(35 + 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2) | |
| 2067 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(35 - 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2) | |
| 2068 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/4)/2, 0 *math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/4)/1.2, math.rad(0), 0), .4) | |
| 2069 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/4)/2,0 *-math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/4)/1.2, math.rad(0), 0), .4) | |
| 2070 | wld1.C0=euler(1.57,0,0)*cf(-1,1,-0.6) | |
| 2071 | else | |
| 2072 | if attack==false and equipped == true then | |
| 2073 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 2074 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(20),math.rad(0),math.rad(0)),.2) | |
| 2075 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2076 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+5*math.cos(sine/5)),math.rad(0),math.rad(0)),.2) | |
| 2077 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(35 + 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2) | |
| 2078 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(35 - 70 *math.cos (sine / -5)),math.rad(0),math.rad(0)),.2) | |
| 2079 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/4)/2, 0 *math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/4)/1.2, math.rad(0), 0), .4) | |
| 2080 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/4)/2,0 *-math.sin(sine/4)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/4)/1.2, math.rad(0), 0), .4) | |
| 2081 | wld1.C0=euler(0,0,1.57)*cf(0,1.1,0) | |
| 2082 | end | |
| 2083 | end | |
| 2084 | end | |
| 2085 | end | |
| 2086 | end | |
| 2087 | ||
| 2088 | ||
| 2089 | ||
| 2090 | ||
| 2091 | ||
| 2092 | ||
| 2093 | ||
| 2094 | ||
| 2095 | ||
| 2096 | ||
| 2097 | ||
| 2098 | ||
| 2099 | ||
| 2100 | ||
| 2101 | ||
| 2102 | ||
| 2103 | ||
| 2104 | ||
| 2105 | ||
| 2106 | ||
| 2107 | ||
| 2108 | ||
| 2109 | ||
| 2110 | ||
| 2111 | ||
| 2112 | ||
| 2113 | --Thanks for using this :) -KillerDarkness0105 |