SHOW:
|
|
- or go back to the newest paste.
| 1 | --//====================================================\\-- | |
| 2 | --|| CREATED BY SHACKLUSTER | |
| 3 | --\\====================================================//-- | |
| 4 | ----------------------------------- | |
| 5 | --WATCH OUT HERE COMES THE COPPAS-- | |
| 6 | ---------------------------------------------------------------- | |
| 7 | --By CKbackup (Sugarie Saffron) -- | |
| 8 | --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw-- | |
| 9 | --Discord: Sugarie Saffron#4705 -- | |
| 10 | ---------------------------------------------------------------- | |
| 11 | ||
| 12 | print([[ | |
| 13 | --Script Cop-- | |
| 14 | By CKbackup (Sugarie Saffron) | |
| 15 | YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw | |
| 16 | Discord: Sugarie Saffron#4705 | |
| 17 | -------------------------------- | |
| 18 | As I've been demoted from my SB | |
| 19 | Mod rank in VSB, I don't see the | |
| 20 | need to hold this back any longer. | |
| 21 | ||
| 22 | Also, if the anims look weird or | |
| 23 | the weapon looks out of place, | |
| 24 | it's because it's actually modeled | |
| 25 | off a scaled rig with a package. | |
| 26 | It looks better with the Boy | |
| 27 | package. | |
| 28 | -------------------------------- | |
| 29 | (Keys) | |
| 30 | M - Mute/Play Music | |
| 31 | ||
| 32 | Click - Baton Swing | |
| 33 | (Hold) Q - Run | |
| 34 | Z - Pistol | |
| 35 | X - Arrest | |
| 36 | ||
| 37 | P - Move Jail(s) | |
| 38 | ]]) | |
| 39 | ||
| 40 | wait(1/60) | |
| 41 | Effects = { }
| |
| 42 | local Player = game:service'Players'.localPlayer | |
| 43 | local chara = Player.Character | |
| 44 | local Humanoid = chara:FindFirstChildOfClass("Humanoid")
| |
| 45 | local Mouse = Player:GetMouse() | |
| 46 | local LeftArm = chara["Left Arm"] | |
| 47 | local RightArm = chara["Right Arm"] | |
| 48 | local LeftLeg = chara["Left Leg"] | |
| 49 | local RightLeg = chara["Right Leg"] | |
| 50 | local Head = chara.Head | |
| 51 | local Torso = chara.Torso | |
| 52 | local RootPart = chara.HumanoidRootPart | |
| 53 | local RootJoint = RootPart.RootJoint | |
| 54 | local attack = false | |
| 55 | local Anim = 'Idle' | |
| 56 | local attacktype = 1 | |
| 57 | local delays = false | |
| 58 | local play = true | |
| 59 | local targetted = nil | |
| 60 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 61 | local velocity = RootPart.Velocity.y | |
| 62 | local sine = 0 | |
| 63 | local change = 1 | |
| 64 | local doe = 0 | |
| 65 | local Create = LoadLibrary("RbxUtility").Create
| |
| 66 | Humanoid.WalkSpeed = 16 | |
| 67 | ||
| 68 | ||
| 69 | Humanoid.Animator.Parent = nil | |
| 70 | chara.Animate.Parent = nil | |
| 71 | ||
| 72 | local pos = Vector3.new(0,0,-50) | |
| 73 | ||
| 74 | local newMotor = function(part0, part1, c0, c1) | |
| 75 | local w = Create('Motor'){
| |
| 76 | Parent = part0, | |
| 77 | Part0 = part0, | |
| 78 | Part1 = part1, | |
| 79 | C0 = c0, | |
| 80 | C1 = c1, | |
| 81 | } | |
| 82 | return w | |
| 83 | end | |
| 84 | ||
| 85 | function clerp(a, b, t) | |
| 86 | return a:lerp(b, t) | |
| 87 | end | |
| 88 | ||
| 89 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 90 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 91 | ||
| 92 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 93 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 94 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 95 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 96 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 97 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 98 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 99 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 100 | ||
| 101 | ||
| 102 | local rarmc1 = RW.C1 | |
| 103 | local larmc1 = LW.C1 | |
| 104 | local rlegc1 = RH.C1 | |
| 105 | local llegc1 = LH.C1 | |
| 106 | ||
| 107 | local resetc1 = false | |
| 108 | ||
| 109 | function PlayAnimationFromTable(table, speed, bool) | |
| 110 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 111 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 112 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 113 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 114 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 115 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 116 | if bool == true then | |
| 117 | if resetc1 == false then | |
| 118 | resetc1 = true | |
| 119 | RootJoint.C1 = RootJoint.C1 | |
| 120 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 121 | RW.C1 = rarmc1 | |
| 122 | LW.C1 = larmc1 | |
| 123 | RH.C1 = rlegc1 | |
| 124 | LH.C1 = llegc1 | |
| 125 | end | |
| 126 | end | |
| 127 | end | |
| 128 | ||
| 129 | ||
| 130 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 131 | ArtificialHB.Name = "Heartbeat" | |
| 132 | script:WaitForChild("Heartbeat")
| |
| 133 | frame = 0.03333333333333 | |
| 134 | tf = 0 | |
| 135 | allowframeloss = false | |
| 136 | tossremainder = false | |
| 137 | lastframe = tick() | |
| 138 | script.Heartbeat:Fire() | |
| 139 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 140 | tf = tf + s | |
| 141 | if tf >= frame then | |
| 142 | if allowframeloss then | |
| 143 | script.Heartbeat:Fire() | |
| 144 | lastframe = tick() | |
| 145 | else | |
| 146 | for i = 1, math.floor(tf / frame) do | |
| 147 | script.Heartbeat:Fire() | |
| 148 | end | |
| 149 | lastframe = tick() | |
| 150 | end | |
| 151 | if tossremainder then | |
| 152 | tf = 0 | |
| 153 | else | |
| 154 | tf = tf - frame * math.floor(tf / frame) | |
| 155 | end | |
| 156 | end | |
| 157 | end) | |
| 158 | function swait(num) | |
| 159 | if num == 0 or num == nil then | |
| 160 | ArtificialHB.Event:wait() | |
| 161 | else | |
| 162 | for i = 0, num do | |
| 163 | ArtificialHB.Event:wait() | |
| 164 | end | |
| 165 | end | |
| 166 | end | |
| 167 | ||
| 168 | function RemoveOutlines(part) | |
| 169 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 170 | end | |
| 171 | ||
| 172 | ||
| 173 | CFuncs = {
| |
| 174 | ["Part"] = {
| |
| 175 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 176 | local Part = Create("Part"){
| |
| 177 | Parent = Parent, | |
| 178 | Reflectance = Reflectance, | |
| 179 | Transparency = Transparency, | |
| 180 | CanCollide = false, | |
| 181 | Locked = true, | |
| 182 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 183 | Name = Name, | |
| 184 | Size = Size, | |
| 185 | Material = Material, | |
| 186 | } | |
| 187 | RemoveOutlines(Part) | |
| 188 | return Part | |
| 189 | end; | |
| 190 | }; | |
| 191 | ||
| 192 | ["Mesh"] = {
| |
| 193 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 194 | local Msh = Create(Mesh){
| |
| 195 | Parent = Part, | |
| 196 | Offset = OffSet, | |
| 197 | Scale = Scale, | |
| 198 | } | |
| 199 | if Mesh == "SpecialMesh" then | |
| 200 | Msh.MeshType = MeshType | |
| 201 | Msh.MeshId = MeshId | |
| 202 | end | |
| 203 | return Msh | |
| 204 | end; | |
| 205 | }; | |
| 206 | ||
| 207 | ["Mesh"] = {
| |
| 208 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 209 | local Msh = Create(Mesh){
| |
| 210 | Parent = Part, | |
| 211 | Offset = OffSet, | |
| 212 | Scale = Scale, | |
| 213 | } | |
| 214 | if Mesh == "SpecialMesh" then | |
| 215 | Msh.MeshType = MeshType | |
| 216 | Msh.MeshId = MeshId | |
| 217 | end | |
| 218 | return Msh | |
| 219 | end; | |
| 220 | }; | |
| 221 | ||
| 222 | ["Weld"] = {
| |
| 223 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 224 | local Weld = Create("Weld"){
| |
| 225 | Parent = Parent, | |
| 226 | Part0 = Part0, | |
| 227 | Part1 = Part1, | |
| 228 | C0 = C0, | |
| 229 | C1 = C1, | |
| 230 | } | |
| 231 | return Weld | |
| 232 | end; | |
| 233 | }; | |
| 234 | ||
| 235 | ["ParticleEmitter"] = {
| |
| 236 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 237 | local fp = Create("ParticleEmitter"){
| |
| 238 | Parent = Parent, | |
| 239 | Color = ColorSequence.new(Color1, Color2), | |
| 240 | LightEmission = LightEmission, | |
| 241 | Size = Size, | |
| 242 | Texture = Texture, | |
| 243 | Transparency = Transparency, | |
| 244 | ZOffset = ZOffset, | |
| 245 | Acceleration = Accel, | |
| 246 | Drag = Drag, | |
| 247 | LockedToPart = LockedToPart, | |
| 248 | VelocityInheritance = VelocityInheritance, | |
| 249 | EmissionDirection = EmissionDirection, | |
| 250 | Enabled = Enabled, | |
| 251 | Lifetime = LifeTime, | |
| 252 | Rate = Rate, | |
| 253 | Rotation = Rotation, | |
| 254 | RotSpeed = RotSpeed, | |
| 255 | Speed = Speed, | |
| 256 | VelocitySpread = VelocitySpread, | |
| 257 | } | |
| 258 | return fp | |
| 259 | end; | |
| 260 | }; | |
| 261 | ||
| 262 | CreateTemplate = {
| |
| 263 | ||
| 264 | }; | |
| 265 | } | |
| 266 | ||
| 267 | ||
| 268 | function so(id,par,pit,vol) | |
| 269 | local sou = Instance.new("Sound", par or workspace)
| |
| 270 | if par == chara then | |
| 271 | sou.Parent = chara.Torso | |
| 272 | end | |
| 273 | sou.Volume = vol | |
| 274 | sou.Pitch = pit or 1 | |
| 275 | sou.SoundId = "rbxassetid://" .. id | |
| 276 | sou.PlayOnRemove = true | |
| 277 | sou:Destroy() | |
| 278 | end | |
| 279 | ||
| 280 | local mus = Instance.new("Sound",Head)
| |
| 281 | mus.Name = "mus" | |
| 282 | mus.SoundId = "rbxassetid://328573277" | |
| 283 | mus.Looped = true | |
| 284 | mus.Volume = 99999999999999999999999999 | |
| 285 | mus:Play() | |
| 286 | ||
| 287 | New = function(Object, Parent, Name, Data) | |
| 288 | local Object = Instance.new(Object) | |
| 289 | for Index, Value in pairs(Data or {}) do
| |
| 290 | Object[Index] = Value | |
| 291 | end | |
| 292 | Object.Parent = Parent | |
| 293 | Object.Name = Name | |
| 294 | return Object | |
| 295 | end | |
| 296 | ||
| 297 | local Helmet = New("Part",chara,"Helmet",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(2, 0.400000006, 1),CFrame = CFrame.new(18.3999939, 1.20000005, -23.1000061, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 298 | local Mesh = New("SpecialMesh",PoliceHat,"Mesh",{Scale = Vector3.new(1.10000002, 1.20000005, 1.10000002),MeshId = "rbxassetid://451323246"})
| |
| 299 | local Weld = New("ManualWeld",PoliceHat,"Weld",{Part0 = PoliceHat,Part1 = Head,C1 = CFrame.new(0, 0.700000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 300 | for i, v in pairs(chara:children()) do | |
| 301 | if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") then
| |
| 302 | v:Destroy() | |
| 303 | elseif v.Name == "FakeHeadM" then | |
| 304 | v.Ahoge.Mesh.Scale = Vector3.new() | |
| 305 | elseif v.Name == "Chest" then | |
| 306 | for a, b in pairs(v:children()) do | |
| 307 | if b.Name ~= "Tail" then | |
| 308 | b.Transparency = 1 | |
| 309 | end | |
| 310 | end | |
| 311 | end | |
| 312 | end | |
| 313 | local sh = Instance.new("Shirt",chara)
| |
| 314 | local pn = Instance.new("Pants",chara)
| |
| 315 | sh.ShirtTemplate = "rbxassetid://231742175" | |
| 316 | pn.PantsTemplate = "rbxassetid://15224239" | |
| 317 | ||
| 318 | bdefc0 = CFrame.new(.8,-1,0)*CFrame.Angles(math.rad(30),0,0) | |
| 319 | gdefc0 = CFrame.new(-.8,-1,0)*CFrame.Angles(math.rad(130),0,0) | |
| 320 | ||
| 321 | local baton = Instance.new("Part",chara)
| |
| 322 | baton.Name = "Baton" | |
| 323 | baton.Size = Vector3.new(.2,.2,3.2) | |
| 324 | baton.BrickColor = BrickColor.new("Really black")
| |
| 325 | baton.CanCollide = false | |
| 326 | CFuncs.Mesh.Create("SpecialMesh", baton, "FileMesh", "rbxassetid://11820238", Vector3.new(), Vector3.new(1.5,1.5,1.5))
| |
| 327 | ||
| 328 | local bweld = Instance.new("Weld",baton)
| |
| 329 | bweld.Part0 = Torso | |
| 330 | bweld.Part1 = baton | |
| 331 | bweld.C0 = bdefc0 | |
| 332 | ||
| 333 | local att1 = Instance.new("Attachment",baton)
| |
| 334 | att1.Position = Vector3.new(-baton.Size.X/2,baton.Size.Y/2,baton.Size.Z/2) | |
| 335 | local att2 = Instance.new("Attachment",baton)
| |
| 336 | att2.Position = Vector3.new(-baton.Size.X/2,-baton.Size.Y/2,-baton.Size.Z/2) | |
| 337 | local tr1 = Instance.new("Trail",baton)
| |
| 338 | tr1.Color = ColorSequence.new(Color3.new(1,1,1)) | |
| 339 | tr1.Transparency = NumberSequence.new(0,1) | |
| 340 | tr1.Lifetime = .5 | |
| 341 | tr1.Enabled = false | |
| 342 | tr1.LightEmission = 1 | |
| 343 | tr1.Attachment0 = att1 | |
| 344 | tr1.Attachment1 = att2 | |
| 345 | local att3 = Instance.new("Attachment",RightLeg)
| |
| 346 | att3.Position = Vector3.new(0,1,0) | |
| 347 | local att4 = Instance.new("Attachment",RightLeg)
| |
| 348 | att4.Position = Vector3.new(0,-1,0) | |
| 349 | local tr2 = Instance.new("Trail",RightLeg)
| |
| 350 | tr2.Color = ColorSequence.new(Color3.new(1,1,1)) | |
| 351 | tr2.Transparency = NumberSequence.new(0,1) | |
| 352 | tr2.Lifetime = .5 | |
| 353 | tr2.Enabled = false | |
| 354 | tr2.LightEmission = 1 | |
| 355 | tr2.Attachment0 = att3 | |
| 356 | tr2.Attachment1 = att4 | |
| 357 | ||
| 358 | local gun = Instance.new("Part",chara)
| |
| 359 | gun.Name = "Gun" | |
| 360 | gun.Size = Vector3.new(.2,.2,.2) | |
| 361 | gun.BrickColor = BrickColor.new("Really black")
| |
| 362 | gun.CanCollide = false | |
| 363 | CFuncs.Mesh.Create("SpecialMesh", gun, "FileMesh", "rbxassetid://72012879", Vector3.new(), Vector3.new(2,2,2))
| |
| 364 | ||
| 365 | local gweld = Instance.new("Weld",gun)
| |
| 366 | gweld.Part0 = Torso | |
| 367 | gweld.Part1 = gun | |
| 368 | gweld.C0 = gdefc0 | |
| 369 | ||
| 370 | function rayCast(Position, Direction, Range, Ignore) | |
| 371 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 372 | end | |
| 373 | ||
| 374 | function mdmg(Part, Magnitude, HitType) | |
| 375 | for _, c in pairs(workspace:GetDescendants()) do | |
| 376 | local hum = c:FindFirstChildOfClass("Humanoid")
| |
| 377 | if hum ~= nil then | |
| 378 | local head = c:FindFirstChild("UpperTorso") or c:FindFirstChild("Torso")
| |
| 379 | if head ~= nil then | |
| 380 | local targ = head.Position - Part.Position | |
| 381 | local mag = targ.magnitude | |
| 382 | if mag <= Magnitude and c.Name ~= Player.Name and c:FindFirstChild("MagDmgd")==nil then
| |
| 383 | if c.Name ~= chara then | |
| 384 | if c.Name ~= "CKbackup" or c.Name ~= "Nebula_Zorua" or c.Name ~= "Salvo_Starly" then | |
| 385 | local val = Instance.new("BoolValue",c)
| |
| 386 | val.Name = "MagDmgd" | |
| 387 | local asd = Instance.new("ParticleEmitter",head)
| |
| 388 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
| 389 | asd.LightEmission = .1 | |
| 390 | asd.Size = NumberSequence.new(0.2) | |
| 391 | asd.Texture = "rbxassetid://771221224" | |
| 392 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 1)})
| |
| 393 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 394 | asd.Transparency = bbb | |
| 395 | asd.Size = aaa | |
| 396 | asd.ZOffset = .9 | |
| 397 | asd.Acceleration = Vector3.new(0, -5, 0) | |
| 398 | asd.LockedToPart = false | |
| 399 | asd.EmissionDirection = "Back" | |
| 400 | asd.Lifetime = NumberRange.new(1, 2) | |
| 401 | asd.Rate = 1000 | |
| 402 | asd.Rotation = NumberRange.new(-100, 100) | |
| 403 | asd.RotSpeed = NumberRange.new(-100, 100) | |
| 404 | asd.Speed = NumberRange.new(6) | |
| 405 | asd.VelocitySpread = 10000 | |
| 406 | asd.Enabled = false | |
| 407 | asd:Emit(20) | |
| 408 | game:service'Debris':AddItem(asd,3) | |
| 409 | --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
| 410 | if HitType == "Blunt" then | |
| 411 | so(865772398,head,.95,3) | |
| 412 | game:service'Debris':AddItem(val,1) | |
| 413 | elseif HitType == "Shot" then | |
| 414 | so(144884872,head,.9,3) | |
| 415 | game:service'Debris':AddItem(val,.05) | |
| 416 | end | |
| 417 | local soaa = Instance.new("Sound",c.Head)
| |
| 418 | soaa.Volume = .5 | |
| 419 | local cho = math.random(1,5) | |
| 420 | if cho == 1 then | |
| 421 | soaa.SoundId = "rbxassetid://111896685" | |
| 422 | elseif cho == 2 then | |
| 423 | soaa.SoundId = "rbxassetid://535528169" | |
| 424 | elseif cho == 3 then | |
| 425 | soaa.SoundId = "rbxassetid://1080363252" | |
| 426 | elseif cho == 4 then | |
| 427 | soaa.SoundId = "rbxassetid://147758746" | |
| 428 | elseif cho == 5 then | |
| 429 | soaa.SoundId = "rbxassetid://626777433" | |
| 430 | soaa.Volume = .2 | |
| 431 | soaa.TimePosition = 1 | |
| 432 | end | |
| 433 | game:service'Debris':AddItem(soaa,6) | |
| 434 | soaa:Play() | |
| 435 | for i,v in pairs(c:children()) do | |
| 436 | if v:IsA("LocalScript") or v:IsA("Tool") then
| |
| 437 | v:Destroy() | |
| 438 | end | |
| 439 | end | |
| 440 | hum.PlatformStand = true | |
| 441 | head.Velocity = RootPart.CFrame.lookVector*50 | |
| 442 | head.RotVelocity = Vector3.new(10,0,0) | |
| 443 | chatfunc("Let that be a warning!")
| |
| 444 | coroutine.wrap(function() | |
| 445 | swait(5) | |
| 446 | c:BreakJoints() end)() | |
| 447 | else | |
| 448 | end | |
| 449 | end | |
| 450 | end | |
| 451 | end | |
| 452 | end | |
| 453 | end | |
| 454 | end | |
| 455 | ||
| 456 | --[[FindNearestTorso = function(pos) | |
| 457 | local list = (game.workspace:GetDescendants()) | |
| 458 | local torso = nil | |
| 459 | local dist = 1000 | |
| 460 | local temp, human, temp2 = nil, nil, nil | |
| 461 | for x = 1, #list do | |
| 462 | temp2 = list[x] | |
| 463 | if temp2.className == "Model" and temp2.Name ~= chara.Name then | |
| 464 | temp = temp2:findFirstChild("Torso")
| |
| 465 | human = temp2:FindFirstChildOfClass("Humanoid")
| |
| 466 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
| 467 | local dohit = true | |
| 468 | if dohit == true then | |
| 469 | torso = temp | |
| 470 | dist = (temp.Position - pos).magnitude | |
| 471 | end | |
| 472 | end | |
| 473 | end | |
| 474 | end | |
| 475 | return torso, dist | |
| 476 | end]] | |
| 477 | ||
| 478 | ||
| 479 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
| 480 | if SinglePlayer then | |
| 481 | return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance | |
| 482 | end | |
| 483 | local List = {}
| |
| 484 | for i, v in pairs(workspace:GetDescendants()) do | |
| 485 | if v:IsA("Model") then
| |
| 486 | if v:findFirstChild("Head") then
| |
| 487 | if v ~= chara then | |
| 488 | if (v.Head.Position - Position).magnitude <= Distance then | |
| 489 | table.insert(List, v) | |
| 490 | end | |
| 491 | end | |
| 492 | end | |
| 493 | end | |
| 494 | end | |
| 495 | return List | |
| 496 | end | |
| 497 | ||
| 498 | ||
| 499 | --Chat Function-- | |
| 500 | function chatfunc(text) | |
| 501 | coroutine.wrap(function() | |
| 502 | if chara:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 503 | chara:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 504 | end | |
| 505 | local naeeym2 = Instance.new("BillboardGui",chara)
| |
| 506 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 507 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 508 | naeeym2.Adornee = chara.Head | |
| 509 | naeeym2.Name = "TalkingBillBoard" | |
| 510 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 511 | tecks2.BackgroundTransparency = 1 | |
| 512 | tecks2.BorderSizePixel = 0 | |
| 513 | tecks2.Text = "" | |
| 514 | tecks2.Font = "Fantasy" | |
| 515 | tecks2.FontSize = "Size24" | |
| 516 | tecks2.TextStrokeTransparency = 0 | |
| 517 | tecks2.TextColor3 = Color3.new(1,1,1) | |
| 518 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 519 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 520 | for i = 1,string.len(text),1 do | |
| 521 | tecks2.Text = string.sub(text,1,i) | |
| 522 | swait() | |
| 523 | end | |
| 524 | swait(30) | |
| 525 | for i = 1, 5 do | |
| 526 | swait() | |
| 527 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
| 528 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
| 529 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
| 530 | end | |
| 531 | naeeym2:Destroy() | |
| 532 | end)() | |
| 533 | end | |
| 534 | ||
| 535 | ||
| 536 | ||
| 537 | EffectModel = Create("Model"){
| |
| 538 | Parent = chara, | |
| 539 | Name = "Effects", | |
| 540 | } | |
| 541 | ||
| 542 | ||
| 543 | Effects = {
| |
| 544 | Block = {
| |
| 545 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 546 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 547 | prt.Anchored = true | |
| 548 | prt.CFrame = cframe | |
| 549 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 550 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 551 | if Type == 1 or Type == nil then | |
| 552 | table.insert(Effects, {
| |
| 553 | prt, | |
| 554 | "Block1", | |
| 555 | delay, | |
| 556 | x3, | |
| 557 | y3, | |
| 558 | z3, | |
| 559 | msh | |
| 560 | }) | |
| 561 | elseif Type == 2 then | |
| 562 | table.insert(Effects, {
| |
| 563 | prt, | |
| 564 | "Block2", | |
| 565 | delay, | |
| 566 | x3, | |
| 567 | y3, | |
| 568 | z3, | |
| 569 | msh | |
| 570 | }) | |
| 571 | end | |
| 572 | end; | |
| 573 | }; | |
| 574 | ||
| 575 | Cylinder = {
| |
| 576 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 577 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 578 | prt.Anchored = true | |
| 579 | prt.CFrame = cframe | |
| 580 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 581 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 582 | table.insert(Effects, {
| |
| 583 | prt, | |
| 584 | "Cylinder", | |
| 585 | delay, | |
| 586 | x3, | |
| 587 | y3, | |
| 588 | z3, | |
| 589 | msh | |
| 590 | }) | |
| 591 | end; | |
| 592 | }; | |
| 593 | Head = {
| |
| 594 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 595 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 596 | prt.Anchored = true | |
| 597 | prt.CFrame = cframe | |
| 598 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 599 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 600 | table.insert(Effects, {
| |
| 601 | prt, | |
| 602 | "Cylinder", | |
| 603 | delay, | |
| 604 | x3, | |
| 605 | y3, | |
| 606 | z3, | |
| 607 | msh | |
| 608 | }) | |
| 609 | end; | |
| 610 | }; | |
| 611 | ||
| 612 | Sphere = {
| |
| 613 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 614 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 615 | prt.Anchored = true | |
| 616 | prt.CFrame = cframe | |
| 617 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 618 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 619 | table.insert(Effects, {
| |
| 620 | prt, | |
| 621 | "Cylinder", | |
| 622 | delay, | |
| 623 | x3, | |
| 624 | y3, | |
| 625 | z3, | |
| 626 | msh | |
| 627 | }) | |
| 628 | end; | |
| 629 | }; | |
| 630 | ||
| 631 | Elect = {
| |
| 632 | Create = function(cff, x, y, z) | |
| 633 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
| |
| 634 | prt.Anchored = true | |
| 635 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 636 | prt.CFrame = CFrame.new(prt.Position) | |
| 637 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 638 | local xval = math.random() / 2 | |
| 639 | local yval = math.random() / 2 | |
| 640 | local zval = math.random() / 2 | |
| 641 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 642 | table.insert(Effects, {
| |
| 643 | prt, | |
| 644 | "Elec", | |
| 645 | 0.1, | |
| 646 | x, | |
| 647 | y, | |
| 648 | z, | |
| 649 | xval, | |
| 650 | yval, | |
| 651 | zval | |
| 652 | }) | |
| 653 | end; | |
| 654 | ||
| 655 | }; | |
| 656 | ||
| 657 | Ring = {
| |
| 658 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 659 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 660 | prt.Anchored = true | |
| 661 | prt.CFrame = cframe | |
| 662 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 663 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 664 | table.insert(Effects, {
| |
| 665 | prt, | |
| 666 | "Cylinder", | |
| 667 | delay, | |
| 668 | x3, | |
| 669 | y3, | |
| 670 | z3, | |
| 671 | msh | |
| 672 | }) | |
| 673 | end; | |
| 674 | }; | |
| 675 | ||
| 676 | ||
| 677 | Wave = {
| |
| 678 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 679 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 680 | prt.Anchored = true | |
| 681 | prt.CFrame = cframe | |
| 682 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 683 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 684 | table.insert(Effects, {
| |
| 685 | prt, | |
| 686 | "Cylinder", | |
| 687 | delay, | |
| 688 | x3, | |
| 689 | y3, | |
| 690 | z3, | |
| 691 | msh | |
| 692 | }) | |
| 693 | end; | |
| 694 | }; | |
| 695 | ||
| 696 | Break = {
| |
| 697 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 698 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 699 | prt.Anchored = true | |
| 700 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 701 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 702 | local num = math.random(10, 50) / 1000 | |
| 703 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 704 | table.insert(Effects, {
| |
| 705 | prt, | |
| 706 | "Shatter", | |
| 707 | num, | |
| 708 | prt.CFrame, | |
| 709 | math.random() - math.random(), | |
| 710 | 0, | |
| 711 | math.random(50, 100) / 100 | |
| 712 | }) | |
| 713 | end; | |
| 714 | }; | |
| 715 | ||
| 716 | Fire = {
| |
| 717 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
| 718 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 719 | prt.Anchored = true | |
| 720 | prt.CFrame = cframe | |
| 721 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 722 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 723 | table.insert(Effects, {
| |
| 724 | prt, | |
| 725 | "Fire", | |
| 726 | delay, | |
| 727 | 1, | |
| 728 | 1, | |
| 729 | 1, | |
| 730 | msh | |
| 731 | }) | |
| 732 | end; | |
| 733 | }; | |
| 734 | ||
| 735 | FireWave = {
| |
| 736 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 737 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
| 738 | prt.Anchored = true | |
| 739 | prt.CFrame = cframe | |
| 740 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 741 | local d = Create("Decal"){
| |
| 742 | Parent = prt, | |
| 743 | Texture = "rbxassetid://26356434", | |
| 744 | Face = "Top", | |
| 745 | } | |
| 746 | local d = Create("Decal"){
| |
| 747 | Parent = prt, | |
| 748 | Texture = "rbxassetid://26356434", | |
| 749 | Face = "Bottom", | |
| 750 | } | |
| 751 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 752 | table.insert(Effects, {
| |
| 753 | prt, | |
| 754 | "FireWave", | |
| 755 | 1, | |
| 756 | 30, | |
| 757 | math.random(400, 600) / 100, | |
| 758 | msh | |
| 759 | }) | |
| 760 | end; | |
| 761 | }; | |
| 762 | ||
| 763 | Lightning = {
| |
| 764 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
| 765 | local magz = (p0 - p1).magnitude | |
| 766 | local curpos = p0 | |
| 767 | local trz = {
| |
| 768 | -ofs, | |
| 769 | ofs | |
| 770 | } | |
| 771 | for i = 1, tym do | |
| 772 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
| 773 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 774 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
| 775 | li.Material = "Neon" | |
| 776 | if tym == i then | |
| 777 | local magz2 = (curpos - p1).magnitude | |
| 778 | li.Size = Vector3.new(th, th, magz2) | |
| 779 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
| 780 | table.insert(Effects, {
| |
| 781 | li, | |
| 782 | "Disappear", | |
| 783 | last | |
| 784 | }) | |
| 785 | else | |
| 786 | do | |
| 787 | do | |
| 788 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
| 789 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
| 790 | game.Debris:AddItem(li, 10) | |
| 791 | table.insert(Effects, {
| |
| 792 | li, | |
| 793 | "Disappear", | |
| 794 | last | |
| 795 | }) | |
| 796 | end | |
| 797 | end | |
| 798 | end | |
| 799 | end | |
| 800 | end | |
| 801 | }; | |
| 802 | ||
| 803 | EffectTemplate = {
| |
| 804 | ||
| 805 | }; | |
| 806 | } | |
| 807 | ||
| 808 | ||
| 809 | function smek() | |
| 810 | attack = true | |
| 811 | bweld.Part0 = RightArm | |
| 812 | bweld.C0 = CFrame.new(-.2,-2,.4)*CFrame.Angles(math.rad(90),0,math.rad(180)) | |
| 813 | Humanoid.WalkSpeed = 40 | |
| 814 | for i=0,1,.2 do | |
| 815 | swait() | |
| 816 | PlayAnimationFromTable({
| |
| 817 | CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987), | |
| 818 | CFrame.new(0, 1.49999714, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987), | |
| 819 | CFrame.new(1.6195364, 0.256343663, -3.60019794e-06, 0.939692736, -0.342020124, -8.94069672e-08, 0.342020154, 0.939692676, -4.35416268e-07, 2.08616257e-07, 3.87430191e-07, 1), | |
| 820 | CFrame.new(-1.65980804, 0.323206544, 5.72385352e-06, 0.866025329, 0.500000238, -2.98023224e-07, -0.500000179, 0.866025388, -1.34623383e-06, -4.47034836e-07, 1.29640102e-06, 1.00000012), | |
| 821 | CFrame.new(0.500001073, -2.00000095, -1.57952309e-06, 0.939692616, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692616), | |
| 822 | CFrame.new(-0.499998212, -2.00000095, 1.49011612e-06, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544), | |
| 823 | }, .3, false) | |
| 824 | end | |
| 825 | Humanoid.WalkSpeed = 2 | |
| 826 | tr1.Enabled = true | |
| 827 | so(536642316,baton,1,1) | |
| 828 | for i=0,1,.1 do | |
| 829 | swait() | |
| 830 | PlayAnimationFromTable({
| |
| 831 | CFrame.new(-0.0116844922, 0, -0.381816059, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992), | |
| 832 | CFrame.new(-0.0728889629, 1.49999714, 0.038963601, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992), | |
| 833 | CFrame.new(1.06065702, 1.09677029, -0.161810428, 0.400286436, 0.242276207, 0.88378346, 0.734158754, -0.661962748, -0.151050553, 0.548435688, 0.709300876, -0.442843854), | |
| 834 | CFrame.new(-1.59605861, 0.10887894, 1.11486224e-06, 0.984807909, 0.173648059, -2.23517418e-06, -0.173648059, 0.984807849, 3.82394944e-07, 2.29477882e-06, 1.86264515e-08, 1), | |
| 835 | CFrame.new(0.685087919, -1.96527183, 0.0673596561, 0.92541647, -0.163175598, -0.342020869, 0.173647985, 0.984807849, 2.90093368e-07, 0.336824894, -0.0593915246, 0.939692438), | |
| 836 | CFrame.new(-0.499999702, -2.00000095, 8.68737698e-06, 0.766045451, 0, 0.642786503, 0, 1, 0, -0.642786503, 0, 0.766045511), | |
| 837 | }, .3, false) | |
| 838 | mdmg(baton,3,"Blunt") | |
| 839 | end | |
| 840 | swait(5) | |
| 841 | bweld.Part0 = Torso | |
| 842 | bweld.C0 = bdefc0 | |
| 843 | Humanoid.WalkSpeed = 16 | |
| 844 | tr1.Enabled = false | |
| 845 | attack = false | |
| 846 | end | |
| 847 | ||
| 848 | function asmek() | |
| 849 | attack = true | |
| 850 | --local par | |
| 851 | --coroutine.wrap(function() | |
| 852 | --repeat swait() par = rayCast(RootPart.Position,Vector3.new(0,-1,0),3,chara) until par~=nil or Torso.Velocity.Y == 0 | |
| 853 | --tr2.Enabled = false | |
| 854 | --attack = false | |
| 855 | --end)() | |
| 856 | --for i=0,1,.2 do | |
| 857 | --swait() | |
| 858 | --PlayAnimationFromTable({
| |
| 859 | --CFrame.new(0, -0.0460019112, -0.0689063296, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
| 860 | --CFrame.new(0, 1.52556431, -0.222140759, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), | |
| 861 | --CFrame.new(1.59158015, 0.575856388, 6.13234874e-07, 0.642787039, -0.766044974, -4.38231467e-07, 0.766045034, 0.642787039, 1.78813934e-07, 1.63912773e-07, -4.39584255e-07, 1.00000012), | |
| 862 | --CFrame.new(-1.59158027, 0.575856209, 6.13234988e-07, 0.642787039, 0.766044974, 4.38231467e-07, -0.766045034, 0.642787039, 1.78813934e-07, -1.63912773e-07, -4.39584255e-07, 1.00000012), | |
| 863 | --CFrame.new(0.499998927, -1.99999928, 3.81469772e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
| 864 | --CFrame.new(-0.5, -1.41182017, 0.232474089, 1, 0, 0, 0, 0.642786622, 0.766045392, 0, -0.766045392, 0.642786622), | |
| 865 | --}, .3, false) | |
| 866 | --end | |
| 867 | tr2.Enabled = true | |
| 868 | so(536642316,RightLeg,1,1) | |
| 869 | for i=0,1.5,.1 do | |
| 870 | swait() | |
| 871 | PlayAnimationFromTable({
| |
| 872 | CFrame.new(0, -0.11843279, 0.00109164417, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414)*CFrame.Angles(math.rad(-360*i),0,0), | |
| 873 | CFrame.new(0, 1.36002374, -0.491580963, 1, 0, 0, 0, 0.642787457, 0.766044736, 0, -0.766044736, 0.642787457), | |
| 874 | CFrame.new(1.59157825, 0.575854659, 4.30346518e-06, 0.64278698, -0.766045034, -1.0103544e-07, 0.766045094, 0.64278698, -5.36441803e-07, 5.06639481e-07, 2.98023224e-07, 1.00000012), | |
| 875 | CFrame.new(-1.59158015, 0.575855613, 2.39611677e-06, 0.64278698, 0.766045034, 1.0103544e-07, -0.766045094, 0.64278698, -5.36441803e-07, -5.06639481e-07, 2.98023224e-07, 1.00000012), | |
| 876 | CFrame.new(0.399999022, -1.92074621, -0.716740668, 1, 0, 0, 0, 0.766044736, -0.642787457, 0, 0.642787457, 0.766044736), | |
| 877 | CFrame.new(-0.5, -1.41181993, 0.232477784, 1, 0, 0, 0, 0.642787457, 0.766044736, 0, -0.766044736, 0.642787457), | |
| 878 | }, .3, false) | |
| 879 | if i >= .4 then | |
| 880 | mdmg(RightLeg,3.5,"Blunt") | |
| 881 | end | |
| 882 | end | |
| 883 | tr2.Enabled = false | |
| 884 | attack = false | |
| 885 | end | |
| 886 | ||
| 887 | local shots = 7 | |
| 888 | zhold = true | |
| 889 | function shoot() | |
| 890 | attack = true | |
| 891 | so(865772398,gun,1,1) | |
| 892 | for i=0,1,.1 do | |
| 893 | swait() | |
| 894 | PlayAnimationFromTable({
| |
| 895 | CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698), | |
| 896 | CFrame.new(-0.0421711877, 1.49999738, -0.0331315249, 0.852868021, -0.0612752885, -0.518518507, 0.17364794, 0.969846606, 0.171008661, 0.492404759, -0.235887513, 0.837791562), | |
| 897 | CFrame.new(0.611007333, -0.00932076573, -0.639356554, 0.653100669, 0.696805716, -0.296515375, -0.748181939, 0.533255994, -0.394793421, -0.116975725, 0.479687244, 0.869607329), | |
| 898 | CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736), | |
| 899 | CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), | |
| 900 | CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767), | |
| 901 | }, .3, false) | |
| 902 | end | |
| 903 | Humanoid.WalkSpeed = 2 | |
| 904 | local ref = Instance.new("Part",chara)
| |
| 905 | ref.Size = Vector3.new(0,0,0) | |
| 906 | ref.Anchored = true | |
| 907 | ref.CanCollide = false | |
| 908 | ref.Transparency = 1 | |
| 909 | gweld.Part0 = RightArm | |
| 910 | gweld.C0 = CFrame.new(.1,-1.5,-.2)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-40)) | |
| 911 | for i=0,1,.1 do | |
| 912 | swait() | |
| 913 | PlayAnimationFromTable({
| |
| 914 | CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 915 | CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), | |
| 916 | CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886), | |
| 917 | CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414), | |
| 918 | CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 919 | CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 920 | }, .3, false) | |
| 921 | end | |
| 922 | swait(5) | |
| 923 | repeat | |
| 924 | so(470245800,gun,1,1) | |
| 925 | ref.CFrame = Mouse.Hit | |
| 926 | mdmg(ref,3,"Shot") | |
| 927 | local hitpt = Instance.new("Part",EffectModel)
| |
| 928 | hitpt.Size = Vector3.new(0,0,.3) | |
| 929 | local bf = Instance.new("BodyVelocity",hitpt)
| |
| 930 | bf.P = 10000 | |
| 931 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
| 932 | game:service'Debris':AddItem(bf,.1) | |
| 933 | hitpt.CFrame = gun.CFrame * CFrame.new(0,-.5,.5) * CFrame.Angles(math.rad(90),0,0) | |
| 934 | bf.Velocity = Vector3.new(0,5,0) + RootPart.CFrame.rightVector*10 | |
| 935 | local hitm = Instance.new("SpecialMesh",hitpt)
| |
| 936 | hitm.MeshId = "http://www.roblox.com/asset/?id=94295100" | |
| 937 | hitm.TextureId = "http://www.roblox.com/asset/?id=94287792" | |
| 938 | hitm.Scale = Vector3.new(3,3,3.5) | |
| 939 | coroutine.wrap(function() | |
| 940 | swait(120) | |
| 941 | for i = 0,1.1 do | |
| 942 | swait() | |
| 943 | hitpt.Transparency = i | |
| 944 | end | |
| 945 | hitpt:Destroy() | |
| 946 | end)() | |
| 947 | Effects.Block.Create(BrickColor.new("Bright yellow"), gun.CFrame*CFrame.new(0,.6,.3), 0,0,0,1,1,1, 0.05)
| |
| 948 | shots = shots - 1 | |
| 949 | for i=0,1,.2 do | |
| 950 | swait() | |
| 951 | PlayAnimationFromTable({
| |
| 952 | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 953 | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), | |
| 954 | CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698), | |
| 955 | CFrame.new(-0.516991675, 0.65931946, -0.711421967, 0, -0.499999166, 0.866025925, 0.766044796, -0.556670487, -0.321393073, 0.642787218, 0.663414717, 0.383021772), | |
| 956 | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 957 | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 958 | }, .3, false) | |
| 959 | end | |
| 960 | for i=0,1,.2 do | |
| 961 | swait() | |
| 962 | PlayAnimationFromTable({
| |
| 963 | CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 964 | CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), | |
| 965 | CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886), | |
| 966 | CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414), | |
| 967 | CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 968 | CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 969 | }, .3, false) | |
| 970 | end | |
| 971 | if shots == 0 then | |
| 972 | so(865772287,gun,1,1) | |
| 973 | for i=0,1.3,.1 do | |
| 974 | swait() | |
| 975 | PlayAnimationFromTable({
| |
| 976 | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 977 | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), | |
| 978 | CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698), | |
| 979 | CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736), | |
| 980 | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 981 | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 982 | }, .3, false) | |
| 983 | end | |
| 984 | local MagPartt = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000033, 0.399999976, 1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 985 | MagPartt.CFrame = gun.CFrame * CFrame.new(0,-.5,-.5) * CFrame.Angles(0,0,0) | |
| 986 | coroutine.wrap(function() | |
| 987 | swait(5) | |
| 988 | MagPartt.CanCollide = true | |
| 989 | swait(120) | |
| 990 | for i = 0,1.1 do | |
| 991 | swait() | |
| 992 | MagPartt.Transparency = i | |
| 993 | end | |
| 994 | MagPartt:Destroy() | |
| 995 | end)() | |
| 996 | swait(10) | |
| 997 | local MagPart = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(.2,.4,1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 998 | local Weld = New("ManualWeld",MagPart,"Weld",{Part0 = MagPart,Part1 = chara["Left Arm"],C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)*CFrame.Angles(math.rad(90),math.rad(90),math.rad(0)),C1 = CFrame.new(0.200001717, -1.20000005, -0.200000286, 1, 0, 0, 0, 0, 1, 0, -1, 0),})
| |
| 999 | for i=0,1.4,.2 do | |
| 1000 | swait() | |
| 1001 | PlayAnimationFromTable({
| |
| 1002 | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 1003 | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), | |
| 1004 | CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698), | |
| 1005 | CFrame.new(-0.516991675, 0.65931946, -0.711421967, 0, -0.499999166, 0.866025925, 0.766044796, -0.556670487, -0.321393073, 0.642787218, 0.663414717, 0.383021772), | |
| 1006 | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 1007 | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 1008 | }, .3, false) | |
| 1009 | end | |
| 1010 | MagPart:Destroy() | |
| 1011 | swait(5) | |
| 1012 | for i=0,1,.2 do | |
| 1013 | swait() | |
| 1014 | PlayAnimationFromTable({
| |
| 1015 | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 1016 | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), | |
| 1017 | CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362), | |
| 1018 | CFrame.new(-0.629211903, 0.930547178, -0.87133497, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948), | |
| 1019 | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 1020 | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 1021 | }, .3, false) | |
| 1022 | end | |
| 1023 | so(506273075,gun,1,1) | |
| 1024 | for i=0,1,.2 do | |
| 1025 | swait() | |
| 1026 | PlayAnimationFromTable({
| |
| 1027 | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 1028 | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), | |
| 1029 | CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362), | |
| 1030 | CFrame.new(-0.629361629, 0.793605626, -0.495871037, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948), | |
| 1031 | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 1032 | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 1033 | }, .3, false) | |
| 1034 | end | |
| 1035 | for i=0,1,.2 do | |
| 1036 | swait() | |
| 1037 | PlayAnimationFromTable({
| |
| 1038 | CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 1039 | CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), | |
| 1040 | CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362), | |
| 1041 | CFrame.new(-0.629211903, 0.930547178, -0.87133497, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948), | |
| 1042 | CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 1043 | CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 1044 | }, .3, false) | |
| 1045 | end | |
| 1046 | shots = 7 | |
| 1047 | swait(10) | |
| 1048 | for i=0,1,.2 do | |
| 1049 | swait() | |
| 1050 | PlayAnimationFromTable({
| |
| 1051 | CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
| 1052 | CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849), | |
| 1053 | CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886), | |
| 1054 | CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414), | |
| 1055 | CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 1056 | CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1), | |
| 1057 | }, .3, false) | |
| 1058 | end | |
| 1059 | end | |
| 1060 | until zhold == false | |
| 1061 | swait(5) | |
| 1062 | ref:Destroy() | |
| 1063 | so(211134014,gun,1,1) | |
| 1064 | for i=0,1,.1 do | |
| 1065 | swait() | |
| 1066 | PlayAnimationFromTable({
| |
| 1067 | CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698), | |
| 1068 | CFrame.new(-0.0421711877, 1.49999738, -0.0331315249, 0.852868021, -0.0612752885, -0.518518507, 0.17364794, 0.969846606, 0.171008661, 0.492404759, -0.235887513, 0.837791562), | |
| 1069 | CFrame.new(0.611007333, -0.00932076573, -0.639356554, 0.653100669, 0.696805716, -0.296515375, -0.748181939, 0.533255994, -0.394793421, -0.116975725, 0.479687244, 0.869607329), | |
| 1070 | CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736), | |
| 1071 | CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), | |
| 1072 | CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767), | |
| 1073 | }, .3, false) | |
| 1074 | end | |
| 1075 | gweld.Part0 = Torso | |
| 1076 | gweld.C0 = gdefc0 | |
| 1077 | Humanoid.WalkSpeed = 16 | |
| 1078 | attack = false | |
| 1079 | end | |
| 1080 | ||
| 1081 | local Jails = Instance.new("Model",chara)
| |
| 1082 | Jails.Name = "Jails" | |
| 1083 | function arrest() | |
| 1084 | attack = true | |
| 1085 | if Mouse.Target~= nil then | |
| 1086 | local dude = Mouse.Target.Parent | |
| 1087 | local ply = game:service'Players':GetPlayerFromCharacter(dude) | |
| 1088 | if dude:FindFirstChildOfClass("Humanoid") then
| |
| 1089 | Humanoid.WalkSpeed = 0 | |
| 1090 | for i,v in pairs(dude:children()) do | |
| 1091 | if v:IsA("LocalScript") or v:IsA("Tool") then
| |
| 1092 | v:Destroy() | |
| 1093 | end | |
| 1094 | end | |
| 1095 | local haed = dude:FindFirstChild("Head")
| |
| 1096 | local JailCell = New("Model",Jails,"JailCell",{})
| |
| 1097 | local SpawnPart = New("Part",JailCell,"SpawnPart",{Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(-76.1000137, 3.00000596, -1.99999905, 1, 0, 0, 0, 0, 1, 0, -1, 0),Anchored = true,CanCollide = false,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1098 | local removescriptspart = New("Part",JailCell,"removescriptspart",{Transparency = 1,Transparency = 1,Size = Vector3.new(16, 9, 13),CFrame = CFrame.new(-69.5999985, 5.5000062, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,CanCollide = false,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1099 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(6, 9, 1),CFrame = CFrame.new(-75.0999985, 5.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1100 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(19, 1, 16),CFrame = CFrame.new(-69.5999985, 0.50000602, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1101 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-68.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1102 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1103 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 9, 16),CFrame = CFrame.new(-78.5999985, 5.5000062, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1104 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-77.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1105 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1106 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-69.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1107 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1108 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-62.3000031, 2.70000601, 0.600000381, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1109 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.400000006, 0.200000003, 0.800000012),CFrame = CFrame.new(-61.5, 3.10000563, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 1110 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(35, 1, 6),CFrame = CFrame.new(-69.5999985, 0.50000602, 12, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1111 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 2.50000572, 4.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1112 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(0.400000006, 0.400000006, 0.400000036),CFrame = CFrame.new(-61.2999992, 3.40000558, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 1113 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 5.5000062, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1114 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 16),CFrame = CFrame.new(-85.0999985, 0.50000602, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1115 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-65.8999939, 2.10000563, -4.79999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1116 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 0.200000003, 2.00000024),CFrame = CFrame.new(-62.1000023, 2.30000591, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1117 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.19999993, 0.600000024, 0.400000036),CFrame = CFrame.new(-65.1000061, 2.10000563, -4.19999886, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1118 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 0.600000143, 0.400000155),CFrame = CFrame.new(-61.3000031, 2.70000529, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1119 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-62.3000031, 2.70000505, 2.19999886, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1120 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.Granite,Size = Vector3.new(1.19999981, 0.400000036, 1.20000005),CFrame = CFrame.new(-62.1000023, 2.60000587, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0509804, 0.411765, 0.67451),})
| |
| 1121 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.Glass,Reflectance = 1,Size = Vector3.new(2, 2.80000019, 0.200000003),CFrame = CFrame.new(-61.1999969, 5.20000648, 1.40000057, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.929412, 0.917647, 0.917647),})
| |
| 1122 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Metal,Size = Vector3.new(0.599999964, 0.200000033, 0.200000003),CFrame = CFrame.new(-64.5999985, 3.70000505, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 1123 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.39999998, 1.20000005, 1.39999998),CFrame = CFrame.new(-61.8000031, 1.6000061, 1.39999962, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1124 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.19999993, 0.600000024, 0.400000036),CFrame = CFrame.new(-62.9000015, 2.70000601, 1.3999958, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1125 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-71.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1126 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1127 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 0.200000003, 2.00000024),CFrame = CFrame.new(-65.0999985, 1.70000601, -5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1128 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.39999998, 0.600000024, 1.39999998),CFrame = CFrame.new(-65.0999985, 1.30000627, -5.29999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1129 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-67.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1130 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1131 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-74.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1132 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1133 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-71.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1134 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1135 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(19, 1, 16),CFrame = CFrame.new(-69.5999985, 10.5000114, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1136 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Bright blue"),Material = Enum.Material.Granite,Size = Vector3.new(1.19999981, 0.400000036, 1.20000005),CFrame = CFrame.new(-65.0999985, 2.00000572, -5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0509804, 0.411765, 0.67451),})
| |
| 1137 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-72.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1138 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1139 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-76.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1140 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1141 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-75.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1142 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1143 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.99999976, 0.400000095, 6),CFrame = CFrame.new(-76.1000137, 2.6000061, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1144 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2, 2.40000033, 0.400000155),CFrame = CFrame.new(-65.0999985, 3.00000525, -5.79999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1145 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999946, 0.600000024, 1.60000014),CFrame = CFrame.new(-64.3000031, 2.10000491, -4.79999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1146 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-81.0999985, 0.50000602, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1147 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-70.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1148 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1149 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-73.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1150 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1151 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,Size = Vector3.new(3.99999976, 0.400000036, 8),CFrame = CFrame.new(-76.1000137, 2.20000601, -2, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 1152 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 9, 16),CFrame = CFrame.new(-60.5999985, 5.5000062, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1153 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-77.5999985, 1.50000584, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1154 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1155 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 4, 1),CFrame = CFrame.new(-70.5999985, 6.0000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1156 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1157 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.99999976, 0.400000095, 2),CFrame = CFrame.new(-76.1000137, 2.6000061, -5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 1158 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 4.50000572, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1159 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 3.50000572, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1160 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 1.50000584, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1161 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 7.5000062, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1162 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 6.5000062, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1163 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 9.50000572, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1164 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 3, 1),CFrame = CFrame.new(-81.0999985, 2.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1165 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-81.0999985, 0.50000602, 7.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1166 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 3, 21),CFrame = CFrame.new(-86.5999985, 2.50000596, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1167 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 8.50000572, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1168 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(6, 9, 1),CFrame = CFrame.new(-64.0999985, 5.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1169 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(5, 3, 1),CFrame = CFrame.new(-69.5999985, 2.50000572, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1170 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(5, 2, 1),CFrame = CFrame.new(-69.5999985, 9.00000572, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1171 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-81.0999985, 10.5000114, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1172 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-62.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1173 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1174 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-74.5999985, 1.50000584, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1175 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1176 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-74.5999985, 1.50000584, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1177 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1178 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-77.5999985, 1.50000584, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1179 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1180 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-69.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1181 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1182 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-66.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1183 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1184 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-67.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1185 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1186 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-65.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1187 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1188 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-68.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1189 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1190 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-64.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1191 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1192 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-63.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1193 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1194 | Part = New("Part",JailCell,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1, 9, 1),CFrame = CFrame.new(-61.5999985, 5.5000062, 8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.356863, 0.364706, 0.411765),})
| |
| 1195 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 0.5),})
| |
| 1196 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 6.5000062, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1197 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 2.50000572, 4.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1198 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 10.5000114, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1199 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 4.50000572, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1200 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 3.50000572, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1201 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 8.50000572, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1202 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 9.50000572, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1203 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 16),CFrame = CFrame.new(-54.0999985, 0.50000602, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1204 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-58.0999985, 0.50000602, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1205 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 5.5000062, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1206 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 3),CFrame = CFrame.new(-58.0999985, 0.50000602, 7.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1207 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 7.5000062, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1208 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 1, 1),CFrame = CFrame.new(-58.0999985, 1.50000584, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1209 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(1, 3, 21),CFrame = CFrame.new(-52.5999985, 2.50000596, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1210 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(4, 3, 1),CFrame = CFrame.new(-58.0999985, 2.5000062, -6.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1211 | Part = New("Part",JailCell,"Part",{Material = Enum.Material.Concrete,Size = Vector3.new(35, 3, 1),CFrame = CFrame.new(-69.5999985, 2.50000596, 14.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1212 | JailCell:MoveTo(pos) | |
| 1213 | removescriptspart.Touched:connect(function(hit) | |
| 1214 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= chara then
| |
| 1215 | for i,v in pairs(hit.Parent:children()) do | |
| 1216 | if v:IsA("LocalScript") or v:IsA("Tool") then
| |
| 1217 | v:Destroy() | |
| 1218 | end | |
| 1219 | end | |
| 1220 | end | |
| 1221 | end) | |
| 1222 | for _, v in pairs(chara:children()) do | |
| 1223 | if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
| |
| 1224 | do | |
| 1225 | local p = v:clone() | |
| 1226 | p.Name = "trail" | |
| 1227 | p.Parent = workspace | |
| 1228 | p.Transparency = 0.5 | |
| 1229 | p.Anchored = true | |
| 1230 | p.BrickColor = BrickColor.White() | |
| 1231 | p.Material = "Neon" | |
| 1232 | p:BreakJoints() | |
| 1233 | p.CanCollide = false | |
| 1234 | if v == chara.Head then | |
| 1235 | for a, b in pairs(p:children()) do | |
| 1236 | if b:IsA("Sound") then
| |
| 1237 | b:Destroy() | |
| 1238 | end | |
| 1239 | end | |
| 1240 | end | |
| 1241 | coroutine.resume(coroutine.create(function() | |
| 1242 | for i = 1, 50 do | |
| 1243 | swait() | |
| 1244 | p.Transparency = i / 50 | |
| 1245 | end | |
| 1246 | p:Destroy() | |
| 1247 | end)) | |
| 1248 | end | |
| 1249 | end | |
| 1250 | if v.className == "Accessory" then | |
| 1251 | end | |
| 1252 | end | |
| 1253 | so(1055279036,Torso,1,3) | |
| 1254 | if haed~=nil then | |
| 1255 | haed.Anchored = true | |
| 1256 | Head.CFrame = haed.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(0,math.rad(180),0) | |
| 1257 | end | |
| 1258 | for i=0,1,.1 do | |
| 1259 | swait() | |
| 1260 | PlayAnimationFromTable({
| |
| 1261 | CFrame.new(0.174721688, 0, -0.147934705, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388), | |
| 1262 | CFrame.new(3.35276127e-06, 1.44895828, -0.0894558877, 0.939692616, 3.12924385e-07, -0.342020482, 0.0593909845, 0.98480773, 0.163176119, 0.336824477, -0.173648328, 0.925416529), | |
| 1263 | CFrame.new(1.5, 0.499998093, -0.40000084, 0.939692676, -0.342020601, 0, 0, 0, -1, 0.342020601, 0.939692676, 0), | |
| 1264 | CFrame.new(-1.52924228, 0.286380947, -3.51718177e-06, 0.939692855, 0.342019916, 2.08616257e-07, -0.342019856, 0.939692736, -1.5155652e-07, -2.08616257e-07, 8.94069672e-08, 1.00000024), | |
| 1265 | CFrame.new(0.499998987, -2.00000095, -1.14738941e-06, 0.939692676, 0, -0.342020601, 0, 1, 0, 0.342020601, 0, 0.939692676), | |
| 1266 | CFrame.new(-0.499998212, -2.00000095, 1.90734909e-06, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024), | |
| 1267 | }, .3, false) | |
| 1268 | end | |
| 1269 | chatfunc("You are under arrest! Now face your sentence!")
| |
| 1270 | swait(50) | |
| 1271 | local soaa = Instance.new("Sound",haed)
| |
| 1272 | soaa.Volume = 1 | |
| 1273 | local cho = math.random(1,5) | |
| 1274 | if cho == 1 then | |
| 1275 | soaa.SoundId = "rbxassetid://111896685" | |
| 1276 | elseif cho == 2 then | |
| 1277 | soaa.SoundId = "rbxassetid://535528169" | |
| 1278 | elseif cho == 3 then | |
| 1279 | soaa.SoundId = "rbxassetid://1080363252" | |
| 1280 | elseif cho == 4 then | |
| 1281 | soaa.SoundId = "rbxassetid://147758746" | |
| 1282 | elseif cho == 5 then | |
| 1283 | soaa.SoundId = "rbxassetid://626777433" | |
| 1284 | soaa.Volume = .3 | |
| 1285 | soaa.TimePosition = 1 | |
| 1286 | end | |
| 1287 | game:service'Debris':AddItem(soaa,6) | |
| 1288 | soaa:Play() | |
| 1289 | if haed~=nil then | |
| 1290 | haed.Anchored = false | |
| 1291 | end | |
| 1292 | Humanoid.WalkSpeed = 16 | |
| 1293 | local jc = JailCell | |
| 1294 | if ply~=nil then | |
| 1295 | local p = ply | |
| 1296 | coroutine.wrap(function() | |
| 1297 | while true do | |
| 1298 | swait() | |
| 1299 | if p~=nil and p.Character ~= nil and p.Character:FindFirstChild("Head") and jc ~= nil then
| |
| 1300 | if (p.Character:FindFirstChild("Head").Position - removescriptspart.Position).magnitude >= 10 then
| |
| 1301 | p.Character:FindFirstChild("Head").CFrame = SpawnPart.CFrame*CFrame.new(0,2,0)
| |
| 1302 | end | |
| 1303 | elseif p==nil then | |
| 1304 | jc:Destroy() | |
| 1305 | break | |
| 1306 | elseif jc==nil then | |
| 1307 | break | |
| 1308 | end | |
| 1309 | end | |
| 1310 | end)() | |
| 1311 | coroutine.wrap(function() | |
| 1312 | while true do | |
| 1313 | swait() | |
| 1314 | if p~=nil and p.Character ~= nil then | |
| 1315 | for i,v in pairs(p.Character:children()) do | |
| 1316 | if v:IsA("LocalScript") or v:IsA("Tool") then
| |
| 1317 | if v:IsA("LocalScript") then
| |
| 1318 | v.Disabled = true | |
| 1319 | end | |
| 1320 | v:Destroy() | |
| 1321 | end | |
| 1322 | end | |
| 1323 | end | |
| 1324 | end | |
| 1325 | end)() | |
| 1326 | p.CharacterAdded:connect(function() | |
| 1327 | if p~=nil and p.Character ~= nil and p.Character:FindFirstChild("Head") and jc~=nil then
| |
| 1328 | p.Character:FindFirstChild("Head").CFrame = SpawnPart.CFrame*CFrame.new(0,2,0)
| |
| 1329 | end | |
| 1330 | end) | |
| 1331 | elseif ply == nil then | |
| 1332 | coroutine.wrap(function() | |
| 1333 | local ch = dude | |
| 1334 | while true do | |
| 1335 | swait() | |
| 1336 | if ch ~= nil and ch:FindFirstChild("Head") and jc~=nil and jc:FindFirstChild("SpawnPart")~=nil then
| |
| 1337 | if (ch:FindFirstChild("Head").Position - removescriptspart.Position).magnitude >= 10 then
| |
| 1338 | ch:FindFirstChild("Head").CFrame = SpawnPart.CFrame*CFrame.new(0,2,0)
| |
| 1339 | end | |
| 1340 | elseif ch.Parent==nil then | |
| 1341 | jc:Destroy() | |
| 1342 | break | |
| 1343 | elseif jc.Parent==nil then | |
| 1344 | break | |
| 1345 | end | |
| 1346 | end | |
| 1347 | end)() | |
| 1348 | end | |
| 1349 | end | |
| 1350 | end | |
| 1351 | attack = false | |
| 1352 | end | |
| 1353 | ||
| 1354 | ||
| 1355 | qhold = false | |
| 1356 | justsprinted = false | |
| 1357 | function sprint() | |
| 1358 | attack = true | |
| 1359 | --print("supurinto?")
| |
| 1360 | --justsprinted = true | |
| 1361 | --coroutine.wrap(function() | |
| 1362 | --swait(10) | |
| 1363 | --justsprinted = false | |
| 1364 | --end)() | |
| 1365 | repeat | |
| 1366 | swait() | |
| 1367 | PlayAnimationFromTable({
| |
| 1368 | CFrame.new(-2.4138464e-07, 0.123327732, -0.188363045, 1, -4.38293796e-07, 1.20420327e-06, 0, 0.939692736, 0.342019886, -1.28148622e-06, -0.342019916, 0.939692736) * CFrame.new(0, 0- .08 * math.cos((sine/2.5)), 0), | |
| 1369 | CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
| 1370 | CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0, 0, -.6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0), | |
| 1371 | CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, .6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0), | |
| 1372 | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0), | |
| 1373 | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0), | |
| 1374 | }, .3, false) | |
| 1375 | Humanoid.WalkSpeed = 40 | |
| 1376 | until qhold == false or Torso.Velocity == Vector3.new(0,0,0) | |
| 1377 | --print'sutoppu' | |
| 1378 | Humanoid.WalkSpeed = 16 | |
| 1379 | attack = false | |
| 1380 | end | |
| 1381 | ||
| 1382 | ||
| 1383 | ||
| 1384 | Mouse.Button1Down:connect(function() | |
| 1385 | if attack == false then | |
| 1386 | if Anim == "Jump" or Anim == "Fall" then | |
| 1387 | asmek() | |
| 1388 | else | |
| 1389 | smek() | |
| 1390 | end | |
| 1391 | end | |
| 1392 | end) | |
| 1393 | ||
| 1394 | local sprintt = 0 | |
| 1395 | ||
| 1396 | ||
| 1397 | Mouse.KeyDown:connect(function(k) | |
| 1398 | k = k:lower() | |
| 1399 | if k=='m' then | |
| 1400 | if mus.IsPlaying == true then | |
| 1401 | mus:Stop() | |
| 1402 | elseif mus.IsPaused == true then | |
| 1403 | mus:Play() | |
| 1404 | end | |
| 1405 | end | |
| 1406 | if attack == false then | |
| 1407 | if k == 'q' then | |
| 1408 | qhold = true | |
| 1409 | sprint() | |
| 1410 | elseif k == 'x' then | |
| 1411 | arrest() | |
| 1412 | elseif k == 'z' then | |
| 1413 | zhold = true | |
| 1414 | shoot() | |
| 1415 | elseif k == 'p' then | |
| 1416 | movejails() | |
| 1417 | end | |
| 1418 | end | |
| 1419 | end) | |
| 1420 | ||
| 1421 | ||
| 1422 | Mouse.KeyUp:connect(function(k) | |
| 1423 | k = k:lower() | |
| 1424 | if k == 'q' then | |
| 1425 | qhold = false | |
| 1426 | elseif k == 'z' then | |
| 1427 | zhold = false | |
| 1428 | end | |
| 1429 | end) | |
| 1430 | ||
| 1431 | ||
| 1432 | coroutine.wrap(function() | |
| 1433 | while 1 do | |
| 1434 | swait() | |
| 1435 | if doe <= 360 then | |
| 1436 | doe = doe + 2 | |
| 1437 | else | |
| 1438 | doe = 0 | |
| 1439 | end | |
| 1440 | end | |
| 1441 | end)() | |
| 1442 | while true do | |
| 1443 | swait() | |
| 1444 | for i, v in pairs(chara:GetChildren()) do | |
| 1445 | if v:IsA("Part") then
| |
| 1446 | v.Material = "SmoothPlastic" | |
| 1447 | elseif v:IsA("Accessory") then
| |
| 1448 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 1449 | end | |
| 1450 | end | |
| 1451 | while true do | |
| 1452 | swait() | |
| 1453 | if sprintt >= 1 then | |
| 1454 | sprintt = sprintt - 1 | |
| 1455 | end | |
| 1456 | ||
| 1457 | if Head:FindFirstChild("mus")==nil then
| |
| 1458 | mus = Instance.new("Sound",Head)
| |
| 1459 | mus.Name = "mus" | |
| 1460 | mus.SoundId = "rbxassetid://328573277" | |
| 1461 | mus.Looped = true | |
| 1462 | mus.Volume = 9999999999999999999999999999 | |
| 1463 | mus:Play() | |
| 1464 | end | |
| 1465 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1466 | velocity = RootPart.Velocity.y | |
| 1467 | sine = sine + change | |
| 1468 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara) | |
| 1469 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1470 | Anim = "Jump" | |
| 1471 | if attack == false then | |
| 1472 | PlayAnimationFromTable({
| |
| 1473 | CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
| 1474 | CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855), | |
| 1475 | CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012), | |
| 1476 | CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012), | |
| 1477 | CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
| 1478 | CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), | |
| 1479 | }, .3, false) | |
| 1480 | end | |
| 1481 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 1482 | Anim = "Fall" | |
| 1483 | if attack == false then | |
| 1484 | PlayAnimationFromTable({
| |
| 1485 | CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), | |
| 1486 | CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), | |
| 1487 | CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012), | |
| 1488 | CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012), | |
| 1489 | CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
| 1490 | CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), | |
| 1491 | }, .3, false) | |
| 1492 | end | |
| 1493 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 1494 | Anim = "Idle" | |
| 1495 | if attack == false then | |
| 1496 | change = 1 | |
| 1497 | PlayAnimationFromTable({
| |
| 1498 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0), | |
| 1499 | CFrame.new(0, 1.49999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1500 | CFrame.new(0.89930898, -0.180769742, 0.30436784, 0.766043901, 0.642788172, 8.56792951e-07, -0.556670964, 0.663412929, 0.500000715, 0.321393967, -0.383022994, 0.866024971), | |
| 1501 | CFrame.new(-0.899309754, -0.180769712, 0.304367989, 0.766043901, -0.642788172, -8.56792951e-07, 0.556670964, 0.663412929, 0.500000715, -0.321393967, -0.383022994, 0.866024971), | |
| 1502 | CFrame.new(0.5, -1.99999893, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
| 1503 | CFrame.new(-0.5, -1.99999893, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
| 1504 | }, .3, false) | |
| 1505 | end | |
| 1506 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 1507 | Anim = "Walk" | |
| 1508 | if attack == false then | |
| 1509 | PlayAnimationFromTable({
| |
| 1510 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 3.5), 0) * CFrame.Angles(0, 0, 0), | |
| 1511 | CFrame.new(-2.09923631e-14, 1.48262846, -0.0984891504, 1, -1.42108547e-14, 0, 0, 0.984807491, 0.173649743, 0, -0.173649758, 0.984807491), | |
| 1512 | CFrame.new(0.89930898, -0.180769742, 0.30436784, 0.766043901, 0.642788172, 8.56792951e-07, -0.556670964, 0.663412929, 0.500000715, 0.321393967, -0.383022994, 0.866024971), | |
| 1513 | CFrame.new(-0.899309754, -0.180769712, 0.304367989, 0.766043901, -0.642788172, -8.56792951e-07, 0.556670964, 0.663412929, 0.500000715, -0.321393967, -0.383022994, 0.866024971), | |
| 1514 | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0), | |
| 1515 | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0), | |
| 1516 | }, .3, false) | |
| 1517 | end | |
| 1518 | end | |
| 1519 | if 0 < #Effects then | |
| 1520 | for e = 1, #Effects do | |
| 1521 | if Effects[e] ~= nil then | |
| 1522 | local Thing = Effects[e] | |
| 1523 | if Thing ~= nil then | |
| 1524 | local Part = Thing[1] | |
| 1525 | local Mode = Thing[2] | |
| 1526 | local Delay = Thing[3] | |
| 1527 | local IncX = Thing[4] | |
| 1528 | local IncY = Thing[5] | |
| 1529 | local IncZ = Thing[6] | |
| 1530 | if Thing[2] == "Shoot" then | |
| 1531 | local Look = Thing[1] | |
| 1532 | local move = 30 | |
| 1533 | if Thing[8] == 3 then | |
| 1534 | move = 10 | |
| 1535 | end | |
| 1536 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
| 1537 | if Thing[10] ~= nil then | |
| 1538 | da = pos | |
| 1539 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
| 1540 | cfa = CFrame.new(Thing[4], pos) | |
| 1541 | tehCF = cfa:lerp(cf2, 0.2) | |
| 1542 | Thing[1] = tehCF.lookVector | |
| 1543 | end | |
| 1544 | local mag = (Thing[4] - pos).magnitude | |
| 1545 | Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) | |
| 1546 | if Thing[8] == 2 then | |
| 1547 | Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1) | |
| 1548 | end | |
| 1549 | Thing[4] = Thing[4] + Look * move | |
| 1550 | Thing[3] = Thing[3] - 1 | |
| 1551 | if 2 < Thing[5] then | |
| 1552 | Thing[5] = Thing[5] - 0.3 | |
| 1553 | Thing[6] = Thing[6] - 0.3 | |
| 1554 | end | |
| 1555 | if hit ~= nil then | |
| 1556 | Thing[3] = 0 | |
| 1557 | if Thing[8] == 1 or Thing[8] == 3 then | |
| 1558 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 1559 | else | |
| 1560 | if Thing[8] == 2 then | |
| 1561 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 1562 | if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
| |
| 1563 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 1564 | ref.Anchored = true | |
| 1565 | ref.CFrame = CFrame.new(pos) | |
| 1566 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
| |
| 1567 | game:GetService("Debris"):AddItem(ref, 0.2)
| |
| 1568 | Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2) | |
| 1569 | Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
| |
| 1570 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
| 1571 | end | |
| 1572 | end | |
| 1573 | end | |
| 1574 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 1575 | ref.Anchored = true | |
| 1576 | ref.CFrame = CFrame.new(pos) | |
| 1577 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
| 1578 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 1579 | end | |
| 1580 | ||
| 1581 | if Thing[3] <= 0 then | |
| 1582 | table.remove(Effects, e) | |
| 1583 | end | |
| 1584 | end | |
| 1585 | do | |
| 1586 | do | |
| 1587 | if Thing[2] == "FireWave" then | |
| 1588 | if Thing[3] <= Thing[4] then | |
| 1589 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
| 1590 | Thing[3] = Thing[3] + 1 | |
| 1591 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
| 1592 | else | |
| 1593 | Part.Parent = nil | |
| 1594 | table.remove(Effects, e) | |
| 1595 | end | |
| 1596 | end | |
| 1597 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
| 1598 | if Thing[1].Transparency <= 1 then | |
| 1599 | if Thing[2] == "Block1" then | |
| 1600 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1601 | Mesh = Thing[7] | |
| 1602 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1603 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1604 | else | |
| 1605 | if Thing[2] == "Block2" then | |
| 1606 | Thing[1].CFrame = Thing[1].CFrame | |
| 1607 | Mesh = Thing[7] | |
| 1608 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1609 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1610 | else | |
| 1611 | if Thing[2] == "Fire" then | |
| 1612 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
| 1613 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1614 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1615 | else | |
| 1616 | if Thing[2] == "Cylinder" then | |
| 1617 | Mesh = Thing[7] | |
| 1618 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1619 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1620 | else | |
| 1621 | if Thing[2] == "Blood" then | |
| 1622 | Mesh = Thing[7] | |
| 1623 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
| 1624 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1625 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1626 | else | |
| 1627 | if Thing[2] == "Elec" then | |
| 1628 | Mesh = Thing[10] | |
| 1629 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1630 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1631 | else | |
| 1632 | if Thing[2] == "Disappear" then | |
| 1633 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1634 | else | |
| 1635 | if Thing[2] == "Shatter" then | |
| 1636 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1637 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1638 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1639 | Thing[6] = Thing[6] + Thing[5] | |
| 1640 | end | |
| 1641 | end | |
| 1642 | end | |
| 1643 | end | |
| 1644 | end | |
| 1645 | end | |
| 1646 | end | |
| 1647 | end | |
| 1648 | else | |
| 1649 | Part.Parent = nil | |
| 1650 | table.remove(Effects, e) | |
| 1651 | ||
| 1652 | ||
| 1653 | Player = game.Players.LocalPlayer | |
| 1654 | Character = Player.Character | |
| 1655 | local txt = Instance.new("BillboardGui", Character)
| |
| 1656 | txt.Adornee = Character.Head | |
| 1657 | txt.Name = "_status" | |
| 1658 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 1659 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 1660 | local text = Instance.new("TextLabel", txt)
| |
| 1661 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 1662 | text.FontSize = "Size24" | |
| 1663 | text.TextScaled = true | |
| 1664 | text.TextTransparency = 0 | |
| 1665 | text.BackgroundTransparency = 10 | |
| 1666 | text.TextTransparency = 0 | |
| 1667 | text.TextStrokeTransparency = 0 | |
| 1668 | text.Font = "Antique" | |
| 1669 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
| 1670 | text.Text = "Terra God" | |
| 1671 | ||
| 1672 | ||
| 1673 | local createstuff = function() | |
| 1674 | local stuff = Instance.new("Model")
| |
| 1675 | local collar = Instance.new("Part")
| |
| 1676 | local mesh = Instance.new("FileMesh")
| |
| 1677 | local part = Instance.new("Part")
| |
| 1678 | local mesh_2 = Instance.new("CylinderMesh")
| |
| 1679 | local weld = Instance.new("ManualWeld")
| |
| 1680 | local eye = Instance.new("Part")
| |
| 1681 | local mesh_3 = Instance.new("SpecialMesh")
| |
| 1682 | local decal = Instance.new("Decal")
| |
| 1683 | local hood = Instance.new("Part")
| |
| 1684 | local mesh_4 = Instance.new("FileMesh")
| |
| 1685 | local pillar = Instance.new("Part")
| |
| 1686 | local rock = Instance.new("Part")
| |
| 1687 | local core = Instance.new("Attachment")
| |
| 1688 | local emit = Instance.new("ParticleEmitter")
| |
| 1689 | local mesh_5 = Instance.new("FileMesh")
| |
| 1690 | local rockspike = Instance.new("Part")
| |
| 1691 | local mesh_6 = Instance.new("SpecialMesh")
| |
| 1692 | local shield = Instance.new("Part")
| |
| 1693 | local core_2 = Instance.new("Attachment")
| |
| 1694 | local spinepart = Instance.new("Part")
| |
| 1695 | local mesh_7 = Instance.new("FileMesh")
| |
| 1696 | local pants = Instance.new("Pants")
| |
| 1697 | local shirt = Instance.new("Shirt")
| |
| 1698 | local emit_2 = Instance.new("ParticleEmitter")
| |
| 1699 | local vortex = Instance.new("ParticleEmitter")
| |
| 1700 | local wave = Instance.new("ParticleEmitter")
| |
| 1701 | ||
| 1702 | stuff.Name = "Stuff" | |
| 1703 | stuff.Parent = workspace | |
| 1704 | collar.Size = Vector3.new(2.06, 0.2, 2.06) | |
| 1705 | collar.Name = "Collar" | |
| 1706 | collar.Material = Enum.Material.Metal | |
| 1707 | collar.TopSurface = Enum.SurfaceType.Smooth | |
| 1708 | collar.BottomSurface = Enum.SurfaceType.Smooth | |
| 1709 | collar.Parent = stuff | |
| 1710 | collar.CFrame = CFrame.new(5.8, 46.2, -39.9) | |
| 1711 | mesh.MeshId = "rbxassetid://1861264141" | |
| 1712 | mesh.Parent = collar | |
| 1713 | part.Size = Vector3.new(1.3, 0.2, 1.3) | |
| 1714 | part.BrickColor = BrickColor.new("Really black")
| |
| 1715 | part.Color = Color3.new(0.109804, 0.0823529, 0.117647) | |
| 1716 | part.Material = Enum.Material.Metal | |
| 1717 | part.TopSurface = Enum.SurfaceType.Smooth | |
| 1718 | part.BottomSurface = Enum.SurfaceType.Smooth | |
| 1719 | part.Parent = collar | |
| 1720 | part.CFrame = CFrame.new(5.8, 46.2, -39.9) | |
| 1721 | mesh_2.Scale = Vector3.new(1.1, 1.1, 1.1) | |
| 1722 | mesh_2.Parent = part | |
| 1723 | weld.Part0 = collar | |
| 1724 | weld.Name = "Weld" | |
| 1725 | weld.Part1 = part | |
| 1726 | weld.Parent = collar | |
| 1727 | eye.Anchored = true | |
| 1728 | eye.Size = Vector3.new(2, 2, 2) | |
| 1729 | eye.BottomSurface = Enum.SurfaceType.Smooth | |
| 1730 | eye.Material = Enum.Material.SmoothPlastic | |
| 1731 | eye.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 1732 | eye.Name = "Eye" | |
| 1733 | eye.TopSurface = Enum.SurfaceType.Smooth | |
| 1734 | eye.BrickColor = BrickColor.new("Institutional white")
| |
| 1735 | eye.Parent = stuff | |
| 1736 | eye.CFrame = CFrame.new(9.8, 45.845, -47.125) * CFrame.Angles(0, 0, 0) | |
| 1737 | mesh_3.MeshType = Enum.MeshType.Sphere | |
| 1738 | mesh_3.Parent = eye | |
| 1739 | decal.Texture = "http://www.roblox.com/asset/?id=743271416" | |
| 1740 | decal.Parent = eye | |
| 1741 | hood.Size = Vector3.new(2.919, 2.394, 2.891) | |
| 1742 | hood.BottomSurface = Enum.SurfaceType.Smooth | |
| 1743 | hood.Material = Enum.Material.SmoothPlastic | |
| 1744 | hood.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 1745 | hood.BrickColor = BrickColor.new("Really black")
| |
| 1746 | hood.TopSurface = Enum.SurfaceType.Smooth | |
| 1747 | hood.Name = "Hood" | |
| 1748 | hood.Parent = stuff | |
| 1749 | hood.CFrame = CFrame.new(9.8, 44.1, -48.7) | |
| 1750 | mesh_4.Scale = Vector3.new(1.55, 1.44, 1.4) | |
| 1751 | mesh_4.MeshId = "rbxassetid://16952952" | |
| 1752 | mesh_4.Parent = hood | |
| 1753 | pillar.Size = Vector3.new(1, 1, 1) | |
| 1754 | pillar.Name = "Pillar" | |
| 1755 | pillar.Material = Enum.Material.Metal | |
| 1756 | pillar.TopSurface = Enum.SurfaceType.Smooth | |
| 1757 | pillar.BottomSurface = Enum.SurfaceType.Smooth | |
| 1758 | pillar.Parent = stuff | |
| 1759 | pillar.CFrame = CFrame.new(-26.77, 0.5, -37.02) | |
| 1760 | rock.Size = Vector3.new(2.03, 1.978, 2.057) | |
| 1761 | rock.BottomSurface = Enum.SurfaceType.Smooth | |
| 1762 | rock.Name = "Rock" | |
| 1763 | rock.TopSurface = Enum.SurfaceType.Smooth | |
| 1764 | rock.Parent = stuff | |
| 1765 | rock.CFrame = CFrame.new(-0.43, 45.908, -52.56) | |
| 1766 | core.Name = "Core" | |
| 1767 | core.Parent = rock | |
| 1768 | emit.Enabled = false | |
| 1769 | emit.Lifetime = NumberRange.new(1, 4) | |
| 1770 | emit.Name = "Emit" | |
| 1771 | emit.Speed = NumberRange.new(0, 35) | |
| 1772 | emit.Rotation = NumberRange.new(0, 360) | |
| 1773 | emit.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.037, 0.754), NumberSequenceKeypoint.new(0.067, 0), NumberSequenceKeypoint.new(1, 0)})
| |
| 1774 | emit.VelocitySpread = 360 | |
| 1775 | emit.Texture = "rbxassetid://281633012" | |
| 1776 | emit.Acceleration = Vector3.new(0, -15, 0) | |
| 1777 | emit.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118)) | |
| 1778 | emit.RotSpeed = NumberRange.new(-25, 25) | |
| 1779 | emit.SpreadAngle = Vector2.new(360, 360) | |
| 1780 | emit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(0.255, 3.06), NumberSequenceKeypoint.new(0.649, 2.131), NumberSequenceKeypoint.new(1, 0)})
| |
| 1781 | emit.Parent = core | |
| 1782 | mesh_5.MeshId = "rbxassetid://1861108040" | |
| 1783 | mesh_5.Parent = rock | |
| 1784 | rockspike.Anchored = true | |
| 1785 | rockspike.Size = Vector3.new(3.364, 20, 3.364) | |
| 1786 | rockspike.BottomSurface = Enum.SurfaceType.Smooth | |
| 1787 | rockspike.Material = Enum.Material.Grass | |
| 1788 | rockspike.Color = Color3.new(0.423529, 0.345098, 0.294118) | |
| 1789 | rockspike.Name = "RockSpike" | |
| 1790 | rockspike.TopSurface = Enum.SurfaceType.Smooth | |
| 1791 | rockspike.BrickColor = BrickColor.new("Pine Cone")
| |
| 1792 | rockspike.Parent = stuff | |
| 1793 | rockspike.CFrame = CFrame.new(-0.43, 46.208, -29.96) | |
| 1794 | mesh_6.TextureId = "rbxassetid://136560096" | |
| 1795 | mesh_6.MeshType = Enum.MeshType.FileMesh | |
| 1796 | mesh_6.MeshId = "rbxassetid://1861231635" | |
| 1797 | mesh_6.Parent = rockspike | |
| 1798 | shield.Size = Vector3.new(1, 1, 1) | |
| 1799 | shield.Name = "Shield" | |
| 1800 | shield.Material = Enum.Material.Metal | |
| 1801 | shield.TopSurface = Enum.SurfaceType.Smooth | |
| 1802 | shield.BottomSurface = Enum.SurfaceType.Smooth | |
| 1803 | shield.Parent = stuff | |
| 1804 | shield.CFrame = CFrame.new(-26.77, 0.5, -37.02) | |
| 1805 | core_2.Name = "Core" | |
| 1806 | core_2.Parent = shield | |
| 1807 | spinepart.CanCollide = false | |
| 1808 | spinepart.Size = Vector3.new(0.3, 0.3, 0.6) | |
| 1809 | spinepart.BrickColor = BrickColor.new("Institutional white")
| |
| 1810 | spinepart.BottomSurface = Enum.SurfaceType.Smooth | |
| 1811 | spinepart.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
| 1812 | spinepart.Name = "SpinePart" | |
| 1813 | spinepart.TopSurface = Enum.SurfaceType.Smooth | |
| 1814 | spinepart.Parent = stuff | |
| 1815 | spinepart.CFrame = CFrame.new(-24.33, 46.208, -52.56) | |
| 1816 | mesh_7.MeshId = "rbxassetid://1861166416" | |
| 1817 | mesh_7.Parent = spinepart | |
| 1818 | pants.Name = "Pants" | |
| 1819 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=1614573917" | |
| 1820 | pants.Parent = stuff | |
| 1821 | shirt.Name = "Shirt" | |
| 1822 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1604092628" | |
| 1823 | shirt.Parent = stuff | |
| 1824 | emit_2.Enabled = false | |
| 1825 | emit_2.Lifetime = NumberRange.new(1, 4) | |
| 1826 | emit_2.Name = "Emit" | |
| 1827 | emit_2.Speed = NumberRange.new(0, 35) | |
| 1828 | emit_2.Rotation = NumberRange.new(0, 360) | |
| 1829 | emit_2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.037, 0.754), NumberSequenceKeypoint.new(0.067, 0), NumberSequenceKeypoint.new(1, 0)})
| |
| 1830 | emit_2.VelocitySpread = 360 | |
| 1831 | emit_2.Texture = "rbxassetid://281633012" | |
| 1832 | emit_2.Acceleration = Vector3.new(0, -15, 0) | |
| 1833 | emit_2.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118)) | |
| 1834 | emit_2.RotSpeed = NumberRange.new(-25, 25) | |
| 1835 | emit_2.SpreadAngle = Vector2.new(360, 360) | |
| 1836 | emit_2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0.5), NumberSequenceKeypoint.new(1, 0)})
| |
| 1837 | emit_2.Parent = stuff | |
| 1838 | vortex.Enabled = false | |
| 1839 | vortex.Name = "Vortex" | |
| 1840 | vortex.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.3, 0.5), NumberSequenceKeypoint.new(1, 0.5)})
| |
| 1841 | vortex.Lifetime = NumberRange.new(1) | |
| 1842 | vortex.Rate = 0 | |
| 1843 | vortex.Speed = NumberRange.new(0) | |
| 1844 | vortex.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118)) | |
| 1845 | vortex.Rotation = NumberRange.new(0, 360) | |
| 1846 | vortex.ZOffset = -2 | |
| 1847 | vortex.RotSpeed = NumberRange.new(360) | |
| 1848 | vortex.LightEmission = 1 | |
| 1849 | vortex.Texture = "rbxassetid://1084969997" | |
| 1850 | vortex.LockedToPart = true | |
| 1851 | vortex.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0)})
| |
| 1852 | vortex.Parent = stuff | |
| 1853 | wave.Enabled = false | |
| 1854 | wave.Lifetime = NumberRange.new(0.3) | |
| 1855 | wave.Name = "Wave" | |
| 1856 | wave.Speed = NumberRange.new(0) | |
| 1857 | wave.LightEmission = 1 | |
| 1858 | wave.Rate = 1 | |
| 1859 | wave.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.17, 0.393), NumberSequenceKeypoint.new(0.334, 0.661), NumberSequenceKeypoint.new(0.535, 0.836), NumberSequenceKeypoint.new(1, 1)})
| |
| 1860 | wave.Texture = "rbxassetid://1084991215" | |
| 1861 | wave.Rotation = NumberRange.new(-180, 180) | |
| 1862 | wave.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0)})
| |
| 1863 | wave.ZOffset = 1 | |
| 1864 | wave.Parent = stuff | |
| 1865 | for i,v in pairs(stuff:GetChildren()) do | |
| 1866 | v.Parent = script | |
| 1867 | end | |
| 1868 | end | |
| 1869 | ||
| 1870 | createstuff() | |
| 1871 | ||
| 1872 | ||
| 1873 | ||
| 1874 | ||
| 1875 | ||
| 1876 | wait(0.2) | |
| 1877 | ||
| 1878 | Player = game:GetService("Players").LocalPlayer
| |
| 1879 | PlayerGui = Player.PlayerGui | |
| 1880 | Cam = workspace.CurrentCamera | |
| 1881 | Backpack = Player.Backpack | |
| 1882 | Character = Player.Character | |
| 1883 | Humanoid = Character.Humanoid | |
| 1884 | Mouse = Player:GetMouse() | |
| 1885 | RootPart = Character["HumanoidRootPart"] | |
| 1886 | Torso = Character["Torso"] | |
| 1887 | Head = Character["Head"] | |
| 1888 | RightArm = Character["Right Arm"] | |
| 1889 | LeftArm = Character["Left Arm"] | |
| 1890 | RightLeg = Character["Right Leg"] | |
| 1891 | LeftLeg = Character["Left Leg"] | |
| 1892 | RootJoint = RootPart["RootJoint"] | |
| 1893 | Neck = Torso["Neck"] | |
| 1894 | RightShoulder = Torso["Right Shoulder"] | |
| 1895 | LeftShoulder = Torso["Left Shoulder"] | |
| 1896 | RightHip = Torso["Right Hip"] | |
| 1897 | LeftHip = Torso["Left Hip"] | |
| 1898 | ||
| 1899 | IT = Instance.new | |
| 1900 | CF = CFrame.new | |
| 1901 | VT = Vector3.new | |
| 1902 | RAD = math.rad | |
| 1903 | C3 = Color3.new | |
| 1904 | UD2 = UDim2.new | |
| 1905 | BRICKC = BrickColor.new | |
| 1906 | ANGLES = CFrame.Angles | |
| 1907 | EULER = CFrame.fromEulerAnglesXYZ | |
| 1908 | COS = math.cos | |
| 1909 | ACOS = math.acos | |
| 1910 | SIN = math.sin | |
| 1911 | ASIN = math.asin | |
| 1912 | ABS = math.abs | |
| 1913 | MRANDOM = math.random | |
| 1914 | FLOOR = math.floor | |
| 1915 | ||
| 1916 | --//=================================\\ | |
| 1917 | --|| USEFUL VALUES | |
| 1918 | --\\=================================// | |
| 1919 | ||
| 1920 | Animation_Speed = 3 | |
| 1921 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 1922 | local Speed = 35 | |
| 1923 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 1924 | local NECKC0 = CF(0, 1.75, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 1925 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 1926 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 1927 | local DAMAGEMULTIPLIER = 1 | |
| 1928 | local ANIM = "Idle" | |
| 1929 | local ATTACK = false | |
| 1930 | local EQUIPPED = false | |
| 1931 | local HOLD = false | |
| 1932 | local COMBO = 1 | |
| 1933 | local Rooted = false | |
| 1934 | local SINE = 0 | |
| 1935 | local KEYHOLD = false | |
| 1936 | local CHANGE = 2 / Animation_Speed | |
| 1937 | local WALKINGANIM = false | |
| 1938 | local VALUE1 = false | |
| 1939 | local VALUE2 = false | |
| 1940 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 1941 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 1942 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 1943 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 1944 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 1945 | WEAPONGUI.Name = "Weapon GUI" | |
| 1946 | local Effects = IT("Folder", Character)
| |
| 1947 | Effects.Name = "Effects" | |
| 1948 | local ANIMATOR = Humanoid.Animator | |
| 1949 | local ANIMATE = Character.Animate | |
| 1950 | local UNANCHOR = true | |
| 1951 | local PLAYSONG = true | |
| 1952 | local EXTRATRANS = 0 | |
| 1953 | ||
| 1954 | --//=================================\\ | |
| 1955 | --\\=================================// | |
| 1956 | ||
| 1957 | ||
| 1958 | --//=================================\\ | |
| 1959 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 1960 | --\\=================================// | |
| 1961 | ||
| 1962 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 1963 | ArtificialHB.Name = "ArtificialHB" | |
| 1964 | ||
| 1965 | script:WaitForChild("ArtificialHB")
| |
| 1966 | ||
| 1967 | frame = Frame_Speed | |
| 1968 | tf = 0 | |
| 1969 | allowframeloss = false | |
| 1970 | tossremainder = false | |
| 1971 | lastframe = tick() | |
| 1972 | script.ArtificialHB:Fire() | |
| 1973 | ||
| 1974 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 1975 | tf = tf + s | |
| 1976 | if tf >= frame then | |
| 1977 | if allowframeloss then | |
| 1978 | script.ArtificialHB:Fire() | |
| 1979 | lastframe = tick() | |
| 1980 | else | |
| 1981 | for i = 1, math.floor(tf / frame) do | |
| 1982 | script.ArtificialHB:Fire() | |
| 1983 | end | |
| 1984 | lastframe = tick() | |
| 1985 | end | |
| 1986 | if tossremainder then | |
| 1987 | tf = 0 | |
| 1988 | else | |
| 1989 | tf = tf - frame * math.floor(tf / frame) | |
| 1990 | end | |
| 1991 | end | |
| 1992 | end) | |
| 1993 | ||
| 1994 | --//=================================\\ | |
| 1995 | --\\=================================// | |
| 1996 | ||
| 1997 | --//=================================\\ | |
| 1998 | --|| SOME FUNCTIONS | |
| 1999 | --\\=================================// | |
| 2000 | ||
| 2001 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 2002 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 2003 | end | |
| 2004 | ||
| 2005 | function PositiveAngle(NUMBER) | |
| 2006 | if NUMBER >= 0 then | |
| 2007 | NUMBER = 0 | |
| 2008 | end | |
| 2009 | return NUMBER | |
| 2010 | end | |
| 2011 | ||
| 2012 | function NegativeAngle(NUMBER) | |
| 2013 | if NUMBER <= 0 then | |
| 2014 | NUMBER = 0 | |
| 2015 | end | |
| 2016 | return NUMBER | |
| 2017 | end | |
| 2018 | ||
| 2019 | function Swait(NUMBER) | |
| 2020 | if NUMBER == 0 or NUMBER == nil then | |
| 2021 | ArtificialHB.Event:wait() | |
| 2022 | else | |
| 2023 | for i = 1, NUMBER do | |
| 2024 | ArtificialHB.Event:wait() | |
| 2025 | end | |
| 2026 | end | |
| 2027 | end | |
| 2028 | ||
| 2029 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 2030 | local NEWMESH = IT(MESH) | |
| 2031 | if MESH == "SpecialMesh" then | |
| 2032 | NEWMESH.MeshType = MESHTYPE | |
| 2033 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 2034 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 2035 | end | |
| 2036 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 2037 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 2038 | end | |
| 2039 | end | |
| 2040 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 2041 | NEWMESH.Scale = SCALE | |
| 2042 | NEWMESH.Parent = PARENT | |
| 2043 | return NEWMESH | |
| 2044 | end | |
| 2045 | ||
| 2046 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 2047 | local NEWPART = IT("Part")
| |
| 2048 | NEWPART.formFactor = FORMFACTOR | |
| 2049 | NEWPART.Reflectance = REFLECTANCE | |
| 2050 | NEWPART.Transparency = TRANSPARENCY | |
| 2051 | NEWPART.CanCollide = false | |
| 2052 | NEWPART.Locked = true | |
| 2053 | NEWPART.Anchored = true | |
| 2054 | if ANCHOR == false then | |
| 2055 | NEWPART.Anchored = false | |
| 2056 | end | |
| 2057 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 2058 | NEWPART.Name = NAME | |
| 2059 | NEWPART.Size = SIZE | |
| 2060 | NEWPART.Position = Torso.Position | |
| 2061 | NEWPART.Material = MATERIAL | |
| 2062 | NEWPART:BreakJoints() | |
| 2063 | NEWPART.Parent = PARENT | |
| 2064 | return NEWPART | |
| 2065 | end | |
| 2066 | ||
| 2067 | local function weldBetween(a, b) | |
| 2068 | local weldd = Instance.new("ManualWeld")
| |
| 2069 | weldd.Part0 = a | |
| 2070 | weldd.Part1 = b | |
| 2071 | weldd.C0 = CFrame.new() | |
| 2072 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 2073 | weldd.Parent = a | |
| 2074 | return weldd | |
| 2075 | end | |
| 2076 | ||
| 2077 | ||
| 2078 | function QuaternionFromCFrame(cf) | |
| 2079 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 2080 | local trace = m00 + m11 + m22 | |
| 2081 | if trace > 0 then | |
| 2082 | local s = math.sqrt(1 + trace) | |
| 2083 | local recip = 0.5 / s | |
| 2084 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 2085 | else | |
| 2086 | local i = 0 | |
| 2087 | if m11 > m00 then | |
| 2088 | i = 1 | |
| 2089 | end | |
| 2090 | if m22 > (i == 0 and m00 or m11) then | |
| 2091 | i = 2 | |
| 2092 | end | |
| 2093 | if i == 0 then | |
| 2094 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 2095 | local recip = 0.5 / s | |
| 2096 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 2097 | elseif i == 1 then | |
| 2098 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 2099 | local recip = 0.5 / s | |
| 2100 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 2101 | elseif i == 2 then | |
| 2102 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 2103 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 2104 | end | |
| 2105 | end | |
| 2106 | end | |
| 2107 | ||
| 2108 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 2109 | local xs, ys, zs = x + x, y + y, z + z | |
| 2110 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 2111 | local xx = x * xs | |
| 2112 | local xy = x * ys | |
| 2113 | local xz = x * zs | |
| 2114 | local yy = y * ys | |
| 2115 | local yz = y * zs | |
| 2116 | local zz = z * zs | |
| 2117 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 2118 | end | |
| 2119 | ||
| 2120 | function QuaternionSlerp(a, b, t) | |
| 2121 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 2122 | local startInterp, finishInterp; | |
| 2123 | if cosTheta >= 0.0001 then | |
| 2124 | if (1 - cosTheta) > 0.0001 then | |
| 2125 | local theta = ACOS(cosTheta) | |
| 2126 | local invSinTheta = 1 / SIN(theta) | |
| 2127 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 2128 | finishInterp = SIN(t * theta) * invSinTheta | |
| 2129 | else | |
| 2130 | startInterp = 1 - t | |
| 2131 | finishInterp = t | |
| 2132 | end | |
| 2133 | else | |
| 2134 | if (1 + cosTheta) > 0.0001 then | |
| 2135 | local theta = ACOS(-cosTheta) | |
| 2136 | local invSinTheta = 1 / SIN(theta) | |
| 2137 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 2138 | finishInterp = SIN(t * theta) * invSinTheta | |
| 2139 | else | |
| 2140 | startInterp = t - 1 | |
| 2141 | finishInterp = t | |
| 2142 | end | |
| 2143 | end | |
| 2144 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 2145 | end | |
| 2146 | ||
| 2147 | function Clerp(a, b, t) | |
| 2148 | local qa = {QuaternionFromCFrame(a)}
| |
| 2149 | local qb = {QuaternionFromCFrame(b)}
| |
| 2150 | local ax, ay, az = a.x, a.y, a.z | |
| 2151 | local bx, by, bz = b.x, b.y, b.z | |
| 2152 | local _t = 1 - t | |
| 2153 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 2154 | end | |
| 2155 | ||
| 2156 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 2157 | local frame = IT("Frame")
| |
| 2158 | frame.BackgroundTransparency = TRANSPARENCY | |
| 2159 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 2160 | frame.Position = POSITION | |
| 2161 | frame.Size = SIZE | |
| 2162 | frame.BackgroundColor3 = COLOR | |
| 2163 | frame.BorderColor3 = BORDERCOLOR | |
| 2164 | frame.Name = NAME | |
| 2165 | frame.Parent = PARENT | |
| 2166 | return frame | |
| 2167 | end | |
| 2168 | ||
| 2169 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 2170 | local label = IT("TextLabel")
| |
| 2171 | label.BackgroundTransparency = 1 | |
| 2172 | label.Size = UD2(1, 0, 1, 0) | |
| 2173 | label.Position = UD2(0, 0, 0, 0) | |
| 2174 | label.TextColor3 = TEXTCOLOR | |
| 2175 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 2176 | label.TextTransparency = TRANSPARENCY | |
| 2177 | label.FontSize = TEXTFONTSIZE | |
| 2178 | label.Font = TEXTFONT | |
| 2179 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 2180 | label.TextScaled = false | |
| 2181 | label.Text = TEXT | |
| 2182 | label.Name = NAME | |
| 2183 | label.Parent = PARENT | |
| 2184 | return label | |
| 2185 | end | |
| 2186 | ||
| 2187 | function NoOutlines(PART) | |
| 2188 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 2189 | end | |
| 2190 | ||
| 2191 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 2192 | local NEWWELD = IT(TYPE) | |
| 2193 | NEWWELD.Part0 = PART0 | |
| 2194 | NEWWELD.Part1 = PART1 | |
| 2195 | NEWWELD.C0 = C0 | |
| 2196 | NEWWELD.C1 = C1 | |
| 2197 | NEWWELD.Parent = PARENT | |
| 2198 | return NEWWELD | |
| 2199 | end | |
| 2200 | ||
| 2201 | local S = IT("Sound")
| |
| 2202 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 2203 | local NEWSOUND = nil | |
| 2204 | coroutine.resume(coroutine.create(function() | |
| 2205 | NEWSOUND = S:Clone() | |
| 2206 | NEWSOUND.Parent = PARENT | |
| 2207 | NEWSOUND.Volume = VOLUME | |
| 2208 | NEWSOUND.Pitch = PITCH | |
| 2209 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 2210 | NEWSOUND:play() | |
| 2211 | if DOESLOOP == true then | |
| 2212 | NEWSOUND.Looped = true | |
| 2213 | else | |
| 2214 | repeat wait(1) until NEWSOUND.Playing == false | |
| 2215 | NEWSOUND:remove() | |
| 2216 | end | |
| 2217 | end)) | |
| 2218 | return NEWSOUND | |
| 2219 | end | |
| 2220 | ||
| 2221 | function CFrameFromTopBack(at, top, back) | |
| 2222 | local right = top:Cross(back) | |
| 2223 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 2224 | end | |
| 2225 | ||
| 2226 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2227 | function WACKYEFFECT(Table) | |
| 2228 | local TYPE = (Table.EffectType or "Sphere") | |
| 2229 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 2230 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 2231 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 2232 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 2233 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 2234 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 2235 | local ROTATION1 = (Table.RotationX or 0) | |
| 2236 | local ROTATION2 = (Table.RotationY or 0) | |
| 2237 | local ROTATION3 = (Table.RotationZ or 0) | |
| 2238 | local MATERIAL = (Table.Material or "Neon") | |
| 2239 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 2240 | local TIME = (Table.Time or 45) | |
| 2241 | local SOUNDID = (Table.SoundID or nil) | |
| 2242 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 2243 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 2244 | coroutine.resume(coroutine.create(function() | |
| 2245 | local PLAYSSOUND = false | |
| 2246 | local SOUND = nil | |
| 2247 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 2248 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 2249 | PLAYSSOUND = true | |
| 2250 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 2251 | end | |
| 2252 | EFFECT.Color = COLOR | |
| 2253 | local MSH = nil | |
| 2254 | if TYPE == "Sphere" then | |
| 2255 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 2256 | elseif TYPE == "Block" then | |
| 2257 | MSH = IT("BlockMesh",EFFECT)
| |
| 2258 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 2259 | elseif TYPE == "Wave" then | |
| 2260 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 2261 | elseif TYPE == "Ring" then | |
| 2262 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 2263 | elseif TYPE == "Slash" then | |
| 2264 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 2265 | elseif TYPE == "Round Slash" then | |
| 2266 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 2267 | elseif TYPE == "Swirl" then | |
| 2268 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 2269 | elseif TYPE == "Skull" then | |
| 2270 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 2271 | elseif TYPE == "Crystal" then | |
| 2272 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 2273 | end | |
| 2274 | if MSH ~= nil then | |
| 2275 | local MOVESPEED = nil | |
| 2276 | if MOVEDIRECTION ~= nil then | |
| 2277 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 2278 | end | |
| 2279 | local GROWTH = SIZE - ENDSIZE | |
| 2280 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 2281 | if TYPE == "Block" then | |
| 2282 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 2283 | else | |
| 2284 | EFFECT.CFrame = CFRAME | |
| 2285 | end | |
| 2286 | for LOOP = 1, TIME+1 do | |
| 2287 | Swait() | |
| 2288 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 2289 | if TYPE == "Wave" then | |
| 2290 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 2291 | end | |
| 2292 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 2293 | if TYPE == "Block" then | |
| 2294 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 2295 | else | |
| 2296 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 2297 | end | |
| 2298 | if MOVEDIRECTION ~= nil then | |
| 2299 | local ORI = EFFECT.Orientation | |
| 2300 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 2301 | EFFECT.Orientation = ORI | |
| 2302 | end | |
| 2303 | end | |
| 2304 | if PLAYSSOUND == false then | |
| 2305 | EFFECT:remove() | |
| 2306 | else | |
| 2307 | repeat Swait() until EFFECT:FindFirstChild("Sound") == nil
| |
| 2308 | EFFECT:remove() | |
| 2309 | end | |
| 2310 | else | |
| 2311 | if PLAYSSOUND == false then | |
| 2312 | EFFECT:remove() | |
| 2313 | else | |
| 2314 | repeat Swait() until EFFECT:FindFirstChild("Sound") == nil
| |
| 2315 | EFFECT:remove() | |
| 2316 | end | |
| 2317 | end | |
| 2318 | end)) | |
| 2319 | end | |
| 2320 | ||
| 2321 | function MakeForm(PART,TYPE) | |
| 2322 | if TYPE == "Cyl" then | |
| 2323 | local MSH = IT("CylinderMesh",PART)
| |
| 2324 | elseif TYPE == "Ball" then | |
| 2325 | local MSH = IT("SpecialMesh",PART)
| |
| 2326 | MSH.MeshType = "Sphere" | |
| 2327 | elseif TYPE == "Wedge" then | |
| 2328 | local MSH = IT("SpecialMesh",PART)
| |
| 2329 | MSH.MeshType = "Wedge" | |
| 2330 | end | |
| 2331 | end | |
| 2332 | ||
| 2333 | Debris = game:GetService("Debris")
| |
| 2334 | ||
| 2335 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 2336 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 2337 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 2338 | end | |
| 2339 | ||
| 2340 | local ROCK = script.Rock | |
| 2341 | ROCK.Parent = nil | |
| 2342 | function GetRock(FLOOROBJECT) | |
| 2343 | local Rock = ROCK:Clone() | |
| 2344 | Rock.Parent = Effects | |
| 2345 | if FLOOROBJECT ~= nil then | |
| 2346 | if FLOOROBJECT.Material ~= Enum.Material.Grass and FLOOROBJECT.Material ~= Enum.Material.Fabric then | |
| 2347 | Rock.Material = FLOOROBJECT.Material | |
| 2348 | Rock.Color = FLOOROBJECT.Color | |
| 2349 | else | |
| 2350 | Rock.Material = "Slate" | |
| 2351 | Rock.Color = BRICKC"Dirt brown".Color | |
| 2352 | end | |
| 2353 | else | |
| 2354 | Rock.Material = "Slate" | |
| 2355 | Rock.Color = BRICKC"Dirt brown".Color | |
| 2356 | end | |
| 2357 | Rock.Core.Emit.Color = ColorSequence.new(Rock.Color) | |
| 2358 | return Rock | |
| 2359 | end | |
| 2360 | ||
| 2361 | local SPIKE = script.RockSpike | |
| 2362 | SPIKE.Parent = nil | |
| 2363 | function GetSpike(FLOOROBJECT) | |
| 2364 | local Rock = SPIKE:Clone() | |
| 2365 | Rock.Parent = Effects | |
| 2366 | if FLOOROBJECT ~= nil then | |
| 2367 | if FLOOROBJECT.Material ~= Enum.Material.Grass and FLOOROBJECT.Material ~= Enum.Material.Fabric then | |
| 2368 | Rock.Material = FLOOROBJECT.Material | |
| 2369 | Rock.Color = FLOOROBJECT.Color | |
| 2370 | else | |
| 2371 | Rock.Material = "Slate" | |
| 2372 | Rock.Color = BRICKC"Dirt brown".Color | |
| 2373 | end | |
| 2374 | else | |
| 2375 | Rock.Material = "Slate" | |
| 2376 | Rock.Color = BRICKC"Dirt brown".Color | |
| 2377 | end | |
| 2378 | return Rock | |
| 2379 | end | |
| 2380 | ||
| 2381 | local SHIELD = script.Shield | |
| 2382 | SHIELD.Parent = nil | |
| 2383 | function GetShield(FLOOROBJECT) | |
| 2384 | local Rock = SHIELD:Clone() | |
| 2385 | Rock.Parent = Effects | |
| 2386 | if FLOOROBJECT ~= nil then | |
| 2387 | Rock.Material = FLOOROBJECT.Material | |
| 2388 | Rock.Color = FLOOROBJECT.Color | |
| 2389 | else | |
| 2390 | Rock.Material = "Slate" | |
| 2391 | Rock.Color = BRICKC"Dirt brown".Color | |
| 2392 | end | |
| 2393 | return Rock | |
| 2394 | end | |
| 2395 | ||
| 2396 | function RespondToImpact(Object,Rock) | |
| 2397 | local BREAKABLEMATERIALS = {{Enum.Material.Glass,5,1571353313},{Enum.Material.Ice,2,151284431},{Enum.Material.Wood,1.3,131144461},{Enum.Material.WoodPlanks,1,131144461},{Enum.Material.Cobblestone,0.2,130972023}}
| |
| 2398 | for i = 1, #BREAKABLEMATERIALS do | |
| 2399 | local MATERIAL = BREAKABLEMATERIALS[i] | |
| 2400 | if Object.Material == MATERIAL[1] then | |
| 2401 | local A = Rock.Size.Magnitude | |
| 2402 | local B = Object.Size.Magnitude | |
| 2403 | if B < A*MATERIAL[2] then | |
| 2404 | WaveParticles(Object.Position,B*3,Object.Color) | |
| 2405 | Object:remove() | |
| 2406 | CreateSound(MATERIAL[3], Rock, 5, MRANDOM(8,12)/10, false) | |
| 2407 | end | |
| 2408 | end | |
| 2409 | end | |
| 2410 | end | |
| 2411 | ||
| 2412 | function WaveParticles(Position,Size,Color) | |
| 2413 | local BASE = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Shockwave", VT(0,0,0), true)
| |
| 2414 | BASE.CFrame = CF(Position) | |
| 2415 | local A = IT("Attachment",BASE)
| |
| 2416 | local WAVE = script.Wave:Clone() | |
| 2417 | WAVE.Parent = A | |
| 2418 | WAVE.Size = NumberSequence.new(0,Size) | |
| 2419 | WAVE.Color = ColorSequence.new(Color) | |
| 2420 | Debris:AddItem(BASE,0.5) | |
| 2421 | WAVE:Emit(1) | |
| 2422 | end | |
| 2423 | ||
| 2424 | --//=================================\\ | |
| 2425 | --|| WEAPON CREATION | |
| 2426 | --\\=================================// | |
| 2427 | ||
| 2428 | local sick = Instance.new("Sound",Character)
| |
| 2429 | ||
| 2430 | local PILLAR = script.Pillar | |
| 2431 | PILLAR.Parent = nil | |
| 2432 | local HOOD = script.Hood | |
| 2433 | HOOD.Parent = Character | |
| 2434 | HOOD.CFrame = Torso.CFrame*CFrame.new(0,2.2,0) | |
| 2435 | weldBetween(Torso,HOOD) | |
| 2436 | Head:ClearAllChildren() | |
| 2437 | Head.Transparency = 1 | |
| 2438 | local EYE = script.Eye | |
| 2439 | EYE.Parent = Character | |
| 2440 | EYE.CFrame = Head.CFrame*CF(0,0,0) | |
| 2441 | EYE.Anchored = false | |
| 2442 | weldBetween(EYE,Head) | |
| 2443 | local COLLAR = script.Collar | |
| 2444 | COLLAR.Parent = Character | |
| 2445 | COLLAR.CFrame = Torso.CFrame*CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 2446 | weldBetween(Torso,COLLAR) | |
| 2447 | local BONE = script.SpinePart | |
| 2448 | BONE.Parent = nil | |
| 2449 | local TAIL = {}
| |
| 2450 | local LASTPART = Torso | |
| 2451 | local SIZE = BONE.Size | |
| 2452 | for i = 1, 23 do | |
| 2453 | local PART = BONE:Clone() | |
| 2454 | PART.Anchored = false | |
| 2455 | PART.Parent = Character | |
| 2456 | PART.Size = SIZE*((25-i)/10)/1.6 | |
| 2457 | if LASTPART == Torso then | |
| 2458 | local WELD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, PART, CF(0,-0.8,0.6)* ANGLES(RAD(-55), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2459 | LASTPART = PART | |
| 2460 | table.insert(TAIL,WELD) | |
| 2461 | else | |
| 2462 | local WELD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, PART, CF(0,-PART.Size.Y/1.2,-0.01), CF(0, 0, 0))
| |
| 2463 | LASTPART = PART | |
| 2464 | table.insert(TAIL,WELD) | |
| 2465 | end | |
| 2466 | end | |
| 2467 | for _, c in pairs(Character:GetChildren()) do | |
| 2468 | if c:IsA("BasePart") then
| |
| 2469 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 2470 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 2471 | end | |
| 2472 | if c == Head then | |
| 2473 | if c:FindFirstChild("face") then
| |
| 2474 | c.face:remove() | |
| 2475 | end | |
| 2476 | end | |
| 2477 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then | |
| 2478 | c:remove() | |
| 2479 | end | |
| 2480 | end | |
| 2481 | local BODY = {}
| |
| 2482 | for _, c in pairs(Character:GetDescendants()) do | |
| 2483 | if c:IsA("BasePart") and c.Name ~= "Handle" then
| |
| 2484 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
| 2485 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 2486 | end | |
| 2487 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
| |
| 2488 | elseif c:IsA("JointInstance") then
| |
| 2489 | table.insert(BODY,{c,c.Parent,nil,nil,nil})
| |
| 2490 | end | |
| 2491 | end | |
| 2492 | for e = 1, #BODY do | |
| 2493 | if BODY[e] ~= nil then | |
| 2494 | local STUFF = BODY[e] | |
| 2495 | local PART = STUFF[1] | |
| 2496 | local PARENT = STUFF[2] | |
| 2497 | local MATERIAL = STUFF[3] | |
| 2498 | local COLOR = STUFF[4] | |
| 2499 | local TRANSPARENCY = STUFF[5] | |
| 2500 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 2501 | PART.Material = MATERIAL | |
| 2502 | PART.Color = COLOR | |
| 2503 | PART.Transparency = TRANSPARENCY | |
| 2504 | end | |
| 2505 | PART.AncestryChanged:Connect(function() | |
| 2506 | PART.Parent = PARENT | |
| 2507 | end) | |
| 2508 | end | |
| 2509 | end | |
| 2510 | function refit() | |
| 2511 | Character.Parent = workspace | |
| 2512 | for e = 1, #BODY do | |
| 2513 | if BODY[e] ~= nil then | |
| 2514 | local STUFF = BODY[e] | |
| 2515 | local PART = STUFF[1] | |
| 2516 | local PARENT = STUFF[2] | |
| 2517 | local MATERIAL = STUFF[3] | |
| 2518 | local COLOR = STUFF[4] | |
| 2519 | local TRANSPARENCY = STUFF[5] | |
| 2520 | if PART:IsA("BasePart") and PART ~= RootPart then
| |
| 2521 | PART.Material = MATERIAL | |
| 2522 | PART.Color = COLOR | |
| 2523 | PART.Transparency = TRANSPARENCY+EXTRATRANS | |
| 2524 | end | |
| 2525 | if PART.Parent ~= PARENT then | |
| 2526 | Humanoid:remove() | |
| 2527 | PART.Parent = PARENT | |
| 2528 | Humanoid = IT("Humanoid",Character)
| |
| 2529 | end | |
| 2530 | end | |
| 2531 | end | |
| 2532 | end | |
| 2533 | ||
| 2534 | Humanoid.Died:connect(function() | |
| 2535 | refit() | |
| 2536 | end) | |
| 2537 | ||
| 2538 | --//=================================\\ | |
| 2539 | --|| DAMAGING | |
| 2540 | --\\=================================// | |
| 2541 | ||
| 2542 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
| 2543 | Damage = Damage * DAMAGEMULTIPLIER | |
| 2544 | if Humanoid.Health ~= 0 then | |
| 2545 | Humanoid.Health = Humanoid.Health - Damage | |
| 2546 | end | |
| 2547 | end | |
| 2548 | ||
| 2549 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL,ROCK) | |
| 2550 | local CHILDREN = workspace:GetDescendants() | |
| 2551 | for index, CHILD in pairs(CHILDREN) do | |
| 2552 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 2553 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2554 | if HUM then | |
| 2555 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2556 | if TORSO then | |
| 2557 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 2558 | if INSTAKILL == true or HUM.MaxHealth > 5000 then | |
| 2559 | CHILD:BreakJoints() | |
| 2560 | else | |
| 2561 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
| 2562 | ApplyDamage(HUM,DMG,TORSO) | |
| 2563 | end | |
| 2564 | if FLING > 0 then | |
| 2565 | for _, c in pairs(CHILD:GetChildren()) do | |
| 2566 | if c:IsA("BasePart") then
| |
| 2567 | local bv = Instance.new("BodyVelocity",c)
| |
| 2568 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 2569 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
| 2570 | Debris:AddItem(bv,0.05) | |
| 2571 | end | |
| 2572 | end | |
| 2573 | end | |
| 2574 | end | |
| 2575 | end | |
| 2576 | end | |
| 2577 | elseif CHILD:IsA("BasePart") and ROCK ~= nil then
| |
| 2578 | if (CHILD.Position - POSITION).Magnitude <= RANGE then | |
| 2579 | RespondToImpact(CHILD,ROCK) | |
| 2580 | end | |
| 2581 | end | |
| 2582 | end | |
| 2583 | end | |
| 2584 | ||
| 2585 | --//=================================\\ | |
| 2586 | --|| ATTACK FUNCTIONS AND STUFF | |
| 2587 | --\\=================================// | |
| 2588 | ||
| 2589 | function RockExplosion(Rock,Multiplier,Survive) | |
| 2590 | local EXPLOSION = Rock.Core:FindFirstChildOfClass("ParticleEmitter")
| |
| 2591 | EXPLOSION.Color = ColorSequence.new(Rock.Color) | |
| 2592 | local SIZE = (Rock.Size.Y*4)*Multiplier | |
| 2593 | EXPLOSION.Enabled = false | |
| 2594 | EXPLOSION.Speed = NumberRange.new(0,SIZE*5) | |
| 2595 | EXPLOSION.Size = NumberSequence.new(SIZE/15,0) | |
| 2596 | EXPLOSION:Emit(200,300) | |
| 2597 | WaveParticles(Rock.Position,SIZE*2,Rock.Color) | |
| 2598 | coroutine.resume(coroutine.create(function() | |
| 2599 | Rock:BreakJoints() | |
| 2600 | if Survive == nil then | |
| 2601 | Rock.Transparency = 1 | |
| 2602 | Rock.CanCollide = false | |
| 2603 | Rock.Anchored = true | |
| 2604 | Debris:AddItem(Rock,5) | |
| 2605 | end | |
| 2606 | CreateSound(165970126, Rock, 2, MRANDOM(8,12)/10, false) | |
| 2607 | ApplyAoE(Rock.Position,SIZE,25,30,35,false,Rock) | |
| 2608 | local HITFLOOR,HITPOS = Raycast(Rock.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, Rock.Size.Y/2, Character) | |
| 2609 | Swait() | |
| 2610 | if HITFLOOR then | |
| 2611 | WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SIZE*7,3,SIZE*7), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = HITFLOOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2612 | end | |
| 2613 | for i = 1, 5 do | |
| 2614 | WACKYEFFECT({Time = MRANDOM(15,55), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SIZE*5,0.2,SIZE*5), Transparency = 0.95, Transparency2 = 1, CFrame = CF(Rock.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Rock.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2615 | end | |
| 2616 | end)) | |
| 2617 | end | |
| 2618 | ||
| 2619 | function Bullet() | |
| 2620 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 2621 | ATTACK = true | |
| 2622 | Rooted = true | |
| 2623 | local GYRO = IT("BodyGyro",RootPart)
| |
| 2624 | GYRO.D = 2 | |
| 2625 | GYRO.P = 2000 | |
| 2626 | GYRO.MaxTorque = VT(0,4000000,0) | |
| 2627 | coroutine.resume(coroutine.create(function() | |
| 2628 | repeat | |
| 2629 | Swait() | |
| 2630 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 2631 | until ATTACK == false | |
| 2632 | GYRO:Remove() | |
| 2633 | end)) | |
| 2634 | local FLOOR = false | |
| 2635 | if HITFLOOR then | |
| 2636 | if HITFLOOR.Material ~= Enum.Material.Foil and HITFLOOR.Material ~= Enum.Material.Glass then | |
| 2637 | FLOOR = true | |
| 2638 | end | |
| 2639 | end | |
| 2640 | if FLOOR == true then | |
| 2641 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 2642 | Swait() | |
| 2643 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2644 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2645 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 2646 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 2647 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(-30), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2648 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2649 | end | |
| 2650 | for i=0, 0.25, 0.1 / Animation_Speed do | |
| 2651 | Swait() | |
| 2652 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2653 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2654 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2655 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2656 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2657 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2658 | end | |
| 2659 | local ROCKPLACED = false | |
| 2660 | local Rock = nil | |
| 2661 | if HITFLOOR.Anchored == true then | |
| 2662 | Rock = GetRock(HITFLOOR) | |
| 2663 | Rock.Core.Emit.Enabled = true | |
| 2664 | Rock.Size = VT(6,6,6) | |
| 2665 | Rock.CFrame = CF(RootPart.CFrame*CF(0,-9,-6).p,Mouse.Hit.p) | |
| 2666 | CreateSound(130972023, Rock, 2, MRANDOM(5,8)/10, false) | |
| 2667 | coroutine.resume(coroutine.create(function() | |
| 2668 | for i = 1, 30 do | |
| 2669 | Swait() | |
| 2670 | Rock.CFrame = Clerp(Rock.CFrame, CF(RootPart.CFrame*CF(0,1,-6).p,Mouse.Hit.p), 0.8 / Animation_Speed) | |
| 2671 | end | |
| 2672 | ROCKPLACED = true | |
| 2673 | Rock.Core.Emit.Enabled = false | |
| 2674 | end)) | |
| 2675 | else | |
| 2676 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 2677 | local TORSO = HITFLOOR.Parent:FindFirstChild("Torso") or HITFLOOR.Parent:FindFirstChild("UpperTorso")
| |
| 2678 | if TORSO then | |
| 2679 | Rock = TORSO | |
| 2680 | ROCK.Core:Clone().Parent = Rock | |
| 2681 | else | |
| 2682 | Rock = HITFLOOR | |
| 2683 | ROCK.Core:Clone().Parent = Rock | |
| 2684 | end | |
| 2685 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 2686 | local TORSO = HITFLOOR.Parent.Parent:FindFirstChild("Torso") or HITFLOOR.Parent.Parent:FindFirstChild("UpperTorso")
| |
| 2687 | if TORSO then | |
| 2688 | Rock = TORSO | |
| 2689 | ROCK.Core:Clone().Parent = Rock | |
| 2690 | else | |
| 2691 | Rock = HITFLOOR | |
| 2692 | ROCK.Core:Clone().Parent = Rock | |
| 2693 | end | |
| 2694 | else | |
| 2695 | Rock = HITFLOOR | |
| 2696 | ROCK.Core:Clone().Parent = Rock | |
| 2697 | end | |
| 2698 | Rock.Anchored = true | |
| 2699 | coroutine.resume(coroutine.create(function() | |
| 2700 | for i = 1, 30 do | |
| 2701 | Swait() | |
| 2702 | Rock.CFrame = Clerp(Rock.CFrame, CF(RootPart.CFrame*CF(0,1,-6).p,Mouse.Hit.p), 0.8 / Animation_Speed) | |
| 2703 | end | |
| 2704 | ROCKPLACED = true | |
| 2705 | end)) | |
| 2706 | end | |
| 2707 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 2708 | Swait() | |
| 2709 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2710 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2711 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2712 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2713 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2714 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2715 | end | |
| 2716 | repeat | |
| 2717 | Swait() | |
| 2718 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed) | |
| 2719 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
| 2720 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2721 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2722 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed) | |
| 2723 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2724 | until ROCKPLACED == true | |
| 2725 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 2726 | Swait() | |
| 2727 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
| 2728 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
| 2729 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2730 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2731 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
| 2732 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2733 | end | |
| 2734 | WaveParticles(Rock.Position,12,C3(1,1,1)) | |
| 2735 | CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false) | |
| 2736 | coroutine.resume(coroutine.create(function() | |
| 2737 | if Rock.Parent:FindFirstChildOfClass("Humanoid") == nil then
| |
| 2738 | for i = 1, 200 do | |
| 2739 | Swait() | |
| 2740 | Rock.CFrame = Rock.CFrame * CF(0,0,-1.2) | |
| 2741 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) | |
| 2742 | if HIT then | |
| 2743 | RespondToImpact(HIT,Rock) | |
| 2744 | break | |
| 2745 | end | |
| 2746 | end | |
| 2747 | RockExplosion(Rock,1) | |
| 2748 | else | |
| 2749 | for i = 1, 60 do | |
| 2750 | Swait() | |
| 2751 | Rock.CFrame = Rock.CFrame * CF(0,0,-2) | |
| 2752 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, 3, Character) | |
| 2753 | if HIT then | |
| 2754 | RespondToImpact(HIT,Rock) | |
| 2755 | break | |
| 2756 | end | |
| 2757 | end | |
| 2758 | RockExplosion(Rock,2) | |
| 2759 | end | |
| 2760 | end)) | |
| 2761 | for i=0, 0.4, 0.1 / Animation_Speed do | |
| 2762 | Swait() | |
| 2763 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
| 2764 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
| 2765 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2766 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2767 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
| 2768 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2769 | end | |
| 2770 | else | |
| 2771 | local GRAV = IT("BodyPosition",RootPart)
| |
| 2772 | GRAV.D = 250 | |
| 2773 | GRAV.P = 20000 | |
| 2774 | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) | |
| 2775 | GRAV.Position = RootPart.Position | |
| 2776 | local Rock = GetRock() | |
| 2777 | Rock.Size = VT(0,0,0) | |
| 2778 | Rock.CFrame = CF(RightLeg.CFrame*CF(0,-1,0).p,Mouse.Hit.p) | |
| 2779 | CreateSound(201858045, Rock, 1, MRANDOM(10,12)/10, false) | |
| 2780 | local DONEROCK = false | |
| 2781 | coroutine.resume(coroutine.create(function() | |
| 2782 | for i = 1, 15 do | |
| 2783 | Swait() | |
| 2784 | Rock.Size = Rock.Size + VT(0.1,0.1,0.1) | |
| 2785 | Rock.Size = Rock.Size * 1.1 | |
| 2786 | Rock.CFrame = CF(RightLeg.CFrame*CF(0,-1-Rock.Size.Y/2,0).p,Mouse.Hit.p) | |
| 2787 | end | |
| 2788 | DONEROCK = true | |
| 2789 | end)) | |
| 2790 | repeat | |
| 2791 | Swait() | |
| 2792 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-65), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2793 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2794 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2795 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2796 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(90), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2797 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2798 | until DONEROCK == true | |
| 2799 | local LOOP = 0 | |
| 2800 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 2801 | Swait() | |
| 2802 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-70), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2803 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2804 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2805 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2806 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(130), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2807 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2808 | end | |
| 2809 | WaveParticles(Rock.Position,5,C3(1,1,1)) | |
| 2810 | CreateSound(621557962, RightLeg, 1, MRANDOM(10,12)/10, false) | |
| 2811 | coroutine.resume(coroutine.create(function() | |
| 2812 | for i = 1, 300 do | |
| 2813 | Swait() | |
| 2814 | Rock.CFrame = Rock.CFrame * CF(0,0,-1.6) | |
| 2815 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) | |
| 2816 | if HIT then | |
| 2817 | RespondToImpact(HIT,Rock) | |
| 2818 | break | |
| 2819 | end | |
| 2820 | end | |
| 2821 | RockExplosion(Rock,1) | |
| 2822 | end)) | |
| 2823 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 2824 | Swait() | |
| 2825 | LOOP = LOOP + 15*3 | |
| 2826 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-65+(LOOP)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2827 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2828 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2829 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2830 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2831 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2832 | end | |
| 2833 | GRAV:remove() | |
| 2834 | end | |
| 2835 | ATTACK = false | |
| 2836 | Rooted = false | |
| 2837 | end | |
| 2838 | ||
| 2839 | function Melee() | |
| 2840 | ATTACK = true | |
| 2841 | Rooted = false | |
| 2842 | Speed = 12 | |
| 2843 | repeat | |
| 2844 | Swait() | |
| 2845 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-35)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2846 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 2847 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2848 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2849 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2850 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2851 | until KEYHOLD == false | |
| 2852 | Speed = 0 | |
| 2853 | local ROOT = nil | |
| 2854 | local TORS = nil | |
| 2855 | local HUMAN = nil | |
| 2856 | local DIST = 4 | |
| 2857 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 2858 | Swait() | |
| 2859 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
| 2860 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
| 2861 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2862 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2863 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2864 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2865 | end | |
| 2866 | for i=0, 1, 0.1 / Animation_Speed do | |
| 2867 | Swait() | |
| 2868 | local CHILDREN = workspace:GetDescendants() | |
| 2869 | for index, CHILD in pairs(CHILDREN) do | |
| 2870 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 2871 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 2872 | if HUM then | |
| 2873 | local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2874 | if TORSO and HUM.Health > 0 then | |
| 2875 | if (TORSO.Position - RightArm.Position).Magnitude <= DIST then | |
| 2876 | DIST = (TORSO.Position - RightArm.Position).Magnitude | |
| 2877 | ROOT = TORSO | |
| 2878 | HUMAN = HUM | |
| 2879 | TORS = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 2880 | end | |
| 2881 | end | |
| 2882 | end | |
| 2883 | end | |
| 2884 | end | |
| 2885 | if ROOT then | |
| 2886 | break | |
| 2887 | end | |
| 2888 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
| 2889 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
| 2890 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2891 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2892 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2893 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2894 | end | |
| 2895 | if ROOT then | |
| 2896 | local POSITIONED = false | |
| 2897 | coroutine.resume(coroutine.create(function() | |
| 2898 | ROOT.Anchored = true | |
| 2899 | local POS = RootPart.CFrame*CF(0,-3,-1) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
| 2900 | for i = 1, 25 do | |
| 2901 | ROOT.Anchored = true | |
| 2902 | Swait() | |
| 2903 | ROOT.CFrame = Clerp(ROOT.CFrame, POS, 0.8 / Animation_Speed) | |
| 2904 | end | |
| 2905 | POSITIONED = true | |
| 2906 | repeat Swait() ROOT.Anchored = true until ATTACK == false | |
| 2907 | ROOT.Anchored = false | |
| 2908 | end)) | |
| 2909 | repeat | |
| 2910 | Swait() | |
| 2911 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2912 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2913 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2914 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2915 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2916 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2917 | until POSITIONED == true | |
| 2918 | for i = 1, 3 do | |
| 2919 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 2920 | Swait() | |
| 2921 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2922 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2923 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 2924 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 2925 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(50), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2926 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2927 | end | |
| 2928 | for i=0, 0.15, 0.1 / Animation_Speed do | |
| 2929 | Swait() | |
| 2930 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2931 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2932 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2933 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2934 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2935 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2936 | end | |
| 2937 | local EMIT = script.Emit:Clone() | |
| 2938 | EMIT.Parent = TORS | |
| 2939 | EMIT.Size = NumberSequence.new(1,0) | |
| 2940 | EMIT:Emit(120) | |
| 2941 | Debris:AddItem(EMIT,5) | |
| 2942 | CreateSound(138186576, RightLeg, 1, MRANDOM(13,15)/10, false) | |
| 2943 | WaveParticles(TORS.Position,12,C3(1,1,1)) | |
| 2944 | ApplyAoE(RightLeg.Position,8,25,35,0,false) | |
| 2945 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(35,3,35), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORS.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2946 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(25,4,25), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORS.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2947 | for i=0, 0.25, 0.1 / Animation_Speed do | |
| 2948 | Swait() | |
| 2949 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2950 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2951 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2952 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2953 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2954 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2955 | end | |
| 2956 | if HUMAN.Health == 0 then | |
| 2957 | break | |
| 2958 | end | |
| 2959 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 2960 | Swait() | |
| 2961 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2962 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2963 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2964 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2965 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2966 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2967 | end | |
| 2968 | end | |
| 2969 | end | |
| 2970 | Speed = 25 | |
| 2971 | ATTACK = false | |
| 2972 | Rooted = false | |
| 2973 | end | |
| 2974 | ||
| 2975 | function Launch() | |
| 2976 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 2977 | if HITFLOOR then | |
| 2978 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(15,3,15), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 138186576, SoundPitch = 1, SoundVolume = 2})
| |
| 2979 | local P = PILLAR:Clone() | |
| 2980 | P.Color = HITFLOOR.Color | |
| 2981 | P.Material = HITFLOOR.Material | |
| 2982 | P.Parent = Effects | |
| 2983 | P.CFrame = CF(HITPOS-VT(0,4.5,0)) | |
| 2984 | coroutine.resume(coroutine.create(function() | |
| 2985 | for i = 1, 6 do | |
| 2986 | Swait() | |
| 2987 | P.CFrame = P.CFrame * CF(0,0.9,0) | |
| 2988 | end | |
| 2989 | wait(1) | |
| 2990 | for i = 1, 45 do | |
| 2991 | Swait() | |
| 2992 | P.Transparency =P.Transparency + 1/45 | |
| 2993 | end | |
| 2994 | P:remove() | |
| 2995 | end)) | |
| 2996 | RootPart.CFrame = RootPart.CFrame*CF(0,1,0) | |
| 2997 | RootPart.Velocity = VT(0,0,0) | |
| 2998 | local bv = Instance.new("BodyVelocity",RootPart)
| |
| 2999 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3000 | bv.velocity = CF(RootPart.Position,RootPart.Position+VT(0,100,0)).lookVector*350 | |
| 3001 | Debris:AddItem(bv,0.1) | |
| 3002 | end | |
| 3003 | end | |
| 3004 | ||
| 3005 | function Ravage() | |
| 3006 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 3007 | if HITFLOOR then | |
| 3008 | ATTACK = true | |
| 3009 | Rooted = false | |
| 3010 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 3011 | Swait() | |
| 3012 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 3013 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 3014 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3015 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3016 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3017 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3018 | end | |
| 3019 | WaveParticles(RightArm.CFrame*CF(0,-1,0).p,4,C3(1,1,1)) | |
| 3020 | Rooted = true | |
| 3021 | CreateSound(217767125, RightArm, 5, 1, false) | |
| 3022 | for i=0, 0.15, 0.1 / Animation_Speed do | |
| 3023 | Swait() | |
| 3024 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 3025 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 3026 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3027 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3028 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3029 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3030 | end | |
| 3031 | local HOLD = true | |
| 3032 | coroutine.resume(coroutine.create(function() | |
| 3033 | repeat | |
| 3034 | Swait() | |
| 3035 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
| 3036 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 3037 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.2) * ANGLES(RAD(145), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3038 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3039 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3040 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3041 | until HOLD == false | |
| 3042 | end)) | |
| 3043 | repeat | |
| 3044 | wait(0.3) | |
| 3045 | coroutine.resume(coroutine.create(function() | |
| 3046 | local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 3047 | if HITFLOOR then | |
| 3048 | if HITFLOOR.Anchored == true then | |
| 3049 | local ROCK = GetRock(HITFLOOR) | |
| 3050 | CreateSound(130972023, ROCK, 2, MRANDOM(8,12)/10, false) | |
| 3051 | ROCK.Size = VT(4,4,4)*(MRANDOM(8,12)/10) | |
| 3052 | ROCK.Core.Emit.Enabled = true | |
| 3053 | ROCK.CFrame = CF(HITPOS+VT(0,-6,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
| 3054 | local POS = ROCK.CFrame*CF(0,12,0) | |
| 3055 | for i = 1, 25 do | |
| 3056 | ROCK.Anchored = true | |
| 3057 | Swait() | |
| 3058 | ROCK.CFrame = Clerp(ROCK.CFrame, POS, 0.8 / Animation_Speed) | |
| 3059 | end | |
| 3060 | ROCK.Core.Emit.Enabled = false | |
| 3061 | wait(0.3) | |
| 3062 | RockExplosion(ROCK,1) | |
| 3063 | end | |
| 3064 | end | |
| 3065 | end)) | |
| 3066 | until KEYHOLD == false | |
| 3067 | wait(0.5) | |
| 3068 | HOLD = false | |
| 3069 | ATTACK = false | |
| 3070 | Rooted = false | |
| 3071 | end | |
| 3072 | end | |
| 3073 | ||
| 3074 | function Shield() | |
| 3075 | ATTACK = true | |
| 3076 | Rooted = false | |
| 3077 | local GYRO = IT("BodyGyro",RootPart)
| |
| 3078 | GYRO.D = 2 | |
| 3079 | GYRO.P = 2000 | |
| 3080 | GYRO.MaxTorque = VT(40000000000,4000000,40000000000) | |
| 3081 | local GRAV = IT("BodyPosition",RootPart)
| |
| 3082 | GRAV.D = 250 | |
| 3083 | GRAV.P = 20000 | |
| 3084 | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) | |
| 3085 | GRAV.Position = RootPart.Position | |
| 3086 | coroutine.resume(coroutine.create(function() | |
| 3087 | repeat | |
| 3088 | Swait() | |
| 3089 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 3090 | until ATTACK == false | |
| 3091 | GYRO:Remove() | |
| 3092 | GRAV:Remove() | |
| 3093 | end)) | |
| 3094 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 3095 | Swait() | |
| 3096 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80)), 1 / Animation_Speed) | |
| 3097 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
| 3098 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3099 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3100 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3101 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3102 | end | |
| 3103 | local Defence = GetShield() | |
| 3104 | Defence.Size = VT(0,2,0) | |
| 3105 | Defence.Parent = Effects | |
| 3106 | Defence.CFrame = RightArm.CFrame*CF(0,-6,0) * ANGLES(RAD(180), RAD(90), RAD(0)) | |
| 3107 | WaveParticles(Defence.Position,12,Defence.Color) | |
| 3108 | CreateSound(201858045, Defence, 2, MRANDOM(10,12)/10, false) | |
| 3109 | local FIX = Defence.AncestryChanged:Connect(function() | |
| 3110 | Defence.Parent = Effects | |
| 3111 | end) | |
| 3112 | for i = 1, 40 do | |
| 3113 | Swait() | |
| 3114 | Defence.Size = Defence.Size + VT(0.5,0,0.7) | |
| 3115 | Defence.CFrame = RightArm.CFrame*CF(0,-6,0) * ANGLES(RAD(180), RAD(90), RAD(0)) | |
| 3116 | end | |
| 3117 | repeat | |
| 3118 | Swait() | |
| 3119 | Defence.CFrame = RightArm.CFrame*CF(0,-6,0) * ANGLES(RAD(180), RAD(90), RAD(0)) | |
| 3120 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80)), 1 / Animation_Speed) | |
| 3121 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
| 3122 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3123 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3124 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3125 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3126 | until KEYHOLD == false | |
| 3127 | FIX:Disconnect() | |
| 3128 | coroutine.resume(coroutine.create(function() | |
| 3129 | for i = 1, 40 do | |
| 3130 | Swait() | |
| 3131 | Defence.Size = Defence.Size - VT(0.5,0,0.7) | |
| 3132 | end | |
| 3133 | WaveParticles(Defence.Position,12,Defence.Color) | |
| 3134 | Defence:remove() | |
| 3135 | end)) | |
| 3136 | ATTACK = false | |
| 3137 | Rooted = false | |
| 3138 | end | |
| 3139 | ||
| 3140 | function TwinMeteor() | |
| 3141 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character) | |
| 3142 | if HITFLOOR == nil then | |
| 3143 | ATTACK = true | |
| 3144 | Rooted = false | |
| 3145 | local GYRO = IT("BodyGyro",RootPart)
| |
| 3146 | GYRO.D = 2 | |
| 3147 | GYRO.P = 2000 | |
| 3148 | GYRO.MaxTorque = VT(40000000000,4000000,40000000000) | |
| 3149 | local GRAV = IT("BodyPosition",RootPart)
| |
| 3150 | GRAV.D = 250 | |
| 3151 | GRAV.P = 20000 | |
| 3152 | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) | |
| 3153 | GRAV.Position = RootPart.Position | |
| 3154 | coroutine.resume(coroutine.create(function() | |
| 3155 | repeat | |
| 3156 | Swait() | |
| 3157 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 3158 | until ATTACK == false | |
| 3159 | GYRO:Remove() | |
| 3160 | GRAV:Remove() | |
| 3161 | end)) | |
| 3162 | local CHARGED = false | |
| 3163 | coroutine.resume(coroutine.create(function() | |
| 3164 | repeat | |
| 3165 | Swait() | |
| 3166 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3167 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3168 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3169 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3170 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3171 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3172 | until CHARGED == true | |
| 3173 | end)) | |
| 3174 | local ROCK1 = GetRock() | |
| 3175 | local ROCK2 = GetRock() | |
| 3176 | local VORTEX1 = script.Vortex:Clone() | |
| 3177 | local VORTEX2 = script.Vortex:Clone() | |
| 3178 | VORTEX1.Parent = ROCK1.Core | |
| 3179 | VORTEX2.Parent = ROCK2.Core | |
| 3180 | ROCK1.Core.Emit.Enabled = true | |
| 3181 | ROCK2.Core.Emit.Enabled = true | |
| 3182 | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) | |
| 3183 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
| 3184 | CreateSound(1664710821, ROCK1, 10, MRANDOM(8,12)/10, false) | |
| 3185 | CreateSound(1664710821, ROCK2, 10, MRANDOM(8,12)/10, false) | |
| 3186 | for i = 1, 70 do | |
| 3187 | Swait() | |
| 3188 | ROCK1.Size = ROCK1.Size + VT(0.3,0.3,0.3) | |
| 3189 | ROCK2.Size = ROCK2.Size + VT(0.3,0.3,0.3) | |
| 3190 | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) | |
| 3191 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
| 3192 | VORTEX1.Size = NumberSequence.new(ROCK1.Size.Y*2,0) | |
| 3193 | VORTEX2.Size = NumberSequence.new(ROCK1.Size.Y*2,0) | |
| 3194 | VORTEX1:Emit(1) | |
| 3195 | VORTEX2:Emit(1) | |
| 3196 | end | |
| 3197 | CHARGED = true | |
| 3198 | for i=0, 1, 0.1 / Animation_Speed do | |
| 3199 | Swait() | |
| 3200 | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) | |
| 3201 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
| 3202 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3203 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3204 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3205 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3206 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3207 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3208 | end | |
| 3209 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 3210 | Swait() | |
| 3211 | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) | |
| 3212 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
| 3213 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
| 3214 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
| 3215 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3216 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3217 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3218 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3219 | end | |
| 3220 | coroutine.resume(coroutine.create(function() | |
| 3221 | local Rock = ROCK1 | |
| 3222 | WaveParticles(Rock.Position,30,C3(1,1,1)) | |
| 3223 | CreateSound(134012322, Rock, 2, MRANDOM(10,12)/10, false) | |
| 3224 | for i = 1, 200 do | |
| 3225 | Swait() | |
| 3226 | Rock.CFrame = Rock.CFrame * CF(0,0,-3.2) | |
| 3227 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) | |
| 3228 | if HIT then | |
| 3229 | RespondToImpact(HIT,Rock) | |
| 3230 | break | |
| 3231 | end | |
| 3232 | end | |
| 3233 | ApplyAoE(Rock.Position,ROCK.Size.Y,50,55,55,false) | |
| 3234 | for i = 1, 6 do | |
| 3235 | RockExplosion(Rock,1.5,true) | |
| 3236 | wait(1) | |
| 3237 | end | |
| 3238 | RockExplosion(Rock,1.5) | |
| 3239 | end)) | |
| 3240 | for i=0, 1, 0.1 / Animation_Speed do | |
| 3241 | Swait() | |
| 3242 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
| 3243 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
| 3244 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 1 / Animation_Speed) | |
| 3245 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3246 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3247 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3248 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3249 | end | |
| 3250 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 3251 | Swait() | |
| 3252 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
| 3253 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
| 3254 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
| 3255 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3256 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3257 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3258 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3259 | end | |
| 3260 | coroutine.resume(coroutine.create(function() | |
| 3261 | local Rock = ROCK2 | |
| 3262 | WaveParticles(Rock.Position,30,C3(1,1,1)) | |
| 3263 | CreateSound(134012322, Rock, 2, MRANDOM(10,12)/10, false) | |
| 3264 | for i = 1, 200 do | |
| 3265 | Swait() | |
| 3266 | Rock.CFrame = Rock.CFrame * CF(0,0,-3.2) | |
| 3267 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) | |
| 3268 | if HIT then | |
| 3269 | RespondToImpact(HIT,Rock) | |
| 3270 | break | |
| 3271 | end | |
| 3272 | end | |
| 3273 | ApplyAoE(Rock.Position,ROCK.Size.Y,50,55,55,false) | |
| 3274 | for i = 1, 6 do | |
| 3275 | RockExplosion(Rock,1.5,true) | |
| 3276 | wait(1) | |
| 3277 | end | |
| 3278 | RockExplosion(Rock,1.5) | |
| 3279 | end)) | |
| 3280 | for i=0, 1, 0.1 / Animation_Speed do | |
| 3281 | Swait() | |
| 3282 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed) | |
| 3283 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
| 3284 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3285 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(55), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3286 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3287 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3288 | end | |
| 3289 | ATTACK = false | |
| 3290 | Rooted = false | |
| 3291 | end | |
| 3292 | end | |
| 3293 | ||
| 3294 | function Spikes() | |
| 3295 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 12, Character) | |
| 3296 | if HITFLOOR then | |
| 3297 | ATTACK = true | |
| 3298 | Rooted = true | |
| 3299 | local GYRO = IT("BodyGyro",RootPart)
| |
| 3300 | GYRO.D = 2 | |
| 3301 | GYRO.P = 2000 | |
| 3302 | GYRO.MaxTorque = VT(0,4000000,0) | |
| 3303 | coroutine.resume(coroutine.create(function() | |
| 3304 | repeat | |
| 3305 | Swait() | |
| 3306 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 3307 | until ATTACK == false | |
| 3308 | GYRO:Remove() | |
| 3309 | end)) | |
| 3310 | for i=0, 1, 0.1 / Animation_Speed do | |
| 3311 | Swait() | |
| 3312 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3313 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3314 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 3315 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 3316 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(30), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3317 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3318 | end | |
| 3319 | for i=0, 0.25, 0.1 / Animation_Speed do | |
| 3320 | Swait() | |
| 3321 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3322 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3323 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3324 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3325 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3326 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3327 | end | |
| 3328 | CreateSound(165970126, RightLeg, 1, MRANDOM(13,15)/10, false) | |
| 3329 | WaveParticles(RightLeg.CFrame*CF(0,-1,0).p,15,C3(1,1,1)) | |
| 3330 | coroutine.resume(coroutine.create(function() | |
| 3331 | local CFRAME = RootPart.CFrame*CF(0,-3,0) | |
| 3332 | for i = 1, 60 do | |
| 3333 | Swait() | |
| 3334 | local SPIKE = GetSpike(HITFLOOR) | |
| 3335 | SPIKE.CFrame = CFRAME*CF(0,-11,-i*2) | |
| 3336 | ApplyAoE(CFRAME*CF(0,0,-i*2).p,4,10,35,15,false) | |
| 3337 | coroutine.resume(coroutine.create(function() | |
| 3338 | local POS = SPIKE.CFrame*CF(0,11,0) | |
| 3339 | for i = 1, 25 do | |
| 3340 | Swait() | |
| 3341 | SPIKE.CFrame = Clerp(SPIKE.CFrame, POS, 0.8 / Animation_Speed) | |
| 3342 | end | |
| 3343 | wait(0.2) | |
| 3344 | for i = 1, 45 do | |
| 3345 | Swait() | |
| 3346 | SPIKE.Transparency = SPIKE.Transparency + 1/45 | |
| 3347 | SPIKE.CFrame = SPIKE.CFrame * CF(0,-2/15,0) | |
| 3348 | end | |
| 3349 | SPIKE:remove() | |
| 3350 | end)) | |
| 3351 | end | |
| 3352 | end)) | |
| 3353 | wait(0.3) | |
| 3354 | ATTACK = false | |
| 3355 | Rooted = false | |
| 3356 | end | |
| 3357 | end | |
| 3358 | ||
| 3359 | function TakeOnMe() | |
| 3360 | Speed = 5 | |
| 3361 | local MEME = CreateSound(288703954, Effects, 2, 1, false) | |
| 3362 | ATTACK = true | |
| 3363 | Rooted = false | |
| 3364 | local DANCE = true | |
| 3365 | local KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
| 3366 | if NEWKEY == "p" then | |
| 3367 | DANCE = false | |
| 3368 | end | |
| 3369 | end) | |
| 3370 | PLAYSONG = false | |
| 3371 | while true do | |
| 3372 | for i = 1, 15 do | |
| 3373 | Swait() | |
| 3374 | MEME.Parent = Effects | |
| 3375 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3376 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3377 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3378 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3379 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3380 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3381 | end | |
| 3382 | if DANCE == false then | |
| 3383 | break | |
| 3384 | end | |
| 3385 | for i = 1, 15 do | |
| 3386 | Swait() | |
| 3387 | MEME.Parent = Effects | |
| 3388 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3389 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3390 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3391 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3392 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3393 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3394 | end | |
| 3395 | end | |
| 3396 | PLAYSONG = true | |
| 3397 | KEY:Disconnect() | |
| 3398 | MEME:remove() | |
| 3399 | Speed = 25 | |
| 3400 | ATTACK = false | |
| 3401 | Rooted = false | |
| 3402 | end | |
| 3403 | ||
| 3404 | function Noclip() | |
| 3405 | ATTACK = true | |
| 3406 | Rooted = true | |
| 3407 | UNANCHOR = false | |
| 3408 | RootPart.Anchored = true | |
| 3409 | local CLIPPING = true | |
| 3410 | local MOVEMENT = nil | |
| 3411 | CreateSound(96098241, Torso, 3, MRANDOM(9,12)/10, false) | |
| 3412 | for i = 1, 50 do | |
| 3413 | Swait() | |
| 3414 | EXTRATRANS = EXTRATRANS + 0.5/50 | |
| 3415 | RootPart.CFrame = RootPart.CFrame * CF(0,(1-(i/50))/4.3,0) | |
| 3416 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3417 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3418 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3419 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3420 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3421 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3422 | end | |
| 3423 | local AURA = CreateSound(1393698948, Torso, 3, 1, true) | |
| 3424 | local KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
| 3425 | if NEWKEY == "w" then | |
| 3426 | MOVEMENT = "Forward" | |
| 3427 | repeat | |
| 3428 | Swait() | |
| 3429 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.2) | |
| 3430 | until KEYHOLD == false | |
| 3431 | elseif NEWKEY == "s" then | |
| 3432 | MOVEMENT = "Backwards" | |
| 3433 | repeat | |
| 3434 | Swait() | |
| 3435 | RootPart.CFrame = RootPart.CFrame * CF(0,0,0.2) | |
| 3436 | until KEYHOLD == false | |
| 3437 | elseif NEWKEY == "a" then | |
| 3438 | MOVEMENT = "Strafe" | |
| 3439 | repeat | |
| 3440 | Swait() | |
| 3441 | RootPart.CFrame = RootPart.CFrame * CF(0.2,0,0) | |
| 3442 | until KEYHOLD == false | |
| 3443 | elseif NEWKEY == "d" then | |
| 3444 | MOVEMENT = "Strafe" | |
| 3445 | repeat | |
| 3446 | Swait() | |
| 3447 | RootPart.CFrame = RootPart.CFrame * CF(-0.2,0,0) | |
| 3448 | until KEYHOLD == false | |
| 3449 | elseif NEWKEY == "y" then | |
| 3450 | CLIPPING = false | |
| 3451 | end | |
| 3452 | MOVEMENT = nil | |
| 3453 | end) | |
| 3454 | local LOOP = 0 | |
| 3455 | repeat | |
| 3456 | Swait() | |
| 3457 | AURA.Parent = Torso | |
| 3458 | LOOP = LOOP + 1 | |
| 3459 | if LOOP >= 15 then | |
| 3460 | LOOP = 0 | |
| 3461 | WaveParticles(Torso.Position,15,C3(1,1,1)) | |
| 3462 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-3.5,0).p), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 3463 | end | |
| 3464 | if MOVEMENT == nil then | |
| 3465 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3466 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3467 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3468 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3469 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3470 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3471 | elseif MOVEMENT == "Forward" then | |
| 3472 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3473 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3474 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3475 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3476 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3477 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3478 | elseif MOVEMENT == "Backwards" then | |
| 3479 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3480 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3481 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3482 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3483 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3484 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3485 | elseif MOVEMENT == "Strafe" then | |
| 3486 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3487 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3488 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3489 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3490 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3491 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3492 | end | |
| 3493 | until CLIPPING == false | |
| 3494 | KEY:Disconnect() | |
| 3495 | coroutine.resume(coroutine.create(function() | |
| 3496 | for i = 1, 20 do | |
| 3497 | Swait() | |
| 3498 | AURA.Volume = AURA.Volume - 3/20 | |
| 3499 | end | |
| 3500 | AURA:remove() | |
| 3501 | end)) | |
| 3502 | CreateSound(814168787, Torso, 1, MRANDOM(9,12)/10, false) | |
| 3503 | for i = 1, 50 do | |
| 3504 | Swait() | |
| 3505 | EXTRATRANS = EXTRATRANS - 0.5/50 | |
| 3506 | RootPart.CFrame = RootPart.CFrame * CF(0,-(1-(i/50))/4.3,0) | |
| 3507 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3508 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3509 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3510 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3511 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3512 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3513 | end | |
| 3514 | EXTRATRANS = 0 | |
| 3515 | UNANCHOR = true | |
| 3516 | ATTACK = false | |
| 3517 | Rooted = false | |
| 3518 | end | |
| 3519 | ||
| 3520 | function Taunt() | |
| 3521 | ATTACK = true | |
| 3522 | Rooted = true | |
| 3523 | local TAUNT = CreateSound(159882635, Torso, 7, 1, false) | |
| 3524 | repeat | |
| 3525 | Swait() | |
| 3526 | TAUNT.Parent = Torso | |
| 3527 | TAUNT.Playing = true | |
| 3528 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3529 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
| 3530 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3531 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3532 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3533 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3534 | until TAUNT.TimePosition >= 1.25 | |
| 3535 | for i=0, 1.6, 0.1 / Animation_Speed do | |
| 3536 | Swait() | |
| 3537 | TAUNT.Parent = Torso | |
| 3538 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
| 3539 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 3540 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3541 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3542 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3543 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3544 | end | |
| 3545 | ATTACK = false | |
| 3546 | Rooted = false | |
| 3547 | end | |
| 3548 | ||
| 3549 | --//=================================\\ | |
| 3550 | --|| ASSIGN THINGS TO KEYS | |
| 3551 | --\\=================================// | |
| 3552 | ||
| 3553 | function MouseDown(Mouse) | |
| 3554 | if ATTACK == false then | |
| 3555 | end | |
| 3556 | end | |
| 3557 | ||
| 3558 | function MouseUp(Mouse) | |
| 3559 | HOLD = false | |
| 3560 | end | |
| 3561 | ||
| 3562 | function KeyDown(Key) | |
| 3563 | KEYHOLD = true | |
| 3564 | if Key == "z" and ATTACK == false then | |
| 3565 | Bullet() | |
| 3566 | end | |
| 3567 | ||
| 3568 | if Key == "b" and ATTACK == false then | |
| 3569 | Melee() | |
| 3570 | end | |
| 3571 | ||
| 3572 | if Key == "c" and ATTACK == false then | |
| 3573 | Launch() | |
| 3574 | end | |
| 3575 | ||
| 3576 | if Key == "v" and ATTACK == false then | |
| 3577 | Ravage() | |
| 3578 | end | |
| 3579 | ||
| 3580 | if Key == "e" and ATTACK == false then | |
| 3581 | Shield() | |
| 3582 | end | |
| 3583 | ||
| 3584 | if Key == "q" and ATTACK == false then | |
| 3585 | Spikes() | |
| 3586 | end | |
| 3587 | ||
| 3588 | if Key == "x" and ATTACK == false then | |
| 3589 | TwinMeteor() | |
| 3590 | end | |
| 3591 | ||
| 3592 | if Key == "y" and ATTACK == false then | |
| 3593 | Noclip() | |
| 3594 | end | |
| 3595 | ||
| 3596 | if Key == "p" and ATTACK == false then | |
| 3597 | TakeOnMe() | |
| 3598 | end | |
| 3599 | ||
| 3600 | if Key == "t" and ATTACK == false then | |
| 3601 | Taunt() | |
| 3602 | end | |
| 3603 | ||
| 3604 | if Key == "]" and ATTACK == false then | |
| 3605 | if PLAYSONG == true then | |
| 3606 | PLAYSONG = false | |
| 3607 | else | |
| 3608 | PLAYSONG = true | |
| 3609 | end | |
| 3610 | end | |
| 3611 | end | |
| 3612 | ||
| 3613 | function KeyUp(Key) | |
| 3614 | KEYHOLD = false | |
| 3615 | end | |
| 3616 | ||
| 3617 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 3618 | MouseDown(NEWKEY) | |
| 3619 | end) | |
| 3620 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 3621 | MouseUp(NEWKEY) | |
| 3622 | end) | |
| 3623 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 3624 | KeyDown(NEWKEY) | |
| 3625 | end) | |
| 3626 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 3627 | KeyUp(NEWKEY) | |
| 3628 | end) | |
| 3629 | ||
| 3630 | --//=================================\\ | |
| 3631 | --\\=================================// | |
| 3632 | ||
| 3633 | function AntiTimeStop() | |
| 3634 | for _, c in pairs(Character:GetChildren()) do | |
| 3635 | if c:IsA("BasePart") and c ~= RootPart then
| |
| 3636 | c.Anchored = false | |
| 3637 | end | |
| 3638 | end | |
| 3639 | if UNANCHOR == true then | |
| 3640 | RootPart.Anchored = false | |
| 3641 | else | |
| 3642 | RootPart.Anchored = true | |
| 3643 | end | |
| 3644 | end | |
| 3645 | ||
| 3646 | --//=================================\\ | |
| 3647 | --|| WRAP THE WHOLE SCRIPT UP | |
| 3648 | --\\=================================// | |
| 3649 | ||
| 3650 | Humanoid.Changed:connect(function(Jump) | |
| 3651 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 3652 | Humanoid.Jump = false | |
| 3653 | end | |
| 3654 | end) | |
| 3655 | ||
| 3656 | while true do | |
| 3657 | Swait() | |
| 3658 | Head:ClearAllChildren() | |
| 3659 | script.Parent = WEAPONGUI | |
| 3660 | ANIMATE.Parent = nil | |
| 3661 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 3662 | v:Stop(); | |
| 3663 | end | |
| 3664 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 3665 | Humanoid = IT("Humanoid",Character)
| |
| 3666 | end | |
| 3667 | SINE = SINE + CHANGE | |
| 3668 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 3669 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 3670 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 3671 | local WALKSPEEDVALUE = 4 | |
| 3672 | Neck.C1 = Clerp(Neck.C1, CF(0, 0, 0.03) * ANGLES(RAD(90), RAD(180), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(180)) , 1 / Animation_Speed) | |
| 3673 | if ANIM == "Walk" and TORSOVELOCITY > 1 and PLAYSONG == true then | |
| 3674 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 3675 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 3676 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 3677 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 3678 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or PLAYSONG == false then | |
| 3679 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 3680 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 3681 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3682 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3683 | end | |
| 3684 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 3685 | ANIM = "Jump" | |
| 3686 | if ATTACK == false then | |
| 3687 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3688 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3689 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3690 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3691 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3692 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3693 | end | |
| 3694 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 3695 | ANIM = "Fall" | |
| 3696 | if ATTACK == false then | |
| 3697 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3698 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3699 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3700 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3701 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3702 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3703 | end | |
| 3704 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 3705 | ANIM = "Idle" | |
| 3706 | if ATTACK == false then | |
| 3707 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3708 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3709 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3710 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3711 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3712 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3713 | end | |
| 3714 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 3715 | ANIM = "Walk" | |
| 3716 | if ATTACK == false then | |
| 3717 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3718 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, -0.025, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 3719 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 3720 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 3721 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3722 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 3723 | end | |
| 3724 | end | |
| 3725 | for _, c in pairs(Character:GetChildren()) do | |
| 3726 | if c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
| 3727 | c:remove() | |
| 3728 | end | |
| 3729 | end | |
| 3730 | AntiTimeStop() | |
| 3731 | Humanoid.MaxHealth = 10e10 | |
| 3732 | Humanoid.Health = 10e10 | |
| 3733 | if Rooted == false then | |
| 3734 | Disable_Jump = false | |
| 3735 | Humanoid.WalkSpeed = Speed | |
| 3736 | elseif Rooted == true then | |
| 3737 | Disable_Jump = true | |
| 3738 | Humanoid.WalkSpeed = 0 | |
| 3739 | end | |
| 3740 | for E = 1, #TAIL do | |
| 3741 | TAIL[E].C1 = Clerp(TAIL[E].C1,CF(0, 0, 0) * ANGLES(RAD(5-1 * SIN(SINE / 12)), RAD(-2 * COS(SINE / 24)), RAD(4 * SIN(SINE / 24))), 1 / Animation_Speed) | |
| 3742 | end | |
| 3743 | sick.SoundId = "rbxassetid://0" | |
| 3744 | sick.Looped = true | |
| 3745 | sick.Pitch = 1 | |
| 3746 | sick.Volume = 2 | |
| 3747 | sick.Parent = Effects | |
| 3748 | sick.Playing = PLAYSONG | |
| 3749 | Humanoid.PlatformStand = false | |
| 3750 | Humanoid.Name = "I am the god of earth" | |
| 3751 | refit() | |
| 3752 | if Character:FindFirstChild("Pants") == nil then
| |
| 3753 | script.Pants:Clone().Parent = Character | |
| 3754 | end | |
| 3755 | if Character:FindFirstChild("Shirt") == nil then
| |
| 3756 | script.Shirt:Clone().Parent = Character | |
| 3757 | end | |
| 3758 | for _, c in pairs(Character:GetChildren()) do | |
| 3759 | if c:IsA("BasePart") and ATTACK == false then
| |
| 3760 | for _, e in pairs(c:GetChildren()) do | |
| 3761 | if e:IsA("ParticleEmitter") or e:IsA("BodyPosition") or e:IsA("BodyGyro") then
| |
| 3762 | e:remove() | |
| 3763 | end | |
| 3764 | end | |
| 3765 | end | |
| 3766 | end | |
| 3767 | end | |
| 3768 | ||
| 3769 | --//=================================\\ | |
| 3770 | --\\=================================// | |
| 3771 | ||
| 3772 | ||
| 3773 | ||
| 3774 | ||
| 3775 | ||
| 3776 | --//====================================================\\-- | |
| 3777 | --|| END OF SCRIPT | |
| 3778 | --\\====================================================//-- |