SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | do | |
| 4 | print("Fixed by kilcrafter (crift_games1)")
| |
| 5 | script.Parent = Player.Character | |
| 6 | ||
| 7 | --RemoteEvent for communicating | |
| 8 | local Event = Instance.new("RemoteEvent")
| |
| 9 | Event.Name = "UserInput_Event" | |
| 10 | ||
| 11 | - | owner=game.Players.LocalPlayer |
| 11 | + | --Fake event to make stuff like Mouse.KeyDown work |
| 12 | - | Player = game.Players.LocalPlayer |
| 12 | + | local function fakeEvent() |
| 13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 14 | t.connect = t.Connect | |
| 15 | return t | |
| 16 | end | |
| 17 | ||
| 18 | --Creating fake input objects with fake variables | |
| 19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 22 | - | Character= owner.Character |
| 22 | + | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
|
| 23 | end} | |
| 24 | --Merged 2 functions into one by checking amount of arguments | |
| 25 | - | Mouse = owner:GetMouse() |
| 25 | + | CAS.UnbindAction = CAS.BindAction |
| 26 | ||
| 27 | --This function will trigger the events that have been :Connect()'ed | |
| 28 | local function te(self,ev,...) | |
| 29 | local t = m[ev] | |
| 30 | if t and t._fakeEvent and t.Function then | |
| 31 | t.Function(...) | |
| 32 | end | |
| 33 | end | |
| 34 | m.TrigEvent = te | |
| 35 | UIS.TrigEvent = te | |
| 36 | ||
| 37 | Event.OnServerEvent:Connect(function(plr,io) | |
| 38 | if plr~=Player then return end | |
| 39 | if io.isMouse then | |
| 40 | m.Target = io.Target | |
| 41 | m.Hit = io.Hit | |
| 42 | else | |
| 43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 46 | end | |
| 47 | for _,t in pairs(CAS.Actions) do | |
| 48 | for _,k in pairs(t.Keys) do | |
| 49 | if k==io.KeyCode then | |
| 50 | t.Function(t.Name,io.UserInputState,io) | |
| 51 | end | |
| 52 | end | |
| 53 | end | |
| 54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 56 | end | |
| 57 | end) | |
| 58 | Event.Parent = NLS([==[ | |
| 59 | local Player = game:GetService("Players").LocalPlayer
| |
| 60 | local Event = script:WaitForChild("UserInput_Event")
| |
| 61 | ||
| 62 | local UIS = game:GetService("UserInputService")
| |
| 63 | local input = function(io,a) | |
| 64 | if a then return end | |
| 65 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 67 | end | |
| 68 | UIS.InputBegan:Connect(input) | |
| 69 | UIS.InputEnded:Connect(input) | |
| 70 | ||
| 71 | local Mouse = Player:GetMouse() | |
| 72 | local h,t | |
| 73 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 74 | --If player is not moving their mouse, client won't fire events | |
| 75 | while wait(1/30) do | |
| 76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 77 | h,t=Mouse.Hit,Mouse.Target | |
| 78 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 79 | end | |
| 80 | end]==],Player.Character) | |
| 81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 82 | end | |
| 83 | ||
| 84 | local TweenService = game:GetService("TweenService")
| |
| 85 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 86 | local Create = RbxUtility.Create | |
| 87 | ||
| 88 | MaskTextureId = 124337542 --124337542 2340547251 | |
| 89 | ||
| 90 | Player = owner | |
| 91 | script.Parent = Player.PlayerGui | |
| 92 | ZTfade=false | |
| 93 | ZT=false | |
| 94 | ||
| 95 | while Player.Character == nil do wait() | |
| 96 | ||
| 97 | end | |
| 98 | ||
| 99 | ||
| 100 | Character= Player.Character | |
| 101 | Torso = Character.Torso | |
| 102 | Head = Character.Head | |
| 103 | Humanoid = Character.Humanoid | |
| 104 | LeftArm = Character["Left Arm"] | |
| 105 | LeftLeg = Character["Left Leg"] | |
| 106 | RightArm = Character["Right Arm"] | |
| 107 | RightLeg = Character["Right Leg"] | |
| 108 | RootPart = Character["HumanoidRootPart"] | |
| 109 | local Anim="Idle" | |
| 110 | local inairvel=0 | |
| 111 | local WalkAnimStep = 0 | |
| 112 | local sine = 0 | |
| 113 | local change = 1 | |
| 114 | Animstep = 0 | |
| 115 | WalkAnimMove=0.1 | |
| 116 | Combo = 0 | |
| 117 | local attack=false | |
| 118 | local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
| |
| 119 | local Neck = Character.Torso:FindFirstChild("Neck")
| |
| 120 | local Tim = "" | |
| 121 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 122 | local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 123 | local ONeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 124 | Effects=Instance.new("Folder",Character)
| |
| 125 | Effects.Name="Effects" | |
| 126 | it=Instance.new | |
| 127 | vt=Vector3.new | |
| 128 | cf=CFrame.new | |
| 129 | euler=CFrame.fromEulerAnglesXYZ | |
| 130 | angles=CFrame.Angles | |
| 131 | local cn = CFrame.new | |
| 132 | mr=math.rad | |
| 133 | mememode=false | |
| 134 | IT = Instance.new | |
| 135 | CF = CFrame.new | |
| 136 | VT = Vector3.new | |
| 137 | RAD = math.rad | |
| 138 | C3 = Color3.new | |
| 139 | UD2 = UDim2.new | |
| 140 | BRICKC = BrickColor.new | |
| 141 | ANGLES = CFrame.Angles | |
| 142 | EULER = CFrame.fromEulerAnglesXYZ | |
| 143 | COS = math.cos | |
| 144 | ACOS = math.acos | |
| 145 | SIN = math.sin | |
| 146 | ASIN = math.asin | |
| 147 | ABS = math.abs | |
| 148 | MRANDOM = math.random | |
| 149 | FLOOR = math.floor | |
| 150 | local lastid= "http://www.roblox.com/asset/?id=468582223" | |
| 151 | local s2=it("Sound",Torso)
| |
| 152 | local CurId = 1 | |
| 153 | s2.EmitterSize = 30 | |
| 154 | local s2c=s2:Clone() | |
| 155 | ||
| 156 | ||
| 157 | ||
| 158 | ||
| 159 | ||
| 160 | local crying = "http://www.roblox.com/asset/?id=1452402780" | |
| 161 | local s3=it("Sound",Head)
| |
| 162 | ||
| 163 | s3.EmitterSize = 40 | |
| 164 | local s3c=s3:Clone() | |
| 165 | ||
| 166 | ||
| 167 | ||
| 168 | Humanoid.MaxHealth = 99999999999 | |
| 169 | wait() | |
| 170 | ||
| 171 | Humanoid.Health = 99999999999 | |
| 172 | Humanoid.Name = "VoidBoss" | |
| 173 | ff = Instance.new("ForceField",Character)
| |
| 174 | ff.Visible = false | |
| 175 | playsong = true | |
| 176 | ||
| 177 | s2.SoundId = lastid | |
| 178 | if playsong == true then | |
| 179 | s2:play() | |
| 180 | elseif playsong == false then | |
| 181 | s2:stop() | |
| 182 | end | |
| 183 | lastsongpos= 0 | |
| 184 | ||
| 185 | crosshair = Instance.new("BillboardGui",Character)
| |
| 186 | crosshair.Size = UDim2.new(10,0,10,0) | |
| 187 | crosshair.Enabled = false | |
| 188 | imgl = Instance.new("ImageLabel",crosshair)
| |
| 189 | imgl.Position = UDim2.new(0,0,0,0) | |
| 190 | imgl.Size = UDim2.new(1,0,1,0) | |
| 191 | imgl.Image = "rbxassetid://578065407" | |
| 192 | imgl.BackgroundTransparency = 1 | |
| 193 | imgl.ImageTransparency = .7 | |
| 194 | imgl.ImageColor3 = Color3.new(1,1,1) | |
| 195 | crosshair.StudsOffset = Vector3.new(0,0,-1) | |
| 196 | ||
| 197 | ||
| 198 | if Character:FindFirstChild("Animate")then
| |
| 199 | Character.Animate:Destroy() | |
| 200 | end | |
| 201 | ||
| 202 | function RemoveOutlines(part) | |
| 203 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 204 | end | |
| 205 | ||
| 206 | ||
| 207 | ||
| 208 | ||
| 209 | CFuncs = {
| |
| 210 | Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
| |
| 211 | ||
| 212 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
| |
| 213 | RemoveOutlines(Part) | |
| 214 | return Part | |
| 215 | end | |
| 216 | } | |
| 217 | , | |
| 218 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
| |
| 219 | ||
| 220 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
| |
| 221 | if Mesh == "SpecialMesh" then | |
| 222 | Msh.MeshType = MeshType | |
| 223 | Msh.MeshId = MeshId | |
| 224 | end | |
| 225 | return Msh | |
| 226 | end | |
| 227 | } | |
| 228 | , | |
| 229 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
| |
| 230 | ||
| 231 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
| |
| 232 | if Mesh == "SpecialMesh" then | |
| 233 | Msh.MeshType = MeshType | |
| 234 | Msh.MeshId = MeshId | |
| 235 | end | |
| 236 | return Msh | |
| 237 | end | |
| 238 | } | |
| 239 | , | |
| 240 | Weld = {Create = function(Parent, Part0, Part1, C0, C1)
| |
| 241 | ||
| 242 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
| |
| 243 | return Weld | |
| 244 | end | |
| 245 | } | |
| 246 | , | |
| 247 | Sound = {Create = function(id, par, vol, pit)
| |
| 248 | ||
| 249 | coroutine.resume(coroutine.create(function() | |
| 250 | ||
| 251 | local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
| |
| 252 | wait() | |
| 253 | S:play() | |
| 254 | game:GetService("Debris"):AddItem(S, 12)
| |
| 255 | end | |
| 256 | )) | |
| 257 | end | |
| 258 | } | |
| 259 | , | |
| 260 | ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
| |
| 261 | ||
| 262 | local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
| |
| 263 | return fp | |
| 264 | end | |
| 265 | } | |
| 266 | } | |
| 267 | ||
| 268 | ||
| 269 | ||
| 270 | ||
| 271 | ||
| 272 | coroutine.resume(coroutine.create(function() | |
| 273 | if Head:FindFirstChildOfClass("Decal") then
| |
| 274 | local face = Head:FindFirstChildOfClass("Decal")
| |
| 275 | face:Destroy() | |
| 276 | end | |
| 277 | ||
| 278 | end)) | |
| 279 | ||
| 280 | ||
| 281 | ||
| 282 | ||
| 283 | ||
| 284 | ||
| 285 | ||
| 286 | for i, v in pairs(Character:GetChildren()) do | |
| 287 | if v:IsA("Accessory") then
| |
| 288 | v:Destroy() | |
| 289 | end | |
| 290 | end | |
| 291 | ||
| 292 | ||
| 293 | --------------- | |
| 294 | --[Functions]-- | |
| 295 | --------------- | |
| 296 | so = function(id, par, vol, pit) | |
| 297 | ||
| 298 | CFuncs.Sound.Create(id, par, vol, pit) | |
| 299 | ||
| 300 | ||
| 301 | end | |
| 302 | ||
| 303 | function weld(parent,part0,part1,c0) | |
| 304 | local weld=it("Weld")
| |
| 305 | weld.Parent=parent | |
| 306 | weld.Part0=part0 | |
| 307 | weld.Part1=part1 | |
| 308 | weld.C0=c0 | |
| 309 | return weld | |
| 310 | end | |
| 311 | ||
| 312 | ||
| 313 | function MakeJoint(parent,part0,part1,c0) | |
| 314 | local weld=it("Motor6D")
| |
| 315 | weld.Parent=parent | |
| 316 | weld.Part0=part0 | |
| 317 | weld.Part1=part1 | |
| 318 | weld.C0=c0 | |
| 319 | return weld | |
| 320 | end | |
| 321 | ||
| 322 | rayCast = function(Pos, Dir, Max, Ignore) | |
| 323 | ||
| 324 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 325 | end | |
| 326 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 327 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 328 | return rayCast(StartPos, DIRECTION, Distance, Ignore) | |
| 329 | end | |
| 330 | ||
| 331 | function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime) | |
| 332 | local MoveStyle = Enum.EasingStyle[MoveStyle2] | |
| 333 | local outorin = Enum.EasingDirection[outorin2] | |
| 334 | ||
| 335 | ||
| 336 | local dahspeed=1 | |
| 337 | ||
| 338 | local tweeningInformation = TweenInfo.new( | |
| 339 | AnimTime/dahspeed, | |
| 340 | MoveStyle, | |
| 341 | outorin, | |
| 342 | 0, | |
| 343 | false, | |
| 344 | 0 | |
| 345 | ) | |
| 346 | local MoveCF = CFr | |
| 347 | local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF) | |
| 348 | tweenanim:Play() | |
| 349 | end | |
| 350 | ||
| 351 | function GatherAllInstances(Parent,ig) | |
| 352 | local Instances = {}
| |
| 353 | local Ignore=nil | |
| 354 | if ig ~= nil then | |
| 355 | Ignore = ig | |
| 356 | end | |
| 357 | ||
| 358 | local function GatherInstances(Parent,Ignore) | |
| 359 | for i, v in pairs(Parent:GetChildren()) do | |
| 360 | ||
| 361 | if v ~= Ignore then | |
| 362 | GatherInstances(v,Ignore) | |
| 363 | table.insert(Instances, v) end | |
| 364 | end | |
| 365 | end | |
| 366 | GatherInstances(Parent,Ignore) | |
| 367 | return Instances | |
| 368 | end | |
| 369 | ||
| 370 | ||
| 371 | ||
| 372 | ||
| 373 | ||
| 374 | ||
| 375 | ||
| 376 | ||
| 377 | ||
| 378 | function WeldAllTo(Part1,Part2,Extra) | |
| 379 | ||
| 380 | local EXCF = Part2.CFrame * Extra | |
| 381 | ||
| 382 | for i, v3 in pairs(GatherAllInstances(Part2)) do | |
| 383 | if v3:isA("BasePart") then
| |
| 384 | ||
| 385 | ||
| 386 | local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() ) | |
| 387 | ||
| 388 | ||
| 389 | v3.Anchored=false | |
| 390 | --v3.Transparency=0 | |
| 391 | v3.CanCollide=false | |
| 392 | ||
| 393 | v3.Parent = Part1 | |
| 394 | ||
| 395 | end | |
| 396 | end | |
| 397 | ||
| 398 | ||
| 399 | Part2:Destroy() | |
| 400 | ||
| 401 | end | |
| 402 | local SToneTexture = Create("Texture")({
| |
| 403 | ||
| 404 | ||
| 405 | Texture = "http://www.roblox.com/asset/?id=1693385655", | |
| 406 | Color3 = Color3.new(163/255, 162/255, 165/255), | |
| 407 | ||
| 408 | }) | |
| 409 | ||
| 410 | function AddStoneTexture(part) | |
| 411 | coroutine.resume(coroutine.create(function() | |
| 412 | for i = 0,6,1 do | |
| 413 | local Tx = SToneTexture:Clone() | |
| 414 | Tx.Face = i | |
| 415 | Tx.Parent=part | |
| 416 | end | |
| 417 | end)) | |
| 418 | end | |
| 419 | ||
| 420 | New = function(Object, Parent, Name, Data) | |
| 421 | local Object = Instance.new(Object) | |
| 422 | for Index, Value in pairs(Data or {}) do
| |
| 423 | Object[Index] = Value | |
| 424 | end | |
| 425 | Object.Parent = Parent | |
| 426 | Object.Name = Name | |
| 427 | return Object | |
| 428 | end | |
| 429 | function recurse(root,callback,i) | |
| 430 | coroutine.resume(coroutine.create(function() | |
| 431 | i= i or 0 | |
| 432 | for _,v in pairs(root:GetChildren()) do | |
| 433 | i = i + 1 | |
| 434 | callback(i,v) | |
| 435 | ||
| 436 | if #v:GetChildren() > 0 then | |
| 437 | i = recurse(v,callback,i) | |
| 438 | end | |
| 439 | end | |
| 440 | end)) | |
| 441 | return i | |
| 442 | end | |
| 443 | ||
| 444 | function ragdollJoint(part0, part1, attachmentName, className, properties) | |
| 445 | ||
| 446 | attachmentName = attachmentName--.."RigAttachment" | |
| 447 | ||
| 448 | ||
| 449 | local constraint = Instance.new(className.."Constraint") | |
| 450 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
| 451 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
| 452 | constraint.Name = "RagdollConstraint"..part1.Name | |
| 453 | ||
| 454 | for _,propertyData in next,properties or {} do
| |
| 455 | constraint[propertyData[1]] = propertyData[2] | |
| 456 | end | |
| 457 | ||
| 458 | local Rcharacter = part0.Parent | |
| 459 | constraint.Parent = Rcharacter | |
| 460 | end | |
| 461 | ||
| 462 | function MakeAth(AthParent,AthName,AthPosX,AthPosY,AthPosZ,AthRot,AthAX,SecondaryAxis) | |
| 463 | ||
| 464 | coroutine.resume(coroutine.create(function() | |
| 465 | local ATH = Instance.new("Attachment",AthParent)
| |
| 466 | ATH.Position = Vector3.new(AthPosX,AthPosY,AthPosZ) | |
| 467 | ATH.Name = AthName | |
| 468 | if AthRot ~= nil then | |
| 469 | ATH.Rotation = AthRot end | |
| 470 | if AthAX ~= nil then | |
| 471 | ATH.Axis = AthAX end | |
| 472 | if SecondaryAxis ~= nil then | |
| 473 | ATH.SecondaryAxis = SecondaryAxis end | |
| 474 | end)) | |
| 475 | end | |
| 476 | function getAttachment0(attachmentName,Rcharacter) | |
| 477 | for i, child in pairs(GatherAllInstances(Rcharacter)) do | |
| 478 | local attachment = child:FindFirstChild(attachmentName) | |
| 479 | if attachment then | |
| 480 | return attachment | |
| 481 | ||
| 482 | end | |
| 483 | ||
| 484 | end | |
| 485 | ||
| 486 | ||
| 487 | ||
| 488 | ||
| 489 | ||
| 490 | end | |
| 491 | ||
| 492 | function makrag(Rcharacter) | |
| 493 | ||
| 494 | ||
| 495 | --HitModel | |
| 496 | ||
| 497 | ||
| 498 | local camera = workspace.CurrentCamera | |
| 499 | ||
| 500 | --Make it so ragdoll can't collide with invisible HRP, but don't let HRP fall through map and be destroyed in process | |
| 501 | coroutine.resume(coroutine.create(function() | |
| 502 | if Rcharacter:FindFirstChild("HumanoidRootPart")then
| |
| 503 | Rcharacter.HumanoidRootPart.Anchored = true | |
| 504 | Rcharacter.HumanoidRootPart.CanCollide = false | |
| 505 | --- Rcharacter.HumanoidRootPart.Position = Vector3.new(0,-10,0) | |
| 506 | Rcharacter.HumanoidRootPart.Parent = nil | |
| 507 | end | |
| 508 | end)) | |
| 509 | --Helps to fix constraint spasms | |
| 510 | recurse(Rcharacter, function(_,v) | |
| 511 | if v:IsA("Attachment") then
| |
| 512 | v.Axis = Vector3.new(0, 1, 0) | |
| 513 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
| 514 | v.Rotation = Vector3.new(0, 0, 0) | |
| 515 | end | |
| 516 | end) | |
| 517 | ||
| 518 | --Re-attach hats | |
| 519 | ||
| 520 | ||
| 521 | coroutine.resume(coroutine.create(function() | |
| 522 | if Rcharacter:FindFirstChild("Torso")then
| |
| 523 | ||
| 524 | local RMT = Rcharacter:FindFirstChild("Torso")
| |
| 525 | ||
| 526 | local RMH = Rcharacter:FindFirstChild("Head")
| |
| 527 | ||
| 528 | local RLA = Rcharacter:FindFirstChild("Left Arm")
| |
| 529 | ||
| 530 | local RRA = Rcharacter:FindFirstChild("Right Arm")
| |
| 531 | ||
| 532 | local RLL = Rcharacter:FindFirstChild("Left Leg")
| |
| 533 | ||
| 534 | local RRL = Rcharacter:FindFirstChild("Right Leg")
| |
| 535 | ||
| 536 | --MakeAth(RMH,"",0,0,0) | |
| 537 | MakeAth(RMH,"NeckRigAttachment",0,-.5,0) | |
| 538 | MakeAth(RRA,"RightShoulderRigAttachment",-0.4, 0.8, 0,Vector3.new(-180, 0, 90),Vector3.new(0, -1, -0),Vector3.new(0, 1, 0)) | |
| 539 | MakeAth(RLA,"LeftShoulderRigAttachment",0.4, 0.8, 0,Vector3.new(-180, 0, 90),Vector3.new(0, -1, -0),Vector3.new(-1, 0, 0)) | |
| 540 | MakeAth(RRL,"RightHipRigAttachment",0, 1, 0,Vector3.new(90, -90, 0),Vector3.new(0, -1, -0),Vector3.new(0, -0, 1)) | |
| 541 | MakeAth(RLL,"LeftHipRigAttachment",0, 1, 0,Vector3.new(90, -90, 0),Vector3.new(0, -1, -0),Vector3.new(0, -0, 1)) | |
| 542 | ------------------------------------------------------ | |
| 543 | MakeAth(RMT,"NeckRigAttachment",0, 1, 0) | |
| 544 | MakeAth(RMT,"RightShoulderRigAttachment",1, 0.8, 0,Vector3.new(-180, 0, 0),Vector3.new(1, -0, 0),Vector3.new(0, -1, 0)) | |
| 545 | MakeAth(RMT,"LeftShoulderRigAttachment",-1, 0.8, 0,Vector3.new(0, 0, -180),Vector3.new(-1, -0, 0),Vector3.new(0, -1, 0)) | |
| 546 | MakeAth(RMT,"RightHipRigAttachment",0.5, -1.1, 0,Vector3.new(90, -90, 0),Vector3.new(0, -1, -0),Vector3.new(0, -0, 1)) | |
| 547 | MakeAth(RMT,"LeftHipRigAttachment",-0.5, -1.1, 0,Vector3.new(90, -90, 0),Vector3.new(0, -1, -0),Vector3.new(0, -0, 1)) | |
| 548 | ||
| 549 | ||
| 550 | ||
| 551 | ||
| 552 | ||
| 553 | ||
| 554 | ||
| 555 | ||
| 556 | coroutine.resume(coroutine.create(function() | |
| 557 | local LAT = Instance.new("BallSocketConstraint")
| |
| 558 | LAT.Parent = RMT | |
| 559 | LAT.Attachment0 = RLA.LeftShoulderRigAttachment | |
| 560 | LAT.Attachment1 = RMT.LeftShoulderRigAttachment | |
| 561 | LAT.Enabled = true | |
| 562 | LAT.LimitsEnabled=true | |
| 563 | LAT.UpperAngle=70 | |
| 564 | end)) | |
| 565 | coroutine.resume(coroutine.create(function() | |
| 566 | local RAT = Instance.new("BallSocketConstraint")
| |
| 567 | RAT.Parent = RMT | |
| 568 | RAT.Attachment0 = RRA.RightShoulderRigAttachment | |
| 569 | RAT.Attachment1 = RMT.RightShoulderRigAttachment | |
| 570 | RAT.Enabled = true | |
| 571 | RAT.LimitsEnabled=true | |
| 572 | RAT.UpperAngle=70 | |
| 573 | end)) | |
| 574 | coroutine.resume(coroutine.create(function() | |
| 575 | local TLL = Instance.new("BallSocketConstraint")
| |
| 576 | TLL.Parent = RMT | |
| 577 | TLL.Attachment0 = RLL.LeftHipRigAttachment | |
| 578 | TLL.Attachment1 = RMT.LeftHipRigAttachment | |
| 579 | TLL.Enabled = true | |
| 580 | TLL.LimitsEnabled=true | |
| 581 | TLL.UpperAngle=70 | |
| 582 | end)) | |
| 583 | coroutine.resume(coroutine.create(function() | |
| 584 | local TRL = Instance.new("BallSocketConstraint")
| |
| 585 | TRL.Parent = RMT | |
| 586 | TRL.Attachment0 = RRL.RightHipRigAttachment | |
| 587 | TRL.Attachment1 = RMT.RightHipRigAttachment | |
| 588 | TRL.Enabled = true | |
| 589 | TRL.LimitsEnabled=true | |
| 590 | TRL.UpperAngle=70 | |
| 591 | end)) | |
| 592 | ||
| 593 | end | |
| 594 | end)) | |
| 595 | coroutine.resume(coroutine.create(function() | |
| 596 | ragdollJoint(Rcharacter.LowerTorso, Rcharacter.UpperTorso, "WaistRigAttachment", "BallSocket", {
| |
| 597 | {"LimitsEnabled",true};
| |
| 598 | {"UpperAngle",5};
| |
| 599 | }) end)) coroutine.resume(coroutine.create(function() | |
| 600 | local NeckProperties = {
| |
| 601 | {"LimitsEnabled", true};
| |
| 602 | {"UpperAngle",5};
| |
| 603 | ||
| 604 | } | |
| 605 | local Rtorso = Rcharacter:FindFirstChild("Torso") or Rcharacter:FindFirstChild("UpperTorso")
| |
| 606 | ragdollJoint(Rtorso, Rcharacter.Head, "NeckRigAttachment", "Hinge", NeckProperties) | |
| 607 | end)) coroutine.resume(coroutine.create(function() | |
| 608 | ||
| 609 | local handProperties = {
| |
| 610 | {"LimitsEnabled", true};
| |
| 611 | {"UpperAngle",0};
| |
| 612 | {"LowerAngle",0};
| |
| 613 | } | |
| 614 | ragdollJoint(Rcharacter.LeftLowerArm, Rcharacter.LeftHand, "LeftWristRigAttachment", "Hinge", handProperties) | |
| 615 | ragdollJoint(Rcharacter.RightLowerArm, Rcharacter.RightHand, "RightWristRigAttachment", "Hinge", handProperties) | |
| 616 | end)) coroutine.resume(coroutine.create(function() | |
| 617 | local shinProperties = {
| |
| 618 | {"LimitsEnabled", true};
| |
| 619 | {"UpperAngle", 0};
| |
| 620 | {"LowerAngle", -75};
| |
| 621 | } | |
| 622 | ragdollJoint(Rcharacter.LeftUpperLeg, Rcharacter.LeftLowerLeg, "LeftKneeRigAttachment", "Hinge", shinProperties) | |
| 623 | ragdollJoint(Rcharacter.RightUpperLeg, Rcharacter.RightLowerLeg, "RightKneeRigAttachment", "Hinge", shinProperties) | |
| 624 | end)) coroutine.resume(coroutine.create(function() | |
| 625 | local footProperties = {
| |
| 626 | {"LimitsEnabled", true};
| |
| 627 | {"UpperAngle", 15};
| |
| 628 | {"LowerAngle", -45};
| |
| 629 | } | |
| 630 | ragdollJoint(Rcharacter.LeftLowerLeg, Rcharacter.LeftFoot, "LeftAnkleRigAttachment", "Hinge", footProperties) | |
| 631 | ragdollJoint(Rcharacter.RightLowerLeg, Rcharacter.RightFoot, "RightAnkleRigAttachment", "Hinge", footProperties) | |
| 632 | end)) | |
| 633 | --TODO fix ability for socket to turn backwards whenn ConeConstraints are shipped | |
| 634 | coroutine.resume(coroutine.create(function() | |
| 635 | ragdollJoint(Rcharacter.UpperTorso, Rcharacter.LeftUpperArm, "LeftShoulderRigAttachment", "BallSocket") end)) coroutine.resume(coroutine.create(function() | |
| 636 | ragdollJoint(Rcharacter.LeftUpperArm, Rcharacter.LeftLowerArm, "LeftElbowRigAttachment", "BallSocket") end)) coroutine.resume(coroutine.create(function() | |
| 637 | ragdollJoint(Rcharacter.UpperTorso, Rcharacter.RightUpperArm, "RightShoulderRigAttachment", "BallSocket") end)) coroutine.resume(coroutine.create(function() | |
| 638 | ragdollJoint(Rcharacter.RightUpperArm, Rcharacter.RightLowerArm, "RightElbowRigAttachment", "BallSocket") end)) coroutine.resume(coroutine.create(function() | |
| 639 | ragdollJoint(Rcharacter.LowerTorso, Rcharacter.LeftUpperLeg, "LeftHipRigAttachment", "BallSocket") end)) coroutine.resume(coroutine.create(function() | |
| 640 | ragdollJoint(Rcharacter.LowerTorso, Rcharacter.RightUpperLeg, "RightHipRigAttachment", "BallSocket") end)) | |
| 641 | ||
| 642 | ||
| 643 | for i = 0,2 do | |
| 644 | coroutine.resume(coroutine.create(function() | |
| 645 | for _,child in next,Rcharacter:GetChildren() do | |
| 646 | if child:IsA("Accoutrement") then
| |
| 647 | --Loop through all parts instead of only checking for one to be forwards-compatible in the event | |
| 648 | --ROBLOX implements multi-part accessories | |
| 649 | for _,part in next,child:GetChildren() do | |
| 650 | if part:IsA("BasePart") then part.CanCollide = false
| |
| 651 | ||
| 652 | ||
| 653 | local attachment1 = part:FindFirstChildOfClass("Attachment")
| |
| 654 | local attachment0 = getAttachment0(attachment1.Name,Rcharacter) | |
| 655 | if attachment0 and attachment1 then | |
| 656 | --Shouldn't use constraints for this, but have to because of a ROBLOX idiosyncrasy where | |
| 657 | --joints connecting a character are perpetually deleted while the character is dead | |
| 658 | ||
| 659 | ||
| 660 | local HatProperties = {
| |
| 661 | {"LimitsEnabled", true};
| |
| 662 | {"UpperAngle", 0};
| |
| 663 | {"LowerAngle", -0};
| |
| 664 | } | |
| 665 | ||
| 666 | coroutine.resume(coroutine.create(function() | |
| 667 | wait() | |
| 668 | local rg = ragdollJoint(attachment0.Parent, part, ""..attachment1.Name, "Hinge", HatProperties) | |
| 669 | end)) | |
| 670 | ||
| 671 | end | |
| 672 | end | |
| 673 | end | |
| 674 | end | |
| 675 | end | |
| 676 | ||
| 677 | end)) | |
| 678 | wait(0.5) | |
| 679 | end | |
| 680 | for _,v in pairs(Rcharacter:GetChildren()) do | |
| 681 | if v:isA("Script") or v:isA("LocalScript") then
| |
| 682 | v:Destroy() | |
| 683 | end | |
| 684 | end | |
| 685 | ||
| 686 | ||
| 687 | coroutine.resume(coroutine.create(function() | |
| 688 | wait(1) | |
| 689 | for _,v3 in pairs(game:GetService("Players"):GetChildren()) do
| |
| 690 | coroutine.resume(coroutine.create(function() | |
| 691 | if v3:isA("Player") and v3.Character == Rcharacter then
| |
| 692 | Rcharacter.Archivable=true | |
| 693 | local ORcharacter = Rcharacter:Clone() | |
| 694 | --Rcharacter2.Archivable=false | |
| 695 | --Rcharacter3.Archivable=false | |
| 696 | ORcharacter.Parent = Rcharacter.Parent | |
| 697 | local Rhum = ORcharacter:FindFirstChildOfClass("Humanoid")
| |
| 698 | Rhum.PlatformStand = true | |
| 699 | Rhum.Health = Rhum.MaxHealth | |
| 700 | Rcharacter:Destroy() | |
| 701 | wait() | |
| 702 | Rhum.Health = 0 | |
| 703 | game:GetService("Debris"):AddItem(ORcharacter, 380)
| |
| 704 | ||
| 705 | end | |
| 706 | end)) | |
| 707 | end | |
| 708 | ||
| 709 | ||
| 710 | end)) | |
| 711 | ||
| 712 | ||
| 713 | end | |
| 714 | ||
| 715 | ||
| 716 | function Tran(Num) | |
| 717 | local GivenLeter = "" | |
| 718 | if Num == "1" then | |
| 719 | GivenLeter = "a" | |
| 720 | elseif Num == "2" then | |
| 721 | GivenLeter = "b" | |
| 722 | elseif Num == "3" then | |
| 723 | GivenLeter = "c" | |
| 724 | elseif Num == "4" then | |
| 725 | GivenLeter = "d" | |
| 726 | elseif Num == "5" then | |
| 727 | GivenLeter = "e" | |
| 728 | elseif Num == "6" then | |
| 729 | GivenLeter = "f" | |
| 730 | elseif Num == "7" then | |
| 731 | GivenLeter = "g" | |
| 732 | elseif Num == "8" then | |
| 733 | GivenLeter = "h" | |
| 734 | elseif Num == "9" then | |
| 735 | GivenLeter = "i" | |
| 736 | elseif Num == "10" then | |
| 737 | GivenLeter = "j" | |
| 738 | elseif Num == "11" then | |
| 739 | GivenLeter = "k" | |
| 740 | elseif Num == "12" then | |
| 741 | GivenLeter = "l" | |
| 742 | elseif Num == "13" then | |
| 743 | GivenLeter = "m" | |
| 744 | elseif Num == "14" then | |
| 745 | GivenLeter = "n" | |
| 746 | elseif Num == "15" then | |
| 747 | GivenLeter = "o" | |
| 748 | elseif Num == "16" then | |
| 749 | GivenLeter = "p" | |
| 750 | elseif Num == "17" then | |
| 751 | GivenLeter = "q" | |
| 752 | elseif Num == "18" then | |
| 753 | GivenLeter = "r" | |
| 754 | elseif Num == "19" then | |
| 755 | GivenLeter = "s" | |
| 756 | elseif Num == "20" then | |
| 757 | GivenLeter = "t" | |
| 758 | elseif Num == "21" then | |
| 759 | GivenLeter = "u" | |
| 760 | elseif Num == "22" then | |
| 761 | GivenLeter = "v" | |
| 762 | elseif Num == "23" then | |
| 763 | GivenLeter = "w" | |
| 764 | elseif Num == "24" then | |
| 765 | GivenLeter = "x" | |
| 766 | elseif Num == "25" then | |
| 767 | GivenLeter = "y" | |
| 768 | elseif Num == "26" then | |
| 769 | GivenLeter = "z" | |
| 770 | elseif Num == "27" then | |
| 771 | GivenLeter = "_" | |
| 772 | elseif Num == "28" then | |
| 773 | GivenLeter = "0" | |
| 774 | elseif Num == "29" then | |
| 775 | GivenLeter = "1" | |
| 776 | elseif Num == "30" then | |
| 777 | GivenLeter = "2" | |
| 778 | elseif Num == "31" then | |
| 779 | GivenLeter = "3" | |
| 780 | elseif Num == "32" then | |
| 781 | GivenLeter = "4" | |
| 782 | elseif Num == "33" then | |
| 783 | GivenLeter = "5" | |
| 784 | elseif Num == "34" then | |
| 785 | GivenLeter = "6" | |
| 786 | elseif Num == "35" then | |
| 787 | GivenLeter = "7" | |
| 788 | elseif Num == "36" then | |
| 789 | GivenLeter = "8" | |
| 790 | elseif Num == "37" then | |
| 791 | GivenLeter = "9" | |
| 792 | end | |
| 793 | return GivenLeter | |
| 794 | ||
| 795 | end | |
| 796 | ||
| 797 | function MaybeOk(Mode,Extra) | |
| 798 | local ReturningValue = "" | |
| 799 | if Mode == 1 then | |
| 800 | ||
| 801 | ||
| 802 | ||
| 803 | -- v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 804 | ||
| 805 | --print(v.C0) | |
| 806 | local GivenText = "" | |
| 807 | local msg = Extra | |
| 808 | local Txt = "" | |
| 809 | local FoundTime=0 | |
| 810 | local LastFound = 0 | |
| 811 | delay(wait(0),function() | |
| 812 | for v3 = 1, #msg do | |
| 813 | ||
| 814 | if string.sub(msg,0+v3,v3) == "," then | |
| 815 | ||
| 816 | local TheN = string.sub(msg,LastFound,v3-1) | |
| 817 | ||
| 818 | ||
| 819 | local NumTranslate = Tran(string.sub(msg,LastFound,v3-1)) | |
| 820 | ||
| 821 | ||
| 822 | ||
| 823 | FoundTime = FoundTime + 1 | |
| 824 | ||
| 825 | ||
| 826 | GivenText = GivenText..NumTranslate | |
| 827 | ||
| 828 | LastFound=v3+1 | |
| 829 | Txt="" | |
| 830 | end | |
| 831 | Txt=string.sub(msg,1,v3) | |
| 832 | ||
| 833 | ||
| 834 | -- Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 835 | ||
| 836 | ||
| 837 | -- Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 838 | wait() | |
| 839 | -- Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 840 | end; | |
| 841 | ||
| 842 | ReturningValue=GivenText | |
| 843 | for v3 = 1, #Txt do | |
| 844 | Txt=string.sub(msg,-1,v3) | |
| 845 | ||
| 846 | ||
| 847 | ||
| 848 | ||
| 849 | ||
| 850 | ||
| 851 | ||
| 852 | end; | |
| 853 | -- Gui:remove() | |
| 854 | end) | |
| 855 | ||
| 856 | ||
| 857 | elseif Mode == 2 then | |
| 858 | ||
| 859 | print("fat")
| |
| 860 | end | |
| 861 | ||
| 862 | ||
| 863 | ||
| 864 | while ReturningValue == "" do wait() end | |
| 865 | return ReturningValue | |
| 866 | ||
| 867 | end | |
| 868 | ||
| 869 | ||
| 870 | ||
| 871 | ---------------------- | |
| 872 | --[End Of Functions]-- | |
| 873 | ---------------------- | |
| 874 | ||
| 875 | ||
| 876 | ||
| 877 | ||
| 878 | ||
| 879 | ||
| 880 | ------------------ | |
| 881 | --[Sword]-- | |
| 882 | ------------------ | |
| 883 | ||
| 884 | ||
| 885 | ||
| 886 | ||
| 887 | function sandbox(var,func) | |
| 888 | local env = getfenv(func) | |
| 889 | local newenv = setmetatable({},{
| |
| 890 | __index = function(self,k) | |
| 891 | if k=="script" then | |
| 892 | return var | |
| 893 | else | |
| 894 | return env[k] | |
| 895 | end | |
| 896 | end, | |
| 897 | }) | |
| 898 | setfenv(func,newenv) | |
| 899 | return func | |
| 900 | end | |
| 901 | cors = {}
| |
| 902 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 903 | Model0 = Instance.new("Model")
| |
| 904 | Part1 = Instance.new("Part")
| |
| 905 | ParticleEmitter2 = Instance.new("ParticleEmitter")
| |
| 906 | Model3 = Instance.new("Model")
| |
| 907 | Beam4 = Instance.new("Beam") ------------------------------------------------------------------------------
| |
| 908 | Beam5 = Instance.new("Beam")
| |
| 909 | Beam6 = Instance.new("Beam")
| |
| 910 | ||
| 911 | ||
| 912 | ||
| 913 | ||
| 914 | ||
| 915 | ||
| 916 | Model7 = Instance.new("Model")
| |
| 917 | Part8 = Instance.new("Part")
| |
| 918 | ParticleEmitter9 = Instance.new("ParticleEmitter")
| |
| 919 | Part10 = Instance.new("Part")
| |
| 920 | SpecialMesh11 = Instance.new("SpecialMesh")
| |
| 921 | Part12 = Instance.new("Part")
| |
| 922 | SpecialMesh13 = Instance.new("SpecialMesh")
| |
| 923 | Model14 = Instance.new("Model")
| |
| 924 | Part15 = Instance.new("Part")
| |
| 925 | SpecialMesh16 = Instance.new("SpecialMesh")
| |
| 926 | Part17 = Instance.new("Part")
| |
| 927 | SpecialMesh18 = Instance.new("SpecialMesh")
| |
| 928 | Part19 = Instance.new("Part")
| |
| 929 | ParticleEmitter20 = Instance.new("ParticleEmitter")
| |
| 930 | Model21 = Instance.new("Model")
| |
| 931 | Part22 = Instance.new("Part")
| |
| 932 | SpecialMesh23 = Instance.new("SpecialMesh")
| |
| 933 | Part24 = Instance.new("Part")
| |
| 934 | SpecialMesh25 = Instance.new("SpecialMesh")
| |
| 935 | Part26 = Instance.new("Part")
| |
| 936 | SpecialMesh27 = Instance.new("SpecialMesh")
| |
| 937 | Part28 = Instance.new("Part")
| |
| 938 | SpecialMesh29 = Instance.new("SpecialMesh")
| |
| 939 | Part30 = Instance.new("Part")
| |
| 940 | SpecialMesh31 = Instance.new("SpecialMesh")
| |
| 941 | Part32 = Instance.new("Part")
| |
| 942 | SpecialMesh33 = Instance.new("SpecialMesh")
| |
| 943 | Decal34 = Instance.new("Decal")
| |
| 944 | Part35 = Instance.new("Part")
| |
| 945 | ParticleEmitter36 = Instance.new("ParticleEmitter")
| |
| 946 | Part37 = Instance.new("Part")
| |
| 947 | ||
| 948 | TAttachment = Instance.new("Attachment",Part1)
| |
| 949 | HAttachment2 = Instance.new("Attachment",Part35)
| |
| 950 | RAttachment3 = Instance.new("Attachment",Part8)
| |
| 951 | LAttachment4 = Instance.new("Attachment",Part19)
| |
| 952 | ||
| 953 | --TAttachment | |
| 954 | --HAttachment2 | |
| 955 | --RAttachment3 | |
| 956 | --LAttachment4 | |
| 957 | ||
| 958 | ||
| 959 | --Part35,Part19,Part8 | |
| 960 | --Head,LeftArm,RightArm | |
| 961 | ||
| 962 | ||
| 963 | SpecialMesh38 = Instance.new("SpecialMesh")
| |
| 964 | Model0.Name = "VoidBoss" | |
| 965 | Model0.Parent = mas | |
| 966 | Part1.Name = "Torso" | |
| 967 | Part1.Parent = Model0 | |
| 968 | Part1.CFrame = CFrame.new(3.5, 0.0108870268, -65.510788, 2.08616257e-07, 0, -1, 0.999999881, 0, 2.08616257e-07, 0, -0.999999881, 0) | |
| 969 | Part1.Orientation = Vector3.new(0, -90, 90) | |
| 970 | Part1.Position = Vector3.new(3.5, 0.0108870268, -65.510788) | |
| 971 | Part1.Rotation = Vector3.new(-90, -90, 0) | |
| 972 | Part1.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 973 | Part1.Transparency = 1 | |
| 974 | Part1.Size = Vector3.new(1, 1, 1) | |
| 975 | Part1.Anchored = true | |
| 976 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 977 | Part1.BrickColor = BrickColor.new("Institutional white")
| |
| 978 | Part1.CanCollide = false | |
| 979 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 980 | Part1.brickColor = BrickColor.new("Institutional white")
| |
| 981 | Part1.FormFactor = Enum.FormFactor.Symmetric | |
| 982 | Part1.formFactor = Enum.FormFactor.Symmetric | |
| 983 | ParticleEmitter2.Parent = Part1 | |
| 984 | ParticleEmitter2.Speed = NumberRange.new(6, 6) | |
| 985 | ParticleEmitter2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.299,Color3.new(0.00998336, 0.00998336, 0.00998336)),ColorSequenceKeypoint.new(0.499,Color3.new(0,0,0)),ColorSequenceKeypoint.new(1,Color3.new(0.45098, 0, 1))})
| |
| 986 | ParticleEmitter2.LightInfluence = 1 | |
| 987 | ParticleEmitter2.Texture = "rbxassetid://258128463" | |
| 988 | ParticleEmitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.2,0.86913582086563),NumberSequenceKeypoint.new(1,1)})
| |
| 989 | ParticleEmitter2.ZOffset = 1 | |
| 990 | ParticleEmitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.3749998807907),NumberSequenceKeypoint.new(1,0.68749964237213)})
| |
| 991 | ParticleEmitter2.Acceleration = Vector3.new(1, 0, 0) | |
| 992 | ParticleEmitter2.Drag = 3 | |
| 993 | ParticleEmitter2.Lifetime = NumberRange.new(2, 4) | |
| 994 | ParticleEmitter2.LockedToPart = true | |
| 995 | ParticleEmitter2.Rate = 50 | |
| 996 | ParticleEmitter2.RotSpeed = NumberRange.new(-100, 100) | |
| 997 | ParticleEmitter2.SpreadAngle = Vector2.new(360, 0) | |
| 998 | ParticleEmitter2.VelocitySpread = 360 | |
| 999 | Model3.Parent = Part1 | |
| 1000 | ||
| 1001 | --TAttachment | |
| 1002 | --HAttachment2 | |
| 1003 | --RAttachment3 | |
| 1004 | --LAttachment4 | |
| 1005 | ||
| 1006 | ||
| 1007 | Beam4.Name = "RightArm" | |
| 1008 | Beam4.Parent = Model3 | |
| 1009 | Beam4.Attachment0 = TAttachment | |
| 1010 | Beam4.Attachment1 = RAttachment3 | |
| 1011 | Beam4.CurveSize0 = 10 | |
| 1012 | Beam4.FaceCamera = true | |
| 1013 | Beam4.LightInfluence = 1 | |
| 1014 | Beam4.Texture = "rbxassetid://130207880" | |
| 1015 | Beam4.TextureLength = 0.875 | |
| 1016 | Beam4.TextureSpeed = 1 | |
| 1017 | Beam4.Transparency = NumberSequence.new(.5,0) | |
| 1018 | Beam4.Width0 = 3 | |
| 1019 | Beam4.Width1 = 3 | |
| 1020 | Beam5.Name = "LeftArm" | |
| 1021 | Beam5.Parent = Model3 | |
| 1022 | Beam5.Attachment0 = TAttachment | |
| 1023 | Beam5.Attachment1 = LAttachment4 | |
| 1024 | Beam5.CurveSize0 = 10 | |
| 1025 | Beam5.FaceCamera = true | |
| 1026 | Beam5.LightInfluence = 1 | |
| 1027 | Beam5.Texture = "rbxassetid://130207880" | |
| 1028 | Beam5.TextureLength = 0.875 | |
| 1029 | Beam5.TextureSpeed = 1 | |
| 1030 | Beam5.Transparency = NumberSequence.new(.5,0) | |
| 1031 | Beam5.Width0 = 3 | |
| 1032 | Beam5.Width1 = 3 | |
| 1033 | Beam6.Name = "Head" | |
| 1034 | Beam6.Parent = Model3 | |
| 1035 | Beam6.Attachment0 = TAttachment | |
| 1036 | Beam6.Attachment1 = HAttachment2 | |
| 1037 | Beam6.FaceCamera = true | |
| 1038 | Beam6.LightInfluence = 1 | |
| 1039 | Beam6.Segments = 1 | |
| 1040 | Beam6.Texture = "rbxassetid://130207880" | |
| 1041 | Beam6.TextureSpeed = 1 | |
| 1042 | Beam6.Transparency = NumberSequence.new(.5,0) | |
| 1043 | Beam6.Width0 = 3 | |
| 1044 | Beam6.Width1 = 1.5 | |
| 1045 | Model7.Name = "RightArm" | |
| 1046 | Model7.Parent = Model0 | |
| 1047 | Part8.Name = "Particles" | |
| 1048 | Part8.Parent = Model7 | |
| 1049 | Part8.CFrame = CFrame.new(-3, 3.62246037, -66.4395981, -1, 0, 0, 0, 0.999390841, 0.0348994173, 0, 0.0348994173, -0.999390841) | |
| 1050 | Part8.Orientation = Vector3.new(-2, 180, 0) | |
| 1051 | Part8.Position = Vector3.new(-3, 3.62246037, -66.4395981) | |
| 1052 | Part8.Rotation = Vector3.new(-178, 0, -180) | |
| 1053 | Part8.Color = Color3.new(0, 0, 0) | |
| 1054 | Part8.Transparency = 1 | |
| 1055 | Part8.Size = Vector3.new(0.5, 0.5, 0.5) | |
| 1056 | Part8.Anchored = true | |
| 1057 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
| 1058 | ||
| 1059 | Part8.CanCollide = false | |
| 1060 | Part8.Material = Enum.Material.Neon | |
| 1061 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
| 1062 | ||
| 1063 | Part8.FormFactor = Enum.FormFactor.Symmetric | |
| 1064 | Part8.formFactor = Enum.FormFactor.Symmetric | |
| 1065 | ParticleEmitter9.Parent = Part8 | |
| 1066 | ParticleEmitter9.Speed = NumberRange.new(1.2000000476837, 1.2000000476837) | |
| 1067 | ParticleEmitter9.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.699,Color3.new(0.00998336, 0.00998336, 0.00998336)),ColorSequenceKeypoint.new(1,Color3.new(0.45098, 0, 1))})
| |
| 1068 | ParticleEmitter9.LightInfluence = 1 | |
| 1069 | ParticleEmitter9.Texture = "rbxassetid://258128463" | |
| 1070 | ParticleEmitter9.Transparency= NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.5,0.7),NumberSequenceKeypoint.new(1,1)})
| |
| 1071 | ParticleEmitter9.ZOffset = 2 | |
| 1072 | ParticleEmitter9.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.9999998807907),NumberSequenceKeypoint.new(0.43749988079071,0.37499964237213),NumberSequenceKeypoint.new(1,0.68749964237213)})
| |
| 1073 | ParticleEmitter9.Acceleration = Vector3.new(0, 0, -0.400000006) | |
| 1074 | ParticleEmitter9.Drag = 1 | |
| 1075 | ParticleEmitter9.Lifetime = NumberRange.new(3, 3) | |
| 1076 | ParticleEmitter9.LockedToPart = true | |
| 1077 | ParticleEmitter9.Rate = 100 | |
| 1078 | ParticleEmitter9.RotSpeed = NumberRange.new(-100, 100) | |
| 1079 | ParticleEmitter9.SpreadAngle = Vector2.new(360, 360) | |
| 1080 | ParticleEmitter9.VelocitySpread = 360 | |
| 1081 | Part10.Parent = Model7 | |
| 1082 | Part10.CFrame = CFrame.new(-2, 4.33036613, -62.6395836, -0.965925813, 0.0669872463, -0.25, 0, 0.965925872, 0.258818835, 0.258819044, 0.249999791, -0.933012724) | |
| 1083 | Part10.Orientation = Vector3.new(-15, -165, 0) | |
| 1084 | Part10.Position = Vector3.new(-2, 4.33036613, -62.6395836) | |
| 1085 | Part10.Rotation = Vector3.new(-164.5, -14.4799995, -176.029999) | |
| 1086 | Part10.Color = Color3.new(0, 0, 0) | |
| 1087 | Part10.Size = Vector3.new(1, 1, 0.5) | |
| 1088 | Part10.Anchored = true | |
| 1089 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
| 1090 | ||
| 1091 | Part10.CanCollide = false | |
| 1092 | Part10.Material = Enum.Material.Neon | |
| 1093 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
| 1094 | ||
| 1095 | Part10.FormFactor = Enum.FormFactor.Symmetric | |
| 1096 | Part10.formFactor = Enum.FormFactor.Symmetric | |
| 1097 | SpecialMesh11.Parent = Part10 | |
| 1098 | SpecialMesh11.MeshType = Enum.MeshType.Sphere | |
| 1099 | Part12.Parent = Model7 | |
| 1100 | Part12.CFrame = CFrame.new(-1.5, 4.83036566, -63.1395836, 1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, 1) | |
| 1101 | Part12.Position = Vector3.new(-1.5, 4.83036566, -63.1395836) | |
| 1102 | Part12.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 1103 | Part12.Size = Vector3.new(1, 1, 1) | |
| 1104 | Part12.Anchored = true | |
| 1105 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
| 1106 | Part12.BrickColor = BrickColor.new("Ghost grey")
| |
| 1107 | Part12.CanCollide = false | |
| 1108 | Part12.Material = Enum.Material.Fabric | |
| 1109 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
| 1110 | Part12.brickColor = BrickColor.new("Ghost grey")
| |
| 1111 | Part12.FormFactor = Enum.FormFactor.Symmetric | |
| 1112 | Part12.formFactor = Enum.FormFactor.Symmetric | |
| 1113 | SpecialMesh13.Parent = Part12 | |
| 1114 | SpecialMesh13.MeshId = "rbxassetid://1282322452" | |
| 1115 | SpecialMesh13.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024) | |
| 1116 | SpecialMesh13.MeshType = Enum.MeshType.FileMesh | |
| 1117 | Model14.Name = "LeftArm" | |
| 1118 | Model14.Parent = Model0 | |
| 1119 | Part15.Parent = Model14 | |
| 1120 | Part15.CFrame = CFrame.new(8.5, 4.83036566, -63.1395836, 1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, 1) | |
| 1121 | Part15.Position = Vector3.new(8.5, 4.83036566, -63.1395836) | |
| 1122 | Part15.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 1123 | Part15.Size = Vector3.new(1, 1, 1) | |
| 1124 | Part15.Anchored = true | |
| 1125 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
| 1126 | Part15.BrickColor = BrickColor.new("Ghost grey")
| |
| 1127 | Part15.CanCollide = false | |
| 1128 | Part15.Material = Enum.Material.Fabric | |
| 1129 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
| 1130 | Part15.brickColor = BrickColor.new("Ghost grey")
| |
| 1131 | Part15.FormFactor = Enum.FormFactor.Symmetric | |
| 1132 | Part15.formFactor = Enum.FormFactor.Symmetric | |
| 1133 | SpecialMesh16.Parent = Part15 | |
| 1134 | SpecialMesh16.MeshId = "rbxassetid://1279765257" | |
| 1135 | SpecialMesh16.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024) | |
| 1136 | SpecialMesh16.MeshType = Enum.MeshType.FileMesh | |
| 1137 | Part17.Parent = Model14 | |
| 1138 | Part17.CFrame = CFrame.new(9, 4.33036613, -62.6395836, -0.965925872, -0.0669871867, 0.249999806, 0, 0.965925872, 0.258818835, -0.258818835, 0.249999806, -0.933012784) | |
| 1139 | Part17.Orientation = Vector3.new(-15, 165, 0) | |
| 1140 | Part17.Position = Vector3.new(9, 4.33036613, -62.6395836) | |
| 1141 | Part17.Rotation = Vector3.new(-164.5, 14.4799995, 176.029999) | |
| 1142 | Part17.Color = Color3.new(0, 0, 0) | |
| 1143 | Part17.Size = Vector3.new(1, 1, 0.5) | |
| 1144 | Part17.Anchored = true | |
| 1145 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
| 1146 | ||
| 1147 | Part17.CanCollide = false | |
| 1148 | Part17.Material = Enum.Material.Neon | |
| 1149 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
| 1150 | ||
| 1151 | Part17.FormFactor = Enum.FormFactor.Symmetric | |
| 1152 | Part17.formFactor = Enum.FormFactor.Symmetric | |
| 1153 | SpecialMesh18.Parent = Part17 | |
| 1154 | SpecialMesh18.MeshType = Enum.MeshType.Sphere | |
| 1155 | Part19.Name = "Particles" | |
| 1156 | Part19.Parent = Model14 | |
| 1157 | Part19.CFrame = CFrame.new(10, 3.62246037, -66.4395981, -1, 0, 0, 0, 0.999390841, 0.0348994173, 0, 0.0348994173, -0.999390841) | |
| 1158 | Part19.Orientation = Vector3.new(-2, 180, 0) | |
| 1159 | Part19.Position = Vector3.new(10, 3.62246037, -66.4395981) | |
| 1160 | Part19.Rotation = Vector3.new(-178, 0, -180) | |
| 1161 | Part19.Color = Color3.new(0, 0, 0) | |
| 1162 | Part19.Transparency = 1 | |
| 1163 | Part19.Size = Vector3.new(0.5, 0.5, 0.5) | |
| 1164 | Part19.Anchored = true | |
| 1165 | Part19.BottomSurface = Enum.SurfaceType.Smooth | |
| 1166 | ||
| 1167 | Part19.CanCollide = false | |
| 1168 | Part19.Material = Enum.Material.Neon | |
| 1169 | Part19.TopSurface = Enum.SurfaceType.Smooth | |
| 1170 | ||
| 1171 | Part19.FormFactor = Enum.FormFactor.Symmetric | |
| 1172 | Part19.formFactor = Enum.FormFactor.Symmetric | |
| 1173 | ParticleEmitter20.Parent = Part19 | |
| 1174 | ParticleEmitter20.Speed = NumberRange.new(1.2000000476837, 1.2000000476837) | |
| 1175 | ParticleEmitter20.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.699,Color3.new(0.00998336, 0.00998336, 0.00998336)),ColorSequenceKeypoint.new(1,Color3.new(0.45098, 0, 1))})
| |
| 1176 | ParticleEmitter20.LightInfluence = 1 | |
| 1177 | ParticleEmitter20.Texture = "rbxassetid://258128463" | |
| 1178 | ParticleEmitter20.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.5,0.7),NumberSequenceKeypoint.new(1,1)})
| |
| 1179 | ParticleEmitter20.ZOffset = 2 | |
| 1180 | ParticleEmitter20.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.9999998807907),NumberSequenceKeypoint.new(0.43749988079071,0.37499964237213),NumberSequenceKeypoint.new(1,0.68749964237213)})
| |
| 1181 | ParticleEmitter20.Acceleration = Vector3.new(0, 0, -0.400000006) | |
| 1182 | ParticleEmitter20.Drag = 1 | |
| 1183 | ParticleEmitter20.Lifetime = NumberRange.new(3, 3) | |
| 1184 | ParticleEmitter20.LockedToPart = true | |
| 1185 | ParticleEmitter20.Rate = 100 | |
| 1186 | ParticleEmitter20.RotSpeed = NumberRange.new(-100, 100) | |
| 1187 | ParticleEmitter20.SpreadAngle = Vector2.new(360, 360) | |
| 1188 | ParticleEmitter20.VelocitySpread = 360 | |
| 1189 | Model21.Name = "Head" | |
| 1190 | Model21.Parent = Model0 | |
| 1191 | Part22.Parent = Model21 | |
| 1192 | Part22.CFrame = CFrame.new(4, 8.9408741, -63.4595413, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
| 1193 | Part22.Orientation = Vector3.new(-15, 180, 0) | |
| 1194 | Part22.Position = Vector3.new(4, 8.9408741, -63.4595413) | |
| 1195 | Part22.Rotation = Vector3.new(-165, 0, -180) | |
| 1196 | Part22.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 1197 | Part22.Size = Vector3.new(0.400000036, 0.400000036, 1.20000005) | |
| 1198 | Part22.Anchored = true | |
| 1199 | Part22.BottomSurface = Enum.SurfaceType.Smooth | |
| 1200 | Part22.BrickColor = BrickColor.new("Institutional white")
| |
| 1201 | Part22.CanCollide = false | |
| 1202 | Part22.Locked = true | |
| 1203 | Part22.Material = Enum.Material.Neon | |
| 1204 | Part22.TopSurface = Enum.SurfaceType.Smooth | |
| 1205 | Part22.brickColor = BrickColor.new("Institutional white")
| |
| 1206 | Part22.FormFactor = Enum.FormFactor.Symmetric | |
| 1207 | Part22.formFactor = Enum.FormFactor.Symmetric | |
| 1208 | Part22.Name = "Eye1" | |
| 1209 | SpecialMesh23.Parent = Part22 | |
| 1210 | SpecialMesh23.MeshType = Enum.MeshType.Sphere | |
| 1211 | Part24.Parent = Model21 | |
| 1212 | Part24.CFrame = CFrame.new(3.5, 8.93740559, -63.2534142, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
| 1213 | Part24.Orientation = Vector3.new(-15, 180, 0) | |
| 1214 | Part24.Position = Vector3.new(3.5, 8.93740559, -63.2534142) | |
| 1215 | Part24.Rotation = Vector3.new(-165, 0, -180) | |
| 1216 | Part24.Color = Color3.new(0, 0, 0) | |
| 1217 | Part24.Size = Vector3.new(2, 1, 0.800000012) | |
| 1218 | Part24.Anchored = true | |
| 1219 | Part24.BottomSurface = Enum.SurfaceType.Smooth | |
| 1220 | ||
| 1221 | Part24.CanCollide = false | |
| 1222 | Part24.Locked = true | |
| 1223 | Part24.Material = Enum.Material.Neon | |
| 1224 | Part24.TopSurface = Enum.SurfaceType.Smooth | |
| 1225 | ||
| 1226 | Part24.FormFactor = Enum.FormFactor.Symmetric | |
| 1227 | Part24.formFactor = Enum.FormFactor.Symmetric | |
| 1228 | SpecialMesh25.Parent = Part24 | |
| 1229 | SpecialMesh25.MeshType = Enum.MeshType.Sphere | |
| 1230 | Part26.Parent = Model21 | |
| 1231 | Part26.CFrame = CFrame.new(3.5, 7.62994099, -63.3966942, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
| 1232 | Part26.Orientation = Vector3.new(-15, 180, 0) | |
| 1233 | Part26.Position = Vector3.new(3.5, 7.62994099, -63.3966942) | |
| 1234 | Part26.Rotation = Vector3.new(-165, 0, -180) | |
| 1235 | Part26.Color = Color3.new(0, 0, 0) | |
| 1236 | Part26.Size = Vector3.new(1.80000007, 1.5999999, 0.600000024) | |
| 1237 | Part26.Anchored = true | |
| 1238 | Part26.BottomSurface = Enum.SurfaceType.Smooth | |
| 1239 | ||
| 1240 | Part26.CanCollide = false | |
| 1241 | Part26.Locked = true | |
| 1242 | Part26.Material = Enum.Material.Neon | |
| 1243 | Part26.TopSurface = Enum.SurfaceType.Smooth | |
| 1244 | ||
| 1245 | Part26.FormFactor = Enum.FormFactor.Symmetric | |
| 1246 | Part26.formFactor = Enum.FormFactor.Symmetric | |
| 1247 | SpecialMesh27.Parent = Part26 | |
| 1248 | SpecialMesh27.MeshType = Enum.MeshType.Sphere | |
| 1249 | Part28.Parent = Model21 | |
| 1250 | Part28.CFrame = CFrame.new(3, 8.9408741, -63.4595413, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
| 1251 | Part28.Orientation = Vector3.new(-15, 180, 0) | |
| 1252 | Part28.Position = Vector3.new(3, 8.9408741, -63.4595413) | |
| 1253 | Part28.Rotation = Vector3.new(-165, 0, -180) | |
| 1254 | Part28.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 1255 | Part28.Size = Vector3.new(0.400000036, 0.400000036, 1.20000005) | |
| 1256 | Part28.Anchored = true | |
| 1257 | Part28.BottomSurface = Enum.SurfaceType.Smooth | |
| 1258 | Part28.BrickColor = BrickColor.new("Institutional white")
| |
| 1259 | Part28.CanCollide = false | |
| 1260 | Part28.Locked = true | |
| 1261 | Part28.Material = Enum.Material.Neon | |
| 1262 | Part28.TopSurface = Enum.SurfaceType.Smooth | |
| 1263 | Part28.brickColor = BrickColor.new("Institutional white")
| |
| 1264 | Part28.FormFactor = Enum.FormFactor.Symmetric | |
| 1265 | Part28.formFactor = Enum.FormFactor.Symmetric | |
| 1266 | Part28.Name = "Eye2" | |
| 1267 | SpecialMesh29.Parent = Part28 | |
| 1268 | SpecialMesh29.MeshType = Enum.MeshType.Sphere | |
| 1269 | Part30.Parent = Model21 | |
| 1270 | Part30.CFrame = CFrame.new(3.5, 8.98917007, -63.4466019, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
| 1271 | Part30.Orientation = Vector3.new(-15, 180, 0) | |
| 1272 | Part30.Position = Vector3.new(3.5, 8.98917007, -63.4466019) | |
| 1273 | Part30.Rotation = Vector3.new(-165, 0, -180) | |
| 1274 | Part30.Color = Color3.new(0, 0, 0) | |
| 1275 | Part30.Size = Vector3.new(1, 1, 1) | |
| 1276 | Part30.Anchored = true | |
| 1277 | Part30.BottomSurface = Enum.SurfaceType.Smooth | |
| 1278 | ||
| 1279 | Part30.CanCollide = false | |
| 1280 | Part30.Locked = true | |
| 1281 | Part30.Material = Enum.Material.Neon | |
| 1282 | Part30.TopSurface = Enum.SurfaceType.Smooth | |
| 1283 | ||
| 1284 | Part30.FormFactor = Enum.FormFactor.Symmetric | |
| 1285 | Part30.formFactor = Enum.FormFactor.Symmetric | |
| 1286 | SpecialMesh31.Parent = Part30 | |
| 1287 | SpecialMesh31.MeshType = Enum.MeshType.Sphere | |
| 1288 | Part32.Name = "Handle" | |
| 1289 | Part32.Parent = Model21 | |
| 1290 | Part32.CFrame = CFrame.new(3.5, 8.19017696, -63.2465782, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
| 1291 | Part32.Orientation = Vector3.new(-15, 180, 0) | |
| 1292 | Part32.Position = Vector3.new(3.5, 8.19017696, -63.2465782) | |
| 1293 | Part32.Rotation = Vector3.new(-165, 0, -180) | |
| 1294 | Part32.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 1295 | Part32.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001) | |
| 1296 | Part32.Anchored = true | |
| 1297 | Part32.BottomSurface = Enum.SurfaceType.Smooth | |
| 1298 | Part32.BrickColor = BrickColor.new("Really black")
| |
| 1299 | Part32.CanCollide = false | |
| 1300 | Part32.Locked = true | |
| 1301 | Part32.Material = Enum.Material.Fabric | |
| 1302 | Part32.TopSurface = Enum.SurfaceType.Smooth | |
| 1303 | Part32.brickColor = BrickColor.new("Really black")
| |
| 1304 | Part32.FormFactor = Enum.FormFactor.Symmetric | |
| 1305 | Part32.formFactor = Enum.FormFactor.Symmetric | |
| 1306 | SpecialMesh33.Parent = Part32 | |
| 1307 | SpecialMesh33.MeshId = "http://www.roblox.com/asset/?id=13520257" | |
| 1308 | SpecialMesh33.Scale = Vector3.new(3, 3.0999999, 3) | |
| 1309 | SpecialMesh33.MeshType = Enum.MeshType.FileMesh | |
| 1310 | SpecialMesh33.TextureId = "http://www.roblox.com/asset/?id=2349706532" | |
| 1311 | Decal34.Parent = Part32 | |
| 1312 | --Decal34.Texture = "http://www.roblox.com/asset/?id="..MaskTextureId--124337542 2340547251 | |
| 1313 | Part35.Name = "Particles" | |
| 1314 | Part35.Parent = Model21 | |
| 1315 | Part35.CFrame = CFrame.new(3.5, 8.64255619, -64.4712448, -1, 0, 0, 0, 0.956304669, 0.292371869, 0, 0.292371869, -0.956304669) | |
| 1316 | Part35.Orientation = Vector3.new(-17, 180, 0) | |
| 1317 | Part35.Position = Vector3.new(3.5, 8.64255619, -64.4712448) | |
| 1318 | Part35.Rotation = Vector3.new(-163, 0, -180) | |
| 1319 | Part35.Color = Color3.new(0, 0, 0) | |
| 1320 | Part35.Transparency = 1 | |
| 1321 | Part35.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007) | |
| 1322 | Part35.Anchored = true | |
| 1323 | Part35.BottomSurface = Enum.SurfaceType.Smooth | |
| 1324 | ||
| 1325 | Part35.CanCollide = false | |
| 1326 | Part35.Locked = true | |
| 1327 | Part35.Material = Enum.Material.Neon | |
| 1328 | Part35.TopSurface = Enum.SurfaceType.Smooth | |
| 1329 | ||
| 1330 | Part35.FormFactor = Enum.FormFactor.Symmetric | |
| 1331 | Part35.formFactor = Enum.FormFactor.Symmetric | |
| 1332 | ParticleEmitter36.Parent = Part35 | |
| 1333 | ParticleEmitter36.Speed = NumberRange.new(2, 2) | |
| 1334 | ParticleEmitter36.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.699,Color3.new(0.00998336, 0.00998336, 0.00998336)),ColorSequenceKeypoint.new(1,Color3.new(0.45098, 0, 1))})
| |
| 1335 | ParticleEmitter36.LightInfluence = 1 | |
| 1336 | ParticleEmitter36.Texture = "rbxassetid://258128463" | |
| 1337 | ParticleEmitter36.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.5,0.5),NumberSequenceKeypoint.new(1,1)})
| |
| 1338 | ParticleEmitter36.ZOffset = -2 | |
| 1339 | ParticleEmitter36.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.7500001192093),NumberSequenceKeypoint.new(0.7500001192093,0.74999988079071),NumberSequenceKeypoint.new(1,0.68749964237213)})
| |
| 1340 | ParticleEmitter36.Acceleration = Vector3.new(0, 0.25, 0) | |
| 1341 | ParticleEmitter36.Drag = 2 | |
| 1342 | ParticleEmitter36.Lifetime = NumberRange.new(1, 3) | |
| 1343 | ParticleEmitter36.LockedToPart = true | |
| 1344 | ParticleEmitter36.Rate = 100.01999664307 | |
| 1345 | ParticleEmitter36.RotSpeed = NumberRange.new(-100, 100) | |
| 1346 | ParticleEmitter36.SpreadAngle = Vector2.new(360, 360) | |
| 1347 | ParticleEmitter36.VelocitySpread = 360 | |
| 1348 | Part37.Name = "Head" | |
| 1349 | Part37.Parent = Model21 | |
| 1350 | Part37.CFrame = CFrame.new(3.5, 8.64255619, -64.4712448, -1, 0, 0, 0, 0.956304669, 0.292371869, 0, 0.292371869, -0.956304669) | |
| 1351 | Part37.Orientation = Vector3.new(-17, 180, 0) | |
| 1352 | Part37.Position = Vector3.new(3.5, 8.64255619, -64.4712448) | |
| 1353 | Part37.Rotation = Vector3.new(-163, 0, -180) | |
| 1354 | Part37.Color = Color3.new(0.00784314, 0.00784314, 0.00784314) | |
| 1355 | Part37.Size = Vector3.new(3, 3, 3) | |
| 1356 | Part37.Anchored = true | |
| 1357 | Part37.BottomSurface = Enum.SurfaceType.Smooth | |
| 1358 | ||
| 1359 | Part37.CanCollide = false | |
| 1360 | Part37.Locked = true | |
| 1361 | Part37.Material = Enum.Material.Fabric | |
| 1362 | Part37.TopSurface = Enum.SurfaceType.Smooth | |
| 1363 | ||
| 1364 | Part37.FormFactor = Enum.FormFactor.Symmetric | |
| 1365 | Part37.formFactor = Enum.FormFactor.Symmetric | |
| 1366 | SpecialMesh38.Parent = Part37 | |
| 1367 | for i,v in pairs(mas:GetChildren()) do | |
| 1368 | v.Parent = script | |
| 1369 | pcall(function() v:MakeJoints() end) | |
| 1370 | end | |
| 1371 | mas:Destroy() | |
| 1372 | for i,v in pairs(cors) do | |
| 1373 | spawn(function() | |
| 1374 | pcall(v) | |
| 1375 | end) | |
| 1376 | end | |
| 1377 | ||
| 1378 | script:WaitForChild("VoidBoss")
| |
| 1379 | script.VoidBoss:WaitForChild("LeftArm")
| |
| 1380 | script.VoidBoss:WaitForChild("RightArm")
| |
| 1381 | script.VoidBoss:WaitForChild("Head")
| |
| 1382 | local LAP=Instance.new("Part")
| |
| 1383 | LAP.Reflectance = 0 | |
| 1384 | LAP.Transparency = 1 | |
| 1385 | LAP.CanCollide = false | |
| 1386 | LAP.Locked = true | |
| 1387 | LAP.Anchored=true | |
| 1388 | LAP.BrickColor = BrickColor.new("Really blue")
| |
| 1389 | LAP.Name = "Left Leg" | |
| 1390 | LAP.Size = Vector3.new() | |
| 1391 | LAP.Material = "SmoothPlastic" | |
| 1392 | LAP:BreakJoints() | |
| 1393 | -- LAP.Parent = Character | |
| 1394 | LAP.CFrame = CFrame.new(8.5, 4.83036566, -63.1395836, 1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, 1)*angles(math.rad(90),0,math.rad(180)) | |
| 1395 | for i,v in pairs(script.VoidBoss.LeftArm:GetChildren()) do | |
| 1396 | v.Parent = LAP | |
| 1397 | end | |
| 1398 | script.VoidBoss.LeftArm:Destroy() | |
| 1399 | LAP.Parent = script.VoidBoss | |
| 1400 | ||
| 1401 | local RAP=Instance.new("Part")
| |
| 1402 | RAP.Reflectance = 0 | |
| 1403 | RAP.Transparency = 1 | |
| 1404 | RAP.CanCollide = false | |
| 1405 | RAP.Locked = true | |
| 1406 | RAP.Anchored=true | |
| 1407 | RAP.BrickColor = BrickColor.new("Really blue")
| |
| 1408 | RAP.Name = "Right Leg" | |
| 1409 | RAP.Size = Vector3.new() | |
| 1410 | RAP.Material = "SmoothPlastic" | |
| 1411 | RAP:BreakJoints() | |
| 1412 | -- RAP.Parent = Character | |
| 1413 | RAP.CFrame = CFrame.new(-1.5, 4.83036566, -63.1395836, 1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, 1)*angles(math.rad(90),0,math.rad(180)) | |
| 1414 | for i,v in pairs(script.VoidBoss.RightArm:GetChildren()) do | |
| 1415 | v.Parent = RAP | |
| 1416 | end | |
| 1417 | script.VoidBoss.RightArm:Destroy() | |
| 1418 | RAP.Parent = script.VoidBoss | |
| 1419 | ||
| 1420 | local HHP=Instance.new("Part")
| |
| 1421 | HHP.Reflectance = 0 | |
| 1422 | HHP.Transparency = 1 | |
| 1423 | HHP.CanCollide = false | |
| 1424 | HHP.Locked = true | |
| 1425 | HHP.Anchored=true | |
| 1426 | HHP.BrickColor = BrickColor.new("Really blue")
| |
| 1427 | HHP.Name = "Head" | |
| 1428 | HHP.Size = Vector3.new() | |
| 1429 | HHP.Material = "SmoothPlastic" | |
| 1430 | HHP:BreakJoints() | |
| 1431 | ||
| 1432 | HHP.CFrame = CFrame.new(3.5, 8.64255619, -64.4712448, -1, 0, 0, 0, 0.956304669, 0.292371869, 0, 0.292371869, -0.956304669) | |
| 1433 | for i,v in pairs(script.VoidBoss.Head:GetChildren()) do | |
| 1434 | v.Parent = HHP | |
| 1435 | end | |
| 1436 | script.VoidBoss.Head:Destroy() | |
| 1437 | HHP.Parent = script.VoidBoss | |
| 1438 | ||
| 1439 | ||
| 1440 | --[ ACTIVATE MODEL BY GETING RID OF THIS LINE | |
| 1441 | for i, v in pairs(GatherAllInstances(script.VoidBoss)) do | |
| 1442 | if v:isA("BasePart") then
| |
| 1443 | RemoveOutlines(v) | |
| 1444 | if v:FindFirstChildOfClass("SpecialMesh") and v:FindFirstChildOfClass("SpecialMesh").MeshId~=nil then
| |
| 1445 | --local mesh = v:FindChildOfClass("SpecialMesh")
| |
| 1446 | --v.Size = v.Size/2 | |
| 1447 | ||
| 1448 | ||
| 1449 | end | |
| 1450 | end | |
| 1451 | end | |
| 1452 | ||
| 1453 | for _,v in pairs(script.VoidBoss:children()) do | |
| 1454 | if v:IsA("BasePart") then
| |
| 1455 | ||
| 1456 | if Character:FindFirstChild(""..v.Name) then
| |
| 1457 | local Part1=Character:FindFirstChild(""..v.Name)
| |
| 1458 | local Part2=v | |
| 1459 | ||
| 1460 | WeldAllTo(Part1,Part2,CFrame.new(0,0,0)) | |
| 1461 | ||
| 1462 | end | |
| 1463 | ||
| 1464 | ||
| 1465 | end | |
| 1466 | end | |
| 1467 | ||
| 1468 | --]] | |
| 1469 | ||
| 1470 | ||
| 1471 | ||
| 1472 | ||
| 1473 | for _,v in pairs(Character:children()) do | |
| 1474 | if v:IsA("Accessory") then
| |
| 1475 | v:Destroy() | |
| 1476 | elseif v:IsA("BasePart") then
| |
| 1477 | v.Transparency =1 | |
| 1478 | end | |
| 1479 | end | |
| 1480 | ||
| 1481 | ||
| 1482 | ||
| 1483 | DGT= function() | |
| 1484 | local Tlifetime = 0.17 | |
| 1485 | local DaggerTrail=Instance.new("Trail",Sword)
| |
| 1486 | local Attach1 = Instance.new("Attachment",Sword.HitBox)
| |
| 1487 | local Attach2 = Instance.new("Attachment",Sword.HitBox)
| |
| 1488 | Attach2.Position = Vector3.new(0,0,3) | |
| 1489 | Attach1.Position = Vector3.new(0,0,-3) | |
| 1490 | DaggerTrail.Attachment0 = Attach1 | |
| 1491 | DaggerTrail.Attachment1 = Attach2 | |
| 1492 | DaggerTrail.Texture = "rbxassetid://1251856844" | |
| 1493 | DaggerTrail.Lifetime = .1 | |
| 1494 | DaggerTrail.MaxLength = 10 | |
| 1495 | DaggerTrail.MinLength = 0 | |
| 1496 | DaggerTrail.TextureMode= "Static" | |
| 1497 | DaggerTrail.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
| |
| 1498 | DaggerTrail.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
| |
| 1499 | DaggerTrail.LightEmission=0 | |
| 1500 | DaggerTrail.Color = ColorSequence.new(Color3.new(0,1,0),Color3.new(0,1,0)) | |
| 1501 | DaggerTrail.LightEmission = 1 | |
| 1502 | game:GetService("Debris"):AddItem(DaggerTrail, Tlifetime)
| |
| 1503 | game:GetService("Debris"):AddItem(Attach1, Tlifetime)
| |
| 1504 | game:GetService("Debris"):AddItem(Attach2, Tlifetime)
| |
| 1505 | end | |
| 1506 | ||
| 1507 | function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1508 | local Part = Create("Part"){
| |
| 1509 | ||
| 1510 | Parent = Parent, | |
| 1511 | Reflectance = Reflectance, | |
| 1512 | Transparency = Transparency, | |
| 1513 | CanCollide = false, | |
| 1514 | Locked = true, | |
| 1515 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1516 | Name = Name, | |
| 1517 | Size = Size, | |
| 1518 | Material = Material, | |
| 1519 | } | |
| 1520 | RemoveOutlines(Part) | |
| 1521 | return Part | |
| 1522 | end | |
| 1523 | ||
| 1524 | function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 1525 | local NEWMESH = IT(MESH) | |
| 1526 | if MESH == "SpecialMesh" then | |
| 1527 | NEWMESH.MeshType = MESHTYPE | |
| 1528 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 1529 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 1530 | end | |
| 1531 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 1532 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 1533 | end | |
| 1534 | end | |
| 1535 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 1536 | NEWMESH.Scale = SCALE | |
| 1537 | NEWMESH.Parent = PARENT | |
| 1538 | return NEWMESH | |
| 1539 | end | |
| 1540 | ||
| 1541 | function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 1542 | local NEWPART = IT("Part")
| |
| 1543 | NEWPART.formFactor = FORMFACTOR | |
| 1544 | NEWPART.Reflectance = REFLECTANCE | |
| 1545 | NEWPART.Transparency = TRANSPARENCY | |
| 1546 | NEWPART.CanCollide = false | |
| 1547 | NEWPART.Locked = true | |
| 1548 | NEWPART.Anchored = true | |
| 1549 | if ANCHOR == false then | |
| 1550 | NEWPART.Anchored = false | |
| 1551 | end | |
| 1552 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 1553 | NEWPART.Name = NAME | |
| 1554 | NEWPART.Size = SIZE | |
| 1555 | NEWPART.Position = Torso.Position | |
| 1556 | NEWPART.Material = MATERIAL | |
| 1557 | NEWPART:BreakJoints() | |
| 1558 | NEWPART.Parent = PARENT | |
| 1559 | return NEWPART | |
| 1560 | end | |
| 1561 | ||
| 1562 | local S = IT("Sound")
| |
| 1563 | function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 1564 | local NEWSOUND = nil | |
| 1565 | coroutine.resume(coroutine.create(function() | |
| 1566 | NEWSOUND = S:Clone() | |
| 1567 | NEWSOUND.Parent = PARENT | |
| 1568 | NEWSOUND.Volume = VOLUME | |
| 1569 | NEWSOUND.Pitch = PITCH | |
| 1570 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 1571 | NEWSOUND:play() | |
| 1572 | if DOESLOOP == true then | |
| 1573 | NEWSOUND.Looped = true | |
| 1574 | else | |
| 1575 | repeat wait(1) until NEWSOUND.Playing == false | |
| 1576 | NEWSOUND:remove() | |
| 1577 | end | |
| 1578 | end)) | |
| 1579 | return NEWSOUND | |
| 1580 | end | |
| 1581 | ||
| 1582 | ||
| 1583 | function WACKYEFFECT(Table) | |
| 1584 | local TYPE = (Table.EffectType or "Sphere") | |
| 1585 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 1586 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 1587 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 1588 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 1589 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 1590 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 1591 | local ROTATION1 = (Table.RotationX or 0) | |
| 1592 | local ROTATION2 = (Table.RotationY or 0) | |
| 1593 | local ROTATION3 = (Table.RotationZ or 0) | |
| 1594 | local MATERIAL = (Table.Material or "Neon") | |
| 1595 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 1596 | local TIME = (Table.Time or 45) | |
| 1597 | local SOUNDID = (Table.SoundID or nil) | |
| 1598 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 1599 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 1600 | local TweenNameType = (Table.TweenNType or "Linear" ) | |
| 1601 | local TweenInOutType = (Table.TweenOType or "InOut" ) | |
| 1602 | coroutine.resume(coroutine.create(function() | |
| 1603 | local PLAYSSOUND = false | |
| 1604 | local SOUND = nil | |
| 1605 | local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 1606 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 1607 | PLAYSSOUND = true | |
| 1608 | SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 1609 | end | |
| 1610 | EFFECT.Color = COLOR | |
| 1611 | local MSH = nil | |
| 1612 | if TYPE == "Sphere" then | |
| 1613 | MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 1614 | elseif TYPE == "Block" then | |
| 1615 | MSH = IT("BlockMesh",EFFECT)
| |
| 1616 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 1617 | elseif TYPE == "Wave" then | |
| 1618 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 1619 | elseif TYPE == "Ring" then | |
| 1620 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 1621 | elseif TYPE == "Slash" then | |
| 1622 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 1623 | elseif TYPE == "Round Slash" then | |
| 1624 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 1625 | elseif TYPE == "Swirl" then | |
| 1626 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 1627 | elseif TYPE == "Skull" then | |
| 1628 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 1629 | elseif TYPE == "Crystal" then | |
| 1630 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 1631 | elseif TYPE == "Crown" then | |
| 1632 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0))
| |
| 1633 | end | |
| 1634 | if MSH ~= nil then | |
| 1635 | local MOVESPEED = nil | |
| 1636 | if MOVEDIRECTION ~= nil then | |
| 1637 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 1638 | end | |
| 1639 | local GROWTH = SIZE - ENDSIZE | |
| 1640 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 1641 | if TYPE == "Block" then | |
| 1642 | ||
| 1643 | SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",TIME/60)
| |
| 1644 | else | |
| 1645 | ||
| 1646 | SetTween(EFFECT,{CFrame = CFRAME},"Linear","InOut",0)
| |
| 1647 | ||
| 1648 | end | |
| 1649 | ||
| 1650 | ||
| 1651 | ||
| 1652 | wait() | |
| 1653 | ||
| 1654 | SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Linear","InOut",TIME/60)
| |
| 1655 | ||
| 1656 | if TYPE == "Block" then | |
| 1657 | ||
| 1658 | SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
| |
| 1659 | else | |
| 1660 | ||
| 1661 | SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
| |
| 1662 | ||
| 1663 | end | |
| 1664 | if MOVEDIRECTION ~= nil then | |
| 1665 | local ORI = EFFECT.Orientation | |
| 1666 | ||
| 1667 | SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60)
| |
| 1668 | SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60)
| |
| 1669 | ||
| 1670 | ||
| 1671 | end | |
| 1672 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 1673 | SetTween(MSH,{Scale=ENDSIZE},TweenNameType,TweenInOutType,TIME/60)
| |
| 1674 | if TYPE == "Wave" then | |
| 1675 | ||
| 1676 | SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},TweenNameType,TweenInOutType,TIME/60)
| |
| 1677 | end | |
| 1678 | for LOOP = 1, TIME+1 do | |
| 1679 | wait(.05) | |
| 1680 | ||
| 1681 | --SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0)
| |
| 1682 | ||
| 1683 | ||
| 1684 | if TYPE == "Block" then | |
| 1685 | ||
| 1686 | -- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
| |
| 1687 | else | |
| 1688 | ||
| 1689 | -- SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
| |
| 1690 | ||
| 1691 | end | |
| 1692 | if MOVEDIRECTION ~= nil then | |
| 1693 | local ORI = EFFECT.Orientation | |
| 1694 | ||
| 1695 | -- SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0)
| |
| 1696 | -- SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0)
| |
| 1697 | ||
| 1698 | ||
| 1699 | end | |
| 1700 | end | |
| 1701 | game:GetService("Debris"):AddItem(EFFECT, 15)
| |
| 1702 | coroutine.resume(coroutine.create(function() | |
| 1703 | if PLAYSSOUND == false then | |
| 1704 | EFFECT:remove() | |
| 1705 | else | |
| 1706 | SOUND.Stopped:Connect(function() | |
| 1707 | EFFECT:remove() | |
| 1708 | end) | |
| 1709 | end | |
| 1710 | end)) | |
| 1711 | else | |
| 1712 | coroutine.resume(coroutine.create(function() | |
| 1713 | if PLAYSSOUND == false then | |
| 1714 | EFFECT:remove() | |
| 1715 | else | |
| 1716 | repeat wait() until SOUND.Playing == false | |
| 1717 | EFFECT:remove() | |
| 1718 | end | |
| 1719 | end)) | |
| 1720 | end | |
| 1721 | end)) | |
| 1722 | end | |
| 1723 | ||
| 1724 | ||
| 1725 | ||
| 1726 | ||
| 1727 | ||
| 1728 | ||
| 1729 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 1730 | ||
| 1731 | if hit.Parent == nil then | |
| 1732 | return | |
| 1733 | end | |
| 1734 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 1735 | for _,v in pairs(hit.Parent:children()) do | |
| 1736 | if v:IsA("Humanoid") then
| |
| 1737 | ||
| 1738 | h = v | |
| 1739 | ||
| 1740 | end | |
| 1741 | ||
| 1742 | end | |
| 1743 | ||
| 1744 | --gg | |
| 1745 | ||
| 1746 | --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 1747 | coroutine.resume(coroutine.create(function() | |
| 1748 | if h.Health >9999999 and minim <9999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
| |
| 1749 | ||
| 1750 | ||
| 1751 | local FATag = Instance.new("Model",h.Parent)
| |
| 1752 | ||
| 1753 | FATag.Name = "Fly away" | |
| 1754 | game:GetService("Debris"):AddItem(FATag, 2.5)
| |
| 1755 | ||
| 1756 | ||
| 1757 | for _,v in pairs(h.Parent:children()) do | |
| 1758 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1759 | v.Anchored=true | |
| 1760 | end | |
| 1761 | end | |
| 1762 | ||
| 1763 | wait(.25) | |
| 1764 | ||
| 1765 | if h.Parent:FindFirstChildOfClass("Body Colors")then
| |
| 1766 | h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
| |
| 1767 | end | |
| 1768 | ||
| 1769 | ||
| 1770 | local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
| |
| 1771 | ||
| 1772 | coroutine.resume(coroutine.create(function() | |
| 1773 | ||
| 1774 | ||
| 1775 | local YourGone = Instance.new("Part")
| |
| 1776 | YourGone.Reflectance = 0 | |
| 1777 | YourGone.Transparency = 1 | |
| 1778 | YourGone.CanCollide = false | |
| 1779 | YourGone.Locked = true | |
| 1780 | YourGone.Anchored=true | |
| 1781 | YourGone.BrickColor = BrickColor.new("Really blue")
| |
| 1782 | YourGone.Name = "YourGone" | |
| 1783 | YourGone.Size = Vector3.new() | |
| 1784 | YourGone.Material = "SmoothPlastic" | |
| 1785 | YourGone:BreakJoints() | |
| 1786 | YourGone.Parent = FoundTorso | |
| 1787 | YourGone.CFrame = FoundTorso.CFrame | |
| 1788 | ||
| 1789 | local NewParticle = Instance.new("ParticleEmitter")
| |
| 1790 | NewParticle.Parent = YourGone | |
| 1791 | NewParticle.Acceleration = Vector3.new(0,0,0) | |
| 1792 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
| |
| 1793 | NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0)) | |
| 1794 | NewParticle.Lifetime = NumberRange.new(0.55,0.95) | |
| 1795 | NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
| |
| 1796 | NewParticle.Speed = NumberRange.new(0,0.0) | |
| 1797 | NewParticle.ZOffset = 2 | |
| 1798 | NewParticle.Texture = "rbxassetid://243660364" | |
| 1799 | NewParticle.RotSpeed = NumberRange.new(-0,0) | |
| 1800 | NewParticle.Rotation = NumberRange.new(-180,180) | |
| 1801 | NewParticle.Enabled = false | |
| 1802 | game:GetService("Debris"):AddItem(YourGone, 3)
| |
| 1803 | for i = 0,2,1 do | |
| 1804 | NewParticle:Emit(1) | |
| 1805 | so("1448044156", FoundTorso,2, 1)
| |
| 1806 | h.Parent:BreakJoints() | |
| 1807 | YourGone.CFrame = FoundTorso.CFrame | |
| 1808 | for _,v in pairs(h.Parent:children()) do | |
| 1809 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1810 | v.Anchored=false | |
| 1811 | -- v.Material = "Neon" | |
| 1812 | --v.BrickColor = BrickColor.new("Really red")
| |
| 1813 | if v:FindFirstChildOfClass("SpecialMesh")then
| |
| 1814 | --v:Destroy() | |
| 1815 | end | |
| 1816 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
| |
| 1817 | -- v:Destroy() | |
| 1818 | end | |
| 1819 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
| |
| 1820 | ||
| 1821 | vp.Parent = v | |
| 1822 | game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
| |
| 1823 | ||
| 1824 | ||
| 1825 | end | |
| 1826 | ||
| 1827 | ||
| 1828 | ||
| 1829 | end | |
| 1830 | ||
| 1831 | ||
| 1832 | ||
| 1833 | wait(.2) | |
| 1834 | end | |
| 1835 | wait(.1) | |
| 1836 | NewParticle:Emit(3) | |
| 1837 | so("1448044156", FoundTorso,2, .8)
| |
| 1838 | h.Parent:BreakJoints() | |
| 1839 | YourGone.CFrame = FoundTorso.CFrame | |
| 1840 | for _,v in pairs(h.Parent:children()) do | |
| 1841 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1842 | v.Anchored=false | |
| 1843 | -- v.Material = "Neon" | |
| 1844 | --v.BrickColor = BrickColor.new("Really red")
| |
| 1845 | if v:FindFirstChildOfClass("SpecialMesh")then
| |
| 1846 | --v:Destroy() | |
| 1847 | end | |
| 1848 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
| |
| 1849 | -- v:Destroy() | |
| 1850 | end | |
| 1851 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
| |
| 1852 | ||
| 1853 | vp.Parent = v | |
| 1854 | game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
| |
| 1855 | ||
| 1856 | ||
| 1857 | end | |
| 1858 | ||
| 1859 | ||
| 1860 | ||
| 1861 | end | |
| 1862 | ||
| 1863 | ||
| 1864 | ||
| 1865 | ||
| 1866 | end)) | |
| 1867 | ||
| 1868 | ||
| 1869 | ||
| 1870 | ||
| 1871 | wait(.1) | |
| 1872 | ||
| 1873 | ||
| 1874 | ||
| 1875 | ||
| 1876 | ||
| 1877 | ||
| 1878 | ||
| 1879 | end | |
| 1880 | ||
| 1881 | ||
| 1882 | end)) | |
| 1883 | if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 1884 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 1885 | return | |
| 1886 | end | |
| 1887 | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").basstracker1970, Parent = h})
| |
| 1888 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1889 | if HitSound ~= nil and HitPitch ~= nil then | |
| 1890 | so(HitSound, hit, 1, HitPitch) | |
| 1891 | end | |
| 1892 | local Damage = math.random(minim, maxim) | |
| 1893 | local blocked = false | |
| 1894 | local block = hit.Parent:findFirstChild("Block")
| |
| 1895 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 1896 | blocked = true | |
| 1897 | block.Value = block.Value - 1 | |
| 1898 | print(block.Value) | |
| 1899 | end | |
| 1900 | lockon(h.Parent) | |
| 1901 | if blocked == false then | |
| 1902 | h.Health = h.Health - Damage | |
| 1903 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 2.5, Color3.new(0,0,0)) | |
| 1904 | else | |
| 1905 | h.Health = h.Health - Damage / 2 | |
| 1906 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 2.5, Color3.new(0,0,0)) | |
| 1907 | ||
| 1908 | end | |
| 1909 | ||
| 1910 | if Type == "Knockdown" then | |
| 1911 | local hum = h | |
| 1912 | ||
| 1913 | hum.PlatformStand = true | |
| 1914 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1915 | ||
| 1916 | wait(.2) | |
| 1917 | HHumanoid.PlatformStand = false | |
| 1918 | end | |
| 1919 | ), hum) | |
| 1920 | ||
| 1921 | ||
| 1922 | ||
| 1923 | local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
| |
| 1924 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1925 | local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,FoundTorso.Position).lookVector * knockback, Parent = hit})
| |
| 1926 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
| |
| 1927 | game:GetService("Debris"):AddItem(bodvol, .2)
| |
| 1928 | game:GetService("Debris"):AddItem(rl, 0.2)
| |
| 1929 | ||
| 1930 | ||
| 1931 | ||
| 1932 | elseif Type == "Knockdown2" then | |
| 1933 | local hum = h | |
| 1934 | ||
| 1935 | hum.PlatformStand = true | |
| 1936 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1937 | ||
| 1938 | ||
| 1939 | Combo = 1 wait(.2) | |
| 1940 | HHumanoid.PlatformStand = false | |
| 1941 | end | |
| 1942 | ), hum) | |
| 1943 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1944 | local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
| |
| 1945 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
| |
| 1946 | game:GetService("Debris"):AddItem(bodvol, 0.2)
| |
| 1947 | game:GetService("Debris"):AddItem(rl, 0.2)
| |
| 1948 | ||
| 1949 | ||
| 1950 | ||
| 1951 | ||
| 1952 | ||
| 1953 | ||
| 1954 | local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
| |
| 1955 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
| |
| 1956 | ||
| 1957 | elseif Type == "Normal" then | |
| 1958 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
| |
| 1959 | if knockback > 0 then | |
| 1960 | ||
| 1961 | local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 1962 | vp.Parent = HTorso | |
| 1963 | end | |
| 1964 | game:GetService("Debris"):AddItem(vp, 0.25)
| |
| 1965 | ||
| 1966 | ||
| 1967 | ||
| 1968 | ||
| 1969 | ||
| 1970 | ||
| 1971 | ||
| 1972 | ||
| 1973 | ||
| 1974 | ||
| 1975 | ||
| 1976 | ||
| 1977 | ||
| 1978 | elseif Type== "Instakill" then | |
| 1979 | coroutine.resume(coroutine.create(function() | |
| 1980 | if (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
| |
| 1981 | ||
| 1982 | ||
| 1983 | local FATag = Instance.new("Model",h.Parent)
| |
| 1984 | ||
| 1985 | FATag.Name = "Fly away" | |
| 1986 | game:GetService("Debris"):AddItem(FATag, 2.5)
| |
| 1987 | ||
| 1988 | ||
| 1989 | for _,v in pairs(h.Parent:children()) do | |
| 1990 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1991 | v.Anchored=true | |
| 1992 | end | |
| 1993 | end | |
| 1994 | ||
| 1995 | wait(.25) | |
| 1996 | ||
| 1997 | if h.Parent:FindFirstChildOfClass("Body Colors")then
| |
| 1998 | h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
| |
| 1999 | end | |
| 2000 | ||
| 2001 | ||
| 2002 | local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
| |
| 2003 | ||
| 2004 | coroutine.resume(coroutine.create(function() | |
| 2005 | ||
| 2006 | ||
| 2007 | local YourGone = Instance.new("Part")
| |
| 2008 | YourGone.Reflectance = 0 | |
| 2009 | YourGone.Transparency = 1 | |
| 2010 | YourGone.CanCollide = false | |
| 2011 | YourGone.Locked = true | |
| 2012 | YourGone.Anchored=true | |
| 2013 | YourGone.BrickColor = BrickColor.new("Really blue")
| |
| 2014 | YourGone.Name = "YourGone" | |
| 2015 | YourGone.Size = Vector3.new() | |
| 2016 | YourGone.Material = "SmoothPlastic" | |
| 2017 | YourGone:BreakJoints() | |
| 2018 | YourGone.Parent = FoundTorso | |
| 2019 | YourGone.CFrame = FoundTorso.CFrame | |
| 2020 | ||
| 2021 | local NewParticle = Instance.new("ParticleEmitter")
| |
| 2022 | NewParticle.Parent = YourGone | |
| 2023 | NewParticle.Acceleration = Vector3.new(0,0,0) | |
| 2024 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
| |
| 2025 | NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0)) | |
| 2026 | NewParticle.Lifetime = NumberRange.new(0.55,0.95) | |
| 2027 | NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
| |
| 2028 | NewParticle.Speed = NumberRange.new(0,0.0) | |
| 2029 | NewParticle.ZOffset = 2 | |
| 2030 | NewParticle.Texture = "rbxassetid://243660364" | |
| 2031 | NewParticle.RotSpeed = NumberRange.new(-0,0) | |
| 2032 | NewParticle.Rotation = NumberRange.new(-180,180) | |
| 2033 | NewParticle.Enabled = false | |
| 2034 | game:GetService("Debris"):AddItem(YourGone, 3)
| |
| 2035 | for i = 0,2,1 do | |
| 2036 | NewParticle:Emit(1) | |
| 2037 | so("1448044156", FoundTorso,2, 1)
| |
| 2038 | h.Parent:BreakJoints() | |
| 2039 | YourGone.CFrame = FoundTorso.CFrame | |
| 2040 | for _,v in pairs(h.Parent:children()) do | |
| 2041 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 2042 | v.Anchored=false | |
| 2043 | -- v.Material = "Neon" | |
| 2044 | --v.BrickColor = BrickColor.new("Really red")
| |
| 2045 | if v:FindFirstChildOfClass("SpecialMesh")then
| |
| 2046 | --v:Destroy() | |
| 2047 | end | |
| 2048 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
| |
| 2049 | -- v:Destroy() | |
| 2050 | end | |
| 2051 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
| |
| 2052 | ||
| 2053 | vp.Parent = v | |
| 2054 | game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
| |
| 2055 | ||
| 2056 | ||
| 2057 | end | |
| 2058 | ||
| 2059 | ||
| 2060 | ||
| 2061 | end | |
| 2062 | ||
| 2063 | ||
| 2064 | ||
| 2065 | wait(.2) | |
| 2066 | end | |
| 2067 | wait(.1) | |
| 2068 | NewParticle:Emit(3) | |
| 2069 | so("1448044156", FoundTorso,2, .8)
| |
| 2070 | h.Parent:BreakJoints() | |
| 2071 | YourGone.CFrame = FoundTorso.CFrame | |
| 2072 | for _,v in pairs(h.Parent:children()) do | |
| 2073 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 2074 | v.Anchored=false | |
| 2075 | -- v.Material = "Neon" | |
| 2076 | --v.BrickColor = BrickColor.new("Really red")
| |
| 2077 | if v:FindFirstChildOfClass("SpecialMesh")then
| |
| 2078 | --v:Destroy() | |
| 2079 | end | |
| 2080 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
| |
| 2081 | -- v:Destroy() | |
| 2082 | end | |
| 2083 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
| |
| 2084 | ||
| 2085 | vp.Parent = v | |
| 2086 | game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
| |
| 2087 | ||
| 2088 | ||
| 2089 | end | |
| 2090 | ||
| 2091 | ||
| 2092 | ||
| 2093 | end | |
| 2094 | ||
| 2095 | ||
| 2096 | ||
| 2097 | ||
| 2098 | end)) | |
| 2099 | ||
| 2100 | ||
| 2101 | ||
| 2102 | ||
| 2103 | wait(.1) | |
| 2104 | ||
| 2105 | ||
| 2106 | ||
| 2107 | ||
| 2108 | ||
| 2109 | ||
| 2110 | ||
| 2111 | end | |
| 2112 | ||
| 2113 | ||
| 2114 | end)) | |
| 2115 | ||
| 2116 | ||
| 2117 | ||
| 2118 | ||
| 2119 | elseif Type == "HPSteal" then | |
| 2120 | Humanoid.Health = Humanoid.Health + Damage | |
| 2121 | local hum = h | |
| 2122 | ||
| 2123 | hum.PlatformStand = true | |
| 2124 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 2125 | ||
| 2126 | ||
| 2127 | Combo = 1 wait(.2) | |
| 2128 | HHumanoid.PlatformStand = false | |
| 2129 | end | |
| 2130 | ), hum) | |
| 2131 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 2132 | local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
| |
| 2133 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
| |
| 2134 | game:GetService("Debris"):AddItem(bodvol, 0.2)
| |
| 2135 | game:GetService("Debris"):AddItem(rl, 0.2)
| |
| 2136 | ||
| 2137 | ||
| 2138 | ||
| 2139 | ||
| 2140 | ||
| 2141 | ||
| 2142 | local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
| |
| 2143 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
| |
| 2144 | ||
| 2145 | ||
| 2146 | elseif Type == "Impale" then | |
| 2147 | ||
| 2148 | ||
| 2149 | ||
| 2150 | ||
| 2151 | ||
| 2152 | ||
| 2153 | ||
| 2154 | ||
| 2155 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
| |
| 2156 | hit.Parent.Humanoid.PlatformStand = true | |
| 2157 | ||
| 2158 | ||
| 2159 | wait(1) | |
| 2160 | hit.Parent.Humanoid.PlatformStand = false | |
| 2161 | elseif Type == "IgnoreType" then | |
| 2162 | ||
| 2163 | ||
| 2164 | ||
| 2165 | ||
| 2166 | ||
| 2167 | elseif Type == "Up" then | |
| 2168 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
| |
| 2169 | game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
| |
| 2170 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
| |
| 2171 | game:GetService("Debris"):AddItem(bodyVelocity, .1)
| |
| 2172 | ||
| 2173 | ||
| 2174 | ||
| 2175 | ||
| 2176 | ||
| 2177 | ||
| 2178 | ||
| 2179 | elseif Type == "Snare" then | |
| 2180 | local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
| |
| 2181 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 2182 | ||
| 2183 | ||
| 2184 | ||
| 2185 | elseif Type == "Freeze2" then | |
| 2186 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
| |
| 2187 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
| |
| 2188 | hit.Parent.Torso.Anchored = true | |
| 2189 | coroutine.resume(coroutine.create(function(Part) | |
| 2190 | ||
| 2191 | wait(1.5) | |
| 2192 | Part.Anchored = false | |
| 2193 | end | |
| 2194 | ), hit.Parent.Torso) | |
| 2195 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 2196 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 2197 | end | |
| 2198 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
| |
| 2199 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 2200 | c = Instance.new("ObjectValue")
| |
| 2201 | c.Name = "creator" | |
| 2202 | c.Value = Player | |
| 2203 | c.Parent = h | |
| 2204 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 2205 | end | |
| 2206 | end | |
| 2207 | ||
| 2208 | ||
| 2209 | ||
| 2210 | ShowDamage = function(Pos, Text, Time, Color) | |
| 2211 | ||
| 2212 | local Rate = 0.033333333333333 | |
| 2213 | if not Pos then | |
| 2214 | local Pos = Vector3.new(0, 0, 0) | |
| 2215 | end | |
| 2216 | local Text = Text or "" | |
| 2217 | local Time = Time or 2 | |
| 2218 | if not Color then | |
| 2219 | local Color = Color3.new(1, 0, 1) | |
| 2220 | end | |
| 2221 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 2222 | EffectPart.Anchored = true | |
| 2223 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(2, 0, 2, 0), Adornee = EffectPart, Parent = EffectPart})
| |
| 2224 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = "DMG: "..Text.."", TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
| |
| 2225 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 2226 | EffectPart.Parent = game:GetService("Workspace")
| |
| 2227 | delay(0, function() | |
| 2228 | ||
| 2229 | local Frames = Time / Rate | |
| 2230 | ||
| 2231 | ||
| 2232 | ||
| 2233 | print(Frames) | |
| 2234 | TextLabel.TextTransparency=0 | |
| 2235 | EffectPart.CFrame=CFrame.new(Pos) | |
| 2236 | wait() | |
| 2237 | SetTween(TextLabel,{TextTransparency=1},"Quad","In",Frames/60)
| |
| 2238 | SetTween(TextLabel,{Rotation=math.random(-25,25)},"Elastic","InOut",Frames/60)
| |
| 2239 | SetTween(TextLabel,{TextColor3=Color3.new(.15,0,.5)},"Elastic","InOut",Frames/60)
| |
| 2240 | ||
| 2241 | SetTween(EffectPart,{CFrame = CFrame.new(Pos) + Vector3.new(math.random(-5,5), math.random(1,5), math.random(-5,5))},"Linear","InOut",Frames/60)
| |
| 2242 | ||
| 2243 | ||
| 2244 | wait(Frames/60) | |
| 2245 | ||
| 2246 | if EffectPart and EffectPart.Parent then | |
| 2247 | EffectPart:Destroy() | |
| 2248 | end | |
| 2249 | end | |
| 2250 | ) | |
| 2251 | end | |
| 2252 | ||
| 2253 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2) | |
| 2254 | ||
| 2255 | ||
| 2256 | ||
| 2257 | ||
| 2258 | local Type="" | |
| 2259 | ||
| 2260 | ||
| 2261 | ||
| 2262 | ||
| 2263 | if mememode == true then | |
| 2264 | ||
| 2265 | Type= "Instakill" | |
| 2266 | ||
| 2267 | else | |
| 2268 | Type=Type2 | |
| 2269 | end | |
| 2270 | if Type2 == "NormalKnockdown" then | |
| 2271 | Type= "Knockdown" | |
| 2272 | end | |
| 2273 | ||
| 2274 | for _,c in pairs(workspace:children()) do | |
| 2275 | ||
| 2276 | ||
| 2277 | ||
| 2278 | ||
| 2279 | ||
| 2280 | local hum = c:FindFirstChild("Humanoid")
| |
| 2281 | for _,v in pairs(c:children()) do | |
| 2282 | if v:IsA("Humanoid") then
| |
| 2283 | hum = v | |
| 2284 | end | |
| 2285 | end | |
| 2286 | ||
| 2287 | ||
| 2288 | ||
| 2289 | ||
| 2290 | if hum ~= nil then | |
| 2291 | local head = c:findFirstChild("Head")
| |
| 2292 | if head ~= nil then | |
| 2293 | local targ = head.Position - Part.Position | |
| 2294 | local mag = targ.magnitude | |
| 2295 | if mag <= magni and c.Name ~= Player.Name then | |
| 2296 | Damagefunc(Part, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2) | |
| 2297 | end | |
| 2298 | end | |
| 2299 | end | |
| 2300 | end | |
| 2301 | end | |
| 2302 | ||
| 2303 | ||
| 2304 | function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type) | |
| 2305 | local DGP = Instance.new("Part")
| |
| 2306 | ||
| 2307 | DGP.Parent = Character | |
| 2308 | DGP.Size = Vector3.new(0.05, 0.05, 0.05) | |
| 2309 | DGP.Transparency = 1 | |
| 2310 | DGP.CanCollide = false | |
| 2311 | DGP.Anchored = true | |
| 2312 | RemoveOutlines(DGP) | |
| 2313 | DGP.Position=DGP.Position + Vector3.new(0,-.1,0) | |
| 2314 | DGP.CFrame = HTCF | |
| 2315 | ||
| 2316 | coroutine.resume(coroutine.create(function() | |
| 2317 | MagniDamage(DGP, magni, mindam, maxdam, knock, Type) | |
| 2318 | end)) | |
| 2319 | game:GetService("Debris"):AddItem(DGP, .05)
| |
| 2320 | ||
| 2321 | ||
| 2322 | DGP.Archivable = false | |
| 2323 | end | |
| 2324 | ||
| 2325 | ||
| 2326 | ||
| 2327 | ||
| 2328 | ------------------ | |
| 2329 | --[End of Sword]-- | |
| 2330 | ------------------ | |
| 2331 | ||
| 2332 | --------------- | |
| 2333 | --[Particles]-- | |
| 2334 | --------------- | |
| 2335 | ||
| 2336 | ||
| 2337 | local Particle2_1 = Create("ParticleEmitter"){
| |
| 2338 | Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (170/255, 255/255, 255/255)), | |
| 2339 | Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.75,.4),NumberSequenceKeypoint.new(1,1)}),
| |
| 2340 | Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,.0)}),
| |
| 2341 | Texture = "rbxassetid://241922778", | |
| 2342 | Lifetime = NumberRange.new(0.55,0.95), | |
| 2343 | Rate = 100, | |
| 2344 | VelocitySpread = 180, | |
| 2345 | Rotation = NumberRange.new(0), | |
| 2346 | RotSpeed = NumberRange.new(-200,200), | |
| 2347 | Speed = NumberRange.new(8.0), | |
| 2348 | LightEmission = 1, | |
| 2349 | LockedToPart = false, | |
| 2350 | Acceleration = Vector3.new(0, 0, 0), | |
| 2351 | EmissionDirection = "Top", | |
| 2352 | Drag = 4, | |
| 2353 | Enabled = false | |
| 2354 | } | |
| 2355 | ||
| 2356 | ||
| 2357 | local BEGONE_Particle = Create("ParticleEmitter"){
| |
| 2358 | Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (1, 1, 1)), | |
| 2359 | Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,1)}),
| |
| 2360 | Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.15,1.5),NumberSequenceKeypoint.new(.75,1.5),NumberSequenceKeypoint.new(1,0)}),
| |
| 2361 | Texture = "rbxassetid://936193661", | |
| 2362 | Lifetime = NumberRange.new(1.5), | |
| 2363 | Rate = 100, | |
| 2364 | VelocitySpread = 0, | |
| 2365 | Rotation = NumberRange.new(0), | |
| 2366 | RotSpeed = NumberRange.new(-10,10), | |
| 2367 | Speed = NumberRange.new(0), | |
| 2368 | LightEmission = .25, | |
| 2369 | LockedToPart = true, | |
| 2370 | Acceleration = Vector3.new(0, -0, 0), | |
| 2371 | EmissionDirection = "Top", | |
| 2372 | Drag = 4, | |
| 2373 | ZOffset = 1, | |
| 2374 | Enabled = false | |
| 2375 | } | |
| 2376 | ||
| 2377 | ||
| 2378 | ||
| 2379 | ||
| 2380 | ||
| 2381 | ||
| 2382 | ||
| 2383 | ||
| 2384 | ||
| 2385 | ||
| 2386 | local VoidEmitter = Create("ParticleEmitter"){
| |
| 2387 | Speed = NumberRange.new(1, 1), | |
| 2388 | Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.699,Color3.new(0.00998336, 0.00998336, 0.00998336)),ColorSequenceKeypoint.new(1,Color3.new(0.45098, 0, 1))}),
| |
| 2389 | LightInfluence = 1, | |
| 2390 | Texture = "rbxassetid://258128463", | |
| 2391 | Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.5,0.5),NumberSequenceKeypoint.new(1,1)}),
| |
| 2392 | ZOffset = 2, | |
| 2393 | Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.7500001192093),NumberSequenceKeypoint.new(0.7500001192093,0.74999988079071),NumberSequenceKeypoint.new(1,0.68749964237213)}),
| |
| 2394 | Acceleration = Vector3.new(0, 0.25, 0), | |
| 2395 | Drag = 2, | |
| 2396 | Lifetime = NumberRange.new(1, 2), | |
| 2397 | LockedToPart = false, | |
| 2398 | Rate = 50.01999664307, | |
| 2399 | RotSpeed = NumberRange.new(-100, 100), | |
| 2400 | SpreadAngle = Vector2.new(360, 360), | |
| 2401 | VelocitySpread = 360, | |
| 2402 | Enabled = false | |
| 2403 | } | |
| 2404 | ||
| 2405 | ||
| 2406 | ||
| 2407 | ||
| 2408 | ||
| 2409 | ||
| 2410 | ---------------------- | |
| 2411 | --[End Of Particles]-- | |
| 2412 | ---------------------- | |
| 2413 | ||
| 2414 | ||
| 2415 | ||
| 2416 | ||
| 2417 | ----------------- | |
| 2418 | ||
| 2419 | function lockon_OnOff () | |
| 2420 | coroutine.resume(coroutine.create(function() | |
| 2421 | ||
| 2422 | local NewParticleH = Instance.new("Attachment",eye)
| |
| 2423 | NewParticleH.Position = Vector3.new(0,0,.25) | |
| 2424 | coroutine.resume(coroutine.create(function() | |
| 2425 | local CrystalMainColor = Color3.new(0,1,0) | |
| 2426 | ||
| 2427 | ||
| 2428 | local NewParticle = Particle2_1:Clone() | |
| 2429 | NewParticle.Parent = NewParticleH | |
| 2430 | NewParticle.Enabled = true | |
| 2431 | NewParticle.Texture = "rbxassetid://68942583" | |
| 2432 | NewParticle.Acceleration = Vector3.new(0,0,0) | |
| 2433 | NewParticle.Speed = NumberRange.new(0) | |
| 2434 | NewParticle.LockedToPart = true | |
| 2435 | NewParticle.ZOffset = .25 | |
| 2436 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2.5),NumberSequenceKeypoint.new(1,0)})
| |
| 2437 | NewParticle.Rate = 50 | |
| 2438 | NewParticle.Color = ColorSequence.new(CrystalMainColor, CrystalMainColor) | |
| 2439 | NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,.9)})
| |
| 2440 | NewParticle.Name = "XEF" | |
| 2441 | ||
| 2442 | ||
| 2443 | end)) | |
| 2444 | ||
| 2445 | ||
| 2446 | while ZT == true do | |
| 2447 | ||
| 2448 | ||
| 2449 | ||
| 2450 | SetTween(imgl,{Rotation=imgl.Rotation+25.5},"Elastic","Out",3)
| |
| 2451 | if ZTfade==true then | |
| 2452 | SetTween(imgl,{ImageTransparency=.7},"Elastic","Out",3)
| |
| 2453 | SetTween(crosshair,{Size = UDim2.new(10,0,10,0)},"Elastic","Out",1.5)
| |
| 2454 | end | |
| 2455 | ||
| 2456 | ||
| 2457 | wait(1.5) | |
| 2458 | if ZTfade==true then | |
| 2459 | SetTween(imgl,{ImageTransparency=0},"Linear","InOut",0)
| |
| 2460 | SetTween(crosshair,{Size = UDim2.new(11,0,11,0)},"Elastic","InOut",0)
| |
| 2461 | end | |
| 2462 | wait() | |
| 2463 | end | |
| 2464 | ||
| 2465 | crosshair.Adornee = nil | |
| 2466 | crosshair.Enabled = false | |
| 2467 | NewParticleH:Destroy() | |
| 2468 | ||
| 2469 | end)) | |
| 2470 | end | |
| 2471 | ||
| 2472 | function lockon (targetted) | |
| 2473 | if ZT == true then | |
| 2474 | ||
| 2475 | coroutine.resume(coroutine.create(function() | |
| 2476 | crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
| |
| 2477 | crosshair.Enabled = true | |
| 2478 | ||
| 2479 | ZTfade = false | |
| 2480 | SetTween(imgl,{ImageTransparency=1},"Linear","InOut",0)
| |
| 2481 | ||
| 2482 | SetTween(crosshair,{Size = UDim2.new(40,0,40,0)},"Linear","InOut",0)
| |
| 2483 | ||
| 2484 | wait() | |
| 2485 | ||
| 2486 | SetTween(imgl,{ImageTransparency=.7},"Bounce","Out",2)
| |
| 2487 | ||
| 2488 | SetTween(crosshair,{Size = UDim2.new(10,0,10,0)},"Elastic","InOut",1)
| |
| 2489 | wait(1) | |
| 2490 | ZTfade = true | |
| 2491 | end)) | |
| 2492 | end | |
| 2493 | end | |
| 2494 | ||
| 2495 | ||
| 2496 | ||
| 2497 | ||
| 2498 | ||
| 2499 | ||
| 2500 | ----------------- | |
| 2501 | ||
| 2502 | ||
| 2503 | ||
| 2504 | ||
| 2505 | ||
| 2506 | --[[ | |
| 2507 | for i, v in pairs(C:GetChildren()) do | |
| 2508 | if v:IsA("Accessory")then
| |
| 2509 | v:Destroy() | |
| 2510 | end | |
| 2511 | if v:IsA("BasePart")then
| |
| 2512 | v.Transparency =1 | |
| 2513 | if v.Name == "Head" then | |
| 2514 | v:FindFirstChildOfClass("Decal"):Destroy()
| |
| 2515 | end | |
| 2516 | end | |
| 2517 | end--]] | |
| 2518 | --[[ | |
| 2519 | ||
| 2520 | ||
| 2521 | ||
| 2522 | ||
| 2523 | ||
| 2524 | ||
| 2525 | ||
| 2526 | ||
| 2527 | ||
| 2528 | ||
| 2529 | ||
| 2530 | ||
| 2531 | ||
| 2532 | local tweeningInformation = TweenInfo.new( | |
| 2533 | 0.5, | |
| 2534 | Enum.EasingStyle.Back, | |
| 2535 | Enum.EasingDirection.Out, | |
| 2536 | 0, | |
| 2537 | false, | |
| 2538 | 0 | |
| 2539 | ) | |
| 2540 | --]] | |
| 2541 | ||
| 2542 | ||
| 2543 | local RJW=weld(RJ.Parent,RJ.Part0,RJ.Part1,RJ.C0) | |
| 2544 | RJW.C1 = RJ.C1 | |
| 2545 | RJW.Name = RJ.Name | |
| 2546 | ||
| 2547 | local NeckW=weld(Neck.Parent,Neck.Part0,Neck.Part1,Neck.C0) | |
| 2548 | NeckW.C1 = Neck.C1 | |
| 2549 | NeckW.Name = Neck.Name | |
| 2550 | ||
| 2551 | ||
| 2552 | --print(WRJ.Parent.Name) | |
| 2553 | ||
| 2554 | local RW=weld(Torso,Torso,RightArm,cf(0,0,0)) | |
| 2555 | ||
| 2556 | local LW=weld(Torso,Torso,LeftArm,cf(0,0,0)) | |
| 2557 | ||
| 2558 | local RH=weld(Torso,RightArm,RightLeg,cf(0,0,0)) | |
| 2559 | ||
| 2560 | local LH=weld(Torso,LeftArm,LeftLeg,cf(0,0,0)) | |
| 2561 | ||
| 2562 | ||
| 2563 | ||
| 2564 | RW.C1 = cn(0, 0.5, 0) | |
| 2565 | LW.C1 = cn(0, 0.5, 0) | |
| 2566 | RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 2567 | LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 2568 | ||
| 2569 | ||
| 2570 | ||
| 2571 | ||
| 2572 | ||
| 2573 | ||
| 2574 | -------- | |
| 2575 | --(#Torso) | |
| 2576 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
| |
| 2577 | -------- | |
| 2578 | --(#Head) | |
| 2579 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
| |
| 2580 | -------- | |
| 2581 | --(#Right Arm) | |
| 2582 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1)
| |
| 2583 | -------- | |
| 2584 | --(#Left Arm) | |
| 2585 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1)
| |
| 2586 | -------- | |
| 2587 | --(#Right Leg) | |
| 2588 | SetTween(RH,{C0=CFrame.new(0, -0.90, 0)},"Quad","InOut",0.1)
| |
| 2589 | -------- | |
| 2590 | --(#Left Leg) | |
| 2591 | SetTween(LH,{C0=CFrame.new(0, -0.90, 0)},"Quad","InOut",0.1)
| |
| 2592 | ||
| 2593 | ||
| 2594 | ||
| 2595 | --[[ | |
| 2596 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 2597 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 2598 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(30))},"Quad","Out",0.1)
| |
| 2599 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-30))},"Quad","Out",0.1)
| |
| 2600 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 2601 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 2602 | --]] | |
| 2603 | ||
| 2604 | function Attack1() | |
| 2605 | attack = true | |
| 2606 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-2,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",1)
| |
| 2607 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,-2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",1)
| |
| 2608 | SetTween(RW,{C0=CFrame.new(2.5 , 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(30))},"Quad","InOut",1)
| |
| 2609 | SetTween(LW,{C0=CFrame.new(-2.5, 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(-30))},"Quad","InOut",1)
| |
| 2610 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(-90))},"Quad","InOut",1)
| |
| 2611 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(90))},"Quad","InOut",1)
| |
| 2612 | ||
| 2613 | ||
| 2614 | wait(1) | |
| 2615 | ||
| 2616 | WACKYEFFECT({Time = 10, EffectType = "Slash", Size = (VT(60,0,60)), Size2 = (VT(0,0,0)), Transparency = 1, Transparency2 = .5, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,15)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 454850461, SoundPitch = 1, SoundVolume = 8})
| |
| 2617 | ||
| 2618 | for i = 10, 60,10 do | |
| 2619 | WACKYEFFECT({Time = 10+i, EffectType = "Slash", Size = (VT(60,0,60)), Size2 = (VT(0,0,0)), Transparency = 1, Transparency2 = .5, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,15)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 2620 | end | |
| 2621 | for i = 0,10 do wait() wait() wait() | |
| 2622 | local AREA = RootPart.CFrame * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(2,20)) | |
| 2623 | local TIMER = MRANDOM(30,50)/4 | |
| 2624 | WACKYEFFECT({Time = TIMER, EffectType = "Sphere", Size = VT(5,0,5)/1.1, Size2 = VT(0,15,0)/1.1, Transparency = .9, Transparency2 = 0, CFrame = AREA, MoveToPos = AREA.p+VT(0,MRANDOM(35,60),0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.5,0,1), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
| |
| 2625 | WACKYEFFECT({Time = TIMER, EffectType = "Sphere", Size = VT(5,0,5), Size2 = VT(0,15,0), Transparency = 0.9, Transparency2 = 0.5, CFrame = AREA, MoveToPos = AREA.p+VT(0,MRANDOM(35,60),0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
| |
| 2626 | ||
| 2627 | end | |
| 2628 | if mememode == false then | |
| 2629 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,3)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 2630 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(-20),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 2631 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -3.5)*angles(math.rad(-70),math.rad(0),math.rad(30))},"Quad","InOut",.4)
| |
| 2632 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -3.5)*angles(math.rad(-70),math.rad(0),math.rad(-30))},"Quad","InOut",.4)
| |
| 2633 | SetTween(RH,{C0=CFrame.new(0, -3, -3)*angles(math.rad(50),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 2634 | SetTween(LH,{C0=CFrame.new(-0, -3, -3)*angles(math.rad(50),math.rad(0),math.rad(-0))},"Quad","InOut",.4)
| |
| 2635 | ||
| 2636 | for i = 10, 30,10 do | |
| 2637 | WACKYEFFECT({Time = 20+i, EffectType = "Wave", Size = VT(5,0,5), Size2 = (VT(31,0,31)*7)/4.1, Transparency = 0.4, Transparency2 = 1, CFrame = RootPart.CFrame*cn(0,5,0) * ANGLES(RAD(MRANDOM(0,15)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 2638 | end | |
| 2639 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(600,600,600), Transparency = 0.4, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.5,0,1), SoundID = 376976397, SoundPitch = .5, SoundVolume = 7})
| |
| 2640 | WACKYEFFECT({Time = 100, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(600,600,600), Transparency = 0, Transparency2 = 1, CFrame=RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 528589382, SoundPitch = 1.5, SoundVolume = 10})
| |
| 2641 | WACKYEFFECT({Time = 120, EffectType = "Crown", Size = VT(0,0,0), Size2 = (VT(600,600,600)), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5,TweenNType="Quad",TweenOType="Out"})
| |
| 2642 | ||
| 2643 | CFMagniDamage(Head.CFrame,600,80,90,100,"Knockdown") | |
| 2644 | ||
| 2645 | ||
| 2646 | ||
| 2647 | else | |
| 2648 | ||
| 2649 | ||
| 2650 | ||
| 2651 | ||
| 2652 | ||
| 2653 | ||
| 2654 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,3)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 2655 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(-20),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 2656 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -3.5)*angles(math.rad(-70),math.rad(0),math.rad(30))},"Quad","InOut",.4)
| |
| 2657 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -3.5)*angles(math.rad(-70),math.rad(0),math.rad(-30))},"Quad","InOut",.4)
| |
| 2658 | SetTween(RH,{C0=CFrame.new(0, -3, -3)*angles(math.rad(50),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 2659 | SetTween(LH,{C0=CFrame.new(-0, -3, -3)*angles(math.rad(50),math.rad(0),math.rad(-0))},"Quad","InOut",.4)
| |
| 2660 | ||
| 2661 | ||
| 2662 | WACKYEFFECT({Time = 120*2, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1600,1600,1600), Transparency = 0.4, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.5,0,1), SoundID = 376976397, SoundPitch = .5, SoundVolume = 5})
| |
| 2663 | WACKYEFFECT({Time = 100*2, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1600,1600,1600), Transparency = 0, Transparency2 = 1, CFrame=RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 132164034, SoundPitch = 1.2, SoundVolume = 10})
| |
| 2664 | for i = 10, 60,10 do | |
| 2665 | WACKYEFFECT({Time = 20+i*2, EffectType = "Wave", Size = VT(5,0,5), Size2 = (VT(31,0,31)*7)/4.1, Transparency = 0.4, Transparency2 = 1, CFrame = RootPart.CFrame*cn(0,5,0) * ANGLES(RAD(MRANDOM(0,15)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 2666 | WACKYEFFECT({Time = 12*i, EffectType = "Crown", Size = VT(0,0,0), Size2 = (VT(1600,1600,1600)), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame , MoveToPos = nil, RotationX = 0, RotationY = math.random(-180,180), RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5,TweenNType="Quad",TweenOType="Out"})
| |
| 2667 | ||
| 2668 | CFMagniDamage(Head.CFrame,1600,80,90,100,"Knockdown") | |
| 2669 | wait(.05) | |
| 2670 | end | |
| 2671 | ||
| 2672 | ||
| 2673 | ||
| 2674 | ||
| 2675 | ||
| 2676 | ||
| 2677 | ||
| 2678 | ||
| 2679 | ||
| 2680 | ||
| 2681 | end | |
| 2682 | ||
| 2683 | wait(1) | |
| 2684 | ||
| 2685 | ||
| 2686 | ||
| 2687 | ||
| 2688 | ||
| 2689 | attack=false | |
| 2690 | end | |
| 2691 | ||
| 2692 | ||
| 2693 | function Attack2() | |
| 2694 | attack = true | |
| 2695 | ||
| 2696 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 2697 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 2698 | SetTween(RW,{C0=CFrame.new(3.5 , 2.5, -0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Back","Out",.4)
| |
| 2699 | SetTween(LW,{C0=CFrame.new(-3.5, 2.5, -0)*angles(math.rad(-0),math.rad(0),math.rad(-30))},"Quad","InOut",.4)
| |
| 2700 | SetTween(RH,{C0=CFrame.new(0, -3, -3)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 2701 | SetTween(LH,{C0=CFrame.new(-0, -3, -3)*angles(math.rad(0),math.rad(0),math.rad(-0))},"Quad","InOut",.4)
| |
| 2702 | ||
| 2703 | ||
| 2704 | ||
| 2705 | ||
| 2706 | ||
| 2707 | wait(.3) | |
| 2708 | ||
| 2709 | ||
| 2710 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-5,2)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",.2)
| |
| 2711 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(20),math.rad(40),math.rad(0))},"Quad","InOut",.2)
| |
| 2712 | SetTween(RW,{C0=CFrame.new(3.5 , -4.5, -10)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",.2)
| |
| 2713 | SetTween(LW,{C0=CFrame.new(-3.5, 2.5, 2)*angles(math.rad(-30),math.rad(0),math.rad(-30))},"Quad","InOut",.2)
| |
| 2714 | SetTween(RH,{C0=CFrame.new(0, -3, -3)*angles(math.rad(-90),math.rad(-40),math.rad(20))},"Quad","InOut",.2)
| |
| 2715 | SetTween(LH,{C0=CFrame.new(-0, -3, -3)*angles(math.rad(0),math.rad(0),math.rad(-0))},"Quad","InOut",.2)
| |
| 2716 | ||
| 2717 | ||
| 2718 | ||
| 2719 | ||
| 2720 | -- LAP.Parent = Character | |
| 2721 | wait(.1) | |
| 2722 | local portal =Instance.new("Part")
| |
| 2723 | portal.Reflectance = 0 | |
| 2724 | portal.Transparency = 1 | |
| 2725 | portal.CanCollide = false | |
| 2726 | portal.Locked = true | |
| 2727 | portal.Anchored=true | |
| 2728 | portal.BrickColor = BrickColor.new("Really blue")
| |
| 2729 | portal.Name = "portal" | |
| 2730 | portal.Size = Vector3.new() | |
| 2731 | portal.Material = "SmoothPlastic" | |
| 2732 | portal:BreakJoints() | |
| 2733 | portal.CFrame = RootPart.CFrame*cn(4,0,-17) | |
| 2734 | local Portalfloor,PortalPos = rayCast(portal.Position, CFrame.new(portal.Position, portal.Position - Vector3.new(0, 1, 0)).lookVector, 80, Character) | |
| 2735 | portal.CFrame = cn(PortalPos) | |
| 2736 | ||
| 2737 | local max = 50 | |
| 2738 | local min = 6.5 | |
| 2739 | local light = min | |
| 2740 | if mememode == true then | |
| 2741 | min = 0 | |
| 2742 | max = 100 | |
| 2743 | light = 3 | |
| 2744 | end | |
| 2745 | ||
| 2746 | coroutine.resume(coroutine.create(function() | |
| 2747 | WACKYEFFECT({Time = 120, EffectType = "Crown", Size = VT(0,0,0), Size2 = (VT(max+15,1,max+15)), Transparency = 0.9, Transparency2 = 1, CFrame = portal.CFrame , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5,TweenNType="Quad",TweenOType="Out"})
| |
| 2748 | WACKYEFFECT({Time = 240, EffectType = "Sphere", Size = VT(0,.1,0), Size2 = VT(light-.5,0.1,light-.5)*1.5, Transparency = 0, Transparency2 = 1, CFrame=portal.CFrame*cn(0,-0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 376976397, SoundPitch = 1, SoundVolume = 3,TweenNType="Back",TweenOType="Out"})
| |
| 2749 | wait(120/60) | |
| 2750 | ||
| 2751 | coroutine.resume(coroutine.create(function() | |
| 2752 | wait(.1) | |
| 2753 | for _,c in pairs(workspace:children()) do | |
| 2754 | ||
| 2755 | ||
| 2756 | ||
| 2757 | ||
| 2758 | ||
| 2759 | ||
| 2760 | ||
| 2761 | ||
| 2762 | local h = c:FindFirstChild("Humanoid")
| |
| 2763 | for _,v in pairs(c:children()) do | |
| 2764 | if v:IsA("Humanoid") then
| |
| 2765 | if v.Health > 0.0001 then | |
| 2766 | h = v else h = nil end | |
| 2767 | end | |
| 2768 | end | |
| 2769 | ||
| 2770 | local head = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
| |
| 2771 | ||
| 2772 | if h ~= nil and head ~= nil then | |
| 2773 | local targ = head.Position - portal.Position | |
| 2774 | local mag = targ.magnitude | |
| 2775 | ||
| 2776 | ||
| 2777 | if mag < max and mag > min and c ~= Character then | |
| 2778 | ||
| 2779 | print("Kill")
| |
| 2780 | coroutine.resume(coroutine.create(function() | |
| 2781 | local Shade =Instance.new("Model",Effects)
| |
| 2782 | local hed =Instance.new("Part")
| |
| 2783 | hed.Reflectance = 0 | |
| 2784 | hed.Transparency = 1 | |
| 2785 | hed.CanCollide = false | |
| 2786 | hed.Locked = true | |
| 2787 | hed.Anchored=false | |
| 2788 | hed.Color = Color3.new(0,0,0) | |
| 2789 | head.Material = "SmoothPlastic" | |
| 2790 | local sTor=hed:Clone() | |
| 2791 | sTor.Name = "Torso2" | |
| 2792 | sTor.Size = Vector3.new(2,2,1) | |
| 2793 | sTor.Material = "SmoothPlastic" | |
| 2794 | sTor:BreakJoints() | |
| 2795 | sTor.CFrame = portal.CFrame*cn(0,-10,0) | |
| 2796 | local sraor=hed:Clone() | |
| 2797 | sraor.Name = "RightArm" | |
| 2798 | sraor.Size = Vector3.new(1,2,1) | |
| 2799 | sraor.Material = "SmoothPlastic" | |
| 2800 | sraor:BreakJoints() | |
| 2801 | sraor.CFrame = portal.CFrame*cn(0,-10,0) | |
| 2802 | local slaor=sraor:Clone() | |
| 2803 | slaor.Name = "LeftArm" | |
| 2804 | local srlor=sraor:Clone() | |
| 2805 | srlor.Name = "RightLeg" | |
| 2806 | local sllor=sraor:Clone() | |
| 2807 | sllor.Name = "LeftLeg" | |
| 2808 | hed.Name = "Head2" | |
| 2809 | hed.Size = Vector3.new(1,1,1) | |
| 2810 | hed.Material = "SmoothPlastic" | |
| 2811 | hed:BreakJoints() | |
| 2812 | hed.CFrame = portal.CFrame*cn(0,-10,0) | |
| 2813 | ||
| 2814 | local Mesh =Instance.new("SpecialMesh",hed)
| |
| 2815 | ||
| 2816 | Mesh.Scale=Vector3.new(1.25,1.25,1.25) | |
| 2817 | coroutine.resume(coroutine.create(function() | |
| 2818 | local Eye = Instance.new("Part")
| |
| 2819 | Eye.Reflectance = 0 | |
| 2820 | Eye.Transparency = 0 | |
| 2821 | Eye.CanCollide = false | |
| 2822 | Eye.Locked = true | |
| 2823 | Eye.Anchored=false | |
| 2824 | Eye.BrickColor = BrickColor.new("White")
| |
| 2825 | Eye.Name = "BEGONE" | |
| 2826 | Eye.Size = Vector3.new(0.05,0.3,0.05) | |
| 2827 | Eye.Material = "Neon" | |
| 2828 | Eye:BreakJoints() | |
| 2829 | Eye.Parent = Shade | |
| 2830 | local EMesh =Instance.new("SpecialMesh",Eye)
| |
| 2831 | ||
| 2832 | EMesh.MeshType = "Sphere" | |
| 2833 | ||
| 2834 | ||
| 2835 | ||
| 2836 | ||
| 2837 | local Eye=weld(Eye,hed,Eye,cf(.18,.18,-.55)) | |
| 2838 | ||
| 2839 | end)) | |
| 2840 | coroutine.resume(coroutine.create(function() | |
| 2841 | local Eye = Instance.new("Part")
| |
| 2842 | Eye.Reflectance = 0 | |
| 2843 | Eye.Transparency = 0 | |
| 2844 | Eye.CanCollide = false | |
| 2845 | Eye.Locked = true | |
| 2846 | Eye.Anchored=false | |
| 2847 | Eye.BrickColor = BrickColor.new("White")
| |
| 2848 | Eye.Name = "BEGONE" | |
| 2849 | Eye.Size = Vector3.new(.05,.3,.05) | |
| 2850 | Eye.Material = "Neon" | |
| 2851 | Eye:BreakJoints() | |
| 2852 | Eye.Parent = Shade | |
| 2853 | ||
| 2854 | ||
| 2855 | local EMesh =Instance.new("SpecialMesh",Eye)
| |
| 2856 | ||
| 2857 | EMesh.MeshType = "Sphere" | |
| 2858 | ||
| 2859 | ||
| 2860 | local Eye=weld(Eye,hed,Eye,cf(-.18,.18,-.55)) | |
| 2861 | ||
| 2862 | end)) | |
| 2863 | ||
| 2864 | sTor.Anchored = true | |
| 2865 | hed.Parent = Shade | |
| 2866 | sTor.Parent = Shade | |
| 2867 | sraor.Parent = Shade | |
| 2868 | slaor.Parent = Shade | |
| 2869 | srlor.Parent = Shade | |
| 2870 | sllor.Parent = Shade | |
| 2871 | ||
| 2872 | ||
| 2873 | SetTween(sTor,{Transparency=0},"Quad","InOut",1)
| |
| 2874 | SetTween(hed,{Transparency=0},"Quad","InOut",1)
| |
| 2875 | SetTween(sraor,{Transparency=0},"Quad","InOut",1)
| |
| 2876 | SetTween(slaor,{Transparency=0},"Quad","InOut",1)
| |
| 2877 | SetTween(srlor,{Transparency=0},"Quad","InOut",1)
| |
| 2878 | SetTween(sllor,{Transparency=0},"Quad","InOut",1)
| |
| 2879 | ||
| 2880 | ||
| 2881 | ||
| 2882 | ||
| 2883 | ||
| 2884 | local NeckW2=MakeJoint(sTor,sTor,hed,CFrame.new(0,0,0)) | |
| 2885 | NeckW2.C1 = NeckW.C1 | |
| 2886 | ||
| 2887 | --print(WRJ.Parent.Name) | |
| 2888 | ||
| 2889 | local RW2=MakeJoint(sTor,sTor,sraor,cf(0,0,0)) | |
| 2890 | ||
| 2891 | local LW2=MakeJoint(sTor,sTor,slaor,cf(0,0,0)) | |
| 2892 | ||
| 2893 | local RH2=MakeJoint(sTor,sTor,srlor,cf(0,0,0)) | |
| 2894 | ||
| 2895 | local LH2=MakeJoint(sTor,sTor,sllor,cf(0,0,0)) | |
| 2896 | ||
| 2897 | ||
| 2898 | ||
| 2899 | RW2.C1 = cn(0, 0.5, 0) | |
| 2900 | LW2.C1 = cn(0, 0.5, 0) | |
| 2901 | RH2.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 2902 | LH2.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 2903 | ||
| 2904 | ||
| 2905 | ||
| 2906 | ||
| 2907 | head.Anchored = true | |
| 2908 | ||
| 2909 | -------- | |
| 2910 | --(#Torso) | |
| 2911 | SetTween(sTor,{CFrame=cn(head.Position.x,portal.Position.y-5,head.Position.z)},"Quad","InOut", .1)
| |
| 2912 | -------- | |
| 2913 | --(#Head) | |
| 2914 | SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
| |
| 2915 | -------- | |
| 2916 | --(#Right Arm) | |
| 2917 | SetTween(RW2,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1)
| |
| 2918 | -------- | |
| 2919 | --(#Left Arm) | |
| 2920 | SetTween(LW2,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1)
| |
| 2921 | -------- | |
| 2922 | --(#Right Leg) | |
| 2923 | SetTween(RH2,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1)
| |
| 2924 | -------- | |
| 2925 | --(#Left Leg) | |
| 2926 | SetTween(LH2,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1)
| |
| 2927 | ||
| 2928 | ||
| 2929 | wait(.1) | |
| 2930 | ||
| 2931 | ||
| 2932 | -------- | |
| 2933 | --(#Torso) | |
| 2934 | SetTween(sTor,{CFrame=head.CFrame*CFrame.new(0,0,2)},"Quad","InOut",1/2)
| |
| 2935 | -------- | |
| 2936 | --(#Head) | |
| 2937 | SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","InOut",1/2)
| |
| 2938 | -------- | |
| 2939 | --(#Right Arm) | |
| 2940 | SetTween(RW2,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",1/2)
| |
| 2941 | -------- | |
| 2942 | --(#Left Arm) | |
| 2943 | SetTween(LW2,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",1/2)
| |
| 2944 | ||
| 2945 | wait(1/2) | |
| 2946 | -------- | |
| 2947 | --(#Torso) | |
| 2948 | SetTween(sTor,{CFrame=head.CFrame*CFrame.new(0,0,1)},"Quad","InOut",1/3)
| |
| 2949 | -------- | |
| 2950 | --(#Head) | |
| 2951 | SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0))},"Quad","InOut",1/3)
| |
| 2952 | -------- | |
| 2953 | --(#Right Arm) | |
| 2954 | SetTween(RW2,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",1/3)
| |
| 2955 | -------- | |
| 2956 | --(#Left Arm) | |
| 2957 | SetTween(LW2,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",1/3)
| |
| 2958 | ||
| 2959 | wait(1/3) | |
| 2960 | -------- | |
| 2961 | local Grab=MakeJoint(sTor,sTor,head,cf(0,0,-1)) | |
| 2962 | head.Anchored = false | |
| 2963 | --(#Torso) | |
| 2964 | ||
| 2965 | -------- | |
| 2966 | --(#Head) | |
| 2967 | SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0))},"Quad","InOut",1/3)
| |
| 2968 | -------- | |
| 2969 | --(#Right Arm) | |
| 2970 | SetTween(RW2,{C0=CFrame.new(1.3 , 0.5, -.3)*angles(math.rad(90),math.rad(0),math.rad(-50))},"Quad","InOut",1/3)
| |
| 2971 | -------- | |
| 2972 | --(#Left Arm) | |
| 2973 | SetTween(LW2,{C0=CFrame.new(-1.3, 0.5, -.3)*angles(math.rad(90),math.rad(0),math.rad(50))},"Quad","InOut",1/3)
| |
| 2974 | ||
| 2975 | wait(1/3) | |
| 2976 | WACKYEFFECT({Time = 40, EffectType = "Crown", Size = VT(1,16,1), Size2 = (VT(10,0,10)), Transparency = 0.2, Transparency2 = 1, CFrame = cn(head.Position.x,portal.Position.y,head.Position.z) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 2977 | ||
| 2978 | SetTween(sTor,{CFrame=cn(head.Position.x,portal.Position.y-5,head.Position.z)},"Quad","InOut", .2)
| |
| 2979 | ||
| 2980 | wait(.2) | |
| 2981 | ||
| 2982 | Shade:Destroy() | |
| 2983 | coroutine.resume(coroutine.create(function() | |
| 2984 | c:BreakJoints() | |
| 2985 | end)) | |
| 2986 | c.Parent = nil | |
| 2987 | h:Destroy() | |
| 2988 | c:Destroy() | |
| 2989 | ||
| 2990 | ||
| 2991 | end)) | |
| 2992 | ||
| 2993 | end | |
| 2994 | end | |
| 2995 | end | |
| 2996 | end)) | |
| 2997 | --CFMagniDamage(portal.CFrame,60,10,20,0,"Normal") | |
| 2998 | ||
| 2999 | WACKYEFFECT({Time = 160, EffectType = "Sphere", Size = VT(max+15,1,max+15)*1.5, Size2 = VT(0,.05,0), Transparency = 1, Transparency2 = 0, CFrame=portal.CFrame*cn(0,-0.025,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 424195979, SoundPitch = .5, SoundVolume = 4,TweenNType="Quad",TweenOType="InOut"})
| |
| 3000 | portal:Destroy() | |
| 3001 | end)) | |
| 3002 | ||
| 3003 | ||
| 3004 | ||
| 3005 | ||
| 3006 | wait(.3) | |
| 3007 | ||
| 3008 | ||
| 3009 | ||
| 3010 | attack=false | |
| 3011 | end | |
| 3012 | ||
| 3013 | ||
| 3014 | ||
| 3015 | ||
| 3016 | --[[ | |
| 3017 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 3018 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 3019 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(30))},"Quad","Out",0.1)
| |
| 3020 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-30))},"Quad","Out",0.1)
| |
| 3021 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 3022 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 3023 | --]] | |
| 3024 | ||
| 3025 | ||
| 3026 | ||
| 3027 | function AT1() | |
| 3028 | attack = true | |
| 3029 | ||
| 3030 | ||
| 3031 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(-50),math.rad(40),math.rad(80))},"Quad","InOut",.3)
| |
| 3032 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(50),math.rad(-40),math.rad(-40))},"Quad","InOut",.3)
| |
| 3033 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(40),math.rad(-30),math.rad(-25))},"Quad","Out",.3)
| |
| 3034 | SetTween(LW,{C0=CFrame.new(-3.5, 5.5, -.0)*angles(math.rad(-78),math.rad(0),math.rad(-120))},"Quad","Out",.3)
| |
| 3035 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(50),math.rad(45),math.rad(0))},"Quad","InOut",.3)
| |
| 3036 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",.3)
| |
| 3037 | wait(.3) | |
| 3038 | so("160773067", RootPart, 1.5, math.random(120,150)/100)
| |
| 3039 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(-40))},"Quad","InOut",.15)
| |
| 3040 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(40))},"Quad","InOut",.15)
| |
| 3041 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(-0),math.rad(-50),math.rad(90))},"Quad","Out",.15)
| |
| 3042 | SetTween(LW,{C0=CFrame.new(-3.5, 2.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-30))},"Quad","Out",.15)
| |
| 3043 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.15)
| |
| 3044 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.15)
| |
| 3045 | wait(.15/2) | |
| 3046 | ||
| 3047 | CFMagniDamage(RootPart.CFrame*cn(4,0,-4),12.5,10,20,20,"HPSteal") | |
| 3048 | ||
| 3049 | wait(.15/2) | |
| 3050 | ||
| 3051 | ||
| 3052 | ||
| 3053 | ||
| 3054 | attack = false | |
| 3055 | end | |
| 3056 | ||
| 3057 | ||
| 3058 | function AT2() | |
| 3059 | attack = true | |
| 3060 | ||
| 3061 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(-50),math.rad(-40),math.rad(-80))},"Quad","InOut",.3)
| |
| 3062 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(50),math.rad(40),math.rad(40))},"Quad","InOut",.3)
| |
| 3063 | SetTween(RW,{C0=CFrame.new(3.5 , 5.5, -.0)*angles(math.rad(-78),math.rad(0),math.rad(120))},"Quad","Out",.3)
| |
| 3064 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(40),math.rad(30),math.rad(25))},"Quad","Out",.3)
| |
| 3065 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",.3)
| |
| 3066 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(50),math.rad(-45),math.rad(0))},"Quad","InOut",.3)
| |
| 3067 | wait(.3) | |
| 3068 | so("160773067", RootPart, 1.5, math.random(120,150)/100)
| |
| 3069 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(40))},"Quad","InOut",.15)
| |
| 3070 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(-40))},"Quad","InOut",.15)
| |
| 3071 | SetTween(RW,{C0=CFrame.new(3.5 , 2.5, -.0)*angles(math.rad(-0),math.rad(0),math.rad(30))},"Quad","Out",.15)
| |
| 3072 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(0),math.rad(50),math.rad(-90))},"Quad","Out",.15)
| |
| 3073 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.15)
| |
| 3074 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.15)
| |
| 3075 | wait(.15/2) | |
| 3076 | ||
| 3077 | CFMagniDamage(RootPart.CFrame*cn(-4,0,-4),12.5,10,20,50,"HPSteal") | |
| 3078 | ||
| 3079 | wait(.15/2) | |
| 3080 | ||
| 3081 | ||
| 3082 | ||
| 3083 | ||
| 3084 | attack = false | |
| 3085 | end | |
| 3086 | ||
| 3087 | function findNearestTorso(pos) | |
| 3088 | local list = game.Workspace:children() | |
| 3089 | local torso = nil | |
| 3090 | local dist = 1000 | |
| 3091 | local temp = nil | |
| 3092 | local human = nil | |
| 3093 | local temp2 = nil | |
| 3094 | for x = 1, #list do | |
| 3095 | temp2 = list[x] | |
| 3096 | if (temp2.className == "Model") and (temp2 ~= Character) then | |
| 3097 | temp = (temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso"))
| |
| 3098 | human = temp2:FindFirstChildOfClass("Humanoid")
| |
| 3099 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
| 3100 | if (temp.Position - pos).magnitude < dist then | |
| 3101 | torso = temp | |
| 3102 | dist = (temp.Position - pos).magnitude | |
| 3103 | end | |
| 3104 | end | |
| 3105 | end | |
| 3106 | end | |
| 3107 | return torso | |
| 3108 | end | |
| 3109 | ||
| 3110 | function Attack3() | |
| 3111 | attack = true | |
| 3112 | ||
| 3113 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3114 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3115 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","Out",.4)
| |
| 3116 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-0))},"Quad","Out",.4)
| |
| 3117 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3118 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3119 | wait(.05) | |
| 3120 | ||
| 3121 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3)
| |
| 3122 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3)
| |
| 3123 | SetTween(RW,{C0=CFrame.new(3.5 , 3.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(80))},"Quad","Out",.3)
| |
| 3124 | SetTween(LW,{C0=CFrame.new(-3.5, 3.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-80))},"Quad","Out",.3)
| |
| 3125 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(-90),math.rad(0))},"Quad","InOut",.3)
| |
| 3126 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(90),math.rad(-0))},"Quad","InOut",.3)
| |
| 3127 | wait(.3) | |
| 3128 | so("260435136", RootPart, 2, .8)
| |
| 3129 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3)
| |
| 3130 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,-5,2)*angles(math.rad(30),math.rad(-40),math.rad(0))},"Quad","InOut",.3)
| |
| 3131 | SetTween(RW,{C0=CFrame.new(6.0 , -2, -8)*angles(math.rad(85),math.rad(0),math.rad(-80))},"Quad","Out",.3)
| |
| 3132 | SetTween(LW,{C0=CFrame.new(-6.0, -2, -8)*angles(math.rad(90),math.rad(0),math.rad(80))},"Quad","Out",.3)
| |
| 3133 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(-90),math.rad(0))},"Quad","InOut",.3)
| |
| 3134 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(90),math.rad(-0))},"Quad","InOut",.3)
| |
| 3135 | wait(.3) | |
| 3136 | ||
| 3137 | ||
| 3138 | local TheGunHandle = Instance.new("Part")
| |
| 3139 | TheGunHandle.Reflectance = 0 | |
| 3140 | TheGunHandle.Transparency = 1 | |
| 3141 | TheGunHandle.CanCollide = false | |
| 3142 | TheGunHandle.Locked = true | |
| 3143 | TheGunHandle.Anchored=false | |
| 3144 | TheGunHandle.BrickColor = BrickColor.new("Really blue")
| |
| 3145 | TheGunHandle.Name = "BHandle" | |
| 3146 | TheGunHandle.Size = Vector3.new(2.5,1,2.5) | |
| 3147 | TheGunHandle.Material = "SmoothPlastic" | |
| 3148 | TheGunHandle:BreakJoints() | |
| 3149 | TheGunHandle.Parent = workspace | |
| 3150 | TheGunHandle.CFrame = RootPart.CFrame | |
| 3151 | ||
| 3152 | ||
| 3153 | local SWeld=weld(TheGunHandle,RootPart,TheGunHandle,cf(0,0,-9)*angles(math.rad(0),math.rad(0),math.rad(0))) | |
| 3154 | local IsHit = false | |
| 3155 | local function onTouch(HitPa) | |
| 3156 | if IsHit == false then | |
| 3157 | local c = HitPa.Parent | |
| 3158 | local h = HitPa.Parent:FindFirstChild("Humanoid")
| |
| 3159 | for _,v in pairs(HitPa.Parent:children()) do | |
| 3160 | if v:IsA("Humanoid") then
| |
| 3161 | ||
| 3162 | h = v end | |
| 3163 | ||
| 3164 | end | |
| 3165 | local head = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
| |
| 3166 | local realhead = c:FindFirstChild("Head")
| |
| 3167 | if h ~= nil and head ~= nil and realhead ~= nil then | |
| 3168 | ||
| 3169 | IsHit = true | |
| 3170 | RootPart.Anchored=true | |
| 3171 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,-5,2)*angles(math.rad(30),math.rad(40),math.rad(0))},"Quad","InOut",3)
| |
| 3172 | local SWeld=MakeJoint(head,Torso,head,cf(0,-1,-9)*angles(math.rad(180),math.rad(0),math.rad(180))) | |
| 3173 | ||
| 3174 | coroutine.resume(coroutine.create(function() | |
| 3175 | local pem = VoidEmitter:Clone() | |
| 3176 | pem.Enabled = true | |
| 3177 | pem.Parent = realhead | |
| 3178 | so("2162238854", RootPart, 2, .5)
| |
| 3179 | wait(2.9) | |
| 3180 | if mememode == false then | |
| 3181 | wait(.1) | |
| 3182 | end | |
| 3183 | pem.Rate = 0 | |
| 3184 | if mememode == true then | |
| 3185 | coroutine.resume(coroutine.create(function() | |
| 3186 | ||
| 3187 | local Dust = Instance.new("Model")
| |
| 3188 | local DustTorso = Instance.new("Part",Dust)
| |
| 3189 | local DustHead = Instance.new("Part",Dust)
| |
| 3190 | game:GetService("Debris"):AddItem(DustHead, 120)
| |
| 3191 | DustHead.Name = "Head" | |
| 3192 | DustHead.Size = Vector3.new(realhead.Size.y,realhead.Size.y,realhead.Size.y) | |
| 3193 | RemoveOutlines(DustHead) | |
| 3194 | DustHead:BreakJoints() | |
| 3195 | DustHead.CFrame = CFrame.new(0,1000,0) | |
| 3196 | DustHead.Transparency = 1 | |
| 3197 | DustTorso.Name = "Torso" | |
| 3198 | DustTorso.Size = Vector3.new(realhead.Size.y,realhead.Size.y,realhead.Size.y) | |
| 3199 | RemoveOutlines(DustTorso) | |
| 3200 | DustTorso:BreakJoints() | |
| 3201 | DustTorso.CFrame = CFrame.new(0,1000,0) | |
| 3202 | DustTorso.Transparency = 1 | |
| 3203 | Dust.Name = "DustMinion" | |
| 3204 | ||
| 3205 | ||
| 3206 | ||
| 3207 | ||
| 3208 | ||
| 3209 | ||
| 3210 | ||
| 3211 | ||
| 3212 | ||
| 3213 | ||
| 3214 | pem.Parent = DustHead | |
| 3215 | pem.Rate = 100 | |
| 3216 | ||
| 3217 | local DustWeld=weld(DustTorso,DustHead,DustTorso,cf(0,0,0)) | |
| 3218 | DustTorso.CFrame = realhead.CFrame | |
| 3219 | wait(.2) | |
| 3220 | local DustHumanoid = Instance.new("Humanoid",Dust)
| |
| 3221 | DustHumanoid.MaxHealth = 40 | |
| 3222 | DustHumanoid.Health = 40 | |
| 3223 | DustHumanoid.WalkSpeed = 17 | |
| 3224 | Dust.Parent = Effects | |
| 3225 | ||
| 3226 | so("438666001", DustTorso, 2, .8)
| |
| 3227 | ||
| 3228 | ||
| 3229 | coroutine.resume(coroutine.create(function() | |
| 3230 | local DustAlive = true | |
| 3231 | ||
| 3232 | while DustAlive == true do | |
| 3233 | ||
| 3234 | ||
| 3235 | ||
| 3236 | if DustHumanoid.Health > 0.001 then | |
| 3237 | ||
| 3238 | ||
| 3239 | ||
| 3240 | local FindNewTorso = findNearestTorso(DustTorso.Position) | |
| 3241 | ||
| 3242 | if FindNewTorso ~= nil then | |
| 3243 | ||
| 3244 | DustHumanoid:MoveTo(FindNewTorso.Position) | |
| 3245 | --print(DustHumanoid.Name) | |
| 3246 | local mag = (DustTorso.Position-FindNewTorso.Position).magnitude | |
| 3247 | if mag < 10 and FindNewTorso.Parent:FindFirstChildOfClass("Humanoid") and FindNewTorso.Parent:FindFirstChildOfClass("Humanoid").Health > 0.001 then
| |
| 3248 | ||
| 3249 | ||
| 3250 | coroutine.resume(coroutine.create(function() | |
| 3251 | ||
| 3252 | coroutine.resume(coroutine.create(function() | |
| 3253 | makrag(FindNewTorso.Parent) | |
| 3254 | end)) | |
| 3255 | FindNewTorso.Parent:FindFirstChildOfClass("Humanoid").Health = 0
| |
| 3256 | FindNewTorso.Parent:BreakJoints() | |
| 3257 | if FindNewTorso.Parent:FindFirstChild("Head") then
| |
| 3258 | pem.Parent = FindNewTorso.Parent.Head | |
| 3259 | pem:Emit(10) | |
| 3260 | so("215395388", DustTorso, 2, .8)
| |
| 3261 | end | |
| 3262 | end)) | |
| 3263 | DustHumanoid.Health = 0 | |
| 3264 | end | |
| 3265 | ||
| 3266 | else | |
| 3267 | wait(2) | |
| 3268 | DustHumanoid.Health = 0 | |
| 3269 | end | |
| 3270 | ||
| 3271 | ||
| 3272 | end | |
| 3273 | ||
| 3274 | ||
| 3275 | ||
| 3276 | ||
| 3277 | ||
| 3278 | if DustHumanoid.Health < 0.001 then | |
| 3279 | coroutine.resume(coroutine.create(function() | |
| 3280 | pem.Rate = 0 | |
| 3281 | end)) | |
| 3282 | DustAlive = false | |
| 3283 | game:GetService("Debris"):AddItem(Dust, 2)
| |
| 3284 | so("2162238854", DustTorso, 2, .8)
| |
| 3285 | end | |
| 3286 | ||
| 3287 | ||
| 3288 | if Dust.Parent ~= Effects then | |
| 3289 | coroutine.resume(coroutine.create(function() | |
| 3290 | Dust:Destroy() | |
| 3291 | end)) | |
| 3292 | DustAlive = false | |
| 3293 | end | |
| 3294 | ||
| 3295 | ||
| 3296 | ||
| 3297 | ||
| 3298 | ||
| 3299 | wait(1) | |
| 3300 | end | |
| 3301 | ||
| 3302 | ||
| 3303 | ||
| 3304 | end)) | |
| 3305 | ||
| 3306 | ||
| 3307 | ||
| 3308 | ||
| 3309 | end)) | |
| 3310 | end | |
| 3311 | end)) | |
| 3312 | ||
| 3313 | ||
| 3314 | ||
| 3315 | wait(3) | |
| 3316 | coroutine.resume(coroutine.create(function() | |
| 3317 | head.Velocity = RootPart.CFrame.lookVector * 1.2 | |
| 3318 | coroutine.resume(coroutine.create(function() | |
| 3319 | makrag(c) | |
| 3320 | end)) | |
| 3321 | h.Health = 0 | |
| 3322 | c:BreakJoints() | |
| 3323 | RootPart.CFrame = Torso.CFrame*cn(0,-2,0) | |
| 3324 | RootPart.Anchored=false | |
| 3325 | end)) | |
| 3326 | attack = false | |
| 3327 | ||
| 3328 | end | |
| 3329 | ||
| 3330 | end | |
| 3331 | end | |
| 3332 | TheGunHandle.Touched:connect(onTouch) | |
| 3333 | ||
| 3334 | ||
| 3335 | wait(1) | |
| 3336 | coroutine.resume(coroutine.create(function() | |
| 3337 | TheGunHandle:Destroy() | |
| 3338 | end)) | |
| 3339 | ||
| 3340 | if IsHit == false then | |
| 3341 | attack = false | |
| 3342 | end | |
| 3343 | end | |
| 3344 | ||
| 3345 | ||
| 3346 | function Attack4() | |
| 3347 | attack=true | |
| 3348 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.6)
| |
| 3349 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",.6)
| |
| 3350 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(50))},"Back","Out",.6)
| |
| 3351 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-50))},"Back","Out",.6)
| |
| 3352 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.6)
| |
| 3353 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.6)
| |
| 3354 | wait(.6) | |
| 3355 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3356 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(-20),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3357 | SetTween(RW,{C0=CFrame.new(3.5 , 4.5, 4.0)*angles(math.rad(90),math.rad(0),math.rad(10))},"Quad","Out",.4)
| |
| 3358 | SetTween(LW,{C0=CFrame.new(-3.5, 4.5, 4.0)*angles(math.rad(90),math.rad(0),math.rad(-10))},"Quad","Out",.4)
| |
| 3359 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3360 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3361 | wait(.4) | |
| 3362 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.2)
| |
| 3363 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(60),math.rad(0),math.rad(0))},"Quad","InOut",.2)
| |
| 3364 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(30),math.rad(0),math.rad(-20))},"Back","Out",.2)
| |
| 3365 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(30),math.rad(0),math.rad(20))},"Back","Out",.2)
| |
| 3366 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.2)
| |
| 3367 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.2)
| |
| 3368 | wait(.2) | |
| 3369 | ||
| 3370 | local pilarsize= 1 | |
| 3371 | ||
| 3372 | if mememode == true then | |
| 3373 | pilarsize= 3 | |
| 3374 | end | |
| 3375 | ||
| 3376 | ||
| 3377 | ||
| 3378 | ||
| 3379 | ||
| 3380 | ||
| 3381 | WACKYEFFECT({Time = 30, EffectType = "Crown", Size = VT(9,0,9)*pilarsize, Size2 = (VT(10.5,110,10.5)*pilarsize), Transparency = 0.2, Transparency2 = 1, CFrame = RootPart.CFrame*cn(0,-3,-6)*angles(RAD(40),0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 357540482, SoundPitch = 1.8/(pilarsize/2), SoundVolume = 2*pilarsize})
| |
| 3382 | ||
| 3383 | ||
| 3384 | ||
| 3385 | coroutine.resume(coroutine.create(function() | |
| 3386 | wait(.1) | |
| 3387 | local RPP = RootPart.Position + Vector3.new(0,5,0) | |
| 3388 | local lookv= RootPart.CFrame.lookVector | |
| 3389 | coroutine.resume(coroutine.create(function() | |
| 3390 | for i = 1,10,1 do | |
| 3391 | local attackP = RPP+lookv*i*(15*pilarsize) | |
| 3392 | local attackCF = CF(attackP,attackP+lookv*5) | |
| 3393 | local Portalfloor,PortalPos,test1 = rayCast(attackP, CFrame.new(attackP, attackP - Vector3.new(0, 1, 0)).lookVector, 80, Character) | |
| 3394 | ||
| 3395 | local PortalPosCF = CF(PortalPos,PortalPos+test1)*ANGLES(RAD(-90+math.random(-10,10)),RAD(math.random(-360,360)),RAD(math.random(-10,10))) | |
| 3396 | if PortalPosCF ~= nil then | |
| 3397 | local Pillar = Instance.new("Part")
| |
| 3398 | Pillar.Reflectance = 0 | |
| 3399 | Pillar.Transparency = 0 | |
| 3400 | Pillar.CanCollide = true | |
| 3401 | Pillar.Locked = true | |
| 3402 | Pillar.Anchored=true | |
| 3403 | Pillar.BrickColor = BrickColor.new("White")
| |
| 3404 | Pillar.Name = "Pillar" | |
| 3405 | Pillar.Size = Vector3.new(8.108, 29.681, 8.108)*pilarsize | |
| 3406 | Pillar.Material = "Concrete" | |
| 3407 | Pillar:BreakJoints() | |
| 3408 | Pillar.Parent = Effects | |
| 3409 | Pillar.CFrame = PortalPosCF*cn(0,-30*pilarsize,0) | |
| 3410 | local NewPillarMesh = Instance.new("SpecialMesh")
| |
| 3411 | NewPillarMesh.Parent = Pillar | |
| 3412 | NewPillarMesh.MeshId = "http://www.roblox.com/asset/?id=2449719398" | |
| 3413 | NewPillarMesh.TextureId = "http://www.roblox.com/asset/?id=1693385655" | |
| 3414 | NewPillarMesh.Scale = Vector3.new(1,1,1)*pilarsize | |
| 3415 | NewPillarMesh.VertexColor = Vector3.new(23/255, 21/255, 29/255) | |
| 3416 | NewPillarMesh.MeshType = Enum.MeshType.FileMesh | |
| 3417 | ||
| 3418 | SetTween(Pillar,{CFrame=PortalPosCF*cn(0,12*pilarsize,0)},"Quad","Out",.5)
| |
| 3419 | coroutine.resume(coroutine.create(function() | |
| 3420 | wait(math.random(3,6)) | |
| 3421 | SetTween(Pillar,{CFrame=PortalPosCF*cn(0,-30*pilarsize,0)*ANGLES(RAD(math.random(-90,90)),RAD(math.random(-360,360)),RAD(math.random(-90,90)))},"Bounce","In",2)
| |
| 3422 | Pillar.CanCollide = false | |
| 3423 | wait(1.5) | |
| 3424 | CFMagniDamage(cn(PortalPos),18*pilarsize,20*pilarsize,30*pilarsize,50*pilarsize,"Knockdown") | |
| 3425 | ||
| 3426 | WACKYEFFECT({Time = 50, EffectType = "Crown", Size = VT(15,0,15)*pilarsize, Size2 = (VT(19,120,19)*pilarsize), Transparency = 0.6, Transparency2 = 1, CFrame = CF(PortalPos,PortalPos+test1)*ANGLES(RAD(-90),RAD(math.random(-360,360)),RAD(0)) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 1788899396, SoundPitch = 1/(pilarsize/2), SoundVolume = 3*pilarsize})
| |
| 3427 | ||
| 3428 | SetTween(Pillar,{Transparency=1},"Quad","Out",2)
| |
| 3429 | wait(4) | |
| 3430 | Pillar:Destroy() | |
| 3431 | end)) | |
| 3432 | CFMagniDamage(cn(PortalPos),16*pilarsize,10*pilarsize,20*pilarsize,-20*pilarsize,"NormalKnockdown") | |
| 3433 | ||
| 3434 | WACKYEFFECT({Time = 40, EffectType = "Crown", Size = VT(9,0,9)*pilarsize, Size2 = (VT(4.5,160,4.5)*pilarsize), Transparency = 0.2, Transparency2 = 1, CFrame = PortalPosCF, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 2175667385, SoundPitch = 0.8/(pilarsize/2), SoundVolume = 2*pilarsize})
| |
| 3435 | WACKYEFFECT({Time = 40, EffectType = "Crown", Size = VT(4.5,40,4.5)*pilarsize, Size2 = (VT(30,0,30)*pilarsize), Transparency = 0.7, Transparency2 = 1, CFrame = CF(PortalPos,PortalPos+test1)*ANGLES(RAD(-90),RAD(math.random(-360,360)),RAD(0)) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 3})
| |
| 3436 | ||
| 3437 | end | |
| 3438 | ||
| 3439 | wait(.05) | |
| 3440 | end | |
| 3441 | end)) | |
| 3442 | ||
| 3443 | ||
| 3444 | ||
| 3445 | end)) | |
| 3446 | ||
| 3447 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3448 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3449 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -2.0)*angles(math.rad(90),math.rad(0),math.rad(-20))},"Back","Out",.4)
| |
| 3450 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -2.0)*angles(math.rad(90),math.rad(0),math.rad(20))},"Back","Out",.4)
| |
| 3451 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3452 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4)
| |
| 3453 | wait(.4) | |
| 3454 | attack=false | |
| 3455 | end | |
| 3456 | ||
| 3457 | ||
| 3458 | ||
| 3459 | ||
| 3460 | ||
| 3461 | ||
| 3462 | ||
| 3463 | ||
| 3464 | ||
| 3465 | ||
| 3466 | for i, v in pairs(Head:GetChildren()) do | |
| 3467 | ||
| 3468 | if v:IsA("BasePart") and v.BrickColor.Name == "Institutional white" then
| |
| 3469 | --v.Name = "Eye" | |
| 3470 | end | |
| 3471 | ||
| 3472 | ||
| 3473 | end | |
| 3474 | ||
| 3475 | ||
| 3476 | ||
| 3477 | ||
| 3478 | function ClickCombo() | |
| 3479 | if Anim == "Fall" or Anim == "Jump" then | |
| 3480 | if Combo == 0 then | |
| 3481 | --DownAT() | |
| 3482 | end | |
| 3483 | else | |
| 3484 | if Combo == 0 then | |
| 3485 | AT1() | |
| 3486 | Combo = 1 | |
| 3487 | elseif Combo == 1 then | |
| 3488 | AT2() | |
| 3489 | Combo = 0 | |
| 3490 | elseif Combo == 2 then | |
| 3491 | AT3() | |
| 3492 | Combo = 0 | |
| 3493 | end | |
| 3494 | end | |
| 3495 | end | |
| 3496 | ||
| 3497 | Button1DownF=function() | |
| 3498 | ||
| 3499 | if attack==false then | |
| 3500 | ||
| 3501 | ClickCombo() | |
| 3502 | else | |
| 3503 | ||
| 3504 | end | |
| 3505 | ||
| 3506 | end | |
| 3507 | ||
| 3508 | ||
| 3509 | ||
| 3510 | KeyUpF=function(key) | |
| 3511 | ||
| 3512 | ||
| 3513 | ||
| 3514 | end | |
| 3515 | ||
| 3516 | Mouse.KeyDown:Connect(function(key) | |
| 3517 | key:lower() | |
| 3518 | if key == "z" and attack ==false then | |
| 3519 | Attack1() | |
| 3520 | end | |
| 3521 | if key == "x" and attack ==false then | |
| 3522 | Attack2() | |
| 3523 | end | |
| 3524 | if key == "c" and attack ==false then | |
| 3525 | Attack3() | |
| 3526 | end | |
| 3527 | if key == "v" and attack ==false then | |
| 3528 | Attack4() | |
| 3529 | end | |
| 3530 | end) | |
| 3531 | ||
| 3532 | ||
| 3533 | ||
| 3534 | ||
| 3535 | if mememode == false then | |
| 3536 | mememode=true | |
| 3537 | lastid= "http://www.roblox.com/asset/?id=167664731" --1847367023 | |
| 3538 | ||
| 3539 | lastsongpos = 0 | |
| 3540 | s2.TimePosition = lastsongpos | |
| 3541 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-2,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",1)
| |
| 3542 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,-2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",1)
| |
| 3543 | SetTween(RW,{C0=CFrame.new(2.5 , 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(60))},"Quad","InOut",1)
| |
| 3544 | SetTween(LW,{C0=CFrame.new(-2.5, 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(-60))},"Quad","InOut",1)
| |
| 3545 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(-90))},"Quad","InOut",1)
| |
| 3546 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(90))},"Quad","InOut",1)
| |
| 3547 | so("1837106999", Character,1, 1)
| |
| 3548 | wait(1) | |
| 3549 | ||
| 3550 | ||
| 3551 | lastid= "http://www.roblox.com/asset/?id=1907454616" --1847367023 194920243 | |
| 3552 | ||
| 3553 | lastsongpos = 0 | |
| 3554 | s2.TimePosition = lastsongpos | |
| 3555 | ||
| 3556 | ||
| 3557 | ||
| 3558 | ||
| 3559 | for i, v in pairs(Head:GetChildren()) do | |
| 3560 | if v:IsA("BasePart") and v.BrickColor.Name == "Really black" and v.Name ~= "Head" then
| |
| 3561 | ||
| 3562 | if v.Name == "Handle" then | |
| 3563 | v.Transparency=1 | |
| 3564 | v.Decal.Transparency=1 | |
| 3565 | else | |
| 3566 | SetTween(v,{Transparency=1},"Quad","InOut",.1)
| |
| 3567 | ||
| 3568 | end | |
| 3569 | ||
| 3570 | ||
| 3571 | end | |
| 3572 | if v:IsA("BasePart") and (v.Name == "Eye1" or v.Name == "Eye2" ) then
| |
| 3573 | SetTween(v,{Color=Color3.new(1,0,0)},"Quad","InOut",1)
| |
| 3574 | ||
| 3575 | SetTween(v.Mesh,{Scale=Vector3.new(0.8,5.8,.825)},"Quad","InOut",1)
| |
| 3576 | ||
| 3577 | ||
| 3578 | SetTween(v.Mesh,{Offset=Vector3.new(0,-.5,0)},"Quad","InOut",1)
| |
| 3579 | ||
| 3580 | ||
| 3581 | ||
| 3582 | end | |
| 3583 | ||
| 3584 | ||
| 3585 | end | |
| 3586 | ||
| 3587 | coroutine.resume(coroutine.create(function() | |
| 3588 | local MaskPart = Instance.new("Part")
| |
| 3589 | MaskPart.Reflectance = 0 | |
| 3590 | MaskPart.Transparency = 0 | |
| 3591 | MaskPart.CanCollide = false | |
| 3592 | MaskPart.Locked = true | |
| 3593 | MaskPart.Anchored=false | |
| 3594 | MaskPart.BrickColor = BrickColor.new("Really blue")
| |
| 3595 | MaskPart.Name = "LMaskPart" | |
| 3596 | MaskPart.Size = Vector3.new(.1,.1,.1) | |
| 3597 | MaskPart.Material = "SmoothPlastic" | |
| 3598 | MaskPart:BreakJoints() | |
| 3599 | MaskPart.Parent = Head | |
| 3600 | MaskPart.CFrame = RootPart.CFrame | |
| 3601 | ||
| 3602 | local SWeld=weld(MaskPart,Head,MaskPart,cf(-.75,-0,-1.25)*angles(math.rad(0),math.rad(0),math.rad(0))) | |
| 3603 | SetTween(SWeld,{C0=CFrame.new(-2.75,0,-1.0)*angles(math.rad(0),math.rad(-15),math.rad(math.random(-15,15)))},"Elastic","Out",1.5)
| |
| 3604 | ||
| 3605 | local NewMaskMesh = Instance.new("SpecialMesh")
| |
| 3606 | NewMaskMesh.Parent = MaskPart | |
| 3607 | NewMaskMesh.MeshId = "http://www.roblox.com/asset/?id=2349611011" | |
| 3608 | NewMaskMesh.TextureId = "http://www.roblox.com/asset/?id=2349706532" | |
| 3609 | NewMaskMesh.Scale = Vector3.new(3, 3.0999999, 3)/10 | |
| 3610 | NewMaskMesh.MeshType = Enum.MeshType.FileMesh | |
| 3611 | end)) | |
| 3612 | coroutine.resume(coroutine.create(function() | |
| 3613 | local MaskPart = Instance.new("Part")
| |
| 3614 | MaskPart.Reflectance = 0 | |
| 3615 | MaskPart.Transparency = 0 | |
| 3616 | MaskPart.CanCollide = false | |
| 3617 | MaskPart.Locked = true | |
| 3618 | MaskPart.Anchored=false | |
| 3619 | MaskPart.BrickColor = BrickColor.new("Really blue")
| |
| 3620 | MaskPart.Name = "RMaskPart" | |
| 3621 | MaskPart.Size = Vector3.new(.1,.1,.1) | |
| 3622 | MaskPart.Material = "SmoothPlastic" | |
| 3623 | MaskPart:BreakJoints() | |
| 3624 | MaskPart.Parent = Head | |
| 3625 | MaskPart.CFrame = RootPart.CFrame | |
| 3626 | ||
| 3627 | local SWeld=weld(MaskPart,Head,MaskPart,cf(.75,-0,-1.25)*angles(math.rad(0),math.rad(0),math.rad(0))) | |
| 3628 | SetTween(SWeld,{C0=CFrame.new(2.75,0,-1.0)*angles(math.rad(0),math.rad(-15),math.rad(math.random(-15,15)))},"Elastic","Out",1)
| |
| 3629 | ||
| 3630 | local NewMaskMesh = Instance.new("SpecialMesh")
| |
| 3631 | NewMaskMesh.Parent = MaskPart | |
| 3632 | NewMaskMesh.MeshId = "http://www.roblox.com/asset/?id=2349606351" | |
| 3633 | NewMaskMesh.TextureId = "http://www.roblox.com/asset/?id=2349706532" | |
| 3634 | NewMaskMesh.Scale = Vector3.new(3, 3.0999999, 3)/10 | |
| 3635 | NewMaskMesh.MeshType = Enum.MeshType.FileMesh | |
| 3636 | end)) | |
| 3637 | ||
| 3638 | ||
| 3639 | ||
| 3640 | ||
| 3641 | coroutine.resume(coroutine.create(function() | |
| 3642 | wait(1) | |
| 3643 | local MoveVal = 1 | |
| 3644 | while mememode == true do | |
| 3645 | ||
| 3646 | if MoveVal == 1 then | |
| 3647 | MoveVal =-1 | |
| 3648 | else | |
| 3649 | MoveVal=1 | |
| 3650 | end | |
| 3651 | ||
| 3652 | if Head:FindFirstChild("RMaskPart") then
| |
| 3653 | ||
| 3654 | local HPa = Head:FindFirstChild("RMaskPart")
| |
| 3655 | SetTween(HPa:FindFirstChildOfClass("Weld"),{C0=CFrame.new(2.75+MoveVal/(math.random(30,40)/10),MoveVal/(math.random(60,80)/10),-1.0)*angles(math.rad(-30),math.rad(-15+MoveVal*5),math.rad(math.random(-15,15)))},"Quad","InOut",1)
| |
| 3656 | end | |
| 3657 | if Head:FindFirstChild("LMaskPart") then
| |
| 3658 | local HPa = Head:FindFirstChild("LMaskPart")
| |
| 3659 | SetTween(HPa:FindFirstChildOfClass("Weld"),{C0=CFrame.new(-2.75-MoveVal/(math.random(30,40)/10),MoveVal/(math.random(60,80)/10),-1.0)*angles(math.rad(-30),math.rad(15+MoveVal*5),math.rad(math.random(-15,15)))},"Quad","InOut",1)
| |
| 3660 | end | |
| 3661 | if Head:FindFirstChild("Eye1") then
| |
| 3662 | local HPa = Head:FindFirstChild("Eye1")
| |
| 3663 | SetTween(HPa,{Color=Color3.new(.25+MoveVal/4,0,0)},"Quad","InOut",1)
| |
| 3664 | ||
| 3665 | ||
| 3666 | end | |
| 3667 | ||
| 3668 | if Head:FindFirstChild("Eye2") then
| |
| 3669 | local HPa = Head:FindFirstChild("Eye2")
| |
| 3670 | SetTween(HPa,{Color=Color3.new(.25+MoveVal/4,0,0)},"Quad","InOut",1)
| |
| 3671 | ||
| 3672 | ||
| 3673 | ||
| 3674 | ||
| 3675 | end | |
| 3676 | ||
| 3677 | wait(1) | |
| 3678 | end | |
| 3679 | ||
| 3680 | ||
| 3681 | if Head:FindFirstChild("RMaskPart") then
| |
| 3682 | ||
| 3683 | local HPa = Head:FindFirstChild("RMaskPart")
| |
| 3684 | SetTween(HPa:FindFirstChildOfClass("Weld"),{C0=CFrame.new(.75,-0,-1.25)*angles(math.rad(-0),math.rad(-0),math.rad(0))},"Quad","InOut",.1)
| |
| 3685 | end | |
| 3686 | if Head:FindFirstChild("LMaskPart") then
| |
| 3687 | local HPa = Head:FindFirstChild("LMaskPart")
| |
| 3688 | SetTween(HPa:FindFirstChildOfClass("Weld"),{C0=CFrame.new(-.75,-0.1,-1.25)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",.1)
| |
| 3689 | end | |
| 3690 | ||
| 3691 | ||
| 3692 | ||
| 3693 | ||
| 3694 | ||
| 3695 | for i, v in pairs(Head:GetChildren()) do | |
| 3696 | if v:IsA("BasePart") and v.BrickColor.Name == "Really black" and v.Name ~= "Head" then
| |
| 3697 | ||
| 3698 | if v.Name == "Handle" then | |
| 3699 | coroutine.resume(coroutine.create(function() | |
| 3700 | wait(.2) | |
| 3701 | v.Transparency=0 | |
| 3702 | v.Decal.Transparency=0 | |
| 3703 | end)) | |
| 3704 | else | |
| 3705 | SetTween(v,{Transparency=0},"Quad","InOut",.1)
| |
| 3706 | ||
| 3707 | end | |
| 3708 | ||
| 3709 | ||
| 3710 | end | |
| 3711 | if v:IsA("BasePart") and (v.Name == "Eye1" or v.Name == "Eye2" ) then
| |
| 3712 | SetTween(v,{Color=Color3.new(1,1,1)},"Quad","InOut",1)
| |
| 3713 | SetTween(v.Mesh,{Offset=Vector3.new(0,0,0)},"Quad","InOut",1)
| |
| 3714 | SetTween(v.Mesh,{Scale=Vector3.new(1,1,1)},"Quad","InOut",1)
| |
| 3715 | ||
| 3716 | ||
| 3717 | ||
| 3718 | ||
| 3719 | end | |
| 3720 | if v:IsA("BasePart") and (v.Name == "RMaskPart" or v.Name == "LMaskPart" ) then
| |
| 3721 | coroutine.resume(coroutine.create(function() | |
| 3722 | wait(.2) | |
| 3723 | v:Destroy() | |
| 3724 | end)) | |
| 3725 | end | |
| 3726 | ||
| 3727 | end | |
| 3728 | ||
| 3729 | ||
| 3730 | ||
| 3731 | end)) | |
| 3732 | ||
| 3733 | ||
| 3734 | ||
| 3735 | lastsongpos = 0 | |
| 3736 | s2.TimePosition = lastsongpos | |
| 3737 | ||
| 3738 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-2,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",.5)
| |
| 3739 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,-2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",.5)
| |
| 3740 | SetTween(RW,{C0=CFrame.new(2.5 , 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(90))},"Quad","InOut",.5)
| |
| 3741 | SetTween(LW,{C0=CFrame.new(-2.5, 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(-90))},"Quad","InOut",.5)
| |
| 3742 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(10),math.rad(0),math.rad(-90))},"Quad","InOut",.5)
| |
| 3743 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(10),math.rad(0),math.rad(90))},"Quad","InOut",.5)
| |
| 3744 | ||
| 3745 | wait(.5) | |
| 3746 | else | |
| 3747 | mememode=false | |
| 3748 | ||
| 3749 | ||
| 3750 | ||
| 3751 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-2,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",.5)
| |
| 3752 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,-2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",.5)
| |
| 3753 | SetTween(RW,{C0=CFrame.new(2.5 , 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(90))},"Quad","InOut",.5)
| |
| 3754 | SetTween(LW,{C0=CFrame.new(-2.5, 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(-90))},"Quad","InOut",.5)
| |
| 3755 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(10),math.rad(0),math.rad(-90))},"Quad","InOut",.5)
| |
| 3756 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(10),math.rad(0),math.rad(90))},"Quad","InOut",.5)
| |
| 3757 | ||
| 3758 | wait(.25) | |
| 3759 | ||
| 3760 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-2,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",.5)
| |
| 3761 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,-2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",.5)
| |
| 3762 | SetTween(RW,{C0=CFrame.new(2.5 , 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(60))},"Quad","InOut",.5)
| |
| 3763 | SetTween(LW,{C0=CFrame.new(-2.5, 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(-60))},"Quad","InOut",.5)
| |
| 3764 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(-90))},"Quad","InOut",.5)
| |
| 3765 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(90))},"Quad","InOut",.5)
| |
| 3766 | ||
| 3767 | wait(.5) | |
| 3768 | ||
| 3769 | ||
| 3770 | CurId=CurId-1 | |
| 3771 | ||
| 3772 | ||
| 3773 | end | |
| 3774 | ||
| 3775 | attack = false | |
| 3776 | ||
| 3777 | ||
| 3778 | ||
| 3779 | ||
| 3780 | ||
| 3781 | ||
| 3782 | ||
| 3783 | ||
| 3784 | ||
| 3785 | ||
| 3786 | ||
| 3787 | ||
| 3788 | ||
| 3789 | ||
| 3790 | --math.rad(math.random(-math.random(1,5),math.random(1,5))) | |
| 3791 | gout= false | |
| 3792 | gnum = 0 | |
| 3793 | gnum2 = 20 | |
| 3794 | crypos=0 | |
| 3795 | s3:play() | |
| 3796 | s3.Volume = 0 | |
| 3797 | coroutine.resume(coroutine.create(function() | |
| 3798 | while Humanoid.Health>0.001 do | |
| 3799 | sine = sine + change | |
| 3800 | hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
| 3801 | ||
| 3802 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 3803 | local velderp = RootPart.Velocity.y | |
| 3804 | ||
| 3805 | ||
| 3806 | local wwalk = Anim | |
| 3807 | ||
| 3808 | if RootPart.Velocity.y > 1 and hitfloor == nil then | |
| 3809 | Anim = "Jump" | |
| 3810 | ||
| 3811 | elseif RootPart.Velocity.y < -1 and hitfloor == nil then | |
| 3812 | Anim = "Fall" | |
| 3813 | elseif Humanoid.Sit == true then | |
| 3814 | Anim = "Sit" | |
| 3815 | elseif torvel < 1 and hitfloor ~= nil then | |
| 3816 | Anim = "Idle" | |
| 3817 | elseif torvel > 2 and hitfloor ~= nil then | |
| 3818 | ||
| 3819 | Anim = "Walk" | |
| 3820 | ||
| 3821 | else | |
| 3822 | Anim = "" | |
| 3823 | ||
| 3824 | end | |
| 3825 | ||
| 3826 | if Anim=="Jump" and wwalk == "Walk" and mememode==true then | |
| 3827 | local Portalfloor,PortalPos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 80, Character) | |
| 3828 | ||
| 3829 | WACKYEFFECT({Time = 40, EffectType = "Crown", Size = VT(0,60,0), Size2 = (VT(30,0,30)), Transparency = 0.2, Transparency2 = 1, CFrame = cn(PortalPos) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 3830 | ||
| 3831 | end | |
| 3832 | ||
| 3833 | ||
| 3834 | ||
| 3835 | coroutine.resume(coroutine.create(function() | |
| 3836 | if mememode == true then | |
| 3837 | if s3.Parent == nil or s3 == nil then | |
| 3838 | ||
| 3839 | s3 = s3c:Clone() | |
| 3840 | s3.Parent = Head | |
| 3841 | s3.Name = "Crying" | |
| 3842 | -- s2.SoundId = lastid | |
| 3843 | s3.Pitch = 0.5 | |
| 3844 | s3.Volume = 0 | |
| 3845 | s3.Looped = true | |
| 3846 | s3.archivable = false | |
| 3847 | s3.TimePosition = crypos | |
| 3848 | ||
| 3849 | s3:play() | |
| 3850 | ||
| 3851 | ||
| 3852 | else | |
| 3853 | crypos=s3.TimePosition | |
| 3854 | s3.Pitch = 0.5 | |
| 3855 | ||
| 3856 | --s2.Volume = 1.5 | |
| 3857 | ||
| 3858 | s3.Looped = true | |
| 3859 | s3.SoundId = crying | |
| 3860 | s3.EmitterSize = 40 | |
| 3861 | end | |
| 3862 | ||
| 3863 | ||
| 3864 | end | |
| 3865 | end)) | |
| 3866 | ||
| 3867 | ||
| 3868 | ||
| 3869 | coroutine.resume(coroutine.create(function() | |
| 3870 | ||
| 3871 | ||
| 3872 | if s2.Parent == nil or s2 == nil then | |
| 3873 | ||
| 3874 | s2 = s2c:Clone() | |
| 3875 | s2.Parent = Torso | |
| 3876 | s2.Name = "BGMusic" | |
| 3877 | -- s2.SoundId = lastid | |
| 3878 | s2.Pitch = 1.5 | |
| 3879 | s2.Volume = 1.5 | |
| 3880 | s2.Looped = true | |
| 3881 | s2.archivable = false | |
| 3882 | s2.TimePosition = lastsongpos | |
| 3883 | if playsong == true then | |
| 3884 | s2:play() | |
| 3885 | elseif playsong == false then | |
| 3886 | s2:stop() | |
| 3887 | end | |
| 3888 | ||
| 3889 | ||
| 3890 | else | |
| 3891 | lastsongpos=s2.TimePosition | |
| 3892 | ||
| 3893 | if mememode == false then | |
| 3894 | ||
| 3895 | s2.Pitch = .85 | |
| 3896 | ||
| 3897 | s2.Volume = 1.5 | |
| 3898 | ||
| 3899 | s2.Looped = true | |
| 3900 | s2.SoundId = lastid | |
| 3901 | s2.EmitterSize = 30 | |
| 3902 | else | |
| 3903 | ||
| 3904 | ||
| 3905 | s2.Pitch = .9 | |
| 3906 | ||
| 3907 | s2.Volume = 2 | |
| 3908 | ||
| 3909 | s2.Looped = true | |
| 3910 | s2.SoundId = lastid | |
| 3911 | s2.EmitterSize = 35 | |
| 3912 | end | |
| 3913 | ||
| 3914 | end | |
| 3915 | ||
| 3916 | ||
| 3917 | ||
| 3918 | end)) | |
| 3919 | ||
| 3920 | if mememode == true then | |
| 3921 | gnum = gnum + 1 | |
| 3922 | if gnum > gnum2 then | |
| 3923 | ||
| 3924 | gnum2 = math.random(10,100) | |
| 3925 | gnum = 0 | |
| 3926 | coroutine.resume(coroutine.create(function() | |
| 3927 | gout = true | |
| 3928 | s3.Volume = 3 | |
| 3929 | wait(math.random(2,12)/50) | |
| 3930 | ||
| 3931 | ||
| 3932 | s3.Volume = 0 | |
| 3933 | gout=false | |
| 3934 | end)) | |
| 3935 | ||
| 3936 | ||
| 3937 | end | |
| 3938 | end | |
| 3939 | ||
| 3940 | ||
| 3941 | ||
| 3942 | inairvel=torvel | |
| 3943 | ||
| 3944 | ||
| 3945 | if inairvel > 30 then | |
| 3946 | inairvel=30 | |
| 3947 | end | |
| 3948 | inairvel=inairvel/50*2 | |
| 3949 | ||
| 3950 | ||
| 3951 | ||
| 3952 | if attack == false then | |
| 3953 | if Anim == "Jump" then | |
| 3954 | change = 0.60*2 | |
| 3955 | SetTween(RJW,{C0=RootCF* cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(-6.5 - 1.5 * math.cos(sine / 8))+inairvel/2, math.rad(0), math.rad(0))},"Quad","Out",0.25)
| |
| 3956 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(-26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0))},"Quad","Out",0.25)
| |
| 3957 | SetTween(RW,{C0=CFrame.new(3.5 , -2.60, -.0) * angles(math.rad(-20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(10 + 0 * math.cos(sine / 8)))},"Quad","InOut",0.1)
| |
| 3958 | SetTween(LW,{C0=CFrame.new(-3.5, -2.6, -.0) * angles(math.rad(-20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(-10 - 2 * math.cos(sine / 8)))},"Quad","InOut",0.1)
| |
| 3959 | SetTween(RH,{C0=CFrame.new(0, -2+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075)
| |
| 3960 | SetTween(LH,{C0=CFrame.new(0, -2+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-25 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075)
| |
| 3961 | ||
| 3962 | ||
| 3963 | elseif Anim == "Fall" then | |
| 3964 | change = 0.60*2 | |
| 3965 | SetTween(RJW,{C0=RootCF*cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(5.5 - 1.5 * math.cos(sine / 8))-inairvel, math.rad(0), math.rad(0))},"Quad","Out",0.25)
| |
| 3966 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(26.5 + 2.5 * math.cos(sine / 8))+inairvel, math.rad(0), math.rad(-0))},"Quad","Out",0.25)
| |
| 3967 | SetTween(RW,{C0=CFrame.new(3.2 , -1.50, .20) * angles(math.rad(140 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(45 + 0 * math.cos(sine / 8)))},"Quad","InOut",0.15)
| |
| 3968 | SetTween(LW,{C0=CFrame.new(-3.2, -1.5, .20) * angles(math.rad(140 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(-45 - 2 * math.cos(sine / 8)))},"Quad","InOut",0.15)
| |
| 3969 | SetTween(RH,{C0=CFrame.new(0, -1+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 3970 | SetTween(LH,{C0=CFrame.new(0, -1+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-0 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 3971 | ||
| 3972 | ||
| 3973 | ||
| 3974 | ||
| 3975 | ||
| 3976 | ||
| 3977 | ||
| 3978 | ||
| 3979 | ||
| 3980 | ||
| 3981 | elseif Anim == "Idle" then | |
| 3982 | ||
| 3983 | ||
| 3984 | ||
| 3985 | if mememode == false then | |
| 3986 | ||
| 3987 | change = 0.60 | |
| 3988 | Humanoid.JumpPower = 90 | |
| 3989 | Humanoid.WalkSpeed=16 | |
| 3990 | local ADNum = .25 | |
| 3991 | SetTween(RJW,{C0=RootCF*cn(0, 0, 2.1 + 0.2395 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad((0 + .5* math.cos(sine / 4))), math.rad(-0))},"Quad","InOut",0.1)
| |
| 3992 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0, -1, 2) *angles(math.rad(-3.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(10), math.rad(0 - 26.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1)
| |
| 3993 | SetTween(RW,{C0=CFrame.new(3 , 2.5 + .02 * math.cos(sine / 8), -.0) * angles(math.rad(10 - 12 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(-25), math.rad(30 - 6 * math.cos(sine / 8)))},"Quad","Out",0.2)
| |
| 3994 | SetTween(LW,{C0=CFrame.new(-3, 2.5 + .02 * math.cos(sine / 8), -.0) * angles(math.rad(10 - 12 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(25), math.rad(-30 + 6 * math.cos(sine / 8 )))},"Quad","Out",0.1)
| |
| 3995 | SetTween(RH,{C0=CFrame.new(0, -3+ .04 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -2) * CFrame.Angles(math.rad(60 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5- 6.0 * math.cos(sine / 4)))},"Quad","InOut",0.1)
| |
| 3996 | SetTween(LH,{C0=CFrame.new(-0, -3+ .04 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -2) * CFrame.Angles(math.rad(60 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5+ 6.0 * math.cos(sine / 4)))},"Quad","InOut",0.1)
| |
| 3997 | else | |
| 3998 | change = 0.60 | |
| 3999 | Humanoid.JumpPower = 90 | |
| 4000 | Humanoid.WalkSpeed=16 | |
| 4001 | local ADNum = .25 | |
| 4002 | SetTween(RJW,{C0=RootCF*cn(0, 0, 2.1 + 0.2395 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad((0 + .5* math.cos(sine / 4))), math.rad(-0))},"Quad","InOut",0.1)
| |
| 4003 | ||
| 4004 | if gout == false then | |
| 4005 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0, -1, 2) *angles(math.rad(13.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(0), math.rad(0 - 26.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1)
| |
| 4006 | else | |
| 4007 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0+ (math.random(-10,10)/350), -1, 2 + (math.random(-10,10)/350)) *angles(math.rad(math.random(-math.random(1,5),math.random(1,5))), math.rad(0+math.random(-math.random(1,5),math.random(1,5))), math.rad(0 - 26.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.0)
| |
| 4008 | ||
| 4009 | end | |
| 4010 | SetTween(RW,{C0=CFrame.new(3 , 2.5 + .02 * math.cos(sine / 8), -.0) * angles(math.rad(10 - 6 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(-25), math.rad(30 - 2 * math.cos(sine / 8)))},"Quad","Out",0.2)
| |
| 4011 | SetTween(LW,{C0=CFrame.new(-3, 2.5 + .02 * math.cos(sine / 8), -.0) * angles(math.rad(10 - 6 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(25), math.rad(-30 + 2 * math.cos(sine / 8 )))},"Quad","Out",0.1)
| |
| 4012 | SetTween(RH,{C0=CFrame.new(0, -3+ .04 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -2) * CFrame.Angles(math.rad(60 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5- 2.0 * math.cos(sine / 4)))},"Quad","InOut",0.1)
| |
| 4013 | SetTween(LH,{C0=CFrame.new(-0, -3+ .04 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -2) * CFrame.Angles(math.rad(60 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5+ 2.0 * math.cos(sine / 4)))},"Quad","InOut",0.1)
| |
| 4014 | ||
| 4015 | end | |
| 4016 | ||
| 4017 | ||
| 4018 | elseif Anim == "Walk" then | |
| 4019 | local speed=1 | |
| 4020 | if mememode == true then | |
| 4021 | speed=1.5 | |
| 4022 | end | |
| 4023 | ||
| 4024 | ||
| 4025 | ||
| 4026 | if mememode == false then | |
| 4027 | ||
| 4028 | ||
| 4029 | local ADNum = 1 | |
| 4030 | ||
| 4031 | change = 2.6*speed | |
| 4032 | Humanoid.JumpPower = 90*speed | |
| 4033 | Humanoid.WalkSpeed=56*speed | |
| 4034 | SetTween(RJW,{C0=RootCF*CFrame.new(0, 1 + 1.0395 * math.cos(sine / 4), 2.4+ 0.855 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad(20 - 6 * math.cos(sine / 4)), math.rad(12 * math.cos(sine / 8)) + RootPart.RotVelocity.Y / 70, math.rad(18 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
| |
| 4035 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0, -1, 2 + 0.025 * math.cos(sine / 4)) * angles(math.rad(10 + 6.5 * math.cos(sine / 4)), math.rad(0 - 16 * math.cos(sine / 8)), math.rad(-18 * math.cos(sine / 8)) + RootPart.RotVelocity.Y / 16)},"Linear","InOut",WalkAnimMove/speed)
| |
| 4036 | --SetTween(RW,{C0=CFrame.new(1.5, 0.6, 0) * angles(math.rad(21+8 * math.cos(sine / 8)), math.rad(-70) + RootPart.RotVelocity.Y / 80, math.rad(70) + RootPart.RotVelocity.Y / 120)},"Linear","InOut",WalkAnimMove/speed)
| |
| 4037 | --SetTween(LW,{C0=CFrame.new(-1.5, 0.6, 0) * angles(math.rad(90-6* math.cos(sine / 4)), math.rad(0) + RootPart.RotVelocity.Y / 80, math.rad(-10) - RootPart.RotVelocity.Y / 90)},"Linear","InOut",WalkAnimMove/speed)
| |
| 4038 | SetTween(RW,{C0=cf(3, 1.5 - 0.55 * math.cos(sine / 8) / 2,-1.1+ 0.5 * math.cos(sine / 8) / 2) * CFrame.Angles(math.rad(-10.5 + 90 * math.cos(sine / 8)) + -math.sin(sine / 8) / 2.5, math.rad(90 + 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(-10 + 22.5 * math.cos(sine / 8)), math.rad(-90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
| |
| 4039 | SetTween(LW,{C0=cf(-3, 1.5 + 0.55 * math.cos(sine / 8) / 2,-1.1+ -0.5 * math.cos(sine / 8) / 2) * CFrame.Angles(math.rad(-10.5 - 90 * math.cos(sine / 8)) + math.sin(sine / 8) / 2.5, math.rad(-90 + 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(-10 - 22.5 * math.cos(sine / 8)), math.rad(90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
| |
| 4040 | SetTween(RH,{C0=cf(0, -2.825 - 0.55 * math.cos(sine / 8) / 2,-1 + 1 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * CFrame.Angles(math.rad(45 - 50 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + -math.sin(sine / 8) / 2.5, math.rad(90 + 0 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(0 + 2.5 * math.cos(sine / 8)), math.rad(-90) - RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed/1)
| |
| 4041 | SetTween(LH,{C0=cf(-0, -2.825 + 0.55 * math.cos(sine / 8) / 2,-1 - 1 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * CFrame.Angles(math.rad(45 + 50 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + math.sin(sine / 8) / 2.5, math.rad(-90 + 0 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(0 - 2.5 * math.cos(sine / 8)), math.rad(90)- RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed/1)
| |
| 4042 | else | |
| 4043 | ||
| 4044 | ||
| 4045 | ||
| 4046 | ||
| 4047 | local ADNum = 1 | |
| 4048 | ||
| 4049 | change = 2.6*speed | |
| 4050 | Humanoid.JumpPower = 90*speed | |
| 4051 | Humanoid.WalkSpeed=76*speed | |
| 4052 | SetTween(RJW,{C0=RootCF*CFrame.new(0, 1 + 1.3395 * math.cos(sine / 4), 2.4+ 0.855 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad(20 - 6 * math.cos(sine / 4)), math.rad(12 * math.cos(sine / 8)) + RootPart.RotVelocity.Y / 70, math.rad(18 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
| |
| 4053 | ||
| 4054 | ||
| 4055 | if gout == false then | |
| 4056 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0, 1, 0 + 0.025 * math.cos(sine / 4)) * angles(math.rad(10 + 6.5 * math.cos(sine / 4)), math.rad(0 - 3 * math.cos(sine / 8)), math.rad(-18 * math.cos(sine / 8)) + RootPart.RotVelocity.Y / 16)},"Linear","InOut",WalkAnimMove/speed)
| |
| 4057 | else | |
| 4058 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0+ (math.random(-10,10)/350), 1, 0 + (math.random(-10,10)/350)) *angles(math.rad(math.random(-math.random(1,5),math.random(1,5))), math.rad(0+math.random(-math.random(1,5),math.random(1,5))), math.rad(0 - 26.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.0)
| |
| 4059 | ||
| 4060 | end | |
| 4061 | ||
| 4062 | ||
| 4063 | --SetTween(RW,{C0=CFrame.new(1.5, 0.6, 0) * angles(math.rad(21+8 * math.cos(sine / 8)), math.rad(-70) + RootPart.RotVelocity.Y / 80, math.rad(70) + RootPart.RotVelocity.Y / 120)},"Linear","InOut",WalkAnimMove/speed)
| |
| 4064 | --SetTween(LW,{C0=CFrame.new(-1.5, 0.6, 0) * angles(math.rad(90-6* math.cos(sine / 4)), math.rad(0) + RootPart.RotVelocity.Y / 80, math.rad(-10) - RootPart.RotVelocity.Y / 90)},"Linear","InOut",WalkAnimMove/speed)
| |
| 4065 | SetTween(RW,{C0=cf(3, 1.5 - 0.55 * math.cos(sine / 8) / 2,-1.1- 2.5 * math.cos(sine / 8) / 2) * CFrame.Angles(math.rad(-1.5 + 30 * math.cos(sine / 8)) + -math.sin(sine / 8) / 2.5, math.rad(90 + 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(-10 + 22.5 * math.cos(sine / 8)), math.rad(-90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
| |
| 4066 | SetTween(LW,{C0=cf(-3, 1.5 + 0.55 * math.cos(sine / 8) / 2,-1.1- -2.5 * math.cos(sine / 8) / 2) * CFrame.Angles(math.rad(-1.5 - 30 * math.cos(sine / 8)) + math.sin(sine / 8) / 2.5, math.rad(-90 + 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(-10 - 22.5 * math.cos(sine / 8)), math.rad(90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed)
| |
| 4067 | SetTween(RH,{C0=cf(0, -2.825 - 0.55 * math.cos(sine / 8) / 2,-1 - 1 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * CFrame.Angles(math.rad(45 - 60 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + -math.sin(sine / 8) / 2.5, math.rad(90 - 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(0 + 6.5 * math.cos(sine / 8)), math.rad(-90) - RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed/1)
| |
| 4068 | SetTween(LH,{C0=cf(-0, -2.825 + 0.55 * math.cos(sine / 8) / 2,-1 + 1 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * CFrame.Angles(math.rad(45 + 60 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + math.sin(sine / 8) / 2.5, math.rad(-90 - 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(0 - 6.5 * math.cos(sine / 8)), math.rad(90)- RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed/1)
| |
| 4069 | ||
| 4070 | ||
| 4071 | ||
| 4072 | ||
| 4073 | ||
| 4074 | ||
| 4075 | ||
| 4076 | ||
| 4077 | end | |
| 4078 | ||
| 4079 | ||
| 4080 | ||
| 4081 | ||
| 4082 | ||
| 4083 | ||
| 4084 | ||
| 4085 | ||
| 4086 | ||
| 4087 | ||
| 4088 | elseif Anim == "Sit" then | |
| 4089 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 4090 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 4091 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
| |
| 4092 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
| |
| 4093 | SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 4094 | SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
| |
| 4095 | ||
| 4096 | end | |
| 4097 | end | |
| 4098 | ||
| 4099 | wait(Animstep) | |
| 4100 | end | |
| 4101 | end)) | |
| 4102 | local Value1=MaybeOk(1,"29,30,31,10,12,29,30,31,0") warn(MaybeOk(1,"12,15,1,4,9,14,7,0")) | |
| 4103 | ||
| 4104 | ||
| 4105 | ||
| 4106 | ||
| 4107 | ||
| 4108 | ----------------------------------------------------------------- | |
| 4109 | -- ____________ | |
| 4110 | -- /100101001011\ [-Deer Logger-] | |
| 4111 | -- [01-()-10-()-01] when runing this script then i can | |
| 4112 | -- \011001000101/ see who it isso its not the best | |
| 4113 | -- [10\-'--'-/01] plan you had and the white list | |
| 4114 | -- \10\ /10/ is just there to get rid of sum | |
| 4115 | -- [10\__/10] that copy the script | |
| 4116 | -- \======/ | |
| 4117 | ----------------------------------------------------------------- |